Skip gcc.target/i386/shrink_wrap_1.c on ia32
[official-gcc.git] / gcc / configure
blob380a235860ab5bba8dddc33c425016baed2b7187
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 PICFLAG
604 enable_host_shared
605 enable_plugin
606 pluginlibs
607 CLOOGINC
608 CLOOGLIBS
609 ISLINC
610 ISLLIBS
611 GMPINC
612 GMPLIBS
613 target_cpu_default
614 fortran_target_objs
615 cxx_target_objs
616 c_target_objs
617 use_gcc_stdint
618 xm_defines
619 xm_include_list
620 xm_file_list
621 tm_p_include_list
622 tm_p_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 common_out_object_file
627 common_out_file
628 out_object_file
629 out_file
630 objc_boehm_gc
631 md_file
632 local_prefix
633 lang_tree_files
634 lang_specs_files
635 lang_opt_files
636 install
637 out_host_hook_obj
638 host_xm_defines
639 host_xm_include_list
640 host_xm_file_list
641 host_exeext
642 gcc_gxx_include_dir_add_sysroot
643 gcc_gxx_include_dir
644 gcc_config_arguments
645 float_h_file
646 extra_programs
647 extra_objs
648 extra_headers_list
649 user_headers_inc_next_post
650 user_headers_inc_next_pre
651 extra_gcc_objs
652 TM_MULTILIB_EXCEPTIONS_CONFIG
653 TM_MULTILIB_CONFIG
654 TM_ENDIAN_CONFIG
655 tmake_file
656 xmake_file
657 cpp_install_dir
658 check_languages
659 build_file_translate
660 build_xm_defines
661 build_xm_include_list
662 build_xm_file_list
663 build_install_headers_dir
664 build_exeext
665 all_selected_languages
666 all_languages
667 all_lang_makefrags
668 all_gtfiles
669 all_compilers
670 srcdir
671 subdirs
672 dollar
673 gcc_tooldir
674 enable_lto
675 DO_LINK_MUTEX
676 MAINT
677 zlibinc
678 zlibdir
679 HOST_LIBS
680 libgcc_visibility
681 gcc_cv_readelf
682 gcc_cv_objdump
683 ORIGINAL_NM_FOR_TARGET
684 gcc_cv_nm
685 ORIGINAL_LD_GOLD_FOR_TARGET
686 ORIGINAL_LD_BFD_FOR_TARGET
687 ORIGINAL_LD_FOR_TARGET
688 ORIGINAL_PLUGIN_LD_FOR_TARGET
689 gcc_cv_ld
690 ORIGINAL_AS_FOR_TARGET
691 gcc_cv_as
692 enable_fast_install
693 objdir
694 OTOOL64
695 OTOOL
696 LIPO
697 NMEDIT
698 DSYMUTIL
699 STRIP
700 OBJDUMP
701 ac_ct_DUMPBIN
702 DUMPBIN
704 FGREP
706 LIBTOOL
707 collect2
708 STMP_FIXINC
709 BUILD_LDFLAGS
710 BUILD_CXXFLAGS
711 BUILD_CFLAGS
712 CXX_FOR_BUILD
713 CC_FOR_BUILD
714 inhibit_libc
715 SYSTEM_HEADER_DIR
717 CROSS
718 CATOBJEXT
719 GENCAT
720 INSTOBJEXT
721 DATADIRNAME
722 CATALOGS
723 POSUB
724 GMSGFMT
725 XGETTEXT
726 INCINTL
727 LIBINTL_DEP
728 LIBINTL
729 USE_NLS
730 extra_opt_files
731 extra_modes_file
732 NATIVE_SYSTEM_HEADER_DIR
733 objext
734 manext
735 LIBICONV_DEP
736 LTLIBICONV
737 LIBICONV
738 LDEXP_LIB
739 EXTRA_GCC_LIBS
740 GNAT_LIBEXC
741 COLLECT2_LIBS
742 CXXDEPMODE
743 DEPDIR
744 am__leading_dot
745 CXXCPP
748 BISON
749 FLEX
750 GENERATED_MANPAGES
751 BUILD_INFO
752 MAKEINFO
753 have_mktemp_command
754 make_compare_target
755 INSTALL_DATA
756 INSTALL_PROGRAM
757 INSTALL
758 ranlib_flags
759 RANLIB
761 LN_S
763 SET_MAKE
764 REPORT_BUGS_TEXI
765 REPORT_BUGS_TO
766 PKGVERSION
767 CONFIGURE_SPECS
768 CROSS_SYSTEM_HEADER_DIR
769 TARGET_SYSTEM_ROOT_DEFINE
770 TARGET_SYSTEM_ROOT
771 SYSROOT_CFLAGS_FOR_TARGET
772 enable_shared
773 enable_fixed_point
774 enable_decimal_float
775 with_float
776 with_cpu
777 enable_multiarch
778 enable_multilib
779 coverage_flags
780 valgrind_command
781 valgrind_path_defines
782 valgrind_path
783 TREECHECKING
784 TREEBROWSER
785 nocommon_flag
786 noexception_flags
787 warn_cxxflags
788 warn_cflags
789 c_strict_warn
790 strict_warn
791 c_loose_warn
792 loose_warn
793 EGREP
794 GREP
796 PICFLAG_FOR_TARGET
797 GNATMAKE
798 GNATBIND
799 ac_ct_CXX
800 CXXFLAGS
802 OBJEXT
803 EXEEXT
804 ac_ct_CC
805 CPPFLAGS
806 LDFLAGS
807 CFLAGS
809 GENINSRC
810 target_subdir
811 host_subdir
812 build_subdir
813 build_libsubdir
814 target_noncanonical
815 target_os
816 target_vendor
817 target_cpu
818 target
819 host_os
820 host_vendor
821 host_cpu
822 host
823 build_os
824 build_vendor
825 build_cpu
826 build
827 target_alias
828 host_alias
829 build_alias
830 LIBS
831 ECHO_T
832 ECHO_N
833 ECHO_C
834 DEFS
835 mandir
836 localedir
837 libdir
838 psdir
839 pdfdir
840 dvidir
841 htmldir
842 infodir
843 docdir
844 oldincludedir
845 includedir
846 localstatedir
847 sharedstatedir
848 sysconfdir
849 datadir
850 datarootdir
851 libexecdir
852 sbindir
853 bindir
854 program_transform_name
855 prefix
856 exec_prefix
857 PACKAGE_URL
858 PACKAGE_BUGREPORT
859 PACKAGE_STRING
860 PACKAGE_VERSION
861 PACKAGE_TARNAME
862 PACKAGE_NAME
863 PATH_SEPARATOR
864 SHELL'
865 ac_subst_files='option_includes
866 language_hooks'
867 ac_user_opts='
868 enable_option_checking
869 with_build_libsubdir
870 with_local_prefix
871 with_gxx_include_dir
872 with_cpp_install_dir
873 enable_generated_files_in_srcdir
874 with_gnu_ld
875 with_ld
876 with_demangler_in_ld
877 with_gnu_as
878 with_as
879 enable_largefile
880 enable_build_format_warnings
881 enable_werror_always
882 enable_checking
883 enable_coverage
884 enable_gather_detailed_mem_stats
885 enable_valgrind_annotations
886 with_stabs
887 enable_multilib
888 enable_multiarch
889 enable___cxa_atexit
890 enable_decimal_float
891 enable_fixed_point
892 enable_threads
893 enable_tls
894 enable_objc_gc
895 with_dwarf2
896 enable_shared
897 with_native_system_header_dir
898 with_build_sysroot
899 with_sysroot
900 with_specs
901 with_pkgversion
902 with_bugurl
903 enable_languages
904 with_multilib_list
905 enable_rpath
906 with_libiconv_prefix
907 enable_sjlj_exceptions
908 enable_secureplt
909 enable_leading_mingw64_underscores
910 enable_cld
911 enable_frame_pointer
912 enable_win32_registry
913 enable_static
914 with_pic
915 enable_fast_install
916 enable_libtool_lock
917 enable_ld
918 enable_gold
919 with_plugin_ld
920 enable_gnu_indirect_function
921 enable_initfini_array
922 enable_comdat
923 with_glibc_version
924 enable_gnu_unique_object
925 enable_linker_build_id
926 with_long_double_128
927 with_gc
928 with_system_zlib
929 enable_maintainer_mode
930 enable_link_mutex
931 enable_version_specific_runtime_libs
932 enable_plugin
933 enable_host_shared
934 enable_libquadmath_support
935 with_linker_hash_style
937 ac_precious_vars='build_alias
938 host_alias
939 target_alias
941 CFLAGS
942 LDFLAGS
943 LIBS
944 CPPFLAGS
946 CXXFLAGS
949 CXXCPP
950 GMPLIBS
951 GMPINC
952 ISLLIBS
953 ISLINC
954 CLOOGLIBS
955 CLOOGINC'
958 # Initialize some variables set by options.
959 ac_init_help=
960 ac_init_version=false
961 ac_unrecognized_opts=
962 ac_unrecognized_sep=
963 # The variables have the same names as the options, with
964 # dashes changed to underlines.
965 cache_file=/dev/null
966 exec_prefix=NONE
967 no_create=
968 no_recursion=
969 prefix=NONE
970 program_prefix=NONE
971 program_suffix=NONE
972 program_transform_name=s,x,x,
973 silent=
974 site=
975 srcdir=
976 verbose=
977 x_includes=NONE
978 x_libraries=NONE
980 # Installation directory options.
981 # These are left unexpanded so users can "make install exec_prefix=/foo"
982 # and all the variables that are supposed to be based on exec_prefix
983 # by default will actually change.
984 # Use braces instead of parens because sh, perl, etc. also accept them.
985 # (The list follows the same order as the GNU Coding Standards.)
986 bindir='${exec_prefix}/bin'
987 sbindir='${exec_prefix}/sbin'
988 libexecdir='${exec_prefix}/libexec'
989 datarootdir='${prefix}/share'
990 datadir='${datarootdir}'
991 sysconfdir='${prefix}/etc'
992 sharedstatedir='${prefix}/com'
993 localstatedir='${prefix}/var'
994 includedir='${prefix}/include'
995 oldincludedir='/usr/include'
996 docdir='${datarootdir}/doc/${PACKAGE}'
997 infodir='${datarootdir}/info'
998 htmldir='${docdir}'
999 dvidir='${docdir}'
1000 pdfdir='${docdir}'
1001 psdir='${docdir}'
1002 libdir='${exec_prefix}/lib'
1003 localedir='${datarootdir}/locale'
1004 mandir='${datarootdir}/man'
1006 ac_prev=
1007 ac_dashdash=
1008 for ac_option
1010 # If the previous option needs an argument, assign it.
1011 if test -n "$ac_prev"; then
1012 eval $ac_prev=\$ac_option
1013 ac_prev=
1014 continue
1017 case $ac_option in
1018 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1019 *) ac_optarg=yes ;;
1020 esac
1022 # Accept the important Cygnus configure options, so we can diagnose typos.
1024 case $ac_dashdash$ac_option in
1026 ac_dashdash=yes ;;
1028 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1029 ac_prev=bindir ;;
1030 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1031 bindir=$ac_optarg ;;
1033 -build | --build | --buil | --bui | --bu)
1034 ac_prev=build_alias ;;
1035 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1036 build_alias=$ac_optarg ;;
1038 -cache-file | --cache-file | --cache-fil | --cache-fi \
1039 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1040 ac_prev=cache_file ;;
1041 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1042 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1043 cache_file=$ac_optarg ;;
1045 --config-cache | -C)
1046 cache_file=config.cache ;;
1048 -datadir | --datadir | --datadi | --datad)
1049 ac_prev=datadir ;;
1050 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1051 datadir=$ac_optarg ;;
1053 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1054 | --dataroo | --dataro | --datar)
1055 ac_prev=datarootdir ;;
1056 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1057 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1058 datarootdir=$ac_optarg ;;
1060 -disable-* | --disable-*)
1061 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1064 as_fn_error "invalid feature name: $ac_useropt"
1065 ac_useropt_orig=$ac_useropt
1066 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1067 case $ac_user_opts in
1069 "enable_$ac_useropt"
1070 "*) ;;
1071 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1072 ac_unrecognized_sep=', ';;
1073 esac
1074 eval enable_$ac_useropt=no ;;
1076 -docdir | --docdir | --docdi | --doc | --do)
1077 ac_prev=docdir ;;
1078 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1079 docdir=$ac_optarg ;;
1081 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1082 ac_prev=dvidir ;;
1083 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1084 dvidir=$ac_optarg ;;
1086 -enable-* | --enable-*)
1087 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090 as_fn_error "invalid feature name: $ac_useropt"
1091 ac_useropt_orig=$ac_useropt
1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1095 "enable_$ac_useropt"
1096 "*) ;;
1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1098 ac_unrecognized_sep=', ';;
1099 esac
1100 eval enable_$ac_useropt=\$ac_optarg ;;
1102 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1103 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1104 | --exec | --exe | --ex)
1105 ac_prev=exec_prefix ;;
1106 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1107 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1108 | --exec=* | --exe=* | --ex=*)
1109 exec_prefix=$ac_optarg ;;
1111 -gas | --gas | --ga | --g)
1112 # Obsolete; use --with-gas.
1113 with_gas=yes ;;
1115 -help | --help | --hel | --he | -h)
1116 ac_init_help=long ;;
1117 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1118 ac_init_help=recursive ;;
1119 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1120 ac_init_help=short ;;
1122 -host | --host | --hos | --ho)
1123 ac_prev=host_alias ;;
1124 -host=* | --host=* | --hos=* | --ho=*)
1125 host_alias=$ac_optarg ;;
1127 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1128 ac_prev=htmldir ;;
1129 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1130 | --ht=*)
1131 htmldir=$ac_optarg ;;
1133 -includedir | --includedir | --includedi | --included | --include \
1134 | --includ | --inclu | --incl | --inc)
1135 ac_prev=includedir ;;
1136 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1137 | --includ=* | --inclu=* | --incl=* | --inc=*)
1138 includedir=$ac_optarg ;;
1140 -infodir | --infodir | --infodi | --infod | --info | --inf)
1141 ac_prev=infodir ;;
1142 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1143 infodir=$ac_optarg ;;
1145 -libdir | --libdir | --libdi | --libd)
1146 ac_prev=libdir ;;
1147 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1148 libdir=$ac_optarg ;;
1150 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1151 | --libexe | --libex | --libe)
1152 ac_prev=libexecdir ;;
1153 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1154 | --libexe=* | --libex=* | --libe=*)
1155 libexecdir=$ac_optarg ;;
1157 -localedir | --localedir | --localedi | --localed | --locale)
1158 ac_prev=localedir ;;
1159 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1160 localedir=$ac_optarg ;;
1162 -localstatedir | --localstatedir | --localstatedi | --localstated \
1163 | --localstate | --localstat | --localsta | --localst | --locals)
1164 ac_prev=localstatedir ;;
1165 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1166 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1167 localstatedir=$ac_optarg ;;
1169 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1170 ac_prev=mandir ;;
1171 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1172 mandir=$ac_optarg ;;
1174 -nfp | --nfp | --nf)
1175 # Obsolete; use --without-fp.
1176 with_fp=no ;;
1178 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1179 | --no-cr | --no-c | -n)
1180 no_create=yes ;;
1182 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1183 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1184 no_recursion=yes ;;
1186 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1187 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1188 | --oldin | --oldi | --old | --ol | --o)
1189 ac_prev=oldincludedir ;;
1190 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1191 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1192 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1193 oldincludedir=$ac_optarg ;;
1195 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1196 ac_prev=prefix ;;
1197 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1198 prefix=$ac_optarg ;;
1200 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1201 | --program-pre | --program-pr | --program-p)
1202 ac_prev=program_prefix ;;
1203 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1204 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1205 program_prefix=$ac_optarg ;;
1207 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1208 | --program-suf | --program-su | --program-s)
1209 ac_prev=program_suffix ;;
1210 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1211 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1212 program_suffix=$ac_optarg ;;
1214 -program-transform-name | --program-transform-name \
1215 | --program-transform-nam | --program-transform-na \
1216 | --program-transform-n | --program-transform- \
1217 | --program-transform | --program-transfor \
1218 | --program-transfo | --program-transf \
1219 | --program-trans | --program-tran \
1220 | --progr-tra | --program-tr | --program-t)
1221 ac_prev=program_transform_name ;;
1222 -program-transform-name=* | --program-transform-name=* \
1223 | --program-transform-nam=* | --program-transform-na=* \
1224 | --program-transform-n=* | --program-transform-=* \
1225 | --program-transform=* | --program-transfor=* \
1226 | --program-transfo=* | --program-transf=* \
1227 | --program-trans=* | --program-tran=* \
1228 | --progr-tra=* | --program-tr=* | --program-t=*)
1229 program_transform_name=$ac_optarg ;;
1231 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1232 ac_prev=pdfdir ;;
1233 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1234 pdfdir=$ac_optarg ;;
1236 -psdir | --psdir | --psdi | --psd | --ps)
1237 ac_prev=psdir ;;
1238 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1239 psdir=$ac_optarg ;;
1241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1242 | -silent | --silent | --silen | --sile | --sil)
1243 silent=yes ;;
1245 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1246 ac_prev=sbindir ;;
1247 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1248 | --sbi=* | --sb=*)
1249 sbindir=$ac_optarg ;;
1251 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1252 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1253 | --sharedst | --shareds | --shared | --share | --shar \
1254 | --sha | --sh)
1255 ac_prev=sharedstatedir ;;
1256 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1257 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1258 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1259 | --sha=* | --sh=*)
1260 sharedstatedir=$ac_optarg ;;
1262 -site | --site | --sit)
1263 ac_prev=site ;;
1264 -site=* | --site=* | --sit=*)
1265 site=$ac_optarg ;;
1267 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1268 ac_prev=srcdir ;;
1269 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1270 srcdir=$ac_optarg ;;
1272 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1273 | --syscon | --sysco | --sysc | --sys | --sy)
1274 ac_prev=sysconfdir ;;
1275 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1276 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1277 sysconfdir=$ac_optarg ;;
1279 -target | --target | --targe | --targ | --tar | --ta | --t)
1280 ac_prev=target_alias ;;
1281 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1282 target_alias=$ac_optarg ;;
1284 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1285 verbose=yes ;;
1287 -version | --version | --versio | --versi | --vers | -V)
1288 ac_init_version=: ;;
1290 -with-* | --with-*)
1291 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294 as_fn_error "invalid package name: $ac_useropt"
1295 ac_useropt_orig=$ac_useropt
1296 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297 case $ac_user_opts in
1299 "with_$ac_useropt"
1300 "*) ;;
1301 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1302 ac_unrecognized_sep=', ';;
1303 esac
1304 eval with_$ac_useropt=\$ac_optarg ;;
1306 -without-* | --without-*)
1307 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1308 # Reject names that are not valid shell variable names.
1309 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1310 as_fn_error "invalid package name: $ac_useropt"
1311 ac_useropt_orig=$ac_useropt
1312 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1313 case $ac_user_opts in
1315 "with_$ac_useropt"
1316 "*) ;;
1317 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1318 ac_unrecognized_sep=', ';;
1319 esac
1320 eval with_$ac_useropt=no ;;
1322 --x)
1323 # Obsolete; use --with-x.
1324 with_x=yes ;;
1326 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1327 | --x-incl | --x-inc | --x-in | --x-i)
1328 ac_prev=x_includes ;;
1329 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1330 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1331 x_includes=$ac_optarg ;;
1333 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1334 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1335 ac_prev=x_libraries ;;
1336 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1337 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1338 x_libraries=$ac_optarg ;;
1340 -*) as_fn_error "unrecognized option: \`$ac_option'
1341 Try \`$0 --help' for more information."
1344 *=*)
1345 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1346 # Reject names that are not valid shell variable names.
1347 case $ac_envvar in #(
1348 '' | [0-9]* | *[!_$as_cr_alnum]* )
1349 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1350 esac
1351 eval $ac_envvar=\$ac_optarg
1352 export $ac_envvar ;;
1355 # FIXME: should be removed in autoconf 3.0.
1356 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1357 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1358 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1359 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1362 esac
1363 done
1365 if test -n "$ac_prev"; then
1366 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1367 as_fn_error "missing argument to $ac_option"
1370 if test -n "$ac_unrecognized_opts"; then
1371 case $enable_option_checking in
1372 no) ;;
1373 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1374 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1375 esac
1378 # Check all directory arguments for consistency.
1379 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1380 datadir sysconfdir sharedstatedir localstatedir includedir \
1381 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1382 libdir localedir mandir
1384 eval ac_val=\$$ac_var
1385 # Remove trailing slashes.
1386 case $ac_val in
1387 */ )
1388 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1389 eval $ac_var=\$ac_val;;
1390 esac
1391 # Be sure to have absolute directory names.
1392 case $ac_val in
1393 [\\/$]* | ?:[\\/]* ) continue;;
1394 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1395 esac
1396 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1397 done
1399 # There might be people who depend on the old broken behavior: `$host'
1400 # used to hold the argument of --host etc.
1401 # FIXME: To remove some day.
1402 build=$build_alias
1403 host=$host_alias
1404 target=$target_alias
1406 # FIXME: To remove some day.
1407 if test "x$host_alias" != x; then
1408 if test "x$build_alias" = x; then
1409 cross_compiling=maybe
1410 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1411 If a cross compiler is detected then cross compile mode will be used." >&2
1412 elif test "x$build_alias" != "x$host_alias"; then
1413 cross_compiling=yes
1417 ac_tool_prefix=
1418 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1420 test "$silent" = yes && exec 6>/dev/null
1423 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1424 ac_ls_di=`ls -di .` &&
1425 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1426 as_fn_error "working directory cannot be determined"
1427 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1428 as_fn_error "pwd does not report name of working directory"
1431 # Find the source files, if location was not specified.
1432 if test -z "$srcdir"; then
1433 ac_srcdir_defaulted=yes
1434 # Try the directory containing this script, then the parent directory.
1435 ac_confdir=`$as_dirname -- "$as_myself" ||
1436 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1437 X"$as_myself" : 'X\(//\)[^/]' \| \
1438 X"$as_myself" : 'X\(//\)$' \| \
1439 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1440 $as_echo X"$as_myself" |
1441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1442 s//\1/
1445 /^X\(\/\/\)[^/].*/{
1446 s//\1/
1449 /^X\(\/\/\)$/{
1450 s//\1/
1453 /^X\(\/\).*/{
1454 s//\1/
1457 s/.*/./; q'`
1458 srcdir=$ac_confdir
1459 if test ! -r "$srcdir/$ac_unique_file"; then
1460 srcdir=..
1462 else
1463 ac_srcdir_defaulted=no
1465 if test ! -r "$srcdir/$ac_unique_file"; then
1466 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1467 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1469 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1470 ac_abs_confdir=`(
1471 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1472 pwd)`
1473 # When building in place, set srcdir=.
1474 if test "$ac_abs_confdir" = "$ac_pwd"; then
1475 srcdir=.
1477 # Remove unnecessary trailing slashes from srcdir.
1478 # Double slashes in file names in object file debugging info
1479 # mess up M-x gdb in Emacs.
1480 case $srcdir in
1481 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1482 esac
1483 for ac_var in $ac_precious_vars; do
1484 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1485 eval ac_env_${ac_var}_value=\$${ac_var}
1486 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1487 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1488 done
1491 # Report the --help message.
1493 if test "$ac_init_help" = "long"; then
1494 # Omit some internal or obsolete options to make the list less imposing.
1495 # This message is too long to be a string in the A/UX 3.1 sh.
1496 cat <<_ACEOF
1497 \`configure' configures this package to adapt to many kinds of systems.
1499 Usage: $0 [OPTION]... [VAR=VALUE]...
1501 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1502 VAR=VALUE. See below for descriptions of some of the useful variables.
1504 Defaults for the options are specified in brackets.
1506 Configuration:
1507 -h, --help display this help and exit
1508 --help=short display options specific to this package
1509 --help=recursive display the short help of all the included packages
1510 -V, --version display version information and exit
1511 -q, --quiet, --silent do not print \`checking...' messages
1512 --cache-file=FILE cache test results in FILE [disabled]
1513 -C, --config-cache alias for \`--cache-file=config.cache'
1514 -n, --no-create do not create output files
1515 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1517 Installation directories:
1518 --prefix=PREFIX install architecture-independent files in PREFIX
1519 [$ac_default_prefix]
1520 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1521 [PREFIX]
1523 By default, \`make install' will install all the files in
1524 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1525 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1526 for instance \`--prefix=\$HOME'.
1528 For better control, use the options below.
1530 Fine tuning of the installation directories:
1531 --bindir=DIR user executables [EPREFIX/bin]
1532 --sbindir=DIR system admin executables [EPREFIX/sbin]
1533 --libexecdir=DIR program executables [EPREFIX/libexec]
1534 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1535 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1536 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1537 --libdir=DIR object code libraries [EPREFIX/lib]
1538 --includedir=DIR C header files [PREFIX/include]
1539 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1540 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1541 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1542 --infodir=DIR info documentation [DATAROOTDIR/info]
1543 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1544 --mandir=DIR man documentation [DATAROOTDIR/man]
1545 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1546 --htmldir=DIR html documentation [DOCDIR]
1547 --dvidir=DIR dvi documentation [DOCDIR]
1548 --pdfdir=DIR pdf documentation [DOCDIR]
1549 --psdir=DIR ps documentation [DOCDIR]
1550 _ACEOF
1552 cat <<\_ACEOF
1554 Program names:
1555 --program-prefix=PREFIX prepend PREFIX to installed program names
1556 --program-suffix=SUFFIX append SUFFIX to installed program names
1557 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1559 System types:
1560 --build=BUILD configure for building on BUILD [guessed]
1561 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1562 --target=TARGET configure for building compilers for TARGET [HOST]
1563 _ACEOF
1566 if test -n "$ac_init_help"; then
1568 cat <<\_ACEOF
1570 Optional Features:
1571 --disable-option-checking ignore unrecognized --enable/--with options
1572 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1573 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1574 --enable-generated-files-in-srcdir
1575 put copies of generated files in source dir intended
1576 for creating source tarballs for users without
1577 texinfo bison or flex
1578 --disable-largefile omit support for large files
1579 --disable-build-format-warnings
1580 don't use -Wformat while building GCC
1581 --enable-werror-always enable -Werror despite compiler version
1582 --enable-checking[=LIST]
1583 enable expensive run-time checks. With LIST, enable
1584 only specific categories of checks. Categories are:
1585 yes,no,all,none,release. Flags are:
1586 assert,df,fold,gc,gcac,gimple,misc,
1587 rtlflag,rtl,runtime,tree,valgrind,types
1588 --enable-coverage[=LEVEL]
1589 enable compiler's code coverage collection. Use to
1590 measure compiler performance and locate unused parts
1591 of the compiler. With LEVEL, specify optimization.
1592 Values are opt, noopt, default is noopt
1593 --enable-gather-detailed-mem-stats
1594 enable detailed memory allocation stats gathering
1595 --enable-valgrind-annotations
1596 enable valgrind runtime interaction
1597 --enable-multilib enable library support for multiple ABIs
1598 --enable-multiarch enable support for multiarch paths
1599 --enable-__cxa_atexit enable __cxa_atexit for C++
1600 --enable-decimal-float={no,yes,bid,dpd}
1601 enable decimal float extension to C. Selecting 'bid'
1602 or 'dpd' choses which decimal floating point format
1603 to use
1604 --enable-fixed-point enable fixed-point arithmetic extension to C
1605 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1606 package
1607 --enable-tls enable or disable generation of tls code overriding
1608 the assembler check for tls support
1609 --enable-objc-gc enable the use of Boehm's garbage collector with the
1610 GNU Objective-C runtime
1611 --disable-shared don't provide a shared libgcc
1612 --enable-languages=LIST specify which front-ends to build
1613 --disable-rpath do not hardcode runtime library paths
1614 --enable-sjlj-exceptions
1615 arrange to use setjmp/longjmp exception handling
1616 --enable-secureplt enable -msecure-plt by default for PowerPC
1617 --enable-leading-mingw64-underscores
1618 enable leading underscores on 64 bit mingw targets
1619 --enable-cld enable -mcld by default for 32bit x86
1620 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1622 --disable-win32-registry
1623 disable lookup of installation paths in the Registry
1624 on Windows hosts
1625 --enable-win32-registry enable registry lookup (default)
1626 --enable-win32-registry=KEY
1627 use KEY instead of GCC version as the last portion
1628 of the registry key
1629 --enable-shared[=PKGS] build shared libraries [default=yes]
1630 --enable-static[=PKGS] build static libraries [default=yes]
1631 --enable-fast-install[=PKGS]
1632 optimize for fast installation [default=yes]
1633 --disable-libtool-lock avoid locking (might break parallel builds)
1634 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1635 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1636 --enable-gnu-indirect-function
1637 enable the use of the @gnu_indirect_function to
1638 glibc systems
1639 --enable-initfini-array use .init_array/.fini_array sections
1640 --enable-comdat enable COMDAT group support
1641 --enable-gnu-unique-object
1642 enable the use of the @gnu_unique_object ELF
1643 extension on glibc systems
1644 --enable-linker-build-id
1645 compiler will always pass --build-id to linker
1646 --enable-maintainer-mode
1647 enable make rules and dependencies not useful (and
1648 sometimes confusing) to the casual installer
1649 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1650 thrashing on the build machine
1651 --enable-version-specific-runtime-libs
1652 specify that runtime libraries should be installed
1653 in a compiler-specific directory
1654 --enable-plugin enable plugin support
1655 --enable-host-shared build host code as shared libraries
1656 --disable-libquadmath-support
1657 disable libquadmath support for Fortran
1659 Optional Packages:
1660 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1661 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1662 --with-build-libsubdir=DIR Directory where to find libraries for build system
1663 --with-local-prefix=DIR specifies directory to put local include
1664 --with-gxx-include-dir=DIR
1665 specifies directory to put g++ header files
1666 --with-cpp-install-dir=DIR
1667 install the user visible C preprocessor in DIR
1668 (relative to PREFIX) as well as PREFIX/bin
1669 --with-gnu-ld arrange to work with GNU ld
1670 --with-ld arrange to use the specified ld (full pathname)
1671 --with-demangler-in-ld try to use demangler in GNU ld
1672 --with-gnu-as arrange to work with GNU as
1673 --with-as arrange to use the specified as (full pathname)
1674 --with-stabs arrange to use stabs instead of host debug format
1675 --with-dwarf2 force the default debug format to be DWARF 2
1676 --with-native-system-header-dir=dir
1677 use dir as the directory to look for standard
1678 system header files in. Defaults to /usr/include.
1679 --with-build-sysroot=sysroot
1680 use sysroot as the system root during the build
1681 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1682 --with-specs=SPECS add SPECS to driver command-line processing
1683 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1684 --with-bugurl=URL Direct users to URL to report a bug
1685 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1686 --with-gnu-ld assume the C compiler uses GNU ld default=no
1687 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1688 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1689 --with-pic try to use only PIC/non-PIC objects [default=use
1690 both]
1691 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1692 --with-plugin-ld=[ARG] specify the plugin linker
1693 --with-glibc-version=M.N
1694 assume GCC used with glibc version M.N or later
1695 --with-long-double-128 use 128-bit long double by default
1696 --with-gc={page,zone} this option is not supported anymore. It used to
1697 choose the garbage collection mechanism to use with
1698 the compiler
1699 --with-system-zlib use installed libz
1700 --with-linker-hash-style={sysv,gnu,both}
1701 specify the linker hash style
1703 Some influential environment variables:
1704 CC C compiler command
1705 CFLAGS C compiler flags
1706 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1707 nonstandard directory <lib dir>
1708 LIBS libraries to pass to the linker, e.g. -l<library>
1709 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1710 you have headers in a nonstandard directory <include dir>
1711 CXX C++ compiler command
1712 CXXFLAGS C++ compiler flags
1713 CPP C preprocessor
1714 CXXCPP C++ preprocessor
1715 GMPLIBS How to link GMP
1716 GMPINC How to find GMP include files
1717 ISLLIBS How to link ISL
1718 ISLINC How to find ISL include files
1719 CLOOGLIBS How to link CLOOG
1720 CLOOGINC How to find CLOOG include files
1722 Use these variables to override the choices made by `configure' or to help
1723 it to find libraries and programs with nonstandard names/locations.
1725 Report bugs to the package provider.
1726 _ACEOF
1727 ac_status=$?
1730 if test "$ac_init_help" = "recursive"; then
1731 # If there are subdirs, report their specific --help.
1732 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1733 test -d "$ac_dir" ||
1734 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1735 continue
1736 ac_builddir=.
1738 case "$ac_dir" in
1739 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1741 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1742 # A ".." for each directory in $ac_dir_suffix.
1743 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1744 case $ac_top_builddir_sub in
1745 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1746 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1747 esac ;;
1748 esac
1749 ac_abs_top_builddir=$ac_pwd
1750 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1751 # for backward compatibility:
1752 ac_top_builddir=$ac_top_build_prefix
1754 case $srcdir in
1755 .) # We are building in place.
1756 ac_srcdir=.
1757 ac_top_srcdir=$ac_top_builddir_sub
1758 ac_abs_top_srcdir=$ac_pwd ;;
1759 [\\/]* | ?:[\\/]* ) # Absolute name.
1760 ac_srcdir=$srcdir$ac_dir_suffix;
1761 ac_top_srcdir=$srcdir
1762 ac_abs_top_srcdir=$srcdir ;;
1763 *) # Relative name.
1764 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1765 ac_top_srcdir=$ac_top_build_prefix$srcdir
1766 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1767 esac
1768 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1770 cd "$ac_dir" || { ac_status=$?; continue; }
1771 # Check for guested configure.
1772 if test -f "$ac_srcdir/configure.gnu"; then
1773 echo &&
1774 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1775 elif test -f "$ac_srcdir/configure"; then
1776 echo &&
1777 $SHELL "$ac_srcdir/configure" --help=recursive
1778 else
1779 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1780 fi || ac_status=$?
1781 cd "$ac_pwd" || { ac_status=$?; break; }
1782 done
1785 test -n "$ac_init_help" && exit $ac_status
1786 if $ac_init_version; then
1787 cat <<\_ACEOF
1788 configure
1789 generated by GNU Autoconf 2.64
1791 Copyright (C) 2009 Free Software Foundation, Inc.
1792 This configure script is free software; the Free Software Foundation
1793 gives unlimited permission to copy, distribute and modify it.
1794 _ACEOF
1795 exit
1798 ## ------------------------ ##
1799 ## Autoconf initialization. ##
1800 ## ------------------------ ##
1802 # ac_fn_c_try_compile LINENO
1803 # --------------------------
1804 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1805 ac_fn_c_try_compile ()
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 rm -f conftest.$ac_objext
1809 if { { ac_try="$ac_compile"
1810 case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_compile") 2>conftest.err
1817 ac_status=$?
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } && {
1825 test -z "$ac_c_werror_flag" ||
1826 test ! -s conftest.err
1827 } && test -s conftest.$ac_objext; then :
1828 ac_retval=0
1829 else
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1833 ac_retval=1
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836 return $ac_retval
1838 } # ac_fn_c_try_compile
1840 # ac_fn_cxx_try_compile LINENO
1841 # ----------------------------
1842 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_cxx_try_compile ()
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 rm -f conftest.$ac_objext
1847 if { { ac_try="$ac_compile"
1848 case "(($ac_try" in
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_compile") 2>conftest.err
1855 ac_status=$?
1856 if test -s conftest.err; then
1857 grep -v '^ *+' conftest.err >conftest.er1
1858 cat conftest.er1 >&5
1859 mv -f conftest.er1 conftest.err
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && {
1863 test -z "$ac_cxx_werror_flag" ||
1864 test ! -s conftest.err
1865 } && test -s conftest.$ac_objext; then :
1866 ac_retval=0
1867 else
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1871 ac_retval=1
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874 return $ac_retval
1876 } # ac_fn_cxx_try_compile
1878 # ac_fn_c_try_cpp LINENO
1879 # ----------------------
1880 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1881 ac_fn_c_try_cpp ()
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 if { { ac_try="$ac_cpp conftest.$ac_ext"
1885 case "(($ac_try" in
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1888 esac
1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 $as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1892 ac_status=$?
1893 if test -s conftest.err; then
1894 grep -v '^ *+' conftest.err >conftest.er1
1895 cat conftest.er1 >&5
1896 mv -f conftest.er1 conftest.err
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } >/dev/null && {
1900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1901 test ! -s conftest.err
1902 }; then :
1903 ac_retval=0
1904 else
1905 $as_echo "$as_me: failed program was:" >&5
1906 sed 's/^/| /' conftest.$ac_ext >&5
1908 ac_retval=1
1910 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1911 return $ac_retval
1913 } # ac_fn_c_try_cpp
1915 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1916 # -------------------------------------------------------
1917 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1918 # the include files in INCLUDES and setting the cache variable VAR
1919 # accordingly.
1920 ac_fn_c_check_header_mongrel ()
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925 $as_echo_n "checking for $2... " >&6; }
1926 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1927 $as_echo_n "(cached) " >&6
1929 eval ac_res=\$$3
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931 $as_echo "$ac_res" >&6; }
1932 else
1933 # Is the header compilable?
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1935 $as_echo_n "checking $2 usability... " >&6; }
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1939 #include <$2>
1940 _ACEOF
1941 if ac_fn_c_try_compile "$LINENO"; then :
1942 ac_header_compiler=yes
1943 else
1944 ac_header_compiler=no
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1948 $as_echo "$ac_header_compiler" >&6; }
1950 # Is the header present?
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1952 $as_echo_n "checking $2 presence... " >&6; }
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1955 #include <$2>
1956 _ACEOF
1957 if ac_fn_c_try_cpp "$LINENO"; then :
1958 ac_header_preproc=yes
1959 else
1960 ac_header_preproc=no
1962 rm -f conftest.err conftest.$ac_ext
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1964 $as_echo "$ac_header_preproc" >&6; }
1966 # So? What about this header?
1967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1968 yes:no: )
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1970 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1972 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1974 no:yes:* )
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1976 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1978 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1980 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1982 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1984 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1986 esac
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988 $as_echo_n "checking for $2... " >&6; }
1989 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1990 $as_echo_n "(cached) " >&6
1991 else
1992 eval "$3=\$ac_header_compiler"
1994 eval ac_res=\$$3
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1998 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2000 } # ac_fn_c_check_header_mongrel
2002 # ac_fn_c_try_run LINENO
2003 # ----------------------
2004 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2005 # that executables *can* be run.
2006 ac_fn_c_try_run ()
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 if { { ac_try="$ac_link"
2010 case "(($ac_try" in
2011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2012 *) ac_try_echo=$ac_try;;
2013 esac
2014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2015 $as_echo "$ac_try_echo"; } >&5
2016 (eval "$ac_link") 2>&5
2017 ac_status=$?
2018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2019 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
2027 ac_status=$?
2028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2029 test $ac_status = 0; }; }; then :
2030 ac_retval=0
2031 else
2032 $as_echo "$as_me: program exited with status $ac_status" >&5
2033 $as_echo "$as_me: failed program was:" >&5
2034 sed 's/^/| /' conftest.$ac_ext >&5
2036 ac_retval=$ac_status
2038 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2039 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2040 return $ac_retval
2042 } # ac_fn_c_try_run
2044 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2045 # -------------------------------------------------------
2046 # Tests whether HEADER exists and can be compiled using the include files in
2047 # INCLUDES, setting the cache variable VAR accordingly.
2048 ac_fn_c_check_header_compile ()
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2052 $as_echo_n "checking for $2... " >&6; }
2053 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2054 $as_echo_n "(cached) " >&6
2055 else
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2059 #include <$2>
2060 _ACEOF
2061 if ac_fn_c_try_compile "$LINENO"; then :
2062 eval "$3=yes"
2063 else
2064 eval "$3=no"
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068 eval ac_res=\$$3
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070 $as_echo "$ac_res" >&6; }
2071 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2073 } # ac_fn_c_check_header_compile
2075 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2076 # --------------------------------------------
2077 # Tries to find the compile-time value of EXPR in a program that includes
2078 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2079 # computed
2080 ac_fn_c_compute_int ()
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 if test "$cross_compiling" = yes; then
2084 # Depending upon the size, compute the lo and hi bounds.
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2089 main ()
2091 static int test_array [1 - 2 * !(($2) >= 0)];
2092 test_array [0] = 0
2095 return 0;
2097 _ACEOF
2098 if ac_fn_c_try_compile "$LINENO"; then :
2099 ac_lo=0 ac_mid=0
2100 while :; do
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2105 main ()
2107 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2108 test_array [0] = 0
2111 return 0;
2113 _ACEOF
2114 if ac_fn_c_try_compile "$LINENO"; then :
2115 ac_hi=$ac_mid; break
2116 else
2117 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2118 if test $ac_lo -le $ac_mid; then
2119 ac_lo= ac_hi=
2120 break
2122 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 done
2126 else
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2131 main ()
2133 static int test_array [1 - 2 * !(($2) < 0)];
2134 test_array [0] = 0
2137 return 0;
2139 _ACEOF
2140 if ac_fn_c_try_compile "$LINENO"; then :
2141 ac_hi=-1 ac_mid=-1
2142 while :; do
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2147 main ()
2149 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2150 test_array [0] = 0
2153 return 0;
2155 _ACEOF
2156 if ac_fn_c_try_compile "$LINENO"; then :
2157 ac_lo=$ac_mid; break
2158 else
2159 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2160 if test $ac_mid -le $ac_hi; then
2161 ac_lo= ac_hi=
2162 break
2164 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 done
2168 else
2169 ac_lo= ac_hi=
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174 # Binary search between lo and hi bounds.
2175 while test "x$ac_lo" != "x$ac_hi"; do
2176 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2181 main ()
2183 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2184 test_array [0] = 0
2187 return 0;
2189 _ACEOF
2190 if ac_fn_c_try_compile "$LINENO"; then :
2191 ac_hi=$ac_mid
2192 else
2193 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 done
2197 case $ac_lo in #((
2198 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2199 '') ac_retval=1 ;;
2200 esac
2201 else
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2205 static long int longval () { return $2; }
2206 static unsigned long int ulongval () { return $2; }
2207 #include <stdio.h>
2208 #include <stdlib.h>
2210 main ()
2213 FILE *f = fopen ("conftest.val", "w");
2214 if (! f)
2215 return 1;
2216 if (($2) < 0)
2218 long int i = longval ();
2219 if (i != ($2))
2220 return 1;
2221 fprintf (f, "%ld", i);
2223 else
2225 unsigned long int i = ulongval ();
2226 if (i != ($2))
2227 return 1;
2228 fprintf (f, "%lu", i);
2230 /* Do not output a trailing newline, as this causes \r\n confusion
2231 on some platforms. */
2232 return ferror (f) || fclose (f) != 0;
2235 return 0;
2237 _ACEOF
2238 if ac_fn_c_try_run "$LINENO"; then :
2239 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2240 else
2241 ac_retval=1
2243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2244 conftest.$ac_objext conftest.beam conftest.$ac_ext
2245 rm -f conftest.val
2248 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2249 return $ac_retval
2251 } # ac_fn_c_compute_int
2253 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2254 # -------------------------------------------
2255 # Tests whether TYPE exists after having included INCLUDES, setting cache
2256 # variable VAR accordingly.
2257 ac_fn_c_check_type ()
2259 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2261 $as_echo_n "checking for $2... " >&6; }
2262 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2263 $as_echo_n "(cached) " >&6
2264 else
2265 eval "$3=no"
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2270 main ()
2272 if (sizeof ($2))
2273 return 0;
2275 return 0;
2277 _ACEOF
2278 if ac_fn_c_try_compile "$LINENO"; then :
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2283 main ()
2285 if (sizeof (($2)))
2286 return 0;
2288 return 0;
2290 _ACEOF
2291 if ac_fn_c_try_compile "$LINENO"; then :
2293 else
2294 eval "$3=yes"
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300 eval ac_res=\$$3
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2302 $as_echo "$ac_res" >&6; }
2303 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2305 } # ac_fn_c_check_type
2307 # ac_fn_c_find_intX_t LINENO BITS VAR
2308 # -----------------------------------
2309 # Finds a signed integer type with width BITS, setting cache variable VAR
2310 # accordingly.
2311 ac_fn_c_find_intX_t ()
2313 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2315 $as_echo_n "checking for int$2_t... " >&6; }
2316 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2317 $as_echo_n "(cached) " >&6
2318 else
2319 eval "$3=no"
2320 for ac_type in int$2_t 'int' 'long int' \
2321 'long long int' 'short int' 'signed char'; do
2322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323 /* end confdefs.h. */
2324 $ac_includes_default
2326 main ()
2328 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2329 test_array [0] = 0
2332 return 0;
2334 _ACEOF
2335 if ac_fn_c_try_compile "$LINENO"; then :
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337 /* end confdefs.h. */
2338 $ac_includes_default
2340 main ()
2342 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2343 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2344 test_array [0] = 0
2347 return 0;
2349 _ACEOF
2350 if ac_fn_c_try_compile "$LINENO"; then :
2352 else
2353 case $ac_type in #(
2354 int$2_t) :
2355 eval "$3=yes" ;; #(
2356 *) :
2357 eval "$3=\$ac_type" ;;
2358 esac
2360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2363 eval as_val=\$$3
2364 if test "x$as_val" = x""no; then :
2366 else
2367 break
2369 done
2371 eval ac_res=\$$3
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2373 $as_echo "$ac_res" >&6; }
2374 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2376 } # ac_fn_c_find_intX_t
2378 # ac_fn_c_try_link LINENO
2379 # -----------------------
2380 # Try to link conftest.$ac_ext, and return whether this succeeded.
2381 ac_fn_c_try_link ()
2383 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2384 rm -f conftest.$ac_objext conftest$ac_exeext
2385 if { { ac_try="$ac_link"
2386 case "(($ac_try" in
2387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388 *) ac_try_echo=$ac_try;;
2389 esac
2390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2391 $as_echo "$ac_try_echo"; } >&5
2392 (eval "$ac_link") 2>conftest.err
2393 ac_status=$?
2394 if test -s conftest.err; then
2395 grep -v '^ *+' conftest.err >conftest.er1
2396 cat conftest.er1 >&5
2397 mv -f conftest.er1 conftest.err
2399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2400 test $ac_status = 0; } && {
2401 test -z "$ac_c_werror_flag" ||
2402 test ! -s conftest.err
2403 } && test -s conftest$ac_exeext && {
2404 test "$cross_compiling" = yes ||
2405 $as_test_x conftest$ac_exeext
2406 }; then :
2407 ac_retval=0
2408 else
2409 $as_echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2412 ac_retval=1
2414 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2415 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2416 # interfere with the next link command; also delete a directory that is
2417 # left behind by Apple's compiler. We do this before executing the actions.
2418 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2419 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2420 return $ac_retval
2422 } # ac_fn_c_try_link
2424 # ac_fn_c_find_uintX_t LINENO BITS VAR
2425 # ------------------------------------
2426 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2427 # accordingly.
2428 ac_fn_c_find_uintX_t ()
2430 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2432 $as_echo_n "checking for uint$2_t... " >&6; }
2433 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2434 $as_echo_n "(cached) " >&6
2435 else
2436 eval "$3=no"
2437 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2438 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2440 /* end confdefs.h. */
2441 $ac_includes_default
2443 main ()
2445 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2446 test_array [0] = 0
2449 return 0;
2451 _ACEOF
2452 if ac_fn_c_try_compile "$LINENO"; then :
2453 case $ac_type in #(
2454 uint$2_t) :
2455 eval "$3=yes" ;; #(
2456 *) :
2457 eval "$3=\$ac_type" ;;
2458 esac
2460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2461 eval as_val=\$$3
2462 if test "x$as_val" = x""no; then :
2464 else
2465 break
2467 done
2469 eval ac_res=\$$3
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2471 $as_echo "$ac_res" >&6; }
2472 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2474 } # ac_fn_c_find_uintX_t
2476 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2477 # ----------------------------------------------
2478 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2479 ac_fn_c_check_header_preproc ()
2481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2483 $as_echo_n "checking for $2... " >&6; }
2484 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2485 $as_echo_n "(cached) " >&6
2486 else
2487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2488 /* end confdefs.h. */
2489 #include <$2>
2490 _ACEOF
2491 if ac_fn_c_try_cpp "$LINENO"; then :
2492 eval "$3=yes"
2493 else
2494 eval "$3=no"
2496 rm -f conftest.err conftest.$ac_ext
2498 eval ac_res=\$$3
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2500 $as_echo "$ac_res" >&6; }
2501 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2503 } # ac_fn_c_check_header_preproc
2505 # ac_fn_cxx_try_cpp LINENO
2506 # ------------------------
2507 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2508 ac_fn_cxx_try_cpp ()
2510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2511 if { { ac_try="$ac_cpp conftest.$ac_ext"
2512 case "(($ac_try" in
2513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514 *) ac_try_echo=$ac_try;;
2515 esac
2516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2517 $as_echo "$ac_try_echo"; } >&5
2518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2519 ac_status=$?
2520 if test -s conftest.err; then
2521 grep -v '^ *+' conftest.err >conftest.er1
2522 cat conftest.er1 >&5
2523 mv -f conftest.er1 conftest.err
2525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2526 test $ac_status = 0; } >/dev/null && {
2527 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2528 test ! -s conftest.err
2529 }; then :
2530 ac_retval=0
2531 else
2532 $as_echo "$as_me: failed program was:" >&5
2533 sed 's/^/| /' conftest.$ac_ext >&5
2535 ac_retval=1
2537 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2538 return $ac_retval
2540 } # ac_fn_cxx_try_cpp
2542 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2543 # ------------------------------------------------
2544 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2545 ac_fn_cxx_check_header_preproc ()
2547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2549 $as_echo_n "checking for $2... " >&6; }
2550 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2551 $as_echo_n "(cached) " >&6
2552 else
2553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h. */
2555 #include <$2>
2556 _ACEOF
2557 if ac_fn_cxx_try_cpp "$LINENO"; then :
2558 eval "$3=yes"
2559 else
2560 eval "$3=no"
2562 rm -f conftest.err conftest.$ac_ext
2564 eval ac_res=\$$3
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2566 $as_echo "$ac_res" >&6; }
2567 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2569 } # ac_fn_cxx_check_header_preproc
2571 # ac_fn_c_check_func LINENO FUNC VAR
2572 # ----------------------------------
2573 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2574 ac_fn_c_check_func ()
2576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2578 $as_echo_n "checking for $2... " >&6; }
2579 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2580 $as_echo_n "(cached) " >&6
2581 else
2582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2583 /* end confdefs.h. */
2584 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2586 #define $2 innocuous_$2
2588 /* System header to define __stub macros and hopefully few prototypes,
2589 which can conflict with char $2 (); below.
2590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2591 <limits.h> exists even on freestanding compilers. */
2593 #ifdef __STDC__
2594 # include <limits.h>
2595 #else
2596 # include <assert.h>
2597 #endif
2599 #undef $2
2601 /* Override any GCC internal prototype to avoid an error.
2602 Use char because int might match the return type of a GCC
2603 builtin and then its argument prototype would still apply. */
2604 #ifdef __cplusplus
2605 extern "C"
2606 #endif
2607 char $2 ();
2608 /* The GNU C library defines this for functions which it implements
2609 to always fail with ENOSYS. Some functions are actually named
2610 something starting with __ and the normal name is an alias. */
2611 #if defined __stub_$2 || defined __stub___$2
2612 choke me
2613 #endif
2616 main ()
2618 return $2 ();
2620 return 0;
2622 _ACEOF
2623 if ac_fn_c_try_link "$LINENO"; then :
2624 eval "$3=yes"
2625 else
2626 eval "$3=no"
2628 rm -f core conftest.err conftest.$ac_objext \
2629 conftest$ac_exeext conftest.$ac_ext
2631 eval ac_res=\$$3
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2633 $as_echo "$ac_res" >&6; }
2634 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2636 } # ac_fn_c_check_func
2638 # ac_fn_cxx_try_link LINENO
2639 # -------------------------
2640 # Try to link conftest.$ac_ext, and return whether this succeeded.
2641 ac_fn_cxx_try_link ()
2643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2644 rm -f conftest.$ac_objext conftest$ac_exeext
2645 if { { ac_try="$ac_link"
2646 case "(($ac_try" in
2647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648 *) ac_try_echo=$ac_try;;
2649 esac
2650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2651 $as_echo "$ac_try_echo"; } >&5
2652 (eval "$ac_link") 2>conftest.err
2653 ac_status=$?
2654 if test -s conftest.err; then
2655 grep -v '^ *+' conftest.err >conftest.er1
2656 cat conftest.er1 >&5
2657 mv -f conftest.er1 conftest.err
2659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2660 test $ac_status = 0; } && {
2661 test -z "$ac_cxx_werror_flag" ||
2662 test ! -s conftest.err
2663 } && test -s conftest$ac_exeext && {
2664 test "$cross_compiling" = yes ||
2665 $as_test_x conftest$ac_exeext
2666 }; then :
2667 ac_retval=0
2668 else
2669 $as_echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2672 ac_retval=1
2674 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2675 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2676 # interfere with the next link command; also delete a directory that is
2677 # left behind by Apple's compiler. We do this before executing the actions.
2678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2679 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2680 return $ac_retval
2682 } # ac_fn_cxx_try_link
2683 cat >config.log <<_ACEOF
2684 This file contains any messages produced by compilers while
2685 running configure, to aid debugging if configure makes a mistake.
2687 It was created by $as_me, which was
2688 generated by GNU Autoconf 2.64. Invocation command line was
2690 $ $0 $@
2692 _ACEOF
2693 exec 5>>config.log
2695 cat <<_ASUNAME
2696 ## --------- ##
2697 ## Platform. ##
2698 ## --------- ##
2700 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2701 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2702 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2703 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2704 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2706 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2707 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2709 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2710 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2711 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2712 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2713 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2714 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2715 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2717 _ASUNAME
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 for as_dir in $PATH
2722 IFS=$as_save_IFS
2723 test -z "$as_dir" && as_dir=.
2724 $as_echo "PATH: $as_dir"
2725 done
2726 IFS=$as_save_IFS
2728 } >&5
2730 cat >&5 <<_ACEOF
2733 ## ----------- ##
2734 ## Core tests. ##
2735 ## ----------- ##
2737 _ACEOF
2740 # Keep a trace of the command line.
2741 # Strip out --no-create and --no-recursion so they do not pile up.
2742 # Strip out --silent because we don't want to record it for future runs.
2743 # Also quote any args containing shell meta-characters.
2744 # Make two passes to allow for proper duplicate-argument suppression.
2745 ac_configure_args=
2746 ac_configure_args0=
2747 ac_configure_args1=
2748 ac_must_keep_next=false
2749 for ac_pass in 1 2
2751 for ac_arg
2753 case $ac_arg in
2754 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2755 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2756 | -silent | --silent | --silen | --sile | --sil)
2757 continue ;;
2758 *\'*)
2759 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2760 esac
2761 case $ac_pass in
2762 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2764 as_fn_append ac_configure_args1 " '$ac_arg'"
2765 if test $ac_must_keep_next = true; then
2766 ac_must_keep_next=false # Got value, back to normal.
2767 else
2768 case $ac_arg in
2769 *=* | --config-cache | -C | -disable-* | --disable-* \
2770 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2771 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2772 | -with-* | --with-* | -without-* | --without-* | --x)
2773 case "$ac_configure_args0 " in
2774 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2775 esac
2777 -* ) ac_must_keep_next=true ;;
2778 esac
2780 as_fn_append ac_configure_args " '$ac_arg'"
2782 esac
2783 done
2784 done
2785 { ac_configure_args0=; unset ac_configure_args0;}
2786 { ac_configure_args1=; unset ac_configure_args1;}
2788 # When interrupted or exit'd, cleanup temporary files, and complete
2789 # config.log. We remove comments because anyway the quotes in there
2790 # would cause problems or look ugly.
2791 # WARNING: Use '\'' to represent an apostrophe within the trap.
2792 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2793 trap 'exit_status=$?
2794 # Save into config.log some information that might help in debugging.
2796 echo
2798 cat <<\_ASBOX
2799 ## ---------------- ##
2800 ## Cache variables. ##
2801 ## ---------------- ##
2802 _ASBOX
2803 echo
2804 # The following way of writing the cache mishandles newlines in values,
2806 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2807 eval ac_val=\$$ac_var
2808 case $ac_val in #(
2809 *${as_nl}*)
2810 case $ac_var in #(
2811 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2812 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2813 esac
2814 case $ac_var in #(
2815 _ | IFS | as_nl) ;; #(
2816 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2817 *) { eval $ac_var=; unset $ac_var;} ;;
2818 esac ;;
2819 esac
2820 done
2821 (set) 2>&1 |
2822 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2823 *${as_nl}ac_space=\ *)
2824 sed -n \
2825 "s/'\''/'\''\\\\'\'''\''/g;
2826 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2827 ;; #(
2829 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2831 esac |
2832 sort
2834 echo
2836 cat <<\_ASBOX
2837 ## ----------------- ##
2838 ## Output variables. ##
2839 ## ----------------- ##
2840 _ASBOX
2841 echo
2842 for ac_var in $ac_subst_vars
2844 eval ac_val=\$$ac_var
2845 case $ac_val in
2846 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2847 esac
2848 $as_echo "$ac_var='\''$ac_val'\''"
2849 done | sort
2850 echo
2852 if test -n "$ac_subst_files"; then
2853 cat <<\_ASBOX
2854 ## ------------------- ##
2855 ## File substitutions. ##
2856 ## ------------------- ##
2857 _ASBOX
2858 echo
2859 for ac_var in $ac_subst_files
2861 eval ac_val=\$$ac_var
2862 case $ac_val in
2863 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2864 esac
2865 $as_echo "$ac_var='\''$ac_val'\''"
2866 done | sort
2867 echo
2870 if test -s confdefs.h; then
2871 cat <<\_ASBOX
2872 ## ----------- ##
2873 ## confdefs.h. ##
2874 ## ----------- ##
2875 _ASBOX
2876 echo
2877 cat confdefs.h
2878 echo
2880 test "$ac_signal" != 0 &&
2881 $as_echo "$as_me: caught signal $ac_signal"
2882 $as_echo "$as_me: exit $exit_status"
2883 } >&5
2884 rm -f core *.core core.conftest.* &&
2885 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2886 exit $exit_status
2888 for ac_signal in 1 2 13 15; do
2889 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2890 done
2891 ac_signal=0
2893 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2894 rm -f -r conftest* confdefs.h
2896 $as_echo "/* confdefs.h */" > confdefs.h
2898 # Predefined preprocessor variables.
2900 cat >>confdefs.h <<_ACEOF
2901 #define PACKAGE_NAME "$PACKAGE_NAME"
2902 _ACEOF
2904 cat >>confdefs.h <<_ACEOF
2905 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2906 _ACEOF
2908 cat >>confdefs.h <<_ACEOF
2909 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2910 _ACEOF
2912 cat >>confdefs.h <<_ACEOF
2913 #define PACKAGE_STRING "$PACKAGE_STRING"
2914 _ACEOF
2916 cat >>confdefs.h <<_ACEOF
2917 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2918 _ACEOF
2920 cat >>confdefs.h <<_ACEOF
2921 #define PACKAGE_URL "$PACKAGE_URL"
2922 _ACEOF
2925 # Let the site file select an alternate cache file if it wants to.
2926 # Prefer an explicitly selected file to automatically selected ones.
2927 ac_site_file1=NONE
2928 ac_site_file2=NONE
2929 if test -n "$CONFIG_SITE"; then
2930 ac_site_file1=$CONFIG_SITE
2931 elif test "x$prefix" != xNONE; then
2932 ac_site_file1=$prefix/share/config.site
2933 ac_site_file2=$prefix/etc/config.site
2934 else
2935 ac_site_file1=$ac_default_prefix/share/config.site
2936 ac_site_file2=$ac_default_prefix/etc/config.site
2938 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2940 test "x$ac_site_file" = xNONE && continue
2941 if test -r "$ac_site_file"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2943 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2944 sed 's/^/| /' "$ac_site_file" >&5
2945 . "$ac_site_file"
2947 done
2949 if test -r "$cache_file"; then
2950 # Some versions of bash will fail to source /dev/null (special
2951 # files actually), so we avoid doing that.
2952 if test -f "$cache_file"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2954 $as_echo "$as_me: loading cache $cache_file" >&6;}
2955 case $cache_file in
2956 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2957 *) . "./$cache_file";;
2958 esac
2960 else
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2962 $as_echo "$as_me: creating cache $cache_file" >&6;}
2963 >$cache_file
2966 # Check that the precious variables saved in the cache have kept the same
2967 # value.
2968 ac_cache_corrupted=false
2969 for ac_var in $ac_precious_vars; do
2970 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2971 eval ac_new_set=\$ac_env_${ac_var}_set
2972 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2973 eval ac_new_val=\$ac_env_${ac_var}_value
2974 case $ac_old_set,$ac_new_set in
2975 set,)
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2977 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2978 ac_cache_corrupted=: ;;
2979 ,set)
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2981 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2982 ac_cache_corrupted=: ;;
2983 ,);;
2985 if test "x$ac_old_val" != "x$ac_new_val"; then
2986 # differences in whitespace do not lead to failure.
2987 ac_old_val_w=`echo x $ac_old_val`
2988 ac_new_val_w=`echo x $ac_new_val`
2989 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2991 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2992 ac_cache_corrupted=:
2993 else
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2995 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2996 eval $ac_var=\$ac_old_val
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2999 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3001 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3002 fi;;
3003 esac
3004 # Pass precious variables to config.status.
3005 if test "$ac_new_set" = set; then
3006 case $ac_new_val in
3007 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3008 *) ac_arg=$ac_var=$ac_new_val ;;
3009 esac
3010 case " $ac_configure_args " in
3011 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3012 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3013 esac
3015 done
3016 if $ac_cache_corrupted; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3020 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3021 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3023 ## -------------------- ##
3024 ## Main body of script. ##
3025 ## -------------------- ##
3027 ac_ext=c
3028 ac_cpp='$CPP $CPPFLAGS'
3029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3038 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3041 gcc_version=`cat $srcdir/BASE-VER`
3043 # Determine the host, build, and target systems
3044 ac_aux_dir=
3045 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3046 for ac_t in install-sh install.sh shtool; do
3047 if test -f "$ac_dir/$ac_t"; then
3048 ac_aux_dir=$ac_dir
3049 ac_install_sh="$ac_aux_dir/$ac_t -c"
3050 break 2
3052 done
3053 done
3054 if test -z "$ac_aux_dir"; then
3055 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3058 # These three variables are undocumented and unsupported,
3059 # and are intended to be withdrawn in a future Autoconf release.
3060 # They can cause serious problems if a builder's source tree is in a directory
3061 # whose full name contains unusual characters.
3062 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3063 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3064 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3067 # Make sure we can run config.sub.
3068 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3069 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3072 $as_echo_n "checking build system type... " >&6; }
3073 if test "${ac_cv_build+set}" = set; then :
3074 $as_echo_n "(cached) " >&6
3075 else
3076 ac_build_alias=$build_alias
3077 test "x$ac_build_alias" = x &&
3078 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3079 test "x$ac_build_alias" = x &&
3080 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3081 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3082 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3086 $as_echo "$ac_cv_build" >&6; }
3087 case $ac_cv_build in
3088 *-*-*) ;;
3089 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3090 esac
3091 build=$ac_cv_build
3092 ac_save_IFS=$IFS; IFS='-'
3093 set x $ac_cv_build
3094 shift
3095 build_cpu=$1
3096 build_vendor=$2
3097 shift; shift
3098 # Remember, the first character of IFS is used to create $*,
3099 # except with old shells:
3100 build_os=$*
3101 IFS=$ac_save_IFS
3102 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3106 $as_echo_n "checking host system type... " >&6; }
3107 if test "${ac_cv_host+set}" = set; then :
3108 $as_echo_n "(cached) " >&6
3109 else
3110 if test "x$host_alias" = x; then
3111 ac_cv_host=$ac_cv_build
3112 else
3113 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3114 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3119 $as_echo "$ac_cv_host" >&6; }
3120 case $ac_cv_host in
3121 *-*-*) ;;
3122 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3123 esac
3124 host=$ac_cv_host
3125 ac_save_IFS=$IFS; IFS='-'
3126 set x $ac_cv_host
3127 shift
3128 host_cpu=$1
3129 host_vendor=$2
3130 shift; shift
3131 # Remember, the first character of IFS is used to create $*,
3132 # except with old shells:
3133 host_os=$*
3134 IFS=$ac_save_IFS
3135 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3139 $as_echo_n "checking target system type... " >&6; }
3140 if test "${ac_cv_target+set}" = set; then :
3141 $as_echo_n "(cached) " >&6
3142 else
3143 if test "x$target_alias" = x; then
3144 ac_cv_target=$ac_cv_host
3145 else
3146 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3147 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3152 $as_echo "$ac_cv_target" >&6; }
3153 case $ac_cv_target in
3154 *-*-*) ;;
3155 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3156 esac
3157 target=$ac_cv_target
3158 ac_save_IFS=$IFS; IFS='-'
3159 set x $ac_cv_target
3160 shift
3161 target_cpu=$1
3162 target_vendor=$2
3163 shift; shift
3164 # Remember, the first character of IFS is used to create $*,
3165 # except with old shells:
3166 target_os=$*
3167 IFS=$ac_save_IFS
3168 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3171 # The aliases save the names the user supplied, while $host etc.
3172 # will get canonicalized.
3173 test -n "$target_alias" &&
3174 test "$program_prefix$program_suffix$program_transform_name" = \
3175 NONENONEs,x,x, &&
3176 program_prefix=${target_alias}-
3178 # Determine the noncanonical target name, for directory use.
3179 case ${build_alias} in
3180 "") build_noncanonical=${build} ;;
3181 *) build_noncanonical=${build_alias} ;;
3182 esac
3184 case ${host_alias} in
3185 "") host_noncanonical=${build_noncanonical} ;;
3186 *) host_noncanonical=${host_alias} ;;
3187 esac
3189 case ${target_alias} in
3190 "") target_noncanonical=${host_noncanonical} ;;
3191 *) target_noncanonical=${target_alias} ;;
3192 esac
3197 # Determine the target- and build-specific subdirectories
3199 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3200 # have matching libraries, they should use host libraries: Makefile.tpl
3201 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3202 # However, they still use the build modules, because the corresponding
3203 # host modules (e.g. bison) are only built for the host when bootstrap
3204 # finishes. So:
3205 # - build_subdir is where we find build modules, and never changes.
3206 # - build_libsubdir is where we find build libraries, and can be overridden.
3208 # Prefix 'build-' so this never conflicts with target_subdir.
3209 build_subdir="build-${build_noncanonical}"
3211 # Check whether --with-build-libsubdir was given.
3212 if test "${with_build_libsubdir+set}" = set; then :
3213 withval=$with_build_libsubdir; build_libsubdir="$withval"
3214 else
3215 build_libsubdir="$build_subdir"
3218 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3219 if ( test $srcdir = . && test -d gcc ) \
3220 || test -d $srcdir/../host-${host_noncanonical}; then
3221 host_subdir="host-${host_noncanonical}"
3222 else
3223 host_subdir=.
3225 # No prefix.
3226 target_subdir=${target_noncanonical}
3229 # Set program_transform_name
3230 test "$program_prefix" != NONE &&
3231 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3232 # Use a double $ so make ignores it.
3233 test "$program_suffix" != NONE &&
3234 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3235 # Double any \ or $.
3236 # By default was `s,x,x', remove it if useless.
3237 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3238 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3241 # Check for bogus environment variables.
3242 # Test if LIBRARY_PATH contains the notation for the current directory
3243 # since this would lead to problems installing/building glibc.
3244 # LIBRARY_PATH contains the current directory if one of the following
3245 # is true:
3246 # - one of the terminals (":" and ";") is the first or last sign
3247 # - two terminals occur directly after each other
3248 # - the path contains an element with a dot in it
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3250 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3251 case ${LIBRARY_PATH} in
3252 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3253 library_path_setting="contains current directory"
3256 library_path_setting="ok"
3258 esac
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3260 $as_echo "$library_path_setting" >&6; }
3261 if test "$library_path_setting" != "ok"; then
3262 as_fn_error "
3263 *** LIBRARY_PATH shouldn't contain the current directory when
3264 *** building gcc. Please change the environment variable
3265 *** and run configure again." "$LINENO" 5
3268 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3269 # since this would lead to problems installing/building glibc.
3270 # GCC_EXEC_PREFIX contains the current directory if one of the following
3271 # is true:
3272 # - one of the terminals (":" and ";") is the first or last sign
3273 # - two terminals occur directly after each other
3274 # - the path contains an element with a dot in it
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3276 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3277 case ${GCC_EXEC_PREFIX} in
3278 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3279 gcc_exec_prefix_setting="contains current directory"
3282 gcc_exec_prefix_setting="ok"
3284 esac
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3286 $as_echo "$gcc_exec_prefix_setting" >&6; }
3287 if test "$gcc_exec_prefix_setting" != "ok"; then
3288 as_fn_error "
3289 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3290 *** building gcc. Please change the environment variable
3291 *** and run configure again." "$LINENO" 5
3294 # -----------
3295 # Directories
3296 # -----------
3298 # Specify the local prefix
3299 local_prefix=
3301 # Check whether --with-local-prefix was given.
3302 if test "${with_local_prefix+set}" = set; then :
3303 withval=$with_local_prefix; case "${withval}" in
3304 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3305 no) ;;
3306 *) local_prefix=$with_local_prefix ;;
3307 esac
3311 # Default local prefix if it is empty
3312 if test x$local_prefix = x; then
3313 local_prefix=/usr/local
3316 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3317 # passed in by the toplevel make and thus we'd get different behavior
3318 # depending on where we built the sources.
3319 gcc_gxx_include_dir=
3320 # Specify the g++ header file directory
3322 # Check whether --with-gxx-include-dir was given.
3323 if test "${with_gxx_include_dir+set}" = set; then :
3324 withval=$with_gxx_include_dir; case "${withval}" in
3325 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3326 no) ;;
3327 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3328 esac
3332 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3333 if test x${gcc_gxx_include_dir} = x; then
3334 if test x${enable_version_specific_runtime_libs} = xyes; then
3335 gcc_gxx_include_dir='${libsubdir}/include/c++'
3336 else
3337 libstdcxx_incdir='include/c++/$(version)'
3338 if test x$host != x$target; then
3339 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3341 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3345 gcc_gxx_include_dir_add_sysroot=0
3346 if test "${with_sysroot+set}" = set; then
3347 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3348 if test "${gcc_gxx_without_sysroot}"; then
3349 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3350 gcc_gxx_include_dir_add_sysroot=1
3355 # Check whether --with-cpp_install_dir was given.
3356 if test "${with_cpp_install_dir+set}" = set; then :
3357 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3358 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3359 elif test x$withval != xno; then
3360 cpp_install_dir=$withval
3365 # We would like to our source tree to be readonly. However when releases or
3366 # pre-releases are generated, the flex/bison generated files as well as the
3367 # various formats of manuals need to be included along with the rest of the
3368 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3369 # just that.
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3372 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3373 # Check whether --enable-generated-files-in-srcdir was given.
3374 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3375 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3376 else
3377 generated_files_in_srcdir=no
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3382 $as_echo "$generated_files_in_srcdir" >&6; }
3384 if test "$generated_files_in_srcdir" = "yes"; then
3385 GENINSRC=''
3386 else
3387 GENINSRC='#'
3391 # -------------------
3392 # Find default linker
3393 # -------------------
3395 # With GNU ld
3397 # Check whether --with-gnu-ld was given.
3398 if test "${with_gnu_ld+set}" = set; then :
3399 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3400 else
3401 gnu_ld_flag=no
3405 # With pre-defined ld
3407 # Check whether --with-ld was given.
3408 if test "${with_ld+set}" = set; then :
3409 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3412 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3413 if test ! -x "$DEFAULT_LINKER"; then
3414 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3415 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3416 gnu_ld_flag=yes
3419 cat >>confdefs.h <<_ACEOF
3420 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3421 _ACEOF
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3426 $as_echo_n "checking whether a default linker was specified... " >&6; }
3427 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3428 if test x"$gnu_ld_flag" = x"no"; then
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3430 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3431 else
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3433 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3435 else
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3440 # With demangler in GNU ld
3442 # Check whether --with-demangler-in-ld was given.
3443 if test "${with_demangler_in_ld+set}" = set; then :
3444 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3445 else
3446 demangler_in_ld=yes
3450 # ----------------------
3451 # Find default assembler
3452 # ----------------------
3454 # With GNU as
3456 # Check whether --with-gnu-as was given.
3457 if test "${with_gnu_as+set}" = set; then :
3458 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3459 else
3460 gas_flag=no
3465 # Check whether --with-as was given.
3466 if test "${with_as+set}" = set; then :
3467 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3470 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3471 if test ! -x "$DEFAULT_ASSEMBLER"; then
3472 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3473 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3474 gas_flag=yes
3477 cat >>confdefs.h <<_ACEOF
3478 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3479 _ACEOF
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3484 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3485 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3486 if test x"$gas_flag" = x"no"; then
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3488 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3489 else
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3491 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3493 else
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3498 # ---------------
3499 # Find C compiler
3500 # ---------------
3502 # If a non-executable a.out is present (e.g. created by GNU as above even if
3503 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3504 # file, even when creating an executable, so an execution test fails.
3505 # Remove possible default executable files to avoid this.
3507 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3508 # Autoconf includes it.
3509 rm -f a.out a.exe b.out
3511 # Find the native compiler
3512 ac_ext=c
3513 ac_cpp='$CPP $CPPFLAGS'
3514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3517 if test -n "$ac_tool_prefix"; then
3518 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3519 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521 $as_echo_n "checking for $ac_word... " >&6; }
3522 if test "${ac_cv_prog_CC+set}" = set; then :
3523 $as_echo_n "(cached) " >&6
3524 else
3525 if test -n "$CC"; then
3526 ac_cv_prog_CC="$CC" # Let the user override the test.
3527 else
3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529 for as_dir in $PATH
3531 IFS=$as_save_IFS
3532 test -z "$as_dir" && as_dir=.
3533 for ac_exec_ext in '' $ac_executable_extensions; do
3534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3535 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3537 break 2
3539 done
3540 done
3541 IFS=$as_save_IFS
3545 CC=$ac_cv_prog_CC
3546 if test -n "$CC"; then
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3548 $as_echo "$CC" >&6; }
3549 else
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551 $as_echo "no" >&6; }
3556 if test -z "$ac_cv_prog_CC"; then
3557 ac_ct_CC=$CC
3558 # Extract the first word of "gcc", so it can be a program name with args.
3559 set dummy gcc; ac_word=$2
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3561 $as_echo_n "checking for $ac_word... " >&6; }
3562 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3563 $as_echo_n "(cached) " >&6
3564 else
3565 if test -n "$ac_ct_CC"; then
3566 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3567 else
3568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569 for as_dir in $PATH
3571 IFS=$as_save_IFS
3572 test -z "$as_dir" && as_dir=.
3573 for ac_exec_ext in '' $ac_executable_extensions; do
3574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3575 ac_cv_prog_ac_ct_CC="gcc"
3576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3577 break 2
3579 done
3580 done
3581 IFS=$as_save_IFS
3585 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3586 if test -n "$ac_ct_CC"; then
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3588 $as_echo "$ac_ct_CC" >&6; }
3589 else
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591 $as_echo "no" >&6; }
3594 if test "x$ac_ct_CC" = x; then
3595 CC=""
3596 else
3597 case $cross_compiling:$ac_tool_warned in
3598 yes:)
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3601 ac_tool_warned=yes ;;
3602 esac
3603 CC=$ac_ct_CC
3605 else
3606 CC="$ac_cv_prog_CC"
3609 if test -z "$CC"; then
3610 if test -n "$ac_tool_prefix"; then
3611 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3612 set dummy ${ac_tool_prefix}cc; ac_word=$2
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614 $as_echo_n "checking for $ac_word... " >&6; }
3615 if test "${ac_cv_prog_CC+set}" = set; then :
3616 $as_echo_n "(cached) " >&6
3617 else
3618 if test -n "$CC"; then
3619 ac_cv_prog_CC="$CC" # Let the user override the test.
3620 else
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH
3624 IFS=$as_save_IFS
3625 test -z "$as_dir" && as_dir=.
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3628 ac_cv_prog_CC="${ac_tool_prefix}cc"
3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 break 2
3632 done
3633 done
3634 IFS=$as_save_IFS
3638 CC=$ac_cv_prog_CC
3639 if test -n "$CC"; then
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3641 $as_echo "$CC" >&6; }
3642 else
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3650 if test -z "$CC"; then
3651 # Extract the first word of "cc", so it can be a program name with args.
3652 set dummy cc; ac_word=$2
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if test "${ac_cv_prog_CC+set}" = set; then :
3656 $as_echo_n "(cached) " >&6
3657 else
3658 if test -n "$CC"; then
3659 ac_cv_prog_CC="$CC" # Let the user override the test.
3660 else
3661 ac_prog_rejected=no
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 for as_dir in $PATH
3665 IFS=$as_save_IFS
3666 test -z "$as_dir" && as_dir=.
3667 for ac_exec_ext in '' $ac_executable_extensions; do
3668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3669 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3670 ac_prog_rejected=yes
3671 continue
3673 ac_cv_prog_CC="cc"
3674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 break 2
3677 done
3678 done
3679 IFS=$as_save_IFS
3681 if test $ac_prog_rejected = yes; then
3682 # We found a bogon in the path, so make sure we never use it.
3683 set dummy $ac_cv_prog_CC
3684 shift
3685 if test $# != 0; then
3686 # We chose a different compiler from the bogus one.
3687 # However, it has the same basename, so the bogon will be chosen
3688 # first if we set CC to just the basename; use the full file name.
3689 shift
3690 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3695 CC=$ac_cv_prog_CC
3696 if test -n "$CC"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3698 $as_echo "$CC" >&6; }
3699 else
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3706 if test -z "$CC"; then
3707 if test -n "$ac_tool_prefix"; then
3708 for ac_prog in cl.exe
3710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3711 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3713 $as_echo_n "checking for $ac_word... " >&6; }
3714 if test "${ac_cv_prog_CC+set}" = set; then :
3715 $as_echo_n "(cached) " >&6
3716 else
3717 if test -n "$CC"; then
3718 ac_cv_prog_CC="$CC" # Let the user override the test.
3719 else
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721 for as_dir in $PATH
3723 IFS=$as_save_IFS
3724 test -z "$as_dir" && as_dir=.
3725 for ac_exec_ext in '' $ac_executable_extensions; do
3726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3727 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3729 break 2
3731 done
3732 done
3733 IFS=$as_save_IFS
3737 CC=$ac_cv_prog_CC
3738 if test -n "$CC"; then
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3740 $as_echo "$CC" >&6; }
3741 else
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743 $as_echo "no" >&6; }
3747 test -n "$CC" && break
3748 done
3750 if test -z "$CC"; then
3751 ac_ct_CC=$CC
3752 for ac_prog in cl.exe
3754 # Extract the first word of "$ac_prog", so it can be a program name with args.
3755 set dummy $ac_prog; ac_word=$2
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3758 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3759 $as_echo_n "(cached) " >&6
3760 else
3761 if test -n "$ac_ct_CC"; then
3762 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3763 else
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771 ac_cv_prog_ac_ct_CC="$ac_prog"
3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 break 2
3775 done
3776 done
3777 IFS=$as_save_IFS
3781 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3782 if test -n "$ac_ct_CC"; then
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3784 $as_echo "$ac_ct_CC" >&6; }
3785 else
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 $as_echo "no" >&6; }
3791 test -n "$ac_ct_CC" && break
3792 done
3794 if test "x$ac_ct_CC" = x; then
3795 CC=""
3796 else
3797 case $cross_compiling:$ac_tool_warned in
3798 yes:)
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3801 ac_tool_warned=yes ;;
3802 esac
3803 CC=$ac_ct_CC
3810 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3812 as_fn_error "no acceptable C compiler found in \$PATH
3813 See \`config.log' for more details." "$LINENO" 5; }
3815 # Provide some information about the compiler.
3816 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3817 set X $ac_compile
3818 ac_compiler=$2
3819 for ac_option in --version -v -V -qversion; do
3820 { { ac_try="$ac_compiler $ac_option >&5"
3821 case "(($ac_try" in
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3824 esac
3825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3826 $as_echo "$ac_try_echo"; } >&5
3827 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3828 ac_status=$?
3829 if test -s conftest.err; then
3830 sed '10a\
3831 ... rest of stderr output deleted ...
3832 10q' conftest.err >conftest.er1
3833 cat conftest.er1 >&5
3834 rm -f conftest.er1 conftest.err
3836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837 test $ac_status = 0; }
3838 done
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3844 main ()
3848 return 0;
3850 _ACEOF
3851 ac_clean_files_save=$ac_clean_files
3852 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3853 # Try to create an executable without -o first, disregard a.out.
3854 # It will help us diagnose broken compilers, and finding out an intuition
3855 # of exeext.
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3857 $as_echo_n "checking for C compiler default output file name... " >&6; }
3858 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3860 # The possible output files:
3861 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3863 ac_rmfiles=
3864 for ac_file in $ac_files
3866 case $ac_file in
3867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3868 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3869 esac
3870 done
3871 rm -f $ac_rmfiles
3873 if { { ac_try="$ac_link_default"
3874 case "(($ac_try" in
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3877 esac
3878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879 $as_echo "$ac_try_echo"; } >&5
3880 (eval "$ac_link_default") 2>&5
3881 ac_status=$?
3882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883 test $ac_status = 0; }; then :
3884 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3885 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3886 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3887 # so that the user can short-circuit this test for compilers unknown to
3888 # Autoconf.
3889 for ac_file in $ac_files ''
3891 test -f "$ac_file" || continue
3892 case $ac_file in
3893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3895 [ab].out )
3896 # We found the default executable, but exeext='' is most
3897 # certainly right.
3898 break;;
3899 *.* )
3900 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3901 then :; else
3902 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3904 # We set ac_cv_exeext here because the later test for it is not
3905 # safe: cross compilers may not add the suffix if given an `-o'
3906 # argument, so we may need to know it at that point already.
3907 # Even if this section looks crufty: it has the advantage of
3908 # actually working.
3909 break;;
3911 break;;
3912 esac
3913 done
3914 test "$ac_cv_exeext" = no && ac_cv_exeext=
3916 else
3917 ac_file=''
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3920 $as_echo "$ac_file" >&6; }
3921 if test -z "$ac_file"; then :
3922 $as_echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927 { as_fn_set_status 77
3928 as_fn_error "C compiler cannot create executables
3929 See \`config.log' for more details." "$LINENO" 5; }; }
3931 ac_exeext=$ac_cv_exeext
3933 # Check that the compiler produces executables we can run. If not, either
3934 # the compiler is broken, or we cross compile.
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3936 $as_echo_n "checking whether the C compiler works... " >&6; }
3937 # If not cross compiling, check that we can run a simple program.
3938 if test "$cross_compiling" != yes; then
3939 if { ac_try='./$ac_file'
3940 { { case "(($ac_try" in
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3943 esac
3944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3945 $as_echo "$ac_try_echo"; } >&5
3946 (eval "$ac_try") 2>&5
3947 ac_status=$?
3948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3949 test $ac_status = 0; }; }; then
3950 cross_compiling=no
3951 else
3952 if test "$cross_compiling" = maybe; then
3953 cross_compiling=yes
3954 else
3955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3957 as_fn_error "cannot run C compiled programs.
3958 If you meant to cross compile, use \`--host'.
3959 See \`config.log' for more details." "$LINENO" 5; }
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3964 $as_echo "yes" >&6; }
3966 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3967 ac_clean_files=$ac_clean_files_save
3968 # Check that the compiler produces executables we can run. If not, either
3969 # the compiler is broken, or we cross compile.
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3971 $as_echo_n "checking whether we are cross compiling... " >&6; }
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3973 $as_echo "$cross_compiling" >&6; }
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3976 $as_echo_n "checking for suffix of executables... " >&6; }
3977 if { { ac_try="$ac_link"
3978 case "(($ac_try" in
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3981 esac
3982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3983 $as_echo "$ac_try_echo"; } >&5
3984 (eval "$ac_link") 2>&5
3985 ac_status=$?
3986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3987 test $ac_status = 0; }; then :
3988 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3989 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3990 # work properly (i.e., refer to `conftest.exe'), while it won't with
3991 # `rm'.
3992 for ac_file in conftest.exe conftest conftest.*; do
3993 test -f "$ac_file" || continue
3994 case $ac_file in
3995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3996 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3997 break;;
3998 * ) break;;
3999 esac
4000 done
4001 else
4002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4004 as_fn_error "cannot compute suffix of executables: cannot compile and link
4005 See \`config.log' for more details." "$LINENO" 5; }
4007 rm -f conftest$ac_cv_exeext
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4009 $as_echo "$ac_cv_exeext" >&6; }
4011 rm -f conftest.$ac_ext
4012 EXEEXT=$ac_cv_exeext
4013 ac_exeext=$EXEEXT
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4015 $as_echo_n "checking for suffix of object files... " >&6; }
4016 if test "${ac_cv_objext+set}" = set; then :
4017 $as_echo_n "(cached) " >&6
4018 else
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4023 main ()
4027 return 0;
4029 _ACEOF
4030 rm -f conftest.o conftest.obj
4031 if { { ac_try="$ac_compile"
4032 case "(($ac_try" in
4033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034 *) ac_try_echo=$ac_try;;
4035 esac
4036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4037 $as_echo "$ac_try_echo"; } >&5
4038 (eval "$ac_compile") 2>&5
4039 ac_status=$?
4040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4041 test $ac_status = 0; }; then :
4042 for ac_file in conftest.o conftest.obj conftest.*; do
4043 test -f "$ac_file" || continue;
4044 case $ac_file in
4045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4046 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4047 break;;
4048 esac
4049 done
4050 else
4051 $as_echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4056 as_fn_error "cannot compute suffix of object files: cannot compile
4057 See \`config.log' for more details." "$LINENO" 5; }
4059 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4062 $as_echo "$ac_cv_objext" >&6; }
4063 OBJEXT=$ac_cv_objext
4064 ac_objext=$OBJEXT
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4066 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4067 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4068 $as_echo_n "(cached) " >&6
4069 else
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4074 main ()
4076 #ifndef __GNUC__
4077 choke me
4078 #endif
4081 return 0;
4083 _ACEOF
4084 if ac_fn_c_try_compile "$LINENO"; then :
4085 ac_compiler_gnu=yes
4086 else
4087 ac_compiler_gnu=no
4089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4094 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4095 if test $ac_compiler_gnu = yes; then
4096 GCC=yes
4097 else
4098 GCC=
4100 ac_test_CFLAGS=${CFLAGS+set}
4101 ac_save_CFLAGS=$CFLAGS
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4103 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4104 if test "${ac_cv_prog_cc_g+set}" = set; then :
4105 $as_echo_n "(cached) " >&6
4106 else
4107 ac_save_c_werror_flag=$ac_c_werror_flag
4108 ac_c_werror_flag=yes
4109 ac_cv_prog_cc_g=no
4110 CFLAGS="-g"
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4115 main ()
4119 return 0;
4121 _ACEOF
4122 if ac_fn_c_try_compile "$LINENO"; then :
4123 ac_cv_prog_cc_g=yes
4124 else
4125 CFLAGS=""
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 :
4139 else
4140 ac_c_werror_flag=$ac_save_c_werror_flag
4141 CFLAGS="-g"
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4146 main ()
4150 return 0;
4152 _ACEOF
4153 if ac_fn_c_try_compile "$LINENO"; then :
4154 ac_cv_prog_cc_g=yes
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161 ac_c_werror_flag=$ac_save_c_werror_flag
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4164 $as_echo "$ac_cv_prog_cc_g" >&6; }
4165 if test "$ac_test_CFLAGS" = set; then
4166 CFLAGS=$ac_save_CFLAGS
4167 elif test $ac_cv_prog_cc_g = yes; then
4168 if test "$GCC" = yes; then
4169 CFLAGS="-g -O2"
4170 else
4171 CFLAGS="-g"
4173 else
4174 if test "$GCC" = yes; then
4175 CFLAGS="-O2"
4176 else
4177 CFLAGS=
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4181 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4182 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4183 $as_echo_n "(cached) " >&6
4184 else
4185 ac_cv_prog_cc_c89=no
4186 ac_save_CC=$CC
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4189 #include <stdarg.h>
4190 #include <stdio.h>
4191 #include <sys/types.h>
4192 #include <sys/stat.h>
4193 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4194 struct buf { int x; };
4195 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4196 static char *e (p, i)
4197 char **p;
4198 int i;
4200 return p[i];
4202 static char *f (char * (*g) (char **, int), char **p, ...)
4204 char *s;
4205 va_list v;
4206 va_start (v,p);
4207 s = g (p, va_arg (v,int));
4208 va_end (v);
4209 return s;
4212 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4213 function prototypes and stuff, but not '\xHH' hex character constants.
4214 These don't provoke an error unfortunately, instead are silently treated
4215 as 'x'. The following induces an error, until -std is added to get
4216 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4217 array size at least. It's necessary to write '\x00'==0 to get something
4218 that's true only with -std. */
4219 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4221 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4222 inside strings and character constants. */
4223 #define FOO(x) 'x'
4224 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4226 int test (int i, double x);
4227 struct s1 {int (*f) (int a);};
4228 struct s2 {int (*f) (double a);};
4229 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4230 int argc;
4231 char **argv;
4233 main ()
4235 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4237 return 0;
4239 _ACEOF
4240 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4241 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4243 CC="$ac_save_CC $ac_arg"
4244 if ac_fn_c_try_compile "$LINENO"; then :
4245 ac_cv_prog_cc_c89=$ac_arg
4247 rm -f core conftest.err conftest.$ac_objext
4248 test "x$ac_cv_prog_cc_c89" != "xno" && break
4249 done
4250 rm -f conftest.$ac_ext
4251 CC=$ac_save_CC
4254 # AC_CACHE_VAL
4255 case "x$ac_cv_prog_cc_c89" in
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4258 $as_echo "none needed" >&6; } ;;
4259 xno)
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4261 $as_echo "unsupported" >&6; } ;;
4263 CC="$CC $ac_cv_prog_cc_c89"
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4265 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4266 esac
4267 if test "x$ac_cv_prog_cc_c89" != xno; then :
4271 ac_ext=c
4272 ac_cpp='$CPP $CPPFLAGS'
4273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4277 ac_ext=cpp
4278 ac_cpp='$CXXCPP $CPPFLAGS'
4279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4282 if test -z "$CXX"; then
4283 if test -n "$CCC"; then
4284 CXX=$CCC
4285 else
4286 if test -n "$ac_tool_prefix"; then
4287 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4289 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4290 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4292 $as_echo_n "checking for $ac_word... " >&6; }
4293 if test "${ac_cv_prog_CXX+set}" = set; then :
4294 $as_echo_n "(cached) " >&6
4295 else
4296 if test -n "$CXX"; then
4297 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4298 else
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 for as_dir in $PATH
4302 IFS=$as_save_IFS
4303 test -z "$as_dir" && as_dir=.
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4306 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4308 break 2
4310 done
4311 done
4312 IFS=$as_save_IFS
4316 CXX=$ac_cv_prog_CXX
4317 if test -n "$CXX"; then
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4319 $as_echo "$CXX" >&6; }
4320 else
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 $as_echo "no" >&6; }
4326 test -n "$CXX" && break
4327 done
4329 if test -z "$CXX"; then
4330 ac_ct_CXX=$CXX
4331 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4333 # Extract the first word of "$ac_prog", so it can be a program name with args.
4334 set dummy $ac_prog; ac_word=$2
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4336 $as_echo_n "checking for $ac_word... " >&6; }
4337 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 if test -n "$ac_ct_CXX"; then
4341 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4342 else
4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 for as_dir in $PATH
4346 IFS=$as_save_IFS
4347 test -z "$as_dir" && as_dir=.
4348 for ac_exec_ext in '' $ac_executable_extensions; do
4349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4350 ac_cv_prog_ac_ct_CXX="$ac_prog"
4351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4352 break 2
4354 done
4355 done
4356 IFS=$as_save_IFS
4360 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4361 if test -n "$ac_ct_CXX"; then
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4363 $as_echo "$ac_ct_CXX" >&6; }
4364 else
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4370 test -n "$ac_ct_CXX" && break
4371 done
4373 if test "x$ac_ct_CXX" = x; then
4374 CXX="g++"
4375 else
4376 case $cross_compiling:$ac_tool_warned in
4377 yes:)
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4380 ac_tool_warned=yes ;;
4381 esac
4382 CXX=$ac_ct_CXX
4388 # Provide some information about the compiler.
4389 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4390 set X $ac_compile
4391 ac_compiler=$2
4392 for ac_option in --version -v -V -qversion; do
4393 { { ac_try="$ac_compiler $ac_option >&5"
4394 case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4397 esac
4398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4399 $as_echo "$ac_try_echo"; } >&5
4400 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4401 ac_status=$?
4402 if test -s conftest.err; then
4403 sed '10a\
4404 ... rest of stderr output deleted ...
4405 10q' conftest.err >conftest.er1
4406 cat conftest.er1 >&5
4407 rm -f conftest.er1 conftest.err
4409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4410 test $ac_status = 0; }
4411 done
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4414 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4415 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4416 $as_echo_n "(cached) " >&6
4417 else
4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h. */
4422 main ()
4424 #ifndef __GNUC__
4425 choke me
4426 #endif
4429 return 0;
4431 _ACEOF
4432 if ac_fn_cxx_try_compile "$LINENO"; then :
4433 ac_compiler_gnu=yes
4434 else
4435 ac_compiler_gnu=no
4437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4442 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4443 if test $ac_compiler_gnu = yes; then
4444 GXX=yes
4445 else
4446 GXX=
4448 ac_test_CXXFLAGS=${CXXFLAGS+set}
4449 ac_save_CXXFLAGS=$CXXFLAGS
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4451 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4452 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4453 $as_echo_n "(cached) " >&6
4454 else
4455 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4456 ac_cxx_werror_flag=yes
4457 ac_cv_prog_cxx_g=no
4458 CXXFLAGS="-g"
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4463 main ()
4467 return 0;
4469 _ACEOF
4470 if ac_fn_cxx_try_compile "$LINENO"; then :
4471 ac_cv_prog_cxx_g=yes
4472 else
4473 CXXFLAGS=""
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 :
4487 else
4488 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4489 CXXFLAGS="-g"
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4494 main ()
4498 return 0;
4500 _ACEOF
4501 if ac_fn_cxx_try_compile "$LINENO"; then :
4502 ac_cv_prog_cxx_g=yes
4504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4509 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4512 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4513 if test "$ac_test_CXXFLAGS" = set; then
4514 CXXFLAGS=$ac_save_CXXFLAGS
4515 elif test $ac_cv_prog_cxx_g = yes; then
4516 if test "$GXX" = yes; then
4517 CXXFLAGS="-g -O2"
4518 else
4519 CXXFLAGS="-g"
4521 else
4522 if test "$GXX" = yes; then
4523 CXXFLAGS="-O2"
4524 else
4525 CXXFLAGS=
4528 ac_ext=c
4529 ac_cpp='$CPP $CPPFLAGS'
4530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4537 if test -n "$ac_tool_prefix"; then
4538 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4539 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4541 $as_echo_n "checking for $ac_word... " >&6; }
4542 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4543 $as_echo_n "(cached) " >&6
4544 else
4545 if test -n "$GNATBIND"; then
4546 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4547 else
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 break 2
4559 done
4560 done
4561 IFS=$as_save_IFS
4565 GNATBIND=$ac_cv_prog_GNATBIND
4566 if test -n "$GNATBIND"; then
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4568 $as_echo "$GNATBIND" >&6; }
4569 else
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571 $as_echo "no" >&6; }
4576 if test -z "$ac_cv_prog_GNATBIND"; then
4577 ac_ct_GNATBIND=$GNATBIND
4578 # Extract the first word of "gnatbind", so it can be a program name with args.
4579 set dummy gnatbind; ac_word=$2
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4581 $as_echo_n "checking for $ac_word... " >&6; }
4582 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4583 $as_echo_n "(cached) " >&6
4584 else
4585 if test -n "$ac_ct_GNATBIND"; then
4586 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4587 else
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 for as_dir in $PATH
4591 IFS=$as_save_IFS
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4595 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 break 2
4599 done
4600 done
4601 IFS=$as_save_IFS
4605 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4606 if test -n "$ac_ct_GNATBIND"; then
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4608 $as_echo "$ac_ct_GNATBIND" >&6; }
4609 else
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611 $as_echo "no" >&6; }
4614 if test "x$ac_ct_GNATBIND" = x; then
4615 GNATBIND="no"
4616 else
4617 case $cross_compiling:$ac_tool_warned in
4618 yes:)
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4621 ac_tool_warned=yes ;;
4622 esac
4623 GNATBIND=$ac_ct_GNATBIND
4625 else
4626 GNATBIND="$ac_cv_prog_GNATBIND"
4629 if test -n "$ac_tool_prefix"; then
4630 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4631 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4633 $as_echo_n "checking for $ac_word... " >&6; }
4634 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4635 $as_echo_n "(cached) " >&6
4636 else
4637 if test -n "$GNATMAKE"; then
4638 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4639 else
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH
4643 IFS=$as_save_IFS
4644 test -z "$as_dir" && as_dir=.
4645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4647 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4649 break 2
4651 done
4652 done
4653 IFS=$as_save_IFS
4657 GNATMAKE=$ac_cv_prog_GNATMAKE
4658 if test -n "$GNATMAKE"; then
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4660 $as_echo "$GNATMAKE" >&6; }
4661 else
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663 $as_echo "no" >&6; }
4668 if test -z "$ac_cv_prog_GNATMAKE"; then
4669 ac_ct_GNATMAKE=$GNATMAKE
4670 # Extract the first word of "gnatmake", so it can be a program name with args.
4671 set dummy gnatmake; ac_word=$2
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4673 $as_echo_n "checking for $ac_word... " >&6; }
4674 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4675 $as_echo_n "(cached) " >&6
4676 else
4677 if test -n "$ac_ct_GNATMAKE"; then
4678 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4679 else
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 for as_dir in $PATH
4683 IFS=$as_save_IFS
4684 test -z "$as_dir" && as_dir=.
4685 for ac_exec_ext in '' $ac_executable_extensions; do
4686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4687 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 break 2
4691 done
4692 done
4693 IFS=$as_save_IFS
4697 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4698 if test -n "$ac_ct_GNATMAKE"; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4700 $as_echo "$ac_ct_GNATMAKE" >&6; }
4701 else
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4703 $as_echo "no" >&6; }
4706 if test "x$ac_ct_GNATMAKE" = x; then
4707 GNATMAKE="no"
4708 else
4709 case $cross_compiling:$ac_tool_warned in
4710 yes:)
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4713 ac_tool_warned=yes ;;
4714 esac
4715 GNATMAKE=$ac_ct_GNATMAKE
4717 else
4718 GNATMAKE="$ac_cv_prog_GNATMAKE"
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4722 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4723 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4724 $as_echo_n "(cached) " >&6
4725 else
4726 cat >conftest.adb <<EOF
4727 procedure conftest is begin null; end conftest;
4729 acx_cv_cc_gcc_supports_ada=no
4730 # There is a bug in old released versions of GCC which causes the
4731 # driver to exit successfully when the appropriate language module
4732 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4733 # Therefore we must check for the error message as well as an
4734 # unsuccessful exit.
4735 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4736 # given a .adb file, but produce no object file. So we must check
4737 # if an object file was really produced to guard against this.
4738 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4739 if test x"$errors" = x && test -f conftest.$ac_objext; then
4740 acx_cv_cc_gcc_supports_ada=yes
4742 rm -f conftest.*
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4745 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4747 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4748 have_gnat=yes
4749 else
4750 have_gnat=no
4754 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4755 # optimizations to be activated explicitly by the toplevel.
4756 case "$CC" in
4757 */prev-gcc/xgcc*) ;;
4758 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4759 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4760 esac
4764 # Determine PICFLAG for target gnatlib.
4769 case "${target}" in
4770 # PIC is the default on some targets or must not be used.
4771 *-*-darwin*)
4772 # PIC is the default on this platform
4773 # Common symbols not allowed in MH_DYLIB files
4774 PICFLAG_FOR_TARGET=-fno-common
4776 alpha*-dec-osf5*)
4777 # PIC is the default.
4779 hppa*64*-*-hpux*)
4780 # PIC is the default for 64-bit PA HP-UX.
4782 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4784 i[34567]86-*-mingw* | x86_64-*-mingw*)
4786 i[34567]86-*-interix[3-9]*)
4787 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4788 # Instead, we relocate shared libraries at runtime.
4790 i[34567]86-*-nto-qnx*)
4791 # QNX uses GNU C++, but need to define -shared option too, otherwise
4792 # it will coredump.
4793 PICFLAG_FOR_TARGET='-fPIC -shared'
4795 i[34567]86-pc-msdosdjgpp*)
4796 # DJGPP does not support shared libraries at all.
4798 ia64*-*-hpux*)
4799 # On IA64 HP-UX, PIC is the default but the pic flag
4800 # sets the default TLS model and affects inlining.
4801 PICFLAG_FOR_TARGET=-fPIC
4803 mips-sgi-irix6*)
4804 # PIC is the default.
4806 rs6000-ibm-aix* | powerpc-ibm-aix*)
4807 # All AIX code is PIC.
4810 # Some targets support both -fPIC and -fpic, but prefer the latter.
4811 # FIXME: Why?
4812 i[34567]86-*-* | x86_64-*-*)
4813 PICFLAG_FOR_TARGET=-fpic
4815 # FIXME: Override -fPIC default in libgcc only?
4816 sh-*-linux* | sh[2346lbe]*-*-linux*)
4817 PICFLAG_FOR_TARGET=-fpic
4819 # FIXME: Simplify to sh*-*-netbsd*?
4820 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4821 sh64-*-netbsd* | sh64l*-*-netbsd*)
4822 PICFLAG_FOR_TARGET=-fpic
4824 # Default to -fPIC unless specified otherwise.
4826 PICFLAG_FOR_TARGET=-fPIC
4828 esac
4830 # If the user explicitly uses -fpic/-fPIC, keep that.
4831 case "${CFLAGS_FOR_TARGET}" in
4832 *-fpic*)
4833 PICFLAG_FOR_TARGET=-fpic
4835 *-fPIC*)
4836 PICFLAG_FOR_TARGET=-fPIC
4838 esac
4842 # -------------------------
4843 # Check C compiler features
4844 # -------------------------
4847 ac_ext=c
4848 ac_cpp='$CPP $CPPFLAGS'
4849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4853 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4854 # On Suns, sometimes $CPP names a directory.
4855 if test -n "$CPP" && test -d "$CPP"; then
4856 CPP=
4858 if test -z "$CPP"; then
4859 if test "${ac_cv_prog_CPP+set}" = set; then :
4860 $as_echo_n "(cached) " >&6
4861 else
4862 # Double quotes because CPP needs to be expanded
4863 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4865 ac_preproc_ok=false
4866 for ac_c_preproc_warn_flag in '' yes
4868 # Use a header file that comes with gcc, so configuring glibc
4869 # with a fresh cross-compiler works.
4870 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4871 # <limits.h> exists even on freestanding compilers.
4872 # On the NeXT, cc -E runs the code through the compiler's parser,
4873 # not just through cpp. "Syntax error" is here to catch this case.
4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4876 #ifdef __STDC__
4877 # include <limits.h>
4878 #else
4879 # include <assert.h>
4880 #endif
4881 Syntax error
4882 _ACEOF
4883 if ac_fn_c_try_cpp "$LINENO"; then :
4885 else
4886 # Broken: fails on valid input.
4887 continue
4889 rm -f conftest.err conftest.$ac_ext
4891 # OK, works on sane cases. Now check whether nonexistent headers
4892 # can be detected and how.
4893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4894 /* end confdefs.h. */
4895 #include <ac_nonexistent.h>
4896 _ACEOF
4897 if ac_fn_c_try_cpp "$LINENO"; then :
4898 # Broken: success on invalid input.
4899 continue
4900 else
4901 # Passes both tests.
4902 ac_preproc_ok=:
4903 break
4905 rm -f conftest.err conftest.$ac_ext
4907 done
4908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4909 rm -f conftest.err conftest.$ac_ext
4910 if $ac_preproc_ok; then :
4911 break
4914 done
4915 ac_cv_prog_CPP=$CPP
4918 CPP=$ac_cv_prog_CPP
4919 else
4920 ac_cv_prog_CPP=$CPP
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4923 $as_echo "$CPP" >&6; }
4924 ac_preproc_ok=false
4925 for ac_c_preproc_warn_flag in '' yes
4927 # Use a header file that comes with gcc, so configuring glibc
4928 # with a fresh cross-compiler works.
4929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4930 # <limits.h> exists even on freestanding compilers.
4931 # On the NeXT, cc -E runs the code through the compiler's parser,
4932 # not just through cpp. "Syntax error" is here to catch this case.
4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934 /* end confdefs.h. */
4935 #ifdef __STDC__
4936 # include <limits.h>
4937 #else
4938 # include <assert.h>
4939 #endif
4940 Syntax error
4941 _ACEOF
4942 if ac_fn_c_try_cpp "$LINENO"; then :
4944 else
4945 # Broken: fails on valid input.
4946 continue
4948 rm -f conftest.err conftest.$ac_ext
4950 # OK, works on sane cases. Now check whether nonexistent headers
4951 # can be detected and how.
4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h. */
4954 #include <ac_nonexistent.h>
4955 _ACEOF
4956 if ac_fn_c_try_cpp "$LINENO"; then :
4957 # Broken: success on invalid input.
4958 continue
4959 else
4960 # Passes both tests.
4961 ac_preproc_ok=:
4962 break
4964 rm -f conftest.err conftest.$ac_ext
4966 done
4967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4968 rm -f conftest.err conftest.$ac_ext
4969 if $ac_preproc_ok; then :
4971 else
4972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4974 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4975 See \`config.log' for more details." "$LINENO" 5; }
4978 ac_ext=c
4979 ac_cpp='$CPP $CPPFLAGS'
4980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4986 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4987 if test "${ac_cv_path_GREP+set}" = set; then :
4988 $as_echo_n "(cached) " >&6
4989 else
4990 if test -z "$GREP"; then
4991 ac_path_GREP_found=false
4992 # Loop through the user's path and test for each of PROGNAME-LIST
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
4998 for ac_prog in grep ggrep; do
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5001 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5002 # Check for GNU ac_path_GREP and select it if it is found.
5003 # Check for GNU $ac_path_GREP
5004 case `"$ac_path_GREP" --version 2>&1` in
5005 *GNU*)
5006 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5008 ac_count=0
5009 $as_echo_n 0123456789 >"conftest.in"
5010 while :
5012 cat "conftest.in" "conftest.in" >"conftest.tmp"
5013 mv "conftest.tmp" "conftest.in"
5014 cp "conftest.in" "conftest.nl"
5015 $as_echo 'GREP' >> "conftest.nl"
5016 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5017 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5018 as_fn_arith $ac_count + 1 && ac_count=$as_val
5019 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5020 # Best one so far, save it but keep looking for a better one
5021 ac_cv_path_GREP="$ac_path_GREP"
5022 ac_path_GREP_max=$ac_count
5024 # 10*(2^10) chars as input seems more than enough
5025 test $ac_count -gt 10 && break
5026 done
5027 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5028 esac
5030 $ac_path_GREP_found && break 3
5031 done
5032 done
5033 done
5034 IFS=$as_save_IFS
5035 if test -z "$ac_cv_path_GREP"; then
5036 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5038 else
5039 ac_cv_path_GREP=$GREP
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5044 $as_echo "$ac_cv_path_GREP" >&6; }
5045 GREP="$ac_cv_path_GREP"
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5049 $as_echo_n "checking for egrep... " >&6; }
5050 if test "${ac_cv_path_EGREP+set}" = set; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5054 then ac_cv_path_EGREP="$GREP -E"
5055 else
5056 if test -z "$EGREP"; then
5057 ac_path_EGREP_found=false
5058 # Loop through the user's path and test for each of PROGNAME-LIST
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5062 IFS=$as_save_IFS
5063 test -z "$as_dir" && as_dir=.
5064 for ac_prog in egrep; do
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5067 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5068 # Check for GNU ac_path_EGREP and select it if it is found.
5069 # Check for GNU $ac_path_EGREP
5070 case `"$ac_path_EGREP" --version 2>&1` in
5071 *GNU*)
5072 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5074 ac_count=0
5075 $as_echo_n 0123456789 >"conftest.in"
5076 while :
5078 cat "conftest.in" "conftest.in" >"conftest.tmp"
5079 mv "conftest.tmp" "conftest.in"
5080 cp "conftest.in" "conftest.nl"
5081 $as_echo 'EGREP' >> "conftest.nl"
5082 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5083 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5084 as_fn_arith $ac_count + 1 && ac_count=$as_val
5085 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5086 # Best one so far, save it but keep looking for a better one
5087 ac_cv_path_EGREP="$ac_path_EGREP"
5088 ac_path_EGREP_max=$ac_count
5090 # 10*(2^10) chars as input seems more than enough
5091 test $ac_count -gt 10 && break
5092 done
5093 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5094 esac
5096 $ac_path_EGREP_found && break 3
5097 done
5098 done
5099 done
5100 IFS=$as_save_IFS
5101 if test -z "$ac_cv_path_EGREP"; then
5102 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5104 else
5105 ac_cv_path_EGREP=$EGREP
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5111 $as_echo "$ac_cv_path_EGREP" >&6; }
5112 EGREP="$ac_cv_path_EGREP"
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5116 $as_echo_n "checking for ANSI C header files... " >&6; }
5117 if test "${ac_cv_header_stdc+set}" = set; then :
5118 $as_echo_n "(cached) " >&6
5119 else
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5122 #include <stdlib.h>
5123 #include <stdarg.h>
5124 #include <string.h>
5125 #include <float.h>
5128 main ()
5132 return 0;
5134 _ACEOF
5135 if ac_fn_c_try_compile "$LINENO"; then :
5136 ac_cv_header_stdc=yes
5137 else
5138 ac_cv_header_stdc=no
5140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5142 if test $ac_cv_header_stdc = yes; then
5143 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5145 /* end confdefs.h. */
5146 #include <string.h>
5148 _ACEOF
5149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5150 $EGREP "memchr" >/dev/null 2>&1; then :
5152 else
5153 ac_cv_header_stdc=no
5155 rm -f conftest*
5159 if test $ac_cv_header_stdc = yes; then
5160 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163 #include <stdlib.h>
5165 _ACEOF
5166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5167 $EGREP "free" >/dev/null 2>&1; then :
5169 else
5170 ac_cv_header_stdc=no
5172 rm -f conftest*
5176 if test $ac_cv_header_stdc = yes; then
5177 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5178 if test "$cross_compiling" = yes; then :
5180 else
5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182 /* end confdefs.h. */
5183 #include <ctype.h>
5184 #include <stdlib.h>
5185 #if ((' ' & 0x0FF) == 0x020)
5186 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5187 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5188 #else
5189 # define ISLOWER(c) \
5190 (('a' <= (c) && (c) <= 'i') \
5191 || ('j' <= (c) && (c) <= 'r') \
5192 || ('s' <= (c) && (c) <= 'z'))
5193 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5194 #endif
5196 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5198 main ()
5200 int i;
5201 for (i = 0; i < 256; i++)
5202 if (XOR (islower (i), ISLOWER (i))
5203 || toupper (i) != TOUPPER (i))
5204 return 2;
5205 return 0;
5207 _ACEOF
5208 if ac_fn_c_try_run "$LINENO"; then :
5210 else
5211 ac_cv_header_stdc=no
5213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5214 conftest.$ac_objext conftest.beam conftest.$ac_ext
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5220 $as_echo "$ac_cv_header_stdc" >&6; }
5221 if test $ac_cv_header_stdc = yes; then
5223 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5227 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5228 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5229 inttypes.h stdint.h unistd.h
5230 do :
5231 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5232 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5234 eval as_val=\$$as_ac_Header
5235 if test "x$as_val" = x""yes; then :
5236 cat >>confdefs.h <<_ACEOF
5237 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5238 _ACEOF
5242 done
5246 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5247 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5248 MINIX=yes
5249 else
5250 MINIX=
5254 if test "$MINIX" = yes; then
5256 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5259 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5262 $as_echo "#define _MINIX 1" >>confdefs.h
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5268 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5269 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5270 $as_echo_n "(cached) " >&6
5271 else
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5275 # define __EXTENSIONS__ 1
5276 $ac_includes_default
5278 main ()
5282 return 0;
5284 _ACEOF
5285 if ac_fn_c_try_compile "$LINENO"; then :
5286 ac_cv_safe_to_define___extensions__=yes
5287 else
5288 ac_cv_safe_to_define___extensions__=no
5290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5293 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5294 test $ac_cv_safe_to_define___extensions__ = yes &&
5295 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5297 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5299 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5301 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5303 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5306 ac_ext=c
5307 ac_cpp='$CPP $CPPFLAGS'
5308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5312 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5313 # On Suns, sometimes $CPP names a directory.
5314 if test -n "$CPP" && test -d "$CPP"; then
5315 CPP=
5317 if test -z "$CPP"; then
5318 if test "${ac_cv_prog_CPP+set}" = set; then :
5319 $as_echo_n "(cached) " >&6
5320 else
5321 # Double quotes because CPP needs to be expanded
5322 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5324 ac_preproc_ok=false
5325 for ac_c_preproc_warn_flag in '' yes
5327 # Use a header file that comes with gcc, so configuring glibc
5328 # with a fresh cross-compiler works.
5329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5330 # <limits.h> exists even on freestanding compilers.
5331 # On the NeXT, cc -E runs the code through the compiler's parser,
5332 # not just through cpp. "Syntax error" is here to catch this case.
5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h. */
5335 #ifdef __STDC__
5336 # include <limits.h>
5337 #else
5338 # include <assert.h>
5339 #endif
5340 Syntax error
5341 _ACEOF
5342 if ac_fn_c_try_cpp "$LINENO"; then :
5344 else
5345 # Broken: fails on valid input.
5346 continue
5348 rm -f conftest.err conftest.$ac_ext
5350 # OK, works on sane cases. Now check whether nonexistent headers
5351 # can be detected and how.
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5354 #include <ac_nonexistent.h>
5355 _ACEOF
5356 if ac_fn_c_try_cpp "$LINENO"; then :
5357 # Broken: success on invalid input.
5358 continue
5359 else
5360 # Passes both tests.
5361 ac_preproc_ok=:
5362 break
5364 rm -f conftest.err conftest.$ac_ext
5366 done
5367 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5368 rm -f conftest.err conftest.$ac_ext
5369 if $ac_preproc_ok; then :
5370 break
5373 done
5374 ac_cv_prog_CPP=$CPP
5377 CPP=$ac_cv_prog_CPP
5378 else
5379 ac_cv_prog_CPP=$CPP
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5382 $as_echo "$CPP" >&6; }
5383 ac_preproc_ok=false
5384 for ac_c_preproc_warn_flag in '' yes
5386 # Use a header file that comes with gcc, so configuring glibc
5387 # with a fresh cross-compiler works.
5388 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5389 # <limits.h> exists even on freestanding compilers.
5390 # On the NeXT, cc -E runs the code through the compiler's parser,
5391 # not just through cpp. "Syntax error" is here to catch this case.
5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h. */
5394 #ifdef __STDC__
5395 # include <limits.h>
5396 #else
5397 # include <assert.h>
5398 #endif
5399 Syntax error
5400 _ACEOF
5401 if ac_fn_c_try_cpp "$LINENO"; then :
5403 else
5404 # Broken: fails on valid input.
5405 continue
5407 rm -f conftest.err conftest.$ac_ext
5409 # OK, works on sane cases. Now check whether nonexistent headers
5410 # can be detected and how.
5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412 /* end confdefs.h. */
5413 #include <ac_nonexistent.h>
5414 _ACEOF
5415 if ac_fn_c_try_cpp "$LINENO"; then :
5416 # Broken: success on invalid input.
5417 continue
5418 else
5419 # Passes both tests.
5420 ac_preproc_ok=:
5421 break
5423 rm -f conftest.err conftest.$ac_ext
5425 done
5426 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5427 rm -f conftest.err conftest.$ac_ext
5428 if $ac_preproc_ok; then :
5430 else
5431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5433 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5434 See \`config.log' for more details." "$LINENO" 5; }
5437 ac_ext=c
5438 ac_cpp='$CPP $CPPFLAGS'
5439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5444 $as_echo_n "checking for inline... " >&6; }
5445 if test "${ac_cv_c_inline+set}" = set; then :
5446 $as_echo_n "(cached) " >&6
5447 else
5448 ac_cv_c_inline=no
5449 for ac_kw in inline __inline__ __inline; do
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5452 #ifndef __cplusplus
5453 typedef int foo_t;
5454 static $ac_kw foo_t static_foo () {return 0; }
5455 $ac_kw foo_t foo () {return 0; }
5456 #endif
5458 _ACEOF
5459 if ac_fn_c_try_compile "$LINENO"; then :
5460 ac_cv_c_inline=$ac_kw
5462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463 test "$ac_cv_c_inline" != no && break
5464 done
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5468 $as_echo "$ac_cv_c_inline" >&6; }
5470 case $ac_cv_c_inline in
5471 inline | yes) ;;
5473 case $ac_cv_c_inline in
5474 no) ac_val=;;
5475 *) ac_val=$ac_cv_c_inline;;
5476 esac
5477 cat >>confdefs.h <<_ACEOF
5478 #ifndef __cplusplus
5479 #define inline $ac_val
5480 #endif
5481 _ACEOF
5483 esac
5486 # Check whether --enable-largefile was given.
5487 if test "${enable_largefile+set}" = set; then :
5488 enableval=$enable_largefile;
5491 if test "$enable_largefile" != no; then
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5494 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5495 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498 ac_cv_sys_largefile_CC=no
5499 if test "$GCC" != yes; then
5500 ac_save_CC=$CC
5501 while :; do
5502 # IRIX 6.2 and later do not support large files by default,
5503 # so use the C compiler's -n32 option if that helps.
5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h. */
5506 #include <sys/types.h>
5507 /* Check that off_t can represent 2**63 - 1 correctly.
5508 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5509 since some C++ compilers masquerading as C compilers
5510 incorrectly reject 9223372036854775807. */
5511 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5512 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5513 && LARGE_OFF_T % 2147483647 == 1)
5514 ? 1 : -1];
5516 main ()
5520 return 0;
5522 _ACEOF
5523 if ac_fn_c_try_compile "$LINENO"; then :
5524 break
5526 rm -f core conftest.err conftest.$ac_objext
5527 CC="$CC -n32"
5528 if ac_fn_c_try_compile "$LINENO"; then :
5529 ac_cv_sys_largefile_CC=' -n32'; break
5531 rm -f core conftest.err conftest.$ac_objext
5532 break
5533 done
5534 CC=$ac_save_CC
5535 rm -f conftest.$ac_ext
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5539 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5540 if test "$ac_cv_sys_largefile_CC" != no; then
5541 CC=$CC$ac_cv_sys_largefile_CC
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5545 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5546 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5547 $as_echo_n "(cached) " >&6
5548 else
5549 while :; do
5550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h. */
5552 #include <sys/types.h>
5553 /* Check that off_t can represent 2**63 - 1 correctly.
5554 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5555 since some C++ compilers masquerading as C compilers
5556 incorrectly reject 9223372036854775807. */
5557 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5558 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5559 && LARGE_OFF_T % 2147483647 == 1)
5560 ? 1 : -1];
5562 main ()
5566 return 0;
5568 _ACEOF
5569 if ac_fn_c_try_compile "$LINENO"; then :
5570 ac_cv_sys_file_offset_bits=no; break
5572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5575 #define _FILE_OFFSET_BITS 64
5576 #include <sys/types.h>
5577 /* Check that off_t can represent 2**63 - 1 correctly.
5578 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5579 since some C++ compilers masquerading as C compilers
5580 incorrectly reject 9223372036854775807. */
5581 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5582 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5583 && LARGE_OFF_T % 2147483647 == 1)
5584 ? 1 : -1];
5586 main ()
5590 return 0;
5592 _ACEOF
5593 if ac_fn_c_try_compile "$LINENO"; then :
5594 ac_cv_sys_file_offset_bits=64; break
5596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5597 ac_cv_sys_file_offset_bits=unknown
5598 break
5599 done
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5602 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5603 case $ac_cv_sys_file_offset_bits in #(
5604 no | unknown) ;;
5606 cat >>confdefs.h <<_ACEOF
5607 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5608 _ACEOF
5610 esac
5611 rm -rf conftest*
5612 if test $ac_cv_sys_file_offset_bits = unknown; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5614 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5615 if test "${ac_cv_sys_large_files+set}" = set; then :
5616 $as_echo_n "(cached) " >&6
5617 else
5618 while :; do
5619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620 /* end confdefs.h. */
5621 #include <sys/types.h>
5622 /* Check that off_t can represent 2**63 - 1 correctly.
5623 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5624 since some C++ compilers masquerading as C compilers
5625 incorrectly reject 9223372036854775807. */
5626 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5627 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5628 && LARGE_OFF_T % 2147483647 == 1)
5629 ? 1 : -1];
5631 main ()
5635 return 0;
5637 _ACEOF
5638 if ac_fn_c_try_compile "$LINENO"; then :
5639 ac_cv_sys_large_files=no; break
5641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644 #define _LARGE_FILES 1
5645 #include <sys/types.h>
5646 /* Check that off_t can represent 2**63 - 1 correctly.
5647 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5648 since some C++ compilers masquerading as C compilers
5649 incorrectly reject 9223372036854775807. */
5650 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5651 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5652 && LARGE_OFF_T % 2147483647 == 1)
5653 ? 1 : -1];
5655 main ()
5659 return 0;
5661 _ACEOF
5662 if ac_fn_c_try_compile "$LINENO"; then :
5663 ac_cv_sys_large_files=1; break
5665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5666 ac_cv_sys_large_files=unknown
5667 break
5668 done
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5671 $as_echo "$ac_cv_sys_large_files" >&6; }
5672 case $ac_cv_sys_large_files in #(
5673 no | unknown) ;;
5675 cat >>confdefs.h <<_ACEOF
5676 #define _LARGE_FILES $ac_cv_sys_large_files
5677 _ACEOF
5679 esac
5680 rm -rf conftest*
5685 # sizeof(char) is 1 by definition.
5686 # The cast to long int works around a bug in the HP C Compiler
5687 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5688 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5689 # This bug is HP SR number 8606223364.
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5691 $as_echo_n "checking size of void *... " >&6; }
5692 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5693 $as_echo_n "(cached) " >&6
5694 else
5695 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5697 else
5698 if test "$ac_cv_type_void_p" = yes; then
5699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5701 { as_fn_set_status 77
5702 as_fn_error "cannot compute sizeof (void *)
5703 See \`config.log' for more details." "$LINENO" 5; }; }
5704 else
5705 ac_cv_sizeof_void_p=0
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5711 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5715 cat >>confdefs.h <<_ACEOF
5716 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5717 _ACEOF
5720 # The cast to long int works around a bug in the HP C Compiler
5721 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5722 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5723 # This bug is HP SR number 8606223364.
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5725 $as_echo_n "checking size of short... " >&6; }
5726 if test "${ac_cv_sizeof_short+set}" = set; then :
5727 $as_echo_n "(cached) " >&6
5728 else
5729 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5731 else
5732 if test "$ac_cv_type_short" = yes; then
5733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5735 { as_fn_set_status 77
5736 as_fn_error "cannot compute sizeof (short)
5737 See \`config.log' for more details." "$LINENO" 5; }; }
5738 else
5739 ac_cv_sizeof_short=0
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5745 $as_echo "$ac_cv_sizeof_short" >&6; }
5749 cat >>confdefs.h <<_ACEOF
5750 #define SIZEOF_SHORT $ac_cv_sizeof_short
5751 _ACEOF
5754 # The cast to long int works around a bug in the HP C Compiler
5755 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5756 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5757 # This bug is HP SR number 8606223364.
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5759 $as_echo_n "checking size of int... " >&6; }
5760 if test "${ac_cv_sizeof_int+set}" = set; then :
5761 $as_echo_n "(cached) " >&6
5762 else
5763 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5765 else
5766 if test "$ac_cv_type_int" = yes; then
5767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5769 { as_fn_set_status 77
5770 as_fn_error "cannot compute sizeof (int)
5771 See \`config.log' for more details." "$LINENO" 5; }; }
5772 else
5773 ac_cv_sizeof_int=0
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5779 $as_echo "$ac_cv_sizeof_int" >&6; }
5783 cat >>confdefs.h <<_ACEOF
5784 #define SIZEOF_INT $ac_cv_sizeof_int
5785 _ACEOF
5788 # The cast to long int works around a bug in the HP C Compiler
5789 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5790 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5791 # This bug is HP SR number 8606223364.
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5793 $as_echo_n "checking size of long... " >&6; }
5794 if test "${ac_cv_sizeof_long+set}" = set; then :
5795 $as_echo_n "(cached) " >&6
5796 else
5797 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5799 else
5800 if test "$ac_cv_type_long" = yes; then
5801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5803 { as_fn_set_status 77
5804 as_fn_error "cannot compute sizeof (long)
5805 See \`config.log' for more details." "$LINENO" 5; }; }
5806 else
5807 ac_cv_sizeof_long=0
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5813 $as_echo "$ac_cv_sizeof_long" >&6; }
5817 cat >>confdefs.h <<_ACEOF
5818 #define SIZEOF_LONG $ac_cv_sizeof_long
5819 _ACEOF
5822 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5823 if test "x$ac_cv_type_long_long" = x""yes; then :
5825 cat >>confdefs.h <<_ACEOF
5826 #define HAVE_LONG_LONG 1
5827 _ACEOF
5829 # The cast to long int works around a bug in the HP C Compiler
5830 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5831 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5832 # This bug is HP SR number 8606223364.
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5834 $as_echo_n "checking size of long long... " >&6; }
5835 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5836 $as_echo_n "(cached) " >&6
5837 else
5838 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5840 else
5841 if test "$ac_cv_type_long_long" = yes; then
5842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5844 { as_fn_set_status 77
5845 as_fn_error "cannot compute sizeof (long long)
5846 See \`config.log' for more details." "$LINENO" 5; }; }
5847 else
5848 ac_cv_sizeof_long_long=0
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5854 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5858 cat >>confdefs.h <<_ACEOF
5859 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5860 _ACEOF
5865 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5866 case $ac_cv_c_int8_t in #(
5867 no|yes) ;; #(
5870 cat >>confdefs.h <<_ACEOF
5871 #define int8_t $ac_cv_c_int8_t
5872 _ACEOF
5874 esac
5876 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5877 case $ac_cv_c_int16_t in #(
5878 no|yes) ;; #(
5881 cat >>confdefs.h <<_ACEOF
5882 #define int16_t $ac_cv_c_int16_t
5883 _ACEOF
5885 esac
5887 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5888 case $ac_cv_c_int32_t in #(
5889 no|yes) ;; #(
5892 cat >>confdefs.h <<_ACEOF
5893 #define int32_t $ac_cv_c_int32_t
5894 _ACEOF
5896 esac
5898 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5899 case $ac_cv_c_int64_t in #(
5900 no|yes) ;; #(
5903 cat >>confdefs.h <<_ACEOF
5904 #define int64_t $ac_cv_c_int64_t
5905 _ACEOF
5907 esac
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5911 $as_echo_n "checking for long long int... " >&6; }
5912 if test "${ac_cv_type_long_long_int+set}" = set; then :
5913 $as_echo_n "(cached) " >&6
5914 else
5915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916 /* end confdefs.h. */
5918 /* For now, do not test the preprocessor; as of 2007 there are too many
5919 implementations with broken preprocessors. Perhaps this can
5920 be revisited in 2012. In the meantime, code should not expect
5921 #if to work with literals wider than 32 bits. */
5922 /* Test literals. */
5923 long long int ll = 9223372036854775807ll;
5924 long long int nll = -9223372036854775807LL;
5925 unsigned long long int ull = 18446744073709551615ULL;
5926 /* Test constant expressions. */
5927 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5928 ? 1 : -1)];
5929 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5930 ? 1 : -1)];
5931 int i = 63;
5933 main ()
5935 /* Test availability of runtime routines for shift and division. */
5936 long long int llmax = 9223372036854775807ll;
5937 unsigned long long int ullmax = 18446744073709551615ull;
5938 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5939 | (llmax / ll) | (llmax % ll)
5940 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5941 | (ullmax / ull) | (ullmax % ull));
5943 return 0;
5946 _ACEOF
5947 if ac_fn_c_try_link "$LINENO"; then :
5948 if test "$cross_compiling" = yes; then :
5949 ac_cv_type_long_long_int=yes
5950 else
5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952 /* end confdefs.h. */
5953 #include <limits.h>
5954 #ifndef LLONG_MAX
5955 # define HALF \
5956 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5957 # define LLONG_MAX (HALF - 1 + HALF)
5958 #endif
5960 main ()
5962 long long int n = 1;
5963 int i;
5964 for (i = 0; ; i++)
5966 long long int m = n << i;
5967 if (m >> i != n)
5968 return 1;
5969 if (LLONG_MAX / 2 < m)
5970 break;
5972 return 0;
5974 return 0;
5976 _ACEOF
5977 if ac_fn_c_try_run "$LINENO"; then :
5978 ac_cv_type_long_long_int=yes
5979 else
5980 ac_cv_type_long_long_int=no
5982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5983 conftest.$ac_objext conftest.beam conftest.$ac_ext
5986 else
5987 ac_cv_type_long_long_int=no
5989 rm -f core conftest.err conftest.$ac_objext \
5990 conftest$ac_exeext conftest.$ac_ext
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5993 $as_echo "$ac_cv_type_long_long_int" >&6; }
5994 if test $ac_cv_type_long_long_int = yes; then
5996 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6002 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6003 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6005 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6007 else
6008 test $ac_cv_type_long_long_int = yes \
6009 && ac_type='long long int' \
6010 || ac_type='long int'
6012 cat >>confdefs.h <<_ACEOF
6013 #define intmax_t $ac_type
6014 _ACEOF
6020 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6021 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6023 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6025 else
6026 for ac_type in 'int' 'long int' 'long long int'; do
6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6029 $ac_includes_default
6031 main ()
6033 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6034 test_array [0] = 0
6037 return 0;
6039 _ACEOF
6040 if ac_fn_c_try_compile "$LINENO"; then :
6042 cat >>confdefs.h <<_ACEOF
6043 #define intptr_t $ac_type
6044 _ACEOF
6046 ac_type=
6048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049 test -z "$ac_type" && break
6050 done
6054 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6055 case $ac_cv_c_uint8_t in #(
6056 no|yes) ;; #(
6059 $as_echo "#define _UINT8_T 1" >>confdefs.h
6062 cat >>confdefs.h <<_ACEOF
6063 #define uint8_t $ac_cv_c_uint8_t
6064 _ACEOF
6066 esac
6068 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6069 case $ac_cv_c_uint16_t in #(
6070 no|yes) ;; #(
6074 cat >>confdefs.h <<_ACEOF
6075 #define uint16_t $ac_cv_c_uint16_t
6076 _ACEOF
6078 esac
6080 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6081 case $ac_cv_c_uint32_t in #(
6082 no|yes) ;; #(
6085 $as_echo "#define _UINT32_T 1" >>confdefs.h
6088 cat >>confdefs.h <<_ACEOF
6089 #define uint32_t $ac_cv_c_uint32_t
6090 _ACEOF
6092 esac
6094 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6095 case $ac_cv_c_uint64_t in #(
6096 no|yes) ;; #(
6099 $as_echo "#define _UINT64_T 1" >>confdefs.h
6102 cat >>confdefs.h <<_ACEOF
6103 #define uint64_t $ac_cv_c_uint64_t
6104 _ACEOF
6106 esac
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6110 $as_echo_n "checking for unsigned long long int... " >&6; }
6111 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6112 $as_echo_n "(cached) " >&6
6113 else
6114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6115 /* end confdefs.h. */
6117 /* For now, do not test the preprocessor; as of 2007 there are too many
6118 implementations with broken preprocessors. Perhaps this can
6119 be revisited in 2012. In the meantime, code should not expect
6120 #if to work with literals wider than 32 bits. */
6121 /* Test literals. */
6122 long long int ll = 9223372036854775807ll;
6123 long long int nll = -9223372036854775807LL;
6124 unsigned long long int ull = 18446744073709551615ULL;
6125 /* Test constant expressions. */
6126 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6127 ? 1 : -1)];
6128 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6129 ? 1 : -1)];
6130 int i = 63;
6132 main ()
6134 /* Test availability of runtime routines for shift and division. */
6135 long long int llmax = 9223372036854775807ll;
6136 unsigned long long int ullmax = 18446744073709551615ull;
6137 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6138 | (llmax / ll) | (llmax % ll)
6139 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6140 | (ullmax / ull) | (ullmax % ull));
6142 return 0;
6145 _ACEOF
6146 if ac_fn_c_try_link "$LINENO"; then :
6147 ac_cv_type_unsigned_long_long_int=yes
6148 else
6149 ac_cv_type_unsigned_long_long_int=no
6151 rm -f core conftest.err conftest.$ac_objext \
6152 conftest$ac_exeext conftest.$ac_ext
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6155 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6156 if test $ac_cv_type_unsigned_long_long_int = yes; then
6158 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6164 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6165 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6167 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6169 else
6170 test $ac_cv_type_unsigned_long_long_int = yes \
6171 && ac_type='unsigned long long int' \
6172 || ac_type='unsigned long int'
6174 cat >>confdefs.h <<_ACEOF
6175 #define uintmax_t $ac_type
6176 _ACEOF
6182 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6183 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6185 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6187 else
6188 for ac_type in 'unsigned int' 'unsigned long int' \
6189 'unsigned long long int'; do
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6192 $ac_includes_default
6194 main ()
6196 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6197 test_array [0] = 0
6200 return 0;
6202 _ACEOF
6203 if ac_fn_c_try_compile "$LINENO"; then :
6205 cat >>confdefs.h <<_ACEOF
6206 #define uintptr_t $ac_type
6207 _ACEOF
6209 ac_type=
6211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6212 test -z "$ac_type" && break
6213 done
6229 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6230 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6233 # check what underlying integer type int64_t uses
6234 ac_ext=cpp
6235 ac_cpp='$CXXCPP $CPPFLAGS'
6236 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6237 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6238 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6242 $as_echo_n "checking for int64_t underlying type... " >&6; }
6243 if test "${ac_cv_int64_t_type+set}" = set; then :
6244 $as_echo_n "(cached) " >&6
6245 else
6247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248 /* end confdefs.h. */
6250 #ifdef HAVE_STDINT_H
6251 #include <stdint.h>
6252 #endif
6253 template <typename T> struct X { };
6254 template <>
6255 struct X<long> { typedef long t; };
6258 main ()
6260 X<int64_t>::t x;
6262 return 0;
6264 _ACEOF
6265 if ac_fn_cxx_try_compile "$LINENO"; then :
6266 ac_cv_int64_t_type=long
6267 else
6268 ac_cv_int64_t_type="long long"
6270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6273 $as_echo "$ac_cv_int64_t_type" >&6; }
6274 if test "$ac_cv_int64_t_type" = "long"; then
6276 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6278 else
6279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6282 #ifdef HAVE_STDINT_H
6283 #include <stdint.h>
6284 #endif
6285 template <typename T> struct X { };
6286 template <>
6287 struct X<long long> { typedef long long t; };
6290 main ()
6292 X<int64_t>::t x;
6294 return 0;
6296 _ACEOF
6297 if ac_fn_cxx_try_compile "$LINENO"; then :
6299 else
6300 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6304 ac_ext=c
6305 ac_cpp='$CPP $CPPFLAGS'
6306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6314 # ---------------------
6315 # Warnings and checking
6316 # ---------------------
6318 # Check $CC warning features (if it's GCC).
6319 # We want to use -pedantic, but we don't want warnings about
6320 # * 'long long'
6321 # * variadic macros
6322 # * overlong strings
6323 # * C++11 narrowing conversions in { }
6324 # So, we only use -pedantic if we can disable those warnings.
6326 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6327 # Check whether --enable-build-format-warnings was given.
6328 if test "${enable_build_format_warnings+set}" = set; then :
6329 enableval=$enable_build_format_warnings;
6330 else
6331 enable_build_format_warnings=yes
6334 if test $enable_build_format_warnings = no; then :
6335 wf_opt=-Wno-format
6336 else
6337 wf_opt=
6339 loose_warn=
6340 save_CFLAGS="$CFLAGS"
6341 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6342 # Do the check with the no- prefix removed since gcc silently
6343 # accepts any -Wno-* option on purpose
6344 case $real_option in
6345 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6346 *) option=$real_option ;;
6347 esac
6348 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6351 $as_echo_n "checking whether $CC supports $option... " >&6; }
6352 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6353 $as_echo_n "(cached) " >&6
6354 else
6355 CFLAGS="$option"
6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h. */
6360 main ()
6364 return 0;
6366 _ACEOF
6367 if ac_fn_c_try_compile "$LINENO"; then :
6368 eval "$as_acx_Woption=yes"
6369 else
6370 eval "$as_acx_Woption=no"
6372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6375 eval ac_res=\$$as_acx_Woption
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6377 $as_echo "$ac_res" >&6; }
6378 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6379 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6381 done
6382 CFLAGS="$save_CFLAGS"
6384 c_loose_warn=
6385 save_CFLAGS="$CFLAGS"
6386 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6387 # Do the check with the no- prefix removed since gcc silently
6388 # accepts any -Wno-* option on purpose
6389 case $real_option in
6390 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6391 *) option=$real_option ;;
6392 esac
6393 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6396 $as_echo_n "checking whether $CC supports $option... " >&6; }
6397 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6398 $as_echo_n "(cached) " >&6
6399 else
6400 CFLAGS="$option"
6401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6402 /* end confdefs.h. */
6405 main ()
6409 return 0;
6411 _ACEOF
6412 if ac_fn_c_try_compile "$LINENO"; then :
6413 eval "$as_acx_Woption=yes"
6414 else
6415 eval "$as_acx_Woption=no"
6417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6420 eval ac_res=\$$as_acx_Woption
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6422 $as_echo "$ac_res" >&6; }
6423 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6424 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6426 done
6427 CFLAGS="$save_CFLAGS"
6429 strict_warn=
6430 save_CFLAGS="$CFLAGS"
6431 for real_option in -Wmissing-format-attribute; do
6432 # Do the check with the no- prefix removed since gcc silently
6433 # accepts any -Wno-* option on purpose
6434 case $real_option in
6435 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6436 *) option=$real_option ;;
6437 esac
6438 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6441 $as_echo_n "checking whether $CC supports $option... " >&6; }
6442 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6443 $as_echo_n "(cached) " >&6
6444 else
6445 CFLAGS="$option"
6446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447 /* end confdefs.h. */
6450 main ()
6454 return 0;
6456 _ACEOF
6457 if ac_fn_c_try_compile "$LINENO"; then :
6458 eval "$as_acx_Woption=yes"
6459 else
6460 eval "$as_acx_Woption=no"
6462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6465 eval ac_res=\$$as_acx_Woption
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6467 $as_echo "$ac_res" >&6; }
6468 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6469 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6471 done
6472 CFLAGS="$save_CFLAGS"
6474 save_CFLAGS="$CFLAGS"
6475 for real_option in -Woverloaded-virtual; do
6476 # Do the check with the no- prefix removed since gcc silently
6477 # accepts any -Wno-* option on purpose
6478 case $real_option in
6479 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6480 *) option=$real_option ;;
6481 esac
6482 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6485 $as_echo_n "checking whether $CC supports $option... " >&6; }
6486 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6487 $as_echo_n "(cached) " >&6
6488 else
6489 CFLAGS="$option"
6490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6494 main ()
6498 return 0;
6500 _ACEOF
6501 if ac_fn_c_try_compile "$LINENO"; then :
6502 eval "$as_acx_Woption=yes"
6503 else
6504 eval "$as_acx_Woption=no"
6506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6509 eval ac_res=\$$as_acx_Woption
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6511 $as_echo "$ac_res" >&6; }
6512 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6513 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6515 done
6516 CFLAGS="$save_CFLAGS"
6518 c_strict_warn=
6519 save_CFLAGS="$CFLAGS"
6520 for real_option in -Wold-style-definition -Wc++-compat; do
6521 # Do the check with the no- prefix removed since gcc silently
6522 # accepts any -Wno-* option on purpose
6523 case $real_option in
6524 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6525 *) option=$real_option ;;
6526 esac
6527 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6530 $as_echo_n "checking whether $CC supports $option... " >&6; }
6531 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6532 $as_echo_n "(cached) " >&6
6533 else
6534 CFLAGS="$option"
6535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h. */
6539 main ()
6543 return 0;
6545 _ACEOF
6546 if ac_fn_c_try_compile "$LINENO"; then :
6547 eval "$as_acx_Woption=yes"
6548 else
6549 eval "$as_acx_Woption=no"
6551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554 eval ac_res=\$$as_acx_Woption
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6556 $as_echo "$ac_res" >&6; }
6557 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6558 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6560 done
6561 CFLAGS="$save_CFLAGS"
6563 # Do the check with the no- prefix removed from the warning options
6564 # since gcc silently accepts any -Wno-* option on purpose
6565 if test "$GCC" = yes; then :
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6567 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6568 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6569 $as_echo_n "(cached) " >&6
6570 else
6571 save_CFLAGS="$CFLAGS"
6572 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
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 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6586 else
6587 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6590 CFLAGS="$save_CFLAGS"
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6593 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6594 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6595 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6600 # Check whether --enable-werror-always was given.
6601 if test "${enable_werror_always+set}" = set; then :
6602 enableval=$enable_werror_always;
6603 else
6604 enable_werror_always=no
6607 if test $enable_werror_always = yes; then :
6608 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6613 # The above macros do nothing if the compiler is not GCC. However, the
6614 # Makefile has more goo to add other flags, so these variables are used
6615 # to enable warnings only for GCC.
6616 warn_cflags=
6617 warn_cxxflags=
6618 if test "x$GCC" = "xyes"; then
6619 warn_cflags='$(GCC_WARN_CFLAGS)'
6620 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6625 # Disable exceptions and RTTI if building with g++
6626 noexception_flags=
6627 save_CFLAGS="$CFLAGS"
6628 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6629 # Do the check with the no- prefix removed since gcc silently
6630 # accepts any -Wno-* option on purpose
6631 case $real_option in
6632 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6633 *) option=$real_option ;;
6634 esac
6635 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6638 $as_echo_n "checking whether $CC supports $option... " >&6; }
6639 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6640 $as_echo_n "(cached) " >&6
6641 else
6642 CFLAGS="$option"
6643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6644 /* end confdefs.h. */
6647 main ()
6651 return 0;
6653 _ACEOF
6654 if ac_fn_c_try_compile "$LINENO"; then :
6655 eval "$as_acx_Woption=yes"
6656 else
6657 eval "$as_acx_Woption=no"
6659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6662 eval ac_res=\$$as_acx_Woption
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6664 $as_echo "$ac_res" >&6; }
6665 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6666 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6668 done
6669 CFLAGS="$save_CFLAGS"
6672 # Enable expensive internal checks
6673 is_release=
6674 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6675 is_release=yes
6678 # Check whether --enable-checking was given.
6679 if test "${enable_checking+set}" = set; then :
6680 enableval=$enable_checking; ac_checking_flags="${enableval}"
6681 else
6683 # Determine the default checks.
6684 if test x$is_release = x ; then
6685 ac_checking_flags=yes
6686 else
6687 ac_checking_flags=release
6691 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6692 for check in release $ac_checking_flags
6694 case $check in
6695 # these set all the flags to specific states
6696 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6697 ac_fold_checking= ; ac_gc_checking=1 ;
6698 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6699 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6700 ac_tree_checking=1 ; ac_valgrind_checking= ;
6701 ac_types_checking=1 ;;
6702 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6703 ac_fold_checking= ; ac_gc_checking= ;
6704 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6705 ac_rtlflag_checking= ; ac_runtime_checking= ;
6706 ac_tree_checking= ; ac_valgrind_checking= ;
6707 ac_types_checking= ;;
6708 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6709 ac_fold_checking=1 ; ac_gc_checking=1 ;
6710 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6711 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6712 ac_tree_checking=1 ; ac_valgrind_checking= ;
6713 ac_types_checking=1 ;;
6714 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6715 ac_fold_checking= ; ac_gc_checking= ;
6716 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6717 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6718 ac_tree_checking= ; ac_valgrind_checking= ;
6719 ac_types_checking= ;;
6720 # these enable particular checks
6721 assert) ac_assert_checking=1 ;;
6722 df) ac_df_checking=1 ;;
6723 fold) ac_fold_checking=1 ;;
6724 gc) ac_gc_checking=1 ;;
6725 gcac) ac_gc_always_collect=1 ;;
6726 gimple) ac_gimple_checking=1 ;;
6727 misc) ac_checking=1 ;;
6728 rtl) ac_rtl_checking=1 ;;
6729 rtlflag) ac_rtlflag_checking=1 ;;
6730 runtime) ac_runtime_checking=1 ;;
6731 tree) ac_tree_checking=1 ;;
6732 types) ac_types_checking=1 ;;
6733 valgrind) ac_valgrind_checking=1 ;;
6734 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6735 esac
6736 done
6737 IFS="$ac_save_IFS"
6739 nocommon_flag=""
6740 if test x$ac_checking != x ; then
6742 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6744 nocommon_flag=-fno-common
6747 if test x$ac_df_checking != x ; then
6749 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6752 if test x$ac_assert_checking != x ; then
6754 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6757 if test x$ac_gimple_checking != x ; then
6759 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6763 if test x$ac_runtime_checking != x ; then
6765 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6768 if test x$ac_tree_checking != x ; then
6770 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6772 TREEBROWSER=tree-browser.o
6773 TREECHECKING=yes
6775 if test x$ac_types_checking != x ; then
6777 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6782 if test x$ac_rtl_checking != x ; then
6784 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6787 if test x$ac_rtlflag_checking != x ; then
6789 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6792 if test x$ac_gc_checking != x ; then
6794 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6797 if test x$ac_gc_always_collect != x ; then
6799 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6802 if test x$ac_fold_checking != x ; then
6804 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6807 valgrind_path_defines=
6808 valgrind_command=
6810 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6811 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6812 have_valgrind_h=yes
6813 else
6814 have_valgrind_h=no
6819 # It is certainly possible that there's valgrind but no valgrind.h.
6820 # GCC relies on making annotations so we must have both.
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6822 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6825 #include <valgrind/memcheck.h>
6826 #ifndef VALGRIND_DISCARD
6827 #error VALGRIND_DISCARD not defined
6828 #endif
6829 _ACEOF
6830 if ac_fn_c_try_cpp "$LINENO"; then :
6831 gcc_cv_header_valgrind_memcheck_h=yes
6832 else
6833 gcc_cv_header_valgrind_memcheck_h=no
6835 rm -f conftest.err conftest.$ac_ext
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6837 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6839 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6842 #include <memcheck.h>
6843 #ifndef VALGRIND_DISCARD
6844 #error VALGRIND_DISCARD not defined
6845 #endif
6846 _ACEOF
6847 if ac_fn_c_try_cpp "$LINENO"; then :
6848 gcc_cv_header_memcheck_h=yes
6849 else
6850 gcc_cv_header_memcheck_h=no
6852 rm -f conftest.err conftest.$ac_ext
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6854 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6855 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6857 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6860 if test $gcc_cv_header_memcheck_h = yes; then
6862 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6866 if test x$ac_valgrind_checking != x ; then
6868 # Prepare PATH_SEPARATOR.
6869 # The user is always right.
6870 if test "${PATH_SEPARATOR+set}" != set; then
6871 echo "#! /bin/sh" >conf$$.sh
6872 echo "exit 0" >>conf$$.sh
6873 chmod +x conf$$.sh
6874 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6875 PATH_SEPARATOR=';'
6876 else
6877 PATH_SEPARATOR=:
6879 rm -f conf$$.sh
6882 # Find out how to test for executable files. Don't use a zero-byte file,
6883 # as systems may use methods other than mode bits to determine executability.
6884 cat >conf$$.file <<_ASEOF
6885 #! /bin/sh
6886 exit 0
6887 _ASEOF
6888 chmod +x conf$$.file
6889 if test -x conf$$.file >/dev/null 2>&1; then
6890 ac_executable_p="test -x"
6891 else
6892 ac_executable_p="test -f"
6894 rm -f conf$$.file
6896 # Extract the first word of "valgrind", so it can be a program name with args.
6897 set dummy valgrind; ac_word=$2
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899 $as_echo_n "checking for $ac_word... " >&6; }
6900 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6901 $as_echo_n "(cached) " >&6
6902 else
6903 case "$valgrind_path" in
6904 [\\/]* | ?:[\\/]*)
6905 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6908 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6909 for ac_dir in $PATH; do
6910 IFS="$ac_save_IFS"
6911 test -z "$ac_dir" && ac_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6914 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6915 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6916 break 2
6919 done
6920 done
6921 IFS="$ac_save_IFS"
6923 esac
6925 valgrind_path="$ac_cv_path_valgrind_path"
6926 if test -n "$valgrind_path"; then
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6928 $as_echo "$valgrind_path" >&6; }
6929 else
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931 $as_echo "no" >&6; }
6934 if test "x$valgrind_path" = "x" \
6935 || (test $have_valgrind_h = no \
6936 && test $gcc_cv_header_memcheck_h = no \
6937 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6938 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6940 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6941 valgrind_command="$valgrind_path -q"
6943 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6949 # Enable code coverage collection
6950 # Check whether --enable-coverage was given.
6951 if test "${enable_coverage+set}" = set; then :
6952 enableval=$enable_coverage; case "${enableval}" in
6953 yes|noopt)
6954 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6956 opt)
6957 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6960 # a.k.a. --disable-coverage
6961 coverage_flags=""
6964 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6966 esac
6967 else
6968 coverage_flags=""
6973 # Check whether --enable-gather-detailed-mem-stats was given.
6974 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6975 enableval=$enable_gather_detailed_mem_stats;
6976 else
6977 enable_gather_detailed_mem_stats=no
6980 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6982 cat >>confdefs.h <<_ACEOF
6983 #define GATHER_STATISTICS $gather_stats
6984 _ACEOF
6987 # Check whether --enable-valgrind-annotations was given.
6988 if test "${enable_valgrind_annotations+set}" = set; then :
6989 enableval=$enable_valgrind_annotations;
6990 else
6991 enable_valgrind_annotations=no
6994 if test x$enable_valgrind_annotations != xno \
6995 || test x$ac_valgrind_checking != x; then
6996 if (test $have_valgrind_h = no \
6997 && test $gcc_cv_header_memcheck_h = no \
6998 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6999 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7002 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7006 # -------------------------------
7007 # Miscenalleous configure options
7008 # -------------------------------
7010 # With stabs
7012 # Check whether --with-stabs was given.
7013 if test "${with_stabs+set}" = set; then :
7014 withval=$with_stabs; stabs="$with_stabs"
7015 else
7016 stabs=no
7020 # Determine whether or not multilibs are enabled.
7021 # Check whether --enable-multilib was given.
7022 if test "${enable_multilib+set}" = set; then :
7023 enableval=$enable_multilib;
7024 else
7025 enable_multilib=yes
7030 # Determine whether or not multiarch is enabled.
7031 # Check whether --enable-multiarch was given.
7032 if test "${enable_multiarch+set}" = set; then :
7033 enableval=$enable_multiarch; case "${enableval}" in
7034 yes|no|auto) enable_multiarch=$enableval;;
7035 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7036 esac
7037 else
7038 enable_multiarch=auto
7041 if test x${enable_multiarch} = xauto; then
7042 if test x${with_native_system_header_dir} != x; then
7043 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7044 enable_multiarch=no
7046 if test x$host != x$target && test "x$with_sysroot" = x; then
7047 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7048 enable_multiarch=no
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7052 $as_echo_n "checking for multiarch configuration... " >&6; }
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7055 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7057 # needed for setting the multiarch name for soft-float/hard-float ABIs
7061 # Enable __cxa_atexit for C++.
7062 # Check whether --enable-__cxa_atexit was given.
7063 if test "${enable___cxa_atexit+set}" = set; then :
7064 enableval=$enable___cxa_atexit;
7068 # Enable C extension for decimal float if target supports it.
7070 # Check whether --enable-decimal-float was given.
7071 if test "${enable_decimal_float+set}" = set; then :
7072 enableval=$enable_decimal_float;
7073 case $enable_decimal_float in
7074 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7075 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7076 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7077 esac
7079 else
7081 case $target in
7082 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7083 i?86*-*-gnu* | \
7084 i?86*-*-mingw* | x86_64*-*-mingw* | \
7085 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7086 enable_decimal_float=yes
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7090 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7091 enable_decimal_float=no
7093 esac
7098 # x86's use BID format instead of DPD
7099 case x$enable_decimal_float in
7100 xyes)
7101 case $target in
7102 i?86*-*-* | x86_64*-*-*)
7103 enable_decimal_float=bid
7106 enable_decimal_float=dpd
7108 esac
7109 default_decimal_float=$enable_decimal_float
7111 xno)
7112 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7113 # dependency on libdecnumber.
7114 default_decimal_float=dpd
7116 esac
7121 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7123 cat >>confdefs.h <<_ACEOF
7124 #define ENABLE_DECIMAL_FLOAT $dfp
7125 _ACEOF
7128 # Use default_decimal_float for dependency.
7129 enable_decimal_float=$default_decimal_float
7131 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7133 cat >>confdefs.h <<_ACEOF
7134 #define ENABLE_DECIMAL_BID_FORMAT $bid
7135 _ACEOF
7138 # Enable C extension for fixed-point arithmetic.
7139 # Check whether --enable-fixed-point was given.
7140 if test "${enable_fixed_point+set}" = set; then :
7141 enableval=$enable_fixed_point;
7142 else
7144 case $target in
7145 arm*)
7146 enable_fixed_point=yes
7149 mips*-*-*)
7150 enable_fixed_point=yes
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7154 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7155 enable_fixed_point=no
7157 esac
7163 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7165 cat >>confdefs.h <<_ACEOF
7166 #define ENABLE_FIXED_POINT $fixedpoint
7167 _ACEOF
7170 # Enable threads
7171 # Pass with no value to take the default
7172 # Pass with a value to specify a thread package
7173 # Check whether --enable-threads was given.
7174 if test "${enable_threads+set}" = set; then :
7175 enableval=$enable_threads;
7176 else
7177 enable_threads=''
7181 # Check whether --enable-tls was given.
7182 if test "${enable_tls+set}" = set; then :
7183 enableval=$enable_tls;
7184 case $enable_tls in
7185 yes | no) ;;
7186 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7187 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7188 esac
7190 else
7191 enable_tls=''
7195 # Check whether --enable-objc-gc was given.
7196 if test "${enable_objc_gc+set}" = set; then :
7197 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7198 objc_boehm_gc=''
7199 else
7200 objc_boehm_gc=1
7202 else
7203 objc_boehm_gc=''
7208 # Check whether --with-dwarf2 was given.
7209 if test "${with_dwarf2+set}" = set; then :
7210 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7211 else
7212 dwarf2=no
7216 # Check whether --enable-shared was given.
7217 if test "${enable_shared+set}" = set; then :
7218 enableval=$enable_shared;
7219 case $enable_shared in
7220 yes | no) ;;
7222 enable_shared=no
7223 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7224 for pkg in $enableval; do
7225 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7226 enable_shared=yes
7228 done
7229 IFS="$ac_save_ifs"
7231 esac
7233 else
7234 enable_shared=yes
7240 # Check whether --with-native-system-header-dir was given.
7241 if test "${with_native_system_header_dir+set}" = set; then :
7242 withval=$with_native_system_header_dir;
7243 case ${with_native_system_header_dir} in
7244 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7245 /* | [A-Za-z]:[\\/]*) ;;
7246 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7247 esac
7248 configured_native_system_header_dir="${withval}"
7250 else
7251 configured_native_system_header_dir=
7256 # Check whether --with-build-sysroot was given.
7257 if test "${with_build_sysroot+set}" = set; then :
7258 withval=$with_build_sysroot; if test x"$withval" != x ; then
7259 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7261 else
7262 SYSROOT_CFLAGS_FOR_TARGET=
7267 if test "x$prefix" = xNONE; then
7268 test_prefix=/usr/local
7269 else
7270 test_prefix=$prefix
7272 if test "x$exec_prefix" = xNONE; then
7273 test_exec_prefix=$test_prefix
7274 else
7275 test_exec_prefix=$exec_prefix
7279 # Check whether --with-sysroot was given.
7280 if test "${with_sysroot+set}" = set; then :
7281 withval=$with_sysroot;
7282 case ${with_sysroot} in
7283 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7284 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7285 esac
7287 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7288 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7290 case ${TARGET_SYSTEM_ROOT} in
7291 "${test_prefix}"|"${test_prefix}/"*|\
7292 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7293 '${prefix}'|'${prefix}/'*|\
7294 '${exec_prefix}'|'${exec_prefix}/'*)
7295 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7296 TARGET_SYSTEM_ROOT_DEFINE="$t"
7298 esac
7300 else
7302 TARGET_SYSTEM_ROOT=
7303 TARGET_SYSTEM_ROOT_DEFINE=
7304 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7313 # Check whether --with-specs was given.
7314 if test "${with_specs+set}" = set; then :
7315 withval=$with_specs; CONFIGURE_SPECS=$withval
7316 else
7317 CONFIGURE_SPECS=
7325 # Check whether --with-pkgversion was given.
7326 if test "${with_pkgversion+set}" = set; then :
7327 withval=$with_pkgversion; case "$withval" in
7328 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7329 no) PKGVERSION= ;;
7330 *) PKGVERSION="($withval) " ;;
7331 esac
7332 else
7333 PKGVERSION="(GCC) "
7341 # Check whether --with-bugurl was given.
7342 if test "${with_bugurl+set}" = set; then :
7343 withval=$with_bugurl; case "$withval" in
7344 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7345 no) BUGURL=
7347 *) BUGURL="$withval"
7349 esac
7350 else
7351 BUGURL="http://gcc.gnu.org/bugs.html"
7355 case ${BUGURL} in
7357 REPORT_BUGS_TO=
7358 REPORT_BUGS_TEXI=
7361 REPORT_BUGS_TO="<$BUGURL>"
7362 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7364 esac;
7369 # Sanity check enable_languages in case someone does not run the toplevel
7370 # configure # script.
7371 # Check whether --enable-languages was given.
7372 if test "${enable_languages+set}" = set; then :
7373 enableval=$enable_languages; case ,${enable_languages}, in
7374 ,,|,yes,)
7375 # go safe -- we cannot be much sure without the toplevel
7376 # configure's
7377 # analysis of which target libs are present and usable
7378 enable_languages=c
7380 *,all,*)
7381 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7383 *,c,*)
7386 enable_languages=c,${enable_languages}
7388 esac
7389 else
7390 enable_languages=c
7395 # Check whether --with-multilib-list was given.
7396 if test "${with_multilib_list+set}" = set; then :
7397 withval=$with_multilib_list; :
7398 else
7399 with_multilib_list=default
7403 # -------------------------
7404 # Checks for other programs
7405 # -------------------------
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7408 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7409 set x ${MAKE-make}
7410 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7411 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7412 $as_echo_n "(cached) " >&6
7413 else
7414 cat >conftest.make <<\_ACEOF
7415 SHELL = /bin/sh
7416 all:
7417 @echo '@@@%%%=$(MAKE)=@@@%%%'
7418 _ACEOF
7419 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7420 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7421 *@@@%%%=?*=@@@%%%*)
7422 eval ac_cv_prog_make_${ac_make}_set=yes;;
7424 eval ac_cv_prog_make_${ac_make}_set=no;;
7425 esac
7426 rm -f conftest.make
7428 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7430 $as_echo "yes" >&6; }
7431 SET_MAKE=
7432 else
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }
7435 SET_MAKE="MAKE=${MAKE-make}"
7439 # Find some useful tools
7440 for ac_prog in gawk mawk nawk awk
7442 # Extract the first word of "$ac_prog", so it can be a program name with args.
7443 set dummy $ac_prog; ac_word=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if test "${ac_cv_prog_AWK+set}" = set; then :
7447 $as_echo_n "(cached) " >&6
7448 else
7449 if test -n "$AWK"; then
7450 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7451 else
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $PATH
7455 IFS=$as_save_IFS
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7459 ac_cv_prog_AWK="$ac_prog"
7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 break 2
7463 done
7464 done
7465 IFS=$as_save_IFS
7469 AWK=$ac_cv_prog_AWK
7470 if test -n "$AWK"; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7472 $as_echo "$AWK" >&6; }
7473 else
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7479 test -n "$AWK" && break
7480 done
7482 # We need awk to create options.c and options.h.
7483 # Bail out if it's missing.
7484 case ${AWK} in
7485 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7486 esac
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7489 $as_echo_n "checking whether ln -s works... " >&6; }
7490 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7491 $as_echo_n "(cached) " >&6
7492 else
7493 rm -f conftestdata_t
7494 echo >conftestdata_f
7495 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7496 then
7497 gcc_cv_prog_LN_S="ln -s"
7498 else
7499 if ln conftestdata_f conftestdata_t 2>/dev/null
7500 then
7501 gcc_cv_prog_LN_S=ln
7502 else
7503 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7504 then
7505 gcc_cv_prog_LN_S="cp -p"
7506 else
7507 gcc_cv_prog_LN_S=cp
7511 rm -f conftestdata_f conftestdata_t
7514 LN_S="$gcc_cv_prog_LN_S"
7515 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7517 $as_echo "yes" >&6; }
7518 else
7519 if test "$gcc_cv_prog_LN_S" = "ln"; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7521 $as_echo "no, using ln" >&6; }
7522 else
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7524 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7529 $as_echo_n "checking whether ln works... " >&6; }
7530 if test "${acx_cv_prog_LN+set}" = set; then :
7531 $as_echo_n "(cached) " >&6
7532 else
7533 rm -f conftestdata_t
7534 echo >conftestdata_f
7535 if ln conftestdata_f conftestdata_t 2>/dev/null
7536 then
7537 acx_cv_prog_LN=ln
7538 else
7539 acx_cv_prog_LN=no
7541 rm -f conftestdata_f conftestdata_t
7544 if test $acx_cv_prog_LN = no; then
7545 LN="$LN_S"
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7547 $as_echo "no, using $LN" >&6; }
7548 else
7549 LN="$acx_cv_prog_LN"
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7551 $as_echo "yes" >&6; }
7554 if test -n "$ac_tool_prefix"; then
7555 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7556 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7558 $as_echo_n "checking for $ac_word... " >&6; }
7559 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7560 $as_echo_n "(cached) " >&6
7561 else
7562 if test -n "$RANLIB"; then
7563 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7564 else
7565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566 for as_dir in $PATH
7568 IFS=$as_save_IFS
7569 test -z "$as_dir" && as_dir=.
7570 for ac_exec_ext in '' $ac_executable_extensions; do
7571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7572 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7574 break 2
7576 done
7577 done
7578 IFS=$as_save_IFS
7582 RANLIB=$ac_cv_prog_RANLIB
7583 if test -n "$RANLIB"; then
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7585 $as_echo "$RANLIB" >&6; }
7586 else
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7588 $as_echo "no" >&6; }
7593 if test -z "$ac_cv_prog_RANLIB"; then
7594 ac_ct_RANLIB=$RANLIB
7595 # Extract the first word of "ranlib", so it can be a program name with args.
7596 set dummy ranlib; ac_word=$2
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7598 $as_echo_n "checking for $ac_word... " >&6; }
7599 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7600 $as_echo_n "(cached) " >&6
7601 else
7602 if test -n "$ac_ct_RANLIB"; then
7603 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7604 else
7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 for as_dir in $PATH
7608 IFS=$as_save_IFS
7609 test -z "$as_dir" && as_dir=.
7610 for ac_exec_ext in '' $ac_executable_extensions; do
7611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7612 ac_cv_prog_ac_ct_RANLIB="ranlib"
7613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7614 break 2
7616 done
7617 done
7618 IFS=$as_save_IFS
7622 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7623 if test -n "$ac_ct_RANLIB"; then
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7625 $as_echo "$ac_ct_RANLIB" >&6; }
7626 else
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7628 $as_echo "no" >&6; }
7631 if test "x$ac_ct_RANLIB" = x; then
7632 RANLIB=":"
7633 else
7634 case $cross_compiling:$ac_tool_warned in
7635 yes:)
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7638 ac_tool_warned=yes ;;
7639 esac
7640 RANLIB=$ac_ct_RANLIB
7642 else
7643 RANLIB="$ac_cv_prog_RANLIB"
7646 ranlib_flags=""
7649 # Find a good install program. We prefer a C program (faster),
7650 # so one script is as good as another. But avoid the broken or
7651 # incompatible versions:
7652 # SysV /etc/install, /usr/sbin/install
7653 # SunOS /usr/etc/install
7654 # IRIX /sbin/install
7655 # AIX /bin/install
7656 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7657 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7658 # ./install, which can be erroneously created by make from ./install.sh.
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7660 $as_echo_n "checking for a BSD compatible install... " >&6; }
7661 if test -z "$INSTALL"; then
7662 if test "${ac_cv_path_install+set}" = set; then :
7663 $as_echo_n "(cached) " >&6
7664 else
7665 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7666 for ac_dir in $PATH; do
7667 # Account for people who put trailing slashes in PATH elements.
7668 case "$ac_dir/" in
7669 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7671 # OSF1 and SCO ODT 3.0 have their own names for install.
7672 for ac_prog in ginstall scoinst install; do
7673 if test -f $ac_dir/$ac_prog; then
7674 if test $ac_prog = install &&
7675 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7676 # AIX install. It has an incompatible calling convention.
7677 # OSF/1 installbsd also uses dspmsg, but is usable.
7679 else
7680 ac_cv_path_install="$ac_dir/$ac_prog -c"
7681 break 2
7684 done
7686 esac
7687 done
7688 IFS="$ac_save_IFS"
7691 if test "${ac_cv_path_install+set}" = set; then
7692 INSTALL="$ac_cv_path_install"
7693 else
7694 # As a last resort, use the slow shell script. We don't cache a
7695 # path for INSTALL within a source directory, because that will
7696 # break other packages using the cache if that directory is
7697 # removed, or if the path is relative.
7698 INSTALL="$ac_install_sh"
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7702 $as_echo "$INSTALL" >&6; }
7704 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7705 # It thinks the first close brace ends the variable substitution.
7706 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7708 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7711 # See if cmp has --ignore-initial.
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7713 $as_echo_n "checking for cmp's capabilities... " >&6; }
7714 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7715 $as_echo_n "(cached) " >&6
7716 else
7717 echo abfoo >t1
7718 echo cdfoo >t2
7719 gcc_cv_prog_cmp_skip=slowcompare
7720 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7721 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7723 else
7724 gcc_cv_prog_cmp_skip=gnucompare
7727 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7728 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7729 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7731 else
7732 gcc_cv_prog_cmp_skip=fastcompare
7736 rm t1 t2
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7740 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7741 make_compare_target=$gcc_cv_prog_cmp_skip
7745 # See if we have the mktemp command.
7746 # Extract the first word of "mktemp", so it can be a program name with args.
7747 set dummy mktemp; ac_word=$2
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7749 $as_echo_n "checking for $ac_word... " >&6; }
7750 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7751 $as_echo_n "(cached) " >&6
7752 else
7753 if test -n "$have_mktemp_command"; then
7754 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7755 else
7756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757 for as_dir in $PATH
7759 IFS=$as_save_IFS
7760 test -z "$as_dir" && as_dir=.
7761 for ac_exec_ext in '' $ac_executable_extensions; do
7762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7763 ac_cv_prog_have_mktemp_command="yes"
7764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7765 break 2
7767 done
7768 done
7769 IFS=$as_save_IFS
7771 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7774 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7775 if test -n "$have_mktemp_command"; then
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7777 $as_echo "$have_mktemp_command" >&6; }
7778 else
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7780 $as_echo "no" >&6; }
7785 # See if makeinfo has been installed and is modern enough
7786 # that we can use it.
7788 # Extract the first word of "makeinfo", so it can be a program name with args.
7789 set dummy makeinfo; ac_word=$2
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7791 $as_echo_n "checking for $ac_word... " >&6; }
7792 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7793 $as_echo_n "(cached) " >&6
7794 else
7795 if test -n "$MAKEINFO"; then
7796 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7797 else
7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799 for as_dir in $PATH
7801 IFS=$as_save_IFS
7802 test -z "$as_dir" && as_dir=.
7803 for ac_exec_ext in '' $ac_executable_extensions; do
7804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7805 ac_cv_prog_MAKEINFO="makeinfo"
7806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7807 break 2
7809 done
7810 done
7811 IFS=$as_save_IFS
7815 MAKEINFO=$ac_cv_prog_MAKEINFO
7816 if test -n "$MAKEINFO"; then
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7818 $as_echo "$MAKEINFO" >&6; }
7819 else
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7821 $as_echo "no" >&6; }
7825 if test -n "$MAKEINFO"; then
7826 # Found it, now check the version.
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7828 $as_echo_n "checking for modern makeinfo... " >&6; }
7829 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7830 $as_echo_n "(cached) " >&6
7831 else
7832 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7833 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7835 case $ac_prog_version in
7836 '') gcc_cv_prog_makeinfo_modern=no;;
7837 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7838 *) gcc_cv_prog_makeinfo_modern=no;;
7839 esac
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7843 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7844 else
7845 gcc_cv_prog_makeinfo_modern=no
7847 if test $gcc_cv_prog_makeinfo_modern = no; then
7848 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7851 if test $gcc_cv_prog_makeinfo_modern = no; then
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7853 *** Makeinfo is missing or too old.
7854 *** Info documentation will not be built." >&5
7855 $as_echo "$as_me: WARNING:
7856 *** Makeinfo is missing or too old.
7857 *** Info documentation will not be built." >&2;}
7858 BUILD_INFO=
7859 else
7860 BUILD_INFO=info
7864 # Is pod2man recent enough to regenerate manpages?
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7866 $as_echo_n "checking for recent Pod::Man... " >&6; }
7867 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7869 $as_echo "yes" >&6; }
7870 GENERATED_MANPAGES=generated-manpages
7871 else
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 $as_echo "no" >&6; }
7874 GENERATED_MANPAGES=
7878 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7880 # How about lex?
7881 for ac_prog in flex
7883 # Extract the first word of "$ac_prog", so it can be a program name with args.
7884 set dummy $ac_prog; ac_word=$2
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7886 $as_echo_n "checking for $ac_word... " >&6; }
7887 if test "${ac_cv_prog_FLEX+set}" = set; then :
7888 $as_echo_n "(cached) " >&6
7889 else
7890 if test -n "$FLEX"; then
7891 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7892 else
7893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894 for as_dir in $PATH
7896 IFS=$as_save_IFS
7897 test -z "$as_dir" && as_dir=.
7898 for ac_exec_ext in '' $ac_executable_extensions; do
7899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7900 ac_cv_prog_FLEX="$ac_prog"
7901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7902 break 2
7904 done
7905 done
7906 IFS=$as_save_IFS
7910 FLEX=$ac_cv_prog_FLEX
7911 if test -n "$FLEX"; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7913 $as_echo "$FLEX" >&6; }
7914 else
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916 $as_echo "no" >&6; }
7920 test -n "$FLEX" && break
7921 done
7922 test -n "$FLEX" || FLEX="$MISSING flex"
7925 # Bison?
7926 for ac_prog in bison
7928 # Extract the first word of "$ac_prog", so it can be a program name with args.
7929 set dummy $ac_prog; ac_word=$2
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7931 $as_echo_n "checking for $ac_word... " >&6; }
7932 if test "${ac_cv_prog_BISON+set}" = set; then :
7933 $as_echo_n "(cached) " >&6
7934 else
7935 if test -n "$BISON"; then
7936 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7937 else
7938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939 for as_dir in $PATH
7941 IFS=$as_save_IFS
7942 test -z "$as_dir" && as_dir=.
7943 for ac_exec_ext in '' $ac_executable_extensions; do
7944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7945 ac_cv_prog_BISON="$ac_prog"
7946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7947 break 2
7949 done
7950 done
7951 IFS=$as_save_IFS
7955 BISON=$ac_cv_prog_BISON
7956 if test -n "$BISON"; then
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7958 $as_echo "$BISON" >&6; }
7959 else
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7961 $as_echo "no" >&6; }
7965 test -n "$BISON" && break
7966 done
7967 test -n "$BISON" || BISON="$MISSING bison"
7970 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7971 # check for build == host before using them.
7973 # NM
7974 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7975 && test -d ../binutils ; then
7976 NM='${objdir}/../binutils/nm-new'
7977 else
7978 # Extract the first word of "nm", so it can be a program name with args.
7979 set dummy nm; ac_word=$2
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7981 $as_echo_n "checking for $ac_word... " >&6; }
7982 if test "${ac_cv_prog_NM+set}" = set; then :
7983 $as_echo_n "(cached) " >&6
7984 else
7985 if test -n "$NM"; then
7986 ac_cv_prog_NM="$NM" # Let the user override the test.
7987 else
7988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989 for as_dir in $PATH
7991 IFS=$as_save_IFS
7992 test -z "$as_dir" && as_dir=.
7993 for ac_exec_ext in '' $ac_executable_extensions; do
7994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7995 ac_cv_prog_NM="nm"
7996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 break 2
7999 done
8000 done
8001 IFS=$as_save_IFS
8003 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8006 NM=$ac_cv_prog_NM
8007 if test -n "$NM"; then
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8009 $as_echo "$NM" >&6; }
8010 else
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012 $as_echo "no" >&6; }
8018 # AR
8019 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8020 && test -d ../binutils ; then
8021 AR='${objdir}/../binutils/ar'
8022 else
8023 # Extract the first word of "ar", so it can be a program name with args.
8024 set dummy ar; ac_word=$2
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8026 $as_echo_n "checking for $ac_word... " >&6; }
8027 if test "${ac_cv_prog_AR+set}" = set; then :
8028 $as_echo_n "(cached) " >&6
8029 else
8030 if test -n "$AR"; then
8031 ac_cv_prog_AR="$AR" # Let the user override the test.
8032 else
8033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034 for as_dir in $PATH
8036 IFS=$as_save_IFS
8037 test -z "$as_dir" && as_dir=.
8038 for ac_exec_ext in '' $ac_executable_extensions; do
8039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8040 ac_cv_prog_AR="ar"
8041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8042 break 2
8044 done
8045 done
8046 IFS=$as_save_IFS
8048 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8051 AR=$ac_cv_prog_AR
8052 if test -n "$AR"; then
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8054 $as_echo "$AR" >&6; }
8055 else
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8057 $as_echo "no" >&6; }
8064 # --------------------
8065 # Checks for C headers
8066 # --------------------
8068 # Need to reject headers which give warnings, so that the -Werror bootstrap
8069 # works later. *sigh* This needs to come before all header checks.
8071 ac_c_preproc_warn_flag=yes
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8074 $as_echo_n "checking for ANSI C header files... " >&6; }
8075 if test "${ac_cv_header_stdc+set}" = set; then :
8076 $as_echo_n "(cached) " >&6
8077 else
8078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8079 /* end confdefs.h. */
8080 #include <stdlib.h>
8081 #include <stdarg.h>
8082 #include <string.h>
8083 #include <float.h>
8086 main ()
8090 return 0;
8092 _ACEOF
8093 if ac_fn_c_try_compile "$LINENO"; then :
8094 ac_cv_header_stdc=yes
8095 else
8096 ac_cv_header_stdc=no
8098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8100 if test $ac_cv_header_stdc = yes; then
8101 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8103 /* end confdefs.h. */
8104 #include <string.h>
8106 _ACEOF
8107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8108 $EGREP "memchr" >/dev/null 2>&1; then :
8110 else
8111 ac_cv_header_stdc=no
8113 rm -f conftest*
8117 if test $ac_cv_header_stdc = yes; then
8118 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120 /* end confdefs.h. */
8121 #include <stdlib.h>
8123 _ACEOF
8124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8125 $EGREP "free" >/dev/null 2>&1; then :
8127 else
8128 ac_cv_header_stdc=no
8130 rm -f conftest*
8134 if test $ac_cv_header_stdc = yes; then
8135 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8136 if test "$cross_compiling" = yes; then :
8138 else
8139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8140 /* end confdefs.h. */
8141 #include <ctype.h>
8142 #include <stdlib.h>
8143 #if ((' ' & 0x0FF) == 0x020)
8144 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8145 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8146 #else
8147 # define ISLOWER(c) \
8148 (('a' <= (c) && (c) <= 'i') \
8149 || ('j' <= (c) && (c) <= 'r') \
8150 || ('s' <= (c) && (c) <= 'z'))
8151 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8152 #endif
8154 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8156 main ()
8158 int i;
8159 for (i = 0; i < 256; i++)
8160 if (XOR (islower (i), ISLOWER (i))
8161 || toupper (i) != TOUPPER (i))
8162 return 2;
8163 return 0;
8165 _ACEOF
8166 if ac_fn_c_try_run "$LINENO"; then :
8168 else
8169 ac_cv_header_stdc=no
8171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8172 conftest.$ac_objext conftest.beam conftest.$ac_ext
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8178 $as_echo "$ac_cv_header_stdc" >&6; }
8179 if test $ac_cv_header_stdc = yes; then
8181 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8186 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8187 if test "${ac_cv_header_time+set}" = set; then :
8188 $as_echo_n "(cached) " >&6
8189 else
8190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8191 /* end confdefs.h. */
8192 #include <sys/types.h>
8193 #include <sys/time.h>
8194 #include <time.h>
8197 main ()
8199 if ((struct tm *) 0)
8200 return 0;
8202 return 0;
8204 _ACEOF
8205 if ac_fn_c_try_compile "$LINENO"; then :
8206 ac_cv_header_time=yes
8207 else
8208 ac_cv_header_time=no
8210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8213 $as_echo "$ac_cv_header_time" >&6; }
8214 if test $ac_cv_header_time = yes; then
8216 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8221 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8222 if test "${gcc_cv_header_string+set}" = set; then :
8223 $as_echo_n "(cached) " >&6
8224 else
8225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8226 /* end confdefs.h. */
8227 #include <string.h>
8228 #include <strings.h>
8230 main ()
8234 return 0;
8236 _ACEOF
8237 if ac_fn_c_try_compile "$LINENO"; then :
8238 gcc_cv_header_string=yes
8239 else
8240 gcc_cv_header_string=no
8242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8245 $as_echo "$gcc_cv_header_string" >&6; }
8246 if test $gcc_cv_header_string = yes; then
8248 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8253 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8254 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8255 $as_echo_n "(cached) " >&6
8256 else
8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h. */
8259 #include <sys/types.h>
8260 #include <sys/wait.h>
8261 #ifndef WEXITSTATUS
8262 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8263 #endif
8264 #ifndef WIFEXITED
8265 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8266 #endif
8269 main ()
8271 int s;
8272 wait (&s);
8273 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8275 return 0;
8277 _ACEOF
8278 if ac_fn_c_try_compile "$LINENO"; then :
8279 ac_cv_header_sys_wait_h=yes
8280 else
8281 ac_cv_header_sys_wait_h=no
8283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8286 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8287 if test $ac_cv_header_sys_wait_h = yes; then
8289 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8294 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8295 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8296 $as_echo_n "(cached) " >&6
8297 else
8298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299 /* end confdefs.h. */
8300 #include <sys/types.h>
8301 #include <termios.h>
8302 #ifdef TIOCGWINSZ
8304 #endif
8306 _ACEOF
8307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8308 $EGREP "yes" >/dev/null 2>&1; then :
8309 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8310 else
8311 ac_cv_sys_tiocgwinsz_in_termios_h=no
8313 rm -f conftest*
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8317 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8319 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8321 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8322 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8323 $as_echo_n "(cached) " >&6
8324 else
8325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8326 /* end confdefs.h. */
8327 #include <sys/types.h>
8328 #include <sys/ioctl.h>
8329 #ifdef TIOCGWINSZ
8331 #endif
8333 _ACEOF
8334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8335 $EGREP "yes" >/dev/null 2>&1; then :
8336 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8337 else
8338 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8340 rm -f conftest*
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8344 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8346 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8348 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8353 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8354 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8355 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8356 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8357 do :
8358 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8359 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8360 eval as_val=\$$as_ac_Header
8361 if test "x$as_val" = x""yes; then :
8362 cat >>confdefs.h <<_ACEOF
8363 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8364 _ACEOF
8367 done
8370 # Check for thread headers.
8371 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8372 if test "x$ac_cv_header_thread_h" = x""yes; then :
8373 have_thread_h=yes
8374 else
8375 have_thread_h=
8378 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8379 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8380 have_pthread_h=yes
8381 else
8382 have_pthread_h=
8386 # These tests can't be done till we know if we have limits.h.
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8388 $as_echo_n "checking for CHAR_BIT... " >&6; }
8389 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8390 $as_echo_n "(cached) " >&6
8391 else
8392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8393 /* end confdefs.h. */
8394 #ifdef HAVE_LIMITS_H
8395 #include <limits.h>
8396 #endif
8397 #ifdef CHAR_BIT
8398 found
8399 #endif
8400 _ACEOF
8401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8402 $EGREP "found" >/dev/null 2>&1; then :
8403 gcc_cv_decl_char_bit=yes
8404 else
8405 gcc_cv_decl_char_bit=no
8407 rm -f conftest*
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8412 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8413 if test $gcc_cv_decl_char_bit = no; then
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8415 $as_echo_n "checking number of bits in a byte... " >&6; }
8416 if test "${gcc_cv_c_nbby+set}" = set; then :
8417 $as_echo_n "(cached) " >&6
8418 else
8420 gcc_cv_c_nbby=
8421 while test $i -lt 65; do
8422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8423 /* end confdefs.h. */
8426 main ()
8428 switch(0) {
8429 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8430 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8433 return 0;
8435 _ACEOF
8436 if ac_fn_c_try_compile "$LINENO"; then :
8437 gcc_cv_c_nbby=$i; break
8439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8440 i=`expr $i + 1`
8441 done
8442 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8446 $as_echo "$gcc_cv_c_nbby" >&6; }
8447 if test $gcc_cv_c_nbby = failed; then
8448 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8449 else
8451 cat >>confdefs.h <<_ACEOF
8452 #define CHAR_BIT $gcc_cv_c_nbby
8453 _ACEOF
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8458 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8459 if test "${ac_cv_c_bigendian+set}" = set; then :
8460 $as_echo_n "(cached) " >&6
8461 else
8462 ac_cv_c_bigendian=unknown
8463 # See if we're dealing with a universal compiler.
8464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465 /* end confdefs.h. */
8466 #ifndef __APPLE_CC__
8467 not a universal capable compiler
8468 #endif
8469 typedef int dummy;
8471 _ACEOF
8472 if ac_fn_c_try_compile "$LINENO"; then :
8474 # Check for potential -arch flags. It is not universal unless
8475 # there are at least two -arch flags with different values.
8476 ac_arch=
8477 ac_prev=
8478 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8479 if test -n "$ac_prev"; then
8480 case $ac_word in
8481 i?86 | x86_64 | ppc | ppc64)
8482 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8483 ac_arch=$ac_word
8484 else
8485 ac_cv_c_bigendian=universal
8486 break
8489 esac
8490 ac_prev=
8491 elif test "x$ac_word" = "x-arch"; then
8492 ac_prev=arch
8494 done
8496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8497 if test $ac_cv_c_bigendian = unknown; then
8498 # See if sys/param.h defines the BYTE_ORDER macro.
8499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500 /* end confdefs.h. */
8501 #include <sys/types.h>
8502 #include <sys/param.h>
8505 main ()
8507 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8508 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8509 && LITTLE_ENDIAN)
8510 bogus endian macros
8511 #endif
8514 return 0;
8516 _ACEOF
8517 if ac_fn_c_try_compile "$LINENO"; then :
8518 # It does; now see whether it defined to BIG_ENDIAN or not.
8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8521 #include <sys/types.h>
8522 #include <sys/param.h>
8525 main ()
8527 #if BYTE_ORDER != BIG_ENDIAN
8528 not big endian
8529 #endif
8532 return 0;
8534 _ACEOF
8535 if ac_fn_c_try_compile "$LINENO"; then :
8536 ac_cv_c_bigendian=yes
8537 else
8538 ac_cv_c_bigendian=no
8540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8544 if test $ac_cv_c_bigendian = unknown; then
8545 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8547 /* end confdefs.h. */
8548 #include <limits.h>
8551 main ()
8553 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8554 bogus endian macros
8555 #endif
8558 return 0;
8560 _ACEOF
8561 if ac_fn_c_try_compile "$LINENO"; then :
8562 # It does; now see whether it defined to _BIG_ENDIAN or not.
8563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8564 /* end confdefs.h. */
8565 #include <limits.h>
8568 main ()
8570 #ifndef _BIG_ENDIAN
8571 not big endian
8572 #endif
8575 return 0;
8577 _ACEOF
8578 if ac_fn_c_try_compile "$LINENO"; then :
8579 ac_cv_c_bigendian=yes
8580 else
8581 ac_cv_c_bigendian=no
8583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8587 if test $ac_cv_c_bigendian = unknown; then
8588 # Compile a test program.
8589 if test "$cross_compiling" = yes; then :
8590 # Try to guess by grepping values from an object file.
8591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8592 /* end confdefs.h. */
8593 short int ascii_mm[] =
8594 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8595 short int ascii_ii[] =
8596 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8597 int use_ascii (int i) {
8598 return ascii_mm[i] + ascii_ii[i];
8600 short int ebcdic_ii[] =
8601 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8602 short int ebcdic_mm[] =
8603 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8604 int use_ebcdic (int i) {
8605 return ebcdic_mm[i] + ebcdic_ii[i];
8607 extern int foo;
8610 main ()
8612 return use_ascii (foo) == use_ebcdic (foo);
8614 return 0;
8616 _ACEOF
8617 if ac_fn_c_try_compile "$LINENO"; then :
8618 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8619 ac_cv_c_bigendian=yes
8621 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8622 if test "$ac_cv_c_bigendian" = unknown; then
8623 ac_cv_c_bigendian=no
8624 else
8625 # finding both strings is unlikely to happen, but who knows?
8626 ac_cv_c_bigendian=unknown
8630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8631 else
8632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8633 /* end confdefs.h. */
8634 $ac_includes_default
8636 main ()
8639 /* Are we little or big endian? From Harbison&Steele. */
8640 union
8642 long int l;
8643 char c[sizeof (long int)];
8644 } u;
8645 u.l = 1;
8646 return u.c[sizeof (long int) - 1] == 1;
8649 return 0;
8651 _ACEOF
8652 if ac_fn_c_try_run "$LINENO"; then :
8653 ac_cv_c_bigendian=no
8654 else
8655 ac_cv_c_bigendian=yes
8657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8658 conftest.$ac_objext conftest.beam conftest.$ac_ext
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8664 $as_echo "$ac_cv_c_bigendian" >&6; }
8665 case $ac_cv_c_bigendian in #(
8666 yes)
8667 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8668 ;; #(
8670 ;; #(
8671 universal)
8673 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8675 ;; #(
8677 as_fn_error "unknown endianness
8678 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8679 esac
8682 # ----------------------
8683 # Checks for C++ headers
8684 # ----------------------
8686 ac_ext=cpp
8687 ac_cpp='$CXXCPP $CPPFLAGS'
8688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8692 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8693 if test -z "$CXXCPP"; then
8694 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8695 $as_echo_n "(cached) " >&6
8696 else
8697 # Double quotes because CXXCPP needs to be expanded
8698 for CXXCPP in "$CXX -E" "/lib/cpp"
8700 ac_preproc_ok=false
8701 for ac_cxx_preproc_warn_flag in '' yes
8703 # Use a header file that comes with gcc, so configuring glibc
8704 # with a fresh cross-compiler works.
8705 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8706 # <limits.h> exists even on freestanding compilers.
8707 # On the NeXT, cc -E runs the code through the compiler's parser,
8708 # not just through cpp. "Syntax error" is here to catch this case.
8709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8710 /* end confdefs.h. */
8711 #ifdef __STDC__
8712 # include <limits.h>
8713 #else
8714 # include <assert.h>
8715 #endif
8716 Syntax error
8717 _ACEOF
8718 if ac_fn_cxx_try_cpp "$LINENO"; then :
8720 else
8721 # Broken: fails on valid input.
8722 continue
8724 rm -f conftest.err conftest.$ac_ext
8726 # OK, works on sane cases. Now check whether nonexistent headers
8727 # can be detected and how.
8728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729 /* end confdefs.h. */
8730 #include <ac_nonexistent.h>
8731 _ACEOF
8732 if ac_fn_cxx_try_cpp "$LINENO"; then :
8733 # Broken: success on invalid input.
8734 continue
8735 else
8736 # Passes both tests.
8737 ac_preproc_ok=:
8738 break
8740 rm -f conftest.err conftest.$ac_ext
8742 done
8743 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8744 rm -f conftest.err conftest.$ac_ext
8745 if $ac_preproc_ok; then :
8746 break
8749 done
8750 ac_cv_prog_CXXCPP=$CXXCPP
8753 CXXCPP=$ac_cv_prog_CXXCPP
8754 else
8755 ac_cv_prog_CXXCPP=$CXXCPP
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8758 $as_echo "$CXXCPP" >&6; }
8759 ac_preproc_ok=false
8760 for ac_cxx_preproc_warn_flag in '' yes
8762 # Use a header file that comes with gcc, so configuring glibc
8763 # with a fresh cross-compiler works.
8764 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8765 # <limits.h> exists even on freestanding compilers.
8766 # On the NeXT, cc -E runs the code through the compiler's parser,
8767 # not just through cpp. "Syntax error" is here to catch this case.
8768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8769 /* end confdefs.h. */
8770 #ifdef __STDC__
8771 # include <limits.h>
8772 #else
8773 # include <assert.h>
8774 #endif
8775 Syntax error
8776 _ACEOF
8777 if ac_fn_cxx_try_cpp "$LINENO"; then :
8779 else
8780 # Broken: fails on valid input.
8781 continue
8783 rm -f conftest.err conftest.$ac_ext
8785 # OK, works on sane cases. Now check whether nonexistent headers
8786 # can be detected and how.
8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8789 #include <ac_nonexistent.h>
8790 _ACEOF
8791 if ac_fn_cxx_try_cpp "$LINENO"; then :
8792 # Broken: success on invalid input.
8793 continue
8794 else
8795 # Passes both tests.
8796 ac_preproc_ok=:
8797 break
8799 rm -f conftest.err conftest.$ac_ext
8801 done
8802 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8803 rm -f conftest.err conftest.$ac_ext
8804 if $ac_preproc_ok; then :
8806 else
8807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8810 See \`config.log' for more details." >&5
8811 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8812 See \`config.log' for more details." >&2;}; }
8815 ac_ext=c
8816 ac_cpp='$CPP $CPPFLAGS'
8817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8822 ac_ext=cpp
8823 ac_cpp='$CXXCPP $CPPFLAGS'
8824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8830 for ac_header in unordered_map
8831 do :
8832 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8833 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8834 cat >>confdefs.h <<_ACEOF
8835 #define HAVE_UNORDERED_MAP 1
8836 _ACEOF
8839 done
8841 for ac_header in tr1/unordered_map
8842 do :
8843 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8844 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8845 cat >>confdefs.h <<_ACEOF
8846 #define HAVE_TR1_UNORDERED_MAP 1
8847 _ACEOF
8850 done
8852 for ac_header in ext/hash_map
8853 do :
8854 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8855 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8856 cat >>confdefs.h <<_ACEOF
8857 #define HAVE_EXT_HASH_MAP 1
8858 _ACEOF
8861 done
8864 ac_ext=c
8865 ac_cpp='$CPP $CPPFLAGS'
8866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8871 # --------
8872 # Dependency checking.
8873 # --------
8875 ac_ext=cpp
8876 ac_cpp='$CXXCPP $CPPFLAGS'
8877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8881 rm -rf .tst 2>/dev/null
8882 mkdir .tst 2>/dev/null
8883 if test -d .tst; then
8884 am__leading_dot=.
8885 else
8886 am__leading_dot=_
8888 rmdir .tst 2>/dev/null
8890 DEPDIR="${am__leading_dot}deps"
8892 ac_config_commands="$ac_config_commands depdir"
8895 ac_config_commands="$ac_config_commands gccdepdir"
8898 depcc="$CXX" am_compiler_list=
8900 am_depcomp=$ac_aux_dir/depcomp
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8902 $as_echo_n "checking dependency style of $depcc... " >&6; }
8903 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8904 $as_echo_n "(cached) " >&6
8905 else
8906 if test -f "$am_depcomp"; then
8907 # We make a subdir and do the tests there. Otherwise we can end up
8908 # making bogus files that we don't know about and never remove. For
8909 # instance it was reported that on HP-UX the gcc test will end up
8910 # making a dummy file named `D' -- because `-MD' means `put the output
8911 # in D'.
8912 mkdir conftest.dir
8913 # Copy depcomp to subdir because otherwise we won't find it if we're
8914 # using a relative directory.
8915 cp "$am_depcomp" conftest.dir
8916 cd conftest.dir
8917 # We will build objects and dependencies in a subdirectory because
8918 # it helps to detect inapplicable dependency modes. For instance
8919 # both Tru64's cc and ICC support -MD to output dependencies as a
8920 # side effect of compilation, but ICC will put the dependencies in
8921 # the current directory while Tru64 will put them in the object
8922 # directory.
8923 mkdir sub
8925 am_cv_CXX_dependencies_compiler_type=none
8926 if test "$am_compiler_list" = ""; then
8927 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8929 for depmode in $am_compiler_list; do
8930 if test $depmode = none; then break; fi
8932 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8933 # Setup a source with many dependencies, because some compilers
8934 # like to wrap large dependency lists on column 80 (with \), and
8935 # we should not choose a depcomp mode which is confused by this.
8937 # We need to recreate these files for each test, as the compiler may
8938 # overwrite some of them when testing with obscure command lines.
8939 # This happens at least with the AIX C compiler.
8940 : > sub/conftest.c
8941 for i in 1 2 3 4 5 6; do
8942 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8943 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8944 # Solaris 8's {/usr,}/bin/sh.
8945 touch sub/conftst$i.h
8946 done
8947 echo "include sub/conftest.Po" > confmf
8949 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8950 # mode. It turns out that the SunPro C++ compiler does not properly
8951 # handle `-M -o', and we need to detect this.
8952 depcmd="depmode=$depmode \
8953 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8954 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8955 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8956 echo "| $depcmd" | sed -e 's/ */ /g' >&5
8957 if env $depcmd > conftest.err 2>&1 &&
8958 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
8959 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
8960 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
8961 # icc doesn't choke on unknown options, it will just issue warnings
8962 # or remarks (even with -Werror). So we grep stderr for any message
8963 # that says an option was ignored or not supported.
8964 # When given -MP, icc 7.0 and 7.1 complain thusly:
8965 # icc: Command line warning: ignoring option '-M'; no argument required
8966 # The diagnosis changed in icc 8.0:
8967 # icc: Command line remark: option '-MP' not supported
8968 if (grep 'ignoring option' conftest.err ||
8969 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8970 am_cv_CXX_dependencies_compiler_type=$depmode
8971 $as_echo "$as_me:$LINENO: success" >&5
8972 break
8975 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8976 sed -e 's/^/| /' < conftest.err >&5
8977 done
8979 cd ..
8980 rm -rf conftest.dir
8981 else
8982 am_cv_CXX_dependencies_compiler_type=none
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8987 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8988 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
8989 then as_fn_error "no usable dependency style found" "$LINENO" 5
8990 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8994 ac_ext=c
8995 ac_cpp='$CPP $CPPFLAGS'
8996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9001 # --------
9002 # UNSORTED
9003 # --------
9006 # These libraries may be used by collect2.
9007 # We may need a special search path to get them linked.
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9009 $as_echo_n "checking for collect2 libraries... " >&6; }
9010 if test "${gcc_cv_collect2_libs+set}" = set; then :
9011 $as_echo_n "(cached) " >&6
9012 else
9013 save_LIBS="$LIBS"
9014 for libs in '' -lld -lmld \
9015 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9016 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9018 LIBS="$libs"
9019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020 /* end confdefs.h. */
9022 /* Override any GCC internal prototype to avoid an error.
9023 Use char because int might match the return type of a GCC
9024 builtin and then its argument prototype would still apply. */
9025 #ifdef __cplusplus
9026 extern "C"
9027 #endif
9028 char ldopen ();
9030 main ()
9032 return ldopen ();
9034 return 0;
9036 _ACEOF
9037 if ac_fn_c_try_link "$LINENO"; then :
9038 gcc_cv_collect2_libs="$libs"; break
9040 rm -f core conftest.err conftest.$ac_objext \
9041 conftest$ac_exeext conftest.$ac_ext
9042 done
9043 LIBS="$save_LIBS"
9044 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9047 $as_echo "$gcc_cv_collect2_libs" >&6; }
9048 case $gcc_cv_collect2_libs in
9049 "none required") ;;
9050 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9051 esac
9054 # When building Ada code on Alpha, we need exc_resume which is usually in
9055 # -lexc. So test for it.
9056 save_LIBS="$LIBS"
9057 LIBS=
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9059 $as_echo_n "checking for library containing exc_resume... " >&6; }
9060 if test "${ac_cv_search_exc_resume+set}" = set; then :
9061 $as_echo_n "(cached) " >&6
9062 else
9063 ac_func_search_save_LIBS=$LIBS
9064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9065 /* end confdefs.h. */
9067 /* Override any GCC internal prototype to avoid an error.
9068 Use char because int might match the return type of a GCC
9069 builtin and then its argument prototype would still apply. */
9070 #ifdef __cplusplus
9071 extern "C"
9072 #endif
9073 char exc_resume ();
9075 main ()
9077 return exc_resume ();
9079 return 0;
9081 _ACEOF
9082 for ac_lib in '' exc; do
9083 if test -z "$ac_lib"; then
9084 ac_res="none required"
9085 else
9086 ac_res=-l$ac_lib
9087 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9089 if ac_fn_c_try_link "$LINENO"; then :
9090 ac_cv_search_exc_resume=$ac_res
9092 rm -f core conftest.err conftest.$ac_objext \
9093 conftest$ac_exeext
9094 if test "${ac_cv_search_exc_resume+set}" = set; then :
9095 break
9097 done
9098 if test "${ac_cv_search_exc_resume+set}" = set; then :
9100 else
9101 ac_cv_search_exc_resume=no
9103 rm conftest.$ac_ext
9104 LIBS=$ac_func_search_save_LIBS
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9107 $as_echo "$ac_cv_search_exc_resume" >&6; }
9108 ac_res=$ac_cv_search_exc_resume
9109 if test "$ac_res" != no; then :
9110 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9114 GNAT_LIBEXC="$LIBS"
9115 LIBS="$save_LIBS"
9118 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9119 save_LIBS="$LIBS"
9120 LIBS=
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9122 $as_echo_n "checking for library containing kstat_open... " >&6; }
9123 if test "${ac_cv_search_kstat_open+set}" = set; then :
9124 $as_echo_n "(cached) " >&6
9125 else
9126 ac_func_search_save_LIBS=$LIBS
9127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9128 /* end confdefs.h. */
9130 /* Override any GCC internal prototype to avoid an error.
9131 Use char because int might match the return type of a GCC
9132 builtin and then its argument prototype would still apply. */
9133 #ifdef __cplusplus
9134 extern "C"
9135 #endif
9136 char kstat_open ();
9138 main ()
9140 return kstat_open ();
9142 return 0;
9144 _ACEOF
9145 for ac_lib in '' kstat; do
9146 if test -z "$ac_lib"; then
9147 ac_res="none required"
9148 else
9149 ac_res=-l$ac_lib
9150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9152 if ac_fn_c_try_link "$LINENO"; then :
9153 ac_cv_search_kstat_open=$ac_res
9155 rm -f core conftest.err conftest.$ac_objext \
9156 conftest$ac_exeext
9157 if test "${ac_cv_search_kstat_open+set}" = set; then :
9158 break
9160 done
9161 if test "${ac_cv_search_kstat_open+set}" = set; then :
9163 else
9164 ac_cv_search_kstat_open=no
9166 rm conftest.$ac_ext
9167 LIBS=$ac_func_search_save_LIBS
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9170 $as_echo "$ac_cv_search_kstat_open" >&6; }
9171 ac_res=$ac_cv_search_kstat_open
9172 if test "$ac_res" != no; then :
9173 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9177 EXTRA_GCC_LIBS="$LIBS"
9178 LIBS="$save_LIBS"
9181 # Some systems put ldexp and frexp in libm instead of libc; assume
9182 # they're both in the same place. jcf-dump needs them.
9183 save_LIBS="$LIBS"
9184 LIBS=
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9186 $as_echo_n "checking for library containing ldexp... " >&6; }
9187 if test "${ac_cv_search_ldexp+set}" = set; then :
9188 $as_echo_n "(cached) " >&6
9189 else
9190 ac_func_search_save_LIBS=$LIBS
9191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192 /* end confdefs.h. */
9194 /* Override any GCC internal prototype to avoid an error.
9195 Use char because int might match the return type of a GCC
9196 builtin and then its argument prototype would still apply. */
9197 #ifdef __cplusplus
9198 extern "C"
9199 #endif
9200 char ldexp ();
9202 main ()
9204 return ldexp ();
9206 return 0;
9208 _ACEOF
9209 for ac_lib in '' m; do
9210 if test -z "$ac_lib"; then
9211 ac_res="none required"
9212 else
9213 ac_res=-l$ac_lib
9214 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9216 if ac_fn_c_try_link "$LINENO"; then :
9217 ac_cv_search_ldexp=$ac_res
9219 rm -f core conftest.err conftest.$ac_objext \
9220 conftest$ac_exeext
9221 if test "${ac_cv_search_ldexp+set}" = set; then :
9222 break
9224 done
9225 if test "${ac_cv_search_ldexp+set}" = set; then :
9227 else
9228 ac_cv_search_ldexp=no
9230 rm conftest.$ac_ext
9231 LIBS=$ac_func_search_save_LIBS
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9234 $as_echo "$ac_cv_search_ldexp" >&6; }
9235 ac_res=$ac_cv_search_ldexp
9236 if test "$ac_res" != no; then :
9237 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9241 LDEXP_LIB="$LIBS"
9242 LIBS="$save_LIBS"
9245 # Use <inttypes.h> only if it exists,
9246 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9247 # PRId64
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9249 $as_echo_n "checking for inttypes.h... " >&6; }
9250 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9251 $as_echo_n "(cached) " >&6
9252 else
9253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9254 /* end confdefs.h. */
9255 #define __STDC_FORMAT_MACROS
9256 #include <sys/types.h>
9257 #include <inttypes.h>
9259 main ()
9261 intmax_t i = -1;
9262 #ifndef PRId64
9263 choke me
9264 #endif
9266 return 0;
9268 _ACEOF
9269 if ac_fn_c_try_compile "$LINENO"; then :
9270 gcc_cv_header_inttypes_h=yes
9271 else
9272 gcc_cv_header_inttypes_h=no
9274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9278 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9279 if test $gcc_cv_header_inttypes_h = yes; then
9281 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9287 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9288 popen sysconf strsignal getrusage nl_langinfo \
9289 gettimeofday mbstowcs wcswidth mmap setlocale \
9290 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
9291 do :
9292 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9293 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9294 eval as_val=\$$as_ac_var
9295 if test "x$as_val" = x""yes; then :
9296 cat >>confdefs.h <<_ACEOF
9297 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9298 _ACEOF
9301 done
9304 if test x$ac_cv_func_mbstowcs = xyes; then
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9306 $as_echo_n "checking whether mbstowcs works... " >&6; }
9307 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9308 $as_echo_n "(cached) " >&6
9309 else
9310 if test "$cross_compiling" = yes; then :
9311 gcc_cv_func_mbstowcs_works=yes
9312 else
9313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314 /* end confdefs.h. */
9315 #include <stdlib.h>
9316 int main()
9318 mbstowcs(0, "", 0);
9319 return 0;
9321 _ACEOF
9322 if ac_fn_c_try_run "$LINENO"; then :
9323 gcc_cv_func_mbstowcs_works=yes
9324 else
9325 gcc_cv_func_mbstowcs_works=no
9327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9328 conftest.$ac_objext conftest.beam conftest.$ac_ext
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9333 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9334 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9336 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9341 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9342 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9344 else
9346 cat >>confdefs.h <<_ACEOF
9347 #define ssize_t int
9348 _ACEOF
9352 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9353 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9355 else
9357 cat >>confdefs.h <<_ACEOF
9358 #define caddr_t char *
9359 _ACEOF
9365 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9366 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9367 gcc_header_sys_mman_h=yes
9368 else
9369 gcc_header_sys_mman_h=no
9372 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9373 if test "x$ac_cv_func_mmap" = x""yes; then :
9374 gcc_func_mmap=yes
9375 else
9376 gcc_func_mmap=no
9379 if test "$gcc_header_sys_mman_h" != yes \
9380 || test "$gcc_func_mmap" != yes; then
9381 gcc_cv_func_mmap_file=no
9382 gcc_cv_func_mmap_dev_zero=no
9383 gcc_cv_func_mmap_anon=no
9384 else
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9386 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9387 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9388 $as_echo_n "(cached) " >&6
9389 else
9390 # Add a system to this blacklist if
9391 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9392 # memory area containing the same data that you'd get if you applied
9393 # read() to the same fd. The only system known to have a problem here
9394 # is VMS, where text files have record structure.
9395 case "$host_os" in
9396 *vms* | ultrix*)
9397 gcc_cv_func_mmap_file=no ;;
9399 gcc_cv_func_mmap_file=yes;;
9400 esac
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9403 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9405 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9406 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9407 $as_echo_n "(cached) " >&6
9408 else
9409 # Add a system to this blacklist if it has mmap() but /dev/zero
9410 # does not exist, or if mmapping /dev/zero does not give anonymous
9411 # zeroed pages with both the following properties:
9412 # 1. If you map N consecutive pages in with one call, and then
9413 # unmap any subset of those pages, the pages that were not
9414 # explicitly unmapped remain accessible.
9415 # 2. If you map two adjacent blocks of memory and then unmap them
9416 # both at once, they must both go away.
9417 # Systems known to be in this category are Windows (all variants),
9418 # VMS, and Darwin.
9419 case "$host_os" in
9420 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9421 gcc_cv_func_mmap_dev_zero=no ;;
9423 gcc_cv_func_mmap_dev_zero=yes;;
9424 esac
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9427 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9429 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9431 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9432 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9433 $as_echo_n "(cached) " >&6
9434 else
9435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436 /* end confdefs.h. */
9437 #include <sys/types.h>
9438 #include <sys/mman.h>
9439 #include <unistd.h>
9441 #ifndef MAP_ANONYMOUS
9442 #define MAP_ANONYMOUS MAP_ANON
9443 #endif
9446 main ()
9448 int n = MAP_ANONYMOUS;
9450 return 0;
9452 _ACEOF
9453 if ac_fn_c_try_compile "$LINENO"; then :
9454 gcc_cv_decl_map_anon=yes
9455 else
9456 gcc_cv_decl_map_anon=no
9458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9461 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9463 if test $gcc_cv_decl_map_anon = no; then
9464 gcc_cv_func_mmap_anon=no
9465 else
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9467 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9468 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9469 $as_echo_n "(cached) " >&6
9470 else
9471 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9472 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9473 # doesn't give anonymous zeroed pages with the same properties listed
9474 # above for use of /dev/zero.
9475 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9476 case "$host_os" in
9477 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9478 gcc_cv_func_mmap_anon=no ;;
9480 gcc_cv_func_mmap_anon=yes;;
9481 esac
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9484 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9488 if test $gcc_cv_func_mmap_file = yes; then
9490 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9493 if test $gcc_cv_func_mmap_dev_zero = yes; then
9495 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9498 if test $gcc_cv_func_mmap_anon = yes; then
9500 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9505 case "${host}" in
9506 *-*-*vms*)
9507 # Under VMS, vfork works very differently than on Unix. The standard test
9508 # won't work, and it isn't easily adaptable. It makes more sense to
9509 # just force it.
9510 ac_cv_func_vfork_works=yes
9512 esac
9513 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9514 if test "x$ac_cv_type_pid_t" = x""yes; then :
9516 else
9518 cat >>confdefs.h <<_ACEOF
9519 #define pid_t int
9520 _ACEOF
9524 for ac_header in vfork.h
9525 do :
9526 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9527 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9528 cat >>confdefs.h <<_ACEOF
9529 #define HAVE_VFORK_H 1
9530 _ACEOF
9533 done
9535 for ac_func in fork vfork
9536 do :
9537 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9538 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9539 eval as_val=\$$as_ac_var
9540 if test "x$as_val" = x""yes; then :
9541 cat >>confdefs.h <<_ACEOF
9542 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9543 _ACEOF
9546 done
9548 if test "x$ac_cv_func_fork" = xyes; then
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9550 $as_echo_n "checking for working fork... " >&6; }
9551 if test "${ac_cv_func_fork_works+set}" = set; then :
9552 $as_echo_n "(cached) " >&6
9553 else
9554 if test "$cross_compiling" = yes; then :
9555 ac_cv_func_fork_works=cross
9556 else
9557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558 /* end confdefs.h. */
9559 $ac_includes_default
9561 main ()
9564 /* By Ruediger Kuhlmann. */
9565 return fork () < 0;
9568 return 0;
9570 _ACEOF
9571 if ac_fn_c_try_run "$LINENO"; then :
9572 ac_cv_func_fork_works=yes
9573 else
9574 ac_cv_func_fork_works=no
9576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9577 conftest.$ac_objext conftest.beam conftest.$ac_ext
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9582 $as_echo "$ac_cv_func_fork_works" >&6; }
9584 else
9585 ac_cv_func_fork_works=$ac_cv_func_fork
9587 if test "x$ac_cv_func_fork_works" = xcross; then
9588 case $host in
9589 *-*-amigaos* | *-*-msdosdjgpp*)
9590 # Override, as these systems have only a dummy fork() stub
9591 ac_cv_func_fork_works=no
9594 ac_cv_func_fork_works=yes
9596 esac
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9598 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9600 ac_cv_func_vfork_works=$ac_cv_func_vfork
9601 if test "x$ac_cv_func_vfork" = xyes; then
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9603 $as_echo_n "checking for working vfork... " >&6; }
9604 if test "${ac_cv_func_vfork_works+set}" = set; then :
9605 $as_echo_n "(cached) " >&6
9606 else
9607 if test "$cross_compiling" = yes; then :
9608 ac_cv_func_vfork_works=cross
9609 else
9610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9611 /* end confdefs.h. */
9612 /* Thanks to Paul Eggert for this test. */
9613 $ac_includes_default
9614 #include <sys/wait.h>
9615 #ifdef HAVE_VFORK_H
9616 # include <vfork.h>
9617 #endif
9618 /* On some sparc systems, changes by the child to local and incoming
9619 argument registers are propagated back to the parent. The compiler
9620 is told about this with #include <vfork.h>, but some compilers
9621 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9622 static variable whose address is put into a register that is
9623 clobbered by the vfork. */
9624 static void
9625 #ifdef __cplusplus
9626 sparc_address_test (int arg)
9627 # else
9628 sparc_address_test (arg) int arg;
9629 #endif
9631 static pid_t child;
9632 if (!child) {
9633 child = vfork ();
9634 if (child < 0) {
9635 perror ("vfork");
9636 _exit(2);
9638 if (!child) {
9639 arg = getpid();
9640 write(-1, "", 0);
9641 _exit (arg);
9647 main ()
9649 pid_t parent = getpid ();
9650 pid_t child;
9652 sparc_address_test (0);
9654 child = vfork ();
9656 if (child == 0) {
9657 /* Here is another test for sparc vfork register problems. This
9658 test uses lots of local variables, at least as many local
9659 variables as main has allocated so far including compiler
9660 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9661 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9662 reuse the register of parent for one of the local variables,
9663 since it will think that parent can't possibly be used any more
9664 in this routine. Assigning to the local variable will thus
9665 munge parent in the parent process. */
9666 pid_t
9667 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9668 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9669 /* Convince the compiler that p..p7 are live; otherwise, it might
9670 use the same hardware register for all 8 local variables. */
9671 if (p != p1 || p != p2 || p != p3 || p != p4
9672 || p != p5 || p != p6 || p != p7)
9673 _exit(1);
9675 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9676 from child file descriptors. If the child closes a descriptor
9677 before it execs or exits, this munges the parent's descriptor
9678 as well. Test for this by closing stdout in the child. */
9679 _exit(close(fileno(stdout)) != 0);
9680 } else {
9681 int status;
9682 struct stat st;
9684 while (wait(&status) != child)
9686 return (
9687 /* Was there some problem with vforking? */
9688 child < 0
9690 /* Did the child fail? (This shouldn't happen.) */
9691 || status
9693 /* Did the vfork/compiler bug occur? */
9694 || parent != getpid()
9696 /* Did the file descriptor bug occur? */
9697 || fstat(fileno(stdout), &st) != 0
9701 _ACEOF
9702 if ac_fn_c_try_run "$LINENO"; then :
9703 ac_cv_func_vfork_works=yes
9704 else
9705 ac_cv_func_vfork_works=no
9707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9708 conftest.$ac_objext conftest.beam conftest.$ac_ext
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9713 $as_echo "$ac_cv_func_vfork_works" >&6; }
9716 if test "x$ac_cv_func_fork_works" = xcross; then
9717 ac_cv_func_vfork_works=$ac_cv_func_vfork
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9719 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9722 if test "x$ac_cv_func_vfork_works" = xyes; then
9724 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9726 else
9728 $as_echo "#define vfork fork" >>confdefs.h
9731 if test "x$ac_cv_func_fork_works" = xyes; then
9733 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9738 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9739 # iconv() prototype.
9740 ac_ext=cpp
9741 ac_cpp='$CXXCPP $CPPFLAGS'
9742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9747 if test "X$prefix" = "XNONE"; then
9748 acl_final_prefix="$ac_default_prefix"
9749 else
9750 acl_final_prefix="$prefix"
9752 if test "X$exec_prefix" = "XNONE"; then
9753 acl_final_exec_prefix='${prefix}'
9754 else
9755 acl_final_exec_prefix="$exec_prefix"
9757 acl_save_prefix="$prefix"
9758 prefix="$acl_final_prefix"
9759 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9760 prefix="$acl_save_prefix"
9763 # Check whether --with-gnu-ld was given.
9764 if test "${with_gnu_ld+set}" = set; then :
9765 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9766 else
9767 with_gnu_ld=no
9770 # Prepare PATH_SEPARATOR.
9771 # The user is always right.
9772 if test "${PATH_SEPARATOR+set}" != set; then
9773 echo "#! /bin/sh" >conf$$.sh
9774 echo "exit 0" >>conf$$.sh
9775 chmod +x conf$$.sh
9776 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9777 PATH_SEPARATOR=';'
9778 else
9779 PATH_SEPARATOR=:
9781 rm -f conf$$.sh
9783 ac_prog=ld
9784 if test "$GCC" = yes; then
9785 # Check if gcc -print-prog-name=ld gives a path.
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9787 $as_echo_n "checking for ld used by GCC... " >&6; }
9788 case $host in
9789 *-*-mingw*)
9790 # gcc leaves a trailing carriage return which upsets mingw
9791 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9793 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9794 esac
9795 case $ac_prog in
9796 # Accept absolute paths.
9797 [\\/]* | [A-Za-z]:[\\/]*)
9798 re_direlt='/[^/][^/]*/\.\./'
9799 # Canonicalize the path of ld
9800 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9801 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9802 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9803 done
9804 test -z "$LD" && LD="$ac_prog"
9807 # If it fails, then pretend we aren't using GCC.
9808 ac_prog=ld
9811 # If it is relative, then search for the first ld in PATH.
9812 with_gnu_ld=unknown
9814 esac
9815 elif test "$with_gnu_ld" = yes; then
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9817 $as_echo_n "checking for GNU ld... " >&6; }
9818 else
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9820 $as_echo_n "checking for non-GNU ld... " >&6; }
9822 if test "${acl_cv_path_LD+set}" = set; then :
9823 $as_echo_n "(cached) " >&6
9824 else
9825 if test -z "$LD"; then
9826 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9827 for ac_dir in $PATH; do
9828 test -z "$ac_dir" && ac_dir=.
9829 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9830 acl_cv_path_LD="$ac_dir/$ac_prog"
9831 # Check to see if the program is GNU ld. I'd rather use --version,
9832 # but apparently some GNU ld's only accept -v.
9833 # Break only if it was the GNU/non-GNU ld that we prefer.
9834 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9835 test "$with_gnu_ld" != no && break
9836 else
9837 test "$with_gnu_ld" != yes && break
9840 done
9841 IFS="$ac_save_ifs"
9842 else
9843 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9847 LD="$acl_cv_path_LD"
9848 if test -n "$LD"; then
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9850 $as_echo "$LD" >&6; }
9851 else
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9853 $as_echo "no" >&6; }
9855 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9857 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9858 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9859 $as_echo_n "(cached) " >&6
9860 else
9861 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9862 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9863 acl_cv_prog_gnu_ld=yes
9864 else
9865 acl_cv_prog_gnu_ld=no
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9869 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9870 with_gnu_ld=$acl_cv_prog_gnu_ld
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9875 $as_echo_n "checking for shared library run path origin... " >&6; }
9876 if test "${acl_cv_rpath+set}" = set; then :
9877 $as_echo_n "(cached) " >&6
9878 else
9880 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9881 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9882 . ./conftest.sh
9883 rm -f ./conftest.sh
9884 acl_cv_rpath=done
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9888 $as_echo "$acl_cv_rpath" >&6; }
9889 wl="$acl_cv_wl"
9890 libext="$acl_cv_libext"
9891 shlibext="$acl_cv_shlibext"
9892 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9893 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9894 hardcode_direct="$acl_cv_hardcode_direct"
9895 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9896 # Check whether --enable-rpath was given.
9897 if test "${enable_rpath+set}" = set; then :
9898 enableval=$enable_rpath; :
9899 else
9900 enable_rpath=yes
9910 use_additional=yes
9912 acl_save_prefix="$prefix"
9913 prefix="$acl_final_prefix"
9914 acl_save_exec_prefix="$exec_prefix"
9915 exec_prefix="$acl_final_exec_prefix"
9917 eval additional_includedir=\"$includedir\"
9918 eval additional_libdir=\"$libdir\"
9920 exec_prefix="$acl_save_exec_prefix"
9921 prefix="$acl_save_prefix"
9924 # Check whether --with-libiconv-prefix was given.
9925 if test "${with_libiconv_prefix+set}" = set; then :
9926 withval=$with_libiconv_prefix;
9927 if test "X$withval" = "Xno"; then
9928 use_additional=no
9929 else
9930 if test "X$withval" = "X"; then
9932 acl_save_prefix="$prefix"
9933 prefix="$acl_final_prefix"
9934 acl_save_exec_prefix="$exec_prefix"
9935 exec_prefix="$acl_final_exec_prefix"
9937 eval additional_includedir=\"$includedir\"
9938 eval additional_libdir=\"$libdir\"
9940 exec_prefix="$acl_save_exec_prefix"
9941 prefix="$acl_save_prefix"
9943 else
9944 additional_includedir="$withval/include"
9945 additional_libdir="$withval/lib"
9951 LIBICONV=
9952 LTLIBICONV=
9953 INCICONV=
9954 rpathdirs=
9955 ltrpathdirs=
9956 names_already_handled=
9957 names_next_round='iconv '
9958 while test -n "$names_next_round"; do
9959 names_this_round="$names_next_round"
9960 names_next_round=
9961 for name in $names_this_round; do
9962 already_handled=
9963 for n in $names_already_handled; do
9964 if test "$n" = "$name"; then
9965 already_handled=yes
9966 break
9968 done
9969 if test -z "$already_handled"; then
9970 names_already_handled="$names_already_handled $name"
9971 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9972 eval value=\"\$HAVE_LIB$uppername\"
9973 if test -n "$value"; then
9974 if test "$value" = yes; then
9975 eval value=\"\$LIB$uppername\"
9976 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9977 eval value=\"\$LTLIB$uppername\"
9978 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9979 else
9982 else
9983 found_dir=
9984 found_la=
9985 found_so=
9986 found_a=
9987 if test $use_additional = yes; then
9988 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9989 found_dir="$additional_libdir"
9990 found_so="$additional_libdir/lib$name.$shlibext"
9991 if test -f "$additional_libdir/lib$name.la"; then
9992 found_la="$additional_libdir/lib$name.la"
9994 else
9995 if test -f "$additional_libdir/lib$name.$libext"; then
9996 found_dir="$additional_libdir"
9997 found_a="$additional_libdir/lib$name.$libext"
9998 if test -f "$additional_libdir/lib$name.la"; then
9999 found_la="$additional_libdir/lib$name.la"
10004 if test "X$found_dir" = "X"; then
10005 for x in $LDFLAGS $LTLIBICONV; do
10007 acl_save_prefix="$prefix"
10008 prefix="$acl_final_prefix"
10009 acl_save_exec_prefix="$exec_prefix"
10010 exec_prefix="$acl_final_exec_prefix"
10011 eval x=\"$x\"
10012 exec_prefix="$acl_save_exec_prefix"
10013 prefix="$acl_save_prefix"
10015 case "$x" in
10016 -L*)
10017 dir=`echo "X$x" | sed -e 's/^X-L//'`
10018 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10019 found_dir="$dir"
10020 found_so="$dir/lib$name.$shlibext"
10021 if test -f "$dir/lib$name.la"; then
10022 found_la="$dir/lib$name.la"
10024 else
10025 if test -f "$dir/lib$name.$libext"; then
10026 found_dir="$dir"
10027 found_a="$dir/lib$name.$libext"
10028 if test -f "$dir/lib$name.la"; then
10029 found_la="$dir/lib$name.la"
10034 esac
10035 if test "X$found_dir" != "X"; then
10036 break
10038 done
10040 if test "X$found_dir" != "X"; then
10041 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10042 if test "X$found_so" != "X"; then
10043 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10044 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10045 else
10046 haveit=
10047 for x in $ltrpathdirs; do
10048 if test "X$x" = "X$found_dir"; then
10049 haveit=yes
10050 break
10052 done
10053 if test -z "$haveit"; then
10054 ltrpathdirs="$ltrpathdirs $found_dir"
10056 if test "$hardcode_direct" = yes; then
10057 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10058 else
10059 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10060 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10061 haveit=
10062 for x in $rpathdirs; do
10063 if test "X$x" = "X$found_dir"; then
10064 haveit=yes
10065 break
10067 done
10068 if test -z "$haveit"; then
10069 rpathdirs="$rpathdirs $found_dir"
10071 else
10072 haveit=
10073 for x in $LDFLAGS $LIBICONV; do
10075 acl_save_prefix="$prefix"
10076 prefix="$acl_final_prefix"
10077 acl_save_exec_prefix="$exec_prefix"
10078 exec_prefix="$acl_final_exec_prefix"
10079 eval x=\"$x\"
10080 exec_prefix="$acl_save_exec_prefix"
10081 prefix="$acl_save_prefix"
10083 if test "X$x" = "X-L$found_dir"; then
10084 haveit=yes
10085 break
10087 done
10088 if test -z "$haveit"; then
10089 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10091 if test "$hardcode_minus_L" != no; then
10092 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10093 else
10094 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10099 else
10100 if test "X$found_a" != "X"; then
10101 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10102 else
10103 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10106 additional_includedir=
10107 case "$found_dir" in
10108 */lib | */lib/)
10109 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10110 additional_includedir="$basedir/include"
10112 esac
10113 if test "X$additional_includedir" != "X"; then
10114 if test "X$additional_includedir" != "X/usr/include"; then
10115 haveit=
10116 if test "X$additional_includedir" = "X/usr/local/include"; then
10117 if test -n "$GCC"; then
10118 case $host_os in
10119 linux*) haveit=yes;;
10120 esac
10123 if test -z "$haveit"; then
10124 for x in $CPPFLAGS $INCICONV; do
10126 acl_save_prefix="$prefix"
10127 prefix="$acl_final_prefix"
10128 acl_save_exec_prefix="$exec_prefix"
10129 exec_prefix="$acl_final_exec_prefix"
10130 eval x=\"$x\"
10131 exec_prefix="$acl_save_exec_prefix"
10132 prefix="$acl_save_prefix"
10134 if test "X$x" = "X-I$additional_includedir"; then
10135 haveit=yes
10136 break
10138 done
10139 if test -z "$haveit"; then
10140 if test -d "$additional_includedir"; then
10141 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10147 if test -n "$found_la"; then
10148 save_libdir="$libdir"
10149 case "$found_la" in
10150 */* | *\\*) . "$found_la" ;;
10151 *) . "./$found_la" ;;
10152 esac
10153 libdir="$save_libdir"
10154 for dep in $dependency_libs; do
10155 case "$dep" in
10156 -L*)
10157 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10158 if test "X$additional_libdir" != "X/usr/lib"; then
10159 haveit=
10160 if test "X$additional_libdir" = "X/usr/local/lib"; then
10161 if test -n "$GCC"; then
10162 case $host_os in
10163 linux*) haveit=yes;;
10164 esac
10167 if test -z "$haveit"; then
10168 haveit=
10169 for x in $LDFLAGS $LIBICONV; do
10171 acl_save_prefix="$prefix"
10172 prefix="$acl_final_prefix"
10173 acl_save_exec_prefix="$exec_prefix"
10174 exec_prefix="$acl_final_exec_prefix"
10175 eval x=\"$x\"
10176 exec_prefix="$acl_save_exec_prefix"
10177 prefix="$acl_save_prefix"
10179 if test "X$x" = "X-L$additional_libdir"; then
10180 haveit=yes
10181 break
10183 done
10184 if test -z "$haveit"; then
10185 if test -d "$additional_libdir"; then
10186 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10189 haveit=
10190 for x in $LDFLAGS $LTLIBICONV; do
10192 acl_save_prefix="$prefix"
10193 prefix="$acl_final_prefix"
10194 acl_save_exec_prefix="$exec_prefix"
10195 exec_prefix="$acl_final_exec_prefix"
10196 eval x=\"$x\"
10197 exec_prefix="$acl_save_exec_prefix"
10198 prefix="$acl_save_prefix"
10200 if test "X$x" = "X-L$additional_libdir"; then
10201 haveit=yes
10202 break
10204 done
10205 if test -z "$haveit"; then
10206 if test -d "$additional_libdir"; then
10207 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10213 -R*)
10214 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10215 if test "$enable_rpath" != no; then
10216 haveit=
10217 for x in $rpathdirs; do
10218 if test "X$x" = "X$dir"; then
10219 haveit=yes
10220 break
10222 done
10223 if test -z "$haveit"; then
10224 rpathdirs="$rpathdirs $dir"
10226 haveit=
10227 for x in $ltrpathdirs; do
10228 if test "X$x" = "X$dir"; then
10229 haveit=yes
10230 break
10232 done
10233 if test -z "$haveit"; then
10234 ltrpathdirs="$ltrpathdirs $dir"
10238 -l*)
10239 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10241 *.la)
10242 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10245 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10246 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10248 esac
10249 done
10251 else
10252 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10253 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10257 done
10258 done
10259 if test "X$rpathdirs" != "X"; then
10260 if test -n "$hardcode_libdir_separator"; then
10261 alldirs=
10262 for found_dir in $rpathdirs; do
10263 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10264 done
10265 acl_save_libdir="$libdir"
10266 libdir="$alldirs"
10267 eval flag=\"$hardcode_libdir_flag_spec\"
10268 libdir="$acl_save_libdir"
10269 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10270 else
10271 for found_dir in $rpathdirs; do
10272 acl_save_libdir="$libdir"
10273 libdir="$found_dir"
10274 eval flag=\"$hardcode_libdir_flag_spec\"
10275 libdir="$acl_save_libdir"
10276 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10277 done
10280 if test "X$ltrpathdirs" != "X"; then
10281 for found_dir in $ltrpathdirs; do
10282 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10283 done
10292 am_save_CPPFLAGS="$CPPFLAGS"
10294 for element in $INCICONV; do
10295 haveit=
10296 for x in $CPPFLAGS; do
10298 acl_save_prefix="$prefix"
10299 prefix="$acl_final_prefix"
10300 acl_save_exec_prefix="$exec_prefix"
10301 exec_prefix="$acl_final_exec_prefix"
10302 eval x=\"$x\"
10303 exec_prefix="$acl_save_exec_prefix"
10304 prefix="$acl_save_prefix"
10306 if test "X$x" = "X$element"; then
10307 haveit=yes
10308 break
10310 done
10311 if test -z "$haveit"; then
10312 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10314 done
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10318 $as_echo_n "checking for iconv... " >&6; }
10319 if test "${am_cv_func_iconv+set}" = set; then :
10320 $as_echo_n "(cached) " >&6
10321 else
10323 am_cv_func_iconv="no, consider installing GNU libiconv"
10324 am_cv_lib_iconv=no
10325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10326 /* end confdefs.h. */
10327 #include <stdlib.h>
10328 #include <iconv.h>
10330 main ()
10332 iconv_t cd = iconv_open("","");
10333 iconv(cd,NULL,NULL,NULL,NULL);
10334 iconv_close(cd);
10336 return 0;
10338 _ACEOF
10339 if ac_fn_cxx_try_link "$LINENO"; then :
10340 am_cv_func_iconv=yes
10342 rm -f core conftest.err conftest.$ac_objext \
10343 conftest$ac_exeext conftest.$ac_ext
10344 if test "$am_cv_func_iconv" != yes; then
10345 am_save_LIBS="$LIBS"
10346 LIBS="$LIBS $LIBICONV"
10347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348 /* end confdefs.h. */
10349 #include <stdlib.h>
10350 #include <iconv.h>
10352 main ()
10354 iconv_t cd = iconv_open("","");
10355 iconv(cd,NULL,NULL,NULL,NULL);
10356 iconv_close(cd);
10358 return 0;
10360 _ACEOF
10361 if ac_fn_cxx_try_link "$LINENO"; then :
10362 am_cv_lib_iconv=yes
10363 am_cv_func_iconv=yes
10365 rm -f core conftest.err conftest.$ac_objext \
10366 conftest$ac_exeext conftest.$ac_ext
10367 LIBS="$am_save_LIBS"
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10372 $as_echo "$am_cv_func_iconv" >&6; }
10373 if test "$am_cv_func_iconv" = yes; then
10375 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10378 if test "$am_cv_lib_iconv" = yes; then
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10380 $as_echo_n "checking how to link with libiconv... " >&6; }
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10382 $as_echo "$LIBICONV" >&6; }
10383 else
10384 CPPFLAGS="$am_save_CPPFLAGS"
10385 LIBICONV=
10386 LTLIBICONV=
10391 if test "$am_cv_func_iconv" = yes; then
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10393 $as_echo_n "checking for iconv declaration... " >&6; }
10394 if test "${am_cv_proto_iconv+set}" = set; then :
10395 $as_echo_n "(cached) " >&6
10396 else
10398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10399 /* end confdefs.h. */
10401 #include <stdlib.h>
10402 #include <iconv.h>
10403 extern
10404 #ifdef __cplusplus
10406 #endif
10407 #if defined(__STDC__) || defined(__cplusplus)
10408 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10409 #else
10410 size_t iconv();
10411 #endif
10414 main ()
10418 return 0;
10420 _ACEOF
10421 if ac_fn_cxx_try_compile "$LINENO"; then :
10422 am_cv_proto_iconv_arg1=""
10423 else
10424 am_cv_proto_iconv_arg1="const"
10426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10427 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);"
10430 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10432 }$am_cv_proto_iconv" >&5
10433 $as_echo "${ac_t:-
10434 }$am_cv_proto_iconv" >&6; }
10436 cat >>confdefs.h <<_ACEOF
10437 #define ICONV_CONST $am_cv_proto_iconv_arg1
10438 _ACEOF
10442 ac_ext=c
10443 ac_cpp='$CPP $CPPFLAGS'
10444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10449 # Until we have in-tree GNU iconv:
10450 LIBICONV_DEP=
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10455 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10456 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10457 $as_echo_n "(cached) " >&6
10458 else
10459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10460 /* end confdefs.h. */
10461 #include <locale.h>
10463 main ()
10465 return LC_MESSAGES
10467 return 0;
10469 _ACEOF
10470 if ac_fn_c_try_link "$LINENO"; then :
10471 am_cv_val_LC_MESSAGES=yes
10472 else
10473 am_cv_val_LC_MESSAGES=no
10475 rm -f core conftest.err conftest.$ac_objext \
10476 conftest$ac_exeext conftest.$ac_ext
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10479 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10480 if test $am_cv_val_LC_MESSAGES = yes; then
10482 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10489 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10490 if test "${am_cv_langinfo_codeset+set}" = set; then :
10491 $as_echo_n "(cached) " >&6
10492 else
10493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494 /* end confdefs.h. */
10495 #include <langinfo.h>
10497 main ()
10499 char* cs = nl_langinfo(CODESET);
10501 return 0;
10503 _ACEOF
10504 if ac_fn_c_try_link "$LINENO"; then :
10505 am_cv_langinfo_codeset=yes
10506 else
10507 am_cv_langinfo_codeset=no
10509 rm -f core conftest.err conftest.$ac_objext \
10510 conftest$ac_exeext conftest.$ac_ext
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10514 $as_echo "$am_cv_langinfo_codeset" >&6; }
10515 if test $am_cv_langinfo_codeset = yes; then
10517 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10522 # We will need to find libiberty.h and ansidecl.h
10523 saved_CFLAGS="$CFLAGS"
10524 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10525 saved_CXXFLAGS="$CXXFLAGS"
10526 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10527 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10528 stpcpy strnlen strsignal strstr strverscmp \
10529 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10530 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
10532 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10534 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10535 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10536 $as_echo_n "(cached) " >&6
10537 else
10538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h. */
10540 #undef $ac_tr_decl
10541 #define $ac_tr_decl 1
10543 #include "ansidecl.h"
10544 #include "system.h"
10547 main ()
10549 #ifndef $ac_func
10550 char *(*pfn) = (char *(*)) $ac_func ;
10551 #endif
10553 return 0;
10555 _ACEOF
10556 if ac_fn_c_try_compile "$LINENO"; then :
10557 eval "gcc_cv_have_decl_$ac_func=yes"
10558 else
10559 eval "gcc_cv_have_decl_$ac_func=no"
10561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10564 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10566 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10567 #define $ac_tr_decl 1
10568 _ACEOF
10570 else
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10572 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10573 #define $ac_tr_decl 0
10574 _ACEOF
10578 done
10581 for ac_func in getrlimit setrlimit getrusage
10583 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10585 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10586 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10587 $as_echo_n "(cached) " >&6
10588 else
10589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10590 /* end confdefs.h. */
10591 #undef $ac_tr_decl
10592 #define $ac_tr_decl 1
10594 #include "ansidecl.h"
10595 #include "system.h"
10596 #ifdef HAVE_SYS_RESOURCE_H
10597 #include <sys/resource.h>
10598 #endif
10602 main ()
10604 #ifndef $ac_func
10605 char *(*pfn) = (char *(*)) $ac_func ;
10606 #endif
10608 return 0;
10610 _ACEOF
10611 if ac_fn_c_try_compile "$LINENO"; then :
10612 eval "gcc_cv_have_decl_$ac_func=yes"
10613 else
10614 eval "gcc_cv_have_decl_$ac_func=no"
10616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10619 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10621 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10622 #define $ac_tr_decl 1
10623 _ACEOF
10625 else
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10627 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10628 #define $ac_tr_decl 0
10629 _ACEOF
10633 done
10636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10637 /* end confdefs.h. */
10639 #include "ansidecl.h"
10640 #include "system.h"
10641 #ifdef HAVE_SYS_RESOURCE_H
10642 #include <sys/resource.h>
10643 #endif
10646 main ()
10648 rlim_t l = 0;
10650 return 0;
10652 _ACEOF
10653 if ac_fn_c_try_compile "$LINENO"; then :
10655 else
10657 $as_echo "#define rlim_t long" >>confdefs.h
10660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10662 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10663 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10664 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10665 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10666 for ac_func in ldgetname
10668 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10670 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10671 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10672 $as_echo_n "(cached) " >&6
10673 else
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10676 #undef $ac_tr_decl
10677 #define $ac_tr_decl 1
10679 #include "ansidecl.h"
10680 #include "system.h"
10681 #ifdef HAVE_LDFCN_H
10682 #undef FREAD
10683 #undef FWRITE
10684 #include <ldfcn.h>
10685 #endif
10689 main ()
10691 #ifndef $ac_func
10692 char *(*pfn) = (char *(*)) $ac_func ;
10693 #endif
10695 return 0;
10697 _ACEOF
10698 if ac_fn_c_try_compile "$LINENO"; then :
10699 eval "gcc_cv_have_decl_$ac_func=yes"
10700 else
10701 eval "gcc_cv_have_decl_$ac_func=no"
10703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10706 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10708 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10709 #define $ac_tr_decl 1
10710 _ACEOF
10712 else
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10714 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10715 #define $ac_tr_decl 0
10716 _ACEOF
10720 done
10723 for ac_func in times
10725 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10727 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10728 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10729 $as_echo_n "(cached) " >&6
10730 else
10731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10732 /* end confdefs.h. */
10733 #undef $ac_tr_decl
10734 #define $ac_tr_decl 1
10736 #include "ansidecl.h"
10737 #include "system.h"
10738 #ifdef HAVE_SYS_TIMES_H
10739 #include <sys/times.h>
10740 #endif
10744 main ()
10746 #ifndef $ac_func
10747 char *(*pfn) = (char *(*)) $ac_func ;
10748 #endif
10750 return 0;
10752 _ACEOF
10753 if ac_fn_c_try_compile "$LINENO"; then :
10754 eval "gcc_cv_have_decl_$ac_func=yes"
10755 else
10756 eval "gcc_cv_have_decl_$ac_func=no"
10758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10761 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10763 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10764 #define $ac_tr_decl 1
10765 _ACEOF
10767 else
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10769 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10770 #define $ac_tr_decl 0
10771 _ACEOF
10775 done
10778 for ac_func in sigaltstack
10780 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10782 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10783 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10784 $as_echo_n "(cached) " >&6
10785 else
10786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10787 /* end confdefs.h. */
10788 #undef $ac_tr_decl
10789 #define $ac_tr_decl 1
10791 #include "ansidecl.h"
10792 #include "system.h"
10793 #include <signal.h>
10797 main ()
10799 #ifndef $ac_func
10800 char *(*pfn) = (char *(*)) $ac_func ;
10801 #endif
10803 return 0;
10805 _ACEOF
10806 if ac_fn_c_try_compile "$LINENO"; then :
10807 eval "gcc_cv_have_decl_$ac_func=yes"
10808 else
10809 eval "gcc_cv_have_decl_$ac_func=no"
10811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10814 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10816 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10817 #define $ac_tr_decl 1
10818 _ACEOF
10820 else
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10822 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10823 #define $ac_tr_decl 0
10824 _ACEOF
10828 done
10831 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10832 # prototype.
10833 ac_ext=cpp
10834 ac_cpp='$CXXCPP $CPPFLAGS'
10835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10839 for ac_func in madvise
10841 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10843 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10844 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10845 $as_echo_n "(cached) " >&6
10846 else
10847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10848 /* end confdefs.h. */
10849 #undef $ac_tr_decl
10850 #define $ac_tr_decl 1
10852 #include "ansidecl.h"
10853 #include "system.h"
10857 main ()
10859 #ifndef $ac_func
10860 char *(*pfn) = (char *(*)) $ac_func ;
10861 #endif
10863 return 0;
10865 _ACEOF
10866 if ac_fn_cxx_try_compile "$LINENO"; then :
10867 eval "gcc_cv_have_decl_$ac_func=yes"
10868 else
10869 eval "gcc_cv_have_decl_$ac_func=no"
10871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10874 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10876 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10877 #define $ac_tr_decl 1
10878 _ACEOF
10880 else
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10882 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10883 #define $ac_tr_decl 0
10884 _ACEOF
10888 done
10890 ac_ext=c
10891 ac_cpp='$CPP $CPPFLAGS'
10892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10897 # More time-related stuff.
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10899 $as_echo_n "checking for struct tms... " >&6; }
10900 if test "${ac_cv_struct_tms+set}" = set; then :
10901 $as_echo_n "(cached) " >&6
10902 else
10904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10905 /* end confdefs.h. */
10907 #include "ansidecl.h"
10908 #include "system.h"
10909 #ifdef HAVE_SYS_TIMES_H
10910 #include <sys/times.h>
10911 #endif
10914 main ()
10916 struct tms tms;
10918 return 0;
10920 _ACEOF
10921 if ac_fn_c_try_compile "$LINENO"; then :
10922 ac_cv_struct_tms=yes
10923 else
10924 ac_cv_struct_tms=no
10926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10929 $as_echo "$ac_cv_struct_tms" >&6; }
10930 if test $ac_cv_struct_tms = yes; then
10932 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10936 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10937 # revisit after autoconf 2.50.
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10939 $as_echo_n "checking for clock_t... " >&6; }
10940 if test "${gcc_cv_type_clock_t+set}" = set; then :
10941 $as_echo_n "(cached) " >&6
10942 else
10944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10945 /* end confdefs.h. */
10947 #include "ansidecl.h"
10948 #include "system.h"
10951 main ()
10953 clock_t x;
10955 return 0;
10957 _ACEOF
10958 if ac_fn_c_try_compile "$LINENO"; then :
10959 gcc_cv_type_clock_t=yes
10960 else
10961 gcc_cv_type_clock_t=no
10963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10966 $as_echo "$gcc_cv_type_clock_t" >&6; }
10967 if test $gcc_cv_type_clock_t = yes; then
10969 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10973 # Check if F_SETLKW is supported by fcntl.
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10975 $as_echo_n "checking for F_SETLKW... " >&6; }
10976 if test "${ac_cv_f_setlkw+set}" = set; then :
10977 $as_echo_n "(cached) " >&6
10978 else
10980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10981 /* end confdefs.h. */
10983 #include <fcntl.h>
10985 main ()
10988 struct flock fl;
10989 fl.l_whence = 0;
10990 fl.l_start = 0;
10991 fl.l_len = 0;
10992 fl.l_pid = 0;
10993 return fcntl (1, F_SETLKW, &fl);
10995 return 0;
10997 _ACEOF
10998 if ac_fn_c_try_compile "$LINENO"; then :
10999 ac_cv_f_setlkw=yes
11000 else
11001 ac_cv_f_setlkw=no
11003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11006 $as_echo "$ac_cv_f_setlkw" >&6; }
11007 if test $ac_cv_f_setlkw = yes; then
11009 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11013 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11014 CFLAGS="$saved_CFLAGS"
11015 CXXFLAGS="$saved_CXXFLAGS"
11017 # mkdir takes a single argument on some systems.
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11019 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11020 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11021 $as_echo_n "(cached) " >&6
11022 else
11023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11024 /* end confdefs.h. */
11026 #include <sys/types.h>
11027 #ifdef HAVE_SYS_STAT_H
11028 # include <sys/stat.h>
11029 #endif
11030 #ifdef HAVE_UNISTD_H
11031 # include <unistd.h>
11032 #endif
11033 #ifdef HAVE_DIRECT_H
11034 # include <direct.h>
11035 #endif
11037 main ()
11039 mkdir ("foo", 0);
11041 return 0;
11043 _ACEOF
11044 if ac_fn_c_try_compile "$LINENO"; then :
11045 gcc_cv_mkdir_takes_one_arg=no
11046 else
11047 gcc_cv_mkdir_takes_one_arg=yes
11049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11052 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11053 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11055 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11060 # File extensions
11061 manext='.1'
11062 objext='.o'
11066 # With Setjmp/Longjmp based exception handling.
11067 # Check whether --enable-sjlj-exceptions was given.
11068 if test "${enable_sjlj_exceptions+set}" = set; then :
11069 enableval=$enable_sjlj_exceptions; case $target in
11070 *-*-hpux10*)
11071 if test $enableval != yes; then
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11073 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11074 enableval=yes
11077 esac
11078 force_sjlj_exceptions=yes
11079 else
11080 case $target in
11081 *-*-hpux10*)
11082 force_sjlj_exceptions=yes
11083 enableval=yes
11085 lm32*-*-*)
11086 force_sjlj_exceptions=yes
11087 enableval=yes
11090 force_sjlj_exceptions=no
11092 esac
11095 if test $force_sjlj_exceptions = yes; then
11096 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11098 cat >>confdefs.h <<_ACEOF
11099 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11100 _ACEOF
11104 # --------------------------------------------------------
11105 # Build, host, and target specific configuration fragments
11106 # --------------------------------------------------------
11108 # Collect build-machine-specific information.
11109 . ${srcdir}/config.build
11111 # Collect host-machine-specific information.
11112 . ${srcdir}/config.host
11114 target_gtfiles=
11116 # Collect target-machine-specific information.
11117 . ${srcdir}/config.gcc
11119 extra_objs="${host_extra_objs} ${extra_objs}"
11120 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11122 # Default the target-machine variables that were not explicitly set.
11123 if test x"$tm_file" = x
11124 then tm_file=$cpu_type/$cpu_type.h; fi
11126 if test x"$extra_headers" = x
11127 then extra_headers=; fi
11129 if test x$md_file = x
11130 then md_file=$cpu_type/$cpu_type.md; fi
11132 if test x$out_file = x
11133 then out_file=$cpu_type/$cpu_type.c; fi
11135 if test x"$tmake_file" = x
11136 then tmake_file=$cpu_type/t-$cpu_type
11139 # Support --enable-initfini-array.
11140 if test x$enable_initfini_array != xno; then
11141 tm_file="${tm_file} initfini-array.h"
11144 if test x"$dwarf2" = xyes
11145 then tm_file="$tm_file tm-dwarf2.h"
11148 # Say what files are being used for the output code and MD file.
11149 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11150 echo "Using \`$srcdir/config/$md_file' as machine description file."
11152 # If any of the xm_file variables contain nonexistent files, warn
11153 # about them and drop them.
11156 for x in $build_xm_file; do
11157 if test -f $srcdir/config/$x
11158 then bx="$bx $x"
11159 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11160 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11162 done
11163 build_xm_file="$bx"
11166 for x in $host_xm_file; do
11167 if test -f $srcdir/config/$x
11168 then hx="$hx $x"
11169 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11170 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11172 done
11173 host_xm_file="$hx"
11176 for x in $xm_file; do
11177 if test -f $srcdir/config/$x
11178 then tx="$tx $x"
11179 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11180 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11182 done
11183 xm_file="$tx"
11185 count=a
11186 for f in $tm_file; do
11187 count=${count}x
11188 done
11189 if test $count = ax; then
11190 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11191 else
11192 echo "Using the following target machine macro files:"
11193 for f in $tm_file; do
11194 echo " $srcdir/config/$f"
11195 done
11198 if test x$use_long_long_for_widest_fast_int = xyes; then
11200 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11204 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11206 cat >>confdefs.h <<_ACEOF
11207 #define HAVE_GNU_LD $gnu_ld_bool
11208 _ACEOF
11211 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11213 cat >>confdefs.h <<_ACEOF
11214 #define HAVE_GNU_AS $gnu_as_bool
11215 _ACEOF
11218 count=a
11219 for f in $host_xm_file; do
11220 count=${count}x
11221 done
11222 if test $count = a; then
11224 elif test $count = ax; then
11225 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11226 else
11227 echo "Using the following host machine macro files:"
11228 for f in $host_xm_file; do
11229 echo " $srcdir/config/$f"
11230 done
11232 echo "Using ${out_host_hook_obj} for host machine hooks."
11234 if test "$host_xm_file" != "$build_xm_file"; then
11235 count=a
11236 for f in $build_xm_file; do
11237 count=${count}x
11238 done
11239 if test $count = a; then
11241 elif test $count = ax; then
11242 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11243 else
11244 echo "Using the following build machine macro files:"
11245 for f in $build_xm_file; do
11246 echo " $srcdir/config/$f"
11247 done
11251 if test -n "$configured_native_system_header_dir"; then
11252 native_system_header_dir=$configured_native_system_header_dir
11254 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11257 case ${host} in
11258 powerpc*-*-darwin*)
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11260 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11261 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11262 $as_echo_n "(cached) " >&6
11263 else
11264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11265 /* end confdefs.h. */
11267 #include <sys/cdefs.h>
11268 #include <sys/signal.h>
11269 #include <ucontext.h>
11270 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11272 _ACEOF
11273 if ac_fn_c_try_compile "$LINENO"; then :
11274 gcc_cv_mcontext_underscores=no
11275 else
11276 gcc_cv_mcontext_underscores=yes
11278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11281 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11282 if test $gcc_cv_mcontext_underscores = yes; then
11284 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11288 esac
11290 # ---------
11291 # Threading
11292 # ---------
11294 # Check if a valid thread package
11295 case ${enable_threads} in
11296 "" | no)
11297 # No threads
11298 target_thread_file='single'
11300 yes)
11301 # default
11302 target_thread_file='single'
11304 aix | dce | lynx | mipssde | posix | rtems | \
11305 single | tpf | vxworks | win32)
11306 target_thread_file=${enable_threads}
11309 echo "${enable_threads} is an unknown thread package" 1>&2
11310 exit 1
11312 esac
11314 if test x${thread_file} = x; then
11315 # No thread file set by target-specific clauses in config.gcc,
11316 # so use file chosen by default logic above
11317 thread_file=${target_thread_file}
11320 # --------
11321 # UNSORTED
11322 # --------
11324 use_cxa_atexit=no
11325 if test x$enable___cxa_atexit = xyes || \
11326 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11327 if test x$host = x$target; then
11328 case $host in
11329 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11330 # keyed to flag_use_cxa_atexit
11331 *-*-mingw32*)
11332 use_cxa_atexit=yes
11334 powerpc-ibm-aix*)
11335 use_cxa_atexit=yes
11338 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11339 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11340 use_cxa_atexit=yes
11341 else
11342 echo "__cxa_atexit can't be enabled on this target"
11346 esac
11347 else
11348 # We can't check for __cxa_atexit when building a cross, so assume
11349 # it is available
11350 use_cxa_atexit=yes
11352 if test x$use_cxa_atexit = xyes; then
11354 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11359 # Look for a file containing extra machine modes.
11360 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11361 extra_modes_file='$(srcdir)'/config/${extra_modes}
11364 cat >>confdefs.h <<_ACEOF
11365 #define EXTRA_MODES_FILE "config/$extra_modes"
11366 _ACEOF
11370 # Convert extra_options into a form suitable for Makefile use.
11371 extra_opt_files=
11372 all_opt_files=
11373 for f in $extra_options; do
11374 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11375 all_opt_files="$all_opt_files $srcdir/config/$f"
11376 done
11379 # auto-host.h is the file containing items generated by autoconf and is
11380 # the first file included by config.h.
11381 # If host=build, it is correct to have bconfig include auto-host.h
11382 # as well. If host!=build, we are in error and need to do more
11383 # work to find out the build config parameters.
11384 if test x$host = x$build
11385 then
11386 build_auto=auto-host.h
11387 else
11388 # We create a subdir, then run autoconf in the subdir.
11389 # To prevent recursion we set host and build for the new
11390 # invocation of configure to the build for this invocation
11391 # of configure.
11392 tempdir=build.$$
11393 rm -rf $tempdir
11394 mkdir $tempdir
11395 cd $tempdir
11396 case ${srcdir} in
11397 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11398 *) realsrcdir=../${srcdir};;
11399 esac
11400 # Clearing GMPINC is necessary to prevent host headers being
11401 # used by the build compiler. Defining GENERATOR_FILE stops
11402 # system.h from including gmp.h.
11403 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11404 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11405 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11406 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11407 ${realsrcdir}/configure \
11408 --enable-languages=${enable_languages-all} \
11409 --target=$target_alias --host=$build_alias --build=$build_alias
11411 # We just finished tests for the build machine, so rename
11412 # the file auto-build.h in the gcc directory.
11413 mv auto-host.h ../auto-build.h
11414 cd ..
11415 rm -rf $tempdir
11416 build_auto=auto-build.h
11420 tm_file="${tm_file} defaults.h"
11421 tm_p_file="${tm_p_file} tm-preds.h"
11422 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11423 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11424 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11425 # put this back in temporarily.
11426 xm_file="auto-host.h ansidecl.h ${xm_file}"
11428 # --------
11429 # UNSORTED
11430 # --------
11432 # Compile in configure arguments.
11433 if test -f configargs.h ; then
11434 # Being re-configured.
11435 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11436 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11437 else
11438 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11441 # Double all backslashes and backslash all quotes to turn
11442 # gcc_config_arguments into a C string.
11443 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11444 $gcc_config_arguments
11446 gcc_config_arguments_str=`cat conftest.out`
11447 rm -f conftest.out
11449 cat > configargs.h <<EOF
11450 /* Generated automatically. */
11451 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11452 static const char thread_model[] = "$thread_file";
11454 static const struct {
11455 const char *name, *value;
11456 } configure_default_options[] = $configure_default_options;
11459 gcc_BASEVER=`cat $srcdir/BASE-VER`
11460 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11461 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11462 if test -f $srcdir/REVISION ; then
11463 gcc_REVISION=`cat $srcdir/REVISION`
11464 else
11465 gcc_REVISION=""
11467 cat > plugin-version.h <<EOF
11468 #include "configargs.h"
11470 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11471 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11472 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11473 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11475 static char basever[] = "$gcc_BASEVER";
11476 static char datestamp[] = "$gcc_DATESTAMP";
11477 static char devphase[] = "$gcc_DEVPHASE";
11478 static char revision[] = "$gcc_REVISION";
11480 /* FIXME plugins: We should make the version information more precise.
11481 One way to do is to add a checksum. */
11483 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11484 devphase, revision,
11485 configuration_arguments};
11488 # Internationalization
11489 # If we haven't got the data from the intl directory,
11490 # assume NLS is disabled.
11491 USE_NLS=no
11492 LIBINTL=
11493 LIBINTL_DEP=
11494 INCINTL=
11495 XGETTEXT=
11496 GMSGFMT=
11497 POSUB=
11499 if test -f ../intl/config.intl; then
11500 . ../intl/config.intl
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11503 $as_echo_n "checking whether NLS is requested... " >&6; }
11504 if test x"$USE_NLS" != xyes; then
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11506 $as_echo "no" >&6; }
11507 else
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11509 $as_echo "yes" >&6; }
11511 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11515 $as_echo_n "checking for catalogs to be installed... " >&6; }
11516 # Look for .po and .gmo files in the source directory.
11517 CATALOGS=
11518 XLINGUAS=
11519 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11520 # If there aren't any .gmo files the shell will give us the
11521 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11522 # weeded out.
11523 case "$cat" in *\**)
11524 continue;;
11525 esac
11526 # The quadruple backslash is collapsed to a double backslash
11527 # by the backticks, then collapsed again by the double quotes,
11528 # leaving us with one backslash in the sed expression (right
11529 # before the dot that mustn't act as a wildcard).
11530 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11531 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11532 # The user is allowed to set LINGUAS to a list of languages to
11533 # install catalogs for. If it's empty that means "all of them."
11534 if test "x$LINGUAS" = x; then
11535 CATALOGS="$CATALOGS $cat"
11536 XLINGUAS="$XLINGUAS $lang"
11537 else
11538 case "$LINGUAS" in *$lang*)
11539 CATALOGS="$CATALOGS $cat"
11540 XLINGUAS="$XLINGUAS $lang"
11542 esac
11544 done
11545 LINGUAS="$XLINGUAS"
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11547 $as_echo "$LINGUAS" >&6; }
11550 DATADIRNAME=share
11552 INSTOBJEXT=.mo
11554 GENCAT=gencat
11556 CATOBJEXT=.gmo
11560 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11561 # -liconv on the link line twice.
11562 case "$LIBINTL" in *$LIBICONV*)
11563 LIBICONV= ;;
11564 esac
11566 # Check whether --enable-secureplt was given.
11567 if test "${enable_secureplt+set}" = set; then :
11568 enableval=$enable_secureplt;
11572 # Check whether --enable-leading-mingw64-underscores was given.
11573 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11574 enableval=$enable_leading_mingw64_underscores;
11577 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11579 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11583 # Check whether --enable-cld was given.
11584 if test "${enable_cld+set}" = set; then :
11585 enableval=$enable_cld;
11586 else
11587 enable_cld=no
11591 # Check whether --enable-frame-pointer was given.
11592 if test "${enable_frame_pointer+set}" = set; then :
11593 enableval=$enable_frame_pointer;
11594 else
11596 case $target_os in
11597 linux* | darwin[8912]*)
11598 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11599 # DWARF2.
11600 enable_frame_pointer=no
11603 enable_frame_pointer=yes
11605 esac
11610 # Windows32 Registry support for specifying GCC installation paths.
11611 # Check whether --enable-win32-registry was given.
11612 if test "${enable_win32_registry+set}" = set; then :
11613 enableval=$enable_win32_registry;
11617 case $host_os in
11618 win32 | pe | cygwin* | mingw32* | uwin*)
11619 if test "x$enable_win32_registry" != xno; then
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11621 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11622 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11623 $as_echo_n "(cached) " >&6
11624 else
11625 ac_func_search_save_LIBS=$LIBS
11626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11627 /* end confdefs.h. */
11629 /* Override any GCC internal prototype to avoid an error.
11630 Use char because int might match the return type of a GCC
11631 builtin and then its argument prototype would still apply. */
11632 #ifdef __cplusplus
11633 extern "C"
11634 #endif
11635 char RegOpenKeyExA ();
11637 main ()
11639 return RegOpenKeyExA ();
11641 return 0;
11643 _ACEOF
11644 for ac_lib in '' advapi32; do
11645 if test -z "$ac_lib"; then
11646 ac_res="none required"
11647 else
11648 ac_res=-l$ac_lib
11649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11651 if ac_fn_c_try_link "$LINENO"; then :
11652 ac_cv_search_RegOpenKeyExA=$ac_res
11654 rm -f core conftest.err conftest.$ac_objext \
11655 conftest$ac_exeext
11656 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11657 break
11659 done
11660 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11662 else
11663 ac_cv_search_RegOpenKeyExA=no
11665 rm conftest.$ac_ext
11666 LIBS=$ac_func_search_save_LIBS
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11669 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11670 ac_res=$ac_cv_search_RegOpenKeyExA
11671 if test "$ac_res" != no; then :
11672 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11674 else
11675 enable_win32_registry=no
11680 if test "x$enable_win32_registry" != xno; then
11682 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11685 if test "x$enable_win32_registry" != xyes \
11686 && test "x$enable_win32_registry" != x; then
11688 cat >>confdefs.h <<_ACEOF
11689 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11690 _ACEOF
11695 esac
11697 # Get an absolute path to the GCC top-level source directory
11698 holddir=`${PWDCMD-pwd}`
11699 cd $srcdir
11700 topdir=`${PWDCMD-pwd}`
11701 cd $holddir
11703 # Conditionalize the makefile for this host machine.
11704 xmake_file=
11705 for f in ${host_xmake_file}
11707 if test -f ${srcdir}/config/$f
11708 then
11709 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11711 done
11713 # Conditionalize the makefile for this target machine.
11714 tmake_file_=
11715 for f in ${tmake_file}
11717 if test -f ${srcdir}/config/$f
11718 then
11719 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11721 done
11722 tmake_file="${tmake_file_}"
11724 out_object_file=`basename $out_file .c`.o
11725 common_out_object_file=`basename $common_out_file .c`.o
11727 tm_file_list="options.h"
11728 tm_include_list="options.h insn-constants.h"
11729 for f in $tm_file; do
11730 case $f in
11731 ./* )
11732 f=`echo $f | sed 's/^..//'`
11733 tm_file_list="${tm_file_list} $f"
11734 tm_include_list="${tm_include_list} $f"
11736 defaults.h )
11737 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11738 tm_include_list="${tm_include_list} $f"
11741 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11742 tm_include_list="${tm_include_list} config/$f"
11744 esac
11745 done
11747 tm_p_file_list=
11748 tm_p_include_list=
11749 for f in $tm_p_file; do
11750 case $f in
11751 tm-preds.h )
11752 tm_p_file_list="${tm_p_file_list} $f"
11753 tm_p_include_list="${tm_p_include_list} $f"
11756 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11757 tm_p_include_list="${tm_p_include_list} config/$f"
11758 esac
11759 done
11761 xm_file_list=
11762 xm_include_list=
11763 for f in $xm_file; do
11764 case $f in
11765 ansidecl.h )
11766 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11767 xm_include_list="${xm_include_list} $f"
11769 auto-host.h )
11770 xm_file_list="${xm_file_list} $f"
11771 xm_include_list="${xm_include_list} $f"
11774 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11775 xm_include_list="${xm_include_list} config/$f"
11777 esac
11778 done
11780 host_xm_file_list=
11781 host_xm_include_list=
11782 for f in $host_xm_file; do
11783 case $f in
11784 ansidecl.h )
11785 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11786 host_xm_include_list="${host_xm_include_list} $f"
11788 auto-host.h )
11789 host_xm_file_list="${host_xm_file_list} $f"
11790 host_xm_include_list="${host_xm_include_list} $f"
11793 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11794 host_xm_include_list="${host_xm_include_list} config/$f"
11796 esac
11797 done
11799 build_xm_file_list=
11800 for f in $build_xm_file; do
11801 case $f in
11802 ansidecl.h )
11803 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11804 build_xm_include_list="${build_xm_include_list} $f"
11806 auto-build.h | auto-host.h )
11807 build_xm_file_list="${build_xm_file_list} $f"
11808 build_xm_include_list="${build_xm_include_list} $f"
11811 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11812 build_xm_include_list="${build_xm_include_list} config/$f"
11814 esac
11815 done
11817 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11818 # cross-compiler which does not use the native headers and libraries.
11819 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11820 CROSS=
11821 ALL=all.internal
11822 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11824 if test "x$with_build_sysroot" != x; then
11825 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11826 else
11827 # This value is used, even on a native system, because
11828 # CROSS_SYSTEM_HEADER_DIR is just
11829 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11830 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11833 if test x$host != x$target
11834 then
11835 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11836 ALL=all.cross
11837 SYSTEM_HEADER_DIR=$build_system_header_dir
11838 case "$host","$target" in
11839 # Darwin crosses can use the host system's libraries and headers,
11840 # because of the fat library support. Of course, it must be the
11841 # same version of Darwin on both sides. Allow the user to
11842 # just say --target=foo-darwin without a version number to mean
11843 # "the version on this system".
11844 *-*-darwin*,*-*-darwin*)
11845 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11846 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11847 if test $hostos = $targetos -o $targetos = darwin ; then
11848 CROSS=
11849 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11850 with_headers=yes
11854 i?86-*-*,x86_64-*-* \
11855 | powerpc*-*-*,powerpc64*-*-*)
11856 CROSS="$CROSS -DNATIVE_CROSS" ;;
11857 esac
11859 case $target in
11860 *-*-mingw*)
11861 if test "x$with_headers" = x; then
11862 with_headers=yes
11867 esac
11868 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11869 SYSTEM_HEADER_DIR=$build_system_header_dir
11872 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
11873 if test "x$with_headers" != x; then
11874 target_header_dir=$with_headers
11875 elif test "x$with_sysroot" = x; then
11876 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
11877 elif test "x$with_build_sysroot" != "x"; then
11878 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
11879 elif test "x$with_sysroot" = xyes; then
11880 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
11881 else
11882 target_header_dir="${with_sysroot}${native_system_header_dir}"
11884 else
11885 target_header_dir=${native_system_header_dir}
11888 # If this is a cross-compiler that does not
11889 # have its own set of headers then define
11890 # inhibit_libc
11892 # If this is using newlib, without having the headers available now,
11893 # then define inhibit_libc in LIBGCC2_CFLAGS.
11894 # This prevents libgcc2 from containing any code which requires libc
11895 # support.
11896 : ${inhibit_libc=false}
11897 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11898 test x$with_newlib = xyes ; } &&
11899 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
11900 inhibit_libc=true
11904 # When building gcc with a cross-compiler, we need to adjust things so
11905 # that the generator programs are still built with the native compiler.
11906 # Also, we cannot run fixincludes.
11908 # These are the normal (build=host) settings:
11909 CC_FOR_BUILD='$(CC)'
11910 CXX_FOR_BUILD='$(CXX)'
11911 BUILD_CFLAGS='$(ALL_CFLAGS)'
11912 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11913 BUILD_LDFLAGS='$(LDFLAGS)'
11914 STMP_FIXINC=stmp-fixinc
11916 # And these apply if build != host, or we are generating coverage data
11917 if test x$build != x$host || test "x$coverage_flags" != x
11918 then
11919 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11920 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
11921 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11924 # Expand extra_headers to include complete path.
11925 # This substitutes for lots of t-* files.
11926 extra_headers_list=
11927 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11928 for file in ${extra_headers} ; do
11929 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11930 done
11932 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11933 if test x"$use_gcc_tgmath" = xyes
11934 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11937 # Define collect2 in Makefile.
11938 case $host_can_use_collect2 in
11939 no) collect2= ;;
11940 *) collect2='collect2$(exeext)' ;;
11941 esac
11944 # Add a definition of USE_COLLECT2 if system wants one.
11945 case $use_collect2 in
11946 no) use_collect2= ;;
11947 "") ;;
11949 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11950 xm_defines="${xm_defines} USE_COLLECT2"
11951 case $host_can_use_collect2 in
11953 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11955 esac
11957 esac
11960 cat >>confdefs.h <<_ACEOF
11961 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11962 _ACEOF
11965 # ---------------------------
11966 # Assembler & linker features
11967 # ---------------------------
11969 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11970 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11971 # However when ld-new is first executed from the build tree, libtool will
11972 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11973 # to the build tree. While doing this we need to use the previous-stage
11974 # linker, or we have an infinite loop. The presence of a shell script as
11975 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11976 # the gcc/collect-ld script. So we need to know how libtool works, or
11977 # exec-tool will fail.
11980 case `pwd` in
11981 *\ * | *\ *)
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11983 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11984 esac
11988 macro_version='2.2.7a'
11989 macro_revision='1.3134'
12003 ltmain="$ac_aux_dir/ltmain.sh"
12005 # Backslashify metacharacters that are still active within
12006 # double-quoted strings.
12007 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12009 # Same as above, but do not quote variable references.
12010 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12012 # Sed substitution to delay expansion of an escaped shell variable in a
12013 # double_quote_subst'ed string.
12014 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12016 # Sed substitution to delay expansion of an escaped single quote.
12017 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12019 # Sed substitution to avoid accidental globbing in evaled expressions
12020 no_glob_subst='s/\*/\\\*/g'
12022 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12023 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12024 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12027 $as_echo_n "checking how to print strings... " >&6; }
12028 # Test print first, because it will be a builtin if present.
12029 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12030 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12031 ECHO='print -r --'
12032 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12033 ECHO='printf %s\n'
12034 else
12035 # Use this function as a fallback that always works.
12036 func_fallback_echo ()
12038 eval 'cat <<_LTECHO_EOF
12040 _LTECHO_EOF'
12042 ECHO='func_fallback_echo'
12045 # func_echo_all arg...
12046 # Invoke $ECHO with all args, space-separated.
12047 func_echo_all ()
12049 $ECHO ""
12052 case "$ECHO" in
12053 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12054 $as_echo "printf" >&6; } ;;
12055 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12056 $as_echo "print -r" >&6; } ;;
12057 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12058 $as_echo "cat" >&6; } ;;
12059 esac
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12075 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12076 if test "${ac_cv_path_SED+set}" = set; then :
12077 $as_echo_n "(cached) " >&6
12078 else
12079 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12080 for ac_i in 1 2 3 4 5 6 7; do
12081 ac_script="$ac_script$as_nl$ac_script"
12082 done
12083 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12084 { ac_script=; unset ac_script;}
12085 if test -z "$SED"; then
12086 ac_path_SED_found=false
12087 # Loop through the user's path and test for each of PROGNAME-LIST
12088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12089 for as_dir in $PATH
12091 IFS=$as_save_IFS
12092 test -z "$as_dir" && as_dir=.
12093 for ac_prog in sed gsed; do
12094 for ac_exec_ext in '' $ac_executable_extensions; do
12095 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12096 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12097 # Check for GNU ac_path_SED and select it if it is found.
12098 # Check for GNU $ac_path_SED
12099 case `"$ac_path_SED" --version 2>&1` in
12100 *GNU*)
12101 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12103 ac_count=0
12104 $as_echo_n 0123456789 >"conftest.in"
12105 while :
12107 cat "conftest.in" "conftest.in" >"conftest.tmp"
12108 mv "conftest.tmp" "conftest.in"
12109 cp "conftest.in" "conftest.nl"
12110 $as_echo '' >> "conftest.nl"
12111 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12112 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12113 as_fn_arith $ac_count + 1 && ac_count=$as_val
12114 if test $ac_count -gt ${ac_path_SED_max-0}; then
12115 # Best one so far, save it but keep looking for a better one
12116 ac_cv_path_SED="$ac_path_SED"
12117 ac_path_SED_max=$ac_count
12119 # 10*(2^10) chars as input seems more than enough
12120 test $ac_count -gt 10 && break
12121 done
12122 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12123 esac
12125 $ac_path_SED_found && break 3
12126 done
12127 done
12128 done
12129 IFS=$as_save_IFS
12130 if test -z "$ac_cv_path_SED"; then
12131 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12133 else
12134 ac_cv_path_SED=$SED
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12139 $as_echo "$ac_cv_path_SED" >&6; }
12140 SED="$ac_cv_path_SED"
12141 rm -f conftest.sed
12143 test -z "$SED" && SED=sed
12144 Xsed="$SED -e 1s/^X//"
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12157 $as_echo_n "checking for fgrep... " >&6; }
12158 if test "${ac_cv_path_FGREP+set}" = set; then :
12159 $as_echo_n "(cached) " >&6
12160 else
12161 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12162 then ac_cv_path_FGREP="$GREP -F"
12163 else
12164 if test -z "$FGREP"; then
12165 ac_path_FGREP_found=false
12166 # Loop through the user's path and test for each of PROGNAME-LIST
12167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12168 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12170 IFS=$as_save_IFS
12171 test -z "$as_dir" && as_dir=.
12172 for ac_prog in fgrep; do
12173 for ac_exec_ext in '' $ac_executable_extensions; do
12174 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12175 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12176 # Check for GNU ac_path_FGREP and select it if it is found.
12177 # Check for GNU $ac_path_FGREP
12178 case `"$ac_path_FGREP" --version 2>&1` in
12179 *GNU*)
12180 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12182 ac_count=0
12183 $as_echo_n 0123456789 >"conftest.in"
12184 while :
12186 cat "conftest.in" "conftest.in" >"conftest.tmp"
12187 mv "conftest.tmp" "conftest.in"
12188 cp "conftest.in" "conftest.nl"
12189 $as_echo 'FGREP' >> "conftest.nl"
12190 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12191 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12192 as_fn_arith $ac_count + 1 && ac_count=$as_val
12193 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12194 # Best one so far, save it but keep looking for a better one
12195 ac_cv_path_FGREP="$ac_path_FGREP"
12196 ac_path_FGREP_max=$ac_count
12198 # 10*(2^10) chars as input seems more than enough
12199 test $ac_count -gt 10 && break
12200 done
12201 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12202 esac
12204 $ac_path_FGREP_found && break 3
12205 done
12206 done
12207 done
12208 IFS=$as_save_IFS
12209 if test -z "$ac_cv_path_FGREP"; then
12210 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12212 else
12213 ac_cv_path_FGREP=$FGREP
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12219 $as_echo "$ac_cv_path_FGREP" >&6; }
12220 FGREP="$ac_cv_path_FGREP"
12223 test -z "$GREP" && GREP=grep
12243 # Check whether --with-gnu-ld was given.
12244 if test "${with_gnu_ld+set}" = set; then :
12245 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12246 else
12247 with_gnu_ld=no
12250 ac_prog=ld
12251 if test "$GCC" = yes; then
12252 # Check if gcc -print-prog-name=ld gives a path.
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12254 $as_echo_n "checking for ld used by $CC... " >&6; }
12255 case $host in
12256 *-*-mingw*)
12257 # gcc leaves a trailing carriage return which upsets mingw
12258 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12260 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12261 esac
12262 case $ac_prog in
12263 # Accept absolute paths.
12264 [\\/]* | ?:[\\/]*)
12265 re_direlt='/[^/][^/]*/\.\./'
12266 # Canonicalize the pathname of ld
12267 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12268 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12269 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12270 done
12271 test -z "$LD" && LD="$ac_prog"
12274 # If it fails, then pretend we aren't using GCC.
12275 ac_prog=ld
12278 # If it is relative, then search for the first ld in PATH.
12279 with_gnu_ld=unknown
12281 esac
12282 elif test "$with_gnu_ld" = yes; then
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12284 $as_echo_n "checking for GNU ld... " >&6; }
12285 else
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12287 $as_echo_n "checking for non-GNU ld... " >&6; }
12289 if test "${lt_cv_path_LD+set}" = set; then :
12290 $as_echo_n "(cached) " >&6
12291 else
12292 if test -z "$LD"; then
12293 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12294 for ac_dir in $PATH; do
12295 IFS="$lt_save_ifs"
12296 test -z "$ac_dir" && ac_dir=.
12297 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12298 lt_cv_path_LD="$ac_dir/$ac_prog"
12299 # Check to see if the program is GNU ld. I'd rather use --version,
12300 # but apparently some variants of GNU ld only accept -v.
12301 # Break only if it was the GNU/non-GNU ld that we prefer.
12302 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12303 *GNU* | *'with BFD'*)
12304 test "$with_gnu_ld" != no && break
12307 test "$with_gnu_ld" != yes && break
12309 esac
12311 done
12312 IFS="$lt_save_ifs"
12313 else
12314 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12318 LD="$lt_cv_path_LD"
12319 if test -n "$LD"; then
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12321 $as_echo "$LD" >&6; }
12322 else
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324 $as_echo "no" >&6; }
12326 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12328 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12329 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12330 $as_echo_n "(cached) " >&6
12331 else
12332 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12333 case `$LD -v 2>&1 </dev/null` in
12334 *GNU* | *'with BFD'*)
12335 lt_cv_prog_gnu_ld=yes
12338 lt_cv_prog_gnu_ld=no
12340 esac
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12343 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12344 with_gnu_ld=$lt_cv_prog_gnu_ld
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12355 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12356 if test "${lt_cv_path_NM+set}" = set; then :
12357 $as_echo_n "(cached) " >&6
12358 else
12359 if test -n "$NM"; then
12360 # Let the user override the test.
12361 lt_cv_path_NM="$NM"
12362 else
12363 lt_nm_to_check="${ac_tool_prefix}nm"
12364 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12365 lt_nm_to_check="$lt_nm_to_check nm"
12367 for lt_tmp_nm in $lt_nm_to_check; do
12368 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12369 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12370 IFS="$lt_save_ifs"
12371 test -z "$ac_dir" && ac_dir=.
12372 tmp_nm="$ac_dir/$lt_tmp_nm"
12373 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12374 # Check to see if the nm accepts a BSD-compat flag.
12375 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12376 # nm: unknown option "B" ignored
12377 # Tru64's nm complains that /dev/null is an invalid object file
12378 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12379 */dev/null* | *'Invalid file or object type'*)
12380 lt_cv_path_NM="$tmp_nm -B"
12381 break
12384 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12385 */dev/null*)
12386 lt_cv_path_NM="$tmp_nm -p"
12387 break
12390 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12391 continue # so that we can try to find one that supports BSD flags
12393 esac
12395 esac
12397 done
12398 IFS="$lt_save_ifs"
12399 done
12400 : ${lt_cv_path_NM=no}
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12404 $as_echo "$lt_cv_path_NM" >&6; }
12405 if test "$lt_cv_path_NM" != "no"; then
12406 NM="$lt_cv_path_NM"
12407 else
12408 # Didn't find any BSD compatible name lister, look for dumpbin.
12409 if test -n "$DUMPBIN"; then :
12410 # Let the user override the test.
12411 else
12412 if test -n "$ac_tool_prefix"; then
12413 for ac_prog in dumpbin "link -dump"
12415 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12416 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12418 $as_echo_n "checking for $ac_word... " >&6; }
12419 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12420 $as_echo_n "(cached) " >&6
12421 else
12422 if test -n "$DUMPBIN"; then
12423 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12424 else
12425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12426 for as_dir in $PATH
12428 IFS=$as_save_IFS
12429 test -z "$as_dir" && as_dir=.
12430 for ac_exec_ext in '' $ac_executable_extensions; do
12431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12432 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12434 break 2
12436 done
12437 done
12438 IFS=$as_save_IFS
12442 DUMPBIN=$ac_cv_prog_DUMPBIN
12443 if test -n "$DUMPBIN"; then
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12445 $as_echo "$DUMPBIN" >&6; }
12446 else
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12448 $as_echo "no" >&6; }
12452 test -n "$DUMPBIN" && break
12453 done
12455 if test -z "$DUMPBIN"; then
12456 ac_ct_DUMPBIN=$DUMPBIN
12457 for ac_prog in dumpbin "link -dump"
12459 # Extract the first word of "$ac_prog", so it can be a program name with args.
12460 set dummy $ac_prog; ac_word=$2
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12462 $as_echo_n "checking for $ac_word... " >&6; }
12463 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12464 $as_echo_n "(cached) " >&6
12465 else
12466 if test -n "$ac_ct_DUMPBIN"; then
12467 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12468 else
12469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12470 for as_dir in $PATH
12472 IFS=$as_save_IFS
12473 test -z "$as_dir" && as_dir=.
12474 for ac_exec_ext in '' $ac_executable_extensions; do
12475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12476 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12478 break 2
12480 done
12481 done
12482 IFS=$as_save_IFS
12486 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12487 if test -n "$ac_ct_DUMPBIN"; then
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12489 $as_echo "$ac_ct_DUMPBIN" >&6; }
12490 else
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12492 $as_echo "no" >&6; }
12496 test -n "$ac_ct_DUMPBIN" && break
12497 done
12499 if test "x$ac_ct_DUMPBIN" = x; then
12500 DUMPBIN=":"
12501 else
12502 case $cross_compiling:$ac_tool_warned in
12503 yes:)
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12506 ac_tool_warned=yes ;;
12507 esac
12508 DUMPBIN=$ac_ct_DUMPBIN
12512 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12513 *COFF*)
12514 DUMPBIN="$DUMPBIN -symbols"
12517 DUMPBIN=:
12519 esac
12522 if test "$DUMPBIN" != ":"; then
12523 NM="$DUMPBIN"
12526 test -z "$NM" && NM=nm
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12534 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12535 if test "${lt_cv_nm_interface+set}" = set; then :
12536 $as_echo_n "(cached) " >&6
12537 else
12538 lt_cv_nm_interface="BSD nm"
12539 echo "int some_variable = 0;" > conftest.$ac_ext
12540 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12541 (eval "$ac_compile" 2>conftest.err)
12542 cat conftest.err >&5
12543 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12544 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12545 cat conftest.err >&5
12546 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12547 cat conftest.out >&5
12548 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12549 lt_cv_nm_interface="MS dumpbin"
12551 rm -f conftest*
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12554 $as_echo "$lt_cv_nm_interface" >&6; }
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12557 $as_echo_n "checking whether ln -s works... " >&6; }
12558 LN_S=$as_ln_s
12559 if test "$LN_S" = "ln -s"; then
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12561 $as_echo "yes" >&6; }
12562 else
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12564 $as_echo "no, using $LN_S" >&6; }
12567 # find the maximum length of command line arguments
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12569 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12570 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12571 $as_echo_n "(cached) " >&6
12572 else
12574 teststring="ABCD"
12576 case $build_os in
12577 msdosdjgpp*)
12578 # On DJGPP, this test can blow up pretty badly due to problems in libc
12579 # (any single argument exceeding 2000 bytes causes a buffer overrun
12580 # during glob expansion). Even if it were fixed, the result of this
12581 # check would be larger than it should be.
12582 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12585 gnu*)
12586 # Under GNU Hurd, this test is not required because there is
12587 # no limit to the length of command line arguments.
12588 # Libtool will interpret -1 as no limit whatsoever
12589 lt_cv_sys_max_cmd_len=-1;
12592 cygwin* | mingw* | cegcc*)
12593 # On Win9x/ME, this test blows up -- it succeeds, but takes
12594 # about 5 minutes as the teststring grows exponentially.
12595 # Worse, since 9x/ME are not pre-emptively multitasking,
12596 # you end up with a "frozen" computer, even though with patience
12597 # the test eventually succeeds (with a max line length of 256k).
12598 # Instead, let's just punt: use the minimum linelength reported by
12599 # all of the supported platforms: 8192 (on NT/2K/XP).
12600 lt_cv_sys_max_cmd_len=8192;
12603 mint*)
12604 # On MiNT this can take a long time and run out of memory.
12605 lt_cv_sys_max_cmd_len=8192;
12608 amigaos*)
12609 # On AmigaOS with pdksh, this test takes hours, literally.
12610 # So we just punt and use a minimum line length of 8192.
12611 lt_cv_sys_max_cmd_len=8192;
12614 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12615 # This has been around since 386BSD, at least. Likely further.
12616 if test -x /sbin/sysctl; then
12617 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12618 elif test -x /usr/sbin/sysctl; then
12619 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12620 else
12621 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12623 # And add a safety zone
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`
12628 interix*)
12629 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12630 lt_cv_sys_max_cmd_len=196608
12633 osf*)
12634 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12635 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12636 # nice to cause kernel panics so lets avoid the loop below.
12637 # First set a reasonable default.
12638 lt_cv_sys_max_cmd_len=16384
12640 if test -x /sbin/sysconfig; then
12641 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12642 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12643 esac
12646 sco3.2v5*)
12647 lt_cv_sys_max_cmd_len=102400
12649 sysv5* | sco5v6* | sysv4.2uw2*)
12650 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12651 if test -n "$kargmax"; then
12652 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12653 else
12654 lt_cv_sys_max_cmd_len=32768
12658 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12659 if test -n "$lt_cv_sys_max_cmd_len"; then
12660 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12661 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12662 else
12663 # Make teststring a little bigger before we do anything with it.
12664 # a 1K string should be a reasonable start.
12665 for i in 1 2 3 4 5 6 7 8 ; do
12666 teststring=$teststring$teststring
12667 done
12668 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12669 # If test is not a shell built-in, we'll probably end up computing a
12670 # maximum length that is only half of the actual maximum length, but
12671 # we can't tell.
12672 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12673 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12674 test $i != 17 # 1/2 MB should be enough
12676 i=`expr $i + 1`
12677 teststring=$teststring$teststring
12678 done
12679 # Only check the string length outside the loop.
12680 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12681 teststring=
12682 # Add a significant safety factor because C++ compilers can tack on
12683 # massive amounts of additional arguments before passing them to the
12684 # linker. It appears as though 1/2 is a usable value.
12685 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12688 esac
12692 if test -n $lt_cv_sys_max_cmd_len ; then
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12694 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12695 else
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12697 $as_echo "none" >&6; }
12699 max_cmd_len=$lt_cv_sys_max_cmd_len
12706 : ${CP="cp -f"}
12707 : ${MV="mv -f"}
12708 : ${RM="rm -f"}
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12711 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12712 # Try some XSI features
12713 xsi_shell=no
12714 ( _lt_dummy="a/b/c"
12715 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12716 = c,a/b,, \
12717 && eval 'test $(( 1 + 1 )) -eq 2 \
12718 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12719 && xsi_shell=yes
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12721 $as_echo "$xsi_shell" >&6; }
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12725 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12726 lt_shell_append=no
12727 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12728 >/dev/null 2>&1 \
12729 && lt_shell_append=yes
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12731 $as_echo "$lt_shell_append" >&6; }
12734 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12735 lt_unset=unset
12736 else
12737 lt_unset=false
12744 # test EBCDIC or ASCII
12745 case `echo X|tr X '\101'` in
12746 A) # ASCII based system
12747 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12748 lt_SP2NL='tr \040 \012'
12749 lt_NL2SP='tr \015\012 \040\040'
12751 *) # EBCDIC based system
12752 lt_SP2NL='tr \100 \n'
12753 lt_NL2SP='tr \r\n \100\100'
12755 esac
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12766 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12767 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12768 $as_echo_n "(cached) " >&6
12769 else
12770 lt_cv_ld_reload_flag='-r'
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12773 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12774 reload_flag=$lt_cv_ld_reload_flag
12775 case $reload_flag in
12776 "" | " "*) ;;
12777 *) reload_flag=" $reload_flag" ;;
12778 esac
12779 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12780 case $host_os in
12781 darwin*)
12782 if test "$GCC" = yes; then
12783 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12784 else
12785 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12788 esac
12798 if test -n "$ac_tool_prefix"; then
12799 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12800 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12802 $as_echo_n "checking for $ac_word... " >&6; }
12803 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12804 $as_echo_n "(cached) " >&6
12805 else
12806 if test -n "$OBJDUMP"; then
12807 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12808 else
12809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12810 for as_dir in $PATH
12812 IFS=$as_save_IFS
12813 test -z "$as_dir" && as_dir=.
12814 for ac_exec_ext in '' $ac_executable_extensions; do
12815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12816 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12818 break 2
12820 done
12821 done
12822 IFS=$as_save_IFS
12826 OBJDUMP=$ac_cv_prog_OBJDUMP
12827 if test -n "$OBJDUMP"; then
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12829 $as_echo "$OBJDUMP" >&6; }
12830 else
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12832 $as_echo "no" >&6; }
12837 if test -z "$ac_cv_prog_OBJDUMP"; then
12838 ac_ct_OBJDUMP=$OBJDUMP
12839 # Extract the first word of "objdump", so it can be a program name with args.
12840 set dummy objdump; ac_word=$2
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12842 $as_echo_n "checking for $ac_word... " >&6; }
12843 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12844 $as_echo_n "(cached) " >&6
12845 else
12846 if test -n "$ac_ct_OBJDUMP"; then
12847 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12848 else
12849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12850 for as_dir in $PATH
12852 IFS=$as_save_IFS
12853 test -z "$as_dir" && as_dir=.
12854 for ac_exec_ext in '' $ac_executable_extensions; do
12855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12856 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12858 break 2
12860 done
12861 done
12862 IFS=$as_save_IFS
12866 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12867 if test -n "$ac_ct_OBJDUMP"; then
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12869 $as_echo "$ac_ct_OBJDUMP" >&6; }
12870 else
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12872 $as_echo "no" >&6; }
12875 if test "x$ac_ct_OBJDUMP" = x; then
12876 OBJDUMP="false"
12877 else
12878 case $cross_compiling:$ac_tool_warned in
12879 yes:)
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12882 ac_tool_warned=yes ;;
12883 esac
12884 OBJDUMP=$ac_ct_OBJDUMP
12886 else
12887 OBJDUMP="$ac_cv_prog_OBJDUMP"
12890 test -z "$OBJDUMP" && OBJDUMP=objdump
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12901 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12902 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12903 $as_echo_n "(cached) " >&6
12904 else
12905 lt_cv_file_magic_cmd='$MAGIC_CMD'
12906 lt_cv_file_magic_test_file=
12907 lt_cv_deplibs_check_method='unknown'
12908 # Need to set the preceding variable on all platforms that support
12909 # interlibrary dependencies.
12910 # 'none' -- dependencies not supported.
12911 # `unknown' -- same as none, but documents that we really don't know.
12912 # 'pass_all' -- all dependencies passed with no checks.
12913 # 'test_compile' -- check by making test program.
12914 # 'file_magic [[regex]]' -- check by looking for files in library path
12915 # which responds to the $file_magic_cmd with a given extended regex.
12916 # If you have `file' or equivalent on your system and you're not sure
12917 # whether `pass_all' will *always* work, you probably want this one.
12919 case $host_os in
12920 aix[4-9]*)
12921 lt_cv_deplibs_check_method=pass_all
12924 beos*)
12925 lt_cv_deplibs_check_method=pass_all
12928 bsdi[45]*)
12929 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12930 lt_cv_file_magic_cmd='/usr/bin/file -L'
12931 lt_cv_file_magic_test_file=/shlib/libc.so
12934 cygwin*)
12935 # func_win32_libid is a shell function defined in ltmain.sh
12936 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12937 lt_cv_file_magic_cmd='func_win32_libid'
12940 mingw* | pw32*)
12941 # Base MSYS/MinGW do not provide the 'file' command needed by
12942 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12943 # unless we find 'file', for example because we are cross-compiling.
12944 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12945 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12946 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12947 lt_cv_file_magic_cmd='func_win32_libid'
12948 else
12949 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12950 lt_cv_file_magic_cmd='$OBJDUMP -f'
12954 cegcc*)
12955 # use the weaker test based on 'objdump'. See mingw*.
12956 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12957 lt_cv_file_magic_cmd='$OBJDUMP -f'
12960 darwin* | rhapsody*)
12961 lt_cv_deplibs_check_method=pass_all
12964 freebsd* | dragonfly*)
12965 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12966 case $host_cpu in
12967 i*86 )
12968 # Not sure whether the presence of OpenBSD here was a mistake.
12969 # Let's accept both of them until this is cleared up.
12970 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12971 lt_cv_file_magic_cmd=/usr/bin/file
12972 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12974 esac
12975 else
12976 lt_cv_deplibs_check_method=pass_all
12980 gnu*)
12981 lt_cv_deplibs_check_method=pass_all
12984 haiku*)
12985 lt_cv_deplibs_check_method=pass_all
12988 hpux10.20* | hpux11*)
12989 lt_cv_file_magic_cmd=/usr/bin/file
12990 case $host_cpu in
12991 ia64*)
12992 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12993 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12995 hppa*64*)
12996 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]'
12997 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13000 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13001 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13003 esac
13006 interix[3-9]*)
13007 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13008 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13011 irix5* | irix6* | nonstopux*)
13012 case $LD in
13013 *-32|*"-32 ") libmagic=32-bit;;
13014 *-n32|*"-n32 ") libmagic=N32;;
13015 *-64|*"-64 ") libmagic=64-bit;;
13016 *) libmagic=never-match;;
13017 esac
13018 lt_cv_deplibs_check_method=pass_all
13021 # This must be Linux ELF.
13022 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13023 lt_cv_deplibs_check_method=pass_all
13026 netbsd*)
13027 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13029 else
13030 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13034 newos6*)
13035 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13036 lt_cv_file_magic_cmd=/usr/bin/file
13037 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13040 *nto* | *qnx*)
13041 lt_cv_deplibs_check_method=pass_all
13044 openbsd*)
13045 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13046 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13047 else
13048 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13052 osf3* | osf4* | osf5*)
13053 lt_cv_deplibs_check_method=pass_all
13056 rdos*)
13057 lt_cv_deplibs_check_method=pass_all
13060 solaris*)
13061 lt_cv_deplibs_check_method=pass_all
13064 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13065 lt_cv_deplibs_check_method=pass_all
13068 sysv4 | sysv4.3*)
13069 case $host_vendor in
13070 motorola)
13071 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]'
13072 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13074 ncr)
13075 lt_cv_deplibs_check_method=pass_all
13077 sequent)
13078 lt_cv_file_magic_cmd='/bin/file'
13079 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13081 sni)
13082 lt_cv_file_magic_cmd='/bin/file'
13083 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13084 lt_cv_file_magic_test_file=/lib/libc.so
13086 siemens)
13087 lt_cv_deplibs_check_method=pass_all
13090 lt_cv_deplibs_check_method=pass_all
13092 esac
13095 tpf*)
13096 lt_cv_deplibs_check_method=pass_all
13098 esac
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13102 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13103 file_magic_cmd=$lt_cv_file_magic_cmd
13104 deplibs_check_method=$lt_cv_deplibs_check_method
13105 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13118 if test -n "$ac_tool_prefix"; then
13119 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13120 set dummy ${ac_tool_prefix}ar; ac_word=$2
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13122 $as_echo_n "checking for $ac_word... " >&6; }
13123 if test "${ac_cv_prog_AR+set}" = set; then :
13124 $as_echo_n "(cached) " >&6
13125 else
13126 if test -n "$AR"; then
13127 ac_cv_prog_AR="$AR" # Let the user override the test.
13128 else
13129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13130 for as_dir in $PATH
13132 IFS=$as_save_IFS
13133 test -z "$as_dir" && as_dir=.
13134 for ac_exec_ext in '' $ac_executable_extensions; do
13135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13136 ac_cv_prog_AR="${ac_tool_prefix}ar"
13137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13138 break 2
13140 done
13141 done
13142 IFS=$as_save_IFS
13146 AR=$ac_cv_prog_AR
13147 if test -n "$AR"; then
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13149 $as_echo "$AR" >&6; }
13150 else
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13152 $as_echo "no" >&6; }
13157 if test -z "$ac_cv_prog_AR"; then
13158 ac_ct_AR=$AR
13159 # Extract the first word of "ar", so it can be a program name with args.
13160 set dummy ar; ac_word=$2
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13162 $as_echo_n "checking for $ac_word... " >&6; }
13163 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13164 $as_echo_n "(cached) " >&6
13165 else
13166 if test -n "$ac_ct_AR"; then
13167 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13168 else
13169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13170 for as_dir in $PATH
13172 IFS=$as_save_IFS
13173 test -z "$as_dir" && as_dir=.
13174 for ac_exec_ext in '' $ac_executable_extensions; do
13175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13176 ac_cv_prog_ac_ct_AR="ar"
13177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13178 break 2
13180 done
13181 done
13182 IFS=$as_save_IFS
13186 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13187 if test -n "$ac_ct_AR"; then
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13189 $as_echo "$ac_ct_AR" >&6; }
13190 else
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13192 $as_echo "no" >&6; }
13195 if test "x$ac_ct_AR" = x; then
13196 AR="false"
13197 else
13198 case $cross_compiling:$ac_tool_warned in
13199 yes:)
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13202 ac_tool_warned=yes ;;
13203 esac
13204 AR=$ac_ct_AR
13206 else
13207 AR="$ac_cv_prog_AR"
13210 test -z "$AR" && AR=ar
13211 test -z "$AR_FLAGS" && AR_FLAGS=cru
13223 if test -n "$ac_tool_prefix"; then
13224 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13225 set dummy ${ac_tool_prefix}strip; ac_word=$2
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13227 $as_echo_n "checking for $ac_word... " >&6; }
13228 if test "${ac_cv_prog_STRIP+set}" = set; then :
13229 $as_echo_n "(cached) " >&6
13230 else
13231 if test -n "$STRIP"; then
13232 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13233 else
13234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13235 for as_dir in $PATH
13237 IFS=$as_save_IFS
13238 test -z "$as_dir" && as_dir=.
13239 for ac_exec_ext in '' $ac_executable_extensions; do
13240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13241 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13243 break 2
13245 done
13246 done
13247 IFS=$as_save_IFS
13251 STRIP=$ac_cv_prog_STRIP
13252 if test -n "$STRIP"; then
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13254 $as_echo "$STRIP" >&6; }
13255 else
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13257 $as_echo "no" >&6; }
13262 if test -z "$ac_cv_prog_STRIP"; then
13263 ac_ct_STRIP=$STRIP
13264 # Extract the first word of "strip", so it can be a program name with args.
13265 set dummy strip; ac_word=$2
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13267 $as_echo_n "checking for $ac_word... " >&6; }
13268 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13269 $as_echo_n "(cached) " >&6
13270 else
13271 if test -n "$ac_ct_STRIP"; then
13272 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13273 else
13274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275 for as_dir in $PATH
13277 IFS=$as_save_IFS
13278 test -z "$as_dir" && as_dir=.
13279 for ac_exec_ext in '' $ac_executable_extensions; do
13280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13281 ac_cv_prog_ac_ct_STRIP="strip"
13282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13283 break 2
13285 done
13286 done
13287 IFS=$as_save_IFS
13291 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13292 if test -n "$ac_ct_STRIP"; then
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13294 $as_echo "$ac_ct_STRIP" >&6; }
13295 else
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13297 $as_echo "no" >&6; }
13300 if test "x$ac_ct_STRIP" = x; then
13301 STRIP=":"
13302 else
13303 case $cross_compiling:$ac_tool_warned in
13304 yes:)
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13307 ac_tool_warned=yes ;;
13308 esac
13309 STRIP=$ac_ct_STRIP
13311 else
13312 STRIP="$ac_cv_prog_STRIP"
13315 test -z "$STRIP" && STRIP=:
13322 if test -n "$ac_tool_prefix"; then
13323 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13324 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13326 $as_echo_n "checking for $ac_word... " >&6; }
13327 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13328 $as_echo_n "(cached) " >&6
13329 else
13330 if test -n "$RANLIB"; then
13331 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13332 else
13333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13334 for as_dir in $PATH
13336 IFS=$as_save_IFS
13337 test -z "$as_dir" && as_dir=.
13338 for ac_exec_ext in '' $ac_executable_extensions; do
13339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13340 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13342 break 2
13344 done
13345 done
13346 IFS=$as_save_IFS
13350 RANLIB=$ac_cv_prog_RANLIB
13351 if test -n "$RANLIB"; then
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13353 $as_echo "$RANLIB" >&6; }
13354 else
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13356 $as_echo "no" >&6; }
13361 if test -z "$ac_cv_prog_RANLIB"; then
13362 ac_ct_RANLIB=$RANLIB
13363 # Extract the first word of "ranlib", so it can be a program name with args.
13364 set dummy ranlib; ac_word=$2
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13366 $as_echo_n "checking for $ac_word... " >&6; }
13367 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13368 $as_echo_n "(cached) " >&6
13369 else
13370 if test -n "$ac_ct_RANLIB"; then
13371 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13372 else
13373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13374 for as_dir in $PATH
13376 IFS=$as_save_IFS
13377 test -z "$as_dir" && as_dir=.
13378 for ac_exec_ext in '' $ac_executable_extensions; do
13379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13380 ac_cv_prog_ac_ct_RANLIB="ranlib"
13381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13382 break 2
13384 done
13385 done
13386 IFS=$as_save_IFS
13390 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13391 if test -n "$ac_ct_RANLIB"; then
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13393 $as_echo "$ac_ct_RANLIB" >&6; }
13394 else
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13396 $as_echo "no" >&6; }
13399 if test "x$ac_ct_RANLIB" = x; then
13400 RANLIB=":"
13401 else
13402 case $cross_compiling:$ac_tool_warned in
13403 yes:)
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13406 ac_tool_warned=yes ;;
13407 esac
13408 RANLIB=$ac_ct_RANLIB
13410 else
13411 RANLIB="$ac_cv_prog_RANLIB"
13414 test -z "$RANLIB" && RANLIB=:
13421 # Determine commands to create old-style static archives.
13422 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13423 old_postinstall_cmds='chmod 644 $oldlib'
13424 old_postuninstall_cmds=
13426 if test -n "$RANLIB"; then
13427 case $host_os in
13428 openbsd*)
13429 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13432 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13434 esac
13435 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13438 case $host_os in
13439 darwin*)
13440 lock_old_archive_extraction=yes ;;
13442 lock_old_archive_extraction=no ;;
13443 esac
13483 # If no C compiler was specified, use CC.
13484 LTCC=${LTCC-"$CC"}
13486 # If no C compiler flags were specified, use CFLAGS.
13487 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13489 # Allow CC to be a program name with arguments.
13490 compiler=$CC
13493 # Check for command to grab the raw symbol name followed by C symbol from nm.
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13495 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13496 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13497 $as_echo_n "(cached) " >&6
13498 else
13500 # These are sane defaults that work on at least a few old systems.
13501 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13503 # Character class describing NM global symbol codes.
13504 symcode='[BCDEGRST]'
13506 # Regexp to match symbols that can be accessed directly from C.
13507 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13509 # Define system-specific variables.
13510 case $host_os in
13511 aix*)
13512 symcode='[BCDT]'
13514 cygwin* | mingw* | pw32* | cegcc*)
13515 symcode='[ABCDGISTW]'
13517 hpux*)
13518 if test "$host_cpu" = ia64; then
13519 symcode='[ABCDEGRST]'
13522 irix* | nonstopux*)
13523 symcode='[BCDEGRST]'
13525 osf*)
13526 symcode='[BCDEGQRST]'
13528 solaris*)
13529 symcode='[BDRT]'
13531 sco3.2v5*)
13532 symcode='[DT]'
13534 sysv4.2uw2*)
13535 symcode='[DT]'
13537 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13538 symcode='[ABDT]'
13540 sysv4)
13541 symcode='[DFNSTU]'
13543 esac
13545 # If we're using GNU nm, then use its standard symbol codes.
13546 case `$NM -V 2>&1` in
13547 *GNU* | *'with BFD'*)
13548 symcode='[ABCDGIRSTW]' ;;
13549 esac
13551 # Transform an extracted symbol line into a proper C declaration.
13552 # Some systems (esp. on ia64) link data and code symbols differently,
13553 # so use this general approach.
13554 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13556 # Transform an extracted symbol line into symbol name and symbol address
13557 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13558 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'"
13560 # Handle CRLF in mingw tool chain
13561 opt_cr=
13562 case $build_os in
13563 mingw*)
13564 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13566 esac
13568 # Try without a prefix underscore, then with it.
13569 for ac_symprfx in "" "_"; do
13571 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13572 symxfrm="\\1 $ac_symprfx\\2 \\2"
13574 # Write the raw and C identifiers.
13575 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13576 # Fake it for dumpbin and say T for any non-static function
13577 # and D for any global variable.
13578 # Also find C++ and __fastcall symbols from MSVC++,
13579 # which start with @ or ?.
13580 lt_cv_sys_global_symbol_pipe="$AWK '"\
13581 " {last_section=section; section=\$ 3};"\
13582 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13583 " \$ 0!~/External *\|/{next};"\
13584 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13585 " {if(hide[section]) next};"\
13586 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13587 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13588 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13589 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13590 " ' prfx=^$ac_symprfx"
13591 else
13592 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13595 # Check to see that the pipe works correctly.
13596 pipe_works=no
13598 rm -f conftest*
13599 cat > conftest.$ac_ext <<_LT_EOF
13600 #ifdef __cplusplus
13601 extern "C" {
13602 #endif
13603 char nm_test_var;
13604 void nm_test_func(void);
13605 void nm_test_func(void){}
13606 #ifdef __cplusplus
13608 #endif
13609 int main(){nm_test_var='a';nm_test_func();return(0);}
13610 _LT_EOF
13612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13613 (eval $ac_compile) 2>&5
13614 ac_status=$?
13615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13616 test $ac_status = 0; }; then
13617 # Now try to grab the symbols.
13618 nlist=conftest.nm
13619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13620 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13621 ac_status=$?
13622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13623 test $ac_status = 0; } && test -s "$nlist"; then
13624 # Try sorting and uniquifying the output.
13625 if sort "$nlist" | uniq > "$nlist"T; then
13626 mv -f "$nlist"T "$nlist"
13627 else
13628 rm -f "$nlist"T
13631 # Make sure that we snagged all the symbols we need.
13632 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13633 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13634 cat <<_LT_EOF > conftest.$ac_ext
13635 #ifdef __cplusplus
13636 extern "C" {
13637 #endif
13639 _LT_EOF
13640 # Now generate the symbol file.
13641 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13643 cat <<_LT_EOF >> conftest.$ac_ext
13645 /* The mapping between symbol names and symbols. */
13646 const struct {
13647 const char *name;
13648 void *address;
13650 lt__PROGRAM__LTX_preloaded_symbols[] =
13652 { "@PROGRAM@", (void *) 0 },
13653 _LT_EOF
13654 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13655 cat <<\_LT_EOF >> conftest.$ac_ext
13656 {0, (void *) 0}
13659 /* This works around a problem in FreeBSD linker */
13660 #ifdef FREEBSD_WORKAROUND
13661 static const void *lt_preloaded_setup() {
13662 return lt__PROGRAM__LTX_preloaded_symbols;
13664 #endif
13666 #ifdef __cplusplus
13668 #endif
13669 _LT_EOF
13670 # Now try linking the two files.
13671 mv conftest.$ac_objext conftstm.$ac_objext
13672 lt_save_LIBS="$LIBS"
13673 lt_save_CFLAGS="$CFLAGS"
13674 LIBS="conftstm.$ac_objext"
13675 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13677 (eval $ac_link) 2>&5
13678 ac_status=$?
13679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13680 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13681 pipe_works=yes
13683 LIBS="$lt_save_LIBS"
13684 CFLAGS="$lt_save_CFLAGS"
13685 else
13686 echo "cannot find nm_test_func in $nlist" >&5
13688 else
13689 echo "cannot find nm_test_var in $nlist" >&5
13691 else
13692 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13694 else
13695 echo "$progname: failed program was:" >&5
13696 cat conftest.$ac_ext >&5
13698 rm -rf conftest* conftst*
13700 # Do not use the global_symbol_pipe unless it works.
13701 if test "$pipe_works" = yes; then
13702 break
13703 else
13704 lt_cv_sys_global_symbol_pipe=
13706 done
13710 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13711 lt_cv_sys_global_symbol_to_cdecl=
13713 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13715 $as_echo "failed" >&6; }
13716 else
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13718 $as_echo "ok" >&6; }
13742 # Check whether --enable-libtool-lock was given.
13743 if test "${enable_libtool_lock+set}" = set; then :
13744 enableval=$enable_libtool_lock;
13747 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13749 # Some flags need to be propagated to the compiler or linker for good
13750 # libtool support.
13751 case $host in
13752 ia64-*-hpux*)
13753 # Find out which ABI we are using.
13754 echo 'int i;' > conftest.$ac_ext
13755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13756 (eval $ac_compile) 2>&5
13757 ac_status=$?
13758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13759 test $ac_status = 0; }; then
13760 case `/usr/bin/file conftest.$ac_objext` in
13761 *ELF-32*)
13762 HPUX_IA64_MODE="32"
13764 *ELF-64*)
13765 HPUX_IA64_MODE="64"
13767 esac
13769 rm -rf conftest*
13771 *-*-irix6*)
13772 # Find out which ABI we are using.
13773 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13775 (eval $ac_compile) 2>&5
13776 ac_status=$?
13777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13778 test $ac_status = 0; }; then
13779 if test "$lt_cv_prog_gnu_ld" = yes; then
13780 case `/usr/bin/file conftest.$ac_objext` in
13781 *32-bit*)
13782 LD="${LD-ld} -melf32bsmip"
13784 *N32*)
13785 LD="${LD-ld} -melf32bmipn32"
13787 *64-bit*)
13788 LD="${LD-ld} -melf64bmip"
13790 esac
13791 else
13792 case `/usr/bin/file conftest.$ac_objext` in
13793 *32-bit*)
13794 LD="${LD-ld} -32"
13796 *N32*)
13797 LD="${LD-ld} -n32"
13799 *64-bit*)
13800 LD="${LD-ld} -64"
13802 esac
13805 rm -rf conftest*
13808 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13809 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13810 # Find out which ABI we are using.
13811 echo 'int i;' > conftest.$ac_ext
13812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13813 (eval $ac_compile) 2>&5
13814 ac_status=$?
13815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13816 test $ac_status = 0; }; then
13817 case `/usr/bin/file conftest.o` in
13818 *32-bit*)
13819 case $host in
13820 x86_64-*kfreebsd*-gnu)
13821 LD="${LD-ld} -m elf_i386_fbsd"
13823 x86_64-*linux*)
13824 case `/usr/bin/file conftest.o` in
13825 *x86-64*)
13826 LD="${LD-ld} -m elf32_x86_64"
13829 LD="${LD-ld} -m elf_i386"
13831 esac
13833 powerpc64le-*linux*)
13834 LD="${LD-ld} -m elf32lppclinux"
13836 powerpc64-*linux*)
13837 LD="${LD-ld} -m elf32ppclinux"
13839 s390x-*linux*)
13840 LD="${LD-ld} -m elf_s390"
13842 sparc64-*linux*)
13843 LD="${LD-ld} -m elf32_sparc"
13845 esac
13847 *64-bit*)
13848 case $host in
13849 x86_64-*kfreebsd*-gnu)
13850 LD="${LD-ld} -m elf_x86_64_fbsd"
13852 x86_64-*linux*)
13853 LD="${LD-ld} -m elf_x86_64"
13855 powerpcle-*linux*)
13856 LD="${LD-ld} -m elf64lppc"
13858 powerpc-*linux*)
13859 LD="${LD-ld} -m elf64ppc"
13861 s390*-*linux*|s390*-*tpf*)
13862 LD="${LD-ld} -m elf64_s390"
13864 sparc*-*linux*)
13865 LD="${LD-ld} -m elf64_sparc"
13867 esac
13869 esac
13871 rm -rf conftest*
13874 *-*-sco3.2v5*)
13875 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13876 SAVE_CFLAGS="$CFLAGS"
13877 CFLAGS="$CFLAGS -belf"
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13879 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13880 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13881 $as_echo_n "(cached) " >&6
13882 else
13883 ac_ext=c
13884 ac_cpp='$CPP $CPPFLAGS'
13885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13890 /* end confdefs.h. */
13893 main ()
13897 return 0;
13899 _ACEOF
13900 if ac_fn_c_try_link "$LINENO"; then :
13901 lt_cv_cc_needs_belf=yes
13902 else
13903 lt_cv_cc_needs_belf=no
13905 rm -f core conftest.err conftest.$ac_objext \
13906 conftest$ac_exeext conftest.$ac_ext
13907 ac_ext=c
13908 ac_cpp='$CPP $CPPFLAGS'
13909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13915 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13916 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13917 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13918 CFLAGS="$SAVE_CFLAGS"
13921 sparc*-*solaris*)
13922 # Find out which ABI we are using.
13923 echo 'int i;' > conftest.$ac_ext
13924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13925 (eval $ac_compile) 2>&5
13926 ac_status=$?
13927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13928 test $ac_status = 0; }; then
13929 case `/usr/bin/file conftest.o` in
13930 *64-bit*)
13931 case $lt_cv_prog_gnu_ld in
13932 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13934 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13935 LD="${LD-ld} -64"
13938 esac
13940 esac
13942 rm -rf conftest*
13944 esac
13946 need_locks="$enable_libtool_lock"
13949 case $host_os in
13950 rhapsody* | darwin*)
13951 if test -n "$ac_tool_prefix"; then
13952 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13953 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13955 $as_echo_n "checking for $ac_word... " >&6; }
13956 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13957 $as_echo_n "(cached) " >&6
13958 else
13959 if test -n "$DSYMUTIL"; then
13960 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13961 else
13962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13963 for as_dir in $PATH
13965 IFS=$as_save_IFS
13966 test -z "$as_dir" && as_dir=.
13967 for ac_exec_ext in '' $ac_executable_extensions; do
13968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13969 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13971 break 2
13973 done
13974 done
13975 IFS=$as_save_IFS
13979 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13980 if test -n "$DSYMUTIL"; then
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13982 $as_echo "$DSYMUTIL" >&6; }
13983 else
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13985 $as_echo "no" >&6; }
13990 if test -z "$ac_cv_prog_DSYMUTIL"; then
13991 ac_ct_DSYMUTIL=$DSYMUTIL
13992 # Extract the first word of "dsymutil", so it can be a program name with args.
13993 set dummy dsymutil; ac_word=$2
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13995 $as_echo_n "checking for $ac_word... " >&6; }
13996 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13997 $as_echo_n "(cached) " >&6
13998 else
13999 if test -n "$ac_ct_DSYMUTIL"; then
14000 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14001 else
14002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14003 for as_dir in $PATH
14005 IFS=$as_save_IFS
14006 test -z "$as_dir" && as_dir=.
14007 for ac_exec_ext in '' $ac_executable_extensions; do
14008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14009 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14011 break 2
14013 done
14014 done
14015 IFS=$as_save_IFS
14019 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14020 if test -n "$ac_ct_DSYMUTIL"; then
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14022 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14023 else
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14025 $as_echo "no" >&6; }
14028 if test "x$ac_ct_DSYMUTIL" = x; then
14029 DSYMUTIL=":"
14030 else
14031 case $cross_compiling:$ac_tool_warned in
14032 yes:)
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14035 ac_tool_warned=yes ;;
14036 esac
14037 DSYMUTIL=$ac_ct_DSYMUTIL
14039 else
14040 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14043 if test -n "$ac_tool_prefix"; then
14044 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14045 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14047 $as_echo_n "checking for $ac_word... " >&6; }
14048 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14049 $as_echo_n "(cached) " >&6
14050 else
14051 if test -n "$NMEDIT"; then
14052 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14053 else
14054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14055 for as_dir in $PATH
14057 IFS=$as_save_IFS
14058 test -z "$as_dir" && as_dir=.
14059 for ac_exec_ext in '' $ac_executable_extensions; do
14060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14061 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14063 break 2
14065 done
14066 done
14067 IFS=$as_save_IFS
14071 NMEDIT=$ac_cv_prog_NMEDIT
14072 if test -n "$NMEDIT"; then
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14074 $as_echo "$NMEDIT" >&6; }
14075 else
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14077 $as_echo "no" >&6; }
14082 if test -z "$ac_cv_prog_NMEDIT"; then
14083 ac_ct_NMEDIT=$NMEDIT
14084 # Extract the first word of "nmedit", so it can be a program name with args.
14085 set dummy nmedit; ac_word=$2
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14087 $as_echo_n "checking for $ac_word... " >&6; }
14088 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14089 $as_echo_n "(cached) " >&6
14090 else
14091 if test -n "$ac_ct_NMEDIT"; then
14092 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14093 else
14094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14095 for as_dir in $PATH
14097 IFS=$as_save_IFS
14098 test -z "$as_dir" && as_dir=.
14099 for ac_exec_ext in '' $ac_executable_extensions; do
14100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14101 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14103 break 2
14105 done
14106 done
14107 IFS=$as_save_IFS
14111 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14112 if test -n "$ac_ct_NMEDIT"; then
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14114 $as_echo "$ac_ct_NMEDIT" >&6; }
14115 else
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14117 $as_echo "no" >&6; }
14120 if test "x$ac_ct_NMEDIT" = x; then
14121 NMEDIT=":"
14122 else
14123 case $cross_compiling:$ac_tool_warned in
14124 yes:)
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14127 ac_tool_warned=yes ;;
14128 esac
14129 NMEDIT=$ac_ct_NMEDIT
14131 else
14132 NMEDIT="$ac_cv_prog_NMEDIT"
14135 if test -n "$ac_tool_prefix"; then
14136 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14137 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14139 $as_echo_n "checking for $ac_word... " >&6; }
14140 if test "${ac_cv_prog_LIPO+set}" = set; then :
14141 $as_echo_n "(cached) " >&6
14142 else
14143 if test -n "$LIPO"; then
14144 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14145 else
14146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14147 for as_dir in $PATH
14149 IFS=$as_save_IFS
14150 test -z "$as_dir" && as_dir=.
14151 for ac_exec_ext in '' $ac_executable_extensions; do
14152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14153 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14155 break 2
14157 done
14158 done
14159 IFS=$as_save_IFS
14163 LIPO=$ac_cv_prog_LIPO
14164 if test -n "$LIPO"; then
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14166 $as_echo "$LIPO" >&6; }
14167 else
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14169 $as_echo "no" >&6; }
14174 if test -z "$ac_cv_prog_LIPO"; then
14175 ac_ct_LIPO=$LIPO
14176 # Extract the first word of "lipo", so it can be a program name with args.
14177 set dummy lipo; ac_word=$2
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14179 $as_echo_n "checking for $ac_word... " >&6; }
14180 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14181 $as_echo_n "(cached) " >&6
14182 else
14183 if test -n "$ac_ct_LIPO"; then
14184 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14185 else
14186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14187 for as_dir in $PATH
14189 IFS=$as_save_IFS
14190 test -z "$as_dir" && as_dir=.
14191 for ac_exec_ext in '' $ac_executable_extensions; do
14192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14193 ac_cv_prog_ac_ct_LIPO="lipo"
14194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14195 break 2
14197 done
14198 done
14199 IFS=$as_save_IFS
14203 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14204 if test -n "$ac_ct_LIPO"; then
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14206 $as_echo "$ac_ct_LIPO" >&6; }
14207 else
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14209 $as_echo "no" >&6; }
14212 if test "x$ac_ct_LIPO" = x; then
14213 LIPO=":"
14214 else
14215 case $cross_compiling:$ac_tool_warned in
14216 yes:)
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14219 ac_tool_warned=yes ;;
14220 esac
14221 LIPO=$ac_ct_LIPO
14223 else
14224 LIPO="$ac_cv_prog_LIPO"
14227 if test -n "$ac_tool_prefix"; then
14228 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14229 set dummy ${ac_tool_prefix}otool; ac_word=$2
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14231 $as_echo_n "checking for $ac_word... " >&6; }
14232 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14233 $as_echo_n "(cached) " >&6
14234 else
14235 if test -n "$OTOOL"; then
14236 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14237 else
14238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14239 for as_dir in $PATH
14241 IFS=$as_save_IFS
14242 test -z "$as_dir" && as_dir=.
14243 for ac_exec_ext in '' $ac_executable_extensions; do
14244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14245 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14247 break 2
14249 done
14250 done
14251 IFS=$as_save_IFS
14255 OTOOL=$ac_cv_prog_OTOOL
14256 if test -n "$OTOOL"; then
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14258 $as_echo "$OTOOL" >&6; }
14259 else
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14261 $as_echo "no" >&6; }
14266 if test -z "$ac_cv_prog_OTOOL"; then
14267 ac_ct_OTOOL=$OTOOL
14268 # Extract the first word of "otool", so it can be a program name with args.
14269 set dummy otool; ac_word=$2
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14271 $as_echo_n "checking for $ac_word... " >&6; }
14272 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14273 $as_echo_n "(cached) " >&6
14274 else
14275 if test -n "$ac_ct_OTOOL"; then
14276 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14277 else
14278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14279 for as_dir in $PATH
14281 IFS=$as_save_IFS
14282 test -z "$as_dir" && as_dir=.
14283 for ac_exec_ext in '' $ac_executable_extensions; do
14284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14285 ac_cv_prog_ac_ct_OTOOL="otool"
14286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14287 break 2
14289 done
14290 done
14291 IFS=$as_save_IFS
14295 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14296 if test -n "$ac_ct_OTOOL"; then
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14298 $as_echo "$ac_ct_OTOOL" >&6; }
14299 else
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14301 $as_echo "no" >&6; }
14304 if test "x$ac_ct_OTOOL" = x; then
14305 OTOOL=":"
14306 else
14307 case $cross_compiling:$ac_tool_warned in
14308 yes:)
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14311 ac_tool_warned=yes ;;
14312 esac
14313 OTOOL=$ac_ct_OTOOL
14315 else
14316 OTOOL="$ac_cv_prog_OTOOL"
14319 if test -n "$ac_tool_prefix"; then
14320 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14321 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14323 $as_echo_n "checking for $ac_word... " >&6; }
14324 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14325 $as_echo_n "(cached) " >&6
14326 else
14327 if test -n "$OTOOL64"; then
14328 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14329 else
14330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14331 for as_dir in $PATH
14333 IFS=$as_save_IFS
14334 test -z "$as_dir" && as_dir=.
14335 for ac_exec_ext in '' $ac_executable_extensions; do
14336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14337 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14339 break 2
14341 done
14342 done
14343 IFS=$as_save_IFS
14347 OTOOL64=$ac_cv_prog_OTOOL64
14348 if test -n "$OTOOL64"; then
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14350 $as_echo "$OTOOL64" >&6; }
14351 else
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14353 $as_echo "no" >&6; }
14358 if test -z "$ac_cv_prog_OTOOL64"; then
14359 ac_ct_OTOOL64=$OTOOL64
14360 # Extract the first word of "otool64", so it can be a program name with args.
14361 set dummy otool64; ac_word=$2
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14363 $as_echo_n "checking for $ac_word... " >&6; }
14364 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14365 $as_echo_n "(cached) " >&6
14366 else
14367 if test -n "$ac_ct_OTOOL64"; then
14368 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14369 else
14370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14371 for as_dir in $PATH
14373 IFS=$as_save_IFS
14374 test -z "$as_dir" && as_dir=.
14375 for ac_exec_ext in '' $ac_executable_extensions; do
14376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14377 ac_cv_prog_ac_ct_OTOOL64="otool64"
14378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14379 break 2
14381 done
14382 done
14383 IFS=$as_save_IFS
14387 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14388 if test -n "$ac_ct_OTOOL64"; then
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14390 $as_echo "$ac_ct_OTOOL64" >&6; }
14391 else
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14393 $as_echo "no" >&6; }
14396 if test "x$ac_ct_OTOOL64" = x; then
14397 OTOOL64=":"
14398 else
14399 case $cross_compiling:$ac_tool_warned in
14400 yes:)
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14403 ac_tool_warned=yes ;;
14404 esac
14405 OTOOL64=$ac_ct_OTOOL64
14407 else
14408 OTOOL64="$ac_cv_prog_OTOOL64"
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14438 $as_echo_n "checking for -single_module linker flag... " >&6; }
14439 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14440 $as_echo_n "(cached) " >&6
14441 else
14442 lt_cv_apple_cc_single_mod=no
14443 if test -z "${LT_MULTI_MODULE}"; then
14444 # By default we will add the -single_module flag. You can override
14445 # by either setting the environment variable LT_MULTI_MODULE
14446 # non-empty at configure time, or by adding -multi_module to the
14447 # link flags.
14448 rm -rf libconftest.dylib*
14449 echo "int foo(void){return 1;}" > conftest.c
14450 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14451 -dynamiclib -Wl,-single_module conftest.c" >&5
14452 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14453 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14454 _lt_result=$?
14455 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14456 lt_cv_apple_cc_single_mod=yes
14457 else
14458 cat conftest.err >&5
14460 rm -rf libconftest.dylib*
14461 rm -f conftest.*
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14465 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14467 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14468 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14469 $as_echo_n "(cached) " >&6
14470 else
14471 lt_cv_ld_exported_symbols_list=no
14472 save_LDFLAGS=$LDFLAGS
14473 echo "_main" > conftest.sym
14474 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14476 /* end confdefs.h. */
14479 main ()
14483 return 0;
14485 _ACEOF
14486 if ac_fn_c_try_link "$LINENO"; then :
14487 lt_cv_ld_exported_symbols_list=yes
14488 else
14489 lt_cv_ld_exported_symbols_list=no
14491 rm -f core conftest.err conftest.$ac_objext \
14492 conftest$ac_exeext conftest.$ac_ext
14493 LDFLAGS="$save_LDFLAGS"
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14497 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14499 $as_echo_n "checking for -force_load linker flag... " >&6; }
14500 if test "${lt_cv_ld_force_load+set}" = set; then :
14501 $as_echo_n "(cached) " >&6
14502 else
14503 lt_cv_ld_force_load=no
14504 cat > conftest.c << _LT_EOF
14505 int forced_loaded() { return 2;}
14506 _LT_EOF
14507 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14508 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14509 echo "$AR cru libconftest.a conftest.o" >&5
14510 $AR cru libconftest.a conftest.o 2>&5
14511 cat > conftest.c << _LT_EOF
14512 int main() { return 0;}
14513 _LT_EOF
14514 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14515 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14516 _lt_result=$?
14517 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14518 lt_cv_ld_force_load=yes
14519 else
14520 cat conftest.err >&5
14522 rm -f conftest.err libconftest.a conftest conftest.c
14523 rm -rf conftest.dSYM
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14527 $as_echo "$lt_cv_ld_force_load" >&6; }
14528 case $host_os in
14529 rhapsody* | darwin1.[012])
14530 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14531 darwin1.*)
14532 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14533 darwin*) # darwin 5.x on
14534 # if running on 10.5 or later, the deployment target defaults
14535 # to the OS version, if on x86, and 10.4, the deployment
14536 # target defaults to 10.4. Don't you love it?
14537 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14538 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14539 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14540 10.[012]*)
14541 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14542 10.*)
14543 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14544 esac
14546 esac
14547 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14548 _lt_dar_single_mod='$single_module'
14550 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14551 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14552 else
14553 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14555 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14556 _lt_dsymutil='~$DSYMUTIL $lib || :'
14557 else
14558 _lt_dsymutil=
14561 esac
14563 for ac_header in dlfcn.h
14564 do :
14565 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14566 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14567 cat >>confdefs.h <<_ACEOF
14568 #define HAVE_DLFCN_H 1
14569 _ACEOF
14572 done
14578 # Set options
14582 enable_dlopen=no
14585 enable_win32_dll=no
14588 # Check whether --enable-shared was given.
14589 if test "${enable_shared+set}" = set; then :
14590 enableval=$enable_shared; p=${PACKAGE-default}
14591 case $enableval in
14592 yes) enable_shared=yes ;;
14593 no) enable_shared=no ;;
14595 enable_shared=no
14596 # Look at the argument we got. We use all the common list separators.
14597 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14598 for pkg in $enableval; do
14599 IFS="$lt_save_ifs"
14600 if test "X$pkg" = "X$p"; then
14601 enable_shared=yes
14603 done
14604 IFS="$lt_save_ifs"
14606 esac
14607 else
14608 enable_shared=yes
14619 # Check whether --enable-static was given.
14620 if test "${enable_static+set}" = set; then :
14621 enableval=$enable_static; p=${PACKAGE-default}
14622 case $enableval in
14623 yes) enable_static=yes ;;
14624 no) enable_static=no ;;
14626 enable_static=no
14627 # Look at the argument we got. We use all the common list separators.
14628 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14629 for pkg in $enableval; do
14630 IFS="$lt_save_ifs"
14631 if test "X$pkg" = "X$p"; then
14632 enable_static=yes
14634 done
14635 IFS="$lt_save_ifs"
14637 esac
14638 else
14639 enable_static=yes
14651 # Check whether --with-pic was given.
14652 if test "${with_pic+set}" = set; then :
14653 withval=$with_pic; pic_mode="$withval"
14654 else
14655 pic_mode=default
14659 test -z "$pic_mode" && pic_mode=default
14667 # Check whether --enable-fast-install was given.
14668 if test "${enable_fast_install+set}" = set; then :
14669 enableval=$enable_fast_install; p=${PACKAGE-default}
14670 case $enableval in
14671 yes) enable_fast_install=yes ;;
14672 no) enable_fast_install=no ;;
14674 enable_fast_install=no
14675 # Look at the argument we got. We use all the common list separators.
14676 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14677 for pkg in $enableval; do
14678 IFS="$lt_save_ifs"
14679 if test "X$pkg" = "X$p"; then
14680 enable_fast_install=yes
14682 done
14683 IFS="$lt_save_ifs"
14685 esac
14686 else
14687 enable_fast_install=yes
14700 # This can be used to rebuild libtool when needed
14701 LIBTOOL_DEPS="$ltmain"
14703 # Always use our own libtool.
14704 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14731 test -z "$LN_S" && LN_S="ln -s"
14746 if test -n "${ZSH_VERSION+set}" ; then
14747 setopt NO_GLOB_SUBST
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14751 $as_echo_n "checking for objdir... " >&6; }
14752 if test "${lt_cv_objdir+set}" = set; then :
14753 $as_echo_n "(cached) " >&6
14754 else
14755 rm -f .libs 2>/dev/null
14756 mkdir .libs 2>/dev/null
14757 if test -d .libs; then
14758 lt_cv_objdir=.libs
14759 else
14760 # MS-DOS does not allow filenames that begin with a dot.
14761 lt_cv_objdir=_libs
14763 rmdir .libs 2>/dev/null
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14766 $as_echo "$lt_cv_objdir" >&6; }
14767 objdir=$lt_cv_objdir
14773 cat >>confdefs.h <<_ACEOF
14774 #define LT_OBJDIR "$lt_cv_objdir/"
14775 _ACEOF
14780 case $host_os in
14781 aix3*)
14782 # AIX sometimes has problems with the GCC collect2 program. For some
14783 # reason, if we set the COLLECT_NAMES environment variable, the problems
14784 # vanish in a puff of smoke.
14785 if test "X${COLLECT_NAMES+set}" != Xset; then
14786 COLLECT_NAMES=
14787 export COLLECT_NAMES
14790 esac
14792 # Global variables:
14793 ofile=libtool
14794 can_build_shared=yes
14796 # All known linkers require a `.a' archive for static linking (except MSVC,
14797 # which needs '.lib').
14798 libext=a
14800 with_gnu_ld="$lt_cv_prog_gnu_ld"
14802 old_CC="$CC"
14803 old_CFLAGS="$CFLAGS"
14805 # Set sane defaults for various variables
14806 test -z "$CC" && CC=cc
14807 test -z "$LTCC" && LTCC=$CC
14808 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14809 test -z "$LD" && LD=ld
14810 test -z "$ac_objext" && ac_objext=o
14812 for cc_temp in $compiler""; do
14813 case $cc_temp in
14814 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14815 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14816 \-*) ;;
14817 *) break;;
14818 esac
14819 done
14820 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14823 # Only perform the check for file, if the check method requires it
14824 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14825 case $deplibs_check_method in
14826 file_magic*)
14827 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14829 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14830 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14831 $as_echo_n "(cached) " >&6
14832 else
14833 case $MAGIC_CMD in
14834 [\\/*] | ?:[\\/]*)
14835 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14838 lt_save_MAGIC_CMD="$MAGIC_CMD"
14839 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14840 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14841 for ac_dir in $ac_dummy; do
14842 IFS="$lt_save_ifs"
14843 test -z "$ac_dir" && ac_dir=.
14844 if test -f $ac_dir/${ac_tool_prefix}file; then
14845 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14846 if test -n "$file_magic_test_file"; then
14847 case $deplibs_check_method in
14848 "file_magic "*)
14849 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14850 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14851 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14852 $EGREP "$file_magic_regex" > /dev/null; then
14854 else
14855 cat <<_LT_EOF 1>&2
14857 *** Warning: the command libtool uses to detect shared libraries,
14858 *** $file_magic_cmd, produces output that libtool cannot recognize.
14859 *** The result is that libtool may fail to recognize shared libraries
14860 *** as such. This will affect the creation of libtool libraries that
14861 *** depend on shared libraries, but programs linked with such libtool
14862 *** libraries will work regardless of this problem. Nevertheless, you
14863 *** may want to report the problem to your system manager and/or to
14864 *** bug-libtool@gnu.org
14866 _LT_EOF
14867 fi ;;
14868 esac
14870 break
14872 done
14873 IFS="$lt_save_ifs"
14874 MAGIC_CMD="$lt_save_MAGIC_CMD"
14876 esac
14879 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14880 if test -n "$MAGIC_CMD"; then
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14882 $as_echo "$MAGIC_CMD" >&6; }
14883 else
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14885 $as_echo "no" >&6; }
14892 if test -z "$lt_cv_path_MAGIC_CMD"; then
14893 if test -n "$ac_tool_prefix"; then
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14895 $as_echo_n "checking for file... " >&6; }
14896 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14897 $as_echo_n "(cached) " >&6
14898 else
14899 case $MAGIC_CMD in
14900 [\\/*] | ?:[\\/]*)
14901 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14904 lt_save_MAGIC_CMD="$MAGIC_CMD"
14905 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14906 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14907 for ac_dir in $ac_dummy; do
14908 IFS="$lt_save_ifs"
14909 test -z "$ac_dir" && ac_dir=.
14910 if test -f $ac_dir/file; then
14911 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14912 if test -n "$file_magic_test_file"; then
14913 case $deplibs_check_method in
14914 "file_magic "*)
14915 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14916 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14917 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14918 $EGREP "$file_magic_regex" > /dev/null; then
14920 else
14921 cat <<_LT_EOF 1>&2
14923 *** Warning: the command libtool uses to detect shared libraries,
14924 *** $file_magic_cmd, produces output that libtool cannot recognize.
14925 *** The result is that libtool may fail to recognize shared libraries
14926 *** as such. This will affect the creation of libtool libraries that
14927 *** depend on shared libraries, but programs linked with such libtool
14928 *** libraries will work regardless of this problem. Nevertheless, you
14929 *** may want to report the problem to your system manager and/or to
14930 *** bug-libtool@gnu.org
14932 _LT_EOF
14933 fi ;;
14934 esac
14936 break
14938 done
14939 IFS="$lt_save_ifs"
14940 MAGIC_CMD="$lt_save_MAGIC_CMD"
14942 esac
14945 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14946 if test -n "$MAGIC_CMD"; then
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14948 $as_echo "$MAGIC_CMD" >&6; }
14949 else
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14951 $as_echo "no" >&6; }
14955 else
14956 MAGIC_CMD=:
14962 esac
14964 # Use C for the default configuration in the libtool script
14966 lt_save_CC="$CC"
14967 ac_ext=c
14968 ac_cpp='$CPP $CPPFLAGS'
14969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14974 # Source file extension for C test sources.
14975 ac_ext=c
14977 # Object file extension for compiled C test sources.
14978 objext=o
14979 objext=$objext
14981 # Code to be used in simple compile tests
14982 lt_simple_compile_test_code="int some_variable = 0;"
14984 # Code to be used in simple link tests
14985 lt_simple_link_test_code='int main(){return(0);}'
14993 # If no C compiler was specified, use CC.
14994 LTCC=${LTCC-"$CC"}
14996 # If no C compiler flags were specified, use CFLAGS.
14997 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14999 # Allow CC to be a program name with arguments.
15000 compiler=$CC
15002 # Save the default compiler, since it gets overwritten when the other
15003 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15004 compiler_DEFAULT=$CC
15006 # save warnings/boilerplate of simple test code
15007 ac_outfile=conftest.$ac_objext
15008 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15009 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15010 _lt_compiler_boilerplate=`cat conftest.err`
15011 $RM conftest*
15013 ac_outfile=conftest.$ac_objext
15014 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15015 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15016 _lt_linker_boilerplate=`cat conftest.err`
15017 $RM -r conftest*
15020 ## CAVEAT EMPTOR:
15021 ## There is no encapsulation within the following macros, do not change
15022 ## the running order or otherwise move them around unless you know exactly
15023 ## what you are doing...
15024 if test -n "$compiler"; then
15026 lt_prog_compiler_no_builtin_flag=
15028 if test "$GCC" = yes; then
15029 case $cc_basename in
15030 nvcc*)
15031 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15033 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15034 esac
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15037 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15038 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15039 $as_echo_n "(cached) " >&6
15040 else
15041 lt_cv_prog_compiler_rtti_exceptions=no
15042 ac_outfile=conftest.$ac_objext
15043 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15044 lt_compiler_flag="-fno-rtti -fno-exceptions"
15045 # Insert the option either (1) after the last *FLAGS variable, or
15046 # (2) before a word containing "conftest.", or (3) at the end.
15047 # Note that $ac_compile itself does not contain backslashes and begins
15048 # with a dollar sign (not a hyphen), so the echo should work correctly.
15049 # The option is referenced via a variable to avoid confusing sed.
15050 lt_compile=`echo "$ac_compile" | $SED \
15051 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15053 -e 's:$: $lt_compiler_flag:'`
15054 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15055 (eval "$lt_compile" 2>conftest.err)
15056 ac_status=$?
15057 cat conftest.err >&5
15058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 if (exit $ac_status) && test -s "$ac_outfile"; then
15060 # The compiler can only warn and ignore the option if not recognized
15061 # So say no if there are warnings other than the usual output.
15062 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15063 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15064 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15065 lt_cv_prog_compiler_rtti_exceptions=yes
15068 $RM conftest*
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15072 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15074 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15075 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15076 else
15087 lt_prog_compiler_wl=
15088 lt_prog_compiler_pic=
15089 lt_prog_compiler_static=
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15092 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15094 if test "$GCC" = yes; then
15095 lt_prog_compiler_wl='-Wl,'
15096 lt_prog_compiler_static='-static'
15098 case $host_os in
15099 aix*)
15100 # All AIX code is PIC.
15101 if test "$host_cpu" = ia64; then
15102 # AIX 5 now supports IA64 processor
15103 lt_prog_compiler_static='-Bstatic'
15105 lt_prog_compiler_pic='-fPIC'
15108 amigaos*)
15109 case $host_cpu in
15110 powerpc)
15111 # see comment about AmigaOS4 .so support
15112 lt_prog_compiler_pic='-fPIC'
15114 m68k)
15115 # FIXME: we need at least 68020 code to build shared libraries, but
15116 # adding the `-m68020' flag to GCC prevents building anything better,
15117 # like `-m68040'.
15118 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15120 esac
15123 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15124 # PIC is the default for these OSes.
15127 mingw* | cygwin* | pw32* | os2* | cegcc*)
15128 # This hack is so that the source file can tell whether it is being
15129 # built for inclusion in a dll (and should export symbols for example).
15130 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15131 # (--disable-auto-import) libraries
15132 lt_prog_compiler_pic='-DDLL_EXPORT'
15135 darwin* | rhapsody*)
15136 # PIC is the default on this platform
15137 # Common symbols not allowed in MH_DYLIB files
15138 lt_prog_compiler_pic='-fno-common'
15141 haiku*)
15142 # PIC is the default for Haiku.
15143 # The "-static" flag exists, but is broken.
15144 lt_prog_compiler_static=
15147 hpux*)
15148 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15149 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15150 # sets the default TLS model and affects inlining.
15151 case $host_cpu in
15152 hppa*64*)
15153 # +Z the default
15156 lt_prog_compiler_pic='-fPIC'
15158 esac
15161 interix[3-9]*)
15162 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15163 # Instead, we relocate shared libraries at runtime.
15166 msdosdjgpp*)
15167 # Just because we use GCC doesn't mean we suddenly get shared libraries
15168 # on systems that don't support them.
15169 lt_prog_compiler_can_build_shared=no
15170 enable_shared=no
15173 *nto* | *qnx*)
15174 # QNX uses GNU C++, but need to define -shared option too, otherwise
15175 # it will coredump.
15176 lt_prog_compiler_pic='-fPIC -shared'
15179 sysv4*MP*)
15180 if test -d /usr/nec; then
15181 lt_prog_compiler_pic=-Kconform_pic
15186 lt_prog_compiler_pic='-fPIC'
15188 esac
15190 case $cc_basename in
15191 nvcc*) # Cuda Compiler Driver 2.2
15192 lt_prog_compiler_wl='-Xlinker '
15193 lt_prog_compiler_pic='-Xcompiler -fPIC'
15195 esac
15196 else
15197 # PORTME Check for flag to pass linker flags through the system compiler.
15198 case $host_os in
15199 aix*)
15200 lt_prog_compiler_wl='-Wl,'
15201 if test "$host_cpu" = ia64; then
15202 # AIX 5 now supports IA64 processor
15203 lt_prog_compiler_static='-Bstatic'
15204 else
15205 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15209 mingw* | cygwin* | pw32* | os2* | cegcc*)
15210 # This hack is so that the source file can tell whether it is being
15211 # built for inclusion in a dll (and should export symbols for example).
15212 lt_prog_compiler_pic='-DDLL_EXPORT'
15215 hpux9* | hpux10* | hpux11*)
15216 lt_prog_compiler_wl='-Wl,'
15217 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15218 # not for PA HP-UX.
15219 case $host_cpu in
15220 hppa*64*|ia64*)
15221 # +Z the default
15224 lt_prog_compiler_pic='+Z'
15226 esac
15227 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15228 lt_prog_compiler_static='${wl}-a ${wl}archive'
15231 irix5* | irix6* | nonstopux*)
15232 lt_prog_compiler_wl='-Wl,'
15233 # PIC (with -KPIC) is the default.
15234 lt_prog_compiler_static='-non_shared'
15237 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15238 case $cc_basename in
15239 # old Intel for x86_64 which still supported -KPIC.
15240 ecc*)
15241 lt_prog_compiler_wl='-Wl,'
15242 lt_prog_compiler_pic='-KPIC'
15243 lt_prog_compiler_static='-static'
15245 # icc used to be incompatible with GCC.
15246 # ICC 10 doesn't accept -KPIC any more.
15247 icc* | ifort*)
15248 lt_prog_compiler_wl='-Wl,'
15249 lt_prog_compiler_pic='-fPIC'
15250 lt_prog_compiler_static='-static'
15252 # Lahey Fortran 8.1.
15253 lf95*)
15254 lt_prog_compiler_wl='-Wl,'
15255 lt_prog_compiler_pic='--shared'
15256 lt_prog_compiler_static='--static'
15258 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15259 # Portland Group compilers (*not* the Pentium gcc compiler,
15260 # which looks to be a dead project)
15261 lt_prog_compiler_wl='-Wl,'
15262 lt_prog_compiler_pic='-fpic'
15263 lt_prog_compiler_static='-Bstatic'
15265 ccc*)
15266 lt_prog_compiler_wl='-Wl,'
15267 # All Alpha code is PIC.
15268 lt_prog_compiler_static='-non_shared'
15270 xl* | bgxl* | bgf* | mpixl*)
15271 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15272 lt_prog_compiler_wl='-Wl,'
15273 lt_prog_compiler_pic='-qpic'
15274 lt_prog_compiler_static='-qstaticlink'
15277 case `$CC -V 2>&1 | sed 5q` in
15278 *Sun\ F* | *Sun*Fortran*)
15279 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15280 lt_prog_compiler_pic='-KPIC'
15281 lt_prog_compiler_static='-Bstatic'
15282 lt_prog_compiler_wl=''
15284 *Sun\ C*)
15285 # Sun C 5.9
15286 lt_prog_compiler_pic='-KPIC'
15287 lt_prog_compiler_static='-Bstatic'
15288 lt_prog_compiler_wl='-Wl,'
15290 esac
15292 esac
15295 newsos6)
15296 lt_prog_compiler_pic='-KPIC'
15297 lt_prog_compiler_static='-Bstatic'
15300 *nto* | *qnx*)
15301 # QNX uses GNU C++, but need to define -shared option too, otherwise
15302 # it will coredump.
15303 lt_prog_compiler_pic='-fPIC -shared'
15306 osf3* | osf4* | osf5*)
15307 lt_prog_compiler_wl='-Wl,'
15308 # All OSF/1 code is PIC.
15309 lt_prog_compiler_static='-non_shared'
15312 rdos*)
15313 lt_prog_compiler_static='-non_shared'
15316 solaris*)
15317 lt_prog_compiler_pic='-KPIC'
15318 lt_prog_compiler_static='-Bstatic'
15319 case $cc_basename in
15320 f77* | f90* | f95*)
15321 lt_prog_compiler_wl='-Qoption ld ';;
15323 lt_prog_compiler_wl='-Wl,';;
15324 esac
15327 sunos4*)
15328 lt_prog_compiler_wl='-Qoption ld '
15329 lt_prog_compiler_pic='-PIC'
15330 lt_prog_compiler_static='-Bstatic'
15333 sysv4 | sysv4.2uw2* | sysv4.3*)
15334 lt_prog_compiler_wl='-Wl,'
15335 lt_prog_compiler_pic='-KPIC'
15336 lt_prog_compiler_static='-Bstatic'
15339 sysv4*MP*)
15340 if test -d /usr/nec ;then
15341 lt_prog_compiler_pic='-Kconform_pic'
15342 lt_prog_compiler_static='-Bstatic'
15346 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15347 lt_prog_compiler_wl='-Wl,'
15348 lt_prog_compiler_pic='-KPIC'
15349 lt_prog_compiler_static='-Bstatic'
15352 unicos*)
15353 lt_prog_compiler_wl='-Wl,'
15354 lt_prog_compiler_can_build_shared=no
15357 uts4*)
15358 lt_prog_compiler_pic='-pic'
15359 lt_prog_compiler_static='-Bstatic'
15363 lt_prog_compiler_can_build_shared=no
15365 esac
15368 case $host_os in
15369 # For platforms which do not support PIC, -DPIC is meaningless:
15370 *djgpp*)
15371 lt_prog_compiler_pic=
15374 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15376 esac
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15378 $as_echo "$lt_prog_compiler_pic" >&6; }
15386 # Check to make sure the PIC flag actually works.
15388 if test -n "$lt_prog_compiler_pic"; then
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15390 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15391 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15392 $as_echo_n "(cached) " >&6
15393 else
15394 lt_cv_prog_compiler_pic_works=no
15395 ac_outfile=conftest.$ac_objext
15396 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15397 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15398 # Insert the option either (1) after the last *FLAGS variable, or
15399 # (2) before a word containing "conftest.", or (3) at the end.
15400 # Note that $ac_compile itself does not contain backslashes and begins
15401 # with a dollar sign (not a hyphen), so the echo should work correctly.
15402 # The option is referenced via a variable to avoid confusing sed.
15403 lt_compile=`echo "$ac_compile" | $SED \
15404 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15405 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15406 -e 's:$: $lt_compiler_flag:'`
15407 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15408 (eval "$lt_compile" 2>conftest.err)
15409 ac_status=$?
15410 cat conftest.err >&5
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 if (exit $ac_status) && test -s "$ac_outfile"; then
15413 # The compiler can only warn and ignore the option if not recognized
15414 # So say no if there are warnings other than the usual output.
15415 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15416 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15417 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15418 lt_cv_prog_compiler_pic_works=yes
15421 $RM conftest*
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15425 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15427 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15428 case $lt_prog_compiler_pic in
15429 "" | " "*) ;;
15430 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15431 esac
15432 else
15433 lt_prog_compiler_pic=
15434 lt_prog_compiler_can_build_shared=no
15445 # Check to make sure the static flag actually works.
15447 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15449 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15450 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15451 $as_echo_n "(cached) " >&6
15452 else
15453 lt_cv_prog_compiler_static_works=no
15454 save_LDFLAGS="$LDFLAGS"
15455 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15456 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15457 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15458 # The linker can only warn and ignore the option if not recognized
15459 # So say no if there are warnings
15460 if test -s conftest.err; then
15461 # Append any errors to the config.log.
15462 cat conftest.err 1>&5
15463 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15464 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15465 if diff conftest.exp conftest.er2 >/dev/null; then
15466 lt_cv_prog_compiler_static_works=yes
15468 else
15469 lt_cv_prog_compiler_static_works=yes
15472 $RM -r conftest*
15473 LDFLAGS="$save_LDFLAGS"
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15477 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15479 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15481 else
15482 lt_prog_compiler_static=
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15492 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15493 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15494 $as_echo_n "(cached) " >&6
15495 else
15496 lt_cv_prog_compiler_c_o=no
15497 $RM -r conftest 2>/dev/null
15498 mkdir conftest
15499 cd conftest
15500 mkdir out
15501 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15503 lt_compiler_flag="-o out/conftest2.$ac_objext"
15504 # Insert the option either (1) after the last *FLAGS variable, or
15505 # (2) before a word containing "conftest.", or (3) at the end.
15506 # Note that $ac_compile itself does not contain backslashes and begins
15507 # with a dollar sign (not a hyphen), so the echo should work correctly.
15508 lt_compile=`echo "$ac_compile" | $SED \
15509 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15511 -e 's:$: $lt_compiler_flag:'`
15512 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15513 (eval "$lt_compile" 2>out/conftest.err)
15514 ac_status=$?
15515 cat out/conftest.err >&5
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15518 then
15519 # The compiler can only warn and ignore the option if not recognized
15520 # So say no if there are warnings
15521 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15522 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15523 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15524 lt_cv_prog_compiler_c_o=yes
15527 chmod u+w . 2>&5
15528 $RM conftest*
15529 # SGI C++ compiler will create directory out/ii_files/ for
15530 # template instantiation
15531 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15532 $RM out/* && rmdir out
15533 cd ..
15534 $RM -r conftest
15535 $RM conftest*
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15539 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15547 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15548 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15549 $as_echo_n "(cached) " >&6
15550 else
15551 lt_cv_prog_compiler_c_o=no
15552 $RM -r conftest 2>/dev/null
15553 mkdir conftest
15554 cd conftest
15555 mkdir out
15556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15558 lt_compiler_flag="-o out/conftest2.$ac_objext"
15559 # Insert the option either (1) after the last *FLAGS variable, or
15560 # (2) before a word containing "conftest.", or (3) at the end.
15561 # Note that $ac_compile itself does not contain backslashes and begins
15562 # with a dollar sign (not a hyphen), so the echo should work correctly.
15563 lt_compile=`echo "$ac_compile" | $SED \
15564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15566 -e 's:$: $lt_compiler_flag:'`
15567 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15568 (eval "$lt_compile" 2>out/conftest.err)
15569 ac_status=$?
15570 cat out/conftest.err >&5
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15573 then
15574 # The compiler can only warn and ignore the option if not recognized
15575 # So say no if there are warnings
15576 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15577 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15578 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15579 lt_cv_prog_compiler_c_o=yes
15582 chmod u+w . 2>&5
15583 $RM conftest*
15584 # SGI C++ compiler will create directory out/ii_files/ for
15585 # template instantiation
15586 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15587 $RM out/* && rmdir out
15588 cd ..
15589 $RM -r conftest
15590 $RM conftest*
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15594 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15599 hard_links="nottested"
15600 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15601 # do not overwrite the value of need_locks provided by the user
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15603 $as_echo_n "checking if we can lock with hard links... " >&6; }
15604 hard_links=yes
15605 $RM conftest*
15606 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15607 touch conftest.a
15608 ln conftest.a conftest.b 2>&5 || hard_links=no
15609 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15611 $as_echo "$hard_links" >&6; }
15612 if test "$hard_links" = no; then
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15614 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15615 need_locks=warn
15617 else
15618 need_locks=no
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15627 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15629 runpath_var=
15630 allow_undefined_flag=
15631 always_export_symbols=no
15632 archive_cmds=
15633 archive_expsym_cmds=
15634 compiler_needs_object=no
15635 enable_shared_with_static_runtimes=no
15636 export_dynamic_flag_spec=
15637 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15638 hardcode_automatic=no
15639 hardcode_direct=no
15640 hardcode_direct_absolute=no
15641 hardcode_libdir_flag_spec=
15642 hardcode_libdir_flag_spec_ld=
15643 hardcode_libdir_separator=
15644 hardcode_minus_L=no
15645 hardcode_shlibpath_var=unsupported
15646 inherit_rpath=no
15647 link_all_deplibs=unknown
15648 module_cmds=
15649 module_expsym_cmds=
15650 old_archive_from_new_cmds=
15651 old_archive_from_expsyms_cmds=
15652 thread_safe_flag_spec=
15653 whole_archive_flag_spec=
15654 # include_expsyms should be a list of space-separated symbols to be *always*
15655 # included in the symbol list
15656 include_expsyms=
15657 # exclude_expsyms can be an extended regexp of symbols to exclude
15658 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15659 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15660 # as well as any symbol that contains `d'.
15661 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15662 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15663 # platforms (ab)use it in PIC code, but their linkers get confused if
15664 # the symbol is explicitly referenced. Since portable code cannot
15665 # rely on this symbol name, it's probably fine to never include it in
15666 # preloaded symbol tables.
15667 # Exclude shared library initialization/finalization symbols.
15668 extract_expsyms_cmds=
15670 case $host_os in
15671 cygwin* | mingw* | pw32* | cegcc*)
15672 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15673 # When not using gcc, we currently assume that we are using
15674 # Microsoft Visual C++.
15675 if test "$GCC" != yes; then
15676 with_gnu_ld=no
15679 interix*)
15680 # we just hope/assume this is gcc and not c89 (= MSVC++)
15681 with_gnu_ld=yes
15683 openbsd*)
15684 with_gnu_ld=no
15686 esac
15688 ld_shlibs=yes
15690 # On some targets, GNU ld is compatible enough with the native linker
15691 # that we're better off using the native interface for both.
15692 lt_use_gnu_ld_interface=no
15693 if test "$with_gnu_ld" = yes; then
15694 case $host_os in
15695 aix*)
15696 # The AIX port of GNU ld has always aspired to compatibility
15697 # with the native linker. However, as the warning in the GNU ld
15698 # block says, versions before 2.19.5* couldn't really create working
15699 # shared libraries, regardless of the interface used.
15700 case `$LD -v 2>&1` in
15701 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15702 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15703 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15705 lt_use_gnu_ld_interface=yes
15707 esac
15710 lt_use_gnu_ld_interface=yes
15712 esac
15715 if test "$lt_use_gnu_ld_interface" = yes; then
15716 # If archive_cmds runs LD, not CC, wlarc should be empty
15717 wlarc='${wl}'
15719 # Set some defaults for GNU ld with shared library support. These
15720 # are reset later if shared libraries are not supported. Putting them
15721 # here allows them to be overridden if necessary.
15722 runpath_var=LD_RUN_PATH
15723 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15724 export_dynamic_flag_spec='${wl}--export-dynamic'
15725 # ancient GNU ld didn't support --whole-archive et. al.
15726 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15727 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15728 else
15729 whole_archive_flag_spec=
15731 supports_anon_versioning=no
15732 case `$LD -v 2>&1` in
15733 *GNU\ gold*) supports_anon_versioning=yes ;;
15734 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15735 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15736 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15737 *\ 2.11.*) ;; # other 2.11 versions
15738 *) supports_anon_versioning=yes ;;
15739 esac
15741 # See if GNU ld supports shared libraries.
15742 case $host_os in
15743 aix[3-9]*)
15744 # On AIX/PPC, the GNU linker is very broken
15745 if test "$host_cpu" != ia64; then
15746 ld_shlibs=no
15747 cat <<_LT_EOF 1>&2
15749 *** Warning: the GNU linker, at least up to release 2.19, is reported
15750 *** to be unable to reliably create shared libraries on AIX.
15751 *** Therefore, libtool is disabling shared libraries support. If you
15752 *** really care for shared libraries, you may want to install binutils
15753 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15754 *** You will then need to restart the configuration process.
15756 _LT_EOF
15760 amigaos*)
15761 case $host_cpu in
15762 powerpc)
15763 # see comment about AmigaOS4 .so support
15764 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15765 archive_expsym_cmds=''
15767 m68k)
15768 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)'
15769 hardcode_libdir_flag_spec='-L$libdir'
15770 hardcode_minus_L=yes
15772 esac
15775 beos*)
15776 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15777 allow_undefined_flag=unsupported
15778 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15779 # support --undefined. This deserves some investigation. FIXME
15780 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15781 else
15782 ld_shlibs=no
15786 cygwin* | mingw* | pw32* | cegcc*)
15787 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15788 # as there is no search path for DLLs.
15789 hardcode_libdir_flag_spec='-L$libdir'
15790 export_dynamic_flag_spec='${wl}--export-all-symbols'
15791 allow_undefined_flag=unsupported
15792 always_export_symbols=no
15793 enable_shared_with_static_runtimes=yes
15794 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15796 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15797 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15798 # If the export-symbols file already is a .def file (1st line
15799 # is EXPORTS), use it as is; otherwise, prepend...
15800 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15801 cp $export_symbols $output_objdir/$soname.def;
15802 else
15803 echo EXPORTS > $output_objdir/$soname.def;
15804 cat $export_symbols >> $output_objdir/$soname.def;
15806 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15807 else
15808 ld_shlibs=no
15812 haiku*)
15813 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15814 link_all_deplibs=yes
15817 interix[3-9]*)
15818 hardcode_direct=no
15819 hardcode_shlibpath_var=no
15820 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15821 export_dynamic_flag_spec='${wl}-E'
15822 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15823 # Instead, shared libraries are loaded at an image base (0x10000000 by
15824 # default) and relocated if they conflict, which is a slow very memory
15825 # consuming and fragmenting process. To avoid this, we pick a random,
15826 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15827 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15828 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15829 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'
15832 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15833 tmp_diet=no
15834 if test "$host_os" = linux-dietlibc; then
15835 case $cc_basename in
15836 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15837 esac
15839 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15840 && test "$tmp_diet" = no
15841 then
15842 tmp_addflag=
15843 tmp_sharedflag='-shared'
15844 case $cc_basename,$host_cpu in
15845 pgcc*) # Portland Group C compiler
15846 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'
15847 tmp_addflag=' $pic_flag'
15849 pgf77* | pgf90* | pgf95* | pgfortran*)
15850 # Portland Group f77 and f90 compilers
15851 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'
15852 tmp_addflag=' $pic_flag -Mnomain' ;;
15853 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15854 tmp_addflag=' -i_dynamic' ;;
15855 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15856 tmp_addflag=' -i_dynamic -nofor_main' ;;
15857 ifc* | ifort*) # Intel Fortran compiler
15858 tmp_addflag=' -nofor_main' ;;
15859 lf95*) # Lahey Fortran 8.1
15860 whole_archive_flag_spec=
15861 tmp_sharedflag='--shared' ;;
15862 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15863 tmp_sharedflag='-qmkshrobj'
15864 tmp_addflag= ;;
15865 nvcc*) # Cuda Compiler Driver 2.2
15866 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'
15867 compiler_needs_object=yes
15869 esac
15870 case `$CC -V 2>&1 | sed 5q` in
15871 *Sun\ C*) # Sun C 5.9
15872 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'
15873 compiler_needs_object=yes
15874 tmp_sharedflag='-G' ;;
15875 *Sun\ F*) # Sun Fortran 8.3
15876 tmp_sharedflag='-G' ;;
15877 esac
15878 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15880 if test "x$supports_anon_versioning" = xyes; then
15881 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15882 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15883 echo "local: *; };" >> $output_objdir/$libname.ver~
15884 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15887 case $cc_basename in
15888 xlf* | bgf* | bgxlf* | mpixlf*)
15889 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15890 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15891 hardcode_libdir_flag_spec=
15892 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15893 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15894 if test "x$supports_anon_versioning" = xyes; then
15895 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15896 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15897 echo "local: *; };" >> $output_objdir/$libname.ver~
15898 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15901 esac
15902 else
15903 ld_shlibs=no
15907 netbsd*)
15908 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15909 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15910 wlarc=
15911 else
15912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15913 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15917 solaris*)
15918 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15919 ld_shlibs=no
15920 cat <<_LT_EOF 1>&2
15922 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15923 *** create shared libraries on Solaris systems. Therefore, libtool
15924 *** is disabling shared libraries support. We urge you to upgrade GNU
15925 *** binutils to release 2.9.1 or newer. Another option is to modify
15926 *** your PATH or compiler configuration so that the native linker is
15927 *** used, and then restart.
15929 _LT_EOF
15930 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15931 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15932 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15933 else
15934 ld_shlibs=no
15938 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15939 case `$LD -v 2>&1` in
15940 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15941 ld_shlibs=no
15942 cat <<_LT_EOF 1>&2
15944 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15945 *** reliably create shared libraries on SCO systems. Therefore, libtool
15946 *** is disabling shared libraries support. We urge you to upgrade GNU
15947 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15948 *** your PATH or compiler configuration so that the native linker is
15949 *** used, and then restart.
15951 _LT_EOF
15954 # For security reasons, it is highly recommended that you always
15955 # use absolute paths for naming shared libraries, and exclude the
15956 # DT_RUNPATH tag from executables and libraries. But doing so
15957 # requires that you compile everything twice, which is a pain.
15958 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15959 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15960 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15961 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15962 else
15963 ld_shlibs=no
15966 esac
15969 sunos4*)
15970 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15971 wlarc=
15972 hardcode_direct=yes
15973 hardcode_shlibpath_var=no
15977 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15978 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15979 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15980 else
15981 ld_shlibs=no
15984 esac
15986 if test "$ld_shlibs" = no; then
15987 runpath_var=
15988 hardcode_libdir_flag_spec=
15989 export_dynamic_flag_spec=
15990 whole_archive_flag_spec=
15992 else
15993 # PORTME fill in a description of your system's linker (not GNU ld)
15994 case $host_os in
15995 aix3*)
15996 allow_undefined_flag=unsupported
15997 always_export_symbols=yes
15998 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'
15999 # Note: this linker hardcodes the directories in LIBPATH if there
16000 # are no directories specified by -L.
16001 hardcode_minus_L=yes
16002 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16003 # Neither direct hardcoding nor static linking is supported with a
16004 # broken collect2.
16005 hardcode_direct=unsupported
16009 aix[4-9]*)
16010 if test "$host_cpu" = ia64; then
16011 # On IA64, the linker does run time linking by default, so we don't
16012 # have to do anything special.
16013 aix_use_runtimelinking=no
16014 exp_sym_flag='-Bexport'
16015 no_entry_flag=""
16016 else
16017 # If we're using GNU nm, then we don't want the "-C" option.
16018 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16019 # Also, AIX nm treats weak defined symbols like other global
16020 # defined symbols, whereas GNU nm marks them as "W".
16021 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16022 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'
16023 else
16024 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'
16026 aix_use_runtimelinking=no
16028 # Test if we are trying to use run time linking or normal
16029 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16030 # need to do runtime linking.
16031 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16032 for ld_flag in $LDFLAGS; do
16033 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16034 aix_use_runtimelinking=yes
16035 break
16037 done
16039 esac
16041 exp_sym_flag='-bexport'
16042 no_entry_flag='-bnoentry'
16045 # When large executables or shared objects are built, AIX ld can
16046 # have problems creating the table of contents. If linking a library
16047 # or program results in "error TOC overflow" add -mminimal-toc to
16048 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16049 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16051 archive_cmds=''
16052 hardcode_direct=yes
16053 hardcode_direct_absolute=yes
16054 hardcode_libdir_separator=':'
16055 link_all_deplibs=yes
16056 file_list_spec='${wl}-f,'
16058 if test "$GCC" = yes; then
16059 case $host_os in aix4.[012]|aix4.[012].*)
16060 # We only want to do this on AIX 4.2 and lower, the check
16061 # below for broken collect2 doesn't work under 4.3+
16062 collect2name=`${CC} -print-prog-name=collect2`
16063 if test -f "$collect2name" &&
16064 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16065 then
16066 # We have reworked collect2
16068 else
16069 # We have old collect2
16070 hardcode_direct=unsupported
16071 # It fails to find uninstalled libraries when the uninstalled
16072 # path is not listed in the libpath. Setting hardcode_minus_L
16073 # to unsupported forces relinking
16074 hardcode_minus_L=yes
16075 hardcode_libdir_flag_spec='-L$libdir'
16076 hardcode_libdir_separator=
16079 esac
16080 shared_flag='-shared'
16081 if test "$aix_use_runtimelinking" = yes; then
16082 shared_flag="$shared_flag "'${wl}-G'
16084 else
16085 # not using gcc
16086 if test "$host_cpu" = ia64; then
16087 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16088 # chokes on -Wl,-G. The following line is correct:
16089 shared_flag='-G'
16090 else
16091 if test "$aix_use_runtimelinking" = yes; then
16092 shared_flag='${wl}-G'
16093 else
16094 shared_flag='${wl}-bM:SRE'
16099 export_dynamic_flag_spec='${wl}-bexpall'
16100 # It seems that -bexpall does not export symbols beginning with
16101 # underscore (_), so it is better to generate a list of symbols to export.
16102 always_export_symbols=yes
16103 if test "$aix_use_runtimelinking" = yes; then
16104 # Warning - without using the other runtime loading flags (-brtl),
16105 # -berok will link without error, but may produce a broken library.
16106 allow_undefined_flag='-berok'
16107 # Determine the default libpath from the value encoded in an
16108 # empty executable.
16109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16110 /* end confdefs.h. */
16113 main ()
16117 return 0;
16119 _ACEOF
16120 if ac_fn_c_try_link "$LINENO"; then :
16122 lt_aix_libpath_sed='
16123 /Import File Strings/,/^$/ {
16124 /^0/ {
16125 s/^0 *\(.*\)$/\1/
16129 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16130 # Check for a 64-bit object if we didn't find anything.
16131 if test -z "$aix_libpath"; then
16132 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16135 rm -f core conftest.err conftest.$ac_objext \
16136 conftest$ac_exeext conftest.$ac_ext
16137 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16139 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16140 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"
16141 else
16142 if test "$host_cpu" = ia64; then
16143 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16144 allow_undefined_flag="-z nodefs"
16145 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"
16146 else
16147 # Determine the default libpath from the value encoded in an
16148 # empty executable.
16149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16150 /* end confdefs.h. */
16153 main ()
16157 return 0;
16159 _ACEOF
16160 if ac_fn_c_try_link "$LINENO"; then :
16162 lt_aix_libpath_sed='
16163 /Import File Strings/,/^$/ {
16164 /^0/ {
16165 s/^0 *\(.*\)$/\1/
16169 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16170 # Check for a 64-bit object if we didn't find anything.
16171 if test -z "$aix_libpath"; then
16172 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16175 rm -f core conftest.err conftest.$ac_objext \
16176 conftest$ac_exeext conftest.$ac_ext
16177 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16179 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16180 # Warning - without using the other run time loading flags,
16181 # -berok will link without error, but may produce a broken library.
16182 no_undefined_flag=' ${wl}-bernotok'
16183 allow_undefined_flag=' ${wl}-berok'
16184 if test "$with_gnu_ld" = yes; then
16185 # We only use this code for GNU lds that support --whole-archive.
16186 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16187 else
16188 # Exported symbols can be pulled into shared objects from archives
16189 whole_archive_flag_spec='$convenience'
16191 archive_cmds_need_lc=yes
16192 # This is similar to how AIX traditionally builds its shared libraries.
16193 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'
16198 amigaos*)
16199 case $host_cpu in
16200 powerpc)
16201 # see comment about AmigaOS4 .so support
16202 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16203 archive_expsym_cmds=''
16205 m68k)
16206 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)'
16207 hardcode_libdir_flag_spec='-L$libdir'
16208 hardcode_minus_L=yes
16210 esac
16213 bsdi[45]*)
16214 export_dynamic_flag_spec=-rdynamic
16217 cygwin* | mingw* | pw32* | cegcc*)
16218 # When not using gcc, we currently assume that we are using
16219 # Microsoft Visual C++.
16220 # hardcode_libdir_flag_spec is actually meaningless, as there is
16221 # no search path for DLLs.
16222 hardcode_libdir_flag_spec=' '
16223 allow_undefined_flag=unsupported
16224 # Tell ltmain to make .lib files, not .a files.
16225 libext=lib
16226 # Tell ltmain to make .dll files, not .so files.
16227 shrext_cmds=".dll"
16228 # FIXME: Setting linknames here is a bad hack.
16229 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16230 # The linker will automatically build a .lib file if we build a DLL.
16231 old_archive_from_new_cmds='true'
16232 # FIXME: Should let the user specify the lib program.
16233 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16234 fix_srcfile_path='`cygpath -w "$srcfile"`'
16235 enable_shared_with_static_runtimes=yes
16238 darwin* | rhapsody*)
16241 archive_cmds_need_lc=no
16242 hardcode_direct=no
16243 hardcode_automatic=yes
16244 hardcode_shlibpath_var=unsupported
16245 if test "$lt_cv_ld_force_load" = "yes"; then
16246 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\"`'
16247 else
16248 whole_archive_flag_spec=''
16250 link_all_deplibs=yes
16251 allow_undefined_flag="$_lt_dar_allow_undefined"
16252 case $cc_basename in
16253 ifort*) _lt_dar_can_shared=yes ;;
16254 *) _lt_dar_can_shared=$GCC ;;
16255 esac
16256 if test "$_lt_dar_can_shared" = "yes"; then
16257 output_verbose_link_cmd=func_echo_all
16258 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16259 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16260 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}"
16261 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}"
16263 else
16264 ld_shlibs=no
16269 dgux*)
16270 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16271 hardcode_libdir_flag_spec='-L$libdir'
16272 hardcode_shlibpath_var=no
16275 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16276 # support. Future versions do this automatically, but an explicit c++rt0.o
16277 # does not break anything, and helps significantly (at the cost of a little
16278 # extra space).
16279 freebsd2.2*)
16280 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16281 hardcode_libdir_flag_spec='-R$libdir'
16282 hardcode_direct=yes
16283 hardcode_shlibpath_var=no
16286 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16287 freebsd2.*)
16288 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16289 hardcode_direct=yes
16290 hardcode_minus_L=yes
16291 hardcode_shlibpath_var=no
16294 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16295 freebsd* | dragonfly*)
16296 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16297 hardcode_libdir_flag_spec='-R$libdir'
16298 hardcode_direct=yes
16299 hardcode_shlibpath_var=no
16302 hpux9*)
16303 if test "$GCC" = yes; then
16304 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'
16305 else
16306 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'
16308 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16309 hardcode_libdir_separator=:
16310 hardcode_direct=yes
16312 # hardcode_minus_L: Not really in the search PATH,
16313 # but as the default location of the library.
16314 hardcode_minus_L=yes
16315 export_dynamic_flag_spec='${wl}-E'
16318 hpux10*)
16319 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16320 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16321 else
16322 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16324 if test "$with_gnu_ld" = no; then
16325 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16326 hardcode_libdir_flag_spec_ld='+b $libdir'
16327 hardcode_libdir_separator=:
16328 hardcode_direct=yes
16329 hardcode_direct_absolute=yes
16330 export_dynamic_flag_spec='${wl}-E'
16331 # hardcode_minus_L: Not really in the search PATH,
16332 # but as the default location of the library.
16333 hardcode_minus_L=yes
16337 hpux11*)
16338 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16339 case $host_cpu in
16340 hppa*64*)
16341 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16343 ia64*)
16344 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16347 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16349 esac
16350 else
16351 case $host_cpu in
16352 hppa*64*)
16353 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16355 ia64*)
16356 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16360 # Older versions of the 11.00 compiler do not understand -b yet
16361 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16363 $as_echo_n "checking if $CC understands -b... " >&6; }
16364 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16365 $as_echo_n "(cached) " >&6
16366 else
16367 lt_cv_prog_compiler__b=no
16368 save_LDFLAGS="$LDFLAGS"
16369 LDFLAGS="$LDFLAGS -b"
16370 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16371 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16372 # The linker can only warn and ignore the option if not recognized
16373 # So say no if there are warnings
16374 if test -s conftest.err; then
16375 # Append any errors to the config.log.
16376 cat conftest.err 1>&5
16377 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16378 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16379 if diff conftest.exp conftest.er2 >/dev/null; then
16380 lt_cv_prog_compiler__b=yes
16382 else
16383 lt_cv_prog_compiler__b=yes
16386 $RM -r conftest*
16387 LDFLAGS="$save_LDFLAGS"
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16391 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16393 if test x"$lt_cv_prog_compiler__b" = xyes; then
16394 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16395 else
16396 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16400 esac
16402 if test "$with_gnu_ld" = no; then
16403 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16404 hardcode_libdir_separator=:
16406 case $host_cpu in
16407 hppa*64*|ia64*)
16408 hardcode_direct=no
16409 hardcode_shlibpath_var=no
16412 hardcode_direct=yes
16413 hardcode_direct_absolute=yes
16414 export_dynamic_flag_spec='${wl}-E'
16416 # hardcode_minus_L: Not really in the search PATH,
16417 # but as the default location of the library.
16418 hardcode_minus_L=yes
16420 esac
16424 irix5* | irix6* | nonstopux*)
16425 if test "$GCC" = yes; then
16426 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'
16427 # Try to use the -exported_symbol ld option, if it does not
16428 # work, assume that -exports_file does not work either and
16429 # implicitly export all symbols.
16430 save_LDFLAGS="$LDFLAGS"
16431 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16433 /* end confdefs.h. */
16434 int foo(void) {}
16435 _ACEOF
16436 if ac_fn_c_try_link "$LINENO"; then :
16437 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'
16440 rm -f core conftest.err conftest.$ac_objext \
16441 conftest$ac_exeext conftest.$ac_ext
16442 LDFLAGS="$save_LDFLAGS"
16443 else
16444 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'
16445 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'
16447 archive_cmds_need_lc='no'
16448 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16449 hardcode_libdir_separator=:
16450 inherit_rpath=yes
16451 link_all_deplibs=yes
16454 netbsd*)
16455 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16456 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16457 else
16458 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16460 hardcode_libdir_flag_spec='-R$libdir'
16461 hardcode_direct=yes
16462 hardcode_shlibpath_var=no
16465 newsos6)
16466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16467 hardcode_direct=yes
16468 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16469 hardcode_libdir_separator=:
16470 hardcode_shlibpath_var=no
16473 *nto* | *qnx*)
16476 openbsd*)
16477 if test -f /usr/libexec/ld.so; then
16478 hardcode_direct=yes
16479 hardcode_shlibpath_var=no
16480 hardcode_direct_absolute=yes
16481 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16482 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16483 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16484 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16485 export_dynamic_flag_spec='${wl}-E'
16486 else
16487 case $host_os in
16488 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16489 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16490 hardcode_libdir_flag_spec='-R$libdir'
16493 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16494 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16496 esac
16498 else
16499 ld_shlibs=no
16503 os2*)
16504 hardcode_libdir_flag_spec='-L$libdir'
16505 hardcode_minus_L=yes
16506 allow_undefined_flag=unsupported
16507 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'
16508 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16511 osf3*)
16512 if test "$GCC" = yes; then
16513 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16514 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'
16515 else
16516 allow_undefined_flag=' -expect_unresolved \*'
16517 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'
16519 archive_cmds_need_lc='no'
16520 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16521 hardcode_libdir_separator=:
16524 osf4* | osf5*) # as osf3* with the addition of -msym flag
16525 if test "$GCC" = yes; then
16526 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16527 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'
16528 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16529 else
16530 allow_undefined_flag=' -expect_unresolved \*'
16531 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'
16532 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~
16533 $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'
16535 # Both c and cxx compiler support -rpath directly
16536 hardcode_libdir_flag_spec='-rpath $libdir'
16538 archive_cmds_need_lc='no'
16539 hardcode_libdir_separator=:
16542 solaris*)
16543 no_undefined_flag=' -z defs'
16544 if test "$GCC" = yes; then
16545 wlarc='${wl}'
16546 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16547 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16548 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16549 else
16550 case `$CC -V 2>&1` in
16551 *"Compilers 5.0"*)
16552 wlarc=''
16553 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16554 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16555 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16558 wlarc='${wl}'
16559 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16560 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16561 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16563 esac
16565 hardcode_libdir_flag_spec='-R$libdir'
16566 hardcode_shlibpath_var=no
16567 case $host_os in
16568 solaris2.[0-5] | solaris2.[0-5].*) ;;
16570 # The compiler driver will combine and reorder linker options,
16571 # but understands `-z linker_flag'. GCC discards it without `$wl',
16572 # but is careful enough not to reorder.
16573 # Supported since Solaris 2.6 (maybe 2.5.1?)
16574 if test "$GCC" = yes; then
16575 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16576 else
16577 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16580 esac
16581 link_all_deplibs=yes
16584 sunos4*)
16585 if test "x$host_vendor" = xsequent; then
16586 # Use $CC to link under sequent, because it throws in some extra .o
16587 # files that make .init and .fini sections work.
16588 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16589 else
16590 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16592 hardcode_libdir_flag_spec='-L$libdir'
16593 hardcode_direct=yes
16594 hardcode_minus_L=yes
16595 hardcode_shlibpath_var=no
16598 sysv4)
16599 case $host_vendor in
16600 sni)
16601 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16602 hardcode_direct=yes # is this really true???
16604 siemens)
16605 ## LD is ld it makes a PLAMLIB
16606 ## CC just makes a GrossModule.
16607 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16608 reload_cmds='$CC -r -o $output$reload_objs'
16609 hardcode_direct=no
16611 motorola)
16612 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16613 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16615 esac
16616 runpath_var='LD_RUN_PATH'
16617 hardcode_shlibpath_var=no
16620 sysv4.3*)
16621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16622 hardcode_shlibpath_var=no
16623 export_dynamic_flag_spec='-Bexport'
16626 sysv4*MP*)
16627 if test -d /usr/nec; then
16628 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16629 hardcode_shlibpath_var=no
16630 runpath_var=LD_RUN_PATH
16631 hardcode_runpath_var=yes
16632 ld_shlibs=yes
16636 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16637 no_undefined_flag='${wl}-z,text'
16638 archive_cmds_need_lc=no
16639 hardcode_shlibpath_var=no
16640 runpath_var='LD_RUN_PATH'
16642 if test "$GCC" = yes; then
16643 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16644 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16645 else
16646 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16647 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16651 sysv5* | sco3.2v5* | sco5v6*)
16652 # Note: We can NOT use -z defs as we might desire, because we do not
16653 # link with -lc, and that would cause any symbols used from libc to
16654 # always be unresolved, which means just about no library would
16655 # ever link correctly. If we're not using GNU ld we use -z text
16656 # though, which does catch some bad symbols but isn't as heavy-handed
16657 # as -z defs.
16658 no_undefined_flag='${wl}-z,text'
16659 allow_undefined_flag='${wl}-z,nodefs'
16660 archive_cmds_need_lc=no
16661 hardcode_shlibpath_var=no
16662 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16663 hardcode_libdir_separator=':'
16664 link_all_deplibs=yes
16665 export_dynamic_flag_spec='${wl}-Bexport'
16666 runpath_var='LD_RUN_PATH'
16668 if test "$GCC" = yes; then
16669 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16670 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16671 else
16672 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16673 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16677 uts4*)
16678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16679 hardcode_libdir_flag_spec='-L$libdir'
16680 hardcode_shlibpath_var=no
16684 ld_shlibs=no
16686 esac
16688 if test x$host_vendor = xsni; then
16689 case $host in
16690 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16691 export_dynamic_flag_spec='${wl}-Blargedynsym'
16693 esac
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16698 $as_echo "$ld_shlibs" >&6; }
16699 test "$ld_shlibs" = no && can_build_shared=no
16701 with_gnu_ld=$with_gnu_ld
16718 # Do we need to explicitly link libc?
16720 case "x$archive_cmds_need_lc" in
16721 x|xyes)
16722 # Assume -lc should be added
16723 archive_cmds_need_lc=yes
16725 if test "$enable_shared" = yes && test "$GCC" = yes; then
16726 case $archive_cmds in
16727 *'~'*)
16728 # FIXME: we may have to deal with multi-command sequences.
16730 '$CC '*)
16731 # Test whether the compiler implicitly links with -lc since on some
16732 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16733 # to ld, don't add -lc before -lgcc.
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16735 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16736 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16737 $as_echo_n "(cached) " >&6
16738 else
16739 $RM conftest*
16740 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16742 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16743 (eval $ac_compile) 2>&5
16744 ac_status=$?
16745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16746 test $ac_status = 0; } 2>conftest.err; then
16747 soname=conftest
16748 lib=conftest
16749 libobjs=conftest.$ac_objext
16750 deplibs=
16751 wl=$lt_prog_compiler_wl
16752 pic_flag=$lt_prog_compiler_pic
16753 compiler_flags=-v
16754 linker_flags=-v
16755 verstring=
16756 output_objdir=.
16757 libname=conftest
16758 lt_save_allow_undefined_flag=$allow_undefined_flag
16759 allow_undefined_flag=
16760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16761 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16762 ac_status=$?
16763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16764 test $ac_status = 0; }
16765 then
16766 lt_cv_archive_cmds_need_lc=no
16767 else
16768 lt_cv_archive_cmds_need_lc=yes
16770 allow_undefined_flag=$lt_save_allow_undefined_flag
16771 else
16772 cat conftest.err 1>&5
16774 $RM conftest*
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16778 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16779 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16781 esac
16784 esac
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16943 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16945 if test "$GCC" = yes; then
16946 case $host_os in
16947 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16948 *) lt_awk_arg="/^libraries:/" ;;
16949 esac
16950 case $host_os in
16951 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16952 *) lt_sed_strip_eq="s,=/,/,g" ;;
16953 esac
16954 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16955 case $lt_search_path_spec in
16956 *\;*)
16957 # if the path contains ";" then we assume it to be the separator
16958 # otherwise default to the standard path separator (i.e. ":") - it is
16959 # assumed that no part of a normal pathname contains ";" but that should
16960 # okay in the real world where ";" in dirpaths is itself problematic.
16961 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16964 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16966 esac
16967 # Ok, now we have the path, separated by spaces, we can step through it
16968 # and add multilib dir if necessary.
16969 lt_tmp_lt_search_path_spec=
16970 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16971 for lt_sys_path in $lt_search_path_spec; do
16972 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16973 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16974 else
16975 test -d "$lt_sys_path" && \
16976 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16978 done
16979 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16980 BEGIN {RS=" "; FS="/|\n";} {
16981 lt_foo="";
16982 lt_count=0;
16983 for (lt_i = NF; lt_i > 0; lt_i--) {
16984 if ($lt_i != "" && $lt_i != ".") {
16985 if ($lt_i == "..") {
16986 lt_count++;
16987 } else {
16988 if (lt_count == 0) {
16989 lt_foo="/" $lt_i lt_foo;
16990 } else {
16991 lt_count--;
16996 if (lt_foo != "") { lt_freq[lt_foo]++; }
16997 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16999 # AWK program above erroneously prepends '/' to C:/dos/paths
17000 # for these hosts.
17001 case $host_os in
17002 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17003 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17004 esac
17005 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17006 else
17007 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17009 library_names_spec=
17010 libname_spec='lib$name'
17011 soname_spec=
17012 shrext_cmds=".so"
17013 postinstall_cmds=
17014 postuninstall_cmds=
17015 finish_cmds=
17016 finish_eval=
17017 shlibpath_var=
17018 shlibpath_overrides_runpath=unknown
17019 version_type=none
17020 dynamic_linker="$host_os ld.so"
17021 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17022 need_lib_prefix=unknown
17023 hardcode_into_libs=no
17025 # when you set need_version to no, make sure it does not cause -set_version
17026 # flags to be left without arguments
17027 need_version=unknown
17029 case $host_os in
17030 aix3*)
17031 version_type=linux
17032 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17033 shlibpath_var=LIBPATH
17035 # AIX 3 has no versioning support, so we append a major version to the name.
17036 soname_spec='${libname}${release}${shared_ext}$major'
17039 aix[4-9]*)
17040 version_type=linux
17041 need_lib_prefix=no
17042 need_version=no
17043 hardcode_into_libs=yes
17044 if test "$host_cpu" = ia64; then
17045 # AIX 5 supports IA64
17046 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17047 shlibpath_var=LD_LIBRARY_PATH
17048 else
17049 # With GCC up to 2.95.x, collect2 would create an import file
17050 # for dependence libraries. The import file would start with
17051 # the line `#! .'. This would cause the generated library to
17052 # depend on `.', always an invalid library. This was fixed in
17053 # development snapshots of GCC prior to 3.0.
17054 case $host_os in
17055 aix4 | aix4.[01] | aix4.[01].*)
17056 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17057 echo ' yes '
17058 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17060 else
17061 can_build_shared=no
17064 esac
17065 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17066 # soname into executable. Probably we can add versioning support to
17067 # collect2, so additional links can be useful in future.
17068 if test "$aix_use_runtimelinking" = yes; then
17069 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17070 # instead of lib<name>.a to let people know that these are not
17071 # typical AIX shared libraries.
17072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17073 else
17074 # We preserve .a as extension for shared libraries through AIX4.2
17075 # and later when we are not doing run time linking.
17076 library_names_spec='${libname}${release}.a $libname.a'
17077 soname_spec='${libname}${release}${shared_ext}$major'
17079 shlibpath_var=LIBPATH
17083 amigaos*)
17084 case $host_cpu in
17085 powerpc)
17086 # Since July 2007 AmigaOS4 officially supports .so libraries.
17087 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17090 m68k)
17091 library_names_spec='$libname.ixlibrary $libname.a'
17092 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17093 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'
17095 esac
17098 beos*)
17099 library_names_spec='${libname}${shared_ext}'
17100 dynamic_linker="$host_os ld.so"
17101 shlibpath_var=LIBRARY_PATH
17104 bsdi[45]*)
17105 version_type=linux
17106 need_version=no
17107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17108 soname_spec='${libname}${release}${shared_ext}$major'
17109 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17110 shlibpath_var=LD_LIBRARY_PATH
17111 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17112 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17113 # the default ld.so.conf also contains /usr/contrib/lib and
17114 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17115 # libtool to hard-code these into programs
17118 cygwin* | mingw* | pw32* | cegcc*)
17119 version_type=windows
17120 shrext_cmds=".dll"
17121 need_version=no
17122 need_lib_prefix=no
17124 case $GCC,$host_os in
17125 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17126 library_names_spec='$libname.dll.a'
17127 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17128 postinstall_cmds='base_file=`basename \${file}`~
17129 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17130 dldir=$destdir/`dirname \$dlpath`~
17131 test -d \$dldir || mkdir -p \$dldir~
17132 $install_prog $dir/$dlname \$dldir/$dlname~
17133 chmod a+x \$dldir/$dlname~
17134 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17135 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17137 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17138 dlpath=$dir/\$dldll~
17139 $RM \$dlpath'
17140 shlibpath_overrides_runpath=yes
17142 case $host_os in
17143 cygwin*)
17144 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17145 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17147 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17149 mingw* | cegcc*)
17150 # MinGW DLLs use traditional 'lib' prefix
17151 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17153 pw32*)
17154 # pw32 DLLs use 'pw' prefix rather than 'lib'
17155 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17157 esac
17161 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17163 esac
17164 dynamic_linker='Win32 ld.exe'
17165 # FIXME: first we should search . and the directory the executable is in
17166 shlibpath_var=PATH
17169 darwin* | rhapsody*)
17170 dynamic_linker="$host_os dyld"
17171 version_type=darwin
17172 need_lib_prefix=no
17173 need_version=no
17174 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17175 soname_spec='${libname}${release}${major}$shared_ext'
17176 shlibpath_overrides_runpath=yes
17177 shlibpath_var=DYLD_LIBRARY_PATH
17178 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17180 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17181 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17184 dgux*)
17185 version_type=linux
17186 need_lib_prefix=no
17187 need_version=no
17188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17189 soname_spec='${libname}${release}${shared_ext}$major'
17190 shlibpath_var=LD_LIBRARY_PATH
17193 freebsd* | dragonfly*)
17194 # DragonFly does not have aout. When/if they implement a new
17195 # versioning mechanism, adjust this.
17196 if test -x /usr/bin/objformat; then
17197 objformat=`/usr/bin/objformat`
17198 else
17199 case $host_os in
17200 freebsd[23].*) objformat=aout ;;
17201 *) objformat=elf ;;
17202 esac
17204 version_type=freebsd-$objformat
17205 case $version_type in
17206 freebsd-elf*)
17207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17208 need_version=no
17209 need_lib_prefix=no
17211 freebsd-*)
17212 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17213 need_version=yes
17215 esac
17216 shlibpath_var=LD_LIBRARY_PATH
17217 case $host_os in
17218 freebsd2.*)
17219 shlibpath_overrides_runpath=yes
17221 freebsd3.[01]* | freebsdelf3.[01]*)
17222 shlibpath_overrides_runpath=yes
17223 hardcode_into_libs=yes
17225 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17226 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17227 shlibpath_overrides_runpath=no
17228 hardcode_into_libs=yes
17230 *) # from 4.6 on, and DragonFly
17231 shlibpath_overrides_runpath=yes
17232 hardcode_into_libs=yes
17234 esac
17237 gnu*)
17238 version_type=linux
17239 need_lib_prefix=no
17240 need_version=no
17241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17242 soname_spec='${libname}${release}${shared_ext}$major'
17243 shlibpath_var=LD_LIBRARY_PATH
17244 hardcode_into_libs=yes
17247 haiku*)
17248 version_type=linux
17249 need_lib_prefix=no
17250 need_version=no
17251 dynamic_linker="$host_os runtime_loader"
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 shlibpath_var=LIBRARY_PATH
17255 shlibpath_overrides_runpath=yes
17256 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17257 hardcode_into_libs=yes
17260 hpux9* | hpux10* | hpux11*)
17261 # Give a soname corresponding to the major version so that dld.sl refuses to
17262 # link against other versions.
17263 version_type=sunos
17264 need_lib_prefix=no
17265 need_version=no
17266 case $host_cpu in
17267 ia64*)
17268 shrext_cmds='.so'
17269 hardcode_into_libs=yes
17270 dynamic_linker="$host_os dld.so"
17271 shlibpath_var=LD_LIBRARY_PATH
17272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17274 soname_spec='${libname}${release}${shared_ext}$major'
17275 if test "X$HPUX_IA64_MODE" = X32; then
17276 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17277 else
17278 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17280 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17282 hppa*64*)
17283 shrext_cmds='.sl'
17284 hardcode_into_libs=yes
17285 dynamic_linker="$host_os dld.sl"
17286 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17287 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17289 soname_spec='${libname}${release}${shared_ext}$major'
17290 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17291 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17294 shrext_cmds='.sl'
17295 dynamic_linker="$host_os dld.sl"
17296 shlibpath_var=SHLIB_PATH
17297 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17299 soname_spec='${libname}${release}${shared_ext}$major'
17301 esac
17302 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17303 postinstall_cmds='chmod 555 $lib'
17304 # or fails outright, so override atomically:
17305 install_override_mode=555
17308 interix[3-9]*)
17309 version_type=linux
17310 need_lib_prefix=no
17311 need_version=no
17312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17313 soname_spec='${libname}${release}${shared_ext}$major'
17314 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17315 shlibpath_var=LD_LIBRARY_PATH
17316 shlibpath_overrides_runpath=no
17317 hardcode_into_libs=yes
17320 irix5* | irix6* | nonstopux*)
17321 case $host_os in
17322 nonstopux*) version_type=nonstopux ;;
17324 if test "$lt_cv_prog_gnu_ld" = yes; then
17325 version_type=linux
17326 else
17327 version_type=irix
17328 fi ;;
17329 esac
17330 need_lib_prefix=no
17331 need_version=no
17332 soname_spec='${libname}${release}${shared_ext}$major'
17333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17334 case $host_os in
17335 irix5* | nonstopux*)
17336 libsuff= shlibsuff=
17339 case $LD in # libtool.m4 will add one of these switches to LD
17340 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17341 libsuff= shlibsuff= libmagic=32-bit;;
17342 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17343 libsuff=32 shlibsuff=N32 libmagic=N32;;
17344 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17345 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17346 *) libsuff= shlibsuff= libmagic=never-match;;
17347 esac
17349 esac
17350 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17351 shlibpath_overrides_runpath=no
17352 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17353 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17354 hardcode_into_libs=yes
17357 # No shared lib support for Linux oldld, aout, or coff.
17358 linux*oldld* | linux*aout* | linux*coff*)
17359 dynamic_linker=no
17362 # This must be Linux ELF.
17363 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17364 version_type=linux
17365 need_lib_prefix=no
17366 need_version=no
17367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17368 soname_spec='${libname}${release}${shared_ext}$major'
17369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17370 shlibpath_var=LD_LIBRARY_PATH
17371 shlibpath_overrides_runpath=no
17373 # Some binutils ld are patched to set DT_RUNPATH
17374 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17375 $as_echo_n "(cached) " >&6
17376 else
17377 lt_cv_shlibpath_overrides_runpath=no
17378 save_LDFLAGS=$LDFLAGS
17379 save_libdir=$libdir
17380 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17381 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17383 /* end confdefs.h. */
17386 main ()
17390 return 0;
17392 _ACEOF
17393 if ac_fn_c_try_link "$LINENO"; then :
17394 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17395 lt_cv_shlibpath_overrides_runpath=yes
17398 rm -f core conftest.err conftest.$ac_objext \
17399 conftest$ac_exeext conftest.$ac_ext
17400 LDFLAGS=$save_LDFLAGS
17401 libdir=$save_libdir
17405 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17407 # This implies no fast_install, which is unacceptable.
17408 # Some rework will be needed to allow for fast_install
17409 # before this can be enabled.
17410 hardcode_into_libs=yes
17412 # Append ld.so.conf contents to the search path
17413 if test -f /etc/ld.so.conf; then
17414 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' ' '`
17415 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17418 # We used to test for /lib/ld.so.1 and disable shared libraries on
17419 # powerpc, because MkLinux only supported shared libraries with the
17420 # GNU dynamic linker. Since this was broken with cross compilers,
17421 # most powerpc-linux boxes support dynamic linking these days and
17422 # people can always --disable-shared, the test was removed, and we
17423 # assume the GNU/Linux dynamic linker is in use.
17424 dynamic_linker='GNU/Linux ld.so'
17427 netbsd*)
17428 version_type=sunos
17429 need_lib_prefix=no
17430 need_version=no
17431 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17434 dynamic_linker='NetBSD (a.out) ld.so'
17435 else
17436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17437 soname_spec='${libname}${release}${shared_ext}$major'
17438 dynamic_linker='NetBSD ld.elf_so'
17440 shlibpath_var=LD_LIBRARY_PATH
17441 shlibpath_overrides_runpath=yes
17442 hardcode_into_libs=yes
17445 newsos6)
17446 version_type=linux
17447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17448 shlibpath_var=LD_LIBRARY_PATH
17449 shlibpath_overrides_runpath=yes
17452 *nto* | *qnx*)
17453 version_type=qnx
17454 need_lib_prefix=no
17455 need_version=no
17456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17457 soname_spec='${libname}${release}${shared_ext}$major'
17458 shlibpath_var=LD_LIBRARY_PATH
17459 shlibpath_overrides_runpath=no
17460 hardcode_into_libs=yes
17461 dynamic_linker='ldqnx.so'
17464 openbsd*)
17465 version_type=sunos
17466 sys_lib_dlsearch_path_spec="/usr/lib"
17467 need_lib_prefix=no
17468 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17469 case $host_os in
17470 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17471 *) need_version=no ;;
17472 esac
17473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17475 shlibpath_var=LD_LIBRARY_PATH
17476 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17477 case $host_os in
17478 openbsd2.[89] | openbsd2.[89].*)
17479 shlibpath_overrides_runpath=no
17482 shlibpath_overrides_runpath=yes
17484 esac
17485 else
17486 shlibpath_overrides_runpath=yes
17490 os2*)
17491 libname_spec='$name'
17492 shrext_cmds=".dll"
17493 need_lib_prefix=no
17494 library_names_spec='$libname${shared_ext} $libname.a'
17495 dynamic_linker='OS/2 ld.exe'
17496 shlibpath_var=LIBPATH
17499 osf3* | osf4* | osf5*)
17500 version_type=osf
17501 need_lib_prefix=no
17502 need_version=no
17503 soname_spec='${libname}${release}${shared_ext}$major'
17504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17505 shlibpath_var=LD_LIBRARY_PATH
17506 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17507 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17510 rdos*)
17511 dynamic_linker=no
17514 solaris*)
17515 version_type=linux
17516 need_lib_prefix=no
17517 need_version=no
17518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17519 soname_spec='${libname}${release}${shared_ext}$major'
17520 shlibpath_var=LD_LIBRARY_PATH
17521 shlibpath_overrides_runpath=yes
17522 hardcode_into_libs=yes
17523 # ldd complains unless libraries are executable
17524 postinstall_cmds='chmod +x $lib'
17527 sunos4*)
17528 version_type=sunos
17529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17530 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17531 shlibpath_var=LD_LIBRARY_PATH
17532 shlibpath_overrides_runpath=yes
17533 if test "$with_gnu_ld" = yes; then
17534 need_lib_prefix=no
17536 need_version=yes
17539 sysv4 | sysv4.3*)
17540 version_type=linux
17541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17542 soname_spec='${libname}${release}${shared_ext}$major'
17543 shlibpath_var=LD_LIBRARY_PATH
17544 case $host_vendor in
17545 sni)
17546 shlibpath_overrides_runpath=no
17547 need_lib_prefix=no
17548 runpath_var=LD_RUN_PATH
17550 siemens)
17551 need_lib_prefix=no
17553 motorola)
17554 need_lib_prefix=no
17555 need_version=no
17556 shlibpath_overrides_runpath=no
17557 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17559 esac
17562 sysv4*MP*)
17563 if test -d /usr/nec ;then
17564 version_type=linux
17565 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17566 soname_spec='$libname${shared_ext}.$major'
17567 shlibpath_var=LD_LIBRARY_PATH
17571 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17572 version_type=freebsd-elf
17573 need_lib_prefix=no
17574 need_version=no
17575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17576 soname_spec='${libname}${release}${shared_ext}$major'
17577 shlibpath_var=LD_LIBRARY_PATH
17578 shlibpath_overrides_runpath=yes
17579 hardcode_into_libs=yes
17580 if test "$with_gnu_ld" = yes; then
17581 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17582 else
17583 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17584 case $host_os in
17585 sco3.2v5*)
17586 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17588 esac
17590 sys_lib_dlsearch_path_spec='/usr/lib'
17593 tpf*)
17594 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17595 version_type=linux
17596 need_lib_prefix=no
17597 need_version=no
17598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17599 shlibpath_var=LD_LIBRARY_PATH
17600 shlibpath_overrides_runpath=no
17601 hardcode_into_libs=yes
17604 uts4*)
17605 version_type=linux
17606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17607 soname_spec='${libname}${release}${shared_ext}$major'
17608 shlibpath_var=LD_LIBRARY_PATH
17612 dynamic_linker=no
17614 esac
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17616 $as_echo "$dynamic_linker" >&6; }
17617 test "$dynamic_linker" = no && can_build_shared=no
17619 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17620 if test "$GCC" = yes; then
17621 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17624 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17625 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17627 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17628 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17723 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17724 hardcode_action=
17725 if test -n "$hardcode_libdir_flag_spec" ||
17726 test -n "$runpath_var" ||
17727 test "X$hardcode_automatic" = "Xyes" ; then
17729 # We can hardcode non-existent directories.
17730 if test "$hardcode_direct" != no &&
17731 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17732 # have to relink, otherwise we might link with an installed library
17733 # when we should be linking with a yet-to-be-installed one
17734 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17735 test "$hardcode_minus_L" != no; then
17736 # Linking always hardcodes the temporary library directory.
17737 hardcode_action=relink
17738 else
17739 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17740 hardcode_action=immediate
17742 else
17743 # We cannot hardcode anything, or else we can only hardcode existing
17744 # directories.
17745 hardcode_action=unsupported
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17748 $as_echo "$hardcode_action" >&6; }
17750 if test "$hardcode_action" = relink ||
17751 test "$inherit_rpath" = yes; then
17752 # Fast installation is not supported
17753 enable_fast_install=no
17754 elif test "$shlibpath_overrides_runpath" = yes ||
17755 test "$enable_shared" = no; then
17756 # Fast installation is not necessary
17757 enable_fast_install=needless
17765 if test "x$enable_dlopen" != xyes; then
17766 enable_dlopen=unknown
17767 enable_dlopen_self=unknown
17768 enable_dlopen_self_static=unknown
17769 else
17770 lt_cv_dlopen=no
17771 lt_cv_dlopen_libs=
17773 case $host_os in
17774 beos*)
17775 lt_cv_dlopen="load_add_on"
17776 lt_cv_dlopen_libs=
17777 lt_cv_dlopen_self=yes
17780 mingw* | pw32* | cegcc*)
17781 lt_cv_dlopen="LoadLibrary"
17782 lt_cv_dlopen_libs=
17785 cygwin*)
17786 lt_cv_dlopen="dlopen"
17787 lt_cv_dlopen_libs=
17790 darwin*)
17791 # if libdl is installed we need to link against it
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17793 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17794 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17795 $as_echo_n "(cached) " >&6
17796 else
17797 ac_check_lib_save_LIBS=$LIBS
17798 LIBS="-ldl $LIBS"
17799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17800 /* end confdefs.h. */
17802 /* Override any GCC internal prototype to avoid an error.
17803 Use char because int might match the return type of a GCC
17804 builtin and then its argument prototype would still apply. */
17805 #ifdef __cplusplus
17806 extern "C"
17807 #endif
17808 char dlopen ();
17810 main ()
17812 return dlopen ();
17814 return 0;
17816 _ACEOF
17817 if ac_fn_c_try_link "$LINENO"; then :
17818 ac_cv_lib_dl_dlopen=yes
17819 else
17820 ac_cv_lib_dl_dlopen=no
17822 rm -f core conftest.err conftest.$ac_objext \
17823 conftest$ac_exeext conftest.$ac_ext
17824 LIBS=$ac_check_lib_save_LIBS
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17827 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17828 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17829 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17830 else
17832 lt_cv_dlopen="dyld"
17833 lt_cv_dlopen_libs=
17834 lt_cv_dlopen_self=yes
17841 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17842 if test "x$ac_cv_func_shl_load" = x""yes; then :
17843 lt_cv_dlopen="shl_load"
17844 else
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17846 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17847 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17848 $as_echo_n "(cached) " >&6
17849 else
17850 ac_check_lib_save_LIBS=$LIBS
17851 LIBS="-ldld $LIBS"
17852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17853 /* end confdefs.h. */
17855 /* Override any GCC internal prototype to avoid an error.
17856 Use char because int might match the return type of a GCC
17857 builtin and then its argument prototype would still apply. */
17858 #ifdef __cplusplus
17859 extern "C"
17860 #endif
17861 char shl_load ();
17863 main ()
17865 return shl_load ();
17867 return 0;
17869 _ACEOF
17870 if ac_fn_c_try_link "$LINENO"; then :
17871 ac_cv_lib_dld_shl_load=yes
17872 else
17873 ac_cv_lib_dld_shl_load=no
17875 rm -f core conftest.err conftest.$ac_objext \
17876 conftest$ac_exeext conftest.$ac_ext
17877 LIBS=$ac_check_lib_save_LIBS
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17880 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17881 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17882 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17883 else
17884 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17885 if test "x$ac_cv_func_dlopen" = x""yes; then :
17886 lt_cv_dlopen="dlopen"
17887 else
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17889 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17890 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17891 $as_echo_n "(cached) " >&6
17892 else
17893 ac_check_lib_save_LIBS=$LIBS
17894 LIBS="-ldl $LIBS"
17895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17896 /* end confdefs.h. */
17898 /* Override any GCC internal prototype to avoid an error.
17899 Use char because int might match the return type of a GCC
17900 builtin and then its argument prototype would still apply. */
17901 #ifdef __cplusplus
17902 extern "C"
17903 #endif
17904 char dlopen ();
17906 main ()
17908 return dlopen ();
17910 return 0;
17912 _ACEOF
17913 if ac_fn_c_try_link "$LINENO"; then :
17914 ac_cv_lib_dl_dlopen=yes
17915 else
17916 ac_cv_lib_dl_dlopen=no
17918 rm -f core conftest.err conftest.$ac_objext \
17919 conftest$ac_exeext conftest.$ac_ext
17920 LIBS=$ac_check_lib_save_LIBS
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17923 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17924 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17925 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17926 else
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17928 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17929 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17930 $as_echo_n "(cached) " >&6
17931 else
17932 ac_check_lib_save_LIBS=$LIBS
17933 LIBS="-lsvld $LIBS"
17934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17935 /* end confdefs.h. */
17937 /* Override any GCC internal prototype to avoid an error.
17938 Use char because int might match the return type of a GCC
17939 builtin and then its argument prototype would still apply. */
17940 #ifdef __cplusplus
17941 extern "C"
17942 #endif
17943 char dlopen ();
17945 main ()
17947 return dlopen ();
17949 return 0;
17951 _ACEOF
17952 if ac_fn_c_try_link "$LINENO"; then :
17953 ac_cv_lib_svld_dlopen=yes
17954 else
17955 ac_cv_lib_svld_dlopen=no
17957 rm -f core conftest.err conftest.$ac_objext \
17958 conftest$ac_exeext conftest.$ac_ext
17959 LIBS=$ac_check_lib_save_LIBS
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17962 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17963 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17964 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17965 else
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17967 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17968 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17969 $as_echo_n "(cached) " >&6
17970 else
17971 ac_check_lib_save_LIBS=$LIBS
17972 LIBS="-ldld $LIBS"
17973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17974 /* end confdefs.h. */
17976 /* Override any GCC internal prototype to avoid an error.
17977 Use char because int might match the return type of a GCC
17978 builtin and then its argument prototype would still apply. */
17979 #ifdef __cplusplus
17980 extern "C"
17981 #endif
17982 char dld_link ();
17984 main ()
17986 return dld_link ();
17988 return 0;
17990 _ACEOF
17991 if ac_fn_c_try_link "$LINENO"; then :
17992 ac_cv_lib_dld_dld_link=yes
17993 else
17994 ac_cv_lib_dld_dld_link=no
17996 rm -f core conftest.err conftest.$ac_objext \
17997 conftest$ac_exeext conftest.$ac_ext
17998 LIBS=$ac_check_lib_save_LIBS
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18001 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18002 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18003 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18022 esac
18024 if test "x$lt_cv_dlopen" != xno; then
18025 enable_dlopen=yes
18026 else
18027 enable_dlopen=no
18030 case $lt_cv_dlopen in
18031 dlopen)
18032 save_CPPFLAGS="$CPPFLAGS"
18033 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18035 save_LDFLAGS="$LDFLAGS"
18036 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18038 save_LIBS="$LIBS"
18039 LIBS="$lt_cv_dlopen_libs $LIBS"
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18042 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18043 if test "${lt_cv_dlopen_self+set}" = set; then :
18044 $as_echo_n "(cached) " >&6
18045 else
18046 if test "$cross_compiling" = yes; then :
18047 lt_cv_dlopen_self=cross
18048 else
18049 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18050 lt_status=$lt_dlunknown
18051 cat > conftest.$ac_ext <<_LT_EOF
18052 #line 18052 "configure"
18053 #include "confdefs.h"
18055 #if HAVE_DLFCN_H
18056 #include <dlfcn.h>
18057 #endif
18059 #include <stdio.h>
18061 #ifdef RTLD_GLOBAL
18062 # define LT_DLGLOBAL RTLD_GLOBAL
18063 #else
18064 # ifdef DL_GLOBAL
18065 # define LT_DLGLOBAL DL_GLOBAL
18066 # else
18067 # define LT_DLGLOBAL 0
18068 # endif
18069 #endif
18071 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18072 find out it does not work in some platform. */
18073 #ifndef LT_DLLAZY_OR_NOW
18074 # ifdef RTLD_LAZY
18075 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18076 # else
18077 # ifdef DL_LAZY
18078 # define LT_DLLAZY_OR_NOW DL_LAZY
18079 # else
18080 # ifdef RTLD_NOW
18081 # define LT_DLLAZY_OR_NOW RTLD_NOW
18082 # else
18083 # ifdef DL_NOW
18084 # define LT_DLLAZY_OR_NOW DL_NOW
18085 # else
18086 # define LT_DLLAZY_OR_NOW 0
18087 # endif
18088 # endif
18089 # endif
18090 # endif
18091 #endif
18093 /* When -fvisbility=hidden is used, assume the code has been annotated
18094 correspondingly for the symbols needed. */
18095 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18096 void fnord () __attribute__((visibility("default")));
18097 #endif
18099 void fnord () { int i=42; }
18100 int main ()
18102 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18103 int status = $lt_dlunknown;
18105 if (self)
18107 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18108 else
18110 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18111 else puts (dlerror ());
18113 /* dlclose (self); */
18115 else
18116 puts (dlerror ());
18118 return status;
18120 _LT_EOF
18121 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18122 (eval $ac_link) 2>&5
18123 ac_status=$?
18124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18125 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18126 (./conftest; exit; ) >&5 2>/dev/null
18127 lt_status=$?
18128 case x$lt_status in
18129 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18130 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18131 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18132 esac
18133 else :
18134 # compilation failed
18135 lt_cv_dlopen_self=no
18138 rm -fr conftest*
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18143 $as_echo "$lt_cv_dlopen_self" >&6; }
18145 if test "x$lt_cv_dlopen_self" = xyes; then
18146 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18148 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18149 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18150 $as_echo_n "(cached) " >&6
18151 else
18152 if test "$cross_compiling" = yes; then :
18153 lt_cv_dlopen_self_static=cross
18154 else
18155 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18156 lt_status=$lt_dlunknown
18157 cat > conftest.$ac_ext <<_LT_EOF
18158 #line 18158 "configure"
18159 #include "confdefs.h"
18161 #if HAVE_DLFCN_H
18162 #include <dlfcn.h>
18163 #endif
18165 #include <stdio.h>
18167 #ifdef RTLD_GLOBAL
18168 # define LT_DLGLOBAL RTLD_GLOBAL
18169 #else
18170 # ifdef DL_GLOBAL
18171 # define LT_DLGLOBAL DL_GLOBAL
18172 # else
18173 # define LT_DLGLOBAL 0
18174 # endif
18175 #endif
18177 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18178 find out it does not work in some platform. */
18179 #ifndef LT_DLLAZY_OR_NOW
18180 # ifdef RTLD_LAZY
18181 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18182 # else
18183 # ifdef DL_LAZY
18184 # define LT_DLLAZY_OR_NOW DL_LAZY
18185 # else
18186 # ifdef RTLD_NOW
18187 # define LT_DLLAZY_OR_NOW RTLD_NOW
18188 # else
18189 # ifdef DL_NOW
18190 # define LT_DLLAZY_OR_NOW DL_NOW
18191 # else
18192 # define LT_DLLAZY_OR_NOW 0
18193 # endif
18194 # endif
18195 # endif
18196 # endif
18197 #endif
18199 /* When -fvisbility=hidden is used, assume the code has been annotated
18200 correspondingly for the symbols needed. */
18201 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18202 void fnord () __attribute__((visibility("default")));
18203 #endif
18205 void fnord () { int i=42; }
18206 int main ()
18208 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18209 int status = $lt_dlunknown;
18211 if (self)
18213 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18214 else
18216 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18217 else puts (dlerror ());
18219 /* dlclose (self); */
18221 else
18222 puts (dlerror ());
18224 return status;
18226 _LT_EOF
18227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18228 (eval $ac_link) 2>&5
18229 ac_status=$?
18230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18231 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18232 (./conftest; exit; ) >&5 2>/dev/null
18233 lt_status=$?
18234 case x$lt_status in
18235 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18236 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18237 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18238 esac
18239 else :
18240 # compilation failed
18241 lt_cv_dlopen_self_static=no
18244 rm -fr conftest*
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18249 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18252 CPPFLAGS="$save_CPPFLAGS"
18253 LDFLAGS="$save_LDFLAGS"
18254 LIBS="$save_LIBS"
18256 esac
18258 case $lt_cv_dlopen_self in
18259 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18260 *) enable_dlopen_self=unknown ;;
18261 esac
18263 case $lt_cv_dlopen_self_static in
18264 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18265 *) enable_dlopen_self_static=unknown ;;
18266 esac
18285 striplib=
18286 old_striplib=
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18288 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18289 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18290 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18291 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18293 $as_echo "yes" >&6; }
18294 else
18295 # FIXME - insert some real tests, host_os isn't really good enough
18296 case $host_os in
18297 darwin*)
18298 if test -n "$STRIP" ; then
18299 striplib="$STRIP -x"
18300 old_striplib="$STRIP -S"
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18302 $as_echo "yes" >&6; }
18303 else
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18305 $as_echo "no" >&6; }
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18310 $as_echo "no" >&6; }
18312 esac
18326 # Report which library types will actually be built
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18328 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18330 $as_echo "$can_build_shared" >&6; }
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18333 $as_echo_n "checking whether to build shared libraries... " >&6; }
18334 test "$can_build_shared" = "no" && enable_shared=no
18336 # On AIX, shared libraries and static libraries use the same namespace, and
18337 # are all built from PIC.
18338 case $host_os in
18339 aix3*)
18340 test "$enable_shared" = yes && enable_static=no
18341 if test -n "$RANLIB"; then
18342 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18343 postinstall_cmds='$RANLIB $lib'
18347 aix[4-9]*)
18348 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18349 test "$enable_shared" = yes && enable_static=no
18352 esac
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18354 $as_echo "$enable_shared" >&6; }
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18357 $as_echo_n "checking whether to build static libraries... " >&6; }
18358 # Make sure either enable_shared or enable_static is yes.
18359 test "$enable_shared" = yes || enable_static=yes
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18361 $as_echo "$enable_static" >&6; }
18367 ac_ext=c
18368 ac_cpp='$CPP $CPPFLAGS'
18369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18373 CC="$lt_save_CC"
18375 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18376 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18377 (test "X$CXX" != "Xg++"))) ; then
18378 ac_ext=cpp
18379 ac_cpp='$CXXCPP $CPPFLAGS'
18380 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18381 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18382 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18384 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18385 if test -z "$CXXCPP"; then
18386 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18387 $as_echo_n "(cached) " >&6
18388 else
18389 # Double quotes because CXXCPP needs to be expanded
18390 for CXXCPP in "$CXX -E" "/lib/cpp"
18392 ac_preproc_ok=false
18393 for ac_cxx_preproc_warn_flag in '' yes
18395 # Use a header file that comes with gcc, so configuring glibc
18396 # with a fresh cross-compiler works.
18397 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18398 # <limits.h> exists even on freestanding compilers.
18399 # On the NeXT, cc -E runs the code through the compiler's parser,
18400 # not just through cpp. "Syntax error" is here to catch this case.
18401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18402 /* end confdefs.h. */
18403 #ifdef __STDC__
18404 # include <limits.h>
18405 #else
18406 # include <assert.h>
18407 #endif
18408 Syntax error
18409 _ACEOF
18410 if ac_fn_cxx_try_cpp "$LINENO"; then :
18412 else
18413 # Broken: fails on valid input.
18414 continue
18416 rm -f conftest.err conftest.$ac_ext
18418 # OK, works on sane cases. Now check whether nonexistent headers
18419 # can be detected and how.
18420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18421 /* end confdefs.h. */
18422 #include <ac_nonexistent.h>
18423 _ACEOF
18424 if ac_fn_cxx_try_cpp "$LINENO"; then :
18425 # Broken: success on invalid input.
18426 continue
18427 else
18428 # Passes both tests.
18429 ac_preproc_ok=:
18430 break
18432 rm -f conftest.err conftest.$ac_ext
18434 done
18435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18436 rm -f conftest.err conftest.$ac_ext
18437 if $ac_preproc_ok; then :
18438 break
18441 done
18442 ac_cv_prog_CXXCPP=$CXXCPP
18445 CXXCPP=$ac_cv_prog_CXXCPP
18446 else
18447 ac_cv_prog_CXXCPP=$CXXCPP
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18450 $as_echo "$CXXCPP" >&6; }
18451 ac_preproc_ok=false
18452 for ac_cxx_preproc_warn_flag in '' yes
18454 # Use a header file that comes with gcc, so configuring glibc
18455 # with a fresh cross-compiler works.
18456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18457 # <limits.h> exists even on freestanding compilers.
18458 # On the NeXT, cc -E runs the code through the compiler's parser,
18459 # not just through cpp. "Syntax error" is here to catch this case.
18460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18461 /* end confdefs.h. */
18462 #ifdef __STDC__
18463 # include <limits.h>
18464 #else
18465 # include <assert.h>
18466 #endif
18467 Syntax error
18468 _ACEOF
18469 if ac_fn_cxx_try_cpp "$LINENO"; then :
18471 else
18472 # Broken: fails on valid input.
18473 continue
18475 rm -f conftest.err conftest.$ac_ext
18477 # OK, works on sane cases. Now check whether nonexistent headers
18478 # can be detected and how.
18479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18480 /* end confdefs.h. */
18481 #include <ac_nonexistent.h>
18482 _ACEOF
18483 if ac_fn_cxx_try_cpp "$LINENO"; then :
18484 # Broken: success on invalid input.
18485 continue
18486 else
18487 # Passes both tests.
18488 ac_preproc_ok=:
18489 break
18491 rm -f conftest.err conftest.$ac_ext
18493 done
18494 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18495 rm -f conftest.err conftest.$ac_ext
18496 if $ac_preproc_ok; then :
18498 else
18499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18501 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18502 See \`config.log' for more details." "$LINENO" 5; }
18505 ac_ext=c
18506 ac_cpp='$CPP $CPPFLAGS'
18507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18511 else
18512 _lt_caught_CXX_error=yes
18515 ac_ext=cpp
18516 ac_cpp='$CXXCPP $CPPFLAGS'
18517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18521 archive_cmds_need_lc_CXX=no
18522 allow_undefined_flag_CXX=
18523 always_export_symbols_CXX=no
18524 archive_expsym_cmds_CXX=
18525 compiler_needs_object_CXX=no
18526 export_dynamic_flag_spec_CXX=
18527 hardcode_direct_CXX=no
18528 hardcode_direct_absolute_CXX=no
18529 hardcode_libdir_flag_spec_CXX=
18530 hardcode_libdir_flag_spec_ld_CXX=
18531 hardcode_libdir_separator_CXX=
18532 hardcode_minus_L_CXX=no
18533 hardcode_shlibpath_var_CXX=unsupported
18534 hardcode_automatic_CXX=no
18535 inherit_rpath_CXX=no
18536 module_cmds_CXX=
18537 module_expsym_cmds_CXX=
18538 link_all_deplibs_CXX=unknown
18539 old_archive_cmds_CXX=$old_archive_cmds
18540 reload_flag_CXX=$reload_flag
18541 reload_cmds_CXX=$reload_cmds
18542 no_undefined_flag_CXX=
18543 whole_archive_flag_spec_CXX=
18544 enable_shared_with_static_runtimes_CXX=no
18546 # Source file extension for C++ test sources.
18547 ac_ext=cpp
18549 # Object file extension for compiled C++ test sources.
18550 objext=o
18551 objext_CXX=$objext
18553 # No sense in running all these tests if we already determined that
18554 # the CXX compiler isn't working. Some variables (like enable_shared)
18555 # are currently assumed to apply to all compilers on this platform,
18556 # and will be corrupted by setting them based on a non-working compiler.
18557 if test "$_lt_caught_CXX_error" != yes; then
18558 # Code to be used in simple compile tests
18559 lt_simple_compile_test_code="int some_variable = 0;"
18561 # Code to be used in simple link tests
18562 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18564 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18571 # If no C compiler was specified, use CC.
18572 LTCC=${LTCC-"$CC"}
18574 # If no C compiler flags were specified, use CFLAGS.
18575 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18577 # Allow CC to be a program name with arguments.
18578 compiler=$CC
18581 # save warnings/boilerplate of simple test code
18582 ac_outfile=conftest.$ac_objext
18583 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18584 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18585 _lt_compiler_boilerplate=`cat conftest.err`
18586 $RM conftest*
18588 ac_outfile=conftest.$ac_objext
18589 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18590 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18591 _lt_linker_boilerplate=`cat conftest.err`
18592 $RM -r conftest*
18595 # Allow CC to be a program name with arguments.
18596 lt_save_CC=$CC
18597 lt_save_LD=$LD
18598 lt_save_GCC=$GCC
18599 GCC=$GXX
18600 lt_save_with_gnu_ld=$with_gnu_ld
18601 lt_save_path_LD=$lt_cv_path_LD
18602 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18603 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18604 else
18605 $as_unset lt_cv_prog_gnu_ld
18607 if test -n "${lt_cv_path_LDCXX+set}"; then
18608 lt_cv_path_LD=$lt_cv_path_LDCXX
18609 else
18610 $as_unset lt_cv_path_LD
18612 test -z "${LDCXX+set}" || LD=$LDCXX
18613 CC=${CXX-"c++"}
18614 compiler=$CC
18615 compiler_CXX=$CC
18616 for cc_temp in $compiler""; do
18617 case $cc_temp in
18618 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18619 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18620 \-*) ;;
18621 *) break;;
18622 esac
18623 done
18624 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18627 if test -n "$compiler"; then
18628 # We don't want -fno-exception when compiling C++ code, so set the
18629 # no_builtin_flag separately
18630 if test "$GXX" = yes; then
18631 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18632 else
18633 lt_prog_compiler_no_builtin_flag_CXX=
18636 if test "$GXX" = yes; then
18637 # Set up default GNU C++ configuration
18641 # Check whether --with-gnu-ld was given.
18642 if test "${with_gnu_ld+set}" = set; then :
18643 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18644 else
18645 with_gnu_ld=no
18648 ac_prog=ld
18649 if test "$GCC" = yes; then
18650 # Check if gcc -print-prog-name=ld gives a path.
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18652 $as_echo_n "checking for ld used by $CC... " >&6; }
18653 case $host in
18654 *-*-mingw*)
18655 # gcc leaves a trailing carriage return which upsets mingw
18656 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18658 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18659 esac
18660 case $ac_prog in
18661 # Accept absolute paths.
18662 [\\/]* | ?:[\\/]*)
18663 re_direlt='/[^/][^/]*/\.\./'
18664 # Canonicalize the pathname of ld
18665 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18666 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18667 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18668 done
18669 test -z "$LD" && LD="$ac_prog"
18672 # If it fails, then pretend we aren't using GCC.
18673 ac_prog=ld
18676 # If it is relative, then search for the first ld in PATH.
18677 with_gnu_ld=unknown
18679 esac
18680 elif test "$with_gnu_ld" = yes; then
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18682 $as_echo_n "checking for GNU ld... " >&6; }
18683 else
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18685 $as_echo_n "checking for non-GNU ld... " >&6; }
18687 if test "${lt_cv_path_LD+set}" = set; then :
18688 $as_echo_n "(cached) " >&6
18689 else
18690 if test -z "$LD"; then
18691 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18692 for ac_dir in $PATH; do
18693 IFS="$lt_save_ifs"
18694 test -z "$ac_dir" && ac_dir=.
18695 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18696 lt_cv_path_LD="$ac_dir/$ac_prog"
18697 # Check to see if the program is GNU ld. I'd rather use --version,
18698 # but apparently some variants of GNU ld only accept -v.
18699 # Break only if it was the GNU/non-GNU ld that we prefer.
18700 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18701 *GNU* | *'with BFD'*)
18702 test "$with_gnu_ld" != no && break
18705 test "$with_gnu_ld" != yes && break
18707 esac
18709 done
18710 IFS="$lt_save_ifs"
18711 else
18712 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18716 LD="$lt_cv_path_LD"
18717 if test -n "$LD"; then
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18719 $as_echo "$LD" >&6; }
18720 else
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18722 $as_echo "no" >&6; }
18724 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18726 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18727 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18728 $as_echo_n "(cached) " >&6
18729 else
18730 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18731 case `$LD -v 2>&1 </dev/null` in
18732 *GNU* | *'with BFD'*)
18733 lt_cv_prog_gnu_ld=yes
18736 lt_cv_prog_gnu_ld=no
18738 esac
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18741 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18742 with_gnu_ld=$lt_cv_prog_gnu_ld
18750 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18751 # archiving commands below assume that GNU ld is being used.
18752 if test "$with_gnu_ld" = yes; then
18753 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18754 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'
18756 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18757 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18759 # If archive_cmds runs LD, not CC, wlarc should be empty
18760 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18761 # investigate it a little bit more. (MM)
18762 wlarc='${wl}'
18764 # ancient GNU ld didn't support --whole-archive et. al.
18765 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18766 $GREP 'no-whole-archive' > /dev/null; then
18767 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18768 else
18769 whole_archive_flag_spec_CXX=
18771 else
18772 with_gnu_ld=no
18773 wlarc=
18775 # A generic and very simple default shared library creation
18776 # command for GNU C++ for the case where it uses the native
18777 # linker, instead of GNU ld. If possible, this setting should
18778 # overridden to take advantage of the native linker features on
18779 # the platform it is being used on.
18780 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18783 # Commands to make compiler produce verbose output that lists
18784 # what "hidden" libraries, object files and flags are used when
18785 # linking a shared library.
18786 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18788 else
18789 GXX=no
18790 with_gnu_ld=no
18791 wlarc=
18794 # PORTME: fill in a description of your system's C++ link characteristics
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18796 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18797 ld_shlibs_CXX=yes
18798 case $host_os in
18799 aix3*)
18800 # FIXME: insert proper C++ library support
18801 ld_shlibs_CXX=no
18803 aix[4-9]*)
18804 if test "$host_cpu" = ia64; then
18805 # On IA64, the linker does run time linking by default, so we don't
18806 # have to do anything special.
18807 aix_use_runtimelinking=no
18808 exp_sym_flag='-Bexport'
18809 no_entry_flag=""
18810 else
18811 aix_use_runtimelinking=no
18813 # Test if we are trying to use run time linking or normal
18814 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18815 # need to do runtime linking.
18816 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18817 for ld_flag in $LDFLAGS; do
18818 case $ld_flag in
18819 *-brtl*)
18820 aix_use_runtimelinking=yes
18821 break
18823 esac
18824 done
18826 esac
18828 exp_sym_flag='-bexport'
18829 no_entry_flag='-bnoentry'
18832 # When large executables or shared objects are built, AIX ld can
18833 # have problems creating the table of contents. If linking a library
18834 # or program results in "error TOC overflow" add -mminimal-toc to
18835 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18836 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18838 archive_cmds_CXX=''
18839 hardcode_direct_CXX=yes
18840 hardcode_direct_absolute_CXX=yes
18841 hardcode_libdir_separator_CXX=':'
18842 link_all_deplibs_CXX=yes
18843 file_list_spec_CXX='${wl}-f,'
18845 if test "$GXX" = yes; then
18846 case $host_os in aix4.[012]|aix4.[012].*)
18847 # We only want to do this on AIX 4.2 and lower, the check
18848 # below for broken collect2 doesn't work under 4.3+
18849 collect2name=`${CC} -print-prog-name=collect2`
18850 if test -f "$collect2name" &&
18851 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18852 then
18853 # We have reworked collect2
18855 else
18856 # We have old collect2
18857 hardcode_direct_CXX=unsupported
18858 # It fails to find uninstalled libraries when the uninstalled
18859 # path is not listed in the libpath. Setting hardcode_minus_L
18860 # to unsupported forces relinking
18861 hardcode_minus_L_CXX=yes
18862 hardcode_libdir_flag_spec_CXX='-L$libdir'
18863 hardcode_libdir_separator_CXX=
18865 esac
18866 shared_flag='-shared'
18867 if test "$aix_use_runtimelinking" = yes; then
18868 shared_flag="$shared_flag "'${wl}-G'
18870 else
18871 # not using gcc
18872 if test "$host_cpu" = ia64; then
18873 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18874 # chokes on -Wl,-G. The following line is correct:
18875 shared_flag='-G'
18876 else
18877 if test "$aix_use_runtimelinking" = yes; then
18878 shared_flag='${wl}-G'
18879 else
18880 shared_flag='${wl}-bM:SRE'
18885 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18886 # It seems that -bexpall does not export symbols beginning with
18887 # underscore (_), so it is better to generate a list of symbols to
18888 # export.
18889 always_export_symbols_CXX=yes
18890 if test "$aix_use_runtimelinking" = yes; then
18891 # Warning - without using the other runtime loading flags (-brtl),
18892 # -berok will link without error, but may produce a broken library.
18893 allow_undefined_flag_CXX='-berok'
18894 # Determine the default libpath from the value encoded in an empty
18895 # executable.
18896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18897 /* end confdefs.h. */
18900 main ()
18904 return 0;
18906 _ACEOF
18907 if ac_fn_cxx_try_link "$LINENO"; then :
18909 lt_aix_libpath_sed='
18910 /Import File Strings/,/^$/ {
18911 /^0/ {
18912 s/^0 *\(.*\)$/\1/
18916 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18917 # Check for a 64-bit object if we didn't find anything.
18918 if test -z "$aix_libpath"; then
18919 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18922 rm -f core conftest.err conftest.$ac_objext \
18923 conftest$ac_exeext conftest.$ac_ext
18924 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18926 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18928 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"
18929 else
18930 if test "$host_cpu" = ia64; then
18931 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18932 allow_undefined_flag_CXX="-z nodefs"
18933 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"
18934 else
18935 # Determine the default libpath from the value encoded in an
18936 # empty executable.
18937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18938 /* end confdefs.h. */
18941 main ()
18945 return 0;
18947 _ACEOF
18948 if ac_fn_cxx_try_link "$LINENO"; then :
18950 lt_aix_libpath_sed='
18951 /Import File Strings/,/^$/ {
18952 /^0/ {
18953 s/^0 *\(.*\)$/\1/
18957 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18958 # Check for a 64-bit object if we didn't find anything.
18959 if test -z "$aix_libpath"; then
18960 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18963 rm -f core conftest.err conftest.$ac_objext \
18964 conftest$ac_exeext conftest.$ac_ext
18965 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18967 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18968 # Warning - without using the other run time loading flags,
18969 # -berok will link without error, but may produce a broken library.
18970 no_undefined_flag_CXX=' ${wl}-bernotok'
18971 allow_undefined_flag_CXX=' ${wl}-berok'
18972 if test "$with_gnu_ld" = yes; then
18973 # We only use this code for GNU lds that support --whole-archive.
18974 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18975 else
18976 # Exported symbols can be pulled into shared objects from archives
18977 whole_archive_flag_spec_CXX='$convenience'
18979 archive_cmds_need_lc_CXX=yes
18980 # This is similar to how AIX traditionally builds its shared
18981 # libraries.
18982 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'
18987 beos*)
18988 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18989 allow_undefined_flag_CXX=unsupported
18990 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18991 # support --undefined. This deserves some investigation. FIXME
18992 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18993 else
18994 ld_shlibs_CXX=no
18998 chorus*)
18999 case $cc_basename in
19001 # FIXME: insert proper C++ library support
19002 ld_shlibs_CXX=no
19004 esac
19007 cygwin* | mingw* | pw32* | cegcc*)
19008 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19009 # as there is no search path for DLLs.
19010 hardcode_libdir_flag_spec_CXX='-L$libdir'
19011 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19012 allow_undefined_flag_CXX=unsupported
19013 always_export_symbols_CXX=no
19014 enable_shared_with_static_runtimes_CXX=yes
19016 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19017 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'
19018 # If the export-symbols file already is a .def file (1st line
19019 # is EXPORTS), use it as is; otherwise, prepend...
19020 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19021 cp $export_symbols $output_objdir/$soname.def;
19022 else
19023 echo EXPORTS > $output_objdir/$soname.def;
19024 cat $export_symbols >> $output_objdir/$soname.def;
19026 $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'
19027 else
19028 ld_shlibs_CXX=no
19031 darwin* | rhapsody*)
19034 archive_cmds_need_lc_CXX=no
19035 hardcode_direct_CXX=no
19036 hardcode_automatic_CXX=yes
19037 hardcode_shlibpath_var_CXX=unsupported
19038 if test "$lt_cv_ld_force_load" = "yes"; then
19039 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\"`'
19040 else
19041 whole_archive_flag_spec_CXX=''
19043 link_all_deplibs_CXX=yes
19044 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19045 case $cc_basename in
19046 ifort*) _lt_dar_can_shared=yes ;;
19047 *) _lt_dar_can_shared=$GCC ;;
19048 esac
19049 if test "$_lt_dar_can_shared" = "yes"; then
19050 output_verbose_link_cmd=func_echo_all
19051 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}"
19052 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19053 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}"
19054 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}"
19055 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19056 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}"
19057 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}"
19060 else
19061 ld_shlibs_CXX=no
19066 dgux*)
19067 case $cc_basename in
19068 ec++*)
19069 # FIXME: insert proper C++ library support
19070 ld_shlibs_CXX=no
19072 ghcx*)
19073 # Green Hills C++ Compiler
19074 # FIXME: insert proper C++ library support
19075 ld_shlibs_CXX=no
19078 # FIXME: insert proper C++ library support
19079 ld_shlibs_CXX=no
19081 esac
19084 freebsd2.*)
19085 # C++ shared libraries reported to be fairly broken before
19086 # switch to ELF
19087 ld_shlibs_CXX=no
19090 freebsd-elf*)
19091 archive_cmds_need_lc_CXX=no
19094 freebsd* | dragonfly*)
19095 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19096 # conventions
19097 ld_shlibs_CXX=yes
19100 gnu*)
19103 haiku*)
19104 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19105 link_all_deplibs_CXX=yes
19108 hpux9*)
19109 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19110 hardcode_libdir_separator_CXX=:
19111 export_dynamic_flag_spec_CXX='${wl}-E'
19112 hardcode_direct_CXX=yes
19113 hardcode_minus_L_CXX=yes # Not in the search PATH,
19114 # but as the default
19115 # location of the library.
19117 case $cc_basename in
19118 CC*)
19119 # FIXME: insert proper C++ library support
19120 ld_shlibs_CXX=no
19122 aCC*)
19123 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'
19124 # Commands to make compiler produce verbose output that lists
19125 # what "hidden" libraries, object files and flags are used when
19126 # linking a shared library.
19128 # There doesn't appear to be a way to prevent this compiler from
19129 # explicitly linking system object files so we need to strip them
19130 # from the output so that they don't get included in the library
19131 # dependencies.
19132 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"'
19135 if test "$GXX" = yes; then
19136 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'
19137 else
19138 # FIXME: insert proper C++ library support
19139 ld_shlibs_CXX=no
19142 esac
19145 hpux10*|hpux11*)
19146 if test $with_gnu_ld = no; then
19147 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19148 hardcode_libdir_separator_CXX=:
19150 case $host_cpu in
19151 hppa*64*|ia64*)
19154 export_dynamic_flag_spec_CXX='${wl}-E'
19156 esac
19158 case $host_cpu in
19159 hppa*64*|ia64*)
19160 hardcode_direct_CXX=no
19161 hardcode_shlibpath_var_CXX=no
19164 hardcode_direct_CXX=yes
19165 hardcode_direct_absolute_CXX=yes
19166 hardcode_minus_L_CXX=yes # Not in the search PATH,
19167 # but as the default
19168 # location of the library.
19170 esac
19172 case $cc_basename in
19173 CC*)
19174 # FIXME: insert proper C++ library support
19175 ld_shlibs_CXX=no
19177 aCC*)
19178 case $host_cpu in
19179 hppa*64*)
19180 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19182 ia64*)
19183 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19186 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19188 esac
19189 # Commands to make compiler produce verbose output that lists
19190 # what "hidden" libraries, object files and flags are used when
19191 # linking a shared library.
19193 # There doesn't appear to be a way to prevent this compiler from
19194 # explicitly linking system object files so we need to strip them
19195 # from the output so that they don't get included in the library
19196 # dependencies.
19197 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"'
19200 if test "$GXX" = yes; then
19201 if test $with_gnu_ld = no; then
19202 case $host_cpu in
19203 hppa*64*)
19204 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19206 ia64*)
19207 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19210 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'
19212 esac
19214 else
19215 # FIXME: insert proper C++ library support
19216 ld_shlibs_CXX=no
19219 esac
19222 interix[3-9]*)
19223 hardcode_direct_CXX=no
19224 hardcode_shlibpath_var_CXX=no
19225 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19226 export_dynamic_flag_spec_CXX='${wl}-E'
19227 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19228 # Instead, shared libraries are loaded at an image base (0x10000000 by
19229 # default) and relocated if they conflict, which is a slow very memory
19230 # consuming and fragmenting process. To avoid this, we pick a random,
19231 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19232 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19233 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'
19234 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'
19236 irix5* | irix6*)
19237 case $cc_basename in
19238 CC*)
19239 # SGI C++
19240 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'
19242 # Archives containing C++ object files must be created using
19243 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19244 # necessary to make sure instantiated templates are included
19245 # in the archive.
19246 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19249 if test "$GXX" = yes; then
19250 if test "$with_gnu_ld" = no; then
19251 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'
19252 else
19253 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'
19256 link_all_deplibs_CXX=yes
19258 esac
19259 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19260 hardcode_libdir_separator_CXX=:
19261 inherit_rpath_CXX=yes
19264 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19265 case $cc_basename in
19266 KCC*)
19267 # Kuck and Associates, Inc. (KAI) C++ Compiler
19269 # KCC will only create a shared library if the output file
19270 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19271 # to its proper name (with version) after linking.
19272 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'
19273 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'
19274 # Commands to make compiler produce verbose output that lists
19275 # what "hidden" libraries, object files and flags are used when
19276 # linking a shared library.
19278 # There doesn't appear to be a way to prevent this compiler from
19279 # explicitly linking system object files so we need to strip them
19280 # from the output so that they don't get included in the library
19281 # dependencies.
19282 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"'
19284 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19285 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19287 # Archives containing C++ object files must be created using
19288 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19289 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19291 icpc* | ecpc* )
19292 # Intel C++
19293 with_gnu_ld=yes
19294 # version 8.0 and above of icpc choke on multiply defined symbols
19295 # if we add $predep_objects and $postdep_objects, however 7.1 and
19296 # earlier do not add the objects themselves.
19297 case `$CC -V 2>&1` in
19298 *"Version 7."*)
19299 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19300 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'
19302 *) # Version 8.0 or newer
19303 tmp_idyn=
19304 case $host_cpu in
19305 ia64*) tmp_idyn=' -i_dynamic';;
19306 esac
19307 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19308 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'
19310 esac
19311 archive_cmds_need_lc_CXX=no
19312 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19313 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19314 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19316 pgCC* | pgcpp*)
19317 # Portland Group C++ compiler
19318 case `$CC -V` in
19319 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19320 prelink_cmds_CXX='tpldir=Template.dir~
19321 rm -rf $tpldir~
19322 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19323 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19324 old_archive_cmds_CXX='tpldir=Template.dir~
19325 rm -rf $tpldir~
19326 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19327 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19328 $RANLIB $oldlib'
19329 archive_cmds_CXX='tpldir=Template.dir~
19330 rm -rf $tpldir~
19331 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19332 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19333 archive_expsym_cmds_CXX='tpldir=Template.dir~
19334 rm -rf $tpldir~
19335 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19336 $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'
19338 *) # Version 6 and above use weak symbols
19339 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19340 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'
19342 esac
19344 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19345 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19346 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'
19348 cxx*)
19349 # Compaq C++
19350 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19351 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'
19353 runpath_var=LD_RUN_PATH
19354 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19355 hardcode_libdir_separator_CXX=:
19357 # Commands to make compiler produce verbose output that lists
19358 # what "hidden" libraries, object files and flags are used when
19359 # linking a shared library.
19361 # There doesn't appear to be a way to prevent this compiler from
19362 # explicitly linking system object files so we need to strip them
19363 # from the output so that they don't get included in the library
19364 # dependencies.
19365 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'
19367 xl* | mpixl* | bgxl*)
19368 # IBM XL 8.0 on PPC, with GNU ld
19369 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19370 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19371 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19372 if test "x$supports_anon_versioning" = xyes; then
19373 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19374 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19375 echo "local: *; };" >> $output_objdir/$libname.ver~
19376 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19380 case `$CC -V 2>&1 | sed 5q` in
19381 *Sun\ C*)
19382 # Sun C++ 5.9
19383 no_undefined_flag_CXX=' -zdefs'
19384 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19385 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'
19386 hardcode_libdir_flag_spec_CXX='-R$libdir'
19387 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'
19388 compiler_needs_object_CXX=yes
19390 # Not sure whether something based on
19391 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19392 # would be better.
19393 output_verbose_link_cmd='func_echo_all'
19395 # Archives containing C++ object files must be created using
19396 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19397 # necessary to make sure instantiated templates are included
19398 # in the archive.
19399 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19401 esac
19403 esac
19406 lynxos*)
19407 # FIXME: insert proper C++ library support
19408 ld_shlibs_CXX=no
19411 m88k*)
19412 # FIXME: insert proper C++ library support
19413 ld_shlibs_CXX=no
19416 mvs*)
19417 case $cc_basename in
19418 cxx*)
19419 # FIXME: insert proper C++ library support
19420 ld_shlibs_CXX=no
19423 # FIXME: insert proper C++ library support
19424 ld_shlibs_CXX=no
19426 esac
19429 netbsd*)
19430 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19431 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19432 wlarc=
19433 hardcode_libdir_flag_spec_CXX='-R$libdir'
19434 hardcode_direct_CXX=yes
19435 hardcode_shlibpath_var_CXX=no
19437 # Workaround some broken pre-1.5 toolchains
19438 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19441 *nto* | *qnx*)
19442 ld_shlibs_CXX=yes
19445 openbsd2*)
19446 # C++ shared libraries are fairly broken
19447 ld_shlibs_CXX=no
19450 openbsd*)
19451 if test -f /usr/libexec/ld.so; then
19452 hardcode_direct_CXX=yes
19453 hardcode_shlibpath_var_CXX=no
19454 hardcode_direct_absolute_CXX=yes
19455 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19456 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19457 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19458 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19459 export_dynamic_flag_spec_CXX='${wl}-E'
19460 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19462 output_verbose_link_cmd=func_echo_all
19463 else
19464 ld_shlibs_CXX=no
19468 osf3* | osf4* | osf5*)
19469 case $cc_basename in
19470 KCC*)
19471 # Kuck and Associates, Inc. (KAI) C++ Compiler
19473 # KCC will only create a shared library if the output file
19474 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19475 # to its proper name (with version) after linking.
19476 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'
19478 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19479 hardcode_libdir_separator_CXX=:
19481 # Archives containing C++ object files must be created using
19482 # the KAI C++ compiler.
19483 case $host in
19484 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19485 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19486 esac
19488 RCC*)
19489 # Rational C++ 2.4.1
19490 # FIXME: insert proper C++ library support
19491 ld_shlibs_CXX=no
19493 cxx*)
19494 case $host in
19495 osf3*)
19496 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19497 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'
19498 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19501 allow_undefined_flag_CXX=' -expect_unresolved \*'
19502 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'
19503 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19504 echo "-hidden">> $lib.exp~
19505 $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~
19506 $RM $lib.exp'
19507 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19509 esac
19511 hardcode_libdir_separator_CXX=:
19513 # Commands to make compiler produce verbose output that lists
19514 # what "hidden" libraries, object files and flags are used when
19515 # linking a shared library.
19517 # There doesn't appear to be a way to prevent this compiler from
19518 # explicitly linking system object files so we need to strip them
19519 # from the output so that they don't get included in the library
19520 # dependencies.
19521 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"'
19524 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19525 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19526 case $host in
19527 osf3*)
19528 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'
19531 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'
19533 esac
19535 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19536 hardcode_libdir_separator_CXX=:
19538 # Commands to make compiler produce verbose output that lists
19539 # what "hidden" libraries, object files and flags are used when
19540 # linking a shared library.
19541 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19543 else
19544 # FIXME: insert proper C++ library support
19545 ld_shlibs_CXX=no
19548 esac
19551 psos*)
19552 # FIXME: insert proper C++ library support
19553 ld_shlibs_CXX=no
19556 sunos4*)
19557 case $cc_basename in
19558 CC*)
19559 # Sun C++ 4.x
19560 # FIXME: insert proper C++ library support
19561 ld_shlibs_CXX=no
19563 lcc*)
19564 # Lucid
19565 # FIXME: insert proper C++ library support
19566 ld_shlibs_CXX=no
19569 # FIXME: insert proper C++ library support
19570 ld_shlibs_CXX=no
19572 esac
19575 solaris*)
19576 case $cc_basename in
19577 CC*)
19578 # Sun C++ 4.2, 5.x and Centerline C++
19579 archive_cmds_need_lc_CXX=yes
19580 no_undefined_flag_CXX=' -zdefs'
19581 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19582 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19583 $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'
19585 hardcode_libdir_flag_spec_CXX='-R$libdir'
19586 hardcode_shlibpath_var_CXX=no
19587 case $host_os in
19588 solaris2.[0-5] | solaris2.[0-5].*) ;;
19590 # The compiler driver will combine and reorder linker options,
19591 # but understands `-z linker_flag'.
19592 # Supported since Solaris 2.6 (maybe 2.5.1?)
19593 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19595 esac
19596 link_all_deplibs_CXX=yes
19598 output_verbose_link_cmd='func_echo_all'
19600 # Archives containing C++ object files must be created using
19601 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19602 # necessary to make sure instantiated templates are included
19603 # in the archive.
19604 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19606 gcx*)
19607 # Green Hills C++ Compiler
19608 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19610 # The C++ compiler must be used to create the archive.
19611 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19614 # GNU C++ compiler with Solaris linker
19615 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19616 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19617 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19618 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19619 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19620 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19622 # Commands to make compiler produce verbose output that lists
19623 # what "hidden" libraries, object files and flags are used when
19624 # linking a shared library.
19625 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19626 else
19627 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19628 # platform.
19629 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19630 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19631 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19633 # Commands to make compiler produce verbose output that lists
19634 # what "hidden" libraries, object files and flags are used when
19635 # linking a shared library.
19636 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19639 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19640 case $host_os in
19641 solaris2.[0-5] | solaris2.[0-5].*) ;;
19643 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19645 esac
19648 esac
19651 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19652 no_undefined_flag_CXX='${wl}-z,text'
19653 archive_cmds_need_lc_CXX=no
19654 hardcode_shlibpath_var_CXX=no
19655 runpath_var='LD_RUN_PATH'
19657 case $cc_basename in
19658 CC*)
19659 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19660 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19663 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19664 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19666 esac
19669 sysv5* | sco3.2v5* | sco5v6*)
19670 # Note: We can NOT use -z defs as we might desire, because we do not
19671 # link with -lc, and that would cause any symbols used from libc to
19672 # always be unresolved, which means just about no library would
19673 # ever link correctly. If we're not using GNU ld we use -z text
19674 # though, which does catch some bad symbols but isn't as heavy-handed
19675 # as -z defs.
19676 no_undefined_flag_CXX='${wl}-z,text'
19677 allow_undefined_flag_CXX='${wl}-z,nodefs'
19678 archive_cmds_need_lc_CXX=no
19679 hardcode_shlibpath_var_CXX=no
19680 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19681 hardcode_libdir_separator_CXX=':'
19682 link_all_deplibs_CXX=yes
19683 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19684 runpath_var='LD_RUN_PATH'
19686 case $cc_basename in
19687 CC*)
19688 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19689 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19690 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19691 '"$old_archive_cmds_CXX"
19692 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19693 '"$reload_cmds_CXX"
19696 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19697 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19699 esac
19702 tandem*)
19703 case $cc_basename in
19704 NCC*)
19705 # NonStop-UX NCC 3.20
19706 # FIXME: insert proper C++ library support
19707 ld_shlibs_CXX=no
19710 # FIXME: insert proper C++ library support
19711 ld_shlibs_CXX=no
19713 esac
19716 vxworks*)
19717 # FIXME: insert proper C++ library support
19718 ld_shlibs_CXX=no
19722 # FIXME: insert proper C++ library support
19723 ld_shlibs_CXX=no
19725 esac
19727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19728 $as_echo "$ld_shlibs_CXX" >&6; }
19729 test "$ld_shlibs_CXX" = no && can_build_shared=no
19731 GCC_CXX="$GXX"
19732 LD_CXX="$LD"
19734 ## CAVEAT EMPTOR:
19735 ## There is no encapsulation within the following macros, do not change
19736 ## the running order or otherwise move them around unless you know exactly
19737 ## what you are doing...
19738 # Dependencies to place before and after the object being linked:
19739 predep_objects_CXX=
19740 postdep_objects_CXX=
19741 predeps_CXX=
19742 postdeps_CXX=
19743 compiler_lib_search_path_CXX=
19745 cat > conftest.$ac_ext <<_LT_EOF
19746 class Foo
19748 public:
19749 Foo (void) { a = 0; }
19750 private:
19751 int a;
19753 _LT_EOF
19755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19756 (eval $ac_compile) 2>&5
19757 ac_status=$?
19758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19759 test $ac_status = 0; }; then
19760 # Parse the compiler output and extract the necessary
19761 # objects, libraries and library flags.
19763 # Sentinel used to keep track of whether or not we are before
19764 # the conftest object file.
19765 pre_test_object_deps_done=no
19767 for p in `eval "$output_verbose_link_cmd"`; do
19768 case $p in
19770 -L* | -R* | -l*)
19771 # Some compilers place space between "-{L,R}" and the path.
19772 # Remove the space.
19773 if test $p = "-L" ||
19774 test $p = "-R"; then
19775 prev=$p
19776 continue
19777 else
19778 prev=
19781 if test "$pre_test_object_deps_done" = no; then
19782 case $p in
19783 -L* | -R*)
19784 # Internal compiler library paths should come after those
19785 # provided the user. The postdeps already come after the
19786 # user supplied libs so there is no need to process them.
19787 if test -z "$compiler_lib_search_path_CXX"; then
19788 compiler_lib_search_path_CXX="${prev}${p}"
19789 else
19790 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19793 # The "-l" case would never come before the object being
19794 # linked, so don't bother handling this case.
19795 esac
19796 else
19797 if test -z "$postdeps_CXX"; then
19798 postdeps_CXX="${prev}${p}"
19799 else
19800 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19805 *.$objext)
19806 # This assumes that the test object file only shows up
19807 # once in the compiler output.
19808 if test "$p" = "conftest.$objext"; then
19809 pre_test_object_deps_done=yes
19810 continue
19813 if test "$pre_test_object_deps_done" = no; then
19814 if test -z "$predep_objects_CXX"; then
19815 predep_objects_CXX="$p"
19816 else
19817 predep_objects_CXX="$predep_objects_CXX $p"
19819 else
19820 if test -z "$postdep_objects_CXX"; then
19821 postdep_objects_CXX="$p"
19822 else
19823 postdep_objects_CXX="$postdep_objects_CXX $p"
19828 *) ;; # Ignore the rest.
19830 esac
19831 done
19833 # Clean up.
19834 rm -f a.out a.exe
19835 else
19836 echo "libtool.m4: error: problem compiling CXX test program"
19839 $RM -f confest.$objext
19841 # PORTME: override above test on systems where it is broken
19842 case $host_os in
19843 interix[3-9]*)
19844 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19845 # hack all around it, let's just trust "g++" to DTRT.
19846 predep_objects_CXX=
19847 postdep_objects_CXX=
19848 postdeps_CXX=
19851 linux*)
19852 case `$CC -V 2>&1 | sed 5q` in
19853 *Sun\ C*)
19854 # Sun C++ 5.9
19856 # The more standards-conforming stlport4 library is
19857 # incompatible with the Cstd library. Avoid specifying
19858 # it if it's in CXXFLAGS. Ignore libCrun as
19859 # -library=stlport4 depends on it.
19860 case " $CXX $CXXFLAGS " in
19861 *" -library=stlport4 "*)
19862 solaris_use_stlport4=yes
19864 esac
19866 if test "$solaris_use_stlport4" != yes; then
19867 postdeps_CXX='-library=Cstd -library=Crun'
19870 esac
19873 solaris*)
19874 case $cc_basename in
19875 CC*)
19876 # The more standards-conforming stlport4 library is
19877 # incompatible with the Cstd library. Avoid specifying
19878 # it if it's in CXXFLAGS. Ignore libCrun as
19879 # -library=stlport4 depends on it.
19880 case " $CXX $CXXFLAGS " in
19881 *" -library=stlport4 "*)
19882 solaris_use_stlport4=yes
19884 esac
19886 # Adding this requires a known-good setup of shared libraries for
19887 # Sun compiler versions before 5.6, else PIC objects from an old
19888 # archive will be linked into the output, leading to subtle bugs.
19889 if test "$solaris_use_stlport4" != yes; then
19890 postdeps_CXX='-library=Cstd -library=Crun'
19893 esac
19895 esac
19898 case " $postdeps_CXX " in
19899 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19900 esac
19901 compiler_lib_search_dirs_CXX=
19902 if test -n "${compiler_lib_search_path_CXX}"; then
19903 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19936 lt_prog_compiler_wl_CXX=
19937 lt_prog_compiler_pic_CXX=
19938 lt_prog_compiler_static_CXX=
19940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19941 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19943 # C++ specific cases for pic, static, wl, etc.
19944 if test "$GXX" = yes; then
19945 lt_prog_compiler_wl_CXX='-Wl,'
19946 lt_prog_compiler_static_CXX='-static'
19948 case $host_os in
19949 aix*)
19950 # All AIX code is PIC.
19951 if test "$host_cpu" = ia64; then
19952 # AIX 5 now supports IA64 processor
19953 lt_prog_compiler_static_CXX='-Bstatic'
19955 lt_prog_compiler_pic_CXX='-fPIC'
19958 amigaos*)
19959 case $host_cpu in
19960 powerpc)
19961 # see comment about AmigaOS4 .so support
19962 lt_prog_compiler_pic_CXX='-fPIC'
19964 m68k)
19965 # FIXME: we need at least 68020 code to build shared libraries, but
19966 # adding the `-m68020' flag to GCC prevents building anything better,
19967 # like `-m68040'.
19968 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19970 esac
19973 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19974 # PIC is the default for these OSes.
19976 mingw* | cygwin* | os2* | pw32* | cegcc*)
19977 # This hack is so that the source file can tell whether it is being
19978 # built for inclusion in a dll (and should export symbols for example).
19979 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19980 # (--disable-auto-import) libraries
19981 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19983 darwin* | rhapsody*)
19984 # PIC is the default on this platform
19985 # Common symbols not allowed in MH_DYLIB files
19986 lt_prog_compiler_pic_CXX='-fno-common'
19988 *djgpp*)
19989 # DJGPP does not support shared libraries at all
19990 lt_prog_compiler_pic_CXX=
19992 haiku*)
19993 # PIC is the default for Haiku.
19994 # The "-static" flag exists, but is broken.
19995 lt_prog_compiler_static_CXX=
19997 interix[3-9]*)
19998 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19999 # Instead, we relocate shared libraries at runtime.
20001 sysv4*MP*)
20002 if test -d /usr/nec; then
20003 lt_prog_compiler_pic_CXX=-Kconform_pic
20006 hpux*)
20007 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20008 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20009 # sets the default TLS model and affects inlining.
20010 case $host_cpu in
20011 hppa*64*)
20014 lt_prog_compiler_pic_CXX='-fPIC'
20016 esac
20018 *qnx* | *nto*)
20019 # QNX uses GNU C++, but need to define -shared option too, otherwise
20020 # it will coredump.
20021 lt_prog_compiler_pic_CXX='-fPIC -shared'
20024 lt_prog_compiler_pic_CXX='-fPIC'
20026 esac
20027 else
20028 case $host_os in
20029 aix[4-9]*)
20030 # All AIX code is PIC.
20031 if test "$host_cpu" = ia64; then
20032 # AIX 5 now supports IA64 processor
20033 lt_prog_compiler_static_CXX='-Bstatic'
20034 else
20035 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20038 chorus*)
20039 case $cc_basename in
20040 cxch68*)
20041 # Green Hills C++ Compiler
20042 # _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"
20044 esac
20046 dgux*)
20047 case $cc_basename in
20048 ec++*)
20049 lt_prog_compiler_pic_CXX='-KPIC'
20051 ghcx*)
20052 # Green Hills C++ Compiler
20053 lt_prog_compiler_pic_CXX='-pic'
20057 esac
20059 freebsd* | dragonfly*)
20060 # FreeBSD uses GNU C++
20062 hpux9* | hpux10* | hpux11*)
20063 case $cc_basename in
20064 CC*)
20065 lt_prog_compiler_wl_CXX='-Wl,'
20066 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20067 if test "$host_cpu" != ia64; then
20068 lt_prog_compiler_pic_CXX='+Z'
20071 aCC*)
20072 lt_prog_compiler_wl_CXX='-Wl,'
20073 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20074 case $host_cpu in
20075 hppa*64*|ia64*)
20076 # +Z the default
20079 lt_prog_compiler_pic_CXX='+Z'
20081 esac
20085 esac
20087 interix*)
20088 # This is c89, which is MS Visual C++ (no shared libs)
20089 # Anyone wants to do a port?
20091 irix5* | irix6* | nonstopux*)
20092 case $cc_basename in
20093 CC*)
20094 lt_prog_compiler_wl_CXX='-Wl,'
20095 lt_prog_compiler_static_CXX='-non_shared'
20096 # CC pic flag -KPIC is the default.
20100 esac
20102 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20103 case $cc_basename in
20104 KCC*)
20105 # KAI C++ Compiler
20106 lt_prog_compiler_wl_CXX='--backend -Wl,'
20107 lt_prog_compiler_pic_CXX='-fPIC'
20109 ecpc* )
20110 # old Intel C++ for x86_64 which still supported -KPIC.
20111 lt_prog_compiler_wl_CXX='-Wl,'
20112 lt_prog_compiler_pic_CXX='-KPIC'
20113 lt_prog_compiler_static_CXX='-static'
20115 icpc* )
20116 # Intel C++, used to be incompatible with GCC.
20117 # ICC 10 doesn't accept -KPIC any more.
20118 lt_prog_compiler_wl_CXX='-Wl,'
20119 lt_prog_compiler_pic_CXX='-fPIC'
20120 lt_prog_compiler_static_CXX='-static'
20122 pgCC* | pgcpp*)
20123 # Portland Group C++ compiler
20124 lt_prog_compiler_wl_CXX='-Wl,'
20125 lt_prog_compiler_pic_CXX='-fpic'
20126 lt_prog_compiler_static_CXX='-Bstatic'
20128 cxx*)
20129 # Compaq C++
20130 # Make sure the PIC flag is empty. It appears that all Alpha
20131 # Linux and Compaq Tru64 Unix objects are PIC.
20132 lt_prog_compiler_pic_CXX=
20133 lt_prog_compiler_static_CXX='-non_shared'
20135 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20136 # IBM XL 8.0, 9.0 on PPC and BlueGene
20137 lt_prog_compiler_wl_CXX='-Wl,'
20138 lt_prog_compiler_pic_CXX='-qpic'
20139 lt_prog_compiler_static_CXX='-qstaticlink'
20142 case `$CC -V 2>&1 | sed 5q` in
20143 *Sun\ C*)
20144 # Sun C++ 5.9
20145 lt_prog_compiler_pic_CXX='-KPIC'
20146 lt_prog_compiler_static_CXX='-Bstatic'
20147 lt_prog_compiler_wl_CXX='-Qoption ld '
20149 esac
20151 esac
20153 lynxos*)
20155 m88k*)
20157 mvs*)
20158 case $cc_basename in
20159 cxx*)
20160 lt_prog_compiler_pic_CXX='-W c,exportall'
20164 esac
20166 netbsd*)
20168 *qnx* | *nto*)
20169 # QNX uses GNU C++, but need to define -shared option too, otherwise
20170 # it will coredump.
20171 lt_prog_compiler_pic_CXX='-fPIC -shared'
20173 osf3* | osf4* | osf5*)
20174 case $cc_basename in
20175 KCC*)
20176 lt_prog_compiler_wl_CXX='--backend -Wl,'
20178 RCC*)
20179 # Rational C++ 2.4.1
20180 lt_prog_compiler_pic_CXX='-pic'
20182 cxx*)
20183 # Digital/Compaq C++
20184 lt_prog_compiler_wl_CXX='-Wl,'
20185 # Make sure the PIC flag is empty. It appears that all Alpha
20186 # Linux and Compaq Tru64 Unix objects are PIC.
20187 lt_prog_compiler_pic_CXX=
20188 lt_prog_compiler_static_CXX='-non_shared'
20192 esac
20194 psos*)
20196 solaris*)
20197 case $cc_basename in
20198 CC*)
20199 # Sun C++ 4.2, 5.x and Centerline C++
20200 lt_prog_compiler_pic_CXX='-KPIC'
20201 lt_prog_compiler_static_CXX='-Bstatic'
20202 lt_prog_compiler_wl_CXX='-Qoption ld '
20204 gcx*)
20205 # Green Hills C++ Compiler
20206 lt_prog_compiler_pic_CXX='-PIC'
20210 esac
20212 sunos4*)
20213 case $cc_basename in
20214 CC*)
20215 # Sun C++ 4.x
20216 lt_prog_compiler_pic_CXX='-pic'
20217 lt_prog_compiler_static_CXX='-Bstatic'
20219 lcc*)
20220 # Lucid
20221 lt_prog_compiler_pic_CXX='-pic'
20225 esac
20227 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20228 case $cc_basename in
20229 CC*)
20230 lt_prog_compiler_wl_CXX='-Wl,'
20231 lt_prog_compiler_pic_CXX='-KPIC'
20232 lt_prog_compiler_static_CXX='-Bstatic'
20234 esac
20236 tandem*)
20237 case $cc_basename in
20238 NCC*)
20239 # NonStop-UX NCC 3.20
20240 lt_prog_compiler_pic_CXX='-KPIC'
20244 esac
20246 vxworks*)
20249 lt_prog_compiler_can_build_shared_CXX=no
20251 esac
20254 case $host_os in
20255 # For platforms which do not support PIC, -DPIC is meaningless:
20256 *djgpp*)
20257 lt_prog_compiler_pic_CXX=
20260 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20262 esac
20263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20264 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20269 # Check to make sure the PIC flag actually works.
20271 if test -n "$lt_prog_compiler_pic_CXX"; then
20272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20273 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20274 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20275 $as_echo_n "(cached) " >&6
20276 else
20277 lt_cv_prog_compiler_pic_works_CXX=no
20278 ac_outfile=conftest.$ac_objext
20279 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20280 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20281 # Insert the option either (1) after the last *FLAGS variable, or
20282 # (2) before a word containing "conftest.", or (3) at the end.
20283 # Note that $ac_compile itself does not contain backslashes and begins
20284 # with a dollar sign (not a hyphen), so the echo should work correctly.
20285 # The option is referenced via a variable to avoid confusing sed.
20286 lt_compile=`echo "$ac_compile" | $SED \
20287 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20288 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20289 -e 's:$: $lt_compiler_flag:'`
20290 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20291 (eval "$lt_compile" 2>conftest.err)
20292 ac_status=$?
20293 cat conftest.err >&5
20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 if (exit $ac_status) && test -s "$ac_outfile"; then
20296 # The compiler can only warn and ignore the option if not recognized
20297 # So say no if there are warnings other than the usual output.
20298 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20299 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20300 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20301 lt_cv_prog_compiler_pic_works_CXX=yes
20304 $RM conftest*
20307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20308 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20310 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20311 case $lt_prog_compiler_pic_CXX in
20312 "" | " "*) ;;
20313 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20314 esac
20315 else
20316 lt_prog_compiler_pic_CXX=
20317 lt_prog_compiler_can_build_shared_CXX=no
20325 # Check to make sure the static flag actually works.
20327 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20329 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20330 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20331 $as_echo_n "(cached) " >&6
20332 else
20333 lt_cv_prog_compiler_static_works_CXX=no
20334 save_LDFLAGS="$LDFLAGS"
20335 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20336 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20337 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20338 # The linker can only warn and ignore the option if not recognized
20339 # So say no if there are warnings
20340 if test -s conftest.err; then
20341 # Append any errors to the config.log.
20342 cat conftest.err 1>&5
20343 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20344 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20345 if diff conftest.exp conftest.er2 >/dev/null; then
20346 lt_cv_prog_compiler_static_works_CXX=yes
20348 else
20349 lt_cv_prog_compiler_static_works_CXX=yes
20352 $RM -r conftest*
20353 LDFLAGS="$save_LDFLAGS"
20356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20357 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20359 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20361 else
20362 lt_prog_compiler_static_CXX=
20368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20369 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20370 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20371 $as_echo_n "(cached) " >&6
20372 else
20373 lt_cv_prog_compiler_c_o_CXX=no
20374 $RM -r conftest 2>/dev/null
20375 mkdir conftest
20376 cd conftest
20377 mkdir out
20378 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20380 lt_compiler_flag="-o out/conftest2.$ac_objext"
20381 # Insert the option either (1) after the last *FLAGS variable, or
20382 # (2) before a word containing "conftest.", or (3) at the end.
20383 # Note that $ac_compile itself does not contain backslashes and begins
20384 # with a dollar sign (not a hyphen), so the echo should work correctly.
20385 lt_compile=`echo "$ac_compile" | $SED \
20386 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20387 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20388 -e 's:$: $lt_compiler_flag:'`
20389 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20390 (eval "$lt_compile" 2>out/conftest.err)
20391 ac_status=$?
20392 cat out/conftest.err >&5
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20395 then
20396 # The compiler can only warn and ignore the option if not recognized
20397 # So say no if there are warnings
20398 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20399 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20400 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20401 lt_cv_prog_compiler_c_o_CXX=yes
20404 chmod u+w . 2>&5
20405 $RM conftest*
20406 # SGI C++ compiler will create directory out/ii_files/ for
20407 # template instantiation
20408 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20409 $RM out/* && rmdir out
20410 cd ..
20411 $RM -r conftest
20412 $RM conftest*
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20416 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20421 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20422 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20423 $as_echo_n "(cached) " >&6
20424 else
20425 lt_cv_prog_compiler_c_o_CXX=no
20426 $RM -r conftest 2>/dev/null
20427 mkdir conftest
20428 cd conftest
20429 mkdir out
20430 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20432 lt_compiler_flag="-o out/conftest2.$ac_objext"
20433 # Insert the option either (1) after the last *FLAGS variable, or
20434 # (2) before a word containing "conftest.", or (3) at the end.
20435 # Note that $ac_compile itself does not contain backslashes and begins
20436 # with a dollar sign (not a hyphen), so the echo should work correctly.
20437 lt_compile=`echo "$ac_compile" | $SED \
20438 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20439 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20440 -e 's:$: $lt_compiler_flag:'`
20441 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20442 (eval "$lt_compile" 2>out/conftest.err)
20443 ac_status=$?
20444 cat out/conftest.err >&5
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20447 then
20448 # The compiler can only warn and ignore the option if not recognized
20449 # So say no if there are warnings
20450 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20451 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20452 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20453 lt_cv_prog_compiler_c_o_CXX=yes
20456 chmod u+w . 2>&5
20457 $RM conftest*
20458 # SGI C++ compiler will create directory out/ii_files/ for
20459 # template instantiation
20460 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20461 $RM out/* && rmdir out
20462 cd ..
20463 $RM -r conftest
20464 $RM conftest*
20467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20468 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20473 hard_links="nottested"
20474 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20475 # do not overwrite the value of need_locks provided by the user
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20477 $as_echo_n "checking if we can lock with hard links... " >&6; }
20478 hard_links=yes
20479 $RM conftest*
20480 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20481 touch conftest.a
20482 ln conftest.a conftest.b 2>&5 || hard_links=no
20483 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20485 $as_echo "$hard_links" >&6; }
20486 if test "$hard_links" = no; then
20487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20488 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20489 need_locks=warn
20491 else
20492 need_locks=no
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20498 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20500 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20501 case $host_os in
20502 aix[4-9]*)
20503 # If we're using GNU nm, then we don't want the "-C" option.
20504 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20505 # Also, AIX nm treats weak defined symbols like other global defined
20506 # symbols, whereas GNU nm marks them as "W".
20507 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20508 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'
20509 else
20510 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'
20513 pw32*)
20514 export_symbols_cmds_CXX="$ltdll_cmds"
20516 cygwin* | mingw* | cegcc*)
20517 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'
20520 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20522 esac
20523 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20526 $as_echo "$ld_shlibs_CXX" >&6; }
20527 test "$ld_shlibs_CXX" = no && can_build_shared=no
20529 with_gnu_ld_CXX=$with_gnu_ld
20537 # Do we need to explicitly link libc?
20539 case "x$archive_cmds_need_lc_CXX" in
20540 x|xyes)
20541 # Assume -lc should be added
20542 archive_cmds_need_lc_CXX=yes
20544 if test "$enable_shared" = yes && test "$GCC" = yes; then
20545 case $archive_cmds_CXX in
20546 *'~'*)
20547 # FIXME: we may have to deal with multi-command sequences.
20549 '$CC '*)
20550 # Test whether the compiler implicitly links with -lc since on some
20551 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20552 # to ld, don't add -lc before -lgcc.
20553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20554 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20555 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20556 $as_echo_n "(cached) " >&6
20557 else
20558 $RM conftest*
20559 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20562 (eval $ac_compile) 2>&5
20563 ac_status=$?
20564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20565 test $ac_status = 0; } 2>conftest.err; then
20566 soname=conftest
20567 lib=conftest
20568 libobjs=conftest.$ac_objext
20569 deplibs=
20570 wl=$lt_prog_compiler_wl_CXX
20571 pic_flag=$lt_prog_compiler_pic_CXX
20572 compiler_flags=-v
20573 linker_flags=-v
20574 verstring=
20575 output_objdir=.
20576 libname=conftest
20577 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20578 allow_undefined_flag_CXX=
20579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20580 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20581 ac_status=$?
20582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20583 test $ac_status = 0; }
20584 then
20585 lt_cv_archive_cmds_need_lc_CXX=no
20586 else
20587 lt_cv_archive_cmds_need_lc_CXX=yes
20589 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20590 else
20591 cat conftest.err 1>&5
20593 $RM conftest*
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20597 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20598 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20600 esac
20603 esac
20668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20669 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20671 library_names_spec=
20672 libname_spec='lib$name'
20673 soname_spec=
20674 shrext_cmds=".so"
20675 postinstall_cmds=
20676 postuninstall_cmds=
20677 finish_cmds=
20678 finish_eval=
20679 shlibpath_var=
20680 shlibpath_overrides_runpath=unknown
20681 version_type=none
20682 dynamic_linker="$host_os ld.so"
20683 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20684 need_lib_prefix=unknown
20685 hardcode_into_libs=no
20687 # when you set need_version to no, make sure it does not cause -set_version
20688 # flags to be left without arguments
20689 need_version=unknown
20691 case $host_os in
20692 aix3*)
20693 version_type=linux
20694 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20695 shlibpath_var=LIBPATH
20697 # AIX 3 has no versioning support, so we append a major version to the name.
20698 soname_spec='${libname}${release}${shared_ext}$major'
20701 aix[4-9]*)
20702 version_type=linux
20703 need_lib_prefix=no
20704 need_version=no
20705 hardcode_into_libs=yes
20706 if test "$host_cpu" = ia64; then
20707 # AIX 5 supports IA64
20708 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20709 shlibpath_var=LD_LIBRARY_PATH
20710 else
20711 # With GCC up to 2.95.x, collect2 would create an import file
20712 # for dependence libraries. The import file would start with
20713 # the line `#! .'. This would cause the generated library to
20714 # depend on `.', always an invalid library. This was fixed in
20715 # development snapshots of GCC prior to 3.0.
20716 case $host_os in
20717 aix4 | aix4.[01] | aix4.[01].*)
20718 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20719 echo ' yes '
20720 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20722 else
20723 can_build_shared=no
20726 esac
20727 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20728 # soname into executable. Probably we can add versioning support to
20729 # collect2, so additional links can be useful in future.
20730 if test "$aix_use_runtimelinking" = yes; then
20731 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20732 # instead of lib<name>.a to let people know that these are not
20733 # typical AIX shared libraries.
20734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20735 else
20736 # We preserve .a as extension for shared libraries through AIX4.2
20737 # and later when we are not doing run time linking.
20738 library_names_spec='${libname}${release}.a $libname.a'
20739 soname_spec='${libname}${release}${shared_ext}$major'
20741 shlibpath_var=LIBPATH
20745 amigaos*)
20746 case $host_cpu in
20747 powerpc)
20748 # Since July 2007 AmigaOS4 officially supports .so libraries.
20749 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20752 m68k)
20753 library_names_spec='$libname.ixlibrary $libname.a'
20754 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20755 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'
20757 esac
20760 beos*)
20761 library_names_spec='${libname}${shared_ext}'
20762 dynamic_linker="$host_os ld.so"
20763 shlibpath_var=LIBRARY_PATH
20766 bsdi[45]*)
20767 version_type=linux
20768 need_version=no
20769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20770 soname_spec='${libname}${release}${shared_ext}$major'
20771 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20772 shlibpath_var=LD_LIBRARY_PATH
20773 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20774 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20775 # the default ld.so.conf also contains /usr/contrib/lib and
20776 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20777 # libtool to hard-code these into programs
20780 cygwin* | mingw* | pw32* | cegcc*)
20781 version_type=windows
20782 shrext_cmds=".dll"
20783 need_version=no
20784 need_lib_prefix=no
20786 case $GCC,$host_os in
20787 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20788 library_names_spec='$libname.dll.a'
20789 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20790 postinstall_cmds='base_file=`basename \${file}`~
20791 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20792 dldir=$destdir/`dirname \$dlpath`~
20793 test -d \$dldir || mkdir -p \$dldir~
20794 $install_prog $dir/$dlname \$dldir/$dlname~
20795 chmod a+x \$dldir/$dlname~
20796 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20797 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20799 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20800 dlpath=$dir/\$dldll~
20801 $RM \$dlpath'
20802 shlibpath_overrides_runpath=yes
20804 case $host_os in
20805 cygwin*)
20806 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20807 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20810 mingw* | cegcc*)
20811 # MinGW DLLs use traditional 'lib' prefix
20812 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20814 pw32*)
20815 # pw32 DLLs use 'pw' prefix rather than 'lib'
20816 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20818 esac
20822 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20824 esac
20825 dynamic_linker='Win32 ld.exe'
20826 # FIXME: first we should search . and the directory the executable is in
20827 shlibpath_var=PATH
20830 darwin* | rhapsody*)
20831 dynamic_linker="$host_os dyld"
20832 version_type=darwin
20833 need_lib_prefix=no
20834 need_version=no
20835 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20836 soname_spec='${libname}${release}${major}$shared_ext'
20837 shlibpath_overrides_runpath=yes
20838 shlibpath_var=DYLD_LIBRARY_PATH
20839 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20841 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20844 dgux*)
20845 version_type=linux
20846 need_lib_prefix=no
20847 need_version=no
20848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20849 soname_spec='${libname}${release}${shared_ext}$major'
20850 shlibpath_var=LD_LIBRARY_PATH
20853 freebsd* | dragonfly*)
20854 # DragonFly does not have aout. When/if they implement a new
20855 # versioning mechanism, adjust this.
20856 if test -x /usr/bin/objformat; then
20857 objformat=`/usr/bin/objformat`
20858 else
20859 case $host_os in
20860 freebsd[23].*) objformat=aout ;;
20861 *) objformat=elf ;;
20862 esac
20864 version_type=freebsd-$objformat
20865 case $version_type in
20866 freebsd-elf*)
20867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20868 need_version=no
20869 need_lib_prefix=no
20871 freebsd-*)
20872 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20873 need_version=yes
20875 esac
20876 shlibpath_var=LD_LIBRARY_PATH
20877 case $host_os in
20878 freebsd2.*)
20879 shlibpath_overrides_runpath=yes
20881 freebsd3.[01]* | freebsdelf3.[01]*)
20882 shlibpath_overrides_runpath=yes
20883 hardcode_into_libs=yes
20885 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20886 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20887 shlibpath_overrides_runpath=no
20888 hardcode_into_libs=yes
20890 *) # from 4.6 on, and DragonFly
20891 shlibpath_overrides_runpath=yes
20892 hardcode_into_libs=yes
20894 esac
20897 gnu*)
20898 version_type=linux
20899 need_lib_prefix=no
20900 need_version=no
20901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20902 soname_spec='${libname}${release}${shared_ext}$major'
20903 shlibpath_var=LD_LIBRARY_PATH
20904 hardcode_into_libs=yes
20907 haiku*)
20908 version_type=linux
20909 need_lib_prefix=no
20910 need_version=no
20911 dynamic_linker="$host_os runtime_loader"
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 shlibpath_var=LIBRARY_PATH
20915 shlibpath_overrides_runpath=yes
20916 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20917 hardcode_into_libs=yes
20920 hpux9* | hpux10* | hpux11*)
20921 # Give a soname corresponding to the major version so that dld.sl refuses to
20922 # link against other versions.
20923 version_type=sunos
20924 need_lib_prefix=no
20925 need_version=no
20926 case $host_cpu in
20927 ia64*)
20928 shrext_cmds='.so'
20929 hardcode_into_libs=yes
20930 dynamic_linker="$host_os dld.so"
20931 shlibpath_var=LD_LIBRARY_PATH
20932 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20934 soname_spec='${libname}${release}${shared_ext}$major'
20935 if test "X$HPUX_IA64_MODE" = X32; then
20936 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20937 else
20938 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20940 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20942 hppa*64*)
20943 shrext_cmds='.sl'
20944 hardcode_into_libs=yes
20945 dynamic_linker="$host_os dld.sl"
20946 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20947 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20949 soname_spec='${libname}${release}${shared_ext}$major'
20950 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20951 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20954 shrext_cmds='.sl'
20955 dynamic_linker="$host_os dld.sl"
20956 shlibpath_var=SHLIB_PATH
20957 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20959 soname_spec='${libname}${release}${shared_ext}$major'
20961 esac
20962 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20963 postinstall_cmds='chmod 555 $lib'
20964 # or fails outright, so override atomically:
20965 install_override_mode=555
20968 interix[3-9]*)
20969 version_type=linux
20970 need_lib_prefix=no
20971 need_version=no
20972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20973 soname_spec='${libname}${release}${shared_ext}$major'
20974 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20975 shlibpath_var=LD_LIBRARY_PATH
20976 shlibpath_overrides_runpath=no
20977 hardcode_into_libs=yes
20980 irix5* | irix6* | nonstopux*)
20981 case $host_os in
20982 nonstopux*) version_type=nonstopux ;;
20984 if test "$lt_cv_prog_gnu_ld" = yes; then
20985 version_type=linux
20986 else
20987 version_type=irix
20988 fi ;;
20989 esac
20990 need_lib_prefix=no
20991 need_version=no
20992 soname_spec='${libname}${release}${shared_ext}$major'
20993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20994 case $host_os in
20995 irix5* | nonstopux*)
20996 libsuff= shlibsuff=
20999 case $LD in # libtool.m4 will add one of these switches to LD
21000 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21001 libsuff= shlibsuff= libmagic=32-bit;;
21002 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21003 libsuff=32 shlibsuff=N32 libmagic=N32;;
21004 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21005 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21006 *) libsuff= shlibsuff= libmagic=never-match;;
21007 esac
21009 esac
21010 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21011 shlibpath_overrides_runpath=no
21012 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21013 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21014 hardcode_into_libs=yes
21017 # No shared lib support for Linux oldld, aout, or coff.
21018 linux*oldld* | linux*aout* | linux*coff*)
21019 dynamic_linker=no
21022 # This must be Linux ELF.
21023 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21024 version_type=linux
21025 need_lib_prefix=no
21026 need_version=no
21027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21028 soname_spec='${libname}${release}${shared_ext}$major'
21029 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21030 shlibpath_var=LD_LIBRARY_PATH
21031 shlibpath_overrides_runpath=no
21033 # Some binutils ld are patched to set DT_RUNPATH
21034 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21035 $as_echo_n "(cached) " >&6
21036 else
21037 lt_cv_shlibpath_overrides_runpath=no
21038 save_LDFLAGS=$LDFLAGS
21039 save_libdir=$libdir
21040 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21041 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21043 /* end confdefs.h. */
21046 main ()
21050 return 0;
21052 _ACEOF
21053 if ac_fn_cxx_try_link "$LINENO"; then :
21054 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21055 lt_cv_shlibpath_overrides_runpath=yes
21058 rm -f core conftest.err conftest.$ac_objext \
21059 conftest$ac_exeext conftest.$ac_ext
21060 LDFLAGS=$save_LDFLAGS
21061 libdir=$save_libdir
21065 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21067 # This implies no fast_install, which is unacceptable.
21068 # Some rework will be needed to allow for fast_install
21069 # before this can be enabled.
21070 hardcode_into_libs=yes
21072 # Append ld.so.conf contents to the search path
21073 if test -f /etc/ld.so.conf; then
21074 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' ' '`
21075 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21078 # We used to test for /lib/ld.so.1 and disable shared libraries on
21079 # powerpc, because MkLinux only supported shared libraries with the
21080 # GNU dynamic linker. Since this was broken with cross compilers,
21081 # most powerpc-linux boxes support dynamic linking these days and
21082 # people can always --disable-shared, the test was removed, and we
21083 # assume the GNU/Linux dynamic linker is in use.
21084 dynamic_linker='GNU/Linux ld.so'
21087 netbsd*)
21088 version_type=sunos
21089 need_lib_prefix=no
21090 need_version=no
21091 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21093 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21094 dynamic_linker='NetBSD (a.out) ld.so'
21095 else
21096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21097 soname_spec='${libname}${release}${shared_ext}$major'
21098 dynamic_linker='NetBSD ld.elf_so'
21100 shlibpath_var=LD_LIBRARY_PATH
21101 shlibpath_overrides_runpath=yes
21102 hardcode_into_libs=yes
21105 newsos6)
21106 version_type=linux
21107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21108 shlibpath_var=LD_LIBRARY_PATH
21109 shlibpath_overrides_runpath=yes
21112 *nto* | *qnx*)
21113 version_type=qnx
21114 need_lib_prefix=no
21115 need_version=no
21116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21117 soname_spec='${libname}${release}${shared_ext}$major'
21118 shlibpath_var=LD_LIBRARY_PATH
21119 shlibpath_overrides_runpath=no
21120 hardcode_into_libs=yes
21121 dynamic_linker='ldqnx.so'
21124 openbsd*)
21125 version_type=sunos
21126 sys_lib_dlsearch_path_spec="/usr/lib"
21127 need_lib_prefix=no
21128 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21129 case $host_os in
21130 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21131 *) need_version=no ;;
21132 esac
21133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21134 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21135 shlibpath_var=LD_LIBRARY_PATH
21136 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21137 case $host_os in
21138 openbsd2.[89] | openbsd2.[89].*)
21139 shlibpath_overrides_runpath=no
21142 shlibpath_overrides_runpath=yes
21144 esac
21145 else
21146 shlibpath_overrides_runpath=yes
21150 os2*)
21151 libname_spec='$name'
21152 shrext_cmds=".dll"
21153 need_lib_prefix=no
21154 library_names_spec='$libname${shared_ext} $libname.a'
21155 dynamic_linker='OS/2 ld.exe'
21156 shlibpath_var=LIBPATH
21159 osf3* | osf4* | osf5*)
21160 version_type=osf
21161 need_lib_prefix=no
21162 need_version=no
21163 soname_spec='${libname}${release}${shared_ext}$major'
21164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21165 shlibpath_var=LD_LIBRARY_PATH
21166 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21167 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21170 rdos*)
21171 dynamic_linker=no
21174 solaris*)
21175 version_type=linux
21176 need_lib_prefix=no
21177 need_version=no
21178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21179 soname_spec='${libname}${release}${shared_ext}$major'
21180 shlibpath_var=LD_LIBRARY_PATH
21181 shlibpath_overrides_runpath=yes
21182 hardcode_into_libs=yes
21183 # ldd complains unless libraries are executable
21184 postinstall_cmds='chmod +x $lib'
21187 sunos4*)
21188 version_type=sunos
21189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21190 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21191 shlibpath_var=LD_LIBRARY_PATH
21192 shlibpath_overrides_runpath=yes
21193 if test "$with_gnu_ld" = yes; then
21194 need_lib_prefix=no
21196 need_version=yes
21199 sysv4 | sysv4.3*)
21200 version_type=linux
21201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21202 soname_spec='${libname}${release}${shared_ext}$major'
21203 shlibpath_var=LD_LIBRARY_PATH
21204 case $host_vendor in
21205 sni)
21206 shlibpath_overrides_runpath=no
21207 need_lib_prefix=no
21208 runpath_var=LD_RUN_PATH
21210 siemens)
21211 need_lib_prefix=no
21213 motorola)
21214 need_lib_prefix=no
21215 need_version=no
21216 shlibpath_overrides_runpath=no
21217 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21219 esac
21222 sysv4*MP*)
21223 if test -d /usr/nec ;then
21224 version_type=linux
21225 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21226 soname_spec='$libname${shared_ext}.$major'
21227 shlibpath_var=LD_LIBRARY_PATH
21231 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21232 version_type=freebsd-elf
21233 need_lib_prefix=no
21234 need_version=no
21235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21236 soname_spec='${libname}${release}${shared_ext}$major'
21237 shlibpath_var=LD_LIBRARY_PATH
21238 shlibpath_overrides_runpath=yes
21239 hardcode_into_libs=yes
21240 if test "$with_gnu_ld" = yes; then
21241 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21242 else
21243 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21244 case $host_os in
21245 sco3.2v5*)
21246 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21248 esac
21250 sys_lib_dlsearch_path_spec='/usr/lib'
21253 tpf*)
21254 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21255 version_type=linux
21256 need_lib_prefix=no
21257 need_version=no
21258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21259 shlibpath_var=LD_LIBRARY_PATH
21260 shlibpath_overrides_runpath=no
21261 hardcode_into_libs=yes
21264 uts4*)
21265 version_type=linux
21266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21267 soname_spec='${libname}${release}${shared_ext}$major'
21268 shlibpath_var=LD_LIBRARY_PATH
21272 dynamic_linker=no
21274 esac
21275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21276 $as_echo "$dynamic_linker" >&6; }
21277 test "$dynamic_linker" = no && can_build_shared=no
21279 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21280 if test "$GCC" = yes; then
21281 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21284 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21285 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21287 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21288 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21329 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21330 hardcode_action_CXX=
21331 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21332 test -n "$runpath_var_CXX" ||
21333 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21335 # We can hardcode non-existent directories.
21336 if test "$hardcode_direct_CXX" != no &&
21337 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21338 # have to relink, otherwise we might link with an installed library
21339 # when we should be linking with a yet-to-be-installed one
21340 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21341 test "$hardcode_minus_L_CXX" != no; then
21342 # Linking always hardcodes the temporary library directory.
21343 hardcode_action_CXX=relink
21344 else
21345 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21346 hardcode_action_CXX=immediate
21348 else
21349 # We cannot hardcode anything, or else we can only hardcode existing
21350 # directories.
21351 hardcode_action_CXX=unsupported
21353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21354 $as_echo "$hardcode_action_CXX" >&6; }
21356 if test "$hardcode_action_CXX" = relink ||
21357 test "$inherit_rpath_CXX" = yes; then
21358 # Fast installation is not supported
21359 enable_fast_install=no
21360 elif test "$shlibpath_overrides_runpath" = yes ||
21361 test "$enable_shared" = no; then
21362 # Fast installation is not necessary
21363 enable_fast_install=needless
21372 fi # test -n "$compiler"
21374 CC=$lt_save_CC
21375 LDCXX=$LD
21376 LD=$lt_save_LD
21377 GCC=$lt_save_GCC
21378 with_gnu_ld=$lt_save_with_gnu_ld
21379 lt_cv_path_LDCXX=$lt_cv_path_LD
21380 lt_cv_path_LD=$lt_save_path_LD
21381 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21382 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21383 fi # test "$_lt_caught_CXX_error" != yes
21385 ac_ext=c
21386 ac_cpp='$CPP $CPPFLAGS'
21387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21406 # Only expand once:
21412 # Identify the assembler which will work hand-in-glove with the newly
21413 # built GCC, so that we can examine its features. This is the assembler
21414 # which will be driven by the driver program.
21416 # If build != host, and we aren't building gas in-tree, we identify a
21417 # build->target assembler and hope that it will have the same features
21418 # as the host->target assembler we'll be using.
21419 gcc_cv_gas_major_version=
21420 gcc_cv_gas_minor_version=
21421 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21423 if test "${gcc_cv_as+set}" = set; then :
21425 else
21427 if test -x "$DEFAULT_ASSEMBLER"; then
21428 gcc_cv_as="$DEFAULT_ASSEMBLER"
21429 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21430 && test -f ../gas/Makefile \
21431 && test x$build = x$host; then
21432 gcc_cv_as=../gas/as-new$build_exeext
21433 elif test -x as$build_exeext; then
21434 # Build using assembler in the current directory.
21435 gcc_cv_as=./as$build_exeext
21436 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21437 gcc_cv_as="$AS_FOR_TARGET"
21438 else
21439 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21440 set dummy $AS_FOR_TARGET; ac_word=$2
21441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21442 $as_echo_n "checking for $ac_word... " >&6; }
21443 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21444 $as_echo_n "(cached) " >&6
21445 else
21446 case $gcc_cv_as in
21447 [\\/]* | ?:[\\/]*)
21448 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21452 for as_dir in $PATH
21454 IFS=$as_save_IFS
21455 test -z "$as_dir" && as_dir=.
21456 for ac_exec_ext in '' $ac_executable_extensions; do
21457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21458 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21460 break 2
21462 done
21463 done
21464 IFS=$as_save_IFS
21467 esac
21469 gcc_cv_as=$ac_cv_path_gcc_cv_as
21470 if test -n "$gcc_cv_as"; then
21471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21472 $as_echo "$gcc_cv_as" >&6; }
21473 else
21474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21475 $as_echo "no" >&6; }
21482 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21484 case "$ORIGINAL_AS_FOR_TARGET" in
21485 ./as | ./as$build_exeext) ;;
21486 *) ac_config_files="$ac_config_files as:exec-tool.in"
21488 esac
21490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21491 $as_echo_n "checking what assembler to use... " >&6; }
21492 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21493 # Single tree build which includes gas. We want to prefer it
21494 # over whatever linker top-level may have detected, since
21495 # we'll use what we're building after installation anyway.
21496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21497 $as_echo "newly built gas" >&6; }
21498 in_tree_gas=yes
21499 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21500 for f in $gcc_cv_as_bfd_srcdir/configure \
21501 $gcc_cv_as_gas_srcdir/configure \
21502 $gcc_cv_as_gas_srcdir/configure.in \
21503 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21504 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21505 if test x$gcc_cv_gas_version != x; then
21506 break
21508 done
21509 case $gcc_cv_gas_version in
21510 VERSION=[0-9]*) ;;
21511 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21512 esac
21513 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21514 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21515 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21516 case $gcc_cv_gas_patch_version in
21517 "") gcc_cv_gas_patch_version="0" ;;
21518 esac
21519 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21520 + $gcc_cv_gas_minor_version \) \* 1000 \
21521 + $gcc_cv_gas_patch_version`
21523 in_tree_gas_is_elf=no
21524 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21525 || (grep 'obj_format = multi' ../gas/Makefile \
21526 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21527 then
21528 in_tree_gas_is_elf=yes
21530 else
21531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21532 $as_echo "$gcc_cv_as" >&6; }
21533 in_tree_gas=no
21536 default_ld=
21537 # Check whether --enable-ld was given.
21538 if test "${enable_ld+set}" = set; then :
21539 enableval=$enable_ld; case "${enableval}" in
21541 default_ld=ld.gold
21543 esac
21547 install_gold_as_default=no
21548 # Check whether --enable-gold was given.
21549 if test "${enable_gold+set}" = set; then :
21550 enableval=$enable_gold; case "${enableval}" in
21551 default)
21552 install_gold_as_default=yes
21554 yes)
21555 if test x${default_ld} != x; then
21556 install_gold_as_default=yes
21562 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21564 esac
21568 # Identify the linker which will work hand-in-glove with the newly
21569 # built GCC, so that we can examine its features. This is the linker
21570 # which will be driven by the driver program.
21572 # If build != host, and we aren't building gas in-tree, we identify a
21573 # build->target linker and hope that it will have the same features
21574 # as the host->target linker we'll be using.
21575 gcc_cv_gld_major_version=
21576 gcc_cv_gld_minor_version=
21577 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21578 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21579 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21581 if test "${gcc_cv_ld+set}" = set; then :
21583 else
21585 if test -x "$DEFAULT_LINKER"; then
21586 gcc_cv_ld="$DEFAULT_LINKER"
21587 elif test $install_gold_as_default = yes \
21588 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21589 && test -f ../gold/Makefile \
21590 && test x$build = x$host; then
21591 gcc_cv_ld=../gold/ld-new$build_exeext
21592 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21593 && test -f ../ld/Makefile \
21594 && test x$build = x$host; then
21595 gcc_cv_ld=../ld/ld-new$build_exeext
21596 elif test -x collect-ld$build_exeext; then
21597 # Build using linker in the current directory.
21598 gcc_cv_ld=./collect-ld$build_exeext
21599 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21600 gcc_cv_ld="$LD_FOR_TARGET"
21601 else
21602 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21603 set dummy $LD_FOR_TARGET; ac_word=$2
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21605 $as_echo_n "checking for $ac_word... " >&6; }
21606 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21607 $as_echo_n "(cached) " >&6
21608 else
21609 case $gcc_cv_ld in
21610 [\\/]* | ?:[\\/]*)
21611 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21615 for as_dir in $PATH
21617 IFS=$as_save_IFS
21618 test -z "$as_dir" && as_dir=.
21619 for ac_exec_ext in '' $ac_executable_extensions; do
21620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21621 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21623 break 2
21625 done
21626 done
21627 IFS=$as_save_IFS
21630 esac
21632 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21633 if test -n "$gcc_cv_ld"; then
21634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21635 $as_echo "$gcc_cv_ld" >&6; }
21636 else
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21638 $as_echo "no" >&6; }
21645 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21646 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21647 # if the PLUGIN_LD is set ld-new, just have it as ld
21648 # as that is the installed named.
21649 if test x$PLUGIN_LD_SUFFIX = xld-new \
21650 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21651 PLUGIN_LD_SUFFIX=ld
21654 # Check whether --with-plugin-ld was given.
21655 if test "${with_plugin_ld+set}" = set; then :
21656 withval=$with_plugin_ld; if test x"$withval" != x; then
21657 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21658 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21664 cat >>confdefs.h <<_ACEOF
21665 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21666 _ACEOF
21669 # Check to see if we are using gold instead of ld
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21671 $as_echo_n "checking whether we are using gold... " >&6; }
21672 ld_is_gold=no
21673 if test x$gcc_cv_ld != x; then
21674 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21675 | grep "GNU gold" > /dev/null; then
21676 ld_is_gold=yes
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21680 $as_echo "$ld_is_gold" >&6; }
21682 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21684 case "$ORIGINAL_LD_FOR_TARGET" in
21685 ./collect-ld | ./collect-ld$build_exeext) ;;
21686 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21688 esac
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21691 $as_echo_n "checking what linker to use... " >&6; }
21692 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21693 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21694 # Single tree build which includes ld. We want to prefer it
21695 # over whatever linker top-level may have detected, since
21696 # we'll use what we're building after installation anyway.
21697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21698 $as_echo "newly built ld" >&6; }
21699 in_tree_ld=yes
21700 in_tree_ld_is_elf=no
21701 if (grep 'EMUL = .*elf' ../ld/Makefile \
21702 || grep 'EMUL = .*linux' ../ld/Makefile \
21703 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21704 in_tree_ld_is_elf=yes
21705 elif test "$ld_is_gold" = yes; then
21706 in_tree_ld_is_elf=yes
21708 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
21710 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21711 if test x$gcc_cv_gld_version != x; then
21712 break
21714 done
21715 case $gcc_cv_gld_version in
21716 VERSION=[0-9]*) ;;
21717 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21718 esac
21719 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21720 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21721 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
21722 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
21723 else
21724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21725 $as_echo "$gcc_cv_ld" >&6; }
21726 in_tree_ld=no
21727 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21728 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
21729 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
21735 # Figure out what nm we will be using.
21736 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21737 if test "${gcc_cv_nm+set}" = set; then :
21739 else
21741 if test -f $gcc_cv_binutils_srcdir/configure.in \
21742 && test -f ../binutils/Makefile \
21743 && test x$build = x$host; then
21744 gcc_cv_nm=../binutils/nm-new$build_exeext
21745 elif test -x nm$build_exeext; then
21746 gcc_cv_nm=./nm$build_exeext
21747 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21748 gcc_cv_nm="$NM_FOR_TARGET"
21749 else
21750 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21751 set dummy $NM_FOR_TARGET; ac_word=$2
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21753 $as_echo_n "checking for $ac_word... " >&6; }
21754 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21755 $as_echo_n "(cached) " >&6
21756 else
21757 case $gcc_cv_nm in
21758 [\\/]* | ?:[\\/]*)
21759 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21763 for as_dir in $PATH
21765 IFS=$as_save_IFS
21766 test -z "$as_dir" && as_dir=.
21767 for ac_exec_ext in '' $ac_executable_extensions; do
21768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21769 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21771 break 2
21773 done
21774 done
21775 IFS=$as_save_IFS
21778 esac
21780 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21781 if test -n "$gcc_cv_nm"; then
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21783 $as_echo "$gcc_cv_nm" >&6; }
21784 else
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21786 $as_echo "no" >&6; }
21793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21794 $as_echo_n "checking what nm to use... " >&6; }
21795 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21796 # Single tree build which includes binutils.
21797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21798 $as_echo "newly built nm" >&6; }
21799 in_tree_nm=yes
21800 else
21801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21802 $as_echo "$gcc_cv_nm" >&6; }
21803 in_tree_nm=no
21806 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21808 case "$ORIGINAL_NM_FOR_TARGET" in
21809 ./nm | ./nm$build_exeext) ;;
21810 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21812 esac
21815 # Figure out what objdump we will be using.
21816 if test "${gcc_cv_objdump+set}" = set; then :
21818 else
21820 if test -f $gcc_cv_binutils_srcdir/configure.in \
21821 && test -f ../binutils/Makefile \
21822 && test x$build = x$host; then
21823 # Single tree build which includes binutils.
21824 gcc_cv_objdump=../binutils/objdump$build_exeext
21825 elif test -x objdump$build_exeext; then
21826 gcc_cv_objdump=./objdump$build_exeext
21827 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21828 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21829 else
21830 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21831 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21833 $as_echo_n "checking for $ac_word... " >&6; }
21834 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21835 $as_echo_n "(cached) " >&6
21836 else
21837 case $gcc_cv_objdump in
21838 [\\/]* | ?:[\\/]*)
21839 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21843 for as_dir in $PATH
21845 IFS=$as_save_IFS
21846 test -z "$as_dir" && as_dir=.
21847 for ac_exec_ext in '' $ac_executable_extensions; do
21848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21849 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21851 break 2
21853 done
21854 done
21855 IFS=$as_save_IFS
21858 esac
21860 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21861 if test -n "$gcc_cv_objdump"; then
21862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21863 $as_echo "$gcc_cv_objdump" >&6; }
21864 else
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21866 $as_echo "no" >&6; }
21873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21874 $as_echo_n "checking what objdump to use... " >&6; }
21875 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21876 # Single tree build which includes binutils.
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21878 $as_echo "newly built objdump" >&6; }
21879 elif test x$gcc_cv_objdump = x; then
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21881 $as_echo "not found" >&6; }
21882 else
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21884 $as_echo "$gcc_cv_objdump" >&6; }
21887 # Figure out what readelf we will be using.
21888 if test "${gcc_cv_readelf+set}" = set; then :
21890 else
21892 if test -f $gcc_cv_binutils_srcdir/configure.in \
21893 && test -f ../binutils/Makefile \
21894 && test x$build = x$host; then
21895 # Single tree build which includes binutils.
21896 gcc_cv_readelf=../binutils/readelf$build_exeext
21897 elif test -x readelf$build_exeext; then
21898 gcc_cv_readelf=./readelf$build_exeext
21899 else
21900 # Extract the first word of "readelf", so it can be a program name with args.
21901 set dummy readelf; ac_word=$2
21902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21903 $as_echo_n "checking for $ac_word... " >&6; }
21904 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21905 $as_echo_n "(cached) " >&6
21906 else
21907 case $gcc_cv_readelf in
21908 [\\/]* | ?:[\\/]*)
21909 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21913 for as_dir in $PATH
21915 IFS=$as_save_IFS
21916 test -z "$as_dir" && as_dir=.
21917 for ac_exec_ext in '' $ac_executable_extensions; do
21918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21919 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21921 break 2
21923 done
21924 done
21925 IFS=$as_save_IFS
21928 esac
21930 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21931 if test -n "$gcc_cv_readelf"; then
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21933 $as_echo "$gcc_cv_readelf" >&6; }
21934 else
21935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21936 $as_echo "no" >&6; }
21943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21944 $as_echo_n "checking what readelf to use... " >&6; }
21945 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21946 # Single tree build which includes binutils.
21947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21948 $as_echo "newly built readelf" >&6; }
21949 elif test x$gcc_cv_readelf = x; then
21950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21951 $as_echo "not found" >&6; }
21952 else
21953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21954 $as_echo "$gcc_cv_readelf" >&6; }
21957 # Figure out what assembler alignment features are present.
21958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21959 $as_echo_n "checking assembler flags... " >&6; }
21960 if test "${gcc_cv_as_flags+set}" = set; then :
21961 $as_echo_n "(cached) " >&6
21962 else
21963 case "$target" in
21964 i[34567]86-*-linux*)
21965 gcc_cv_as_flags=--32
21967 x86_64-*-linux-gnux32)
21968 gcc_cv_as_flags=--x32
21970 x86_64-*-linux*)
21971 gcc_cv_as_flags=--64
21973 powerpc*-*-darwin*)
21974 gcc_cv_as_flags="-arch ppc"
21977 gcc_cv_as_flags=" "
21979 esac
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21982 $as_echo "$gcc_cv_as_flags" >&6; }
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21985 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21986 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21987 $as_echo_n "(cached) " >&6
21988 else
21989 gcc_cv_as_balign_and_p2align=no
21990 if test $in_tree_gas = yes; then
21991 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21992 then gcc_cv_as_balign_and_p2align=yes
21994 elif test x$gcc_cv_as != x; then
21995 $as_echo '.balign 4
21996 .p2align 2' > 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_balign_and_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_balign_and_p2align" >&5
22013 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22014 if test $gcc_cv_as_balign_and_p2align = yes; then
22016 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22021 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22022 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22023 $as_echo_n "(cached) " >&6
22024 else
22025 gcc_cv_as_max_skip_p2align=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_max_skip_p2align=yes
22030 elif test x$gcc_cv_as != x; then
22031 $as_echo '.p2align 4,,7' > 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_max_skip_p2align=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_max_skip_p2align" >&5
22048 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22049 if test $gcc_cv_as_max_skip_p2align = yes; then
22051 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22056 $as_echo_n "checking assembler for .literal16... " >&6; }
22057 if test "${gcc_cv_as_literal16+set}" = set; then :
22058 $as_echo_n "(cached) " >&6
22059 else
22060 gcc_cv_as_literal16=no
22061 if test $in_tree_gas = yes; then
22062 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22063 then gcc_cv_as_literal16=yes
22065 elif test x$gcc_cv_as != x; then
22066 $as_echo '.literal16' > conftest.s
22067 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22069 (eval $ac_try) 2>&5
22070 ac_status=$?
22071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22072 test $ac_status = 0; }; }
22073 then
22074 gcc_cv_as_literal16=yes
22075 else
22076 echo "configure: failed program was" >&5
22077 cat conftest.s >&5
22079 rm -f conftest.o conftest.s
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22083 $as_echo "$gcc_cv_as_literal16" >&6; }
22084 if test $gcc_cv_as_literal16 = yes; then
22086 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22091 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22092 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22093 $as_echo_n "(cached) " >&6
22094 else
22095 gcc_cv_as_subsection_m1=no
22096 if test $in_tree_gas = yes; then
22097 if test $in_tree_gas_is_elf = yes \
22098 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22099 then gcc_cv_as_subsection_m1=yes
22101 elif test x$gcc_cv_as != x; then
22102 $as_echo 'conftest_label1: .word 0
22103 .subsection -1
22104 conftest_label2: .word 0
22105 .previous' > conftest.s
22106 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22108 (eval $ac_try) 2>&5
22109 ac_status=$?
22110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22111 test $ac_status = 0; }; }
22112 then
22113 if test x$gcc_cv_nm != x; then
22114 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22115 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22116 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22117 then :
22118 else gcc_cv_as_subsection_m1=yes
22120 rm -f conftest.nm1 conftest.nm2
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_subsection_m1" >&5
22130 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22131 if test $gcc_cv_as_subsection_m1 = yes; then
22133 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22138 $as_echo_n "checking assembler for .weak... " >&6; }
22139 if test "${gcc_cv_as_weak+set}" = set; then :
22140 $as_echo_n "(cached) " >&6
22141 else
22142 gcc_cv_as_weak=no
22143 if test $in_tree_gas = yes; then
22144 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22145 then gcc_cv_as_weak=yes
22147 elif test x$gcc_cv_as != x; then
22148 $as_echo ' .weak foobar' > 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_weak=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_weak" >&5
22165 $as_echo "$gcc_cv_as_weak" >&6; }
22166 if test $gcc_cv_as_weak = yes; then
22168 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22173 $as_echo_n "checking assembler for .weakref... " >&6; }
22174 if test "${gcc_cv_as_weakref+set}" = set; then :
22175 $as_echo_n "(cached) " >&6
22176 else
22177 gcc_cv_as_weakref=no
22178 if test $in_tree_gas = yes; then
22179 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22180 then gcc_cv_as_weakref=yes
22182 elif test x$gcc_cv_as != x; then
22183 $as_echo ' .weakref foobar, barfnot' > conftest.s
22184 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22186 (eval $ac_try) 2>&5
22187 ac_status=$?
22188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22189 test $ac_status = 0; }; }
22190 then
22191 gcc_cv_as_weakref=yes
22192 else
22193 echo "configure: failed program was" >&5
22194 cat conftest.s >&5
22196 rm -f conftest.o conftest.s
22199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22200 $as_echo "$gcc_cv_as_weakref" >&6; }
22201 if test $gcc_cv_as_weakref = yes; then
22203 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22208 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22209 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22210 $as_echo_n "(cached) " >&6
22211 else
22212 gcc_cv_as_nsubspa_comdat=no
22213 if test $in_tree_gas = yes; then
22214 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22215 then gcc_cv_as_nsubspa_comdat=yes
22217 elif test x$gcc_cv_as != x; then
22218 $as_echo ' .SPACE $TEXT$
22219 .NSUBSPA $CODE$,COMDAT' > conftest.s
22220 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22222 (eval $ac_try) 2>&5
22223 ac_status=$?
22224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22225 test $ac_status = 0; }; }
22226 then
22227 gcc_cv_as_nsubspa_comdat=yes
22228 else
22229 echo "configure: failed program was" >&5
22230 cat conftest.s >&5
22232 rm -f conftest.o conftest.s
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22236 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22237 if test $gcc_cv_as_nsubspa_comdat = yes; then
22239 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22243 # .hidden needs to be supported in both the assembler and the linker,
22244 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22245 # This is irritatingly difficult to feature test for; we have to check the
22246 # date string after the version number. If we've got an in-tree
22247 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22248 # to be safe.
22249 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22251 $as_echo_n "checking assembler for .hidden... " >&6; }
22252 if test "${gcc_cv_as_hidden+set}" = set; then :
22253 $as_echo_n "(cached) " >&6
22254 else
22255 gcc_cv_as_hidden=no
22256 if test $in_tree_gas = yes; then
22257 if test $in_tree_gas_is_elf = yes \
22258 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22259 then gcc_cv_as_hidden=yes
22261 elif test x$gcc_cv_as != x; then
22262 $as_echo ' .hidden foobar
22263 foobar:' > conftest.s
22264 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22266 (eval $ac_try) 2>&5
22267 ac_status=$?
22268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22269 test $ac_status = 0; }; }
22270 then
22271 gcc_cv_as_hidden=yes
22272 else
22273 echo "configure: failed program was" >&5
22274 cat conftest.s >&5
22276 rm -f conftest.o conftest.s
22279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22280 $as_echo "$gcc_cv_as_hidden" >&6; }
22282 case "${target}" in
22283 *-*-darwin*)
22284 # Darwin as has some visibility support, though with a different syntax.
22285 gcc_cv_as_hidden=yes
22287 esac
22289 # gnu_indirect_function type is an extension proposed at
22290 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22291 # selection of function implementation
22292 # Check whether --enable-gnu-indirect-function was given.
22293 if test "${enable_gnu_indirect_function+set}" = set; then :
22294 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22295 yes | no) ;;
22296 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22297 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22298 esac
22299 else
22300 enable_gnu_indirect_function="$default_gnu_indirect_function"
22304 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22306 cat >>confdefs.h <<_ACEOF
22307 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22308 _ACEOF
22312 if test $in_tree_ld != yes ; then
22313 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22314 if echo "$ld_ver" | grep GNU > /dev/null; then
22315 if test x"$ld_is_gold" = xyes; then
22316 # GNU gold --version looks like this:
22318 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22320 # We extract the binutils version which is more familiar and specific
22321 # than the gold version.
22322 ld_vers=`echo $ld_ver | sed -n \
22323 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22324 else
22325 # GNU ld --version looks like this:
22327 # GNU ld (GNU Binutils) 2.21.51.20110225
22328 ld_vers=`echo $ld_ver | sed -n \
22329 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22331 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'`
22332 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22333 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22334 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22335 else
22336 case "${target}" in
22337 *-*-solaris2*)
22338 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22339 # format.
22341 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22342 # /usr/ccs/bin/ld has been configured.
22343 ld_ver=`$gcc_cv_ld -V 2>&1`
22344 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22345 ld_vers=`echo $ld_ver | sed -n \
22346 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22347 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22348 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22351 esac
22355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22356 $as_echo_n "checking linker for .hidden support... " >&6; }
22357 if test "${gcc_cv_ld_hidden+set}" = set; then :
22358 $as_echo_n "(cached) " >&6
22359 else
22360 if test $in_tree_ld = yes ; then
22361 gcc_cv_ld_hidden=no
22362 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 \
22363 && test $in_tree_ld_is_elf = yes; then
22364 gcc_cv_ld_hidden=yes
22366 else
22367 gcc_cv_ld_hidden=yes
22368 if test x"$ld_is_gold" = xyes; then
22370 elif echo "$ld_ver" | grep GNU > /dev/null; then
22371 case "${target}" in
22372 mmix-knuth-mmixware)
22373 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22374 gcc_cv_ld_hidden=no
22376 esac
22377 if test 0"$ld_date" -lt 20020404; then
22378 if test -n "$ld_date"; then
22379 # If there was date string, but was earlier than 2002-04-04, fail
22380 gcc_cv_ld_hidden=no
22381 elif test -z "$ld_vers"; then
22382 # If there was no date string nor ld version number, something is wrong
22383 gcc_cv_ld_hidden=no
22384 else
22385 test -z "$ld_vers_patch" && ld_vers_patch=0
22386 if test "$ld_vers_major" -lt 2; then
22387 gcc_cv_ld_hidden=no
22388 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22389 gcc_cv_ld_hidden="no"
22390 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22391 gcc_cv_ld_hidden=no
22395 else
22396 case "${target}" in
22397 *-*-darwin*)
22398 # Darwin ld has some visibility support.
22399 gcc_cv_ld_hidden=yes
22401 hppa64*-*-hpux* | ia64*-*-hpux*)
22402 gcc_cv_ld_hidden=yes
22404 *-*-solaris2.1[0-9]*)
22405 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22406 # .symbolic was only added in Solaris 9 12/02.
22407 gcc_cv_ld_hidden=yes
22410 gcc_cv_ld_hidden=no
22412 esac
22416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22417 $as_echo "$gcc_cv_ld_hidden" >&6; }
22418 libgcc_visibility=no
22421 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22422 libgcc_visibility=yes
22424 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22429 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22430 gcc_cv_ld_ro_rw_mix=unknown
22431 if test $in_tree_ld = yes ; then
22432 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 \
22433 && test $in_tree_ld_is_elf = yes; then
22434 gcc_cv_ld_ro_rw_mix=read-write
22436 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22437 echo '.section myfoosect, "a"' > conftest1.s
22438 echo '.section myfoosect, "aw"' > conftest2.s
22439 echo '.byte 1' >> conftest2.s
22440 echo '.section myfoosect, "a"' > conftest3.s
22441 echo '.byte 0' >> conftest3.s
22442 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22443 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22444 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22445 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22446 conftest2.o conftest3.o > /dev/null 2>&1; then
22447 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22448 | sed -e '/myfoosect/!d' -e N`
22449 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22450 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22451 gcc_cv_ld_ro_rw_mix=read-only
22452 else
22453 gcc_cv_ld_ro_rw_mix=read-write
22457 rm -f conftest.* conftest[123].*
22459 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22461 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22465 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22467 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22468 case "${target}" in
22469 *-*-solaris2*)
22471 # Solaris 2 ld -V output looks like this for a regular version:
22473 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22475 # but test versions add stuff at the end:
22477 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22479 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22480 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22481 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22482 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22483 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22484 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22487 esac
22490 # Check whether --enable-initfini-array was given.
22491 if test "${enable_initfini_array+set}" = set; then :
22492 enableval=$enable_initfini_array;
22493 else
22495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22496 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22497 if test "${gcc_cv_initfini_array+set}" = set; then :
22498 $as_echo_n "(cached) " >&6
22499 else
22500 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22501 case "${target}" in
22502 ia64-*)
22503 if test "$cross_compiling" = yes; then :
22504 gcc_cv_initfini_array=no
22505 else
22506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22507 /* end confdefs.h. */
22509 #ifndef __ELF__
22510 #error Not an ELF OS
22511 #endif
22512 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22513 if it can be used. */
22514 static int x = -1;
22515 int main (void) { return x; }
22516 int foo (void) { x = 0; }
22517 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22519 _ACEOF
22520 if ac_fn_c_try_run "$LINENO"; then :
22521 gcc_cv_initfini_array=yes
22522 else
22523 gcc_cv_initfini_array=no
22525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22526 conftest.$ac_objext conftest.beam conftest.$ac_ext
22530 gcc_cv_initfini_array=no
22531 if test $in_tree_ld = yes ; then
22532 if test "$gcc_cv_gld_major_version" -eq 2 \
22533 -a "$gcc_cv_gld_minor_version" -ge 22 \
22534 -o "$gcc_cv_gld_major_version" -gt 2 \
22535 && test $in_tree_ld_is_elf = yes; then
22536 gcc_cv_initfini_array=yes
22538 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22539 cat > conftest.s <<\EOF
22540 .section .dtors,"a",%progbits
22541 .balign 4
22542 .byte 'A', 'A', 'A', 'A'
22543 .section .ctors,"a",%progbits
22544 .balign 4
22545 .byte 'B', 'B', 'B', 'B'
22546 .section .fini_array.65530,"a",%progbits
22547 .balign 4
22548 .byte 'C', 'C', 'C', 'C'
22549 .section .init_array.65530,"a",%progbits
22550 .balign 4
22551 .byte 'D', 'D', 'D', 'D'
22552 .section .dtors.64528,"a",%progbits
22553 .balign 4
22554 .byte 'E', 'E', 'E', 'E'
22555 .section .ctors.64528,"a",%progbits
22556 .balign 4
22557 .byte 'F', 'F', 'F', 'F'
22558 .section .fini_array.01005,"a",%progbits
22559 .balign 4
22560 .byte 'G', 'G', 'G', 'G'
22561 .section .init_array.01005,"a",%progbits
22562 .balign 4
22563 .byte 'H', 'H', 'H', 'H'
22564 .text
22565 .globl _start
22566 _start:
22568 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22569 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22570 && $gcc_cv_objdump -s -j .init_array conftest \
22571 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22572 && $gcc_cv_objdump -s -j .fini_array conftest \
22573 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22574 gcc_cv_initfini_array=yes
22576 rm -f conftest conftest.*
22578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22579 /* end confdefs.h. */
22581 #ifndef __ELF__
22582 # error Not an ELF OS
22583 #endif
22584 #include <stdlib.h>
22585 #if defined __GLIBC_PREREQ
22586 # if __GLIBC_PREREQ (2, 4)
22587 # else
22588 # error GLIBC 2.4 required
22589 # endif
22590 #else
22591 # if defined __sun__ && defined __svr4__
22592 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22593 # else
22594 # error The C library not known to support .init_array/.fini_array
22595 # endif
22596 #endif
22598 _ACEOF
22599 if ac_fn_c_try_cpp "$LINENO"; then :
22601 else
22602 gcc_cv_initfini_array=no
22604 rm -f conftest.err conftest.$ac_ext;;
22605 esac
22606 else
22607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22608 $as_echo_n "checking cross compile... guessing... " >&6; }
22609 gcc_cv_initfini_array=no
22612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22613 $as_echo "$gcc_cv_initfini_array" >&6; }
22614 enable_initfini_array=$gcc_cv_initfini_array
22618 if test $enable_initfini_array = yes; then
22620 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22624 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22626 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22627 if test "${gcc_cv_as_leb128+set}" = set; then :
22628 $as_echo_n "(cached) " >&6
22629 else
22630 gcc_cv_as_leb128=no
22631 if test $in_tree_gas = yes; then
22632 if test $in_tree_gas_is_elf = yes \
22633 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22634 then gcc_cv_as_leb128=yes
22636 elif test x$gcc_cv_as != x; then
22637 $as_echo ' .data
22638 .uleb128 L2 - L1
22640 .uleb128 1280
22641 .sleb128 -1010
22642 L2:' > conftest.s
22643 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22644 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22645 (eval $ac_try) 2>&5
22646 ac_status=$?
22647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22648 test $ac_status = 0; }; }
22649 then
22650 # GAS versions before 2.11 do not support uleb128,
22651 # despite appearing to.
22652 # ??? There exists an elf-specific test that will crash
22653 # the assembler. Perhaps it's better to figure out whether
22654 # arbitrary sections are supported and try the test.
22655 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22656 if echo "$as_ver" | grep GNU > /dev/null; then
22657 as_vers=`echo $as_ver | sed -n \
22658 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22659 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22660 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22661 if test $as_major -eq 2 && test $as_minor -lt 11
22662 then :
22663 else gcc_cv_as_leb128=yes
22666 else
22667 echo "configure: failed program was" >&5
22668 cat conftest.s >&5
22670 rm -f conftest.o conftest.s
22673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22674 $as_echo "$gcc_cv_as_leb128" >&6; }
22675 if test $gcc_cv_as_leb128 = yes; then
22677 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22681 # Check if we have assembler support for unwind directives.
22682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22683 $as_echo_n "checking assembler for cfi directives... " >&6; }
22684 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22685 $as_echo_n "(cached) " >&6
22686 else
22687 gcc_cv_as_cfi_directive=no
22688 if test x$gcc_cv_as != x; then
22689 $as_echo ' .text
22690 .cfi_startproc
22691 .cfi_offset 0, 0
22692 .cfi_same_value 1
22693 .cfi_def_cfa 1, 2
22694 .cfi_escape 1, 2, 3, 4, 5
22695 .cfi_endproc' > conftest.s
22696 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22698 (eval $ac_try) 2>&5
22699 ac_status=$?
22700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22701 test $ac_status = 0; }; }
22702 then
22703 case "$target" in
22704 *-*-solaris*)
22705 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22706 # read-only and read-write sections, we need to make sure that the
22707 # assembler used emits read-write .eh_frame sections.
22708 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22709 if test "x$gcc_cv_objdump" != x; then
22710 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22711 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22712 gcc_cv_as_cfi_directive=no
22713 else
22714 case "$target" in
22715 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22716 # On Solaris/x86, make sure that GCC and assembler agree on using
22717 # read-only .eh_frame sections for 64-bit.
22718 if test x$gas = xyes; then
22719 as_ix86_64_opt="--64"
22720 else
22721 as_ix86_64_opt="-xarch=amd64"
22723 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
22724 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22725 sed -e /.eh_frame/!d -e N | \
22726 grep READONLY > /dev/null; then
22727 gcc_cv_as_cfi_directive=yes
22728 else
22729 gcc_cv_as_cfi_directive=no
22733 gcc_cv_as_cfi_directive=yes
22735 esac
22737 else
22738 # no objdump, err on the side of caution
22739 gcc_cv_as_cfi_directive=no
22741 else
22742 gcc_cv_as_cfi_directive=yes
22745 *-*-*)
22746 gcc_cv_as_cfi_directive=yes
22748 esac
22749 else
22750 echo "configure: failed program was" >&5
22751 cat conftest.s >&5
22753 rm -f conftest.o conftest.s
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22757 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22759 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22761 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22762 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22763 $as_echo_n "(cached) " >&6
22764 else
22765 gcc_cv_as_cfi_advance_working=no
22766 if test x$gcc_cv_as != x; then
22767 $as_echo ' .text
22768 .cfi_startproc
22769 .cfi_adjust_cfa_offset 64
22770 .skip 75040, 0
22771 .cfi_adjust_cfa_offset 128
22772 .cfi_endproc' > conftest.s
22773 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22775 (eval $ac_try) 2>&5
22776 ac_status=$?
22777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22778 test $ac_status = 0; }; }
22779 then
22781 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22782 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22783 gcc_cv_as_cfi_advance_working=yes
22786 else
22787 echo "configure: failed program was" >&5
22788 cat conftest.s >&5
22790 rm -f conftest.o conftest.s
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22794 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22796 else
22797 # no objdump, err on the side of caution
22798 gcc_cv_as_cfi_advance_working=no
22802 cat >>confdefs.h <<_ACEOF
22803 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22804 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22805 _ACEOF
22809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22810 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22811 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22812 $as_echo_n "(cached) " >&6
22813 else
22814 gcc_cv_as_cfi_personality_directive=no
22815 if test x$gcc_cv_as != x; then
22816 $as_echo ' .text
22817 .cfi_startproc
22818 .cfi_personality 0, symbol
22819 .cfi_endproc' > conftest.s
22820 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22822 (eval $ac_try) 2>&5
22823 ac_status=$?
22824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22825 test $ac_status = 0; }; }
22826 then
22827 gcc_cv_as_cfi_personality_directive=yes
22828 else
22829 echo "configure: failed program was" >&5
22830 cat conftest.s >&5
22832 rm -f conftest.o conftest.s
22835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22836 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22839 cat >>confdefs.h <<_ACEOF
22840 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22841 then echo 1; else echo 0; fi`
22842 _ACEOF
22845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22846 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22847 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22848 $as_echo_n "(cached) " >&6
22849 else
22850 gcc_cv_as_cfi_sections_directive=no
22851 if test x$gcc_cv_as != x; then
22852 $as_echo ' .text
22853 .cfi_sections .debug_frame, .eh_frame
22854 .cfi_startproc
22855 .cfi_endproc' > conftest.s
22856 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22858 (eval $ac_try) 2>&5
22859 ac_status=$?
22860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22861 test $ac_status = 0; }; }
22862 then
22863 case $target_os in
22864 win32 | pe | cygwin* | mingw32* | uwin*)
22865 # Need to check that we generated the correct relocation for the
22866 # .debug_frame section. This was fixed for binutils 2.21.
22867 gcc_cv_as_cfi_sections_directive=no
22868 if test "x$gcc_cv_objdump" != x; then
22869 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22870 grep secrel > /dev/null; then
22871 gcc_cv_as_cfi_sections_directive=yes
22876 gcc_cv_as_cfi_sections_directive=yes
22878 esac
22879 else
22880 echo "configure: failed program was" >&5
22881 cat conftest.s >&5
22883 rm -f conftest.o conftest.s
22886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22887 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22891 cat >>confdefs.h <<_ACEOF
22892 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22893 then echo 1; else echo 0; fi`
22894 _ACEOF
22897 # GAS versions up to and including 2.11.0 may mis-optimize
22898 # .eh_frame data.
22899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22900 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22901 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22902 $as_echo_n "(cached) " >&6
22903 else
22904 gcc_cv_as_eh_frame=no
22905 if test $in_tree_gas = yes; then
22906 if test $in_tree_gas_is_elf = yes \
22907 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22908 then gcc_cv_as_eh_frame=yes
22910 elif test x$gcc_cv_as != x; then
22911 $as_echo ' .text
22912 .LFB1:
22913 .4byte 0
22914 .L1:
22915 .4byte 0
22916 .LFE1:
22917 .section .eh_frame,"aw",@progbits
22918 __FRAME_BEGIN__:
22919 .4byte .LECIE1-.LSCIE1
22920 .LSCIE1:
22921 .4byte 0x0
22922 .byte 0x1
22923 .ascii "z\0"
22924 .byte 0x1
22925 .byte 0x78
22926 .byte 0x1a
22927 .byte 0x0
22928 .byte 0x4
22929 .4byte 1
22930 .p2align 1
22931 .LECIE1:
22932 .LSFDE1:
22933 .4byte .LEFDE1-.LASFDE1
22934 .LASFDE1:
22935 .4byte .LASFDE1-__FRAME_BEGIN__
22936 .4byte .LFB1
22937 .4byte .LFE1-.LFB1
22938 .byte 0x4
22939 .4byte .LFE1-.LFB1
22940 .byte 0x4
22941 .4byte .L1-.LFB1
22942 .LEFDE1:' > conftest.s
22943 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22945 (eval $ac_try) 2>&5
22946 ac_status=$?
22947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22948 test $ac_status = 0; }; }
22949 then
22950 cat > conftest.lit <<EOF
22951 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22952 0010 01000000 12000000 18000000 00000000 ................
22953 0020 08000000 04080000 0044 .........D
22955 cat > conftest.big <<EOF
22956 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22957 0010 00000001 00000012 00000018 00000000 ................
22958 0020 00000008 04000000 0844 .........D
22960 # If the assembler didn't choke, and we can objdump,
22961 # and we got the correct data, then succeed.
22962 # The text in the here-document typically retains its unix-style line
22963 # endings, while the output of objdump will use host line endings.
22964 # Therefore, use diff -b for the comparisons.
22965 if test x$gcc_cv_objdump != x \
22966 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22967 | tail -3 > conftest.got \
22968 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22969 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22970 then
22971 gcc_cv_as_eh_frame=yes
22972 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22974 (eval $ac_try) 2>&5
22975 ac_status=$?
22976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22977 test $ac_status = 0; }; }; then
22978 gcc_cv_as_eh_frame=buggy
22979 else
22980 # Uh oh, what do we do now?
22981 gcc_cv_as_eh_frame=no
22983 else
22984 echo "configure: failed program was" >&5
22985 cat conftest.s >&5
22987 rm -f conftest.o conftest.s
22990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22991 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22994 if test $gcc_cv_as_eh_frame = buggy; then
22996 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23001 $as_echo_n "checking assembler for section merging support... " >&6; }
23002 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23003 $as_echo_n "(cached) " >&6
23004 else
23005 gcc_cv_as_shf_merge=no
23006 if test $in_tree_gas = yes; then
23007 if test $in_tree_gas_is_elf = yes \
23008 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23009 then gcc_cv_as_shf_merge=yes
23011 elif test x$gcc_cv_as != x; then
23012 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23013 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23015 (eval $ac_try) 2>&5
23016 ac_status=$?
23017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23018 test $ac_status = 0; }; }
23019 then
23020 gcc_cv_as_shf_merge=yes
23021 else
23022 echo "configure: failed program was" >&5
23023 cat conftest.s >&5
23025 rm -f conftest.o conftest.s
23028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23029 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23031 if test $gcc_cv_as_shf_merge = no; then
23032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23033 $as_echo_n "checking assembler for section merging support... " >&6; }
23034 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23035 $as_echo_n "(cached) " >&6
23036 else
23037 gcc_cv_as_shf_merge=no
23038 if test $in_tree_gas = yes; then
23039 if test $in_tree_gas_is_elf = yes \
23040 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23041 then gcc_cv_as_shf_merge=yes
23043 elif test x$gcc_cv_as != x; then
23044 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23045 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23047 (eval $ac_try) 2>&5
23048 ac_status=$?
23049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23050 test $ac_status = 0; }; }
23051 then
23052 gcc_cv_as_shf_merge=yes
23053 else
23054 echo "configure: failed program was" >&5
23055 cat conftest.s >&5
23057 rm -f conftest.o conftest.s
23060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23061 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23065 cat >>confdefs.h <<_ACEOF
23066 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23067 _ACEOF
23070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23071 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23072 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23073 $as_echo_n "(cached) " >&6
23074 else
23075 gcc_cv_as_comdat_group=no
23076 if test $in_tree_gas = yes; then
23077 if test $in_tree_gas_is_elf = yes \
23078 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23079 then gcc_cv_as_comdat_group=yes
23081 elif test x$gcc_cv_as != x; then
23082 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23083 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23085 (eval $ac_try) 2>&5
23086 ac_status=$?
23087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23088 test $ac_status = 0; }; }
23089 then
23090 gcc_cv_as_comdat_group=yes
23091 else
23092 echo "configure: failed program was" >&5
23093 cat conftest.s >&5
23095 rm -f conftest.o conftest.s
23098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23099 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23101 if test $gcc_cv_as_comdat_group = yes; then
23102 gcc_cv_as_comdat_group_percent=no
23103 gcc_cv_as_comdat_group_group=no
23104 else
23105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23106 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23107 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23108 $as_echo_n "(cached) " >&6
23109 else
23110 gcc_cv_as_comdat_group_percent=no
23111 if test $in_tree_gas = yes; then
23112 if test $in_tree_gas_is_elf = yes \
23113 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23114 then gcc_cv_as_comdat_group_percent=yes
23116 elif test x$gcc_cv_as != x; then
23117 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23118 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23120 (eval $ac_try) 2>&5
23121 ac_status=$?
23122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23123 test $ac_status = 0; }; }
23124 then
23125 gcc_cv_as_comdat_group_percent=yes
23126 else
23127 echo "configure: failed program was" >&5
23128 cat conftest.s >&5
23130 rm -f conftest.o conftest.s
23133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23134 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23136 if test $gcc_cv_as_comdat_group_percent = yes; then
23137 gcc_cv_as_comdat_group_group=no
23138 else
23139 case "${target}" in
23140 # Sun as uses a completely different syntax.
23141 *-*-solaris2*)
23142 case "${target}" in
23143 sparc*-*-solaris2*)
23144 conftest_s='
23145 .group foo,".text%foo",#comdat
23146 .section ".text%foo", #alloc,#execinstr,#progbits
23147 .globl foo
23148 foo:
23151 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23152 conftest_s='
23153 .group foo,.text%foo,#comdat
23154 .section .text%foo, "ax", @progbits
23155 .globl foo
23156 foo:
23159 esac
23160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23161 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23162 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23163 $as_echo_n "(cached) " >&6
23164 else
23165 gcc_cv_as_comdat_group_group=no
23166 if test x$gcc_cv_as != x; then
23167 $as_echo "$conftest_s" > conftest.s
23168 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23170 (eval $ac_try) 2>&5
23171 ac_status=$?
23172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23173 test $ac_status = 0; }; }
23174 then
23175 gcc_cv_as_comdat_group_group=yes
23176 else
23177 echo "configure: failed program was" >&5
23178 cat conftest.s >&5
23180 rm -f conftest.o conftest.s
23183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23184 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23187 esac
23188 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23189 gcc_cv_as_comdat_group_group=no
23193 if test x"$ld_is_gold" = xyes; then
23194 comdat_group=yes
23195 elif test $in_tree_ld = yes ; then
23196 comdat_group=no
23197 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 \
23198 && test $in_tree_ld_is_elf = yes; then
23199 comdat_group=yes
23201 elif echo "$ld_ver" | grep GNU > /dev/null; then
23202 comdat_group=yes
23203 if test 0"$ld_date" -lt 20050308; then
23204 if test -n "$ld_date"; then
23205 # If there was date string, but was earlier than 2005-03-08, fail
23206 comdat_group=no
23207 elif test "$ld_vers_major" -lt 2; then
23208 comdat_group=no
23209 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23210 comdat_group=no
23213 else
23214 case "${target}" in
23215 *-*-solaris2.1[1-9]*)
23216 comdat_group=no
23217 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23218 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23219 # version 1.688.
23221 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23222 # least ld version 1.2267.
23223 if test "$ld_vers_major" -gt 1; then
23224 comdat_group=yes
23225 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23226 comdat_group=yes
23227 elif test "$ld_vers_minor" -ge 2267; then
23228 comdat_group=yes
23232 # Assume linkers other than GNU ld don't support COMDAT group.
23233 comdat_group=no
23235 esac
23237 # Allow overriding the automatic COMDAT group tests above.
23238 # Check whether --enable-comdat was given.
23239 if test "${enable_comdat+set}" = set; then :
23240 enableval=$enable_comdat; comdat_group="$enable_comdat"
23243 if test $comdat_group = no; then
23244 gcc_cv_as_comdat_group=no
23245 gcc_cv_as_comdat_group_percent=no
23246 gcc_cv_as_comdat_group_group=no
23249 cat >>confdefs.h <<_ACEOF
23250 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23251 || test $gcc_cv_as_comdat_group_percent = yes \
23252 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23253 _ACEOF
23256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23257 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23258 if test "${gcc_cv_as_discriminator+set}" = set; then :
23259 $as_echo_n "(cached) " >&6
23260 else
23261 gcc_cv_as_discriminator=no
23262 if test $in_tree_gas = yes; then
23263 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23264 then gcc_cv_as_discriminator=yes
23266 elif test x$gcc_cv_as != x; then
23267 $as_echo ' .text
23268 .file 1 "conf.c"
23269 .loc 1 1 0 discriminator 1' > conftest.s
23270 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23272 (eval $ac_try) 2>&5
23273 ac_status=$?
23274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23275 test $ac_status = 0; }; }
23276 then
23277 gcc_cv_as_discriminator=yes
23278 else
23279 echo "configure: failed program was" >&5
23280 cat conftest.s >&5
23282 rm -f conftest.o conftest.s
23285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23286 $as_echo "$gcc_cv_as_discriminator" >&6; }
23287 if test $gcc_cv_as_discriminator = yes; then
23289 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23293 # Thread-local storage - the check is heavily parameterized.
23294 conftest_s=
23295 tls_first_major=
23296 tls_first_minor=
23297 tls_as_opt=
23298 case "$target" in
23299 alpha*-*-*)
23300 conftest_s='
23301 .section ".tdata","awT",@progbits
23302 foo: .long 25
23303 .text
23304 ldq $27,__tls_get_addr($29) !literal!1
23305 lda $16,foo($29) !tlsgd!1
23306 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23307 ldq $27,__tls_get_addr($29) !literal!2
23308 lda $16,foo($29) !tlsldm!2
23309 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23310 ldq $1,foo($29) !gotdtprel
23311 ldah $2,foo($29) !dtprelhi
23312 lda $3,foo($2) !dtprello
23313 lda $4,foo($29) !dtprel
23314 ldq $1,foo($29) !gottprel
23315 ldah $2,foo($29) !tprelhi
23316 lda $3,foo($2) !tprello
23317 lda $4,foo($29) !tprel'
23318 tls_first_major=2
23319 tls_first_minor=13
23320 tls_as_opt=--fatal-warnings
23322 cris-*-*|crisv32-*-*)
23323 conftest_s='
23324 .section ".tdata","awT",@progbits
23325 x: .long 25
23326 .text
23327 move.d x:IE,$r10
23328 nop'
23329 tls_first_major=2
23330 tls_first_minor=20
23331 tls_as_opt=--fatal-warnings
23333 frv*-*-*)
23334 conftest_s='
23335 .section ".tdata","awT",@progbits
23336 x: .long 25
23337 .text
23338 call #gettlsoff(x)'
23339 tls_first_major=2
23340 tls_first_minor=14
23342 hppa*-*-linux*)
23343 conftest_s='
23344 t1: .reg %r20
23345 t2: .reg %r21
23346 gp: .reg %r19
23347 .section ".tdata","awT",@progbits
23348 foo: .long 25
23349 .text
23350 .align 4
23351 addil LT%foo-$tls_gdidx$,gp
23352 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23353 b __tls_get_addr
23355 addil LT%foo-$tls_ldidx$,gp
23356 b __tls_get_addr
23357 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23358 addil LR%foo-$tls_dtpoff$,%ret0
23359 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23360 mfctl %cr27,%t1
23361 addil LT%foo-$tls_ieoff$,gp
23362 ldw RT%foo-$tls_ieoff$(%r1),%t2
23363 add %t1,%t2,%t3
23364 mfctl %cr27,%t1
23365 addil LR%foo-$tls_leoff$,%t1
23366 ldo RR%foo-$tls_leoff$(%r1),%t2'
23367 tls_first_major=2
23368 tls_first_minor=15
23369 tls_as_opt=--fatal-warnings
23371 arm*-*-*)
23372 conftest_s='
23373 .section ".tdata","awT",%progbits
23374 foo: .long 25
23375 .text
23376 .word foo(gottpoff)
23377 .word foo(tpoff)
23378 .word foo(tlsgd)
23379 .word foo(tlsldm)
23380 .word foo(tlsldo)'
23381 tls_first_major=2
23382 tls_first_minor=17
23384 i[34567]86-*-* | x86_64-*-*)
23385 case "$target" in
23386 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23387 on_solaris=yes
23390 on_solaris=no
23392 esac
23393 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23394 conftest_s='
23395 .section .tdata,"awt",@progbits'
23396 tls_first_major=0
23397 tls_first_minor=0
23398 tls_section_flag=t
23400 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23402 else
23403 conftest_s='
23404 .section ".tdata","awT",@progbits'
23405 tls_first_major=2
23406 tls_first_minor=14
23407 tls_section_flag=T
23408 tls_as_opt="--fatal-warnings"
23410 case "$target" in
23411 i[34567]86-*-*)
23412 conftest_s="$conftest_s
23413 foo: .long 25
23414 .text
23415 movl %gs:0, %eax
23416 leal foo@tlsgd(,%ebx,1), %eax
23417 leal foo@tlsldm(%ebx), %eax
23418 leal foo@dtpoff(%eax), %edx
23419 movl foo@gottpoff(%ebx), %eax
23420 subl foo@gottpoff(%ebx), %eax
23421 addl foo@gotntpoff(%ebx), %eax
23422 movl foo@indntpoff, %eax
23423 movl \$foo@tpoff, %eax
23424 subl \$foo@tpoff, %eax
23425 leal foo@ntpoff(%ecx), %eax"
23427 x86_64-*-*)
23428 if test x$on_solaris = xyes; then
23429 case $gas_flag in
23430 yes) tls_as_opt="$tls_as_opt --64" ;;
23431 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23432 esac
23434 conftest_s="$conftest_s
23435 foo: .long 25
23436 .text
23437 movq %fs:0, %rax
23438 leaq foo@tlsgd(%rip), %rdi
23439 leaq foo@tlsld(%rip), %rdi
23440 leaq foo@dtpoff(%rax), %rdx
23441 movq foo@gottpoff(%rip), %rax
23442 movq \$foo@tpoff, %rax"
23444 esac
23446 ia64-*-*)
23447 conftest_s='
23448 .section ".tdata","awT",@progbits
23449 foo: data8 25
23450 .text
23451 addl r16 = @ltoff(@dtpmod(foo#)), gp
23452 addl r17 = @ltoff(@dtprel(foo#)), gp
23453 addl r18 = @ltoff(@tprel(foo#)), gp
23454 addl r19 = @dtprel(foo#), gp
23455 adds r21 = @dtprel(foo#), r13
23456 movl r23 = @dtprel(foo#)
23457 addl r20 = @tprel(foo#), gp
23458 adds r22 = @tprel(foo#), r13
23459 movl r24 = @tprel(foo#)'
23460 tls_first_major=2
23461 tls_first_minor=13
23462 tls_as_opt=--fatal-warnings
23464 microblaze*-*-*)
23465 conftest_s='
23466 .section .tdata,"awT",@progbits
23468 .word 2
23469 .text
23470 addik r5,r20,x@TLSGD
23471 addik r5,r20,x@TLSLDM'
23472 tls_first_major=2
23473 tls_first_minor=20
23474 tls_as_opt='--fatal-warnings'
23476 mips*-*-*)
23477 conftest_s='
23478 .section .tdata,"awT",@progbits
23480 .word 2
23481 .text
23482 addiu $4, $28, %tlsgd(x)
23483 addiu $4, $28, %tlsldm(x)
23484 lui $4, %dtprel_hi(x)
23485 addiu $4, $4, %dtprel_lo(x)
23486 lw $4, %gottprel(x)($28)
23487 lui $4, %tprel_hi(x)
23488 addiu $4, $4, %tprel_lo(x)'
23489 tls_first_major=2
23490 tls_first_minor=16
23491 tls_as_opt='-32 --fatal-warnings'
23493 m68k-*-*)
23494 conftest_s='
23495 .section .tdata,"awT",@progbits
23497 .word 2
23498 .text
23499 foo:
23500 move.l x@TLSGD(%a5),%a0
23501 move.l x@TLSLDM(%a5),%a0
23502 move.l x@TLSLDO(%a5),%a0
23503 move.l x@TLSIE(%a5),%a0
23504 move.l x@TLSLE(%a5),%a0'
23505 tls_first_major=2
23506 tls_first_minor=19
23507 tls_as_opt='--fatal-warnings'
23509 nios2-*-*)
23510 conftest_s='
23511 .section ".tdata","awT",@progbits'
23512 tls_first_major=2
23513 tls_first_minor=23
23514 tls_as_opt="--fatal-warnings"
23516 aarch64*-*-*)
23517 conftest_s='
23518 .section ".tdata","awT",%progbits
23519 foo: .long 25
23520 .text
23521 adrp x0, :tlsgd:x
23522 add x0, x0, #:tlsgd_lo12:x
23523 bl __tls_get_addr
23524 nop'
23525 tls_first_major=2
23526 tls_first_minor=20
23527 tls_as_opt='--fatal-warnings'
23529 powerpc-ibm-aix*)
23530 conftest_s='
23531 .extern __get_tpointer
23532 .toc
23533 LC..1:
23534 .tc a[TC],a[TL]@le
23535 .csect .text[PR]
23536 .tlstest:
23537 lwz 9,LC..1(2)
23538 bla __get_tpointer
23539 lwzx 3,9,3
23540 .globl a
23541 .csect a[TL],4
23543 .space 4'
23544 tls_first_major=0
23545 tls_first_minor=0
23547 powerpc64*-*-*)
23548 conftest_s='
23549 .section ".tdata","awT",@progbits
23550 .align 3
23551 ld0: .space 8
23552 ld1: .space 8
23553 x1: .space 8
23554 x2: .space 8
23555 x3: .space 8
23556 .text
23557 addi 3,2,ld0@got@tlsgd
23558 bl .__tls_get_addr
23560 addi 3,2,ld1@toc
23561 bl .__tls_get_addr
23563 addi 3,2,x1@got@tlsld
23564 bl .__tls_get_addr
23566 addi 9,3,x1@dtprel
23567 bl .__tls_get_addr
23569 addis 9,3,x2@dtprel@ha
23570 addi 9,9,x2@dtprel@l
23571 bl .__tls_get_addr
23573 ld 9,x3@got@dtprel(2)
23574 add 9,9,3
23575 bl .__tls_get_addr
23576 nop'
23577 tls_first_major=2
23578 tls_first_minor=14
23579 tls_as_opt="-a64 --fatal-warnings"
23581 powerpc*-*-*)
23582 conftest_s='
23583 .section ".tdata","awT",@progbits
23584 .align 2
23585 ld0: .space 4
23586 ld1: .space 4
23587 x1: .space 4
23588 x2: .space 4
23589 x3: .space 4
23590 .text
23591 addi 3,31,ld0@got@tlsgd
23592 bl __tls_get_addr
23593 addi 3,31,x1@got@tlsld
23594 bl __tls_get_addr
23595 addi 9,3,x1@dtprel
23596 addis 9,3,x2@dtprel@ha
23597 addi 9,9,x2@dtprel@l
23598 lwz 9,x3@got@tprel(31)
23599 add 9,9,x@tls
23600 addi 9,2,x1@tprel
23601 addis 9,2,x2@tprel@ha
23602 addi 9,9,x2@tprel@l'
23603 tls_first_major=2
23604 tls_first_minor=14
23605 tls_as_opt="-a32 --fatal-warnings"
23607 s390-*-*)
23608 conftest_s='
23609 .section ".tdata","awT",@progbits
23610 foo: .long 25
23611 .text
23612 .long foo@TLSGD
23613 .long foo@TLSLDM
23614 .long foo@DTPOFF
23615 .long foo@NTPOFF
23616 .long foo@GOTNTPOFF
23617 .long foo@INDNTPOFF
23618 l %r1,foo@GOTNTPOFF(%r12)
23619 l %r1,0(%r1):tls_load:foo
23620 bas %r14,0(%r1,%r13):tls_gdcall:foo
23621 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23622 tls_first_major=2
23623 tls_first_minor=14
23624 tls_as_opt="-m31 --fatal-warnings"
23626 s390x-*-*)
23627 conftest_s='
23628 .section ".tdata","awT",@progbits
23629 foo: .long 25
23630 .text
23631 .quad foo@TLSGD
23632 .quad foo@TLSLDM
23633 .quad foo@DTPOFF
23634 .quad foo@NTPOFF
23635 .quad foo@GOTNTPOFF
23636 lg %r1,foo@GOTNTPOFF(%r12)
23637 larl %r1,foo@INDNTPOFF
23638 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23639 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23640 tls_first_major=2
23641 tls_first_minor=14
23642 tls_as_opt="-m64 -Aesame --fatal-warnings"
23644 sh-*-* | sh[34]-*-*)
23645 conftest_s='
23646 .section ".tdata","awT",@progbits
23647 foo: .long 25
23648 .text
23649 .long foo@TLSGD
23650 .long foo@TLSLDM
23651 .long foo@DTPOFF
23652 .long foo@GOTTPOFF
23653 .long foo@TPOFF'
23654 tls_first_major=2
23655 tls_first_minor=13
23656 tls_as_opt=--fatal-warnings
23658 sparc*-*-*)
23659 case "$target" in
23660 sparc*-sun-solaris2.*)
23661 on_solaris=yes
23664 on_solaris=no
23666 esac
23667 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23668 conftest_s='
23669 .section ".tdata",#alloc,#write,#tls'
23670 tls_first_major=0
23671 tls_first_minor=0
23672 else
23673 conftest_s='
23674 .section ".tdata","awT",@progbits'
23675 tls_first_major=2
23676 tls_first_minor=14
23677 tls_as_opt="-32 --fatal-warnings"
23679 conftest_s="$conftest_s
23680 foo: .long 25
23681 .text
23682 sethi %tgd_hi22(foo), %o0
23683 add %o0, %tgd_lo10(foo), %o1
23684 add %l7, %o1, %o0, %tgd_add(foo)
23685 call __tls_get_addr, %tgd_call(foo)
23686 sethi %tldm_hi22(foo), %l1
23687 add %l1, %tldm_lo10(foo), %l2
23688 add %l7, %l2, %o0, %tldm_add(foo)
23689 call __tls_get_addr, %tldm_call(foo)
23690 sethi %tldo_hix22(foo), %l3
23691 xor %l3, %tldo_lox10(foo), %l4
23692 add %o0, %l4, %l5, %tldo_add(foo)
23693 sethi %tie_hi22(foo), %o3
23694 add %o3, %tie_lo10(foo), %o3
23695 ld [%l7 + %o3], %o2, %tie_ld(foo)
23696 add %g7, %o2, %o4, %tie_add(foo)
23697 sethi %tle_hix22(foo), %l1
23698 xor %l1, %tle_lox10(foo), %o5
23699 ld [%g7 + %o5], %o1"
23701 tilepro*-*-*)
23702 conftest_s='
23703 .section ".tdata","awT",@progbits
23704 foo: .long 25
23705 .text
23706 addli r0, zero, tls_gd(foo)
23707 auli r0, zero, tls_gd_ha16(foo)
23708 addli r0, r0, tls_gd_lo16(foo)
23709 jal __tls_get_addr
23710 addli r0, zero, tls_ie(foo)
23711 auli r0, r0, tls_ie_ha16(foo)
23712 addli r0, r0, tls_ie_lo16(foo)'
23713 tls_first_major=2
23714 tls_first_minor=22
23715 tls_as_opt="--fatal-warnings"
23717 tilegx*-*-*)
23718 conftest_s='
23719 .section ".tdata","awT",@progbits
23720 foo: .long 25
23721 .text
23722 shl16insli r0, zero, hw0_last_tls_gd(foo)
23723 shl16insli r0, zero, hw1_last_tls_gd(foo)
23724 shl16insli r0, r0, hw0_tls_gd(foo)
23725 jal __tls_get_addr
23726 shl16insli r0, zero, hw1_last_tls_ie(foo)
23727 shl16insli r0, r0, hw0_tls_ie(foo)'
23728 tls_first_major=2
23729 tls_first_minor=22
23730 tls_as_opt="--fatal-warnings"
23732 xtensa*-*-*)
23733 conftest_s='
23734 .section ".tdata","awT",@progbits
23735 foo: .long 25
23736 .text
23737 movi a8, foo@TLSFUNC
23738 movi a10, foo@TLSARG
23739 callx8.tls a8, foo@TLSCALL'
23740 tls_first_major=2
23741 tls_first_minor=19
23743 esac
23744 set_have_as_tls=no
23745 if test "x$enable_tls" = xno ; then
23746 : # TLS explicitly disabled.
23747 elif test "x$enable_tls" = xyes ; then
23748 set_have_as_tls=yes # TLS explicitly enabled.
23749 elif test -z "$tls_first_major"; then
23750 : # If we don't have a check, assume no support.
23751 else
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23753 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23754 if test "${gcc_cv_as_tls+set}" = set; then :
23755 $as_echo_n "(cached) " >&6
23756 else
23757 gcc_cv_as_tls=no
23758 if test $in_tree_gas = yes; then
23759 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23760 then gcc_cv_as_tls=yes
23762 elif test x$gcc_cv_as != x; then
23763 $as_echo "$conftest_s" > conftest.s
23764 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23766 (eval $ac_try) 2>&5
23767 ac_status=$?
23768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23769 test $ac_status = 0; }; }
23770 then
23771 gcc_cv_as_tls=yes
23772 else
23773 echo "configure: failed program was" >&5
23774 cat conftest.s >&5
23776 rm -f conftest.o conftest.s
23779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23780 $as_echo "$gcc_cv_as_tls" >&6; }
23781 if test $gcc_cv_as_tls = yes; then
23782 set_have_as_tls=yes
23785 if test $set_have_as_tls = yes ; then
23787 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23791 # Target-specific assembler checks.
23793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23794 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23795 gcc_cv_ld_static_dynamic=no
23796 gcc_cv_ld_static_option='-Bstatic'
23797 gcc_cv_ld_dynamic_option='-Bdynamic'
23798 if test $in_tree_ld = yes ; then
23799 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
23800 gcc_cv_ld_static_dynamic=yes
23802 elif test x$gcc_cv_ld != x; then
23803 # Check if linker supports -Bstatic/-Bdynamic option
23804 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23805 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23806 gcc_cv_ld_static_dynamic=yes
23807 else
23808 case "$target" in
23809 # AIX ld uses -b flags
23810 *-*-aix4.[23]* | *-*-aix[5-9]*)
23811 gcc_cv_ld_static_dynamic=yes
23812 gcc_cv_ld_static_option="-bstatic"
23813 gcc_cv_ld_dynamic_option="-bdynamic"
23815 # HP-UX ld uses -a flags to select between shared and archive.
23816 *-*-hpux*)
23817 if test x"$gnu_ld" = xno; then
23818 gcc_cv_ld_static_dynamic=yes
23819 gcc_cv_ld_static_option="-aarchive_shared"
23820 gcc_cv_ld_dynamic_option="-adefault"
23823 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23824 *-*-solaris2*)
23825 gcc_cv_ld_static_dynamic=yes
23827 esac
23830 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23832 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23835 cat >>confdefs.h <<_ACEOF
23836 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23837 _ACEOF
23840 cat >>confdefs.h <<_ACEOF
23841 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23842 _ACEOF
23845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23846 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23848 if test x"$demangler_in_ld" = xyes; then
23849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23850 $as_echo_n "checking linker --demangle support... " >&6; }
23851 gcc_cv_ld_demangle=no
23852 if test $in_tree_ld = yes; then
23853 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 \
23854 gcc_cv_ld_demangle=yes
23856 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23857 # Check if the GNU linker supports --demangle option
23858 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23859 gcc_cv_ld_demangle=yes
23862 if test x"$gcc_cv_ld_demangle" = xyes; then
23864 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23868 $as_echo "$gcc_cv_ld_demangle" >&6; }
23871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23872 $as_echo_n "checking linker plugin support... " >&6; }
23873 gcc_cv_lto_plugin=0
23874 if test -f liblto_plugin.la; then
23875 save_ld_ver="$ld_ver"
23876 save_ld_vers_major="$ld_vers_major"
23877 save_ld_vers_minor="$ld_vers_minor"
23878 save_ld_is_gold="$ld_is_gold"
23880 ld_is_gold=no
23882 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23883 ld_ver="GNU ld"
23884 # FIXME: ld_is_gold?
23885 ld_vers_major="$gcc_cv_gld_major_version"
23886 ld_vers_minor="$gcc_cv_gld_minor_version"
23887 else
23888 # Determine plugin linker version.
23889 # FIXME: Partial duplicate from above, generalize.
23890 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23891 if echo "$ld_ver" | grep GNU > /dev/null; then
23892 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23893 ld_is_gold=yes
23894 ld_vers=`echo $ld_ver | sed -n \
23895 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23896 else
23897 ld_vers=`echo $ld_ver | sed -n \
23898 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23900 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23901 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23905 # Determine plugin support.
23906 if echo "$ld_ver" | grep GNU > /dev/null; then
23907 # Require GNU ld or gold 2.21+ for plugin support by default.
23908 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23909 gcc_cv_lto_plugin=2
23910 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23911 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23912 gcc_cv_lto_plugin=1
23916 ld_ver="$save_ld_ver"
23917 ld_vers_major="$save_ld_vers_major"
23918 ld_vers_minor="$save_ld_vers_minor"
23919 ld_is_gold="$save_ld_is_gold"
23922 cat >>confdefs.h <<_ACEOF
23923 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23924 _ACEOF
23926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23927 $as_echo "$gcc_cv_lto_plugin" >&6; }
23929 case "$target" in
23930 aarch64*-*-*)
23931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
23932 $as_echo_n "checking assembler for -mabi option... " >&6; }
23933 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
23934 $as_echo_n "(cached) " >&6
23935 else
23936 gcc_cv_as_aarch64_mabi=no
23937 if test x$gcc_cv_as != x; then
23938 $as_echo '.text' > conftest.s
23939 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
23940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23941 (eval $ac_try) 2>&5
23942 ac_status=$?
23943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23944 test $ac_status = 0; }; }
23945 then
23946 gcc_cv_as_aarch64_mabi=yes
23947 else
23948 echo "configure: failed program was" >&5
23949 cat conftest.s >&5
23951 rm -f conftest.o conftest.s
23954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
23955 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
23957 if test x$gcc_cv_as_aarch64_mabi = xyes; then
23959 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
23961 else
23962 if test x$with_abi = xilp32; then
23963 as_fn_error "Assembler does not support -mabi=ilp32.\
23964 Upgrade the Assembler." "$LINENO" 5
23966 if test x"$with_multilib_list" = xdefault; then
23967 TM_MULTILIB_CONFIG=lp64
23968 else
23969 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
23970 for aarch64_multilib in ${aarch64_multilibs}; do
23971 case ${aarch64_multilib} in
23972 ilp32)
23973 as_fn_error "Assembler does not support -mabi=ilp32.\
23974 Upgrade the Assembler." "$LINENO" 5
23978 esac
23979 done
23984 # All TARGET_ABI_OSF targets.
23985 alpha*-*-linux* | alpha*-*-*bsd*)
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23987 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23988 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23989 $as_echo_n "(cached) " >&6
23990 else
23991 gcc_cv_as_alpha_explicit_relocs=no
23992 if test $in_tree_gas = yes; then
23993 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23994 then gcc_cv_as_alpha_explicit_relocs=yes
23996 elif test x$gcc_cv_as != x; then
23997 $as_echo ' .set nomacro
23998 .text
23999 extbl $3, $2, $3 !lituse_bytoff!1
24000 ldq $2, a($29) !literal!1
24001 ldq $4, b($29) !literal!2
24002 ldq_u $3, 0($2) !lituse_base!1
24003 ldq $27, f($29) !literal!5
24004 jsr $26, ($27), f !lituse_jsr!5
24005 ldah $29, 0($26) !gpdisp!3
24006 lda $0, c($29) !gprel
24007 ldah $1, d($29) !gprelhigh
24008 lda $1, d($1) !gprellow
24009 lda $29, 0($29) !gpdisp!3' > conftest.s
24010 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24012 (eval $ac_try) 2>&5
24013 ac_status=$?
24014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24015 test $ac_status = 0; }; }
24016 then
24017 gcc_cv_as_alpha_explicit_relocs=yes
24018 else
24019 echo "configure: failed program was" >&5
24020 cat conftest.s >&5
24022 rm -f conftest.o conftest.s
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24026 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24027 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24029 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24033 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24034 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24035 $as_echo_n "(cached) " >&6
24036 else
24037 gcc_cv_as_alpha_jsrdirect_relocs=no
24038 if test $in_tree_gas = yes; then
24039 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24040 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24042 elif test x$gcc_cv_as != x; then
24043 $as_echo ' .set nomacro
24044 .text
24045 ldq $27, a($29) !literal!1
24046 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24047 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24049 (eval $ac_try) 2>&5
24050 ac_status=$?
24051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24052 test $ac_status = 0; }; }
24053 then
24054 gcc_cv_as_alpha_jsrdirect_relocs=yes
24055 else
24056 echo "configure: failed program was" >&5
24057 cat conftest.s >&5
24059 rm -f conftest.o conftest.s
24062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24063 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24064 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24066 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24071 cris-*-*)
24072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24073 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24074 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24075 $as_echo_n "(cached) " >&6
24076 else
24077 gcc_cv_as_cris_no_mul_bug=no
24078 if test $in_tree_gas = yes; then
24079 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24080 then gcc_cv_as_cris_no_mul_bug=yes
24082 elif test x$gcc_cv_as != x; then
24083 $as_echo '.text' > conftest.s
24084 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24086 (eval $ac_try) 2>&5
24087 ac_status=$?
24088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24089 test $ac_status = 0; }; }
24090 then
24091 gcc_cv_as_cris_no_mul_bug=yes
24092 else
24093 echo "configure: failed program was" >&5
24094 cat conftest.s >&5
24096 rm -f conftest.o conftest.s
24099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24100 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24101 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24103 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24108 sparc*-*-*)
24109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24110 $as_echo_n "checking assembler for .register... " >&6; }
24111 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24112 $as_echo_n "(cached) " >&6
24113 else
24114 gcc_cv_as_sparc_register_op=no
24115 if test x$gcc_cv_as != x; then
24116 $as_echo '.register %g2, #scratch' > 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_sparc_register_op=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_sparc_register_op" >&5
24133 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24134 if test $gcc_cv_as_sparc_register_op = yes; then
24136 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24141 $as_echo_n "checking assembler for #nobits... " >&6; }
24142 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24143 $as_echo_n "(cached) " >&6
24144 else
24145 gcc_cv_as_sparc_nobits=no
24146 if test x$gcc_cv_as != x; then
24147 $as_echo '.section "nobits",#alloc,#write,#nobits
24148 .section "progbits",#alloc,#write,#progbits' > conftest.s
24149 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24151 (eval $ac_try) 2>&5
24152 ac_status=$?
24153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24154 test $ac_status = 0; }; }
24155 then
24156 gcc_cv_as_sparc_nobits=yes
24157 else
24158 echo "configure: failed program was" >&5
24159 cat conftest.s >&5
24161 rm -f conftest.o conftest.s
24164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24165 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24168 cat >>confdefs.h <<_ACEOF
24169 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24170 _ACEOF
24173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24174 $as_echo_n "checking assembler for -relax option... " >&6; }
24175 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24176 $as_echo_n "(cached) " >&6
24177 else
24178 gcc_cv_as_sparc_relax=no
24179 if test x$gcc_cv_as != x; then
24180 $as_echo '.text' > conftest.s
24181 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24183 (eval $ac_try) 2>&5
24184 ac_status=$?
24185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24186 test $ac_status = 0; }; }
24187 then
24188 gcc_cv_as_sparc_relax=yes
24189 else
24190 echo "configure: failed program was" >&5
24191 cat conftest.s >&5
24193 rm -f conftest.o conftest.s
24196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24197 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24198 if test $gcc_cv_as_sparc_relax = yes; then
24200 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24205 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24206 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24207 $as_echo_n "(cached) " >&6
24208 else
24209 gcc_cv_as_sparc_gotdata_op=no
24210 if test x$gcc_cv_as != x; then
24211 $as_echo '.text
24212 .align 4
24213 foo:
24215 bar:
24216 sethi %gdop_hix22(foo), %g1
24217 xor %g1, %gdop_lox10(foo), %g1
24218 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24219 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24221 (eval $ac_try) 2>&5
24222 ac_status=$?
24223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24224 test $ac_status = 0; }; }
24225 then
24226 if test x$gcc_cv_ld != x \
24227 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24228 if test x$gcc_cv_objdump != x; then
24229 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24230 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24231 gcc_cv_as_sparc_gotdata_op=no
24232 else
24233 gcc_cv_as_sparc_gotdata_op=yes
24237 rm -f conftest
24238 else
24239 echo "configure: failed program was" >&5
24240 cat conftest.s >&5
24242 rm -f conftest.o conftest.s
24245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24246 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24247 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24249 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24254 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24255 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24256 $as_echo_n "(cached) " >&6
24257 else
24258 gcc_cv_as_sparc_ua_pcrel=no
24259 if test x$gcc_cv_as != x; then
24260 $as_echo '.text
24261 foo:
24263 .data
24264 .align 4
24265 .byte 0
24266 .uaword %r_disp32(foo)' > conftest.s
24267 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24269 (eval $ac_try) 2>&5
24270 ac_status=$?
24271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24272 test $ac_status = 0; }; }
24273 then
24274 if test x$gcc_cv_ld != x \
24275 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24276 gcc_cv_as_sparc_ua_pcrel=yes
24278 rm -f conftest
24279 else
24280 echo "configure: failed program was" >&5
24281 cat conftest.s >&5
24283 rm -f conftest.o conftest.s
24286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24287 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24288 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24290 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24294 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24295 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24296 $as_echo_n "(cached) " >&6
24297 else
24298 gcc_cv_as_sparc_ua_pcrel_hidden=no
24299 if test x$gcc_cv_as != x; then
24300 $as_echo '.data
24301 .align 4
24302 .byte 0x31
24303 .uaword %r_disp32(foo)
24304 .byte 0x32, 0x33, 0x34
24305 .global foo
24306 .hidden foo
24307 foo:
24308 .skip 4' > conftest.s
24309 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24311 (eval $ac_try) 2>&5
24312 ac_status=$?
24313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24314 test $ac_status = 0; }; }
24315 then
24316 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24317 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24318 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24319 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24320 if $gcc_cv_objdump -R conftest 2> /dev/null \
24321 | grep 'DISP32' > /dev/null 2>&1; then
24323 else
24324 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24327 rm -f conftest
24328 else
24329 echo "configure: failed program was" >&5
24330 cat conftest.s >&5
24332 rm -f conftest.o conftest.s
24335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24336 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24337 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24339 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24343 fi # unaligned pcrel relocs
24345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24346 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24347 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24348 $as_echo_n "(cached) " >&6
24349 else
24350 gcc_cv_as_sparc_offsetable_lo10=no
24351 if test x$gcc_cv_as != x; then
24352 $as_echo '.text
24353 or %g1, %lo(ab) + 12, %g1
24354 or %g1, %lo(ab + 12), %g1' > conftest.s
24355 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24356 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24357 (eval $ac_try) 2>&5
24358 ac_status=$?
24359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24360 test $ac_status = 0; }; }
24361 then
24362 if test x$gcc_cv_objdump != x \
24363 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24364 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24365 gcc_cv_as_sparc_offsetable_lo10=yes
24367 else
24368 echo "configure: failed program was" >&5
24369 cat conftest.s >&5
24371 rm -f conftest.o conftest.s
24374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24375 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24376 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24378 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24383 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24384 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24385 $as_echo_n "(cached) " >&6
24386 else
24387 gcc_cv_as_sparc_fmaf=no
24388 if test x$gcc_cv_as != x; then
24389 $as_echo '.text
24390 .register %g2, #scratch
24391 .register %g3, #scratch
24392 .align 4
24393 fmaddd %f0, %f2, %f4, %f6
24394 addxccc %g1, %g2, %g3
24395 fsrl32 %f2, %f4, %f8
24396 fnaddd %f10, %f12, %f14' > conftest.s
24397 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24399 (eval $ac_try) 2>&5
24400 ac_status=$?
24401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24402 test $ac_status = 0; }; }
24403 then
24404 gcc_cv_as_sparc_fmaf=yes
24405 else
24406 echo "configure: failed program was" >&5
24407 cat conftest.s >&5
24409 rm -f conftest.o conftest.s
24412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24413 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24414 if test $gcc_cv_as_sparc_fmaf = yes; then
24416 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24421 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24422 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24423 $as_echo_n "(cached) " >&6
24424 else
24425 gcc_cv_as_sparc_sparc4=no
24426 if test x$gcc_cv_as != x; then
24427 $as_echo '.text
24428 .register %g2, #scratch
24429 .register %g3, #scratch
24430 .align 4
24431 cxbe %g2, %g3, 1f
24432 1: cwbneg %g2, %g3, 1f
24433 1: sha1
24435 aes_kexpand0 %f4, %f6, %f8
24436 des_round %f38, %f40, %f42, %f44
24437 camellia_f %f54, %f56, %f58, %f60
24438 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24439 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24441 (eval $ac_try) 2>&5
24442 ac_status=$?
24443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24444 test $ac_status = 0; }; }
24445 then
24446 gcc_cv_as_sparc_sparc4=yes
24447 else
24448 echo "configure: failed program was" >&5
24449 cat conftest.s >&5
24451 rm -f conftest.o conftest.s
24454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24455 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24456 if test $gcc_cv_as_sparc_sparc4 = yes; then
24458 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24463 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24464 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24465 $as_echo_n "(cached) " >&6
24466 else
24467 gcc_cv_as_sparc_leon=no
24468 if test x$gcc_cv_as != x; then
24469 $as_echo '.text
24470 .register %g2, #scratch
24471 .register %g3, #scratch
24472 .align 4
24473 smac %g2, %g3, %g1
24474 umac %g2, %g3, %g1
24475 casa [%g2] 0xb, %g3, %g1' > conftest.s
24476 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24478 (eval $ac_try) 2>&5
24479 ac_status=$?
24480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24481 test $ac_status = 0; }; }
24482 then
24483 gcc_cv_as_sparc_leon=yes
24484 else
24485 echo "configure: failed program was" >&5
24486 cat conftest.s >&5
24488 rm -f conftest.o conftest.s
24491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24492 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24493 if test $gcc_cv_as_sparc_leon = yes; then
24495 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24500 i[34567]86-*-* | x86_64-*-*)
24501 case $target_os in
24502 cygwin*)
24503 # Full C++ conformance when using a shared libstdc++-v3 requires some
24504 # support from the Cygwin DLL, which in more recent versions exports
24505 # wrappers to aid in interposing and redirecting operators new, delete,
24506 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24507 # are configuring for a version of Cygwin that exports the wrappers.
24508 if test x$host = x$target && test x$host_cpu = xi686; then
24509 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24510 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24511 gcc_ac_cygwin_dll_wrappers=yes
24512 else
24513 gcc_ac_cygwin_dll_wrappers=no
24516 else
24517 # Can't check presence of libc functions during cross-compile, so
24518 # we just have to assume we're building for an up-to-date target.
24519 gcc_ac_cygwin_dll_wrappers=yes
24522 cat >>confdefs.h <<_ACEOF
24523 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24524 _ACEOF
24526 esac
24527 case $target_os in
24528 cygwin* | pe | mingw32* | interix*)
24529 # Recent binutils allows the three-operand form of ".comm" on PE. This
24530 # definition is used unconditionally to initialise the default state of
24531 # the target option variable that governs usage of the feature.
24532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24533 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24534 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24535 $as_echo_n "(cached) " >&6
24536 else
24537 gcc_cv_as_comm_has_align=no
24538 if test $in_tree_gas = yes; then
24539 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24540 then gcc_cv_as_comm_has_align=yes
24542 elif test x$gcc_cv_as != x; then
24543 $as_echo '.comm foo,1,32' > conftest.s
24544 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24546 (eval $ac_try) 2>&5
24547 ac_status=$?
24548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24549 test $ac_status = 0; }; }
24550 then
24551 gcc_cv_as_comm_has_align=yes
24552 else
24553 echo "configure: failed program was" >&5
24554 cat conftest.s >&5
24556 rm -f conftest.o conftest.s
24559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24560 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24563 cat >>confdefs.h <<_ACEOF
24564 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24565 _ACEOF
24567 # Used for DWARF 2 in PE
24568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24569 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24570 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24571 $as_echo_n "(cached) " >&6
24572 else
24573 gcc_cv_as_ix86_pe_secrel32=no
24574 if test $in_tree_gas = yes; then
24575 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24576 then gcc_cv_as_ix86_pe_secrel32=yes
24578 elif test x$gcc_cv_as != x; then
24579 $as_echo '.text
24580 foo: nop
24581 .data
24582 .secrel32 foo' > conftest.s
24583 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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 if test x$gcc_cv_ld != x \
24591 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24592 gcc_cv_as_ix86_pe_secrel32=yes
24594 rm -f conftest
24595 else
24596 echo "configure: failed program was" >&5
24597 cat conftest.s >&5
24599 rm -f conftest.o conftest.s
24602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24603 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24604 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24606 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24609 # Test if the assembler supports the extended form of the .section
24610 # directive that specifies section alignment. LTO support uses this,
24611 # but normally only after installation, so we warn but don't fail the
24612 # configure if LTO is enabled but the assembler does not support it.
24613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24614 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24615 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24616 $as_echo_n "(cached) " >&6
24617 else
24618 gcc_cv_as_section_has_align=no
24619 if test $in_tree_gas = yes; then
24620 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24621 then gcc_cv_as_section_has_align=yes
24623 elif test x$gcc_cv_as != x; then
24624 $as_echo '.section lto_test,"dr0"' > conftest.s
24625 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24627 (eval $ac_try) 2>&5
24628 ac_status=$?
24629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24630 test $ac_status = 0; }; }
24631 then
24632 gcc_cv_as_section_has_align=yes
24633 else
24634 echo "configure: failed program was" >&5
24635 cat conftest.s >&5
24637 rm -f conftest.o conftest.s
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24641 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24643 if test x$gcc_cv_as_section_has_align != xyes; then
24644 case ",$enable_languages," in
24645 *,lto,*)
24646 { $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
24647 $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;}
24649 esac
24651 # Test if the assembler supports the section flag 'e' for specifying
24652 # an excluded section.
24653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24654 $as_echo_n "checking assembler for .section with e... " >&6; }
24655 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24656 $as_echo_n "(cached) " >&6
24657 else
24658 gcc_cv_as_section_has_e=no
24659 if test $in_tree_gas = yes; then
24660 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24661 then gcc_cv_as_section_has_e=yes
24663 elif test x$gcc_cv_as != x; then
24664 $as_echo '.section foo1,"e"
24665 .byte 0,0,0,0' > conftest.s
24666 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24668 (eval $ac_try) 2>&5
24669 ac_status=$?
24670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24671 test $ac_status = 0; }; }
24672 then
24673 gcc_cv_as_section_has_e=yes
24674 else
24675 echo "configure: failed program was" >&5
24676 cat conftest.s >&5
24678 rm -f conftest.o conftest.s
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24682 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24685 cat >>confdefs.h <<_ACEOF
24686 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24687 _ACEOF
24690 esac
24692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24693 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24694 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24695 $as_echo_n "(cached) " >&6
24696 else
24697 gcc_cv_as_ix86_filds=no
24698 if test x$gcc_cv_as != x; then
24699 $as_echo 'filds mem; fists mem' > conftest.s
24700 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24702 (eval $ac_try) 2>&5
24703 ac_status=$?
24704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24705 test $ac_status = 0; }; }
24706 then
24707 gcc_cv_as_ix86_filds=yes
24708 else
24709 echo "configure: failed program was" >&5
24710 cat conftest.s >&5
24712 rm -f conftest.o conftest.s
24715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24716 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24717 if test $gcc_cv_as_ix86_filds = yes; then
24719 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24724 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24725 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24726 $as_echo_n "(cached) " >&6
24727 else
24728 gcc_cv_as_ix86_fildq=no
24729 if test x$gcc_cv_as != x; then
24730 $as_echo 'fildq mem; fistpq mem' > conftest.s
24731 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24733 (eval $ac_try) 2>&5
24734 ac_status=$?
24735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24736 test $ac_status = 0; }; }
24737 then
24738 gcc_cv_as_ix86_fildq=yes
24739 else
24740 echo "configure: failed program was" >&5
24741 cat conftest.s >&5
24743 rm -f conftest.o conftest.s
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24747 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24748 if test $gcc_cv_as_ix86_fildq = yes; then
24750 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24755 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24756 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24757 $as_echo_n "(cached) " >&6
24758 else
24759 gcc_cv_as_ix86_cmov_sun_syntax=no
24760 if test x$gcc_cv_as != x; then
24761 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24762 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24764 (eval $ac_try) 2>&5
24765 ac_status=$?
24766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24767 test $ac_status = 0; }; }
24768 then
24769 gcc_cv_as_ix86_cmov_sun_syntax=yes
24770 else
24771 echo "configure: failed program was" >&5
24772 cat conftest.s >&5
24774 rm -f conftest.o conftest.s
24777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24778 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24779 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24781 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24786 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24787 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24788 $as_echo_n "(cached) " >&6
24789 else
24790 gcc_cv_as_ix86_ffreep=no
24791 if test x$gcc_cv_as != x; then
24792 $as_echo 'ffreep %st(1)' > conftest.s
24793 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24795 (eval $ac_try) 2>&5
24796 ac_status=$?
24797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24798 test $ac_status = 0; }; }
24799 then
24800 gcc_cv_as_ix86_ffreep=yes
24801 else
24802 echo "configure: failed program was" >&5
24803 cat conftest.s >&5
24805 rm -f conftest.o conftest.s
24808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24809 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24810 if test $gcc_cv_as_ix86_ffreep = yes; then
24812 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24817 $as_echo_n "checking assembler for .quad directive... " >&6; }
24818 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24819 $as_echo_n "(cached) " >&6
24820 else
24821 gcc_cv_as_ix86_quad=no
24822 if test x$gcc_cv_as != x; then
24823 $as_echo '.quad 0' > conftest.s
24824 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24826 (eval $ac_try) 2>&5
24827 ac_status=$?
24828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24829 test $ac_status = 0; }; }
24830 then
24831 gcc_cv_as_ix86_quad=yes
24832 else
24833 echo "configure: failed program was" >&5
24834 cat conftest.s >&5
24836 rm -f conftest.o conftest.s
24839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24840 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24841 if test $gcc_cv_as_ix86_quad = yes; then
24843 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24848 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24849 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24850 $as_echo_n "(cached) " >&6
24851 else
24852 gcc_cv_as_ix86_sahf=no
24853 if test x$gcc_cv_as != x; then
24854 $as_echo '.code64
24855 sahf' > conftest.s
24856 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24858 (eval $ac_try) 2>&5
24859 ac_status=$?
24860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24861 test $ac_status = 0; }; }
24862 then
24863 gcc_cv_as_ix86_sahf=yes
24864 else
24865 echo "configure: failed program was" >&5
24866 cat conftest.s >&5
24868 rm -f conftest.o conftest.s
24871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24872 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24873 if test $gcc_cv_as_ix86_sahf = yes; then
24875 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24880 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24881 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24882 $as_echo_n "(cached) " >&6
24883 else
24884 gcc_cv_as_ix86_interunit_movq=no
24885 if test x$gcc_cv_as != x; then
24886 $as_echo '.code64
24887 movq %mm0, %rax
24888 movq %rax, %xmm0' > conftest.s
24889 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24891 (eval $ac_try) 2>&5
24892 ac_status=$?
24893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24894 test $ac_status = 0; }; }
24895 then
24896 gcc_cv_as_ix86_interunit_movq=yes
24897 else
24898 echo "configure: failed program was" >&5
24899 cat conftest.s >&5
24901 rm -f conftest.o conftest.s
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24905 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24908 cat >>confdefs.h <<_ACEOF
24909 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
24910 _ACEOF
24913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24914 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24915 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24916 $as_echo_n "(cached) " >&6
24917 else
24918 gcc_cv_as_ix86_hle=no
24919 if test x$gcc_cv_as != x; then
24920 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24921 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24923 (eval $ac_try) 2>&5
24924 ac_status=$?
24925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24926 test $ac_status = 0; }; }
24927 then
24928 gcc_cv_as_ix86_hle=yes
24929 else
24930 echo "configure: failed program was" >&5
24931 cat conftest.s >&5
24933 rm -f conftest.o conftest.s
24936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24937 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24938 if test $gcc_cv_as_ix86_hle = yes; then
24940 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24945 $as_echo_n "checking assembler for swap suffix... " >&6; }
24946 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24947 $as_echo_n "(cached) " >&6
24948 else
24949 gcc_cv_as_ix86_swap=no
24950 if test x$gcc_cv_as != x; then
24951 $as_echo 'movl.s %esp, %ebp' > conftest.s
24952 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24954 (eval $ac_try) 2>&5
24955 ac_status=$?
24956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24957 test $ac_status = 0; }; }
24958 then
24959 gcc_cv_as_ix86_swap=yes
24960 else
24961 echo "configure: failed program was" >&5
24962 cat conftest.s >&5
24964 rm -f conftest.o conftest.s
24967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24968 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24969 if test $gcc_cv_as_ix86_swap = yes; then
24971 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24976 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24977 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24978 $as_echo_n "(cached) " >&6
24979 else
24980 gcc_cv_as_ix86_diff_sect_delta=no
24981 if test x$gcc_cv_as != x; then
24982 $as_echo '.section .rodata
24983 .L1:
24984 .long .L2-.L1
24985 .long .L3-.L1
24986 .text
24987 .L3: nop
24988 .L2: nop' > conftest.s
24989 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24991 (eval $ac_try) 2>&5
24992 ac_status=$?
24993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24994 test $ac_status = 0; }; }
24995 then
24996 gcc_cv_as_ix86_diff_sect_delta=yes
24997 else
24998 echo "configure: failed program was" >&5
24999 cat conftest.s >&5
25001 rm -f conftest.o conftest.s
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25005 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25006 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25008 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25012 # These two are used unconditionally by i386.[ch]; it is to be defined
25013 # to 1 if the feature is present, 0 otherwise.
25014 as_ix86_gotoff_in_data_opt=
25015 if test x$gas = xyes; then
25016 as_ix86_gotoff_in_data_opt="--32"
25018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25019 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25020 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25021 $as_echo_n "(cached) " >&6
25022 else
25023 gcc_cv_as_ix86_gotoff_in_data=no
25024 if test $in_tree_gas = yes; then
25025 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25026 then gcc_cv_as_ix86_gotoff_in_data=yes
25028 elif test x$gcc_cv_as != x; then
25029 $as_echo ' .text
25030 .L0:
25032 .data
25033 .long .L0@GOTOFF' > conftest.s
25034 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25036 (eval $ac_try) 2>&5
25037 ac_status=$?
25038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25039 test $ac_status = 0; }; }
25040 then
25041 gcc_cv_as_ix86_gotoff_in_data=yes
25042 else
25043 echo "configure: failed program was" >&5
25044 cat conftest.s >&5
25046 rm -f conftest.o conftest.s
25049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25050 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25053 cat >>confdefs.h <<_ACEOF
25054 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25055 _ACEOF
25058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25059 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25060 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25061 $as_echo_n "(cached) " >&6
25062 else
25063 gcc_cv_as_ix86_rep_lock_prefix=no
25064 if test x$gcc_cv_as != x; then
25065 $as_echo 'rep movsl
25066 rep ret
25067 rep nop
25068 rep bsf %ecx, %eax
25069 rep bsr %ecx, %eax
25070 lock addl %edi, (%eax,%esi)
25071 lock orl $0, (%esp)' > conftest.s
25072 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25074 (eval $ac_try) 2>&5
25075 ac_status=$?
25076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25077 test $ac_status = 0; }; }
25078 then
25079 gcc_cv_as_ix86_rep_lock_prefix=yes
25080 else
25081 echo "configure: failed program was" >&5
25082 cat conftest.s >&5
25084 rm -f conftest.o conftest.s
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25088 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25089 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25091 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25096 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25097 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25098 $as_echo_n "(cached) " >&6
25099 else
25100 gcc_cv_as_ix86_ud2=no
25101 if test x$gcc_cv_as != x; then
25102 $as_echo 'ud2' > conftest.s
25103 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25105 (eval $ac_try) 2>&5
25106 ac_status=$?
25107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25108 test $ac_status = 0; }; }
25109 then
25110 gcc_cv_as_ix86_ud2=yes
25111 else
25112 echo "configure: failed program was" >&5
25113 cat conftest.s >&5
25115 rm -f conftest.o conftest.s
25118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25119 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25120 if test $gcc_cv_as_ix86_ud2 = yes; then
25122 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25127 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25128 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25129 $as_echo_n "(cached) " >&6
25130 else
25131 gcc_cv_as_ix86_tlsgdplt=no
25132 if test x$gcc_cv_as != x; then
25133 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25134 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25136 (eval $ac_try) 2>&5
25137 ac_status=$?
25138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25139 test $ac_status = 0; }; }
25140 then
25141 if test x$gcc_cv_ld != x \
25142 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25143 gcc_cv_as_ix86_tlsgdplt=yes
25145 rm -f conftest
25146 else
25147 echo "configure: failed program was" >&5
25148 cat conftest.s >&5
25150 rm -f conftest.o conftest.s
25153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25154 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25155 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25157 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25161 conftest_s='
25162 .section .tdata,"aw'$tls_section_flag'",@progbits
25163 tls_ld:
25164 .section .text,"ax",@progbits
25165 call tls_ld@tlsldmplt'
25166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25167 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25168 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25169 $as_echo_n "(cached) " >&6
25170 else
25171 gcc_cv_as_ix86_tlsldmplt=no
25172 if test x$gcc_cv_as != x; then
25173 $as_echo "$conftest_s" > conftest.s
25174 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25176 (eval $ac_try) 2>&5
25177 ac_status=$?
25178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25179 test $ac_status = 0; }; }
25180 then
25181 if test x$gcc_cv_ld != x \
25182 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25183 gcc_cv_as_ix86_tlsldmplt=yes
25185 rm -f conftest
25186 else
25187 echo "configure: failed program was" >&5
25188 cat conftest.s >&5
25190 rm -f conftest.o conftest.s
25193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25194 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25197 cat >>confdefs.h <<_ACEOF
25198 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25199 _ACEOF
25202 # Enforce 32-bit output with gas and gld.
25203 if test x$gas = xyes; then
25204 as_ix86_tls_ldm_opt="--32"
25206 if echo "$ld_ver" | grep GNU > /dev/null; then
25207 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25208 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25209 else
25210 ld_ix86_tls_ldm_opt="-melf_i386"
25213 conftest_s='
25214 .section .text,"ax",@progbits
25215 .globl _start
25216 .type _start, @function
25217 _start:
25218 leal value@tlsldm(%ebx), %eax
25219 call ___tls_get_addr@plt
25221 .section .tdata,"aw'$tls_section_flag'",@progbits
25222 .type value, @object
25223 value:'
25224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25225 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25226 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25227 $as_echo_n "(cached) " >&6
25228 else
25229 gcc_cv_as_ix86_tlsldm=no
25230 if test x$gcc_cv_as != x; then
25231 $as_echo "$conftest_s" > conftest.s
25232 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25234 (eval $ac_try) 2>&5
25235 ac_status=$?
25236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25237 test $ac_status = 0; }; }
25238 then
25239 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25240 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25241 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25242 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25243 gcc_cv_as_ix86_tlsldm=yes
25246 rm -f conftest
25247 else
25248 echo "configure: failed program was" >&5
25249 cat conftest.s >&5
25251 rm -f conftest.o conftest.s
25254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25255 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25258 cat >>confdefs.h <<_ACEOF
25259 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25260 _ACEOF
25265 ia64*-*-*)
25266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25267 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25268 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25269 $as_echo_n "(cached) " >&6
25270 else
25271 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25272 if test $in_tree_gas = yes; then
25273 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25274 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25276 elif test x$gcc_cv_as != x; then
25277 $as_echo ' .text
25278 addl r15 = @ltoffx(x#), gp
25280 ld8.mov r16 = [r15], x#' > conftest.s
25281 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25283 (eval $ac_try) 2>&5
25284 ac_status=$?
25285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25286 test $ac_status = 0; }; }
25287 then
25288 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
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_ia64_ltoffx_ldxmov_relocs" >&5
25297 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25298 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25300 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25306 powerpc*-*-*)
25307 case $target in
25308 *-*-aix*) conftest_s=' .machine "pwr5"
25309 .csect .text[PR]
25310 mfcr 3,128';;
25311 *-*-darwin*)
25312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25313 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25314 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25315 $as_echo_n "(cached) " >&6
25316 else
25317 gcc_cv_as_machine_directive=no
25318 if test x$gcc_cv_as != x; then
25319 $as_echo ' .machine ppc7400' > conftest.s
25320 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25322 (eval $ac_try) 2>&5
25323 ac_status=$?
25324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25325 test $ac_status = 0; }; }
25326 then
25327 gcc_cv_as_machine_directive=yes
25328 else
25329 echo "configure: failed program was" >&5
25330 cat conftest.s >&5
25332 rm -f conftest.o conftest.s
25335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25336 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25338 if test x$gcc_cv_as_machine_directive != xyes; then
25339 echo "*** This target requires an assembler supporting \".machine\"" >&2
25340 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25341 test x$build = x$target && exit 1
25343 conftest_s=' .text
25344 mfcr r3,128';;
25345 *) conftest_s=' .machine power4
25346 .text
25347 mfcr 3,128';;
25348 esac
25350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25351 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25352 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25353 $as_echo_n "(cached) " >&6
25354 else
25355 gcc_cv_as_powerpc_mfcrf=no
25356 if test $in_tree_gas = yes; then
25357 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25358 then gcc_cv_as_powerpc_mfcrf=yes
25360 elif test x$gcc_cv_as != x; then
25361 $as_echo "$conftest_s" > conftest.s
25362 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25364 (eval $ac_try) 2>&5
25365 ac_status=$?
25366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25367 test $ac_status = 0; }; }
25368 then
25369 gcc_cv_as_powerpc_mfcrf=yes
25370 else
25371 echo "configure: failed program was" >&5
25372 cat conftest.s >&5
25374 rm -f conftest.o conftest.s
25377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25378 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25379 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25381 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25385 case $target in
25386 *-*-aix*) conftest_s=' .machine "pwr5"
25387 .csect .text[PR]
25388 popcntb 3,3';;
25389 *) conftest_s=' .machine power5
25390 .text
25391 popcntb 3,3';;
25392 esac
25394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25395 $as_echo_n "checking assembler for popcntb support... " >&6; }
25396 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25397 $as_echo_n "(cached) " >&6
25398 else
25399 gcc_cv_as_powerpc_popcntb=no
25400 if test $in_tree_gas = yes; then
25401 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25402 then gcc_cv_as_powerpc_popcntb=yes
25404 elif test x$gcc_cv_as != x; then
25405 $as_echo "$conftest_s" > conftest.s
25406 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25408 (eval $ac_try) 2>&5
25409 ac_status=$?
25410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25411 test $ac_status = 0; }; }
25412 then
25413 gcc_cv_as_powerpc_popcntb=yes
25414 else
25415 echo "configure: failed program was" >&5
25416 cat conftest.s >&5
25418 rm -f conftest.o conftest.s
25421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25422 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25423 if test $gcc_cv_as_powerpc_popcntb = yes; then
25425 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25429 case $target in
25430 *-*-aix*) conftest_s=' .machine "pwr5x"
25431 .csect .text[PR]
25432 frin 1,1';;
25433 *) conftest_s=' .machine power5
25434 .text
25435 frin 1,1';;
25436 esac
25438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25439 $as_echo_n "checking assembler for fp round support... " >&6; }
25440 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25441 $as_echo_n "(cached) " >&6
25442 else
25443 gcc_cv_as_powerpc_fprnd=no
25444 if test $in_tree_gas = yes; then
25445 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25446 then gcc_cv_as_powerpc_fprnd=yes
25448 elif test x$gcc_cv_as != x; then
25449 $as_echo "$conftest_s" > conftest.s
25450 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25452 (eval $ac_try) 2>&5
25453 ac_status=$?
25454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25455 test $ac_status = 0; }; }
25456 then
25457 gcc_cv_as_powerpc_fprnd=yes
25458 else
25459 echo "configure: failed program was" >&5
25460 cat conftest.s >&5
25462 rm -f conftest.o conftest.s
25465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25466 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25467 if test $gcc_cv_as_powerpc_fprnd = yes; then
25469 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25473 case $target in
25474 *-*-aix*) conftest_s=' .machine "pwr6"
25475 .csect .text[PR]
25476 mffgpr 1,3';;
25477 *) conftest_s=' .machine power6
25478 .text
25479 mffgpr 1,3';;
25480 esac
25482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25483 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25484 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25485 $as_echo_n "(cached) " >&6
25486 else
25487 gcc_cv_as_powerpc_mfpgpr=no
25488 if test $in_tree_gas = yes; then
25489 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25490 then gcc_cv_as_powerpc_mfpgpr=yes
25492 elif test x$gcc_cv_as != x; then
25493 $as_echo "$conftest_s" > conftest.s
25494 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25496 (eval $ac_try) 2>&5
25497 ac_status=$?
25498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25499 test $ac_status = 0; }; }
25500 then
25501 gcc_cv_as_powerpc_mfpgpr=yes
25502 else
25503 echo "configure: failed program was" >&5
25504 cat conftest.s >&5
25506 rm -f conftest.o conftest.s
25509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25510 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25511 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25513 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25517 case $target in
25518 *-*-aix*) conftest_s=' .csect .text[PR]
25519 LCF..0:
25520 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25521 *-*-darwin*)
25522 conftest_s=' .text
25523 LCF0:
25524 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25525 *) conftest_s=' .text
25526 .LCF0:
25527 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25528 esac
25530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25531 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25532 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25533 $as_echo_n "(cached) " >&6
25534 else
25535 gcc_cv_as_powerpc_rel16=no
25536 if test $in_tree_gas = yes; then
25537 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25538 then gcc_cv_as_powerpc_rel16=yes
25540 elif test x$gcc_cv_as != x; then
25541 $as_echo "$conftest_s" > conftest.s
25542 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25544 (eval $ac_try) 2>&5
25545 ac_status=$?
25546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25547 test $ac_status = 0; }; }
25548 then
25549 gcc_cv_as_powerpc_rel16=yes
25550 else
25551 echo "configure: failed program was" >&5
25552 cat conftest.s >&5
25554 rm -f conftest.o conftest.s
25557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25558 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25559 if test $gcc_cv_as_powerpc_rel16 = yes; then
25561 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25565 case $target in
25566 *-*-aix*) conftest_s=' .machine "pwr6"
25567 .csect .text[PR]
25568 cmpb 3,4,5';;
25569 *) conftest_s=' .machine power6
25570 .text
25571 cmpb 3,4,5';;
25572 esac
25574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25575 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25576 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25577 $as_echo_n "(cached) " >&6
25578 else
25579 gcc_cv_as_powerpc_cmpb=no
25580 if test $in_tree_gas = yes; then
25581 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25582 then gcc_cv_as_powerpc_cmpb=yes
25584 elif test x$gcc_cv_as != x; then
25585 $as_echo "$conftest_s" > conftest.s
25586 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25588 (eval $ac_try) 2>&5
25589 ac_status=$?
25590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25591 test $ac_status = 0; }; }
25592 then
25593 gcc_cv_as_powerpc_cmpb=yes
25594 else
25595 echo "configure: failed program was" >&5
25596 cat conftest.s >&5
25598 rm -f conftest.o conftest.s
25601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25602 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25603 if test $gcc_cv_as_powerpc_cmpb = yes; then
25605 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25609 case $target in
25610 *-*-aix*) conftest_s=' .machine "pwr6"
25611 .csect .text[PR]
25612 dadd 1,2,3';;
25613 *) conftest_s=' .machine power6
25614 .text
25615 dadd 1,2,3';;
25616 esac
25618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25619 $as_echo_n "checking assembler for decimal float support... " >&6; }
25620 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25621 $as_echo_n "(cached) " >&6
25622 else
25623 gcc_cv_as_powerpc_dfp=no
25624 if test $in_tree_gas = yes; then
25625 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25626 then gcc_cv_as_powerpc_dfp=yes
25628 elif test x$gcc_cv_as != x; then
25629 $as_echo "$conftest_s" > conftest.s
25630 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25632 (eval $ac_try) 2>&5
25633 ac_status=$?
25634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25635 test $ac_status = 0; }; }
25636 then
25637 gcc_cv_as_powerpc_dfp=yes
25638 else
25639 echo "configure: failed program was" >&5
25640 cat conftest.s >&5
25642 rm -f conftest.o conftest.s
25645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25646 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25647 if test $gcc_cv_as_powerpc_dfp = yes; then
25649 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25653 case $target in
25654 *-*-aix*) conftest_s=' .machine "pwr7"
25655 .csect .text[PR]
25656 lxvd2x 1,2,3';;
25657 *) conftest_s=' .machine power7
25658 .text
25659 lxvd2x 1,2,3';;
25660 esac
25662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25663 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25664 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25665 $as_echo_n "(cached) " >&6
25666 else
25667 gcc_cv_as_powerpc_vsx=no
25668 if test $in_tree_gas = yes; then
25669 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25670 then gcc_cv_as_powerpc_vsx=yes
25672 elif test x$gcc_cv_as != x; then
25673 $as_echo "$conftest_s" > conftest.s
25674 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25676 (eval $ac_try) 2>&5
25677 ac_status=$?
25678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25679 test $ac_status = 0; }; }
25680 then
25681 gcc_cv_as_powerpc_vsx=yes
25682 else
25683 echo "configure: failed program was" >&5
25684 cat conftest.s >&5
25686 rm -f conftest.o conftest.s
25689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25690 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25691 if test $gcc_cv_as_powerpc_vsx = yes; then
25693 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25697 case $target in
25698 *-*-aix*) conftest_s=' .machine "pwr7"
25699 .csect .text[PR]
25700 popcntd 3,3';;
25701 *) conftest_s=' .machine power7
25702 .text
25703 popcntd 3,3';;
25704 esac
25706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25707 $as_echo_n "checking assembler for popcntd support... " >&6; }
25708 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25709 $as_echo_n "(cached) " >&6
25710 else
25711 gcc_cv_as_powerpc_popcntd=no
25712 if test $in_tree_gas = yes; then
25713 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25714 then gcc_cv_as_powerpc_popcntd=yes
25716 elif test x$gcc_cv_as != x; then
25717 $as_echo "$conftest_s" > conftest.s
25718 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25720 (eval $ac_try) 2>&5
25721 ac_status=$?
25722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25723 test $ac_status = 0; }; }
25724 then
25725 gcc_cv_as_powerpc_popcntd=yes
25726 else
25727 echo "configure: failed program was" >&5
25728 cat conftest.s >&5
25730 rm -f conftest.o conftest.s
25733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25734 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25735 if test $gcc_cv_as_powerpc_popcntd = yes; then
25737 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25741 case $target in
25742 *-*-aix*) conftest_s=' .machine "pwr8"
25743 .csect .text[PR]';;
25744 *) conftest_s=' .machine power8
25745 .text';;
25746 esac
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25749 $as_echo_n "checking assembler for power8 support... " >&6; }
25750 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25751 $as_echo_n "(cached) " >&6
25752 else
25753 gcc_cv_as_powerpc_power8=no
25754 if test $in_tree_gas = yes; then
25755 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25756 then gcc_cv_as_powerpc_power8=yes
25758 elif test x$gcc_cv_as != x; then
25759 $as_echo "$conftest_s" > conftest.s
25760 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25762 (eval $ac_try) 2>&5
25763 ac_status=$?
25764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25765 test $ac_status = 0; }; }
25766 then
25767 gcc_cv_as_powerpc_power8=yes
25768 else
25769 echo "configure: failed program was" >&5
25770 cat conftest.s >&5
25772 rm -f conftest.o conftest.s
25775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25776 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25777 if test $gcc_cv_as_powerpc_power8 = yes; then
25779 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25783 case $target in
25784 *-*-aix*) conftest_s=' .csect .text[PR]
25785 lwsync';;
25786 *) conftest_s=' .text
25787 lwsync';;
25788 esac
25790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25791 $as_echo_n "checking assembler for lwsync support... " >&6; }
25792 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25793 $as_echo_n "(cached) " >&6
25794 else
25795 gcc_cv_as_powerpc_lwsync=no
25796 if test $in_tree_gas = yes; then
25797 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25798 then gcc_cv_as_powerpc_lwsync=yes
25800 elif test x$gcc_cv_as != x; then
25801 $as_echo "$conftest_s" > conftest.s
25802 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25804 (eval $ac_try) 2>&5
25805 ac_status=$?
25806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25807 test $ac_status = 0; }; }
25808 then
25809 gcc_cv_as_powerpc_lwsync=yes
25810 else
25811 echo "configure: failed program was" >&5
25812 cat conftest.s >&5
25814 rm -f conftest.o conftest.s
25817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25818 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25819 if test $gcc_cv_as_powerpc_lwsync = yes; then
25821 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25825 case $target in
25826 *-*-aix*) conftest_s=' .machine "476"
25827 .csect .text[PR]
25828 dci 0';;
25829 *) conftest_s=' .machine "476"
25830 .text
25831 dci 0';;
25832 esac
25834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25835 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25836 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25837 $as_echo_n "(cached) " >&6
25838 else
25839 gcc_cv_as_powerpc_dci=no
25840 if test $in_tree_gas = yes; then
25841 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25842 then gcc_cv_as_powerpc_dci=yes
25844 elif test x$gcc_cv_as != x; then
25845 $as_echo "$conftest_s" > conftest.s
25846 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25847 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25848 (eval $ac_try) 2>&5
25849 ac_status=$?
25850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25851 test $ac_status = 0; }; }
25852 then
25853 gcc_cv_as_powerpc_dci=yes
25854 else
25855 echo "configure: failed program was" >&5
25856 cat conftest.s >&5
25858 rm -f conftest.o conftest.s
25861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25862 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25863 if test $gcc_cv_as_powerpc_dci = yes; then
25865 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25870 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25871 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25872 $as_echo_n "(cached) " >&6
25873 else
25874 gcc_cv_as_powerpc_gnu_attribute=no
25875 if test $in_tree_gas = yes; then
25876 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25877 then gcc_cv_as_powerpc_gnu_attribute=yes
25879 elif test x$gcc_cv_as != x; then
25880 $as_echo '.gnu_attribute 4,1' > conftest.s
25881 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25883 (eval $ac_try) 2>&5
25884 ac_status=$?
25885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25886 test $ac_status = 0; }; }
25887 then
25888 gcc_cv_as_powerpc_gnu_attribute=yes
25889 else
25890 echo "configure: failed program was" >&5
25891 cat conftest.s >&5
25893 rm -f conftest.o conftest.s
25896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25897 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25898 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25900 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25905 $as_echo_n "checking assembler for tls marker support... " >&6; }
25906 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25907 $as_echo_n "(cached) " >&6
25908 else
25909 gcc_cv_as_powerpc_tls_markers=no
25910 if test $in_tree_gas = yes; then
25911 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25912 then gcc_cv_as_powerpc_tls_markers=yes
25914 elif test x$gcc_cv_as != x; then
25915 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25916 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25918 (eval $ac_try) 2>&5
25919 ac_status=$?
25920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25921 test $ac_status = 0; }; }
25922 then
25923 gcc_cv_as_powerpc_tls_markers=yes
25924 else
25925 echo "configure: failed program was" >&5
25926 cat conftest.s >&5
25928 rm -f conftest.o conftest.s
25931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25932 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25933 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25935 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25939 case $target in
25940 *-*-aix*)
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25942 $as_echo_n "checking assembler for .ref support... " >&6; }
25943 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25944 $as_echo_n "(cached) " >&6
25945 else
25946 gcc_cv_as_aix_ref=no
25947 if test $in_tree_gas = yes; then
25948 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25949 then gcc_cv_as_aix_ref=yes
25951 elif test x$gcc_cv_as != x; then
25952 $as_echo ' .csect stuff[rw]
25953 stuff:
25954 .long 1
25955 .extern sym
25956 .ref sym
25957 ' > conftest.s
25958 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25960 (eval $ac_try) 2>&5
25961 ac_status=$?
25962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25963 test $ac_status = 0; }; }
25964 then
25965 gcc_cv_as_aix_ref=yes
25966 else
25967 echo "configure: failed program was" >&5
25968 cat conftest.s >&5
25970 rm -f conftest.o conftest.s
25973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25974 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25975 if test $gcc_cv_as_aix_ref = yes; then
25977 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25981 esac
25984 mips*-*-*)
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25986 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25987 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25988 $as_echo_n "(cached) " >&6
25989 else
25990 gcc_cv_as_mips_explicit_relocs=no
25991 if test $in_tree_gas = yes; then
25992 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25993 then gcc_cv_as_mips_explicit_relocs=yes
25995 elif test x$gcc_cv_as != x; then
25996 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25997 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25999 (eval $ac_try) 2>&5
26000 ac_status=$?
26001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26002 test $ac_status = 0; }; }
26003 then
26004 gcc_cv_as_mips_explicit_relocs=yes
26005 else
26006 echo "configure: failed program was" >&5
26007 cat conftest.s >&5
26009 rm -f conftest.o conftest.s
26012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26013 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26014 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26015 if test x$target_cpu_default = x
26016 then target_cpu_default=MASK_EXPLICIT_RELOCS
26017 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26021 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26022 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26023 $as_echo_n "(cached) " >&6
26024 else
26025 gcc_cv_as_mips_no_shared=no
26026 if test $in_tree_gas = yes; then
26027 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26028 then gcc_cv_as_mips_no_shared=yes
26030 elif test x$gcc_cv_as != x; then
26031 $as_echo 'nop' > conftest.s
26032 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26034 (eval $ac_try) 2>&5
26035 ac_status=$?
26036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26037 test $ac_status = 0; }; }
26038 then
26039 gcc_cv_as_mips_no_shared=yes
26040 else
26041 echo "configure: failed program was" >&5
26042 cat conftest.s >&5
26044 rm -f conftest.o conftest.s
26047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26048 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26049 if test $gcc_cv_as_mips_no_shared = yes; then
26051 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26056 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26057 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26058 $as_echo_n "(cached) " >&6
26059 else
26060 gcc_cv_as_mips_gnu_attribute=no
26061 if test $in_tree_gas = yes; then
26062 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26063 then gcc_cv_as_mips_gnu_attribute=yes
26065 elif test x$gcc_cv_as != x; then
26066 $as_echo '.gnu_attribute 4,1' > conftest.s
26067 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26069 (eval $ac_try) 2>&5
26070 ac_status=$?
26071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26072 test $ac_status = 0; }; }
26073 then
26074 gcc_cv_as_mips_gnu_attribute=yes
26075 else
26076 echo "configure: failed program was" >&5
26077 cat conftest.s >&5
26079 rm -f conftest.o conftest.s
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26083 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26084 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26086 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26091 $as_echo_n "checking assembler for .micromips support... " >&6; }
26092 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26093 $as_echo_n "(cached) " >&6
26094 else
26095 gcc_cv_as_micromips_support=no
26096 if test x$gcc_cv_as != x; then
26097 $as_echo '.set micromips' > conftest.s
26098 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26100 (eval $ac_try) 2>&5
26101 ac_status=$?
26102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26103 test $ac_status = 0; }; }
26104 then
26105 gcc_cv_as_micromips_support=yes
26106 else
26107 echo "configure: failed program was" >&5
26108 cat conftest.s >&5
26110 rm -f conftest.o conftest.s
26113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26114 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26115 if test $gcc_cv_as_micromips_support = yes; then
26117 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26122 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26123 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26124 $as_echo_n "(cached) " >&6
26125 else
26126 gcc_cv_as_mips_dtprelword=no
26127 if test $in_tree_gas = yes; then
26128 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26129 then gcc_cv_as_mips_dtprelword=yes
26131 elif test x$gcc_cv_as != x; then
26132 $as_echo '.section .tdata,"awT",@progbits
26134 .word 2
26135 .text
26136 .dtprelword x+0x8000' > conftest.s
26137 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26139 (eval $ac_try) 2>&5
26140 ac_status=$?
26141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26142 test $ac_status = 0; }; }
26143 then
26144 gcc_cv_as_mips_dtprelword=yes
26145 else
26146 echo "configure: failed program was" >&5
26147 cat conftest.s >&5
26149 rm -f conftest.o conftest.s
26152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26153 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26154 if test $gcc_cv_as_mips_dtprelword = yes; then
26156 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26161 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26162 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26163 $as_echo_n "(cached) " >&6
26164 else
26165 gcc_cv_as_mips_dspr1_mult=no
26166 if test x$gcc_cv_as != x; then
26167 $as_echo ' .set mips32r2
26168 .set nodspr2
26169 .set dsp
26170 madd $ac3,$4,$5
26171 maddu $ac3,$4,$5
26172 msub $ac3,$4,$5
26173 msubu $ac3,$4,$5
26174 mult $ac3,$4,$5
26175 multu $ac3,$4,$5' > conftest.s
26176 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26178 (eval $ac_try) 2>&5
26179 ac_status=$?
26180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26181 test $ac_status = 0; }; }
26182 then
26183 gcc_cv_as_mips_dspr1_mult=yes
26184 else
26185 echo "configure: failed program was" >&5
26186 cat conftest.s >&5
26188 rm -f conftest.o conftest.s
26191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26192 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26193 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26195 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26200 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26201 gcc_cv_as_ld_jalr_reloc=no
26202 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26203 if test $in_tree_ld = yes ; then
26204 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 \
26205 && test $in_tree_ld_is_elf = yes; then
26206 gcc_cv_as_ld_jalr_reloc=yes
26208 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26209 echo ' .ent x' > conftest.s
26210 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26211 echo ' lw $25,%call16(y)($28)' >> conftest.s
26212 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26213 echo '1: jalr $25' >> conftest.s
26214 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26215 echo '1: jalr $25' >> conftest.s
26216 echo ' .end x' >> conftest.s
26217 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26218 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26219 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26220 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26221 gcc_cv_as_ld_jalr_reloc=yes
26224 rm -f conftest.*
26227 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26228 if test x$target_cpu_default = x; then
26229 target_cpu_default=MASK_RELAX_PIC_CALLS
26230 else
26231 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26235 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26238 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26239 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26240 $as_echo_n "(cached) " >&6
26241 else
26242 gcc_cv_ld_mips_personality_relaxation=no
26243 if test $in_tree_ld = yes ; then
26244 if test "$gcc_cv_gld_major_version" -eq 2 \
26245 -a "$gcc_cv_gld_minor_version" -ge 21 \
26246 -o "$gcc_cv_gld_major_version" -gt 2; then
26247 gcc_cv_ld_mips_personality_relaxation=yes
26249 elif test x$gcc_cv_as != x \
26250 -a x$gcc_cv_ld != x \
26251 -a x$gcc_cv_readelf != x ; then
26252 cat > conftest.s <<EOF
26253 .cfi_startproc
26254 .cfi_personality 0x80,indirect_ptr
26255 .ent test
26256 test:
26258 .end test
26259 .cfi_endproc
26261 .section .data,"aw",@progbits
26262 indirect_ptr:
26263 .dc.a personality
26265 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26266 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26267 if $gcc_cv_readelf -d conftest 2>&1 \
26268 | grep TEXTREL > /dev/null 2>&1; then
26270 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26271 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26273 else
26274 gcc_cv_ld_mips_personality_relaxation=yes
26278 rm -f conftest.s conftest.o conftest
26280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26281 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26282 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26284 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26289 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26290 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26291 $as_echo_n "(cached) " >&6
26292 else
26293 gcc_cv_as_mips_nan=no
26294 if test x$gcc_cv_as != x; then
26295 $as_echo '' > conftest.s
26296 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26298 (eval $ac_try) 2>&5
26299 ac_status=$?
26300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26301 test $ac_status = 0; }; }
26302 then
26303 gcc_cv_as_mips_nan=yes
26304 else
26305 echo "configure: failed program was" >&5
26306 cat conftest.s >&5
26308 rm -f conftest.o conftest.s
26311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26312 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26313 if test $gcc_cv_as_mips_nan = yes; then
26315 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26318 if test x$gcc_cv_as_mips_nan = xno \
26319 && test x$with_nan != x; then
26320 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26323 esac
26325 # Mips and HP-UX need the GNU assembler.
26326 # Linux on IA64 might be able to use the Intel assembler.
26328 case "$target" in
26329 mips*-*-* | *-*-hpux* )
26330 if test x$gas_flag = xyes \
26331 || test x"$host" != x"$build" \
26332 || test ! -x "$gcc_cv_as" \
26333 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26335 else
26336 echo "*** This configuration requires the GNU assembler" >&2
26337 exit 1
26340 esac
26342 # ??? Not all targets support dwarf2 debug_line, even within a version
26343 # of gas. Moreover, we need to emit a valid instruction to trigger any
26344 # info to the output file. So, as supported targets are added to gas 2.11,
26345 # add some instruction here to (also) show we expect this might work.
26346 # ??? Once 2.11 is released, probably need to add first known working
26347 # version to the per-target configury.
26348 case "$cpu_type" in
26349 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26350 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26351 | xstormy16 | xtensa)
26352 insn="nop"
26354 ia64 | s390)
26355 insn="nop 0"
26357 mmix)
26358 insn="swym 0"
26360 esac
26361 if test x"$insn" != x; then
26362 conftest_s="\
26363 .file 1 \"conftest.s\"
26364 .loc 1 3 0
26365 $insn"
26366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26367 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26368 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26369 $as_echo_n "(cached) " >&6
26370 else
26371 gcc_cv_as_dwarf2_debug_line=no
26372 if test $in_tree_gas = yes; then
26373 if test $in_tree_gas_is_elf = yes \
26374 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26375 then gcc_cv_as_dwarf2_debug_line=yes
26377 elif test x$gcc_cv_as != x; then
26378 $as_echo "$conftest_s" > conftest.s
26379 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26381 (eval $ac_try) 2>&5
26382 ac_status=$?
26383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26384 test $ac_status = 0; }; }
26385 then
26386 if test x$gcc_cv_objdump != x \
26387 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26388 | grep debug_line > /dev/null 2>&1; then
26389 gcc_cv_as_dwarf2_debug_line=yes
26391 else
26392 echo "configure: failed program was" >&5
26393 cat conftest.s >&5
26395 rm -f conftest.o conftest.s
26398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26399 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26402 # The .debug_line file table must be in the exact order that
26403 # we specified the files, since these indices are also used
26404 # by DW_AT_decl_file. Approximate this test by testing if
26405 # the assembler bitches if the same index is assigned twice.
26406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26407 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26408 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26409 $as_echo_n "(cached) " >&6
26410 else
26411 gcc_cv_as_dwarf2_file_buggy=no
26412 if test x$gcc_cv_as != x; then
26413 $as_echo ' .file 1 "foo.s"
26414 .file 1 "bar.s"' > conftest.s
26415 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26417 (eval $ac_try) 2>&5
26418 ac_status=$?
26419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26420 test $ac_status = 0; }; }
26421 then
26422 gcc_cv_as_dwarf2_file_buggy=yes
26423 else
26424 echo "configure: failed program was" >&5
26425 cat conftest.s >&5
26427 rm -f conftest.o conftest.s
26430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26431 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26434 if test $gcc_cv_as_dwarf2_debug_line = yes \
26435 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26437 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26442 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26443 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26444 $as_echo_n "(cached) " >&6
26445 else
26446 gcc_cv_as_gdwarf2_flag=no
26447 if test $in_tree_gas = yes; then
26448 if test $in_tree_gas_is_elf = yes \
26449 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26450 then gcc_cv_as_gdwarf2_flag=yes
26452 elif test x$gcc_cv_as != x; then
26453 $as_echo "$insn" > conftest.s
26454 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26456 (eval $ac_try) 2>&5
26457 ac_status=$?
26458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26459 test $ac_status = 0; }; }
26460 then
26461 gcc_cv_as_gdwarf2_flag=yes
26462 else
26463 echo "configure: failed program was" >&5
26464 cat conftest.s >&5
26466 rm -f conftest.o conftest.s
26469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26470 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26471 if test $gcc_cv_as_gdwarf2_flag = yes; then
26473 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26478 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26479 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26480 $as_echo_n "(cached) " >&6
26481 else
26482 gcc_cv_as_gstabs_flag=no
26483 if test $in_tree_gas = yes; then
26484 if test $in_tree_gas_is_elf = yes \
26485 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26486 then gcc_cv_as_gstabs_flag=yes
26488 elif test x$gcc_cv_as != x; then
26489 $as_echo "$insn" > conftest.s
26490 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26492 (eval $ac_try) 2>&5
26493 ac_status=$?
26494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26495 test $ac_status = 0; }; }
26496 then
26497 gcc_cv_as_gstabs_flag=yes
26498 else
26499 echo "configure: failed program was" >&5
26500 cat conftest.s >&5
26502 rm -f conftest.o conftest.s
26505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26506 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26507 if test $gcc_cv_as_gstabs_flag = yes; then
26509 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26514 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26515 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26516 $as_echo_n "(cached) " >&6
26517 else
26518 gcc_cv_as_debug_prefix_map_flag=no
26519 if test $in_tree_gas = yes; then
26520 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26521 then gcc_cv_as_debug_prefix_map_flag=yes
26523 elif test x$gcc_cv_as != x; then
26524 $as_echo "$insn" > conftest.s
26525 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26527 (eval $ac_try) 2>&5
26528 ac_status=$?
26529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26530 test $ac_status = 0; }; }
26531 then
26532 gcc_cv_as_debug_prefix_map_flag=yes
26533 else
26534 echo "configure: failed program was" >&5
26535 cat conftest.s >&5
26537 rm -f conftest.o conftest.s
26540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26541 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26542 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26544 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
26550 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
26551 if test "${gcc_cv_as_compress_debug+set}" = set; then :
26552 $as_echo_n "(cached) " >&6
26553 else
26554 gcc_cv_as_compress_debug=no
26555 if test x$gcc_cv_as != x; then
26556 $as_echo '' > conftest.s
26557 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
26558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26559 (eval $ac_try) 2>&5
26560 ac_status=$?
26561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26562 test $ac_status = 0; }; }
26563 then
26564 # gas compiled without zlib cannot compress debug sections and warns
26565 # about it, but still exits successfully. So check for this, too.
26566 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
26567 then
26568 gcc_cv_as_compress_debug=0
26569 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
26570 then
26571 gcc_cv_as_compress_debug=1
26572 gcc_cv_as_compress_debug_option="--compress-debug-sections"
26573 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
26574 else
26575 gcc_cv_as_compress_debug=0
26576 # FIXME: Future gas versions will support ELF gABI style via
26577 # --compress-debug-sections[=type].
26579 else
26580 echo "configure: failed program was" >&5
26581 cat conftest.s >&5
26583 rm -f conftest.o conftest.s
26586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
26587 $as_echo "$gcc_cv_as_compress_debug" >&6; }
26590 cat >>confdefs.h <<_ACEOF
26591 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
26592 _ACEOF
26595 cat >>confdefs.h <<_ACEOF
26596 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
26597 _ACEOF
26600 cat >>confdefs.h <<_ACEOF
26601 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
26602 _ACEOF
26605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26606 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26607 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26608 $as_echo_n "(cached) " >&6
26609 else
26610 gcc_cv_as_lcomm_with_alignment=no
26611 if test x$gcc_cv_as != x; then
26612 $as_echo '.lcomm bar,4,16' > conftest.s
26613 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26615 (eval $ac_try) 2>&5
26616 ac_status=$?
26617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26618 test $ac_status = 0; }; }
26619 then
26620 gcc_cv_as_lcomm_with_alignment=yes
26621 else
26622 echo "configure: failed program was" >&5
26623 cat conftest.s >&5
26625 rm -f conftest.o conftest.s
26628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26629 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26630 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26632 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26636 if test x$with_sysroot = x && test x$host = x$target \
26637 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26638 && test "$prefix" != "NONE"; then
26640 cat >>confdefs.h <<_ACEOF
26641 #define PREFIX_INCLUDE_DIR "$prefix/include"
26642 _ACEOF
26646 # Determine the version of glibc, if any, used on the target.
26647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26648 $as_echo_n "checking for target glibc version... " >&6; }
26650 # Check whether --with-glibc-version was given.
26651 if test "${with_glibc_version+set}" = set; then :
26652 withval=$with_glibc_version;
26653 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26654 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26655 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26656 else
26657 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
26659 else
26661 glibc_version_major=0
26662 glibc_version_minor=0
26663 if test -f $target_header_dir/features.h \
26664 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26665 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26666 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26667 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26672 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26674 # Check whether --enable-gnu-unique-object was given.
26675 if test "${enable_gnu_unique_object+set}" = set; then :
26676 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26677 yes | no) ;;
26678 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26679 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26680 esac
26681 else
26682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26683 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26684 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26685 $as_echo_n "(cached) " >&6
26686 else
26687 gcc_cv_as_gnu_unique_object=no
26688 if test $in_tree_gas = yes; then
26689 if test $in_tree_gas_is_elf = yes \
26690 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26691 then gcc_cv_as_gnu_unique_object=yes
26693 elif test x$gcc_cv_as != x; then
26694 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26695 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26697 (eval $ac_try) 2>&5
26698 ac_status=$?
26699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26700 test $ac_status = 0; }; }
26701 then
26702 gcc_cv_as_gnu_unique_object=yes
26703 else
26704 echo "configure: failed program was" >&5
26705 cat conftest.s >&5
26707 rm -f conftest.o conftest.s
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26711 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26712 if test $gcc_cv_as_gnu_unique_object = yes; then
26713 # We need to unquote above to to use the definition from config.gcc.
26714 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26716 if test $glibc_version_major -gt 2 \
26717 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26718 enable_gnu_unique_object=yes
26724 if test x$enable_gnu_unique_object = xyes; then
26726 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26731 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26732 if test "${gcc_cv_as_line_zero+set}" = set; then :
26733 $as_echo_n "(cached) " >&6
26734 else
26735 gcc_cv_as_line_zero=no
26736 if test $in_tree_gas = yes; then
26737 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26738 then gcc_cv_as_line_zero=yes
26740 elif test "x$gcc_cv_as" != x; then
26741 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26742 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26744 (eval $ac_try) 2>&5
26745 ac_status=$?
26746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26747 test $ac_status = 0; }; } &&
26748 test "x`cat conftest.out`" = x
26749 then
26750 gcc_cv_as_line_zero=yes
26751 else
26752 echo "configure: failed program was" >&5
26753 cat conftest.s >&5
26754 echo "configure: error output was" >&5
26755 cat conftest.out >&5
26757 rm -f conftest.o conftest.s conftest.out
26760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26761 $as_echo "$gcc_cv_as_line_zero" >&6; }
26762 if test "x$gcc_cv_as_line_zero" = xyes; then
26764 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26769 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26770 gcc_cv_ld_eh_frame_hdr=no
26771 if test $in_tree_ld = yes ; then
26772 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 \
26773 && test $in_tree_ld_is_elf = yes; then
26774 gcc_cv_ld_eh_frame_hdr=yes
26776 elif test x$gcc_cv_ld != x; then
26777 if echo "$ld_ver" | grep GNU > /dev/null; then
26778 # Check if linker supports --eh-frame-hdr option
26779 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26780 gcc_cv_ld_eh_frame_hdr=yes
26782 else
26783 case "$target" in
26784 *-*-solaris2*)
26785 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26786 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26787 gcc_cv_ld_eh_frame_hdr=yes
26790 esac
26794 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26796 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26800 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26803 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26804 gcc_cv_ld_eh_frame_ciev3=no
26805 if test $in_tree_ld = yes ; then
26806 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 \
26807 && test $in_tree_ld_is_elf = yes; then
26808 gcc_cv_ld_eh_frame_ciev3=yes
26810 elif test x$gcc_cv_ld != x; then
26811 if echo "$ld_ver" | grep GNU > /dev/null; then
26812 gcc_cv_ld_eh_frame_ciev3=yes
26813 if test 0"$ld_date" -lt 20040513; then
26814 if test -n "$ld_date"; then
26815 # If there was date string, but was earlier than 2004-05-13, fail
26816 gcc_cv_ld_eh_frame_ciev3=no
26817 elif test "$ld_vers_major" -lt 2; then
26818 gcc_cv_ld_eh_frame_ciev3=no
26819 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26820 gcc_cv_ld_eh_frame_ciev3=no
26823 else
26824 case "$target" in
26825 *-*-solaris2*)
26826 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26827 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
26828 gcc_cv_ld_eh_frame_ciev3=yes
26831 esac
26835 cat >>confdefs.h <<_ACEOF
26836 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26837 _ACEOF
26839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26840 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26843 $as_echo_n "checking linker position independent executable support... " >&6; }
26844 gcc_cv_ld_pie=no
26845 if test $in_tree_ld = yes ; then
26846 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 \
26847 && test $in_tree_ld_is_elf = yes; then
26848 gcc_cv_ld_pie=yes
26850 elif test x$gcc_cv_ld != x; then
26851 # Check if linker supports -pie option
26852 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26853 gcc_cv_ld_pie=yes
26856 if test x"$gcc_cv_ld_pie" = xyes; then
26858 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26862 $as_echo "$gcc_cv_ld_pie" >&6; }
26864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26865 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26866 gcc_cv_ld_eh_gc_sections=no
26867 if test $in_tree_ld = yes ; then
26868 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 \
26869 && test $in_tree_ld_is_elf = yes; then
26870 gcc_cv_ld_eh_gc_sections=yes
26872 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26873 cat > conftest.s <<EOF
26874 .section .text
26875 .globl _start
26876 .type _start, @function
26877 _start:
26878 .long foo
26879 .size _start, .-_start
26880 .section .text.foo,"ax",@progbits
26881 .type foo, @function
26882 foo:
26883 .long 0
26884 .size foo, .-foo
26885 .section .gcc_except_table.foo,"a",@progbits
26886 .L0:
26887 .long 0
26888 .section .eh_frame,"a",@progbits
26889 .long .L0
26891 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26892 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26893 | grep "gc-sections option ignored" > /dev/null; then
26894 gcc_cv_ld_eh_gc_sections=no
26895 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26896 | grep gcc_except_table > /dev/null; then
26897 gcc_cv_ld_eh_gc_sections=yes
26898 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26899 if test x$gcc_cv_as_comdat_group != xyes; then
26900 gcc_cv_ld_eh_gc_sections=no
26901 cat > conftest.s <<EOF
26902 .section .text
26903 .globl _start
26904 .type _start, @function
26905 _start:
26906 .long foo
26907 .size _start, .-_start
26908 .section .gnu.linkonce.t.foo,"ax",@progbits
26909 .type foo, @function
26910 foo:
26911 .long 0
26912 .size foo, .-foo
26913 .section .gcc_except_table.foo,"a",@progbits
26914 .L0:
26915 .long 0
26916 .section .eh_frame,"a",@progbits
26917 .long .L0
26919 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26920 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26921 | grep "gc-sections option ignored" > /dev/null; then
26922 gcc_cv_ld_eh_gc_sections=no
26923 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26924 | grep gcc_except_table > /dev/null; then
26925 gcc_cv_ld_eh_gc_sections=yes
26931 rm -f conftest.s conftest.o conftest
26933 case "$target" in
26934 hppa*-*-linux*)
26935 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26936 gcc_cv_ld_eh_gc_sections=no
26938 esac
26939 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26941 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26945 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26948 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26949 gcc_cv_ld_eh_gc_sections_bug=no
26950 if test $in_tree_ld = yes ; then
26951 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 \
26952 && test $in_tree_ld_is_elf = yes; then
26953 gcc_cv_ld_eh_gc_sections_bug=yes
26955 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
26956 gcc_cv_ld_eh_gc_sections_bug=yes
26957 cat > conftest.s <<EOF
26958 .section .text
26959 .globl _start
26960 .type _start, @function
26961 _start:
26962 .long foo
26963 .size _start, .-_start
26964 .section .text.startup.foo,"ax",@progbits
26965 .type foo, @function
26966 foo:
26967 .long 0
26968 .size foo, .-foo
26969 .section .gcc_except_table.foo,"a",@progbits
26970 .L0:
26971 .long 0
26972 .section .eh_frame,"a",@progbits
26973 .long .L0
26975 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26976 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26977 | grep "gc-sections option ignored" > /dev/null; then
26979 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26980 | grep gcc_except_table > /dev/null; then
26981 gcc_cv_ld_eh_gc_sections_bug=no
26984 rm -f conftest.s conftest.o conftest
26986 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26988 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26992 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
26995 $as_echo_n "checking linker for compressed debug sections... " >&6; }
26996 # gold/gld support compressed debug sections since binutils 2.19/2.21
26997 if test $in_tree_ld = yes ; then
26998 gcc_cv_ld_compress_debug=0
26999 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 19 -o "$gcc_cv_gld_major_version" -gt 2 \
27000 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27001 gcc_cv_ld_compress_debug=2
27002 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27003 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2 \
27004 && test $in_tree_ld_is_elf = yes; then
27005 gcc_cv_ld_compress_debug=1
27007 elif echo "$ld_ver" | grep GNU > /dev/null; then
27008 gcc_cv_ld_compress_debug=1
27009 if test 0"$ld_date" -lt 20050308; then
27010 if test -n "$ld_date"; then
27011 # If there was date string, but was earlier than 2005-03-08, fail
27012 gcc_cv_ld_compress_debug=0
27013 elif test "$ld_vers_major" -lt 2; then
27014 gcc_cv_ld_compress_debug=0
27015 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27016 gcc_cv_ld_compress_debug=0
27019 if test $ld_is_gold = yes; then
27020 gcc_cv_ld_compress_debug=2
27021 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27023 else
27024 case "${target}" in
27025 *-*-solaris2*)
27026 # Introduced in Solaris 11.2.
27027 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
27028 gcc_cv_ld_compress_debug=3
27029 gcc_cv_ld_compress_debug_option="-z compress-sections"
27030 else
27031 gcc_cv_ld_compress_debug=0
27035 # Assume linkers other than GNU ld don't support compessed debug
27036 # sections.
27037 gcc_cv_ld_compress_debug=0
27039 esac
27042 cat >>confdefs.h <<_ACEOF
27043 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27044 _ACEOF
27047 cat >>confdefs.h <<_ACEOF
27048 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27049 _ACEOF
27051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27052 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27054 # --------
27055 # UNSORTED
27056 # --------
27058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27059 $as_echo_n "checking linker --as-needed support... " >&6; }
27060 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27061 $as_echo_n "(cached) " >&6
27062 else
27063 gcc_cv_ld_as_needed=no
27064 gcc_cv_ld_as_needed_option='--as-needed'
27065 gcc_cv_ld_no_as_needed_option='--no-as-needed'
27066 if test $in_tree_ld = yes ; then
27067 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 \
27068 && test $in_tree_ld_is_elf = yes; then
27069 gcc_cv_ld_as_needed=yes
27071 elif test x$gcc_cv_ld != x; then
27072 # Check if linker supports --as-needed and --no-as-needed options
27073 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
27074 gcc_cv_ld_as_needed=yes
27075 else
27076 case "$target" in
27077 # Solaris 2 ld always supports -z ignore/-z record.
27078 *-*-solaris2*)
27079 gcc_cv_ld_as_needed=yes
27080 gcc_cv_ld_as_needed_option="-z ignore"
27081 gcc_cv_ld_no_as_needed_option="-z record"
27083 esac
27086 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27087 # dl_iterate_phdr, i.e. since Solaris 11.
27088 case "$target" in
27089 *-*-solaris2.1[1-9]*)
27090 case "$target" in
27091 i?86-*-* | x86_64-*-*)
27092 if echo "$ld_ver" | grep GNU > /dev/null; then
27093 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27094 gcc_cv_ld_as_needed=no
27097 esac
27099 *-*-solaris2*)
27100 gcc_cv_ld_as_needed=no
27102 esac
27105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27106 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27107 if test x"$gcc_cv_ld_as_needed" = xyes; then
27109 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27112 cat >>confdefs.h <<_ACEOF
27113 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27114 _ACEOF
27117 cat >>confdefs.h <<_ACEOF
27118 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27119 _ACEOF
27123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27124 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27125 saved_LDFLAGS="$LDFLAGS"
27126 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
27127 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27129 /* end confdefs.h. */
27130 int main(void) {return 0;}
27131 _ACEOF
27132 if ac_fn_c_try_link "$LINENO"; then :
27133 gcc_cv_ld_clearcap=yes; break
27134 else
27135 gcc_cv_ld_clearcap=no
27137 rm -f core conftest.err conftest.$ac_objext \
27138 conftest$ac_exeext conftest.$ac_ext
27139 done
27140 LDFLAGS="$saved_LDFLAGS"
27141 if test "x$gcc_cv_ld_clearcap" = xyes; then
27143 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27145 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27149 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27151 case "$target:$tm_file" in
27152 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27153 case "$target" in
27154 *le-*-linux*)
27155 emul_name="-melf64lppc"
27157 *-*-linux*)
27158 emul_name="-melf64ppc"
27160 *-*-freebsd*)
27161 emul_name="-melf64ppc_fbsd"
27163 esac
27164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27165 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27166 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27167 $as_echo_n "(cached) " >&6
27168 else
27169 gcc_cv_ld_no_dot_syms=no
27170 if test x"$ld_is_gold" = xyes; then
27171 gcc_cv_ld_no_dot_syms=yes
27172 elif test $in_tree_ld = yes ; then
27173 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
27174 gcc_cv_ld_no_dot_syms=yes
27176 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27177 cat > conftest1.s <<EOF
27178 .text
27179 bl .foo
27181 cat > conftest2.s <<EOF
27182 .section ".opd","aw"
27183 .align 3
27184 .globl foo
27185 .type foo,@function
27186 foo:
27187 .quad .LEfoo,.TOC.@tocbase,0
27188 .text
27189 .LEfoo:
27191 .size foo,.-.LEfoo
27193 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27194 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27195 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27196 gcc_cv_ld_no_dot_syms=yes
27198 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27203 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27204 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27206 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27211 $as_echo_n "checking linker large toc support... " >&6; }
27212 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27213 $as_echo_n "(cached) " >&6
27214 else
27215 gcc_cv_ld_large_toc=no
27216 if test x"$ld_is_gold" = xyes; then
27217 gcc_cv_ld_large_toc=yes
27218 elif test $in_tree_ld = yes ; then
27219 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
27220 gcc_cv_ld_large_toc=yes
27222 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27223 cat > conftest.s <<EOF
27224 .section ".tbss","awT",@nobits
27225 .align 3
27226 ie0: .space 8
27227 .global _start
27228 .text
27229 _start:
27230 addis 9,13,ie0@got@tprel@ha
27231 ld 9,ie0@got@tprel@l(9)
27233 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27234 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27235 gcc_cv_ld_large_toc=yes
27237 rm -f conftest conftest.o conftest.s
27241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27242 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27243 if test x"$gcc_cv_ld_large_toc" = xyes; then
27245 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27249 esac
27251 case "$target" in
27252 *-*-aix*)
27253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27254 $as_echo_n "checking linker large toc support... " >&6; }
27255 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27256 $as_echo_n "(cached) " >&6
27257 else
27258 gcc_cv_ld_large_toc=no
27259 if test x$gcc_cv_as != x ; then
27260 cat > conftest.s <<EOF
27261 .toc
27262 LC..1:
27263 .tc a[TC],a[RW]
27264 .extern a[RW]
27265 .csect .text[PR]
27266 .largetoctest:
27267 addis 9,LC..1@u(2)
27268 ld 3,LC..1@l(9)
27270 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27271 gcc_cv_ld_large_toc=yes
27273 rm -f conftest conftest.o conftest.s
27277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27278 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27279 if test x"$gcc_cv_ld_large_toc" = xyes; then
27281 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27285 esac
27287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27288 $as_echo_n "checking linker --build-id support... " >&6; }
27289 if test "${gcc_cv_ld_buildid+set}" = set; then :
27290 $as_echo_n "(cached) " >&6
27291 else
27292 gcc_cv_ld_buildid=no
27293 if test $in_tree_ld = yes ; then
27294 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27295 "$gcc_cv_gld_minor_version" -ge 18 -o \
27296 "$gcc_cv_gld_major_version" -gt 2 \
27297 && test $in_tree_ld_is_elf = yes; then
27298 gcc_cv_ld_buildid=yes
27300 elif test x$gcc_cv_ld != x; then
27301 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
27302 gcc_cv_ld_buildid=yes
27306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27307 $as_echo "$gcc_cv_ld_buildid" >&6; }
27308 if test x"$gcc_cv_ld_buildid" = xyes; then
27310 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27314 # Check whether --enable-linker-build-id was given.
27315 if test "${enable_linker_build_id+set}" = set; then :
27316 enableval=$enable_linker_build_id;
27317 else
27318 enable_linker_build_id=no
27322 if test x"$enable_linker_build_id" = xyes; then
27323 if test x"$gcc_cv_ld_buildid" = xyes; then
27325 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27327 else
27328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27329 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27333 # In binutils 2.21, GNU ld gained support for new emulations fully
27334 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27336 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27337 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27338 $as_echo_n "(cached) " >&6
27339 else
27340 gcc_cv_ld_sol2_emulation=no
27341 if test $in_tree_ld = yes ; then
27342 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27343 "$gcc_cv_gld_minor_version" -ge 21 -o \
27344 "$gcc_cv_gld_major_version" -gt 2 \
27345 && test $in_tree_ld_is_elf = yes; then
27346 gcc_cv_ld_sol2_emulation=yes
27348 elif test x$gcc_cv_ld != x; then
27349 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27350 grep _sol2 > /dev/null; then
27351 gcc_cv_ld_sol2_emulation=yes
27355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27356 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27357 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27359 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27364 $as_echo_n "checking linker --sysroot support... " >&6; }
27365 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27366 $as_echo_n "(cached) " >&6
27367 else
27368 gcc_cv_ld_sysroot=no
27369 if test $in_tree_ld = yes ; then
27370 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
27371 gcc_cv_ld_sysroot=yes
27373 elif test x$gcc_cv_ld != x; then
27374 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27375 gcc_cv_ld_sysroot=yes
27379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27380 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27381 if test x"$gcc_cv_ld_sysroot" = xyes; then
27383 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27387 # Test for stack protector support in target C library.
27388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27389 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27390 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27391 $as_echo_n "(cached) " >&6
27392 else
27393 gcc_cv_libc_provides_ssp=no
27394 case "$target" in
27395 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27396 # glibc 2.4 and later provides __stack_chk_fail and
27397 # either __stack_chk_guard, or TLS access to stack guard canary.
27399 if test $glibc_version_major -gt 2 \
27400 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27401 gcc_cv_libc_provides_ssp=yes
27402 else
27404 if test -f $target_header_dir/features.h \
27405 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27406 $target_header_dir/features.h > /dev/null; then
27407 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27408 $target_header_dir/features.h > /dev/null && \
27409 test -f $target_header_dir/bits/uClibc_config.h && \
27410 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27411 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27412 gcc_cv_libc_provides_ssp=yes
27414 # all versions of Bionic support stack protector
27415 elif test -f $target_header_dir/sys/cdefs.h \
27416 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27417 $target_header_dir/sys/cdefs.h > /dev/null; then
27418 gcc_cv_libc_provides_ssp=yes
27422 *-*-gnu*)
27423 # Avoid complicated tests (see
27424 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27425 # simply assert that glibc does provide this, which is true for all
27426 # realistically usable GNU/Hurd configurations.
27427 gcc_cv_libc_provides_ssp=yes;;
27428 *-*-darwin* | *-*-freebsd*)
27429 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27430 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27431 gcc_cv_libc_provides_ssp=yes
27432 else
27433 echo "no __stack_chk_fail on this target"
27437 *) gcc_cv_libc_provides_ssp=no ;;
27438 esac
27440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27441 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27443 if test x$gcc_cv_libc_provides_ssp = xyes; then
27445 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27449 # Test for <sys/sdt.h> on the target.
27451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27452 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27453 have_sys_sdt_h=no
27454 if test -f $target_header_dir/sys/sdt.h; then
27455 have_sys_sdt_h=yes
27457 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27461 $as_echo "$have_sys_sdt_h" >&6; }
27463 # Check if TFmode long double should be used by default or not.
27464 # Some glibc targets used DFmode long double, but with glibc 2.4
27465 # and later they can use TFmode.
27466 case "$target" in
27467 powerpc*-*-linux* | \
27468 sparc*-*-linux* | \
27469 s390*-*-linux* | \
27470 alpha*-*-linux*)
27472 # Check whether --with-long-double-128 was given.
27473 if test "${with_long_double_128+set}" = set; then :
27474 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27475 else
27477 if test $glibc_version_major -gt 2 \
27478 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27479 gcc_cv_target_ldbl128=yes
27480 else
27482 gcc_cv_target_ldbl128=no
27483 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27484 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27485 && gcc_cv_target_ldbl128=yes
27491 esac
27492 if test x$gcc_cv_target_ldbl128 = xyes; then
27494 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27499 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27500 gcc_cv_target_dl_iterate_phdr=unknown
27501 case "$target" in
27502 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27503 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27504 # libdl there, both complicating its use and breaking compatibility
27505 # between Solaris 10 updates.
27506 *-*-solaris2.1[1-9]*)
27507 # <link.h> needs both a dl_iterate_phdr declaration and support for
27508 # compilation with largefile support.
27509 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27510 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27511 gcc_cv_target_dl_iterate_phdr=yes
27512 else
27513 gcc_cv_target_dl_iterate_phdr=no
27516 *-*-dragonfly* | *-*-freebsd*)
27517 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
27518 gcc_cv_target_dl_iterate_phdr=yes
27519 else
27520 gcc_cv_target_dl_iterate_phdr=no
27523 esac
27525 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27527 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27531 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27533 # We no longer support different GC mechanisms. Emit an error if
27534 # the user configures with --with-gc.
27536 # Check whether --with-gc was given.
27537 if test "${with_gc+set}" = set; then :
27538 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27542 # Libraries to use on the host. This will normally be set by the top
27543 # level Makefile. Here we simply capture the value for our Makefile.
27544 if test -z "${HOST_LIBS+set}"; then
27545 HOST_LIBS=
27549 # Use the system's zlib library.
27550 zlibdir=-L../zlib
27551 zlibinc="-I\$(srcdir)/../zlib"
27553 # Check whether --with-system-zlib was given.
27554 if test "${with_system_zlib+set}" = set; then :
27555 withval=$with_system_zlib; zlibdir=
27556 zlibinc=
27564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27565 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27566 # Check whether --enable-maintainer-mode was given.
27567 if test "${enable_maintainer_mode+set}" = set; then :
27568 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27569 else
27570 maintainer_mode=no
27574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27575 $as_echo "$maintainer_mode" >&6; }
27577 if test "$maintainer_mode" = "yes"; then
27578 MAINT=''
27579 else
27580 MAINT='#'
27584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27585 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27586 # Check whether --enable-link-mutex was given.
27587 if test "${enable_link_mutex+set}" = set; then :
27588 enableval=$enable_link_mutex; do_link_mutex=$enableval
27589 else
27590 do_link_mutex=no
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27594 $as_echo "$do_link_mutex" >&6; }
27596 if test "$do_link_mutex" = "yes"; then
27597 DO_LINK_MUTEX=true
27598 else
27599 DO_LINK_MUTEX=false
27603 # --------------
27604 # Language hooks
27605 # --------------
27607 # Make empty files to contain the specs and options for each language.
27608 # Then add #include lines to for a compiler that has specs and/or options.
27610 subdirs=
27611 lang_opt_files=
27612 lang_specs_files=
27613 lang_tree_files=
27614 # These (without "all_") are set in each config-lang.in.
27615 # `language' must be a single word so is spelled singularly.
27616 all_languages=
27617 all_compilers=
27618 all_outputs='Makefile'
27619 # List of language makefile fragments.
27620 all_lang_makefrags=
27621 # Additional files for gengtype
27622 all_gtfiles="$target_gtfiles"
27624 # These are the languages that are set in --enable-languages,
27625 # and are available in the GCC tree.
27626 all_selected_languages=
27628 # Add the language fragments.
27629 # Languages are added via two mechanisms. Some information must be
27630 # recorded in makefile variables, these are defined in config-lang.in.
27631 # We accumulate them and plug them into the main Makefile.
27632 # The other mechanism is a set of hooks for each of the main targets
27633 # like `clean', `install', etc.
27635 language_hooks="Make-hooks"
27637 for lang in ${srcdir}/*/config-lang.in
27639 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27641 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27642 if test "x$lang_alias" = x
27643 then
27644 echo "$lang doesn't set \$language." 1>&2
27645 exit 1
27647 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27648 subdirs="$subdirs $subdir"
27650 # $gcc_subdir is where the gcc integration files are to be found
27651 # for a language, both for internal compiler purposes (compiler
27652 # sources implementing front-end to GCC tree converters), and for
27653 # build infrastructure purposes (Make-lang.in, etc.)
27655 # This will be <subdir> (relative to $srcdir) if a line like
27656 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27657 # is found in <langdir>/config-lang.in, and will remain <langdir>
27658 # otherwise.
27660 # Except for the language alias (fetched above), the regular
27661 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27662 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27663 # only this and the language alias.
27665 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27666 if [ "$gcc_subdir" = "" ]; then
27667 gcc_subdir="$subdir"
27670 case ",$enable_languages," in
27671 *,$lang_alias,*)
27672 all_selected_languages="$all_selected_languages $lang_alias"
27673 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27674 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27677 esac
27679 language=
27680 boot_language=
27681 compilers=
27682 outputs=
27683 gtfiles=
27684 subdir_requires=
27685 . ${srcdir}/$gcc_subdir/config-lang.in
27686 if test "x$language" = x
27687 then
27688 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27689 exit 1
27692 ok=:
27693 case ",$enable_languages," in
27694 *,$lang_alias,*) ;;
27696 for i in $subdir_requires; do
27697 test -f "${srcdir}/$i/config-lang.in" && continue
27698 ok=false
27699 break
27700 done
27702 esac
27703 $ok || continue
27705 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27706 if test -f $srcdir/$gcc_subdir/lang.opt; then
27707 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27708 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27710 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27711 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27713 all_languages="$all_languages $language"
27714 all_compilers="$all_compilers $compilers"
27715 all_outputs="$all_outputs $outputs"
27716 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27717 case ",$enable_languages," in
27718 *,lto,*)
27720 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27722 enable_lto=yes
27725 *) ;;
27726 esac
27727 done
27729 check_languages=
27730 for language in $all_selected_languages
27732 check_languages="$check_languages check-$language"
27733 done
27735 # We link each language in with a set of hooks, reached indirectly via
27736 # lang.${target}. Only do so for selected languages.
27738 rm -f Make-hooks
27739 touch Make-hooks
27740 target_list="all.cross start.encap rest.encap tags \
27741 install-common install-man install-info install-pdf install-html dvi \
27742 pdf html uninstall info man srcextra srcman srcinfo \
27743 mostlyclean clean distclean maintainer-clean install-plugin"
27745 for t in $target_list
27748 for lang in $all_selected_languages
27750 x="$x $lang.$t"
27751 done
27752 echo "lang.$t: $x" >> Make-hooks
27753 done
27755 # --------
27756 # Option include files
27757 # --------
27759 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27760 option_includes="option-includes.mk"
27763 # --------
27764 # UNSORTED
27765 # --------
27767 # Create .gdbinit.
27769 echo "dir ." > .gdbinit
27770 echo "dir ${srcdir}" >> .gdbinit
27771 if test x$gdb_needs_out_file_path = xyes
27772 then
27773 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27775 if test "x$subdirs" != x; then
27776 for s in $subdirs
27778 echo "dir ${srcdir}/$s" >> .gdbinit
27779 done
27781 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27782 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27784 # Put a breakpoint on __asan_report_error to help with debugging buffer
27785 # overflow.
27786 case "$CFLAGS" in
27787 *-fsanitize=address*)
27788 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
27790 esac
27792 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27796 # Find a directory in which to install a shared libgcc.
27798 # Check whether --enable-version-specific-runtime-libs was given.
27799 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27800 enableval=$enable_version_specific_runtime_libs;
27804 # Substitute configuration variables
27867 # Echo link setup.
27868 if test x${build} = x${host} ; then
27869 if test x${host} = x${target} ; then
27870 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27871 else
27872 echo "Links are now set up to build a cross-compiler" 1>&2
27873 echo " from ${host} to ${target}." 1>&2
27875 else
27876 if test x${host} = x${target} ; then
27877 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27878 echo " for ${target}." 1>&2
27879 else
27880 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27881 echo " from ${host} to ${target}." 1>&2
27890 if test "x${ISLLIBS}" != "x" ; then
27892 $as_echo "#define HAVE_isl 1" >>confdefs.h
27898 if test "x${CLOOGLIBS}" != "x" ; then
27900 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27904 # Check for plugin support
27905 # Check whether --enable-plugin was given.
27906 if test "${enable_plugin+set}" = set; then :
27907 enableval=$enable_plugin; enable_plugin=$enableval
27908 else
27909 enable_plugin=yes; default_plugin=yes
27913 pluginlibs=
27915 case "${host}" in
27916 *-*-darwin*)
27917 if test x$build = x$host; then
27918 export_sym_check="nm${exeext} -g"
27919 elif test x$host = x$target; then
27920 export_sym_check="$gcc_cv_nm -g"
27921 else
27922 export_sym_check=
27926 if test x$build = x$host; then
27927 export_sym_check="objdump${exeext} -T"
27928 elif test x$host = x$target; then
27929 export_sym_check="$gcc_cv_objdump -T"
27930 else
27931 export_sym_check=
27934 esac
27936 if test x"$enable_plugin" = x"yes"; then
27938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27939 $as_echo_n "checking for exported symbols... " >&6; }
27940 if test "x$export_sym_check" != x; then
27941 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27942 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27943 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27944 : # No need to use a flag
27945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27946 $as_echo "yes" >&6; }
27947 else
27948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27949 $as_echo "yes" >&6; }
27950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27951 $as_echo_n "checking for -rdynamic... " >&6; }
27952 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27953 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27954 plugin_rdynamic=yes
27955 pluginlibs="-rdynamic"
27956 else
27957 plugin_rdynamic=no
27958 enable_plugin=no
27960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27961 $as_echo "$plugin_rdynamic" >&6; }
27963 else
27964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27965 $as_echo "unable to check" >&6; }
27968 # Check -ldl
27969 saved_LIBS="$LIBS"
27970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27971 $as_echo_n "checking for library containing dlopen... " >&6; }
27972 if test "${ac_cv_search_dlopen+set}" = set; then :
27973 $as_echo_n "(cached) " >&6
27974 else
27975 ac_func_search_save_LIBS=$LIBS
27976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27977 /* end confdefs.h. */
27979 /* Override any GCC internal prototype to avoid an error.
27980 Use char because int might match the return type of a GCC
27981 builtin and then its argument prototype would still apply. */
27982 #ifdef __cplusplus
27983 extern "C"
27984 #endif
27985 char dlopen ();
27987 main ()
27989 return dlopen ();
27991 return 0;
27993 _ACEOF
27994 for ac_lib in '' dl; do
27995 if test -z "$ac_lib"; then
27996 ac_res="none required"
27997 else
27998 ac_res=-l$ac_lib
27999 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28001 if ac_fn_c_try_link "$LINENO"; then :
28002 ac_cv_search_dlopen=$ac_res
28004 rm -f core conftest.err conftest.$ac_objext \
28005 conftest$ac_exeext
28006 if test "${ac_cv_search_dlopen+set}" = set; then :
28007 break
28009 done
28010 if test "${ac_cv_search_dlopen+set}" = set; then :
28012 else
28013 ac_cv_search_dlopen=no
28015 rm conftest.$ac_ext
28016 LIBS=$ac_func_search_save_LIBS
28018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28019 $as_echo "$ac_cv_search_dlopen" >&6; }
28020 ac_res=$ac_cv_search_dlopen
28021 if test "$ac_res" != no; then :
28022 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28026 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
28027 pluginlibs="$pluginlibs -ldl"
28029 LIBS="$saved_LIBS"
28031 # Check that we can build shared objects with -fPIC -shared
28032 saved_LDFLAGS="$LDFLAGS"
28033 saved_CFLAGS="$CFLAGS"
28034 case "${host}" in
28035 *-*-darwin*)
28036 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28037 CFLAGS="$CFLAGS -fPIC"
28038 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
28041 CFLAGS="$CFLAGS -fPIC"
28042 LDFLAGS="$LDFLAGS -fPIC -shared"
28044 esac
28045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28046 $as_echo_n "checking for -fPIC -shared... " >&6; }
28047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28048 /* end confdefs.h. */
28049 extern int X;
28051 main ()
28053 return X == 0;
28055 return 0;
28057 _ACEOF
28058 if ac_fn_c_try_link "$LINENO"; then :
28059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28060 $as_echo "yes" >&6; }; have_pic_shared=yes
28061 else
28062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28063 $as_echo "no" >&6; }; have_pic_shared=no
28065 rm -f core conftest.err conftest.$ac_objext \
28066 conftest$ac_exeext conftest.$ac_ext
28067 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
28068 pluginlibs=
28069 enable_plugin=no
28071 LDFLAGS="$saved_LDFLAGS"
28072 CFLAGS="$saved_CFLAGS"
28074 # If plugin support had been requested but not available, fail.
28075 if test x"$enable_plugin" = x"no" ; then
28076 if test x"$default_plugin" != x"yes"; then
28077 as_fn_error "
28078 Building GCC with plugin support requires a host that supports
28079 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28086 if test x"$enable_plugin" = x"yes"; then
28088 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28093 # Enable --enable-host-shared
28094 # Check whether --enable-host-shared was given.
28095 if test "${enable_host_shared+set}" = set; then :
28096 enableval=$enable_host_shared; PICFLAG=-fPIC
28097 else
28098 PICFLAG=
28105 # Check whether --enable-libquadmath-support was given.
28106 if test "${enable_libquadmath_support+set}" = set; then :
28107 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
28108 else
28109 ENABLE_LIBQUADMATH_SUPPORT=yes
28112 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28114 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28119 # Specify what hash style to use by default.
28121 # Check whether --with-linker-hash-style was given.
28122 if test "${with_linker_hash_style+set}" = set; then :
28123 withval=$with_linker_hash_style; case x"$withval" in
28124 xsysv)
28125 LINKER_HASH_STYLE=sysv
28127 xgnu)
28128 LINKER_HASH_STYLE=gnu
28130 xboth)
28131 LINKER_HASH_STYLE=both
28134 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28136 esac
28137 else
28138 LINKER_HASH_STYLE=''
28141 if test x"${LINKER_HASH_STYLE}" != x; then
28143 cat >>confdefs.h <<_ACEOF
28144 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28145 _ACEOF
28149 # Configure the subdirectories
28150 # AC_CONFIG_SUBDIRS($subdirs)
28152 # Create the Makefile
28153 # and configure language subdirectories
28154 ac_config_files="$ac_config_files $all_outputs"
28157 ac_config_commands="$ac_config_commands default"
28159 cat >confcache <<\_ACEOF
28160 # This file is a shell script that caches the results of configure
28161 # tests run on this system so they can be shared between configure
28162 # scripts and configure runs, see configure's option --config-cache.
28163 # It is not useful on other systems. If it contains results you don't
28164 # want to keep, you may remove or edit it.
28166 # config.status only pays attention to the cache file if you give it
28167 # the --recheck option to rerun configure.
28169 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28170 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28171 # following values.
28173 _ACEOF
28175 # The following way of writing the cache mishandles newlines in values,
28176 # but we know of no workaround that is simple, portable, and efficient.
28177 # So, we kill variables containing newlines.
28178 # Ultrix sh set writes to stderr and can't be redirected directly,
28179 # and sets the high bit in the cache file unless we assign to the vars.
28181 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28182 eval ac_val=\$$ac_var
28183 case $ac_val in #(
28184 *${as_nl}*)
28185 case $ac_var in #(
28186 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28187 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28188 esac
28189 case $ac_var in #(
28190 _ | IFS | as_nl) ;; #(
28191 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28192 *) { eval $ac_var=; unset $ac_var;} ;;
28193 esac ;;
28194 esac
28195 done
28197 (set) 2>&1 |
28198 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28199 *${as_nl}ac_space=\ *)
28200 # `set' does not quote correctly, so add quotes: double-quote
28201 # substitution turns \\\\ into \\, and sed turns \\ into \.
28202 sed -n \
28203 "s/'/'\\\\''/g;
28204 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28205 ;; #(
28207 # `set' quotes correctly as required by POSIX, so do not add quotes.
28208 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28210 esac |
28211 sort
28213 sed '
28214 /^ac_cv_env_/b end
28215 t clear
28216 :clear
28217 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28218 t end
28219 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28220 :end' >>confcache
28221 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28222 if test -w "$cache_file"; then
28223 test "x$cache_file" != "x/dev/null" &&
28224 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28225 $as_echo "$as_me: updating cache $cache_file" >&6;}
28226 cat confcache >$cache_file
28227 else
28228 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28229 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28232 rm -f confcache
28234 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28235 # Let make expand exec_prefix.
28236 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28238 DEFS=-DHAVE_CONFIG_H
28240 ac_libobjs=
28241 ac_ltlibobjs=
28242 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28243 # 1. Remove the extension, and $U if already installed.
28244 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28245 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28246 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28247 # will be set to the directory where LIBOBJS objects are built.
28248 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28249 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28250 done
28251 LIBOBJS=$ac_libobjs
28253 LTLIBOBJS=$ac_ltlibobjs
28258 : ${CONFIG_STATUS=./config.status}
28259 ac_write_fail=0
28260 ac_clean_files_save=$ac_clean_files
28261 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28262 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28263 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28264 as_write_fail=0
28265 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28266 #! $SHELL
28267 # Generated by $as_me.
28268 # Run this file to recreate the current configuration.
28269 # Compiler output produced by configure, useful for debugging
28270 # configure, is in config.log if it exists.
28272 debug=false
28273 ac_cs_recheck=false
28274 ac_cs_silent=false
28276 SHELL=\${CONFIG_SHELL-$SHELL}
28277 export SHELL
28278 _ASEOF
28279 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28280 ## -------------------- ##
28281 ## M4sh Initialization. ##
28282 ## -------------------- ##
28284 # Be more Bourne compatible
28285 DUALCASE=1; export DUALCASE # for MKS sh
28286 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28287 emulate sh
28288 NULLCMD=:
28289 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28290 # is contrary to our usage. Disable this feature.
28291 alias -g '${1+"$@"}'='"$@"'
28292 setopt NO_GLOB_SUBST
28293 else
28294 case `(set -o) 2>/dev/null` in #(
28295 *posix*) :
28296 set -o posix ;; #(
28297 *) :
28299 esac
28303 as_nl='
28305 export as_nl
28306 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28307 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28308 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28309 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28310 # Prefer a ksh shell builtin over an external printf program on Solaris,
28311 # but without wasting forks for bash or zsh.
28312 if test -z "$BASH_VERSION$ZSH_VERSION" \
28313 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28314 as_echo='print -r --'
28315 as_echo_n='print -rn --'
28316 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28317 as_echo='printf %s\n'
28318 as_echo_n='printf %s'
28319 else
28320 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28321 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28322 as_echo_n='/usr/ucb/echo -n'
28323 else
28324 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28325 as_echo_n_body='eval
28326 arg=$1;
28327 case $arg in #(
28328 *"$as_nl"*)
28329 expr "X$arg" : "X\\(.*\\)$as_nl";
28330 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28331 esac;
28332 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28334 export as_echo_n_body
28335 as_echo_n='sh -c $as_echo_n_body as_echo'
28337 export as_echo_body
28338 as_echo='sh -c $as_echo_body as_echo'
28341 # The user is always right.
28342 if test "${PATH_SEPARATOR+set}" != set; then
28343 PATH_SEPARATOR=:
28344 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28345 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28346 PATH_SEPARATOR=';'
28351 # IFS
28352 # We need space, tab and new line, in precisely that order. Quoting is
28353 # there to prevent editors from complaining about space-tab.
28354 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28355 # splitting by setting IFS to empty value.)
28356 IFS=" "" $as_nl"
28358 # Find who we are. Look in the path if we contain no directory separator.
28359 case $0 in #((
28360 *[\\/]* ) as_myself=$0 ;;
28361 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28362 for as_dir in $PATH
28364 IFS=$as_save_IFS
28365 test -z "$as_dir" && as_dir=.
28366 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28367 done
28368 IFS=$as_save_IFS
28371 esac
28372 # We did not find ourselves, most probably we were run as `sh COMMAND'
28373 # in which case we are not to be found in the path.
28374 if test "x$as_myself" = x; then
28375 as_myself=$0
28377 if test ! -f "$as_myself"; then
28378 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28379 exit 1
28382 # Unset variables that we do not need and which cause bugs (e.g. in
28383 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28384 # suppresses any "Segmentation fault" message there. '((' could
28385 # trigger a bug in pdksh 5.2.14.
28386 for as_var in BASH_ENV ENV MAIL MAILPATH
28387 do eval test x\${$as_var+set} = xset \
28388 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28389 done
28390 PS1='$ '
28391 PS2='> '
28392 PS4='+ '
28394 # NLS nuisances.
28395 LC_ALL=C
28396 export LC_ALL
28397 LANGUAGE=C
28398 export LANGUAGE
28400 # CDPATH.
28401 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28404 # as_fn_error ERROR [LINENO LOG_FD]
28405 # ---------------------------------
28406 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28407 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28408 # script with status $?, using 1 if that was 0.
28409 as_fn_error ()
28411 as_status=$?; test $as_status -eq 0 && as_status=1
28412 if test "$3"; then
28413 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28414 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28416 $as_echo "$as_me: error: $1" >&2
28417 as_fn_exit $as_status
28418 } # as_fn_error
28421 # as_fn_set_status STATUS
28422 # -----------------------
28423 # Set $? to STATUS, without forking.
28424 as_fn_set_status ()
28426 return $1
28427 } # as_fn_set_status
28429 # as_fn_exit STATUS
28430 # -----------------
28431 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28432 as_fn_exit ()
28434 set +e
28435 as_fn_set_status $1
28436 exit $1
28437 } # as_fn_exit
28439 # as_fn_unset VAR
28440 # ---------------
28441 # Portably unset VAR.
28442 as_fn_unset ()
28444 { eval $1=; unset $1;}
28446 as_unset=as_fn_unset
28447 # as_fn_append VAR VALUE
28448 # ----------------------
28449 # Append the text in VALUE to the end of the definition contained in VAR. Take
28450 # advantage of any shell optimizations that allow amortized linear growth over
28451 # repeated appends, instead of the typical quadratic growth present in naive
28452 # implementations.
28453 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28454 eval 'as_fn_append ()
28456 eval $1+=\$2
28458 else
28459 as_fn_append ()
28461 eval $1=\$$1\$2
28463 fi # as_fn_append
28465 # as_fn_arith ARG...
28466 # ------------------
28467 # Perform arithmetic evaluation on the ARGs, and store the result in the
28468 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28469 # must be portable across $(()) and expr.
28470 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28471 eval 'as_fn_arith ()
28473 as_val=$(( $* ))
28475 else
28476 as_fn_arith ()
28478 as_val=`expr "$@" || test $? -eq 1`
28480 fi # as_fn_arith
28483 if expr a : '\(a\)' >/dev/null 2>&1 &&
28484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28485 as_expr=expr
28486 else
28487 as_expr=false
28490 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28491 as_basename=basename
28492 else
28493 as_basename=false
28496 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28497 as_dirname=dirname
28498 else
28499 as_dirname=false
28502 as_me=`$as_basename -- "$0" ||
28503 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28504 X"$0" : 'X\(//\)$' \| \
28505 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28506 $as_echo X/"$0" |
28507 sed '/^.*\/\([^/][^/]*\)\/*$/{
28508 s//\1/
28511 /^X\/\(\/\/\)$/{
28512 s//\1/
28515 /^X\/\(\/\).*/{
28516 s//\1/
28519 s/.*/./; q'`
28521 # Avoid depending upon Character Ranges.
28522 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28523 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28524 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28525 as_cr_digits='0123456789'
28526 as_cr_alnum=$as_cr_Letters$as_cr_digits
28528 ECHO_C= ECHO_N= ECHO_T=
28529 case `echo -n x` in #(((((
28530 -n*)
28531 case `echo 'xy\c'` in
28532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28533 xy) ECHO_C='\c';;
28534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28535 ECHO_T=' ';;
28536 esac;;
28538 ECHO_N='-n';;
28539 esac
28541 rm -f conf$$ conf$$.exe conf$$.file
28542 if test -d conf$$.dir; then
28543 rm -f conf$$.dir/conf$$.file
28544 else
28545 rm -f conf$$.dir
28546 mkdir conf$$.dir 2>/dev/null
28548 if (echo >conf$$.file) 2>/dev/null; then
28549 if ln -s conf$$.file conf$$ 2>/dev/null; then
28550 as_ln_s='ln -s'
28551 # ... but there are two gotchas:
28552 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28553 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28554 # In both cases, we have to default to `cp -p'.
28555 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28556 as_ln_s='cp -p'
28557 elif ln conf$$.file conf$$ 2>/dev/null; then
28558 as_ln_s=ln
28559 else
28560 as_ln_s='cp -p'
28562 else
28563 as_ln_s='cp -p'
28565 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28566 rmdir conf$$.dir 2>/dev/null
28569 # as_fn_mkdir_p
28570 # -------------
28571 # Create "$as_dir" as a directory, including parents if necessary.
28572 as_fn_mkdir_p ()
28575 case $as_dir in #(
28576 -*) as_dir=./$as_dir;;
28577 esac
28578 test -d "$as_dir" || eval $as_mkdir_p || {
28579 as_dirs=
28580 while :; do
28581 case $as_dir in #(
28582 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28583 *) as_qdir=$as_dir;;
28584 esac
28585 as_dirs="'$as_qdir' $as_dirs"
28586 as_dir=`$as_dirname -- "$as_dir" ||
28587 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28588 X"$as_dir" : 'X\(//\)[^/]' \| \
28589 X"$as_dir" : 'X\(//\)$' \| \
28590 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28591 $as_echo X"$as_dir" |
28592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28593 s//\1/
28596 /^X\(\/\/\)[^/].*/{
28597 s//\1/
28600 /^X\(\/\/\)$/{
28601 s//\1/
28604 /^X\(\/\).*/{
28605 s//\1/
28608 s/.*/./; q'`
28609 test -d "$as_dir" && break
28610 done
28611 test -z "$as_dirs" || eval "mkdir $as_dirs"
28612 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28615 } # as_fn_mkdir_p
28616 if mkdir -p . 2>/dev/null; then
28617 as_mkdir_p='mkdir -p "$as_dir"'
28618 else
28619 test -d ./-p && rmdir ./-p
28620 as_mkdir_p=false
28623 if test -x / >/dev/null 2>&1; then
28624 as_test_x='test -x'
28625 else
28626 if ls -dL / >/dev/null 2>&1; then
28627 as_ls_L_option=L
28628 else
28629 as_ls_L_option=
28631 as_test_x='
28632 eval sh -c '\''
28633 if test -d "$1"; then
28634 test -d "$1/.";
28635 else
28636 case $1 in #(
28637 -*)set "./$1";;
28638 esac;
28639 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28640 ???[sx]*):;;*)false;;esac;fi
28641 '\'' sh
28644 as_executable_p=$as_test_x
28646 # Sed expression to map a string onto a valid CPP name.
28647 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28649 # Sed expression to map a string onto a valid variable name.
28650 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28653 exec 6>&1
28654 ## ----------------------------------- ##
28655 ## Main body of $CONFIG_STATUS script. ##
28656 ## ----------------------------------- ##
28657 _ASEOF
28658 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28661 # Save the log message, to keep $0 and so on meaningful, and to
28662 # report actual input values of CONFIG_FILES etc. instead of their
28663 # values after options handling.
28664 ac_log="
28665 This file was extended by $as_me, which was
28666 generated by GNU Autoconf 2.64. Invocation command line was
28668 CONFIG_FILES = $CONFIG_FILES
28669 CONFIG_HEADERS = $CONFIG_HEADERS
28670 CONFIG_LINKS = $CONFIG_LINKS
28671 CONFIG_COMMANDS = $CONFIG_COMMANDS
28672 $ $0 $@
28674 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28677 _ACEOF
28679 case $ac_config_files in *"
28680 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28681 esac
28683 case $ac_config_headers in *"
28684 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28685 esac
28688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28689 # Files that config.status was made for.
28690 config_files="$ac_config_files"
28691 config_headers="$ac_config_headers"
28692 config_links="$ac_config_links"
28693 config_commands="$ac_config_commands"
28695 _ACEOF
28697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28698 ac_cs_usage="\
28699 \`$as_me' instantiates files and other configuration actions
28700 from templates according to the current configuration. Unless the files
28701 and actions are specified as TAGs, all are instantiated by default.
28703 Usage: $0 [OPTION]... [TAG]...
28705 -h, --help print this help, then exit
28706 -V, --version print version number and configuration settings, then exit
28707 -q, --quiet, --silent
28708 do not print progress messages
28709 -d, --debug don't remove temporary files
28710 --recheck update $as_me by reconfiguring in the same conditions
28711 --file=FILE[:TEMPLATE]
28712 instantiate the configuration file FILE
28713 --header=FILE[:TEMPLATE]
28714 instantiate the configuration header FILE
28716 Configuration files:
28717 $config_files
28719 Configuration headers:
28720 $config_headers
28722 Configuration links:
28723 $config_links
28725 Configuration commands:
28726 $config_commands
28728 Report bugs to the package provider."
28730 _ACEOF
28731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28732 ac_cs_version="\\
28733 config.status
28734 configured by $0, generated by GNU Autoconf 2.64,
28735 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28737 Copyright (C) 2009 Free Software Foundation, Inc.
28738 This config.status script is free software; the Free Software Foundation
28739 gives unlimited permission to copy, distribute and modify it."
28741 ac_pwd='$ac_pwd'
28742 srcdir='$srcdir'
28743 AWK='$AWK'
28744 test -n "\$AWK" || AWK=awk
28745 _ACEOF
28747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28748 # The default lists apply if the user does not specify any file.
28749 ac_need_defaults=:
28750 while test $# != 0
28752 case $1 in
28753 --*=*)
28754 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28755 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28756 ac_shift=:
28759 ac_option=$1
28760 ac_optarg=$2
28761 ac_shift=shift
28763 esac
28765 case $ac_option in
28766 # Handling of the options.
28767 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28768 ac_cs_recheck=: ;;
28769 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28770 $as_echo "$ac_cs_version"; exit ;;
28771 --debug | --debu | --deb | --de | --d | -d )
28772 debug=: ;;
28773 --file | --fil | --fi | --f )
28774 $ac_shift
28775 case $ac_optarg in
28776 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28777 esac
28778 as_fn_append CONFIG_FILES " '$ac_optarg'"
28779 ac_need_defaults=false;;
28780 --header | --heade | --head | --hea )
28781 $ac_shift
28782 case $ac_optarg in
28783 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28784 esac
28785 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28786 ac_need_defaults=false;;
28787 --he | --h)
28788 # Conflict between --help and --header
28789 as_fn_error "ambiguous option: \`$1'
28790 Try \`$0 --help' for more information.";;
28791 --help | --hel | -h )
28792 $as_echo "$ac_cs_usage"; exit ;;
28793 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28794 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28795 ac_cs_silent=: ;;
28797 # This is an error.
28798 -*) as_fn_error "unrecognized option: \`$1'
28799 Try \`$0 --help' for more information." ;;
28801 *) as_fn_append ac_config_targets " $1"
28802 ac_need_defaults=false ;;
28804 esac
28805 shift
28806 done
28808 ac_configure_extra_args=
28810 if $ac_cs_silent; then
28811 exec 6>/dev/null
28812 ac_configure_extra_args="$ac_configure_extra_args --silent"
28815 _ACEOF
28816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28817 if \$ac_cs_recheck; then
28818 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28819 shift
28820 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28821 CONFIG_SHELL='$SHELL'
28822 export CONFIG_SHELL
28823 exec "\$@"
28826 _ACEOF
28827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28828 exec 5>>config.log
28830 echo
28831 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28832 ## Running $as_me. ##
28833 _ASBOX
28834 $as_echo "$ac_log"
28835 } >&5
28837 _ACEOF
28838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28840 # INIT-COMMANDS
28842 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28843 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28844 subdirs='$subdirs'
28846 _ACEOF
28848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28850 # Handling of arguments.
28851 for ac_config_target in $ac_config_targets
28853 case $ac_config_target in
28854 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28855 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
28856 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
28857 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28858 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28859 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28860 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
28861 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28862 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28864 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28865 esac
28866 done
28869 # If the user did not use the arguments to specify the items to instantiate,
28870 # then the envvar interface is used. Set only those that are not.
28871 # We use the long form for the default assignment because of an extremely
28872 # bizarre bug on SunOS 4.1.3.
28873 if $ac_need_defaults; then
28874 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28875 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28876 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
28877 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28880 # Have a temporary directory for convenience. Make it in the build tree
28881 # simply because there is no reason against having it here, and in addition,
28882 # creating and moving files from /tmp can sometimes cause problems.
28883 # Hook for its removal unless debugging.
28884 # Note that there is a small window in which the directory will not be cleaned:
28885 # after its creation but before its name has been assigned to `$tmp'.
28886 $debug ||
28888 tmp=
28889 trap 'exit_status=$?
28890 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28892 trap 'as_fn_exit 1' 1 2 13 15
28894 # Create a (secure) tmp directory for tmp files.
28897 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28898 test -n "$tmp" && test -d "$tmp"
28899 } ||
28901 tmp=./conf$$-$RANDOM
28902 (umask 077 && mkdir "$tmp")
28903 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28905 # Set up the scripts for CONFIG_FILES section.
28906 # No need to generate them if there are no CONFIG_FILES.
28907 # This happens for instance with `./config.status config.h'.
28908 if test -n "$CONFIG_FILES"; then
28910 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28911 ac_cs_awk_getline=:
28912 ac_cs_awk_pipe_init=
28913 ac_cs_awk_read_file='
28914 while ((getline aline < (F[key])) > 0)
28915 print(aline)
28916 close(F[key])'
28917 ac_cs_awk_pipe_fini=
28918 else
28919 ac_cs_awk_getline=false
28920 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28921 ac_cs_awk_read_file='
28922 print "|#_!!_#|"
28923 print "cat " F[key] " &&"
28924 '$ac_cs_awk_pipe_init
28925 # The final `:' finishes the AND list.
28926 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28928 ac_cr=`echo X | tr X '\015'`
28929 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28930 # But we know of no other shell where ac_cr would be empty at this
28931 # point, so we can use a bashism as a fallback.
28932 if test "x$ac_cr" = x; then
28933 eval ac_cr=\$\'\\r\'
28935 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28936 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28937 ac_cs_awk_cr='\r'
28938 else
28939 ac_cs_awk_cr=$ac_cr
28942 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28943 _ACEOF
28945 # Create commands to substitute file output variables.
28947 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28948 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28949 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28950 echo "_ACAWK" &&
28951 echo "_ACEOF"
28952 } >conf$$files.sh &&
28953 . ./conf$$files.sh ||
28954 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28955 rm -f conf$$files.sh
28958 echo "cat >conf$$subs.awk <<_ACEOF" &&
28959 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28960 echo "_ACEOF"
28961 } >conf$$subs.sh ||
28962 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28963 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28964 ac_delim='%!_!# '
28965 for ac_last_try in false false false false false :; do
28966 . ./conf$$subs.sh ||
28967 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28969 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28970 if test $ac_delim_n = $ac_delim_num; then
28971 break
28972 elif $ac_last_try; then
28973 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28974 else
28975 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28977 done
28978 rm -f conf$$subs.sh
28980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28981 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28982 _ACEOF
28983 sed -n '
28985 s/^/S["/; s/!.*/"]=/
28988 s/^[^!]*!//
28989 :repl
28990 t repl
28991 s/'"$ac_delim"'$//
28992 t delim
28995 s/\(.\{148\}\).*/\1/
28996 t more1
28997 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29000 b repl
29001 :more1
29002 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29005 s/.\{148\}//
29006 t nl
29007 :delim
29009 s/\(.\{148\}\).*/\1/
29010 t more2
29011 s/["\\]/\\&/g; s/^/"/; s/$/"/
29014 :more2
29015 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29018 s/.\{148\}//
29019 t delim
29020 ' <conf$$subs.awk | sed '
29021 /^[^""]/{
29023 s/\n//
29025 ' >>$CONFIG_STATUS || ac_write_fail=1
29026 rm -f conf$$subs.awk
29027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29028 _ACAWK
29029 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29030 for (key in S) S_is_set[key] = 1
29031 FS = "\a"
29032 \$ac_cs_awk_pipe_init
29035 line = $ 0
29036 nfields = split(line, field, "@")
29037 substed = 0
29038 len = length(field[1])
29039 for (i = 2; i < nfields; i++) {
29040 key = field[i]
29041 keylen = length(key)
29042 if (S_is_set[key]) {
29043 value = S[key]
29044 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29045 len += length(value) + length(field[++i])
29046 substed = 1
29047 } else
29048 len += 1 + keylen
29050 if (nfields == 3 && !substed) {
29051 key = field[2]
29052 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29053 \$ac_cs_awk_read_file
29054 next
29057 print line
29059 \$ac_cs_awk_pipe_fini
29060 _ACAWK
29061 _ACEOF
29062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29063 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29064 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29065 else
29067 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29068 || as_fn_error "could not setup config files machinery" "$LINENO" 5
29069 _ACEOF
29071 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29072 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29073 # trailing colons and then remove the whole line if VPATH becomes empty
29074 # (actually we leave an empty line to preserve line numbers).
29075 if test "x$srcdir" = x.; then
29076 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29077 s/:*\$(srcdir):*/:/
29078 s/:*\${srcdir}:*/:/
29079 s/:*@srcdir@:*/:/
29080 s/^\([^=]*=[ ]*\):*/\1/
29081 s/:*$//
29082 s/^[^=]*=[ ]*$//
29086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29087 fi # test -n "$CONFIG_FILES"
29089 # Set up the scripts for CONFIG_HEADERS section.
29090 # No need to generate them if there are no CONFIG_HEADERS.
29091 # This happens for instance with `./config.status Makefile'.
29092 if test -n "$CONFIG_HEADERS"; then
29093 cat >"$tmp/defines.awk" <<\_ACAWK ||
29094 BEGIN {
29095 _ACEOF
29097 # Transform confdefs.h into an awk script `defines.awk', embedded as
29098 # here-document in config.status, that substitutes the proper values into
29099 # config.h.in to produce config.h.
29101 # Create a delimiter string that does not exist in confdefs.h, to ease
29102 # handling of long lines.
29103 ac_delim='%!_!# '
29104 for ac_last_try in false false :; do
29105 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29106 if test -z "$ac_t"; then
29107 break
29108 elif $ac_last_try; then
29109 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
29110 else
29111 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29113 done
29115 # For the awk script, D is an array of macro values keyed by name,
29116 # likewise P contains macro parameters if any. Preserve backslash
29117 # newline sequences.
29119 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29120 sed -n '
29121 s/.\{148\}/&'"$ac_delim"'/g
29122 t rset
29123 :rset
29124 s/^[ ]*#[ ]*define[ ][ ]*/ /
29125 t def
29127 :def
29128 s/\\$//
29129 t bsnl
29130 s/["\\]/\\&/g
29131 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29132 D["\1"]=" \3"/p
29133 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29135 :bsnl
29136 s/["\\]/\\&/g
29137 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29138 D["\1"]=" \3\\\\\\n"\\/p
29139 t cont
29140 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29141 t cont
29143 :cont
29145 s/.\{148\}/&'"$ac_delim"'/g
29146 t clear
29147 :clear
29148 s/\\$//
29149 t bsnlc
29150 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29152 :bsnlc
29153 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29154 b cont
29155 ' <confdefs.h | sed '
29156 s/'"$ac_delim"'/"\\\
29157 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29160 for (key in D) D_is_set[key] = 1
29161 FS = "\a"
29163 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29164 line = \$ 0
29165 split(line, arg, " ")
29166 if (arg[1] == "#") {
29167 defundef = arg[2]
29168 mac1 = arg[3]
29169 } else {
29170 defundef = substr(arg[1], 2)
29171 mac1 = arg[2]
29173 split(mac1, mac2, "(") #)
29174 macro = mac2[1]
29175 prefix = substr(line, 1, index(line, defundef) - 1)
29176 if (D_is_set[macro]) {
29177 # Preserve the white space surrounding the "#".
29178 print prefix "define", macro P[macro] D[macro]
29179 next
29180 } else {
29181 # Replace #undef with comments. This is necessary, for example,
29182 # in the case of _POSIX_SOURCE, which is predefined and required
29183 # on some systems where configure will not decide to define it.
29184 if (defundef == "undef") {
29185 print "/*", prefix defundef, macro, "*/"
29186 next
29190 { print }
29191 _ACAWK
29192 _ACEOF
29193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29194 as_fn_error "could not setup config headers machinery" "$LINENO" 5
29195 fi # test -n "$CONFIG_HEADERS"
29198 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29199 shift
29200 for ac_tag
29202 case $ac_tag in
29203 :[FHLC]) ac_mode=$ac_tag; continue;;
29204 esac
29205 case $ac_mode$ac_tag in
29206 :[FHL]*:*);;
29207 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29208 :[FH]-) ac_tag=-:-;;
29209 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29210 esac
29211 ac_save_IFS=$IFS
29212 IFS=:
29213 set x $ac_tag
29214 IFS=$ac_save_IFS
29215 shift
29216 ac_file=$1
29217 shift
29219 case $ac_mode in
29220 :L) ac_source=$1;;
29221 :[FH])
29222 ac_file_inputs=
29223 for ac_f
29225 case $ac_f in
29226 -) ac_f="$tmp/stdin";;
29227 *) # Look for the file first in the build tree, then in the source tree
29228 # (if the path is not absolute). The absolute path cannot be DOS-style,
29229 # because $ac_f cannot contain `:'.
29230 test -f "$ac_f" ||
29231 case $ac_f in
29232 [\\/$]*) false;;
29233 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29234 esac ||
29235 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29236 esac
29237 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29238 as_fn_append ac_file_inputs " '$ac_f'"
29239 done
29241 # Let's still pretend it is `configure' which instantiates (i.e., don't
29242 # use $as_me), people would be surprised to read:
29243 # /* config.h. Generated by config.status. */
29244 configure_input='Generated from '`
29245 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29246 `' by configure.'
29247 if test x"$ac_file" != x-; then
29248 configure_input="$ac_file. $configure_input"
29249 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29250 $as_echo "$as_me: creating $ac_file" >&6;}
29252 # Neutralize special characters interpreted by sed in replacement strings.
29253 case $configure_input in #(
29254 *\&* | *\|* | *\\* )
29255 ac_sed_conf_input=`$as_echo "$configure_input" |
29256 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29257 *) ac_sed_conf_input=$configure_input;;
29258 esac
29260 case $ac_tag in
29261 *:-:* | *:-) cat >"$tmp/stdin" \
29262 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
29263 esac
29265 esac
29267 ac_dir=`$as_dirname -- "$ac_file" ||
29268 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29269 X"$ac_file" : 'X\(//\)[^/]' \| \
29270 X"$ac_file" : 'X\(//\)$' \| \
29271 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29272 $as_echo X"$ac_file" |
29273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29274 s//\1/
29277 /^X\(\/\/\)[^/].*/{
29278 s//\1/
29281 /^X\(\/\/\)$/{
29282 s//\1/
29285 /^X\(\/\).*/{
29286 s//\1/
29289 s/.*/./; q'`
29290 as_dir="$ac_dir"; as_fn_mkdir_p
29291 ac_builddir=.
29293 case "$ac_dir" in
29294 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29296 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29297 # A ".." for each directory in $ac_dir_suffix.
29298 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29299 case $ac_top_builddir_sub in
29300 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29301 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29302 esac ;;
29303 esac
29304 ac_abs_top_builddir=$ac_pwd
29305 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29306 # for backward compatibility:
29307 ac_top_builddir=$ac_top_build_prefix
29309 case $srcdir in
29310 .) # We are building in place.
29311 ac_srcdir=.
29312 ac_top_srcdir=$ac_top_builddir_sub
29313 ac_abs_top_srcdir=$ac_pwd ;;
29314 [\\/]* | ?:[\\/]* ) # Absolute name.
29315 ac_srcdir=$srcdir$ac_dir_suffix;
29316 ac_top_srcdir=$srcdir
29317 ac_abs_top_srcdir=$srcdir ;;
29318 *) # Relative name.
29319 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29320 ac_top_srcdir=$ac_top_build_prefix$srcdir
29321 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29322 esac
29323 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29326 case $ac_mode in
29329 # CONFIG_FILE
29332 _ACEOF
29334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29335 # If the template does not know about datarootdir, expand it.
29336 # FIXME: This hack should be removed a few years after 2.60.
29337 ac_datarootdir_hack=; ac_datarootdir_seen=
29338 ac_sed_dataroot='
29339 /datarootdir/ {
29343 /@datadir@/p
29344 /@docdir@/p
29345 /@infodir@/p
29346 /@localedir@/p
29347 /@mandir@/p'
29348 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29349 *datarootdir*) ac_datarootdir_seen=yes;;
29350 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29352 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29353 _ACEOF
29354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29355 ac_datarootdir_hack='
29356 s&@datadir@&$datadir&g
29357 s&@docdir@&$docdir&g
29358 s&@infodir@&$infodir&g
29359 s&@localedir@&$localedir&g
29360 s&@mandir@&$mandir&g
29361 s&\\\${datarootdir}&$datarootdir&g' ;;
29362 esac
29363 _ACEOF
29365 # Neutralize VPATH when `$srcdir' = `.'.
29366 # Shell code in configure.ac might set extrasub.
29367 # FIXME: do we really want to maintain this feature?
29368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29369 ac_sed_extra="$ac_vpsub
29370 $extrasub
29371 _ACEOF
29372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29374 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29375 s|@configure_input@|$ac_sed_conf_input|;t t
29376 s&@top_builddir@&$ac_top_builddir_sub&;t t
29377 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29378 s&@srcdir@&$ac_srcdir&;t t
29379 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29380 s&@top_srcdir@&$ac_top_srcdir&;t t
29381 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29382 s&@builddir@&$ac_builddir&;t t
29383 s&@abs_builddir@&$ac_abs_builddir&;t t
29384 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29385 $ac_datarootdir_hack
29387 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29388 if $ac_cs_awk_getline; then
29389 $AWK -f "$tmp/subs.awk"
29390 else
29391 $AWK -f "$tmp/subs.awk" | $SHELL
29392 fi >$tmp/out \
29393 || as_fn_error "could not create $ac_file" "$LINENO" 5
29395 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29396 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29397 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29399 which seems to be undefined. Please make sure it is defined." >&5
29400 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29401 which seems to be undefined. Please make sure it is defined." >&2;}
29403 rm -f "$tmp/stdin"
29404 case $ac_file in
29405 -) cat "$tmp/out" && rm -f "$tmp/out";;
29406 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29407 esac \
29408 || as_fn_error "could not create $ac_file" "$LINENO" 5
29412 # CONFIG_HEADER
29414 if test x"$ac_file" != x-; then
29416 $as_echo "/* $configure_input */" \
29417 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29418 } >"$tmp/config.h" \
29419 || as_fn_error "could not create $ac_file" "$LINENO" 5
29420 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29421 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29422 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29423 else
29424 rm -f "$ac_file"
29425 mv "$tmp/config.h" "$ac_file" \
29426 || as_fn_error "could not create $ac_file" "$LINENO" 5
29428 else
29429 $as_echo "/* $configure_input */" \
29430 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29431 || as_fn_error "could not create -" "$LINENO" 5
29436 # CONFIG_LINK
29439 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
29441 else
29442 # Prefer the file from the source tree if names are identical.
29443 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29444 ac_source=$srcdir/$ac_source
29447 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
29448 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
29450 if test ! -r "$ac_source"; then
29451 as_fn_error "$ac_source: file not found" "$LINENO" 5
29453 rm -f "$ac_file"
29455 # Try a relative symlink, then a hard link, then a copy.
29456 case $srcdir in
29457 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
29458 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
29459 esac
29460 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29461 ln "$ac_source" "$ac_file" 2>/dev/null ||
29462 cp -p "$ac_source" "$ac_file" ||
29463 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
29466 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29467 $as_echo "$as_me: executing $ac_file commands" >&6;}
29469 esac
29472 case $ac_file$ac_mode in
29473 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29474 "gccdepdir":C)
29475 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29476 for lang in $subdirs c-family common
29478 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29479 done ;;
29480 "as":F) chmod +x as ;;
29481 "collect-ld":F) chmod +x collect-ld ;;
29482 "nm":F) chmod +x nm ;;
29483 "default":C)
29484 case ${CONFIG_HEADERS} in
29485 *auto-host.h:config.in*)
29486 echo > cstamp-h ;;
29487 esac
29488 # Make sure all the subdirs exist.
29489 for d in $subdirs doc build common c-family
29491 test -d $d || mkdir $d
29492 done
29495 esac
29496 done # for ac_tag
29499 as_fn_exit 0
29500 _ACEOF
29501 ac_clean_files=$ac_clean_files_save
29503 test $ac_write_fail = 0 ||
29504 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29507 # configure is writing to config.log, and then calls config.status.
29508 # config.status does its own redirection, appending to config.log.
29509 # Unfortunately, on DOS this fails, as config.log is still kept open
29510 # by configure, so config.status won't be able to write to it; its
29511 # output is simply discarded. So we exec the FD to /dev/null,
29512 # effectively closing config.log, so it can be properly (re)opened and
29513 # appended to by config.status. When coming back to configure, we
29514 # need to make the FD available again.
29515 if test "$no_create" != yes; then
29516 ac_cs_success=:
29517 ac_config_status_args=
29518 test "$silent" = yes &&
29519 ac_config_status_args="$ac_config_status_args --quiet"
29520 exec 5>/dev/null
29521 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29522 exec 5>>config.log
29523 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29524 # would make configure fail if this is the last instruction.
29525 $ac_cs_success || as_fn_exit $?
29527 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29529 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}