gcc/ChangeLog:
[official-gcc.git] / gcc / configure
blob271316ad295444178659267a75839257af7403c6
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 NO_PIE_FLAG
604 NO_PIE_CFLAGS
605 enable_default_pie
606 PICFLAG
607 enable_host_shared
608 enable_plugin
609 pluginlibs
610 ISLINC
611 ISLLIBS
612 GMPINC
613 GMPLIBS
614 target_cpu_default
615 fortran_target_objs
616 cxx_target_objs
617 c_target_objs
618 use_gcc_stdint
619 xm_defines
620 xm_include_list
621 xm_file_list
622 tm_p_include_list
623 tm_p_file_list
624 tm_defines
625 tm_include_list
626 tm_file_list
627 common_out_object_file
628 common_out_file
629 out_object_file
630 out_file
631 objc_boehm_gc
632 md_file
633 local_prefix
634 lang_tree_files
635 lang_specs_files
636 lang_opt_files
637 install
638 out_host_hook_obj
639 host_xm_defines
640 host_xm_include_list
641 host_xm_file_list
642 host_exeext
643 gcc_gxx_include_dir_add_sysroot
644 gcc_gxx_include_dir
645 gcc_config_arguments
646 float_h_file
647 extra_programs
648 extra_objs
649 extra_headers_list
650 user_headers_inc_next_post
651 user_headers_inc_next_pre
652 extra_gcc_objs
653 TM_MULTILIB_EXCEPTIONS_CONFIG
654 TM_MULTILIB_CONFIG
655 TM_ENDIAN_CONFIG
656 tmake_file
657 xmake_file
658 cpp_install_dir
659 check_languages
660 build_file_translate
661 build_xm_defines
662 build_xm_include_list
663 build_xm_file_list
664 build_install_headers_dir
665 build_exeext
666 all_selected_languages
667 all_languages
668 all_lang_makefrags
669 all_gtfiles
670 all_compilers
671 srcdir
672 subdirs
673 dollar
674 gcc_tooldir
675 enable_lto
676 DO_LINK_MUTEX
677 MAINT
678 zlibinc
679 zlibdir
680 HOST_LIBS
681 libgcc_visibility
682 gcc_cv_readelf
683 gcc_cv_objdump
684 ORIGINAL_NM_FOR_TARGET
685 gcc_cv_nm
686 ORIGINAL_LD_GOLD_FOR_TARGET
687 ORIGINAL_LD_BFD_FOR_TARGET
688 ORIGINAL_LD_FOR_TARGET
689 ORIGINAL_PLUGIN_LD_FOR_TARGET
690 gcc_cv_ld
691 ORIGINAL_AS_FOR_TARGET
692 gcc_cv_as
693 enable_fast_install
694 objdir
695 OTOOL64
696 OTOOL
697 LIPO
698 NMEDIT
699 DSYMUTIL
700 STRIP
701 OBJDUMP
702 ac_ct_DUMPBIN
703 DUMPBIN
705 FGREP
707 LIBTOOL
708 collect2
709 STMP_FIXINC
710 BUILD_LDFLAGS
711 BUILD_CXXFLAGS
712 BUILD_CFLAGS
713 CXX_FOR_BUILD
714 CC_FOR_BUILD
715 inhibit_libc
716 SYSTEM_HEADER_DIR
718 CROSS
719 CATOBJEXT
720 GENCAT
721 INSTOBJEXT
722 DATADIRNAME
723 CATALOGS
724 POSUB
725 GMSGFMT
726 XGETTEXT
727 INCINTL
728 LIBINTL_DEP
729 LIBINTL
730 USE_NLS
731 extra_opt_files
732 extra_modes_file
733 NATIVE_SYSTEM_HEADER_DIR
734 objext
735 manext
736 LIBICONV_DEP
737 LTLIBICONV
738 LIBICONV
739 LDEXP_LIB
740 EXTRA_GCC_LIBS
741 GNAT_LIBEXC
742 COLLECT2_LIBS
743 CXXDEPMODE
744 DEPDIR
745 am__leading_dot
746 doc_build_sys
749 BISON
750 FLEX
751 GENERATED_MANPAGES
752 BUILD_INFO
753 MAKEINFO
754 have_mktemp_command
755 make_compare_target
756 INSTALL_DATA
757 INSTALL_PROGRAM
758 INSTALL
759 ranlib_flags
760 RANLIB
762 LN_S
764 SET_MAKE
765 accel_dir_suffix
766 real_target_noncanonical
767 enable_as_accelerator
768 REPORT_BUGS_TEXI
769 REPORT_BUGS_TO
770 PKGVERSION
771 CONFIGURE_SPECS
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 nocommon_flag
785 noexception_flags
786 warn_cxxflags
787 warn_cflags
788 c_strict_warn
789 strict_warn
790 c_loose_warn
791 loose_warn
792 aliasing_flags
794 EGREP
795 GREP
796 CXXCPP
797 PICFLAG_FOR_TARGET
798 GNATMAKE
799 GNATBIND
800 ac_ct_CXX
801 CXXFLAGS
803 OBJEXT
804 EXEEXT
805 ac_ct_CC
806 CPPFLAGS
807 LDFLAGS
808 CFLAGS
810 GENINSRC
811 CROSS_SYSTEM_HEADER_DIR
812 TARGET_SYSTEM_ROOT_DEFINE
813 TARGET_SYSTEM_ROOT
814 SYSROOT_CFLAGS_FOR_TARGET
815 target_subdir
816 host_subdir
817 build_subdir
818 build_libsubdir
819 target_noncanonical
820 target_os
821 target_vendor
822 target_cpu
823 target
824 host_os
825 host_vendor
826 host_cpu
827 host
828 build_os
829 build_vendor
830 build_cpu
831 build
832 target_alias
833 host_alias
834 build_alias
835 LIBS
836 ECHO_T
837 ECHO_N
838 ECHO_C
839 DEFS
840 mandir
841 localedir
842 libdir
843 psdir
844 pdfdir
845 dvidir
846 htmldir
847 infodir
848 docdir
849 oldincludedir
850 includedir
851 localstatedir
852 sharedstatedir
853 sysconfdir
854 datadir
855 datarootdir
856 libexecdir
857 sbindir
858 bindir
859 program_transform_name
860 prefix
861 exec_prefix
862 PACKAGE_URL
863 PACKAGE_BUGREPORT
864 PACKAGE_STRING
865 PACKAGE_VERSION
866 PACKAGE_TARNAME
867 PACKAGE_NAME
868 PATH_SEPARATOR
869 SHELL'
870 ac_subst_files='option_includes
871 language_hooks'
872 ac_user_opts='
873 enable_option_checking
874 with_build_libsubdir
875 with_local_prefix
876 with_native_system_header_dir
877 with_build_sysroot
878 with_sysroot
879 with_gxx_include_dir
880 with_cpp_install_dir
881 enable_generated_files_in_srcdir
882 with_gnu_ld
883 with_ld
884 with_demangler_in_ld
885 with_gnu_as
886 with_as
887 enable_largefile
888 enable_build_format_warnings
889 enable_werror_always
890 enable_checking
891 enable_coverage
892 enable_gather_detailed_mem_stats
893 enable_valgrind_annotations
894 with_stabs
895 enable_multilib
896 enable_multiarch
897 enable___cxa_atexit
898 enable_decimal_float
899 enable_fixed_point
900 enable_threads
901 enable_tls
902 enable_objc_gc
903 with_dwarf2
904 enable_shared
905 with_specs
906 with_pkgversion
907 with_bugurl
908 enable_languages
909 with_multilib_list
910 enable_rpath
911 with_libiconv_prefix
912 enable_sjlj_exceptions
913 enable_secureplt
914 enable_leading_mingw64_underscores
915 enable_cld
916 enable_frame_pointer
917 enable_win32_registry
918 enable_static
919 with_pic
920 enable_fast_install
921 enable_libtool_lock
922 enable_ld
923 enable_gold
924 with_plugin_ld
925 enable_gnu_indirect_function
926 enable_initfini_array
927 enable_comdat
928 enable_fix_cortex_a53_835769
929 enable_fix_cortex_a53_843419
930 with_glibc_version
931 enable_gnu_unique_object
932 enable_linker_build_id
933 with_long_double_128
934 with_gc
935 with_system_zlib
936 enable_maintainer_mode
937 enable_link_mutex
938 enable_version_specific_runtime_libs
939 enable_plugin
940 enable_host_shared
941 enable_libquadmath_support
942 with_linker_hash_style
943 with_diagnostics_color
944 enable_default_pie
946 ac_precious_vars='build_alias
947 host_alias
948 target_alias
950 CFLAGS
951 LDFLAGS
952 LIBS
953 CPPFLAGS
955 CXXFLAGS
957 CXXCPP
959 GMPLIBS
960 GMPINC
961 ISLLIBS
962 ISLINC'
965 # Initialize some variables set by options.
966 ac_init_help=
967 ac_init_version=false
968 ac_unrecognized_opts=
969 ac_unrecognized_sep=
970 # The variables have the same names as the options, with
971 # dashes changed to underlines.
972 cache_file=/dev/null
973 exec_prefix=NONE
974 no_create=
975 no_recursion=
976 prefix=NONE
977 program_prefix=NONE
978 program_suffix=NONE
979 program_transform_name=s,x,x,
980 silent=
981 site=
982 srcdir=
983 verbose=
984 x_includes=NONE
985 x_libraries=NONE
987 # Installation directory options.
988 # These are left unexpanded so users can "make install exec_prefix=/foo"
989 # and all the variables that are supposed to be based on exec_prefix
990 # by default will actually change.
991 # Use braces instead of parens because sh, perl, etc. also accept them.
992 # (The list follows the same order as the GNU Coding Standards.)
993 bindir='${exec_prefix}/bin'
994 sbindir='${exec_prefix}/sbin'
995 libexecdir='${exec_prefix}/libexec'
996 datarootdir='${prefix}/share'
997 datadir='${datarootdir}'
998 sysconfdir='${prefix}/etc'
999 sharedstatedir='${prefix}/com'
1000 localstatedir='${prefix}/var'
1001 includedir='${prefix}/include'
1002 oldincludedir='/usr/include'
1003 docdir='${datarootdir}/doc/${PACKAGE}'
1004 infodir='${datarootdir}/info'
1005 htmldir='${docdir}'
1006 dvidir='${docdir}'
1007 pdfdir='${docdir}'
1008 psdir='${docdir}'
1009 libdir='${exec_prefix}/lib'
1010 localedir='${datarootdir}/locale'
1011 mandir='${datarootdir}/man'
1013 ac_prev=
1014 ac_dashdash=
1015 for ac_option
1017 # If the previous option needs an argument, assign it.
1018 if test -n "$ac_prev"; then
1019 eval $ac_prev=\$ac_option
1020 ac_prev=
1021 continue
1024 case $ac_option in
1025 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1026 *) ac_optarg=yes ;;
1027 esac
1029 # Accept the important Cygnus configure options, so we can diagnose typos.
1031 case $ac_dashdash$ac_option in
1033 ac_dashdash=yes ;;
1035 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1036 ac_prev=bindir ;;
1037 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1038 bindir=$ac_optarg ;;
1040 -build | --build | --buil | --bui | --bu)
1041 ac_prev=build_alias ;;
1042 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1043 build_alias=$ac_optarg ;;
1045 -cache-file | --cache-file | --cache-fil | --cache-fi \
1046 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1047 ac_prev=cache_file ;;
1048 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1049 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1050 cache_file=$ac_optarg ;;
1052 --config-cache | -C)
1053 cache_file=config.cache ;;
1055 -datadir | --datadir | --datadi | --datad)
1056 ac_prev=datadir ;;
1057 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1058 datadir=$ac_optarg ;;
1060 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1061 | --dataroo | --dataro | --datar)
1062 ac_prev=datarootdir ;;
1063 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1064 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1065 datarootdir=$ac_optarg ;;
1067 -disable-* | --disable-*)
1068 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071 as_fn_error "invalid feature name: $ac_useropt"
1072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1076 "enable_$ac_useropt"
1077 "*) ;;
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1080 esac
1081 eval enable_$ac_useropt=no ;;
1083 -docdir | --docdir | --docdi | --doc | --do)
1084 ac_prev=docdir ;;
1085 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1086 docdir=$ac_optarg ;;
1088 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1089 ac_prev=dvidir ;;
1090 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1091 dvidir=$ac_optarg ;;
1093 -enable-* | --enable-*)
1094 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097 as_fn_error "invalid feature name: $ac_useropt"
1098 ac_useropt_orig=$ac_useropt
1099 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100 case $ac_user_opts in
1102 "enable_$ac_useropt"
1103 "*) ;;
1104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1105 ac_unrecognized_sep=', ';;
1106 esac
1107 eval enable_$ac_useropt=\$ac_optarg ;;
1109 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1110 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1111 | --exec | --exe | --ex)
1112 ac_prev=exec_prefix ;;
1113 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1114 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1115 | --exec=* | --exe=* | --ex=*)
1116 exec_prefix=$ac_optarg ;;
1118 -gas | --gas | --ga | --g)
1119 # Obsolete; use --with-gas.
1120 with_gas=yes ;;
1122 -help | --help | --hel | --he | -h)
1123 ac_init_help=long ;;
1124 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1125 ac_init_help=recursive ;;
1126 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1127 ac_init_help=short ;;
1129 -host | --host | --hos | --ho)
1130 ac_prev=host_alias ;;
1131 -host=* | --host=* | --hos=* | --ho=*)
1132 host_alias=$ac_optarg ;;
1134 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1135 ac_prev=htmldir ;;
1136 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1137 | --ht=*)
1138 htmldir=$ac_optarg ;;
1140 -includedir | --includedir | --includedi | --included | --include \
1141 | --includ | --inclu | --incl | --inc)
1142 ac_prev=includedir ;;
1143 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1144 | --includ=* | --inclu=* | --incl=* | --inc=*)
1145 includedir=$ac_optarg ;;
1147 -infodir | --infodir | --infodi | --infod | --info | --inf)
1148 ac_prev=infodir ;;
1149 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1150 infodir=$ac_optarg ;;
1152 -libdir | --libdir | --libdi | --libd)
1153 ac_prev=libdir ;;
1154 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1155 libdir=$ac_optarg ;;
1157 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1158 | --libexe | --libex | --libe)
1159 ac_prev=libexecdir ;;
1160 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1161 | --libexe=* | --libex=* | --libe=*)
1162 libexecdir=$ac_optarg ;;
1164 -localedir | --localedir | --localedi | --localed | --locale)
1165 ac_prev=localedir ;;
1166 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1167 localedir=$ac_optarg ;;
1169 -localstatedir | --localstatedir | --localstatedi | --localstated \
1170 | --localstate | --localstat | --localsta | --localst | --locals)
1171 ac_prev=localstatedir ;;
1172 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1173 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1174 localstatedir=$ac_optarg ;;
1176 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1177 ac_prev=mandir ;;
1178 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1179 mandir=$ac_optarg ;;
1181 -nfp | --nfp | --nf)
1182 # Obsolete; use --without-fp.
1183 with_fp=no ;;
1185 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1186 | --no-cr | --no-c | -n)
1187 no_create=yes ;;
1189 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1190 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1191 no_recursion=yes ;;
1193 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1194 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1195 | --oldin | --oldi | --old | --ol | --o)
1196 ac_prev=oldincludedir ;;
1197 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1198 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1199 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1200 oldincludedir=$ac_optarg ;;
1202 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1203 ac_prev=prefix ;;
1204 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1205 prefix=$ac_optarg ;;
1207 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1208 | --program-pre | --program-pr | --program-p)
1209 ac_prev=program_prefix ;;
1210 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1211 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1212 program_prefix=$ac_optarg ;;
1214 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1215 | --program-suf | --program-su | --program-s)
1216 ac_prev=program_suffix ;;
1217 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1218 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1219 program_suffix=$ac_optarg ;;
1221 -program-transform-name | --program-transform-name \
1222 | --program-transform-nam | --program-transform-na \
1223 | --program-transform-n | --program-transform- \
1224 | --program-transform | --program-transfor \
1225 | --program-transfo | --program-transf \
1226 | --program-trans | --program-tran \
1227 | --progr-tra | --program-tr | --program-t)
1228 ac_prev=program_transform_name ;;
1229 -program-transform-name=* | --program-transform-name=* \
1230 | --program-transform-nam=* | --program-transform-na=* \
1231 | --program-transform-n=* | --program-transform-=* \
1232 | --program-transform=* | --program-transfor=* \
1233 | --program-transfo=* | --program-transf=* \
1234 | --program-trans=* | --program-tran=* \
1235 | --progr-tra=* | --program-tr=* | --program-t=*)
1236 program_transform_name=$ac_optarg ;;
1238 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1239 ac_prev=pdfdir ;;
1240 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1241 pdfdir=$ac_optarg ;;
1243 -psdir | --psdir | --psdi | --psd | --ps)
1244 ac_prev=psdir ;;
1245 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1246 psdir=$ac_optarg ;;
1248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249 | -silent | --silent | --silen | --sile | --sil)
1250 silent=yes ;;
1252 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1253 ac_prev=sbindir ;;
1254 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1255 | --sbi=* | --sb=*)
1256 sbindir=$ac_optarg ;;
1258 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1259 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1260 | --sharedst | --shareds | --shared | --share | --shar \
1261 | --sha | --sh)
1262 ac_prev=sharedstatedir ;;
1263 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1264 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1265 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1266 | --sha=* | --sh=*)
1267 sharedstatedir=$ac_optarg ;;
1269 -site | --site | --sit)
1270 ac_prev=site ;;
1271 -site=* | --site=* | --sit=*)
1272 site=$ac_optarg ;;
1274 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1275 ac_prev=srcdir ;;
1276 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1277 srcdir=$ac_optarg ;;
1279 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1280 | --syscon | --sysco | --sysc | --sys | --sy)
1281 ac_prev=sysconfdir ;;
1282 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1283 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1284 sysconfdir=$ac_optarg ;;
1286 -target | --target | --targe | --targ | --tar | --ta | --t)
1287 ac_prev=target_alias ;;
1288 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1289 target_alias=$ac_optarg ;;
1291 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1292 verbose=yes ;;
1294 -version | --version | --versio | --versi | --vers | -V)
1295 ac_init_version=: ;;
1297 -with-* | --with-*)
1298 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301 as_fn_error "invalid package name: $ac_useropt"
1302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1306 "with_$ac_useropt"
1307 "*) ;;
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1310 esac
1311 eval with_$ac_useropt=\$ac_optarg ;;
1313 -without-* | --without-*)
1314 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1315 # Reject names that are not valid shell variable names.
1316 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317 as_fn_error "invalid package name: $ac_useropt"
1318 ac_useropt_orig=$ac_useropt
1319 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1320 case $ac_user_opts in
1322 "with_$ac_useropt"
1323 "*) ;;
1324 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1325 ac_unrecognized_sep=', ';;
1326 esac
1327 eval with_$ac_useropt=no ;;
1329 --x)
1330 # Obsolete; use --with-x.
1331 with_x=yes ;;
1333 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1334 | --x-incl | --x-inc | --x-in | --x-i)
1335 ac_prev=x_includes ;;
1336 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1337 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1338 x_includes=$ac_optarg ;;
1340 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1341 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1342 ac_prev=x_libraries ;;
1343 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1344 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1345 x_libraries=$ac_optarg ;;
1347 -*) as_fn_error "unrecognized option: \`$ac_option'
1348 Try \`$0 --help' for more information."
1351 *=*)
1352 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1353 # Reject names that are not valid shell variable names.
1354 case $ac_envvar in #(
1355 '' | [0-9]* | *[!_$as_cr_alnum]* )
1356 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1357 esac
1358 eval $ac_envvar=\$ac_optarg
1359 export $ac_envvar ;;
1362 # FIXME: should be removed in autoconf 3.0.
1363 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1364 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1365 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1366 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1369 esac
1370 done
1372 if test -n "$ac_prev"; then
1373 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1374 as_fn_error "missing argument to $ac_option"
1377 if test -n "$ac_unrecognized_opts"; then
1378 case $enable_option_checking in
1379 no) ;;
1380 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1381 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1382 esac
1385 # Check all directory arguments for consistency.
1386 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1387 datadir sysconfdir sharedstatedir localstatedir includedir \
1388 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1389 libdir localedir mandir
1391 eval ac_val=\$$ac_var
1392 # Remove trailing slashes.
1393 case $ac_val in
1394 */ )
1395 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1396 eval $ac_var=\$ac_val;;
1397 esac
1398 # Be sure to have absolute directory names.
1399 case $ac_val in
1400 [\\/$]* | ?:[\\/]* ) continue;;
1401 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1402 esac
1403 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1404 done
1406 # There might be people who depend on the old broken behavior: `$host'
1407 # used to hold the argument of --host etc.
1408 # FIXME: To remove some day.
1409 build=$build_alias
1410 host=$host_alias
1411 target=$target_alias
1413 # FIXME: To remove some day.
1414 if test "x$host_alias" != x; then
1415 if test "x$build_alias" = x; then
1416 cross_compiling=maybe
1417 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1418 If a cross compiler is detected then cross compile mode will be used." >&2
1419 elif test "x$build_alias" != "x$host_alias"; then
1420 cross_compiling=yes
1424 ac_tool_prefix=
1425 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1427 test "$silent" = yes && exec 6>/dev/null
1430 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1431 ac_ls_di=`ls -di .` &&
1432 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1433 as_fn_error "working directory cannot be determined"
1434 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1435 as_fn_error "pwd does not report name of working directory"
1438 # Find the source files, if location was not specified.
1439 if test -z "$srcdir"; then
1440 ac_srcdir_defaulted=yes
1441 # Try the directory containing this script, then the parent directory.
1442 ac_confdir=`$as_dirname -- "$as_myself" ||
1443 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1444 X"$as_myself" : 'X\(//\)[^/]' \| \
1445 X"$as_myself" : 'X\(//\)$' \| \
1446 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1447 $as_echo X"$as_myself" |
1448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1449 s//\1/
1452 /^X\(\/\/\)[^/].*/{
1453 s//\1/
1456 /^X\(\/\/\)$/{
1457 s//\1/
1460 /^X\(\/\).*/{
1461 s//\1/
1464 s/.*/./; q'`
1465 srcdir=$ac_confdir
1466 if test ! -r "$srcdir/$ac_unique_file"; then
1467 srcdir=..
1469 else
1470 ac_srcdir_defaulted=no
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1473 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1474 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1476 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1477 ac_abs_confdir=`(
1478 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1479 pwd)`
1480 # When building in place, set srcdir=.
1481 if test "$ac_abs_confdir" = "$ac_pwd"; then
1482 srcdir=.
1484 # Remove unnecessary trailing slashes from srcdir.
1485 # Double slashes in file names in object file debugging info
1486 # mess up M-x gdb in Emacs.
1487 case $srcdir in
1488 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1489 esac
1490 for ac_var in $ac_precious_vars; do
1491 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1492 eval ac_env_${ac_var}_value=\$${ac_var}
1493 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1494 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1495 done
1498 # Report the --help message.
1500 if test "$ac_init_help" = "long"; then
1501 # Omit some internal or obsolete options to make the list less imposing.
1502 # This message is too long to be a string in the A/UX 3.1 sh.
1503 cat <<_ACEOF
1504 \`configure' configures this package to adapt to many kinds of systems.
1506 Usage: $0 [OPTION]... [VAR=VALUE]...
1508 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1509 VAR=VALUE. See below for descriptions of some of the useful variables.
1511 Defaults for the options are specified in brackets.
1513 Configuration:
1514 -h, --help display this help and exit
1515 --help=short display options specific to this package
1516 --help=recursive display the short help of all the included packages
1517 -V, --version display version information and exit
1518 -q, --quiet, --silent do not print \`checking...' messages
1519 --cache-file=FILE cache test results in FILE [disabled]
1520 -C, --config-cache alias for \`--cache-file=config.cache'
1521 -n, --no-create do not create output files
1522 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1524 Installation directories:
1525 --prefix=PREFIX install architecture-independent files in PREFIX
1526 [$ac_default_prefix]
1527 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1528 [PREFIX]
1530 By default, \`make install' will install all the files in
1531 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1532 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1533 for instance \`--prefix=\$HOME'.
1535 For better control, use the options below.
1537 Fine tuning of the installation directories:
1538 --bindir=DIR user executables [EPREFIX/bin]
1539 --sbindir=DIR system admin executables [EPREFIX/sbin]
1540 --libexecdir=DIR program executables [EPREFIX/libexec]
1541 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1542 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1543 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1544 --libdir=DIR object code libraries [EPREFIX/lib]
1545 --includedir=DIR C header files [PREFIX/include]
1546 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1547 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1548 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1549 --infodir=DIR info documentation [DATAROOTDIR/info]
1550 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1551 --mandir=DIR man documentation [DATAROOTDIR/man]
1552 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1553 --htmldir=DIR html documentation [DOCDIR]
1554 --dvidir=DIR dvi documentation [DOCDIR]
1555 --pdfdir=DIR pdf documentation [DOCDIR]
1556 --psdir=DIR ps documentation [DOCDIR]
1557 _ACEOF
1559 cat <<\_ACEOF
1561 Program names:
1562 --program-prefix=PREFIX prepend PREFIX to installed program names
1563 --program-suffix=SUFFIX append SUFFIX to installed program names
1564 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1566 System types:
1567 --build=BUILD configure for building on BUILD [guessed]
1568 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1569 --target=TARGET configure for building compilers for TARGET [HOST]
1570 _ACEOF
1573 if test -n "$ac_init_help"; then
1575 cat <<\_ACEOF
1577 Optional Features:
1578 --disable-option-checking ignore unrecognized --enable/--with options
1579 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1580 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1581 --enable-generated-files-in-srcdir
1582 put copies of generated files in source dir intended
1583 for creating source tarballs for users without
1584 texinfo bison or flex
1585 --disable-largefile omit support for large files
1586 --disable-build-format-warnings
1587 don't use -Wformat while building GCC
1588 --enable-werror-always enable -Werror despite compiler version
1589 --enable-checking[=LIST]
1590 enable expensive run-time checks. With LIST, enable
1591 only specific categories of checks. Categories are:
1592 yes,no,all,none,release. Flags are:
1593 assert,df,fold,gc,gcac,gimple,misc,
1594 rtlflag,rtl,runtime,tree,valgrind,types
1595 --enable-coverage[=LEVEL]
1596 enable compiler's code coverage collection. Use to
1597 measure compiler performance and locate unused parts
1598 of the compiler. With LEVEL, specify optimization.
1599 Values are opt, noopt, default is noopt
1600 --enable-gather-detailed-mem-stats
1601 enable detailed memory allocation stats gathering
1602 --enable-valgrind-annotations
1603 enable valgrind runtime interaction
1604 --enable-multilib enable library support for multiple ABIs
1605 --enable-multiarch enable support for multiarch paths
1606 --enable-__cxa_atexit enable __cxa_atexit for C++
1607 --enable-decimal-float={no,yes,bid,dpd}
1608 enable decimal float extension to C. Selecting 'bid'
1609 or 'dpd' choses which decimal floating point format
1610 to use
1611 --enable-fixed-point enable fixed-point arithmetic extension to C
1612 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1613 package
1614 --enable-tls enable or disable generation of tls code overriding
1615 the assembler check for tls support
1616 --enable-objc-gc enable the use of Boehm's garbage collector with the
1617 GNU Objective-C runtime
1618 --disable-shared don't provide a shared libgcc
1619 --enable-languages=LIST specify which front-ends to build
1620 --disable-rpath do not hardcode runtime library paths
1621 --enable-sjlj-exceptions
1622 arrange to use setjmp/longjmp exception handling
1623 --enable-secureplt enable -msecure-plt by default for PowerPC
1624 --enable-leading-mingw64-underscores
1625 enable leading underscores on 64 bit mingw targets
1626 --enable-cld enable -mcld by default for 32bit x86
1627 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1629 --disable-win32-registry
1630 disable lookup of installation paths in the Registry
1631 on Windows hosts
1632 --enable-win32-registry enable registry lookup (default)
1633 --enable-win32-registry=KEY
1634 use KEY instead of GCC version as the last portion
1635 of the registry key
1636 --enable-shared[=PKGS] build shared libraries [default=yes]
1637 --enable-static[=PKGS] build static libraries [default=yes]
1638 --enable-fast-install[=PKGS]
1639 optimize for fast installation [default=yes]
1640 --disable-libtool-lock avoid locking (might break parallel builds)
1641 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1642 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1643 --enable-gnu-indirect-function
1644 enable the use of the @gnu_indirect_function to
1645 glibc systems
1646 --enable-initfini-array use .init_array/.fini_array sections
1647 --enable-comdat enable COMDAT group support
1649 --enable-fix-cortex-a53-835769
1650 enable workaround for AArch64 Cortex-A53 erratum
1651 835769 by default
1652 --disable-fix-cortex-a53-835769
1653 disable workaround for AArch64 Cortex-A53 erratum
1654 835769 by default
1657 --enable-fix-cortex-a53-843419
1658 enable workaround for AArch64 Cortex-A53 erratum
1659 843419 by default
1660 --disable-fix-cortex-a53-843419
1661 disable workaround for AArch64 Cortex-A53 erratum
1662 843419 by default
1664 --enable-gnu-unique-object
1665 enable the use of the @gnu_unique_object ELF
1666 extension on glibc systems
1667 --enable-linker-build-id
1668 compiler will always pass --build-id to linker
1669 --enable-maintainer-mode
1670 enable make rules and dependencies not useful (and
1671 sometimes confusing) to the casual installer
1672 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1673 thrashing on the build machine
1674 --enable-version-specific-runtime-libs
1675 specify that runtime libraries should be installed
1676 in a compiler-specific directory
1677 --enable-plugin enable plugin support
1678 --enable-host-shared build host code as shared libraries
1679 --disable-libquadmath-support
1680 disable libquadmath support for Fortran
1681 --enable-default-pie enable Position Independent Executable as default
1683 Optional Packages:
1684 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1685 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1686 --with-build-libsubdir=DIR Directory where to find libraries for build system
1687 --with-local-prefix=DIR specifies directory to put local include
1688 --with-native-system-header-dir=dir
1689 use dir as the directory to look for standard
1690 system header files in. Defaults to /usr/include.
1691 --with-build-sysroot=sysroot
1692 use sysroot as the system root during the build
1693 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1694 --with-gxx-include-dir=DIR
1695 specifies directory to put g++ header files
1696 --with-cpp-install-dir=DIR
1697 install the user visible C preprocessor in DIR
1698 (relative to PREFIX) as well as PREFIX/bin
1699 --with-gnu-ld arrange to work with GNU ld
1700 --with-ld arrange to use the specified ld (full pathname)
1701 --with-demangler-in-ld try to use demangler in GNU ld
1702 --with-gnu-as arrange to work with GNU as
1703 --with-as arrange to use the specified as (full pathname)
1704 --with-stabs arrange to use stabs instead of host debug format
1705 --with-dwarf2 force the default debug format to be DWARF 2
1706 --with-specs=SPECS add SPECS to driver command-line processing
1707 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1708 --with-bugurl=URL Direct users to URL to report a bug
1709 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1710 --with-gnu-ld assume the C compiler uses GNU ld default=no
1711 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1712 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1713 --with-pic try to use only PIC/non-PIC objects [default=use
1714 both]
1715 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1716 --with-plugin-ld=[ARG] specify the plugin linker
1717 --with-glibc-version=M.N
1718 assume GCC used with glibc version M.N or later
1719 --with-long-double-128 use 128-bit long double by default
1720 --with-gc={page,zone} this option is not supported anymore. It used to
1721 choose the garbage collection mechanism to use with
1722 the compiler
1723 --with-system-zlib use installed libz
1724 --with-linker-hash-style={sysv,gnu,both}
1725 specify the linker hash style
1726 --with-diagnostics-color={never,auto,auto-if-env,always}
1727 specify the default of -fdiagnostics-color option
1728 auto-if-env stands for -fdiagnostics-color=auto if
1729 GCC_COLOR environment variable is present and
1730 -fdiagnostics-color=never otherwise
1732 Some influential environment variables:
1733 CC C compiler command
1734 CFLAGS C compiler flags
1735 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1736 nonstandard directory <lib dir>
1737 LIBS libraries to pass to the linker, e.g. -l<library>
1738 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1739 you have headers in a nonstandard directory <include dir>
1740 CXX C++ compiler command
1741 CXXFLAGS C++ compiler flags
1742 CXXCPP C++ preprocessor
1743 CPP C preprocessor
1744 GMPLIBS How to link GMP
1745 GMPINC How to find GMP include files
1746 ISLLIBS How to link ISL
1747 ISLINC How to find ISL include files
1749 Use these variables to override the choices made by `configure' or to help
1750 it to find libraries and programs with nonstandard names/locations.
1752 Report bugs to the package provider.
1753 _ACEOF
1754 ac_status=$?
1757 if test "$ac_init_help" = "recursive"; then
1758 # If there are subdirs, report their specific --help.
1759 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1760 test -d "$ac_dir" ||
1761 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1762 continue
1763 ac_builddir=.
1765 case "$ac_dir" in
1766 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1768 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1769 # A ".." for each directory in $ac_dir_suffix.
1770 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1771 case $ac_top_builddir_sub in
1772 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1773 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1774 esac ;;
1775 esac
1776 ac_abs_top_builddir=$ac_pwd
1777 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1778 # for backward compatibility:
1779 ac_top_builddir=$ac_top_build_prefix
1781 case $srcdir in
1782 .) # We are building in place.
1783 ac_srcdir=.
1784 ac_top_srcdir=$ac_top_builddir_sub
1785 ac_abs_top_srcdir=$ac_pwd ;;
1786 [\\/]* | ?:[\\/]* ) # Absolute name.
1787 ac_srcdir=$srcdir$ac_dir_suffix;
1788 ac_top_srcdir=$srcdir
1789 ac_abs_top_srcdir=$srcdir ;;
1790 *) # Relative name.
1791 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1792 ac_top_srcdir=$ac_top_build_prefix$srcdir
1793 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1794 esac
1795 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1797 cd "$ac_dir" || { ac_status=$?; continue; }
1798 # Check for guested configure.
1799 if test -f "$ac_srcdir/configure.gnu"; then
1800 echo &&
1801 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1802 elif test -f "$ac_srcdir/configure"; then
1803 echo &&
1804 $SHELL "$ac_srcdir/configure" --help=recursive
1805 else
1806 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1807 fi || ac_status=$?
1808 cd "$ac_pwd" || { ac_status=$?; break; }
1809 done
1812 test -n "$ac_init_help" && exit $ac_status
1813 if $ac_init_version; then
1814 cat <<\_ACEOF
1815 configure
1816 generated by GNU Autoconf 2.64
1818 Copyright (C) 2009 Free Software Foundation, Inc.
1819 This configure script is free software; the Free Software Foundation
1820 gives unlimited permission to copy, distribute and modify it.
1821 _ACEOF
1822 exit
1825 ## ------------------------ ##
1826 ## Autoconf initialization. ##
1827 ## ------------------------ ##
1829 # ac_fn_c_try_compile LINENO
1830 # --------------------------
1831 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_c_try_compile ()
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext
1836 if { { ac_try="$ac_compile"
1837 case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_compile") 2>conftest.err
1844 ac_status=$?
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_c_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest.$ac_objext; then :
1855 ac_retval=0
1856 else
1857 $as_echo "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.$ac_ext >&5
1860 ac_retval=1
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863 return $ac_retval
1865 } # ac_fn_c_try_compile
1867 # ac_fn_cxx_try_compile LINENO
1868 # ----------------------------
1869 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1870 ac_fn_cxx_try_compile ()
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 rm -f conftest.$ac_objext
1874 if { { ac_try="$ac_compile"
1875 case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_compile") 2>conftest.err
1882 ac_status=$?
1883 if test -s conftest.err; then
1884 grep -v '^ *+' conftest.err >conftest.er1
1885 cat conftest.er1 >&5
1886 mv -f conftest.er1 conftest.err
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } && {
1890 test -z "$ac_cxx_werror_flag" ||
1891 test ! -s conftest.err
1892 } && test -s conftest.$ac_objext; then :
1893 ac_retval=0
1894 else
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1898 ac_retval=1
1900 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1901 return $ac_retval
1903 } # ac_fn_cxx_try_compile
1905 # ac_fn_cxx_try_cpp LINENO
1906 # ------------------------
1907 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1908 ac_fn_cxx_try_cpp ()
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 if { { ac_try="$ac_cpp conftest.$ac_ext"
1912 case "(($ac_try" in
1913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1914 *) ac_try_echo=$ac_try;;
1915 esac
1916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1917 $as_echo "$ac_try_echo"; } >&5
1918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1919 ac_status=$?
1920 if test -s conftest.err; then
1921 grep -v '^ *+' conftest.err >conftest.er1
1922 cat conftest.er1 >&5
1923 mv -f conftest.er1 conftest.err
1925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1926 test $ac_status = 0; } >/dev/null && {
1927 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1928 test ! -s conftest.err
1929 }; then :
1930 ac_retval=0
1931 else
1932 $as_echo "$as_me: failed program was:" >&5
1933 sed 's/^/| /' conftest.$ac_ext >&5
1935 ac_retval=1
1937 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1938 return $ac_retval
1940 } # ac_fn_cxx_try_cpp
1942 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1943 # ---------------------------------------------------------
1944 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1945 # the include files in INCLUDES and setting the cache variable VAR
1946 # accordingly.
1947 ac_fn_cxx_check_header_mongrel ()
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1954 $as_echo_n "(cached) " >&6
1956 eval ac_res=\$$3
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 $as_echo "$ac_res" >&6; }
1959 else
1960 # Is the header compilable?
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1962 $as_echo_n "checking $2 usability... " >&6; }
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1966 #include <$2>
1967 _ACEOF
1968 if ac_fn_cxx_try_compile "$LINENO"; then :
1969 ac_header_compiler=yes
1970 else
1971 ac_header_compiler=no
1973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1975 $as_echo "$ac_header_compiler" >&6; }
1977 # Is the header present?
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1979 $as_echo_n "checking $2 presence... " >&6; }
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1982 #include <$2>
1983 _ACEOF
1984 if ac_fn_cxx_try_cpp "$LINENO"; then :
1985 ac_header_preproc=yes
1986 else
1987 ac_header_preproc=no
1989 rm -f conftest.err conftest.$ac_ext
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1991 $as_echo "$ac_header_preproc" >&6; }
1993 # So? What about this header?
1994 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1995 yes:no: )
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1997 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1999 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2001 no:yes:* )
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2003 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2005 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2007 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2009 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2011 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2013 esac
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2017 $as_echo_n "(cached) " >&6
2018 else
2019 eval "$3=\$ac_header_compiler"
2021 eval ac_res=\$$3
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023 $as_echo "$ac_res" >&6; }
2025 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2027 } # ac_fn_cxx_check_header_mongrel
2029 # ac_fn_cxx_try_run LINENO
2030 # ------------------------
2031 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2032 # that executables *can* be run.
2033 ac_fn_cxx_try_run ()
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 if { { ac_try="$ac_link"
2037 case "(($ac_try" in
2038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2039 *) ac_try_echo=$ac_try;;
2040 esac
2041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2042 $as_echo "$ac_try_echo"; } >&5
2043 (eval "$ac_link") 2>&5
2044 ac_status=$?
2045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2046 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2047 { { case "(($ac_try" in
2048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2049 *) ac_try_echo=$ac_try;;
2050 esac
2051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2052 $as_echo "$ac_try_echo"; } >&5
2053 (eval "$ac_try") 2>&5
2054 ac_status=$?
2055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2056 test $ac_status = 0; }; }; then :
2057 ac_retval=0
2058 else
2059 $as_echo "$as_me: program exited with status $ac_status" >&5
2060 $as_echo "$as_me: failed program was:" >&5
2061 sed 's/^/| /' conftest.$ac_ext >&5
2063 ac_retval=$ac_status
2065 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2066 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2067 return $ac_retval
2069 } # ac_fn_cxx_try_run
2071 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2072 # ---------------------------------------------------------
2073 # Tests whether HEADER exists and can be compiled using the include files in
2074 # INCLUDES, setting the cache variable VAR accordingly.
2075 ac_fn_cxx_check_header_compile ()
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079 $as_echo_n "checking for $2... " >&6; }
2080 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2081 $as_echo_n "(cached) " >&6
2082 else
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2086 #include <$2>
2087 _ACEOF
2088 if ac_fn_cxx_try_compile "$LINENO"; then :
2089 eval "$3=yes"
2090 else
2091 eval "$3=no"
2093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 eval ac_res=\$$3
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2097 $as_echo "$ac_res" >&6; }
2098 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2100 } # ac_fn_cxx_check_header_compile
2102 # ac_fn_c_try_cpp LINENO
2103 # ----------------------
2104 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2105 ac_fn_c_try_cpp ()
2107 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108 if { { ac_try="$ac_cpp conftest.$ac_ext"
2109 case "(($ac_try" in
2110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111 *) ac_try_echo=$ac_try;;
2112 esac
2113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2114 $as_echo "$ac_try_echo"; } >&5
2115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2116 ac_status=$?
2117 if test -s conftest.err; then
2118 grep -v '^ *+' conftest.err >conftest.er1
2119 cat conftest.er1 >&5
2120 mv -f conftest.er1 conftest.err
2122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2123 test $ac_status = 0; } >/dev/null && {
2124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2125 test ! -s conftest.err
2126 }; then :
2127 ac_retval=0
2128 else
2129 $as_echo "$as_me: failed program was:" >&5
2130 sed 's/^/| /' conftest.$ac_ext >&5
2132 ac_retval=1
2134 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2135 return $ac_retval
2137 } # ac_fn_c_try_cpp
2139 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2140 # ----------------------------------------------
2141 # Tries to find the compile-time value of EXPR in a program that includes
2142 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2143 # computed
2144 ac_fn_cxx_compute_int ()
2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147 if test "$cross_compiling" = yes; then
2148 # Depending upon the size, compute the lo and hi bounds.
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2153 main ()
2155 static int test_array [1 - 2 * !(($2) >= 0)];
2156 test_array [0] = 0
2159 return 0;
2161 _ACEOF
2162 if ac_fn_cxx_try_compile "$LINENO"; then :
2163 ac_lo=0 ac_mid=0
2164 while :; do
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2169 main ()
2171 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2172 test_array [0] = 0
2175 return 0;
2177 _ACEOF
2178 if ac_fn_cxx_try_compile "$LINENO"; then :
2179 ac_hi=$ac_mid; break
2180 else
2181 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2182 if test $ac_lo -le $ac_mid; then
2183 ac_lo= ac_hi=
2184 break
2186 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189 done
2190 else
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h. */
2195 main ()
2197 static int test_array [1 - 2 * !(($2) < 0)];
2198 test_array [0] = 0
2201 return 0;
2203 _ACEOF
2204 if ac_fn_cxx_try_compile "$LINENO"; then :
2205 ac_hi=-1 ac_mid=-1
2206 while :; do
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2211 main ()
2213 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2214 test_array [0] = 0
2217 return 0;
2219 _ACEOF
2220 if ac_fn_cxx_try_compile "$LINENO"; then :
2221 ac_lo=$ac_mid; break
2222 else
2223 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2224 if test $ac_mid -le $ac_hi; then
2225 ac_lo= ac_hi=
2226 break
2228 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231 done
2232 else
2233 ac_lo= ac_hi=
2235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 # Binary search between lo and hi bounds.
2239 while test "x$ac_lo" != "x$ac_hi"; do
2240 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2245 main ()
2247 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2248 test_array [0] = 0
2251 return 0;
2253 _ACEOF
2254 if ac_fn_cxx_try_compile "$LINENO"; then :
2255 ac_hi=$ac_mid
2256 else
2257 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260 done
2261 case $ac_lo in #((
2262 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2263 '') ac_retval=1 ;;
2264 esac
2265 else
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2269 static long int longval () { return $2; }
2270 static unsigned long int ulongval () { return $2; }
2271 #include <stdio.h>
2272 #include <stdlib.h>
2274 main ()
2277 FILE *f = fopen ("conftest.val", "w");
2278 if (! f)
2279 return 1;
2280 if (($2) < 0)
2282 long int i = longval ();
2283 if (i != ($2))
2284 return 1;
2285 fprintf (f, "%ld", i);
2287 else
2289 unsigned long int i = ulongval ();
2290 if (i != ($2))
2291 return 1;
2292 fprintf (f, "%lu", i);
2294 /* Do not output a trailing newline, as this causes \r\n confusion
2295 on some platforms. */
2296 return ferror (f) || fclose (f) != 0;
2299 return 0;
2301 _ACEOF
2302 if ac_fn_cxx_try_run "$LINENO"; then :
2303 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2304 else
2305 ac_retval=1
2307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2308 conftest.$ac_objext conftest.beam conftest.$ac_ext
2309 rm -f conftest.val
2312 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2313 return $ac_retval
2315 } # ac_fn_cxx_compute_int
2317 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2318 # ---------------------------------------------
2319 # Tests whether TYPE exists after having included INCLUDES, setting cache
2320 # variable VAR accordingly.
2321 ac_fn_cxx_check_type ()
2323 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2325 $as_echo_n "checking for $2... " >&6; }
2326 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2327 $as_echo_n "(cached) " >&6
2328 else
2329 eval "$3=no"
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2334 main ()
2336 if (sizeof ($2))
2337 return 0;
2339 return 0;
2341 _ACEOF
2342 if ac_fn_cxx_try_compile "$LINENO"; then :
2343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2344 /* end confdefs.h. */
2347 main ()
2349 if (sizeof (($2)))
2350 return 0;
2352 return 0;
2354 _ACEOF
2355 if ac_fn_cxx_try_compile "$LINENO"; then :
2357 else
2358 eval "$3=yes"
2360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364 eval ac_res=\$$3
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2366 $as_echo "$ac_res" >&6; }
2367 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2369 } # ac_fn_cxx_check_type
2371 # ac_fn_c_find_intX_t LINENO BITS VAR
2372 # -----------------------------------
2373 # Finds a signed integer type with width BITS, setting cache variable VAR
2374 # accordingly.
2375 ac_fn_c_find_intX_t ()
2377 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2379 $as_echo_n "checking for int$2_t... " >&6; }
2380 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2381 $as_echo_n "(cached) " >&6
2382 else
2383 eval "$3=no"
2384 for ac_type in int$2_t 'int' 'long int' \
2385 'long long int' 'short int' 'signed char'; do
2386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2387 /* end confdefs.h. */
2388 $ac_includes_default
2390 main ()
2392 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2393 test_array [0] = 0
2396 return 0;
2398 _ACEOF
2399 if ac_fn_cxx_try_compile "$LINENO"; then :
2400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2401 /* end confdefs.h. */
2402 $ac_includes_default
2404 main ()
2406 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2407 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2408 test_array [0] = 0
2411 return 0;
2413 _ACEOF
2414 if ac_fn_cxx_try_compile "$LINENO"; then :
2416 else
2417 case $ac_type in #(
2418 int$2_t) :
2419 eval "$3=yes" ;; #(
2420 *) :
2421 eval "$3=\$ac_type" ;;
2422 esac
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2427 eval as_val=\$$3
2428 if test "x$as_val" = x""no; then :
2430 else
2431 break
2433 done
2435 eval ac_res=\$$3
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2437 $as_echo "$ac_res" >&6; }
2438 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2440 } # ac_fn_c_find_intX_t
2442 # ac_fn_cxx_try_link LINENO
2443 # -------------------------
2444 # Try to link conftest.$ac_ext, and return whether this succeeded.
2445 ac_fn_cxx_try_link ()
2447 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2448 rm -f conftest.$ac_objext conftest$ac_exeext
2449 if { { ac_try="$ac_link"
2450 case "(($ac_try" in
2451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452 *) ac_try_echo=$ac_try;;
2453 esac
2454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2455 $as_echo "$ac_try_echo"; } >&5
2456 (eval "$ac_link") 2>conftest.err
2457 ac_status=$?
2458 if test -s conftest.err; then
2459 grep -v '^ *+' conftest.err >conftest.er1
2460 cat conftest.er1 >&5
2461 mv -f conftest.er1 conftest.err
2463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2464 test $ac_status = 0; } && {
2465 test -z "$ac_cxx_werror_flag" ||
2466 test ! -s conftest.err
2467 } && test -s conftest$ac_exeext && {
2468 test "$cross_compiling" = yes ||
2469 $as_test_x conftest$ac_exeext
2470 }; then :
2471 ac_retval=0
2472 else
2473 $as_echo "$as_me: failed program was:" >&5
2474 sed 's/^/| /' conftest.$ac_ext >&5
2476 ac_retval=1
2478 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2479 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2480 # interfere with the next link command; also delete a directory that is
2481 # left behind by Apple's compiler. We do this before executing the actions.
2482 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2483 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2484 return $ac_retval
2486 } # ac_fn_cxx_try_link
2488 # ac_fn_c_find_uintX_t LINENO BITS VAR
2489 # ------------------------------------
2490 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2491 # accordingly.
2492 ac_fn_c_find_uintX_t ()
2494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2496 $as_echo_n "checking for uint$2_t... " >&6; }
2497 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2498 $as_echo_n "(cached) " >&6
2499 else
2500 eval "$3=no"
2501 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2502 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2504 /* end confdefs.h. */
2505 $ac_includes_default
2507 main ()
2509 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2510 test_array [0] = 0
2513 return 0;
2515 _ACEOF
2516 if ac_fn_cxx_try_compile "$LINENO"; then :
2517 case $ac_type in #(
2518 uint$2_t) :
2519 eval "$3=yes" ;; #(
2520 *) :
2521 eval "$3=\$ac_type" ;;
2522 esac
2524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2525 eval as_val=\$$3
2526 if test "x$as_val" = x""no; then :
2528 else
2529 break
2531 done
2533 eval ac_res=\$$3
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2535 $as_echo "$ac_res" >&6; }
2536 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2538 } # ac_fn_c_find_uintX_t
2540 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2541 # ------------------------------------------------
2542 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2543 ac_fn_cxx_check_header_preproc ()
2545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2547 $as_echo_n "checking for $2... " >&6; }
2548 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2549 $as_echo_n "(cached) " >&6
2550 else
2551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552 /* end confdefs.h. */
2553 #include <$2>
2554 _ACEOF
2555 if ac_fn_cxx_try_cpp "$LINENO"; then :
2556 eval "$3=yes"
2557 else
2558 eval "$3=no"
2560 rm -f conftest.err conftest.$ac_ext
2562 eval ac_res=\$$3
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2564 $as_echo "$ac_res" >&6; }
2565 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2567 } # ac_fn_cxx_check_header_preproc
2569 # ac_fn_cxx_check_func LINENO FUNC VAR
2570 # ------------------------------------
2571 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2572 ac_fn_cxx_check_func ()
2574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2576 $as_echo_n "checking for $2... " >&6; }
2577 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2578 $as_echo_n "(cached) " >&6
2579 else
2580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2581 /* end confdefs.h. */
2582 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2584 #define $2 innocuous_$2
2586 /* System header to define __stub macros and hopefully few prototypes,
2587 which can conflict with char $2 (); below.
2588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2589 <limits.h> exists even on freestanding compilers. */
2591 #ifdef __STDC__
2592 # include <limits.h>
2593 #else
2594 # include <assert.h>
2595 #endif
2597 #undef $2
2599 /* Override any GCC internal prototype to avoid an error.
2600 Use char because int might match the return type of a GCC
2601 builtin and then its argument prototype would still apply. */
2602 #ifdef __cplusplus
2603 extern "C"
2604 #endif
2605 char $2 ();
2606 /* The GNU C library defines this for functions which it implements
2607 to always fail with ENOSYS. Some functions are actually named
2608 something starting with __ and the normal name is an alias. */
2609 #if defined __stub_$2 || defined __stub___$2
2610 choke me
2611 #endif
2614 main ()
2616 return $2 ();
2618 return 0;
2620 _ACEOF
2621 if ac_fn_cxx_try_link "$LINENO"; then :
2622 eval "$3=yes"
2623 else
2624 eval "$3=no"
2626 rm -f core conftest.err conftest.$ac_objext \
2627 conftest$ac_exeext conftest.$ac_ext
2629 eval ac_res=\$$3
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2631 $as_echo "$ac_res" >&6; }
2632 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2634 } # ac_fn_cxx_check_func
2636 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2637 # --------------------------------------
2638 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2639 ac_fn_cxx_check_decl ()
2641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2642 as_decl_name=`echo $2|sed 's/ *(.*//'`
2643 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2645 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2646 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2647 $as_echo_n "(cached) " >&6
2648 else
2649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2650 /* end confdefs.h. */
2653 main ()
2655 #ifndef $as_decl_name
2656 #ifdef __cplusplus
2657 (void) $as_decl_use;
2658 #else
2659 (void) $as_decl_name;
2660 #endif
2661 #endif
2664 return 0;
2666 _ACEOF
2667 if ac_fn_cxx_try_compile "$LINENO"; then :
2668 eval "$3=yes"
2669 else
2670 eval "$3=no"
2672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2674 eval ac_res=\$$3
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2676 $as_echo "$ac_res" >&6; }
2677 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2679 } # ac_fn_cxx_check_decl
2681 # ac_fn_c_try_link LINENO
2682 # -----------------------
2683 # Try to link conftest.$ac_ext, and return whether this succeeded.
2684 ac_fn_c_try_link ()
2686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2687 rm -f conftest.$ac_objext conftest$ac_exeext
2688 if { { ac_try="$ac_link"
2689 case "(($ac_try" in
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2692 esac
2693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2694 $as_echo "$ac_try_echo"; } >&5
2695 (eval "$ac_link") 2>conftest.err
2696 ac_status=$?
2697 if test -s conftest.err; then
2698 grep -v '^ *+' conftest.err >conftest.er1
2699 cat conftest.er1 >&5
2700 mv -f conftest.er1 conftest.err
2702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2703 test $ac_status = 0; } && {
2704 test -z "$ac_c_werror_flag" ||
2705 test ! -s conftest.err
2706 } && test -s conftest$ac_exeext && {
2707 test "$cross_compiling" = yes ||
2708 $as_test_x conftest$ac_exeext
2709 }; then :
2710 ac_retval=0
2711 else
2712 $as_echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2715 ac_retval=1
2717 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2718 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2719 # interfere with the next link command; also delete a directory that is
2720 # left behind by Apple's compiler. We do this before executing the actions.
2721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2722 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2723 return $ac_retval
2725 } # ac_fn_c_try_link
2727 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2728 # ----------------------------------------------
2729 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2730 ac_fn_c_check_header_preproc ()
2732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2734 $as_echo_n "checking for $2... " >&6; }
2735 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2736 $as_echo_n "(cached) " >&6
2737 else
2738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2739 /* end confdefs.h. */
2740 #include <$2>
2741 _ACEOF
2742 if ac_fn_c_try_cpp "$LINENO"; then :
2743 eval "$3=yes"
2744 else
2745 eval "$3=no"
2747 rm -f conftest.err conftest.$ac_ext
2749 eval ac_res=\$$3
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2751 $as_echo "$ac_res" >&6; }
2752 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2754 } # ac_fn_c_check_header_preproc
2756 # ac_fn_c_check_func LINENO FUNC VAR
2757 # ----------------------------------
2758 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2759 ac_fn_c_check_func ()
2761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2763 $as_echo_n "checking for $2... " >&6; }
2764 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2765 $as_echo_n "(cached) " >&6
2766 else
2767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2768 /* end confdefs.h. */
2769 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2771 #define $2 innocuous_$2
2773 /* System header to define __stub macros and hopefully few prototypes,
2774 which can conflict with char $2 (); below.
2775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2776 <limits.h> exists even on freestanding compilers. */
2778 #ifdef __STDC__
2779 # include <limits.h>
2780 #else
2781 # include <assert.h>
2782 #endif
2784 #undef $2
2786 /* Override any GCC internal prototype to avoid an error.
2787 Use char because int might match the return type of a GCC
2788 builtin and then its argument prototype would still apply. */
2789 #ifdef __cplusplus
2790 extern "C"
2791 #endif
2792 char $2 ();
2793 /* The GNU C library defines this for functions which it implements
2794 to always fail with ENOSYS. Some functions are actually named
2795 something starting with __ and the normal name is an alias. */
2796 #if defined __stub_$2 || defined __stub___$2
2797 choke me
2798 #endif
2801 main ()
2803 return $2 ();
2805 return 0;
2807 _ACEOF
2808 if ac_fn_c_try_link "$LINENO"; then :
2809 eval "$3=yes"
2810 else
2811 eval "$3=no"
2813 rm -f core conftest.err conftest.$ac_objext \
2814 conftest$ac_exeext conftest.$ac_ext
2816 eval ac_res=\$$3
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2818 $as_echo "$ac_res" >&6; }
2819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2821 } # ac_fn_c_check_func
2822 cat >config.log <<_ACEOF
2823 This file contains any messages produced by compilers while
2824 running configure, to aid debugging if configure makes a mistake.
2826 It was created by $as_me, which was
2827 generated by GNU Autoconf 2.64. Invocation command line was
2829 $ $0 $@
2831 _ACEOF
2832 exec 5>>config.log
2834 cat <<_ASUNAME
2835 ## --------- ##
2836 ## Platform. ##
2837 ## --------- ##
2839 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2840 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2841 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2842 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2843 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2845 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2846 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2848 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2849 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2850 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2851 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2852 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2853 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2854 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2856 _ASUNAME
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH
2861 IFS=$as_save_IFS
2862 test -z "$as_dir" && as_dir=.
2863 $as_echo "PATH: $as_dir"
2864 done
2865 IFS=$as_save_IFS
2867 } >&5
2869 cat >&5 <<_ACEOF
2872 ## ----------- ##
2873 ## Core tests. ##
2874 ## ----------- ##
2876 _ACEOF
2879 # Keep a trace of the command line.
2880 # Strip out --no-create and --no-recursion so they do not pile up.
2881 # Strip out --silent because we don't want to record it for future runs.
2882 # Also quote any args containing shell meta-characters.
2883 # Make two passes to allow for proper duplicate-argument suppression.
2884 ac_configure_args=
2885 ac_configure_args0=
2886 ac_configure_args1=
2887 ac_must_keep_next=false
2888 for ac_pass in 1 2
2890 for ac_arg
2892 case $ac_arg in
2893 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2894 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2895 | -silent | --silent | --silen | --sile | --sil)
2896 continue ;;
2897 *\'*)
2898 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2899 esac
2900 case $ac_pass in
2901 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2903 as_fn_append ac_configure_args1 " '$ac_arg'"
2904 if test $ac_must_keep_next = true; then
2905 ac_must_keep_next=false # Got value, back to normal.
2906 else
2907 case $ac_arg in
2908 *=* | --config-cache | -C | -disable-* | --disable-* \
2909 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2910 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2911 | -with-* | --with-* | -without-* | --without-* | --x)
2912 case "$ac_configure_args0 " in
2913 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2914 esac
2916 -* ) ac_must_keep_next=true ;;
2917 esac
2919 as_fn_append ac_configure_args " '$ac_arg'"
2921 esac
2922 done
2923 done
2924 { ac_configure_args0=; unset ac_configure_args0;}
2925 { ac_configure_args1=; unset ac_configure_args1;}
2927 # When interrupted or exit'd, cleanup temporary files, and complete
2928 # config.log. We remove comments because anyway the quotes in there
2929 # would cause problems or look ugly.
2930 # WARNING: Use '\'' to represent an apostrophe within the trap.
2931 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2932 trap 'exit_status=$?
2933 # Save into config.log some information that might help in debugging.
2935 echo
2937 cat <<\_ASBOX
2938 ## ---------------- ##
2939 ## Cache variables. ##
2940 ## ---------------- ##
2941 _ASBOX
2942 echo
2943 # The following way of writing the cache mishandles newlines in values,
2945 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2946 eval ac_val=\$$ac_var
2947 case $ac_val in #(
2948 *${as_nl}*)
2949 case $ac_var in #(
2950 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2951 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2952 esac
2953 case $ac_var in #(
2954 _ | IFS | as_nl) ;; #(
2955 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2956 *) { eval $ac_var=; unset $ac_var;} ;;
2957 esac ;;
2958 esac
2959 done
2960 (set) 2>&1 |
2961 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2962 *${as_nl}ac_space=\ *)
2963 sed -n \
2964 "s/'\''/'\''\\\\'\'''\''/g;
2965 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2966 ;; #(
2968 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2970 esac |
2971 sort
2973 echo
2975 cat <<\_ASBOX
2976 ## ----------------- ##
2977 ## Output variables. ##
2978 ## ----------------- ##
2979 _ASBOX
2980 echo
2981 for ac_var in $ac_subst_vars
2983 eval ac_val=\$$ac_var
2984 case $ac_val in
2985 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2986 esac
2987 $as_echo "$ac_var='\''$ac_val'\''"
2988 done | sort
2989 echo
2991 if test -n "$ac_subst_files"; then
2992 cat <<\_ASBOX
2993 ## ------------------- ##
2994 ## File substitutions. ##
2995 ## ------------------- ##
2996 _ASBOX
2997 echo
2998 for ac_var in $ac_subst_files
3000 eval ac_val=\$$ac_var
3001 case $ac_val in
3002 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3003 esac
3004 $as_echo "$ac_var='\''$ac_val'\''"
3005 done | sort
3006 echo
3009 if test -s confdefs.h; then
3010 cat <<\_ASBOX
3011 ## ----------- ##
3012 ## confdefs.h. ##
3013 ## ----------- ##
3014 _ASBOX
3015 echo
3016 cat confdefs.h
3017 echo
3019 test "$ac_signal" != 0 &&
3020 $as_echo "$as_me: caught signal $ac_signal"
3021 $as_echo "$as_me: exit $exit_status"
3022 } >&5
3023 rm -f core *.core core.conftest.* &&
3024 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3025 exit $exit_status
3027 for ac_signal in 1 2 13 15; do
3028 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3029 done
3030 ac_signal=0
3032 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3033 rm -f -r conftest* confdefs.h
3035 $as_echo "/* confdefs.h */" > confdefs.h
3037 # Predefined preprocessor variables.
3039 cat >>confdefs.h <<_ACEOF
3040 #define PACKAGE_NAME "$PACKAGE_NAME"
3041 _ACEOF
3043 cat >>confdefs.h <<_ACEOF
3044 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3045 _ACEOF
3047 cat >>confdefs.h <<_ACEOF
3048 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3049 _ACEOF
3051 cat >>confdefs.h <<_ACEOF
3052 #define PACKAGE_STRING "$PACKAGE_STRING"
3053 _ACEOF
3055 cat >>confdefs.h <<_ACEOF
3056 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3057 _ACEOF
3059 cat >>confdefs.h <<_ACEOF
3060 #define PACKAGE_URL "$PACKAGE_URL"
3061 _ACEOF
3064 # Let the site file select an alternate cache file if it wants to.
3065 # Prefer an explicitly selected file to automatically selected ones.
3066 ac_site_file1=NONE
3067 ac_site_file2=NONE
3068 if test -n "$CONFIG_SITE"; then
3069 ac_site_file1=$CONFIG_SITE
3070 elif test "x$prefix" != xNONE; then
3071 ac_site_file1=$prefix/share/config.site
3072 ac_site_file2=$prefix/etc/config.site
3073 else
3074 ac_site_file1=$ac_default_prefix/share/config.site
3075 ac_site_file2=$ac_default_prefix/etc/config.site
3077 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3079 test "x$ac_site_file" = xNONE && continue
3080 if test -r "$ac_site_file"; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3082 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3083 sed 's/^/| /' "$ac_site_file" >&5
3084 . "$ac_site_file"
3086 done
3088 if test -r "$cache_file"; then
3089 # Some versions of bash will fail to source /dev/null (special
3090 # files actually), so we avoid doing that.
3091 if test -f "$cache_file"; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3093 $as_echo "$as_me: loading cache $cache_file" >&6;}
3094 case $cache_file in
3095 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3096 *) . "./$cache_file";;
3097 esac
3099 else
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3101 $as_echo "$as_me: creating cache $cache_file" >&6;}
3102 >$cache_file
3105 # Check that the precious variables saved in the cache have kept the same
3106 # value.
3107 ac_cache_corrupted=false
3108 for ac_var in $ac_precious_vars; do
3109 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3110 eval ac_new_set=\$ac_env_${ac_var}_set
3111 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3112 eval ac_new_val=\$ac_env_${ac_var}_value
3113 case $ac_old_set,$ac_new_set in
3114 set,)
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3116 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3117 ac_cache_corrupted=: ;;
3118 ,set)
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3120 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3121 ac_cache_corrupted=: ;;
3122 ,);;
3124 if test "x$ac_old_val" != "x$ac_new_val"; then
3125 # differences in whitespace do not lead to failure.
3126 ac_old_val_w=`echo x $ac_old_val`
3127 ac_new_val_w=`echo x $ac_new_val`
3128 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3130 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3131 ac_cache_corrupted=:
3132 else
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3134 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3135 eval $ac_var=\$ac_old_val
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3138 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3140 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3141 fi;;
3142 esac
3143 # Pass precious variables to config.status.
3144 if test "$ac_new_set" = set; then
3145 case $ac_new_val in
3146 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3147 *) ac_arg=$ac_var=$ac_new_val ;;
3148 esac
3149 case " $ac_configure_args " in
3150 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3151 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3152 esac
3154 done
3155 if $ac_cache_corrupted; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3159 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3160 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3162 ## -------------------- ##
3163 ## Main body of script. ##
3164 ## -------------------- ##
3166 ac_ext=c
3167 ac_cpp='$CPP $CPPFLAGS'
3168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3177 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3180 gcc_version=`cat $srcdir/BASE-VER`
3182 # Determine the host, build, and target systems
3183 ac_aux_dir=
3184 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3185 for ac_t in install-sh install.sh shtool; do
3186 if test -f "$ac_dir/$ac_t"; then
3187 ac_aux_dir=$ac_dir
3188 ac_install_sh="$ac_aux_dir/$ac_t -c"
3189 break 2
3191 done
3192 done
3193 if test -z "$ac_aux_dir"; then
3194 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3197 # These three variables are undocumented and unsupported,
3198 # and are intended to be withdrawn in a future Autoconf release.
3199 # They can cause serious problems if a builder's source tree is in a directory
3200 # whose full name contains unusual characters.
3201 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3202 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3203 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3206 # Make sure we can run config.sub.
3207 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3208 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3211 $as_echo_n "checking build system type... " >&6; }
3212 if test "${ac_cv_build+set}" = set; then :
3213 $as_echo_n "(cached) " >&6
3214 else
3215 ac_build_alias=$build_alias
3216 test "x$ac_build_alias" = x &&
3217 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3218 test "x$ac_build_alias" = x &&
3219 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3220 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3221 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3225 $as_echo "$ac_cv_build" >&6; }
3226 case $ac_cv_build in
3227 *-*-*) ;;
3228 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3229 esac
3230 build=$ac_cv_build
3231 ac_save_IFS=$IFS; IFS='-'
3232 set x $ac_cv_build
3233 shift
3234 build_cpu=$1
3235 build_vendor=$2
3236 shift; shift
3237 # Remember, the first character of IFS is used to create $*,
3238 # except with old shells:
3239 build_os=$*
3240 IFS=$ac_save_IFS
3241 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3245 $as_echo_n "checking host system type... " >&6; }
3246 if test "${ac_cv_host+set}" = set; then :
3247 $as_echo_n "(cached) " >&6
3248 else
3249 if test "x$host_alias" = x; then
3250 ac_cv_host=$ac_cv_build
3251 else
3252 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3253 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3258 $as_echo "$ac_cv_host" >&6; }
3259 case $ac_cv_host in
3260 *-*-*) ;;
3261 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3262 esac
3263 host=$ac_cv_host
3264 ac_save_IFS=$IFS; IFS='-'
3265 set x $ac_cv_host
3266 shift
3267 host_cpu=$1
3268 host_vendor=$2
3269 shift; shift
3270 # Remember, the first character of IFS is used to create $*,
3271 # except with old shells:
3272 host_os=$*
3273 IFS=$ac_save_IFS
3274 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3278 $as_echo_n "checking target system type... " >&6; }
3279 if test "${ac_cv_target+set}" = set; then :
3280 $as_echo_n "(cached) " >&6
3281 else
3282 if test "x$target_alias" = x; then
3283 ac_cv_target=$ac_cv_host
3284 else
3285 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3286 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3291 $as_echo "$ac_cv_target" >&6; }
3292 case $ac_cv_target in
3293 *-*-*) ;;
3294 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3295 esac
3296 target=$ac_cv_target
3297 ac_save_IFS=$IFS; IFS='-'
3298 set x $ac_cv_target
3299 shift
3300 target_cpu=$1
3301 target_vendor=$2
3302 shift; shift
3303 # Remember, the first character of IFS is used to create $*,
3304 # except with old shells:
3305 target_os=$*
3306 IFS=$ac_save_IFS
3307 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3310 # The aliases save the names the user supplied, while $host etc.
3311 # will get canonicalized.
3312 test -n "$target_alias" &&
3313 test "$program_prefix$program_suffix$program_transform_name" = \
3314 NONENONEs,x,x, &&
3315 program_prefix=${target_alias}-
3317 # Determine the noncanonical target name, for directory use.
3318 case ${build_alias} in
3319 "") build_noncanonical=${build} ;;
3320 *) build_noncanonical=${build_alias} ;;
3321 esac
3323 case ${host_alias} in
3324 "") host_noncanonical=${build_noncanonical} ;;
3325 *) host_noncanonical=${host_alias} ;;
3326 esac
3328 case ${target_alias} in
3329 "") target_noncanonical=${host_noncanonical} ;;
3330 *) target_noncanonical=${target_alias} ;;
3331 esac
3336 # Used for constructing correct paths for offload compilers.
3337 real_target_noncanonical=${target_noncanonical}
3338 accel_dir_suffix=
3340 # Determine the target- and build-specific subdirectories
3342 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3343 # have matching libraries, they should use host libraries: Makefile.tpl
3344 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3345 # However, they still use the build modules, because the corresponding
3346 # host modules (e.g. bison) are only built for the host when bootstrap
3347 # finishes. So:
3348 # - build_subdir is where we find build modules, and never changes.
3349 # - build_libsubdir is where we find build libraries, and can be overridden.
3351 # Prefix 'build-' so this never conflicts with target_subdir.
3352 build_subdir="build-${build_noncanonical}"
3354 # Check whether --with-build-libsubdir was given.
3355 if test "${with_build_libsubdir+set}" = set; then :
3356 withval=$with_build_libsubdir; build_libsubdir="$withval"
3357 else
3358 build_libsubdir="$build_subdir"
3361 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3362 if ( test $srcdir = . && test -d gcc ) \
3363 || test -d $srcdir/../host-${host_noncanonical}; then
3364 host_subdir="host-${host_noncanonical}"
3365 else
3366 host_subdir=.
3368 # No prefix.
3369 target_subdir=${target_noncanonical}
3372 # Set program_transform_name
3373 test "$program_prefix" != NONE &&
3374 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3375 # Use a double $ so make ignores it.
3376 test "$program_suffix" != NONE &&
3377 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3378 # Double any \ or $.
3379 # By default was `s,x,x', remove it if useless.
3380 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3381 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3384 # Check for bogus environment variables.
3385 # Test if LIBRARY_PATH contains the notation for the current directory
3386 # since this would lead to problems installing/building glibc.
3387 # LIBRARY_PATH contains the current directory if one of the following
3388 # is true:
3389 # - one of the terminals (":" and ";") is the first or last sign
3390 # - two terminals occur directly after each other
3391 # - the path contains an element with a dot in it
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3393 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3394 case ${LIBRARY_PATH} in
3395 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3396 library_path_setting="contains current directory"
3399 library_path_setting="ok"
3401 esac
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3403 $as_echo "$library_path_setting" >&6; }
3404 if test "$library_path_setting" != "ok"; then
3405 as_fn_error "
3406 *** LIBRARY_PATH shouldn't contain the current directory when
3407 *** building gcc. Please change the environment variable
3408 *** and run configure again." "$LINENO" 5
3411 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3412 # since this would lead to problems installing/building glibc.
3413 # GCC_EXEC_PREFIX contains the current directory if one of the following
3414 # is true:
3415 # - one of the terminals (":" and ";") is the first or last sign
3416 # - two terminals occur directly after each other
3417 # - the path contains an element with a dot in it
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3419 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3420 case ${GCC_EXEC_PREFIX} in
3421 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3422 gcc_exec_prefix_setting="contains current directory"
3425 gcc_exec_prefix_setting="ok"
3427 esac
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3429 $as_echo "$gcc_exec_prefix_setting" >&6; }
3430 if test "$gcc_exec_prefix_setting" != "ok"; then
3431 as_fn_error "
3432 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3433 *** building gcc. Please change the environment variable
3434 *** and run configure again." "$LINENO" 5
3437 # -----------
3438 # Directories
3439 # -----------
3441 # Specify the local prefix
3442 local_prefix=
3444 # Check whether --with-local-prefix was given.
3445 if test "${with_local_prefix+set}" = set; then :
3446 withval=$with_local_prefix; case "${withval}" in
3447 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3448 no) ;;
3449 *) local_prefix=$with_local_prefix ;;
3450 esac
3454 # Default local prefix if it is empty
3455 if test x$local_prefix = x; then
3456 local_prefix=/usr/local
3460 # Check whether --with-native-system-header-dir was given.
3461 if test "${with_native_system_header_dir+set}" = set; then :
3462 withval=$with_native_system_header_dir;
3463 case ${with_native_system_header_dir} in
3464 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3465 /* | [A-Za-z]:[\\/]*) ;;
3466 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3467 esac
3468 configured_native_system_header_dir="${withval}"
3470 else
3471 configured_native_system_header_dir=
3476 # Check whether --with-build-sysroot was given.
3477 if test "${with_build_sysroot+set}" = set; then :
3478 withval=$with_build_sysroot; if test x"$withval" != x ; then
3479 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3481 else
3482 SYSROOT_CFLAGS_FOR_TARGET=
3487 if test "x$prefix" = xNONE; then
3488 test_prefix=/usr/local
3489 else
3490 test_prefix=$prefix
3492 if test "x$exec_prefix" = xNONE; then
3493 test_exec_prefix=$test_prefix
3494 else
3495 test_exec_prefix=$exec_prefix
3499 # Check whether --with-sysroot was given.
3500 if test "${with_sysroot+set}" = set; then :
3501 withval=$with_sysroot;
3502 case ${with_sysroot} in
3503 /) ;;
3504 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3505 esac
3506 case ${with_sysroot} in
3507 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3508 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3509 esac
3511 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3512 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3514 case ${TARGET_SYSTEM_ROOT} in
3515 "${test_prefix}"|"${test_prefix}/"*|\
3516 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3517 '${prefix}'|'${prefix}/'*|\
3518 '${exec_prefix}'|'${exec_prefix}/'*)
3519 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3520 TARGET_SYSTEM_ROOT_DEFINE="$t"
3522 esac
3524 else
3526 TARGET_SYSTEM_ROOT=
3527 TARGET_SYSTEM_ROOT_DEFINE=
3528 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3536 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3537 # passed in by the toplevel make and thus we'd get different behavior
3538 # depending on where we built the sources.
3539 gcc_gxx_include_dir=
3540 # Specify the g++ header file directory
3542 # Check whether --with-gxx-include-dir was given.
3543 if test "${with_gxx_include_dir+set}" = set; then :
3544 withval=$with_gxx_include_dir; case "${withval}" in
3545 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3546 no) ;;
3547 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3548 esac
3552 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3553 if test x${gcc_gxx_include_dir} = x; then
3554 if test x${enable_version_specific_runtime_libs} = xyes; then
3555 gcc_gxx_include_dir='${libsubdir}/include/c++'
3556 else
3557 libstdcxx_incdir='include/c++/$(version)'
3558 if test x$host != x$target; then
3559 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3561 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3565 gcc_gxx_include_dir_add_sysroot=0
3566 if test "${with_sysroot+set}" = set; then
3567 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3568 if test "${gcc_gxx_without_sysroot}"; then
3569 if test x${with_sysroot} != x/; then
3570 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3572 gcc_gxx_include_dir_add_sysroot=1
3577 # Check whether --with-cpp_install_dir was given.
3578 if test "${with_cpp_install_dir+set}" = set; then :
3579 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3580 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3581 elif test x$withval != xno; then
3582 cpp_install_dir=$withval
3587 # We would like to our source tree to be readonly. However when releases or
3588 # pre-releases are generated, the flex/bison generated files as well as the
3589 # various formats of manuals need to be included along with the rest of the
3590 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3591 # just that.
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3594 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3595 # Check whether --enable-generated-files-in-srcdir was given.
3596 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3597 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3598 else
3599 generated_files_in_srcdir=no
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3604 $as_echo "$generated_files_in_srcdir" >&6; }
3606 if test "$generated_files_in_srcdir" = "yes"; then
3607 GENINSRC=''
3608 else
3609 GENINSRC='#'
3613 # -------------------
3614 # Find default linker
3615 # -------------------
3617 # With GNU ld
3619 # Check whether --with-gnu-ld was given.
3620 if test "${with_gnu_ld+set}" = set; then :
3621 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3622 else
3623 gnu_ld_flag=no
3627 # With pre-defined ld
3629 # Check whether --with-ld was given.
3630 if test "${with_ld+set}" = set; then :
3631 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3634 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3635 if test ! -x "$DEFAULT_LINKER"; then
3636 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3637 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3638 gnu_ld_flag=yes
3641 cat >>confdefs.h <<_ACEOF
3642 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3643 _ACEOF
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3648 $as_echo_n "checking whether a default linker was specified... " >&6; }
3649 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3650 if test x"$gnu_ld_flag" = x"no"; then
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3652 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3653 else
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3655 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3657 else
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3662 # With demangler in GNU ld
3664 # Check whether --with-demangler-in-ld was given.
3665 if test "${with_demangler_in_ld+set}" = set; then :
3666 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3667 else
3668 demangler_in_ld=yes
3672 # ----------------------
3673 # Find default assembler
3674 # ----------------------
3676 # With GNU as
3678 # Check whether --with-gnu-as was given.
3679 if test "${with_gnu_as+set}" = set; then :
3680 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3681 else
3682 gas_flag=no
3687 # Check whether --with-as was given.
3688 if test "${with_as+set}" = set; then :
3689 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3692 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3693 if test ! -x "$DEFAULT_ASSEMBLER"; then
3694 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3695 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3696 gas_flag=yes
3699 cat >>confdefs.h <<_ACEOF
3700 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3701 _ACEOF
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3706 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3707 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3708 if test x"$gas_flag" = x"no"; then
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3710 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3711 else
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3713 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3715 else
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717 $as_echo "no" >&6; }
3720 # ---------------
3721 # Find C compiler
3722 # ---------------
3724 # If a non-executable a.out is present (e.g. created by GNU as above even if
3725 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3726 # file, even when creating an executable, so an execution test fails.
3727 # Remove possible default executable files to avoid this.
3729 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3730 # Autoconf includes it.
3731 rm -f a.out a.exe b.out
3733 # Find the native compiler
3734 ac_ext=c
3735 ac_cpp='$CPP $CPPFLAGS'
3736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3739 if test -n "$ac_tool_prefix"; then
3740 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3741 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743 $as_echo_n "checking for $ac_word... " >&6; }
3744 if test "${ac_cv_prog_CC+set}" = set; then :
3745 $as_echo_n "(cached) " >&6
3746 else
3747 if test -n "$CC"; then
3748 ac_cv_prog_CC="$CC" # Let the user override the test.
3749 else
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3753 IFS=$as_save_IFS
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3757 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3759 break 2
3761 done
3762 done
3763 IFS=$as_save_IFS
3767 CC=$ac_cv_prog_CC
3768 if test -n "$CC"; then
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3770 $as_echo "$CC" >&6; }
3771 else
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 $as_echo "no" >&6; }
3778 if test -z "$ac_cv_prog_CC"; then
3779 ac_ct_CC=$CC
3780 # Extract the first word of "gcc", so it can be a program name with args.
3781 set dummy gcc; ac_word=$2
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3783 $as_echo_n "checking for $ac_word... " >&6; }
3784 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3785 $as_echo_n "(cached) " >&6
3786 else
3787 if test -n "$ac_ct_CC"; then
3788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3789 else
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 for as_dir in $PATH
3793 IFS=$as_save_IFS
3794 test -z "$as_dir" && as_dir=.
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3797 ac_cv_prog_ac_ct_CC="gcc"
3798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3799 break 2
3801 done
3802 done
3803 IFS=$as_save_IFS
3807 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3808 if test -n "$ac_ct_CC"; then
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3810 $as_echo "$ac_ct_CC" >&6; }
3811 else
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3813 $as_echo "no" >&6; }
3816 if test "x$ac_ct_CC" = x; then
3817 CC=""
3818 else
3819 case $cross_compiling:$ac_tool_warned in
3820 yes:)
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3823 ac_tool_warned=yes ;;
3824 esac
3825 CC=$ac_ct_CC
3827 else
3828 CC="$ac_cv_prog_CC"
3831 if test -z "$CC"; then
3832 if test -n "$ac_tool_prefix"; then
3833 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3834 set dummy ${ac_tool_prefix}cc; ac_word=$2
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836 $as_echo_n "checking for $ac_word... " >&6; }
3837 if test "${ac_cv_prog_CC+set}" = set; then :
3838 $as_echo_n "(cached) " >&6
3839 else
3840 if test -n "$CC"; then
3841 ac_cv_prog_CC="$CC" # Let the user override the test.
3842 else
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH
3846 IFS=$as_save_IFS
3847 test -z "$as_dir" && as_dir=.
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3850 ac_cv_prog_CC="${ac_tool_prefix}cc"
3851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3852 break 2
3854 done
3855 done
3856 IFS=$as_save_IFS
3860 CC=$ac_cv_prog_CC
3861 if test -n "$CC"; then
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3863 $as_echo "$CC" >&6; }
3864 else
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866 $as_echo "no" >&6; }
3872 if test -z "$CC"; then
3873 # Extract the first word of "cc", so it can be a program name with args.
3874 set dummy cc; ac_word=$2
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3876 $as_echo_n "checking for $ac_word... " >&6; }
3877 if test "${ac_cv_prog_CC+set}" = set; then :
3878 $as_echo_n "(cached) " >&6
3879 else
3880 if test -n "$CC"; then
3881 ac_cv_prog_CC="$CC" # Let the user override the test.
3882 else
3883 ac_prog_rejected=no
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 for as_dir in $PATH
3887 IFS=$as_save_IFS
3888 test -z "$as_dir" && as_dir=.
3889 for ac_exec_ext in '' $ac_executable_extensions; do
3890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3891 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3892 ac_prog_rejected=yes
3893 continue
3895 ac_cv_prog_CC="cc"
3896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3897 break 2
3899 done
3900 done
3901 IFS=$as_save_IFS
3903 if test $ac_prog_rejected = yes; then
3904 # We found a bogon in the path, so make sure we never use it.
3905 set dummy $ac_cv_prog_CC
3906 shift
3907 if test $# != 0; then
3908 # We chose a different compiler from the bogus one.
3909 # However, it has the same basename, so the bogon will be chosen
3910 # first if we set CC to just the basename; use the full file name.
3911 shift
3912 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3917 CC=$ac_cv_prog_CC
3918 if test -n "$CC"; then
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3920 $as_echo "$CC" >&6; }
3921 else
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923 $as_echo "no" >&6; }
3928 if test -z "$CC"; then
3929 if test -n "$ac_tool_prefix"; then
3930 for ac_prog in cl.exe
3932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3933 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935 $as_echo_n "checking for $ac_word... " >&6; }
3936 if test "${ac_cv_prog_CC+set}" = set; then :
3937 $as_echo_n "(cached) " >&6
3938 else
3939 if test -n "$CC"; then
3940 ac_cv_prog_CC="$CC" # Let the user override the test.
3941 else
3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943 for as_dir in $PATH
3945 IFS=$as_save_IFS
3946 test -z "$as_dir" && as_dir=.
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3949 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3951 break 2
3953 done
3954 done
3955 IFS=$as_save_IFS
3959 CC=$ac_cv_prog_CC
3960 if test -n "$CC"; then
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3962 $as_echo "$CC" >&6; }
3963 else
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965 $as_echo "no" >&6; }
3969 test -n "$CC" && break
3970 done
3972 if test -z "$CC"; then
3973 ac_ct_CC=$CC
3974 for ac_prog in cl.exe
3976 # Extract the first word of "$ac_prog", so it can be a program name with args.
3977 set dummy $ac_prog; ac_word=$2
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979 $as_echo_n "checking for $ac_word... " >&6; }
3980 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3981 $as_echo_n "(cached) " >&6
3982 else
3983 if test -n "$ac_ct_CC"; then
3984 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3985 else
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3993 ac_cv_prog_ac_ct_CC="$ac_prog"
3994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 break 2
3997 done
3998 done
3999 IFS=$as_save_IFS
4003 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4004 if test -n "$ac_ct_CC"; then
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4006 $as_echo "$ac_ct_CC" >&6; }
4007 else
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009 $as_echo "no" >&6; }
4013 test -n "$ac_ct_CC" && break
4014 done
4016 if test "x$ac_ct_CC" = x; then
4017 CC=""
4018 else
4019 case $cross_compiling:$ac_tool_warned in
4020 yes:)
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4023 ac_tool_warned=yes ;;
4024 esac
4025 CC=$ac_ct_CC
4032 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4034 as_fn_error "no acceptable C compiler found in \$PATH
4035 See \`config.log' for more details." "$LINENO" 5; }
4037 # Provide some information about the compiler.
4038 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4039 set X $ac_compile
4040 ac_compiler=$2
4041 for ac_option in --version -v -V -qversion; do
4042 { { ac_try="$ac_compiler $ac_option >&5"
4043 case "(($ac_try" in
4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045 *) ac_try_echo=$ac_try;;
4046 esac
4047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4048 $as_echo "$ac_try_echo"; } >&5
4049 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4050 ac_status=$?
4051 if test -s conftest.err; then
4052 sed '10a\
4053 ... rest of stderr output deleted ...
4054 10q' conftest.err >conftest.er1
4055 cat conftest.er1 >&5
4056 rm -f conftest.er1 conftest.err
4058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4059 test $ac_status = 0; }
4060 done
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4066 main ()
4070 return 0;
4072 _ACEOF
4073 ac_clean_files_save=$ac_clean_files
4074 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4075 # Try to create an executable without -o first, disregard a.out.
4076 # It will help us diagnose broken compilers, and finding out an intuition
4077 # of exeext.
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4079 $as_echo_n "checking for C compiler default output file name... " >&6; }
4080 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4082 # The possible output files:
4083 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4085 ac_rmfiles=
4086 for ac_file in $ac_files
4088 case $ac_file in
4089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4090 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4091 esac
4092 done
4093 rm -f $ac_rmfiles
4095 if { { ac_try="$ac_link_default"
4096 case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4099 esac
4100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4101 $as_echo "$ac_try_echo"; } >&5
4102 (eval "$ac_link_default") 2>&5
4103 ac_status=$?
4104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4105 test $ac_status = 0; }; then :
4106 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4107 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4108 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4109 # so that the user can short-circuit this test for compilers unknown to
4110 # Autoconf.
4111 for ac_file in $ac_files ''
4113 test -f "$ac_file" || continue
4114 case $ac_file in
4115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4117 [ab].out )
4118 # We found the default executable, but exeext='' is most
4119 # certainly right.
4120 break;;
4121 *.* )
4122 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4123 then :; else
4124 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4126 # We set ac_cv_exeext here because the later test for it is not
4127 # safe: cross compilers may not add the suffix if given an `-o'
4128 # argument, so we may need to know it at that point already.
4129 # Even if this section looks crufty: it has the advantage of
4130 # actually working.
4131 break;;
4133 break;;
4134 esac
4135 done
4136 test "$ac_cv_exeext" = no && ac_cv_exeext=
4138 else
4139 ac_file=''
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4142 $as_echo "$ac_file" >&6; }
4143 if test -z "$ac_file"; then :
4144 $as_echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4149 { as_fn_set_status 77
4150 as_fn_error "C compiler cannot create executables
4151 See \`config.log' for more details." "$LINENO" 5; }; }
4153 ac_exeext=$ac_cv_exeext
4155 # Check that the compiler produces executables we can run. If not, either
4156 # the compiler is broken, or we cross compile.
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4158 $as_echo_n "checking whether the C compiler works... " >&6; }
4159 # If not cross compiling, check that we can run a simple program.
4160 if test "$cross_compiling" != yes; then
4161 if { ac_try='./$ac_file'
4162 { { case "(($ac_try" in
4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164 *) ac_try_echo=$ac_try;;
4165 esac
4166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4167 $as_echo "$ac_try_echo"; } >&5
4168 (eval "$ac_try") 2>&5
4169 ac_status=$?
4170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4171 test $ac_status = 0; }; }; then
4172 cross_compiling=no
4173 else
4174 if test "$cross_compiling" = maybe; then
4175 cross_compiling=yes
4176 else
4177 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4179 as_fn_error "cannot run C compiled programs.
4180 If you meant to cross compile, use \`--host'.
4181 See \`config.log' for more details." "$LINENO" 5; }
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4186 $as_echo "yes" >&6; }
4188 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4189 ac_clean_files=$ac_clean_files_save
4190 # Check that the compiler produces executables we can run. If not, either
4191 # the compiler is broken, or we cross compile.
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4193 $as_echo_n "checking whether we are cross compiling... " >&6; }
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4195 $as_echo "$cross_compiling" >&6; }
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4198 $as_echo_n "checking for suffix of executables... " >&6; }
4199 if { { ac_try="$ac_link"
4200 case "(($ac_try" in
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4203 esac
4204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4205 $as_echo "$ac_try_echo"; } >&5
4206 (eval "$ac_link") 2>&5
4207 ac_status=$?
4208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4209 test $ac_status = 0; }; then :
4210 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4211 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4212 # work properly (i.e., refer to `conftest.exe'), while it won't with
4213 # `rm'.
4214 for ac_file in conftest.exe conftest conftest.*; do
4215 test -f "$ac_file" || continue
4216 case $ac_file in
4217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4218 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4219 break;;
4220 * ) break;;
4221 esac
4222 done
4223 else
4224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4226 as_fn_error "cannot compute suffix of executables: cannot compile and link
4227 See \`config.log' for more details." "$LINENO" 5; }
4229 rm -f conftest$ac_cv_exeext
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4231 $as_echo "$ac_cv_exeext" >&6; }
4233 rm -f conftest.$ac_ext
4234 EXEEXT=$ac_cv_exeext
4235 ac_exeext=$EXEEXT
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4237 $as_echo_n "checking for suffix of object files... " >&6; }
4238 if test "${ac_cv_objext+set}" = set; then :
4239 $as_echo_n "(cached) " >&6
4240 else
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4245 main ()
4249 return 0;
4251 _ACEOF
4252 rm -f conftest.o conftest.obj
4253 if { { ac_try="$ac_compile"
4254 case "(($ac_try" in
4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256 *) ac_try_echo=$ac_try;;
4257 esac
4258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4259 $as_echo "$ac_try_echo"; } >&5
4260 (eval "$ac_compile") 2>&5
4261 ac_status=$?
4262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4263 test $ac_status = 0; }; then :
4264 for ac_file in conftest.o conftest.obj conftest.*; do
4265 test -f "$ac_file" || continue;
4266 case $ac_file in
4267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4268 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4269 break;;
4270 esac
4271 done
4272 else
4273 $as_echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4278 as_fn_error "cannot compute suffix of object files: cannot compile
4279 See \`config.log' for more details." "$LINENO" 5; }
4281 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4284 $as_echo "$ac_cv_objext" >&6; }
4285 OBJEXT=$ac_cv_objext
4286 ac_objext=$OBJEXT
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4288 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4289 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4290 $as_echo_n "(cached) " >&6
4291 else
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4296 main ()
4298 #ifndef __GNUC__
4299 choke me
4300 #endif
4303 return 0;
4305 _ACEOF
4306 if ac_fn_c_try_compile "$LINENO"; then :
4307 ac_compiler_gnu=yes
4308 else
4309 ac_compiler_gnu=no
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4316 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4317 if test $ac_compiler_gnu = yes; then
4318 GCC=yes
4319 else
4320 GCC=
4322 ac_test_CFLAGS=${CFLAGS+set}
4323 ac_save_CFLAGS=$CFLAGS
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4325 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4326 if test "${ac_cv_prog_cc_g+set}" = set; then :
4327 $as_echo_n "(cached) " >&6
4328 else
4329 ac_save_c_werror_flag=$ac_c_werror_flag
4330 ac_c_werror_flag=yes
4331 ac_cv_prog_cc_g=no
4332 CFLAGS="-g"
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h. */
4337 main ()
4341 return 0;
4343 _ACEOF
4344 if ac_fn_c_try_compile "$LINENO"; then :
4345 ac_cv_prog_cc_g=yes
4346 else
4347 CFLAGS=""
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4352 main ()
4356 return 0;
4358 _ACEOF
4359 if ac_fn_c_try_compile "$LINENO"; then :
4361 else
4362 ac_c_werror_flag=$ac_save_c_werror_flag
4363 CFLAGS="-g"
4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4368 main ()
4372 return 0;
4374 _ACEOF
4375 if ac_fn_c_try_compile "$LINENO"; then :
4376 ac_cv_prog_cc_g=yes
4378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383 ac_c_werror_flag=$ac_save_c_werror_flag
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4386 $as_echo "$ac_cv_prog_cc_g" >&6; }
4387 if test "$ac_test_CFLAGS" = set; then
4388 CFLAGS=$ac_save_CFLAGS
4389 elif test $ac_cv_prog_cc_g = yes; then
4390 if test "$GCC" = yes; then
4391 CFLAGS="-g -O2"
4392 else
4393 CFLAGS="-g"
4395 else
4396 if test "$GCC" = yes; then
4397 CFLAGS="-O2"
4398 else
4399 CFLAGS=
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4403 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4404 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4405 $as_echo_n "(cached) " >&6
4406 else
4407 ac_cv_prog_cc_c89=no
4408 ac_save_CC=$CC
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4411 #include <stdarg.h>
4412 #include <stdio.h>
4413 #include <sys/types.h>
4414 #include <sys/stat.h>
4415 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4416 struct buf { int x; };
4417 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4418 static char *e (p, i)
4419 char **p;
4420 int i;
4422 return p[i];
4424 static char *f (char * (*g) (char **, int), char **p, ...)
4426 char *s;
4427 va_list v;
4428 va_start (v,p);
4429 s = g (p, va_arg (v,int));
4430 va_end (v);
4431 return s;
4434 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4435 function prototypes and stuff, but not '\xHH' hex character constants.
4436 These don't provoke an error unfortunately, instead are silently treated
4437 as 'x'. The following induces an error, until -std is added to get
4438 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4439 array size at least. It's necessary to write '\x00'==0 to get something
4440 that's true only with -std. */
4441 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4443 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4444 inside strings and character constants. */
4445 #define FOO(x) 'x'
4446 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4448 int test (int i, double x);
4449 struct s1 {int (*f) (int a);};
4450 struct s2 {int (*f) (double a);};
4451 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4452 int argc;
4453 char **argv;
4455 main ()
4457 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4459 return 0;
4461 _ACEOF
4462 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4463 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4465 CC="$ac_save_CC $ac_arg"
4466 if ac_fn_c_try_compile "$LINENO"; then :
4467 ac_cv_prog_cc_c89=$ac_arg
4469 rm -f core conftest.err conftest.$ac_objext
4470 test "x$ac_cv_prog_cc_c89" != "xno" && break
4471 done
4472 rm -f conftest.$ac_ext
4473 CC=$ac_save_CC
4476 # AC_CACHE_VAL
4477 case "x$ac_cv_prog_cc_c89" in
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4480 $as_echo "none needed" >&6; } ;;
4481 xno)
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4483 $as_echo "unsupported" >&6; } ;;
4485 CC="$CC $ac_cv_prog_cc_c89"
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4487 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4488 esac
4489 if test "x$ac_cv_prog_cc_c89" != xno; then :
4493 ac_ext=c
4494 ac_cpp='$CPP $CPPFLAGS'
4495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4499 ac_ext=cpp
4500 ac_cpp='$CXXCPP $CPPFLAGS'
4501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4504 if test -z "$CXX"; then
4505 if test -n "$CCC"; then
4506 CXX=$CCC
4507 else
4508 if test -n "$ac_tool_prefix"; then
4509 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4511 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4514 $as_echo_n "checking for $ac_word... " >&6; }
4515 if test "${ac_cv_prog_CXX+set}" = set; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 if test -n "$CXX"; then
4519 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4520 else
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4528 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 break 2
4532 done
4533 done
4534 IFS=$as_save_IFS
4538 CXX=$ac_cv_prog_CXX
4539 if test -n "$CXX"; then
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4541 $as_echo "$CXX" >&6; }
4542 else
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 $as_echo "no" >&6; }
4548 test -n "$CXX" && break
4549 done
4551 if test -z "$CXX"; then
4552 ac_ct_CXX=$CXX
4553 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4555 # Extract the first word of "$ac_prog", so it can be a program name with args.
4556 set dummy $ac_prog; ac_word=$2
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 $as_echo_n "checking for $ac_word... " >&6; }
4559 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4560 $as_echo_n "(cached) " >&6
4561 else
4562 if test -n "$ac_ct_CXX"; then
4563 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4564 else
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4572 ac_cv_prog_ac_ct_CXX="$ac_prog"
4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
4576 done
4577 done
4578 IFS=$as_save_IFS
4582 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4583 if test -n "$ac_ct_CXX"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4585 $as_echo "$ac_ct_CXX" >&6; }
4586 else
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4592 test -n "$ac_ct_CXX" && break
4593 done
4595 if test "x$ac_ct_CXX" = x; then
4596 CXX="g++"
4597 else
4598 case $cross_compiling:$ac_tool_warned in
4599 yes:)
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4602 ac_tool_warned=yes ;;
4603 esac
4604 CXX=$ac_ct_CXX
4610 # Provide some information about the compiler.
4611 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4612 set X $ac_compile
4613 ac_compiler=$2
4614 for ac_option in --version -v -V -qversion; do
4615 { { ac_try="$ac_compiler $ac_option >&5"
4616 case "(($ac_try" in
4617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4618 *) ac_try_echo=$ac_try;;
4619 esac
4620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4621 $as_echo "$ac_try_echo"; } >&5
4622 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4623 ac_status=$?
4624 if test -s conftest.err; then
4625 sed '10a\
4626 ... rest of stderr output deleted ...
4627 10q' conftest.err >conftest.er1
4628 cat conftest.er1 >&5
4629 rm -f conftest.er1 conftest.err
4631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4632 test $ac_status = 0; }
4633 done
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4636 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4637 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4638 $as_echo_n "(cached) " >&6
4639 else
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4644 main ()
4646 #ifndef __GNUC__
4647 choke me
4648 #endif
4651 return 0;
4653 _ACEOF
4654 if ac_fn_cxx_try_compile "$LINENO"; then :
4655 ac_compiler_gnu=yes
4656 else
4657 ac_compiler_gnu=no
4659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4664 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4665 if test $ac_compiler_gnu = yes; then
4666 GXX=yes
4667 else
4668 GXX=
4670 ac_test_CXXFLAGS=${CXXFLAGS+set}
4671 ac_save_CXXFLAGS=$CXXFLAGS
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4673 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4674 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4675 $as_echo_n "(cached) " >&6
4676 else
4677 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4678 ac_cxx_werror_flag=yes
4679 ac_cv_prog_cxx_g=no
4680 CXXFLAGS="-g"
4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4685 main ()
4689 return 0;
4691 _ACEOF
4692 if ac_fn_cxx_try_compile "$LINENO"; then :
4693 ac_cv_prog_cxx_g=yes
4694 else
4695 CXXFLAGS=""
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4700 main ()
4704 return 0;
4706 _ACEOF
4707 if ac_fn_cxx_try_compile "$LINENO"; then :
4709 else
4710 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4711 CXXFLAGS="-g"
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4716 main ()
4720 return 0;
4722 _ACEOF
4723 if ac_fn_cxx_try_compile "$LINENO"; then :
4724 ac_cv_prog_cxx_g=yes
4726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4734 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4735 if test "$ac_test_CXXFLAGS" = set; then
4736 CXXFLAGS=$ac_save_CXXFLAGS
4737 elif test $ac_cv_prog_cxx_g = yes; then
4738 if test "$GXX" = yes; then
4739 CXXFLAGS="-g -O2"
4740 else
4741 CXXFLAGS="-g"
4743 else
4744 if test "$GXX" = yes; then
4745 CXXFLAGS="-O2"
4746 else
4747 CXXFLAGS=
4750 ac_ext=c
4751 ac_cpp='$CPP $CPPFLAGS'
4752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4759 if test -n "$ac_tool_prefix"; then
4760 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4761 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4763 $as_echo_n "checking for $ac_word... " >&6; }
4764 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4765 $as_echo_n "(cached) " >&6
4766 else
4767 if test -n "$GNATBIND"; then
4768 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4769 else
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 for as_dir in $PATH
4773 IFS=$as_save_IFS
4774 test -z "$as_dir" && as_dir=.
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4777 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4779 break 2
4781 done
4782 done
4783 IFS=$as_save_IFS
4787 GNATBIND=$ac_cv_prog_GNATBIND
4788 if test -n "$GNATBIND"; then
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4790 $as_echo "$GNATBIND" >&6; }
4791 else
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793 $as_echo "no" >&6; }
4798 if test -z "$ac_cv_prog_GNATBIND"; then
4799 ac_ct_GNATBIND=$GNATBIND
4800 # Extract the first word of "gnatbind", so it can be a program name with args.
4801 set dummy gnatbind; ac_word=$2
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4803 $as_echo_n "checking for $ac_word... " >&6; }
4804 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4805 $as_echo_n "(cached) " >&6
4806 else
4807 if test -n "$ac_ct_GNATBIND"; then
4808 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4809 else
4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 for as_dir in $PATH
4813 IFS=$as_save_IFS
4814 test -z "$as_dir" && as_dir=.
4815 for ac_exec_ext in '' $ac_executable_extensions; do
4816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4817 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4819 break 2
4821 done
4822 done
4823 IFS=$as_save_IFS
4827 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4828 if test -n "$ac_ct_GNATBIND"; then
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4830 $as_echo "$ac_ct_GNATBIND" >&6; }
4831 else
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4833 $as_echo "no" >&6; }
4836 if test "x$ac_ct_GNATBIND" = x; then
4837 GNATBIND="no"
4838 else
4839 case $cross_compiling:$ac_tool_warned in
4840 yes:)
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4843 ac_tool_warned=yes ;;
4844 esac
4845 GNATBIND=$ac_ct_GNATBIND
4847 else
4848 GNATBIND="$ac_cv_prog_GNATBIND"
4851 if test -n "$ac_tool_prefix"; then
4852 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4853 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855 $as_echo_n "checking for $ac_word... " >&6; }
4856 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 if test -n "$GNATMAKE"; then
4860 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4861 else
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 break 2
4873 done
4874 done
4875 IFS=$as_save_IFS
4879 GNATMAKE=$ac_cv_prog_GNATMAKE
4880 if test -n "$GNATMAKE"; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4882 $as_echo "$GNATMAKE" >&6; }
4883 else
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 $as_echo "no" >&6; }
4890 if test -z "$ac_cv_prog_GNATMAKE"; then
4891 ac_ct_GNATMAKE=$GNATMAKE
4892 # Extract the first word of "gnatmake", so it can be a program name with args.
4893 set dummy gnatmake; ac_word=$2
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895 $as_echo_n "checking for $ac_word... " >&6; }
4896 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4897 $as_echo_n "(cached) " >&6
4898 else
4899 if test -n "$ac_ct_GNATMAKE"; then
4900 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4901 else
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4909 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 break 2
4913 done
4914 done
4915 IFS=$as_save_IFS
4919 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4920 if test -n "$ac_ct_GNATMAKE"; then
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4922 $as_echo "$ac_ct_GNATMAKE" >&6; }
4923 else
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925 $as_echo "no" >&6; }
4928 if test "x$ac_ct_GNATMAKE" = x; then
4929 GNATMAKE="no"
4930 else
4931 case $cross_compiling:$ac_tool_warned in
4932 yes:)
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4935 ac_tool_warned=yes ;;
4936 esac
4937 GNATMAKE=$ac_ct_GNATMAKE
4939 else
4940 GNATMAKE="$ac_cv_prog_GNATMAKE"
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4944 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4945 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4946 $as_echo_n "(cached) " >&6
4947 else
4948 cat >conftest.adb <<EOF
4949 procedure conftest is begin null; end conftest;
4951 acx_cv_cc_gcc_supports_ada=no
4952 # There is a bug in old released versions of GCC which causes the
4953 # driver to exit successfully when the appropriate language module
4954 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4955 # Therefore we must check for the error message as well as an
4956 # unsuccessful exit.
4957 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4958 # given a .adb file, but produce no object file. So we must check
4959 # if an object file was really produced to guard against this.
4960 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4961 if test x"$errors" = x && test -f conftest.$ac_objext; then
4962 acx_cv_cc_gcc_supports_ada=yes
4964 rm -f conftest.*
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4967 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4969 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4970 have_gnat=yes
4971 else
4972 have_gnat=no
4976 # Do configure tests with the C++ compiler, since that's what we build with.
4977 ac_ext=cpp
4978 ac_cpp='$CXXCPP $CPPFLAGS'
4979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4984 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4985 # optimizations to be activated explicitly by the toplevel.
4986 case "$CC" in
4987 */prev-gcc/xgcc*) ;;
4988 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4989 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4990 esac
4994 # Determine PICFLAG for target gnatlib.
4999 case "${target}" in
5000 # PIC is the default on some targets or must not be used.
5001 *-*-darwin*)
5002 # For darwin, common symbols are not allowed in MH_DYLIB files
5003 case "${CFLAGS}" in
5004 # If we are using a compiler supporting mdynamic-no-pic
5005 # and the option has been tested as safe to add, then cancel
5006 # it here, since the code generated is incompatible with shared
5007 # libs.
5008 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5009 *) PICFLAG_FOR_TARGET=-fno-common ;;
5010 esac
5012 alpha*-dec-osf5*)
5013 # PIC is the default.
5015 hppa*64*-*-hpux*)
5016 # PIC is the default for 64-bit PA HP-UX.
5018 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5020 i[34567]86-*-mingw* | x86_64-*-mingw*)
5022 i[34567]86-*-interix[3-9]*)
5023 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5024 # Instead, we relocate shared libraries at runtime.
5026 i[34567]86-*-nto-qnx*)
5027 # QNX uses GNU C++, but need to define -shared option too, otherwise
5028 # it will coredump.
5029 PICFLAG_FOR_TARGET='-fPIC -shared'
5031 i[34567]86-pc-msdosdjgpp*)
5032 # DJGPP does not support shared libraries at all.
5034 ia64*-*-hpux*)
5035 # On IA64 HP-UX, PIC is the default but the pic flag
5036 # sets the default TLS model and affects inlining.
5037 PICFLAG_FOR_TARGET=-fPIC
5039 mips-sgi-irix6*)
5040 # PIC is the default.
5042 rs6000-ibm-aix* | powerpc-ibm-aix*)
5043 # All AIX code is PIC.
5046 # Some targets support both -fPIC and -fpic, but prefer the latter.
5047 # FIXME: Why?
5048 i[34567]86-*-* | x86_64-*-*)
5049 PICFLAG_FOR_TARGET=-fpic
5051 # FIXME: Override -fPIC default in libgcc only?
5052 sh-*-linux* | sh[2346lbe]*-*-linux*)
5053 PICFLAG_FOR_TARGET=-fpic
5055 # FIXME: Simplify to sh*-*-netbsd*?
5056 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5057 sh64-*-netbsd* | sh64l*-*-netbsd*)
5058 PICFLAG_FOR_TARGET=-fpic
5060 # Default to -fPIC unless specified otherwise.
5062 PICFLAG_FOR_TARGET=-fPIC
5064 esac
5066 # If the user explicitly uses -fpic/-fPIC, keep that.
5067 case "${CFLAGS_FOR_TARGET}" in
5068 *-fpic*)
5069 PICFLAG_FOR_TARGET=-fpic
5071 *-fPIC*)
5072 PICFLAG_FOR_TARGET=-fPIC
5074 esac
5078 # -------------------------
5079 # Check C compiler features
5080 # -------------------------
5083 ac_ext=cpp
5084 ac_cpp='$CXXCPP $CPPFLAGS'
5085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5089 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5090 if test -z "$CXXCPP"; then
5091 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5092 $as_echo_n "(cached) " >&6
5093 else
5094 # Double quotes because CXXCPP needs to be expanded
5095 for CXXCPP in "$CXX -E" "/lib/cpp"
5097 ac_preproc_ok=false
5098 for ac_cxx_preproc_warn_flag in '' yes
5100 # Use a header file that comes with gcc, so configuring glibc
5101 # with a fresh cross-compiler works.
5102 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5103 # <limits.h> exists even on freestanding compilers.
5104 # On the NeXT, cc -E runs the code through the compiler's parser,
5105 # not just through cpp. "Syntax error" is here to catch this case.
5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107 /* end confdefs.h. */
5108 #ifdef __STDC__
5109 # include <limits.h>
5110 #else
5111 # include <assert.h>
5112 #endif
5113 Syntax error
5114 _ACEOF
5115 if ac_fn_cxx_try_cpp "$LINENO"; then :
5117 else
5118 # Broken: fails on valid input.
5119 continue
5121 rm -f conftest.err conftest.$ac_ext
5123 # OK, works on sane cases. Now check whether nonexistent headers
5124 # can be detected and how.
5125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5126 /* end confdefs.h. */
5127 #include <ac_nonexistent.h>
5128 _ACEOF
5129 if ac_fn_cxx_try_cpp "$LINENO"; then :
5130 # Broken: success on invalid input.
5131 continue
5132 else
5133 # Passes both tests.
5134 ac_preproc_ok=:
5135 break
5137 rm -f conftest.err conftest.$ac_ext
5139 done
5140 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5141 rm -f conftest.err conftest.$ac_ext
5142 if $ac_preproc_ok; then :
5143 break
5146 done
5147 ac_cv_prog_CXXCPP=$CXXCPP
5150 CXXCPP=$ac_cv_prog_CXXCPP
5151 else
5152 ac_cv_prog_CXXCPP=$CXXCPP
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5155 $as_echo "$CXXCPP" >&6; }
5156 ac_preproc_ok=false
5157 for ac_cxx_preproc_warn_flag in '' yes
5159 # Use a header file that comes with gcc, so configuring glibc
5160 # with a fresh cross-compiler works.
5161 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5162 # <limits.h> exists even on freestanding compilers.
5163 # On the NeXT, cc -E runs the code through the compiler's parser,
5164 # not just through cpp. "Syntax error" is here to catch this case.
5165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166 /* end confdefs.h. */
5167 #ifdef __STDC__
5168 # include <limits.h>
5169 #else
5170 # include <assert.h>
5171 #endif
5172 Syntax error
5173 _ACEOF
5174 if ac_fn_cxx_try_cpp "$LINENO"; then :
5176 else
5177 # Broken: fails on valid input.
5178 continue
5180 rm -f conftest.err conftest.$ac_ext
5182 # OK, works on sane cases. Now check whether nonexistent headers
5183 # can be detected and how.
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5186 #include <ac_nonexistent.h>
5187 _ACEOF
5188 if ac_fn_cxx_try_cpp "$LINENO"; then :
5189 # Broken: success on invalid input.
5190 continue
5191 else
5192 # Passes both tests.
5193 ac_preproc_ok=:
5194 break
5196 rm -f conftest.err conftest.$ac_ext
5198 done
5199 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5200 rm -f conftest.err conftest.$ac_ext
5201 if $ac_preproc_ok; then :
5203 else
5204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5206 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5207 See \`config.log' for more details." "$LINENO" 5; }
5210 ac_ext=cpp
5211 ac_cpp='$CXXCPP $CPPFLAGS'
5212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5218 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5219 if test "${ac_cv_path_GREP+set}" = set; then :
5220 $as_echo_n "(cached) " >&6
5221 else
5222 if test -z "$GREP"; then
5223 ac_path_GREP_found=false
5224 # Loop through the user's path and test for each of PROGNAME-LIST
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5228 IFS=$as_save_IFS
5229 test -z "$as_dir" && as_dir=.
5230 for ac_prog in grep ggrep; do
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5233 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5234 # Check for GNU ac_path_GREP and select it if it is found.
5235 # Check for GNU $ac_path_GREP
5236 case `"$ac_path_GREP" --version 2>&1` in
5237 *GNU*)
5238 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5240 ac_count=0
5241 $as_echo_n 0123456789 >"conftest.in"
5242 while :
5244 cat "conftest.in" "conftest.in" >"conftest.tmp"
5245 mv "conftest.tmp" "conftest.in"
5246 cp "conftest.in" "conftest.nl"
5247 $as_echo 'GREP' >> "conftest.nl"
5248 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5249 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5250 as_fn_arith $ac_count + 1 && ac_count=$as_val
5251 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5252 # Best one so far, save it but keep looking for a better one
5253 ac_cv_path_GREP="$ac_path_GREP"
5254 ac_path_GREP_max=$ac_count
5256 # 10*(2^10) chars as input seems more than enough
5257 test $ac_count -gt 10 && break
5258 done
5259 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5260 esac
5262 $ac_path_GREP_found && break 3
5263 done
5264 done
5265 done
5266 IFS=$as_save_IFS
5267 if test -z "$ac_cv_path_GREP"; then
5268 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5270 else
5271 ac_cv_path_GREP=$GREP
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5276 $as_echo "$ac_cv_path_GREP" >&6; }
5277 GREP="$ac_cv_path_GREP"
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5281 $as_echo_n "checking for egrep... " >&6; }
5282 if test "${ac_cv_path_EGREP+set}" = set; then :
5283 $as_echo_n "(cached) " >&6
5284 else
5285 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5286 then ac_cv_path_EGREP="$GREP -E"
5287 else
5288 if test -z "$EGREP"; then
5289 ac_path_EGREP_found=false
5290 # Loop through the user's path and test for each of PROGNAME-LIST
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5294 IFS=$as_save_IFS
5295 test -z "$as_dir" && as_dir=.
5296 for ac_prog in egrep; do
5297 for ac_exec_ext in '' $ac_executable_extensions; do
5298 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5299 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5300 # Check for GNU ac_path_EGREP and select it if it is found.
5301 # Check for GNU $ac_path_EGREP
5302 case `"$ac_path_EGREP" --version 2>&1` in
5303 *GNU*)
5304 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5306 ac_count=0
5307 $as_echo_n 0123456789 >"conftest.in"
5308 while :
5310 cat "conftest.in" "conftest.in" >"conftest.tmp"
5311 mv "conftest.tmp" "conftest.in"
5312 cp "conftest.in" "conftest.nl"
5313 $as_echo 'EGREP' >> "conftest.nl"
5314 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5315 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5316 as_fn_arith $ac_count + 1 && ac_count=$as_val
5317 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5318 # Best one so far, save it but keep looking for a better one
5319 ac_cv_path_EGREP="$ac_path_EGREP"
5320 ac_path_EGREP_max=$ac_count
5322 # 10*(2^10) chars as input seems more than enough
5323 test $ac_count -gt 10 && break
5324 done
5325 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5326 esac
5328 $ac_path_EGREP_found && break 3
5329 done
5330 done
5331 done
5332 IFS=$as_save_IFS
5333 if test -z "$ac_cv_path_EGREP"; then
5334 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5336 else
5337 ac_cv_path_EGREP=$EGREP
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5343 $as_echo "$ac_cv_path_EGREP" >&6; }
5344 EGREP="$ac_cv_path_EGREP"
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5348 $as_echo_n "checking for ANSI C header files... " >&6; }
5349 if test "${ac_cv_header_stdc+set}" = set; then :
5350 $as_echo_n "(cached) " >&6
5351 else
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5354 #include <stdlib.h>
5355 #include <stdarg.h>
5356 #include <string.h>
5357 #include <float.h>
5360 main ()
5364 return 0;
5366 _ACEOF
5367 if ac_fn_cxx_try_compile "$LINENO"; then :
5368 ac_cv_header_stdc=yes
5369 else
5370 ac_cv_header_stdc=no
5372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5374 if test $ac_cv_header_stdc = yes; then
5375 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h. */
5378 #include <string.h>
5380 _ACEOF
5381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5382 $EGREP "memchr" >/dev/null 2>&1; then :
5384 else
5385 ac_cv_header_stdc=no
5387 rm -f conftest*
5391 if test $ac_cv_header_stdc = yes; then
5392 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5395 #include <stdlib.h>
5397 _ACEOF
5398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5399 $EGREP "free" >/dev/null 2>&1; then :
5401 else
5402 ac_cv_header_stdc=no
5404 rm -f conftest*
5408 if test $ac_cv_header_stdc = yes; then
5409 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5410 if test "$cross_compiling" = yes; then :
5412 else
5413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h. */
5415 #include <ctype.h>
5416 #include <stdlib.h>
5417 #if ((' ' & 0x0FF) == 0x020)
5418 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5419 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5420 #else
5421 # define ISLOWER(c) \
5422 (('a' <= (c) && (c) <= 'i') \
5423 || ('j' <= (c) && (c) <= 'r') \
5424 || ('s' <= (c) && (c) <= 'z'))
5425 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5426 #endif
5428 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5430 main ()
5432 int i;
5433 for (i = 0; i < 256; i++)
5434 if (XOR (islower (i), ISLOWER (i))
5435 || toupper (i) != TOUPPER (i))
5436 return 2;
5437 return 0;
5439 _ACEOF
5440 if ac_fn_cxx_try_run "$LINENO"; then :
5442 else
5443 ac_cv_header_stdc=no
5445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5446 conftest.$ac_objext conftest.beam conftest.$ac_ext
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5452 $as_echo "$ac_cv_header_stdc" >&6; }
5453 if test $ac_cv_header_stdc = yes; then
5455 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5459 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5460 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5461 inttypes.h stdint.h unistd.h
5462 do :
5463 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5464 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5466 eval as_val=\$$as_ac_Header
5467 if test "x$as_val" = x""yes; then :
5468 cat >>confdefs.h <<_ACEOF
5469 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5470 _ACEOF
5474 done
5478 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5479 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5480 MINIX=yes
5481 else
5482 MINIX=
5486 if test "$MINIX" = yes; then
5488 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5491 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5494 $as_echo "#define _MINIX 1" >>confdefs.h
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5500 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5501 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5502 $as_echo_n "(cached) " >&6
5503 else
5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h. */
5507 # define __EXTENSIONS__ 1
5508 $ac_includes_default
5510 main ()
5514 return 0;
5516 _ACEOF
5517 if ac_fn_cxx_try_compile "$LINENO"; then :
5518 ac_cv_safe_to_define___extensions__=yes
5519 else
5520 ac_cv_safe_to_define___extensions__=no
5522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5525 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5526 test $ac_cv_safe_to_define___extensions__ = yes &&
5527 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5529 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5531 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5533 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5535 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5538 ac_ext=c
5539 ac_cpp='$CPP $CPPFLAGS'
5540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5544 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5545 # On Suns, sometimes $CPP names a directory.
5546 if test -n "$CPP" && test -d "$CPP"; then
5547 CPP=
5549 if test -z "$CPP"; then
5550 if test "${ac_cv_prog_CPP+set}" = set; then :
5551 $as_echo_n "(cached) " >&6
5552 else
5553 # Double quotes because CPP needs to be expanded
5554 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5556 ac_preproc_ok=false
5557 for ac_c_preproc_warn_flag in '' yes
5559 # Use a header file that comes with gcc, so configuring glibc
5560 # with a fresh cross-compiler works.
5561 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5562 # <limits.h> exists even on freestanding compilers.
5563 # On the NeXT, cc -E runs the code through the compiler's parser,
5564 # not just through cpp. "Syntax error" is here to catch this case.
5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h. */
5567 #ifdef __STDC__
5568 # include <limits.h>
5569 #else
5570 # include <assert.h>
5571 #endif
5572 Syntax error
5573 _ACEOF
5574 if ac_fn_c_try_cpp "$LINENO"; then :
5576 else
5577 # Broken: fails on valid input.
5578 continue
5580 rm -f conftest.err conftest.$ac_ext
5582 # OK, works on sane cases. Now check whether nonexistent headers
5583 # can be detected and how.
5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h. */
5586 #include <ac_nonexistent.h>
5587 _ACEOF
5588 if ac_fn_c_try_cpp "$LINENO"; then :
5589 # Broken: success on invalid input.
5590 continue
5591 else
5592 # Passes both tests.
5593 ac_preproc_ok=:
5594 break
5596 rm -f conftest.err conftest.$ac_ext
5598 done
5599 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5600 rm -f conftest.err conftest.$ac_ext
5601 if $ac_preproc_ok; then :
5602 break
5605 done
5606 ac_cv_prog_CPP=$CPP
5609 CPP=$ac_cv_prog_CPP
5610 else
5611 ac_cv_prog_CPP=$CPP
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5614 $as_echo "$CPP" >&6; }
5615 ac_preproc_ok=false
5616 for ac_c_preproc_warn_flag in '' yes
5618 # Use a header file that comes with gcc, so configuring glibc
5619 # with a fresh cross-compiler works.
5620 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5621 # <limits.h> exists even on freestanding compilers.
5622 # On the NeXT, cc -E runs the code through the compiler's parser,
5623 # not just through cpp. "Syntax error" is here to catch this case.
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h. */
5626 #ifdef __STDC__
5627 # include <limits.h>
5628 #else
5629 # include <assert.h>
5630 #endif
5631 Syntax error
5632 _ACEOF
5633 if ac_fn_c_try_cpp "$LINENO"; then :
5635 else
5636 # Broken: fails on valid input.
5637 continue
5639 rm -f conftest.err conftest.$ac_ext
5641 # OK, works on sane cases. Now check whether nonexistent headers
5642 # can be detected and how.
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h. */
5645 #include <ac_nonexistent.h>
5646 _ACEOF
5647 if ac_fn_c_try_cpp "$LINENO"; then :
5648 # Broken: success on invalid input.
5649 continue
5650 else
5651 # Passes both tests.
5652 ac_preproc_ok=:
5653 break
5655 rm -f conftest.err conftest.$ac_ext
5657 done
5658 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5659 rm -f conftest.err conftest.$ac_ext
5660 if $ac_preproc_ok; then :
5662 else
5663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5665 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5666 See \`config.log' for more details." "$LINENO" 5; }
5669 ac_ext=cpp
5670 ac_cpp='$CXXCPP $CPPFLAGS'
5671 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5672 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5673 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5676 $as_echo_n "checking for inline... " >&6; }
5677 if test "${ac_cv_c_inline+set}" = set; then :
5678 $as_echo_n "(cached) " >&6
5679 else
5680 ac_cv_c_inline=no
5681 for ac_kw in inline __inline__ __inline; do
5682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h. */
5684 #ifndef __cplusplus
5685 typedef int foo_t;
5686 static $ac_kw foo_t static_foo () {return 0; }
5687 $ac_kw foo_t foo () {return 0; }
5688 #endif
5690 _ACEOF
5691 if ac_fn_cxx_try_compile "$LINENO"; then :
5692 ac_cv_c_inline=$ac_kw
5694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5695 test "$ac_cv_c_inline" != no && break
5696 done
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5700 $as_echo "$ac_cv_c_inline" >&6; }
5702 case $ac_cv_c_inline in
5703 inline | yes) ;;
5705 case $ac_cv_c_inline in
5706 no) ac_val=;;
5707 *) ac_val=$ac_cv_c_inline;;
5708 esac
5709 cat >>confdefs.h <<_ACEOF
5710 #ifndef __cplusplus
5711 #define inline $ac_val
5712 #endif
5713 _ACEOF
5715 esac
5718 # Check whether --enable-largefile was given.
5719 if test "${enable_largefile+set}" = set; then :
5720 enableval=$enable_largefile;
5723 if test "$enable_largefile" != no; then
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5726 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5727 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5728 $as_echo_n "(cached) " >&6
5729 else
5730 ac_cv_sys_largefile_CC=no
5731 if test "$GCC" != yes; then
5732 ac_save_CC=$CC
5733 while :; do
5734 # IRIX 6.2 and later do not support large files by default,
5735 # so use the C compiler's -n32 option if that helps.
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5738 #include <sys/types.h>
5739 /* Check that off_t can represent 2**63 - 1 correctly.
5740 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5741 since some C++ compilers masquerading as C compilers
5742 incorrectly reject 9223372036854775807. */
5743 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5744 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5745 && LARGE_OFF_T % 2147483647 == 1)
5746 ? 1 : -1];
5748 main ()
5752 return 0;
5754 _ACEOF
5755 if ac_fn_cxx_try_compile "$LINENO"; then :
5756 break
5758 rm -f core conftest.err conftest.$ac_objext
5759 CC="$CC -n32"
5760 if ac_fn_cxx_try_compile "$LINENO"; then :
5761 ac_cv_sys_largefile_CC=' -n32'; break
5763 rm -f core conftest.err conftest.$ac_objext
5764 break
5765 done
5766 CC=$ac_save_CC
5767 rm -f conftest.$ac_ext
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5771 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5772 if test "$ac_cv_sys_largefile_CC" != no; then
5773 CC=$CC$ac_cv_sys_largefile_CC
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5777 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5778 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5779 $as_echo_n "(cached) " >&6
5780 else
5781 while :; do
5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h. */
5784 #include <sys/types.h>
5785 /* Check that off_t can represent 2**63 - 1 correctly.
5786 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5787 since some C++ compilers masquerading as C compilers
5788 incorrectly reject 9223372036854775807. */
5789 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5790 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5791 && LARGE_OFF_T % 2147483647 == 1)
5792 ? 1 : -1];
5794 main ()
5798 return 0;
5800 _ACEOF
5801 if ac_fn_cxx_try_compile "$LINENO"; then :
5802 ac_cv_sys_file_offset_bits=no; break
5804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5806 /* end confdefs.h. */
5807 #define _FILE_OFFSET_BITS 64
5808 #include <sys/types.h>
5809 /* Check that off_t can represent 2**63 - 1 correctly.
5810 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5811 since some C++ compilers masquerading as C compilers
5812 incorrectly reject 9223372036854775807. */
5813 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5814 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5815 && LARGE_OFF_T % 2147483647 == 1)
5816 ? 1 : -1];
5818 main ()
5822 return 0;
5824 _ACEOF
5825 if ac_fn_cxx_try_compile "$LINENO"; then :
5826 ac_cv_sys_file_offset_bits=64; break
5828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5829 ac_cv_sys_file_offset_bits=unknown
5830 break
5831 done
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5834 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5835 case $ac_cv_sys_file_offset_bits in #(
5836 no | unknown) ;;
5838 cat >>confdefs.h <<_ACEOF
5839 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5840 _ACEOF
5842 esac
5843 rm -rf conftest*
5844 if test $ac_cv_sys_file_offset_bits = unknown; then
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5846 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5847 if test "${ac_cv_sys_large_files+set}" = set; then :
5848 $as_echo_n "(cached) " >&6
5849 else
5850 while :; do
5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852 /* end confdefs.h. */
5853 #include <sys/types.h>
5854 /* Check that off_t can represent 2**63 - 1 correctly.
5855 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5856 since some C++ compilers masquerading as C compilers
5857 incorrectly reject 9223372036854775807. */
5858 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5859 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5860 && LARGE_OFF_T % 2147483647 == 1)
5861 ? 1 : -1];
5863 main ()
5867 return 0;
5869 _ACEOF
5870 if ac_fn_cxx_try_compile "$LINENO"; then :
5871 ac_cv_sys_large_files=no; break
5873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h. */
5876 #define _LARGE_FILES 1
5877 #include <sys/types.h>
5878 /* Check that off_t can represent 2**63 - 1 correctly.
5879 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5880 since some C++ compilers masquerading as C compilers
5881 incorrectly reject 9223372036854775807. */
5882 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5883 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5884 && LARGE_OFF_T % 2147483647 == 1)
5885 ? 1 : -1];
5887 main ()
5891 return 0;
5893 _ACEOF
5894 if ac_fn_cxx_try_compile "$LINENO"; then :
5895 ac_cv_sys_large_files=1; break
5897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5898 ac_cv_sys_large_files=unknown
5899 break
5900 done
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5903 $as_echo "$ac_cv_sys_large_files" >&6; }
5904 case $ac_cv_sys_large_files in #(
5905 no | unknown) ;;
5907 cat >>confdefs.h <<_ACEOF
5908 #define _LARGE_FILES $ac_cv_sys_large_files
5909 _ACEOF
5911 esac
5912 rm -rf conftest*
5917 # sizeof(char) is 1 by definition.
5918 # The cast to long int works around a bug in the HP C Compiler
5919 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5920 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5921 # This bug is HP SR number 8606223364.
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5923 $as_echo_n "checking size of void *... " >&6; }
5924 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5925 $as_echo_n "(cached) " >&6
5926 else
5927 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5929 else
5930 if test "$ac_cv_type_void_p" = yes; then
5931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5933 { as_fn_set_status 77
5934 as_fn_error "cannot compute sizeof (void *)
5935 See \`config.log' for more details." "$LINENO" 5; }; }
5936 else
5937 ac_cv_sizeof_void_p=0
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5943 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5947 cat >>confdefs.h <<_ACEOF
5948 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5949 _ACEOF
5952 # The cast to long int works around a bug in the HP C Compiler
5953 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5954 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5955 # This bug is HP SR number 8606223364.
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5957 $as_echo_n "checking size of short... " >&6; }
5958 if test "${ac_cv_sizeof_short+set}" = set; then :
5959 $as_echo_n "(cached) " >&6
5960 else
5961 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5963 else
5964 if test "$ac_cv_type_short" = yes; then
5965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5967 { as_fn_set_status 77
5968 as_fn_error "cannot compute sizeof (short)
5969 See \`config.log' for more details." "$LINENO" 5; }; }
5970 else
5971 ac_cv_sizeof_short=0
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5977 $as_echo "$ac_cv_sizeof_short" >&6; }
5981 cat >>confdefs.h <<_ACEOF
5982 #define SIZEOF_SHORT $ac_cv_sizeof_short
5983 _ACEOF
5986 # The cast to long int works around a bug in the HP C Compiler
5987 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5988 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5989 # This bug is HP SR number 8606223364.
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5991 $as_echo_n "checking size of int... " >&6; }
5992 if test "${ac_cv_sizeof_int+set}" = set; then :
5993 $as_echo_n "(cached) " >&6
5994 else
5995 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5997 else
5998 if test "$ac_cv_type_int" = yes; then
5999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6001 { as_fn_set_status 77
6002 as_fn_error "cannot compute sizeof (int)
6003 See \`config.log' for more details." "$LINENO" 5; }; }
6004 else
6005 ac_cv_sizeof_int=0
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6011 $as_echo "$ac_cv_sizeof_int" >&6; }
6015 cat >>confdefs.h <<_ACEOF
6016 #define SIZEOF_INT $ac_cv_sizeof_int
6017 _ACEOF
6020 # The cast to long int works around a bug in the HP C Compiler
6021 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6022 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6023 # This bug is HP SR number 8606223364.
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6025 $as_echo_n "checking size of long... " >&6; }
6026 if test "${ac_cv_sizeof_long+set}" = set; then :
6027 $as_echo_n "(cached) " >&6
6028 else
6029 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6031 else
6032 if test "$ac_cv_type_long" = yes; then
6033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6035 { as_fn_set_status 77
6036 as_fn_error "cannot compute sizeof (long)
6037 See \`config.log' for more details." "$LINENO" 5; }; }
6038 else
6039 ac_cv_sizeof_long=0
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6045 $as_echo "$ac_cv_sizeof_long" >&6; }
6049 cat >>confdefs.h <<_ACEOF
6050 #define SIZEOF_LONG $ac_cv_sizeof_long
6051 _ACEOF
6054 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6055 if test "x$ac_cv_type_long_long" = x""yes; then :
6057 cat >>confdefs.h <<_ACEOF
6058 #define HAVE_LONG_LONG 1
6059 _ACEOF
6061 # The cast to long int works around a bug in the HP C Compiler
6062 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6063 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6064 # This bug is HP SR number 8606223364.
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6066 $as_echo_n "checking size of long long... " >&6; }
6067 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6068 $as_echo_n "(cached) " >&6
6069 else
6070 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6072 else
6073 if test "$ac_cv_type_long_long" = yes; then
6074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6076 { as_fn_set_status 77
6077 as_fn_error "cannot compute sizeof (long long)
6078 See \`config.log' for more details." "$LINENO" 5; }; }
6079 else
6080 ac_cv_sizeof_long_long=0
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6086 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6090 cat >>confdefs.h <<_ACEOF
6091 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6092 _ACEOF
6097 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6098 case $ac_cv_c_int8_t in #(
6099 no|yes) ;; #(
6102 cat >>confdefs.h <<_ACEOF
6103 #define int8_t $ac_cv_c_int8_t
6104 _ACEOF
6106 esac
6108 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6109 case $ac_cv_c_int16_t in #(
6110 no|yes) ;; #(
6113 cat >>confdefs.h <<_ACEOF
6114 #define int16_t $ac_cv_c_int16_t
6115 _ACEOF
6117 esac
6119 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6120 case $ac_cv_c_int32_t in #(
6121 no|yes) ;; #(
6124 cat >>confdefs.h <<_ACEOF
6125 #define int32_t $ac_cv_c_int32_t
6126 _ACEOF
6128 esac
6130 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6131 case $ac_cv_c_int64_t in #(
6132 no|yes) ;; #(
6135 cat >>confdefs.h <<_ACEOF
6136 #define int64_t $ac_cv_c_int64_t
6137 _ACEOF
6139 esac
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6143 $as_echo_n "checking for long long int... " >&6; }
6144 if test "${ac_cv_type_long_long_int+set}" = set; then :
6145 $as_echo_n "(cached) " >&6
6146 else
6147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148 /* end confdefs.h. */
6150 /* For now, do not test the preprocessor; as of 2007 there are too many
6151 implementations with broken preprocessors. Perhaps this can
6152 be revisited in 2012. In the meantime, code should not expect
6153 #if to work with literals wider than 32 bits. */
6154 /* Test literals. */
6155 long long int ll = 9223372036854775807ll;
6156 long long int nll = -9223372036854775807LL;
6157 unsigned long long int ull = 18446744073709551615ULL;
6158 /* Test constant expressions. */
6159 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6160 ? 1 : -1)];
6161 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6162 ? 1 : -1)];
6163 int i = 63;
6165 main ()
6167 /* Test availability of runtime routines for shift and division. */
6168 long long int llmax = 9223372036854775807ll;
6169 unsigned long long int ullmax = 18446744073709551615ull;
6170 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6171 | (llmax / ll) | (llmax % ll)
6172 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6173 | (ullmax / ull) | (ullmax % ull));
6175 return 0;
6178 _ACEOF
6179 if ac_fn_cxx_try_link "$LINENO"; then :
6180 if test "$cross_compiling" = yes; then :
6181 ac_cv_type_long_long_int=yes
6182 else
6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184 /* end confdefs.h. */
6185 #include <limits.h>
6186 #ifndef LLONG_MAX
6187 # define HALF \
6188 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6189 # define LLONG_MAX (HALF - 1 + HALF)
6190 #endif
6192 main ()
6194 long long int n = 1;
6195 int i;
6196 for (i = 0; ; i++)
6198 long long int m = n << i;
6199 if (m >> i != n)
6200 return 1;
6201 if (LLONG_MAX / 2 < m)
6202 break;
6204 return 0;
6206 return 0;
6208 _ACEOF
6209 if ac_fn_cxx_try_run "$LINENO"; then :
6210 ac_cv_type_long_long_int=yes
6211 else
6212 ac_cv_type_long_long_int=no
6214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6215 conftest.$ac_objext conftest.beam conftest.$ac_ext
6218 else
6219 ac_cv_type_long_long_int=no
6221 rm -f core conftest.err conftest.$ac_objext \
6222 conftest$ac_exeext conftest.$ac_ext
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6225 $as_echo "$ac_cv_type_long_long_int" >&6; }
6226 if test $ac_cv_type_long_long_int = yes; then
6228 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6234 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6235 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6237 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6239 else
6240 test $ac_cv_type_long_long_int = yes \
6241 && ac_type='long long int' \
6242 || ac_type='long int'
6244 cat >>confdefs.h <<_ACEOF
6245 #define intmax_t $ac_type
6246 _ACEOF
6252 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6253 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6255 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6257 else
6258 for ac_type in 'int' 'long int' 'long long int'; do
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6261 $ac_includes_default
6263 main ()
6265 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6266 test_array [0] = 0
6269 return 0;
6271 _ACEOF
6272 if ac_fn_cxx_try_compile "$LINENO"; then :
6274 cat >>confdefs.h <<_ACEOF
6275 #define intptr_t $ac_type
6276 _ACEOF
6278 ac_type=
6280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6281 test -z "$ac_type" && break
6282 done
6286 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6287 case $ac_cv_c_uint8_t in #(
6288 no|yes) ;; #(
6291 $as_echo "#define _UINT8_T 1" >>confdefs.h
6294 cat >>confdefs.h <<_ACEOF
6295 #define uint8_t $ac_cv_c_uint8_t
6296 _ACEOF
6298 esac
6300 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6301 case $ac_cv_c_uint16_t in #(
6302 no|yes) ;; #(
6306 cat >>confdefs.h <<_ACEOF
6307 #define uint16_t $ac_cv_c_uint16_t
6308 _ACEOF
6310 esac
6312 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6313 case $ac_cv_c_uint32_t in #(
6314 no|yes) ;; #(
6317 $as_echo "#define _UINT32_T 1" >>confdefs.h
6320 cat >>confdefs.h <<_ACEOF
6321 #define uint32_t $ac_cv_c_uint32_t
6322 _ACEOF
6324 esac
6326 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6327 case $ac_cv_c_uint64_t in #(
6328 no|yes) ;; #(
6331 $as_echo "#define _UINT64_T 1" >>confdefs.h
6334 cat >>confdefs.h <<_ACEOF
6335 #define uint64_t $ac_cv_c_uint64_t
6336 _ACEOF
6338 esac
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6342 $as_echo_n "checking for unsigned long long int... " >&6; }
6343 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6344 $as_echo_n "(cached) " >&6
6345 else
6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h. */
6349 /* For now, do not test the preprocessor; as of 2007 there are too many
6350 implementations with broken preprocessors. Perhaps this can
6351 be revisited in 2012. In the meantime, code should not expect
6352 #if to work with literals wider than 32 bits. */
6353 /* Test literals. */
6354 long long int ll = 9223372036854775807ll;
6355 long long int nll = -9223372036854775807LL;
6356 unsigned long long int ull = 18446744073709551615ULL;
6357 /* Test constant expressions. */
6358 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6359 ? 1 : -1)];
6360 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6361 ? 1 : -1)];
6362 int i = 63;
6364 main ()
6366 /* Test availability of runtime routines for shift and division. */
6367 long long int llmax = 9223372036854775807ll;
6368 unsigned long long int ullmax = 18446744073709551615ull;
6369 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6370 | (llmax / ll) | (llmax % ll)
6371 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6372 | (ullmax / ull) | (ullmax % ull));
6374 return 0;
6377 _ACEOF
6378 if ac_fn_cxx_try_link "$LINENO"; then :
6379 ac_cv_type_unsigned_long_long_int=yes
6380 else
6381 ac_cv_type_unsigned_long_long_int=no
6383 rm -f core conftest.err conftest.$ac_objext \
6384 conftest$ac_exeext conftest.$ac_ext
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6387 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6388 if test $ac_cv_type_unsigned_long_long_int = yes; then
6390 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6396 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6397 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6399 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6401 else
6402 test $ac_cv_type_unsigned_long_long_int = yes \
6403 && ac_type='unsigned long long int' \
6404 || ac_type='unsigned long int'
6406 cat >>confdefs.h <<_ACEOF
6407 #define uintmax_t $ac_type
6408 _ACEOF
6414 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6415 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6417 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6419 else
6420 for ac_type in 'unsigned int' 'unsigned long int' \
6421 'unsigned long long int'; do
6422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423 /* end confdefs.h. */
6424 $ac_includes_default
6426 main ()
6428 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6429 test_array [0] = 0
6432 return 0;
6434 _ACEOF
6435 if ac_fn_cxx_try_compile "$LINENO"; then :
6437 cat >>confdefs.h <<_ACEOF
6438 #define uintptr_t $ac_type
6439 _ACEOF
6441 ac_type=
6443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6444 test -z "$ac_type" && break
6445 done
6461 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6462 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6465 # check what underlying integer type int64_t uses
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6467 $as_echo_n "checking for int64_t underlying type... " >&6; }
6468 if test "${ac_cv_int64_t_type+set}" = set; then :
6469 $as_echo_n "(cached) " >&6
6470 else
6472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473 /* end confdefs.h. */
6475 #ifdef HAVE_STDINT_H
6476 #include <stdint.h>
6477 #endif
6478 template <typename T> struct X { };
6479 template <>
6480 struct X<long> { typedef long t; };
6483 main ()
6485 X<int64_t>::t x;
6487 return 0;
6489 _ACEOF
6490 if ac_fn_cxx_try_compile "$LINENO"; then :
6491 ac_cv_int64_t_type=long
6492 else
6493 ac_cv_int64_t_type="long long"
6495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6498 $as_echo "$ac_cv_int64_t_type" >&6; }
6499 if test "$ac_cv_int64_t_type" = "long"; then
6501 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6503 else
6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6507 #ifdef HAVE_STDINT_H
6508 #include <stdint.h>
6509 #endif
6510 template <typename T> struct X { };
6511 template <>
6512 struct X<long long> { typedef long long t; };
6515 main ()
6517 X<int64_t>::t x;
6519 return 0;
6521 _ACEOF
6522 if ac_fn_cxx_try_compile "$LINENO"; then :
6524 else
6525 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6530 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6531 # If the host compiler is affected by the bug, and we build with optimization
6532 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6533 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6534 # Since there is no reliable feature check for the presence of this bug,
6535 # we simply use a GCC version number check. (This should never trigger for
6536 # stages 2 or 3 of a native bootstrap.)
6537 aliasing_flags=
6538 if test "$GCC" = yes; then
6539 saved_CXXFLAGS="$CXXFLAGS"
6541 # The following test compilation will succeed if and only if $CXX accepts
6542 # -fno-strict-aliasing *and* is older than GCC 4.3.
6543 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6545 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547 /* end confdefs.h. */
6549 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6550 #error compiler not affected by placement new aliasing bug
6551 #endif
6553 _ACEOF
6554 if ac_fn_cxx_try_compile "$LINENO"; then :
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6556 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6557 else
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559 $as_echo "no" >&6; }
6561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563 CXXFLAGS="$saved_CXXFLAGS"
6569 # ---------------------
6570 # Warnings and checking
6571 # ---------------------
6573 # Check $CC warning features (if it's GCC).
6574 # We want to use -pedantic, but we don't want warnings about
6575 # * 'long long'
6576 # * variadic macros
6577 # * overlong strings
6578 # * C++11 narrowing conversions in { }
6579 # So, we only use -pedantic if we can disable those warnings.
6581 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6582 # Check whether --enable-build-format-warnings was given.
6583 if test "${enable_build_format_warnings+set}" = set; then :
6584 enableval=$enable_build_format_warnings;
6585 else
6586 enable_build_format_warnings=yes
6589 if test $enable_build_format_warnings = no; then :
6590 wf_opt=-Wno-format
6591 else
6592 wf_opt=
6594 ac_ext=cpp
6595 ac_cpp='$CXXCPP $CPPFLAGS'
6596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6600 loose_warn=
6601 save_CXXFLAGS="$CXXFLAGS"
6602 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6603 # Do the check with the no- prefix removed since gcc silently
6604 # accepts any -Wno-* option on purpose
6605 case $real_option in
6606 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6607 *) option=$real_option ;;
6608 esac
6609 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6612 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6613 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6614 $as_echo_n "(cached) " >&6
6615 else
6616 CXXFLAGS="$option"
6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h. */
6621 main ()
6625 return 0;
6627 _ACEOF
6628 if ac_fn_cxx_try_compile "$LINENO"; then :
6629 eval "$as_acx_Woption=yes"
6630 else
6631 eval "$as_acx_Woption=no"
6633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6636 eval ac_res=\$$as_acx_Woption
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6638 $as_echo "$ac_res" >&6; }
6639 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6640 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6642 done
6643 CXXFLAGS="$save_CXXFLAGS"
6644 ac_ext=cpp
6645 ac_cpp='$CXXCPP $CPPFLAGS'
6646 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6647 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6648 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6652 ac_ext=c
6653 ac_cpp='$CPP $CPPFLAGS'
6654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6658 c_loose_warn=
6659 save_CFLAGS="$CFLAGS"
6660 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6661 # Do the check with the no- prefix removed since gcc silently
6662 # accepts any -Wno-* option on purpose
6663 case $real_option in
6664 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6665 *) option=$real_option ;;
6666 esac
6667 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6670 $as_echo_n "checking whether $CC supports $option... " >&6; }
6671 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6672 $as_echo_n "(cached) " >&6
6673 else
6674 CFLAGS="$option"
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h. */
6679 main ()
6683 return 0;
6685 _ACEOF
6686 if ac_fn_c_try_compile "$LINENO"; then :
6687 eval "$as_acx_Woption=yes"
6688 else
6689 eval "$as_acx_Woption=no"
6691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6694 eval ac_res=\$$as_acx_Woption
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6696 $as_echo "$ac_res" >&6; }
6697 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6698 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6700 done
6701 CFLAGS="$save_CFLAGS"
6702 ac_ext=cpp
6703 ac_cpp='$CXXCPP $CPPFLAGS'
6704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6709 ac_ext=cpp
6710 ac_cpp='$CXXCPP $CPPFLAGS'
6711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6715 strict_warn=
6716 save_CXXFLAGS="$CXXFLAGS"
6717 for real_option in -Wmissing-format-attribute; do
6718 # Do the check with the no- prefix removed since gcc silently
6719 # accepts any -Wno-* option on purpose
6720 case $real_option in
6721 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6722 *) option=$real_option ;;
6723 esac
6724 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6727 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6728 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6729 $as_echo_n "(cached) " >&6
6730 else
6731 CXXFLAGS="$option"
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6736 main ()
6740 return 0;
6742 _ACEOF
6743 if ac_fn_cxx_try_compile "$LINENO"; then :
6744 eval "$as_acx_Woption=yes"
6745 else
6746 eval "$as_acx_Woption=no"
6748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751 eval ac_res=\$$as_acx_Woption
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6753 $as_echo "$ac_res" >&6; }
6754 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6755 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6757 done
6758 CXXFLAGS="$save_CXXFLAGS"
6759 ac_ext=cpp
6760 ac_cpp='$CXXCPP $CPPFLAGS'
6761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6766 ac_ext=cpp
6767 ac_cpp='$CXXCPP $CPPFLAGS'
6768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6772 save_CXXFLAGS="$CXXFLAGS"
6773 for real_option in -Woverloaded-virtual; do
6774 # Do the check with the no- prefix removed since gcc silently
6775 # accepts any -Wno-* option on purpose
6776 case $real_option in
6777 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6778 *) option=$real_option ;;
6779 esac
6780 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6783 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6784 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6785 $as_echo_n "(cached) " >&6
6786 else
6787 CXXFLAGS="$option"
6788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h. */
6792 main ()
6796 return 0;
6798 _ACEOF
6799 if ac_fn_cxx_try_compile "$LINENO"; then :
6800 eval "$as_acx_Woption=yes"
6801 else
6802 eval "$as_acx_Woption=no"
6804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807 eval ac_res=\$$as_acx_Woption
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6809 $as_echo "$ac_res" >&6; }
6810 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6811 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6813 done
6814 CXXFLAGS="$save_CXXFLAGS"
6815 ac_ext=cpp
6816 ac_cpp='$CXXCPP $CPPFLAGS'
6817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6822 ac_ext=c
6823 ac_cpp='$CPP $CPPFLAGS'
6824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6828 c_strict_warn=
6829 save_CFLAGS="$CFLAGS"
6830 for real_option in -Wold-style-definition -Wc++-compat; do
6831 # Do the check with the no- prefix removed since gcc silently
6832 # accepts any -Wno-* option on purpose
6833 case $real_option in
6834 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6835 *) option=$real_option ;;
6836 esac
6837 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6840 $as_echo_n "checking whether $CC supports $option... " >&6; }
6841 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6842 $as_echo_n "(cached) " >&6
6843 else
6844 CFLAGS="$option"
6845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846 /* end confdefs.h. */
6849 main ()
6853 return 0;
6855 _ACEOF
6856 if ac_fn_c_try_compile "$LINENO"; then :
6857 eval "$as_acx_Woption=yes"
6858 else
6859 eval "$as_acx_Woption=no"
6861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6864 eval ac_res=\$$as_acx_Woption
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6866 $as_echo "$ac_res" >&6; }
6867 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6868 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6870 done
6871 CFLAGS="$save_CFLAGS"
6872 ac_ext=cpp
6873 ac_cpp='$CXXCPP $CPPFLAGS'
6874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6879 ac_ext=cpp
6880 ac_cpp='$CXXCPP $CPPFLAGS'
6881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6885 # Do the check with the no- prefix removed from the warning options
6886 # since gcc silently accepts any -Wno-* option on purpose
6887 if test "$GXX" = yes; then :
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6889 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6890 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6891 $as_echo_n "(cached) " >&6
6892 else
6893 save_CXXFLAGS="$CXXFLAGS"
6894 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896 /* end confdefs.h. */
6899 main ()
6903 return 0;
6905 _ACEOF
6906 if ac_fn_cxx_try_compile "$LINENO"; then :
6907 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6908 else
6909 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6912 CXXFLAGS="$save_CXXFLAGS"
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6915 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6916 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6917 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6921 ac_ext=cpp
6922 ac_cpp='$CXXCPP $CPPFLAGS'
6923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6928 ac_ext=cpp
6929 ac_cpp='$CXXCPP $CPPFLAGS'
6930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6934 # Check whether --enable-werror-always was given.
6935 if test "${enable_werror_always+set}" = set; then :
6936 enableval=$enable_werror_always;
6937 else
6938 enable_werror_always=no
6941 if test $enable_werror_always = yes; then :
6942 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6945 ac_ext=cpp
6946 ac_cpp='$CXXCPP $CPPFLAGS'
6947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6953 # The above macros do nothing if the compiler is not GCC. However, the
6954 # Makefile has more goo to add other flags, so these variables are used
6955 # to enable warnings only for GCC.
6956 warn_cflags=
6957 warn_cxxflags=
6958 if test "x$GCC" = "xyes"; then
6959 warn_cflags='$(GCC_WARN_CFLAGS)'
6960 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6965 # Disable exceptions and RTTI if building with g++
6966 ac_ext=c
6967 ac_cpp='$CPP $CPPFLAGS'
6968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6972 noexception_flags=
6973 save_CFLAGS="$CFLAGS"
6974 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6975 # Do the check with the no- prefix removed since gcc silently
6976 # accepts any -Wno-* option on purpose
6977 case $real_option in
6978 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6979 *) option=$real_option ;;
6980 esac
6981 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6984 $as_echo_n "checking whether $CC supports $option... " >&6; }
6985 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6986 $as_echo_n "(cached) " >&6
6987 else
6988 CFLAGS="$option"
6989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h. */
6993 main ()
6997 return 0;
6999 _ACEOF
7000 if ac_fn_c_try_compile "$LINENO"; then :
7001 eval "$as_acx_Woption=yes"
7002 else
7003 eval "$as_acx_Woption=no"
7005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7008 eval ac_res=\$$as_acx_Woption
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7010 $as_echo "$ac_res" >&6; }
7011 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7012 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7014 done
7015 CFLAGS="$save_CFLAGS"
7016 ac_ext=cpp
7017 ac_cpp='$CXXCPP $CPPFLAGS'
7018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7024 # Enable expensive internal checks
7025 is_release=
7026 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7027 is_release=yes
7030 # Check whether --enable-checking was given.
7031 if test "${enable_checking+set}" = set; then :
7032 enableval=$enable_checking; ac_checking_flags="${enableval}"
7033 else
7035 # Determine the default checks.
7036 if test x$is_release = x ; then
7037 ac_checking_flags=yes
7038 else
7039 ac_checking_flags=release
7043 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7044 for check in release $ac_checking_flags
7046 case $check in
7047 # these set all the flags to specific states
7048 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7049 ac_fold_checking= ; ac_gc_checking=1 ;
7050 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7051 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7052 ac_tree_checking=1 ; ac_valgrind_checking= ;
7053 ac_types_checking=1 ;;
7054 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7055 ac_fold_checking= ; ac_gc_checking= ;
7056 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7057 ac_rtlflag_checking= ; ac_runtime_checking= ;
7058 ac_tree_checking= ; ac_valgrind_checking= ;
7059 ac_types_checking= ;;
7060 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7061 ac_fold_checking=1 ; ac_gc_checking=1 ;
7062 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7063 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7064 ac_tree_checking=1 ; ac_valgrind_checking= ;
7065 ac_types_checking=1 ;;
7066 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7067 ac_fold_checking= ; ac_gc_checking= ;
7068 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7069 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7070 ac_tree_checking= ; ac_valgrind_checking= ;
7071 ac_types_checking= ;;
7072 # these enable particular checks
7073 assert) ac_assert_checking=1 ;;
7074 df) ac_df_checking=1 ;;
7075 fold) ac_fold_checking=1 ;;
7076 gc) ac_gc_checking=1 ;;
7077 gcac) ac_gc_always_collect=1 ;;
7078 gimple) ac_gimple_checking=1 ;;
7079 misc) ac_checking=1 ;;
7080 rtl) ac_rtl_checking=1 ;;
7081 rtlflag) ac_rtlflag_checking=1 ;;
7082 runtime) ac_runtime_checking=1 ;;
7083 tree) ac_tree_checking=1 ;;
7084 types) ac_types_checking=1 ;;
7085 valgrind) ac_valgrind_checking=1 ;;
7086 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7087 esac
7088 done
7089 IFS="$ac_save_IFS"
7091 nocommon_flag=""
7092 if test x$ac_checking != x ; then
7094 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
7096 nocommon_flag=-fno-common
7099 if test x$ac_df_checking != x ; then
7101 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7104 if test x$ac_assert_checking != x ; then
7106 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7109 if test x$ac_gimple_checking != x ; then
7111 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7115 if test x$ac_runtime_checking != x ; then
7117 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7120 if test x$ac_tree_checking != x ; then
7122 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7124 TREECHECKING=yes
7126 if test x$ac_types_checking != x ; then
7128 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7132 if test x$ac_rtl_checking != x ; then
7134 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7137 if test x$ac_rtlflag_checking != x ; then
7139 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7142 if test x$ac_gc_checking != x ; then
7144 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7147 if test x$ac_gc_always_collect != x ; then
7149 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7152 if test x$ac_fold_checking != x ; then
7154 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7157 valgrind_path_defines=
7158 valgrind_command=
7160 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7161 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7162 have_valgrind_h=yes
7163 else
7164 have_valgrind_h=no
7169 # It is certainly possible that there's valgrind but no valgrind.h.
7170 # GCC relies on making annotations so we must have both.
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7172 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h. */
7175 #include <valgrind/memcheck.h>
7176 #ifndef VALGRIND_DISCARD
7177 #error VALGRIND_DISCARD not defined
7178 #endif
7179 _ACEOF
7180 if ac_fn_cxx_try_cpp "$LINENO"; then :
7181 gcc_cv_header_valgrind_memcheck_h=yes
7182 else
7183 gcc_cv_header_valgrind_memcheck_h=no
7185 rm -f conftest.err conftest.$ac_ext
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7187 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7189 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192 #include <memcheck.h>
7193 #ifndef VALGRIND_DISCARD
7194 #error VALGRIND_DISCARD not defined
7195 #endif
7196 _ACEOF
7197 if ac_fn_cxx_try_cpp "$LINENO"; then :
7198 gcc_cv_header_memcheck_h=yes
7199 else
7200 gcc_cv_header_memcheck_h=no
7202 rm -f conftest.err conftest.$ac_ext
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7204 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7205 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7207 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7210 if test $gcc_cv_header_memcheck_h = yes; then
7212 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7216 if test x$ac_valgrind_checking != x ; then
7218 # Prepare PATH_SEPARATOR.
7219 # The user is always right.
7220 if test "${PATH_SEPARATOR+set}" != set; then
7221 echo "#! /bin/sh" >conf$$.sh
7222 echo "exit 0" >>conf$$.sh
7223 chmod +x conf$$.sh
7224 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7225 PATH_SEPARATOR=';'
7226 else
7227 PATH_SEPARATOR=:
7229 rm -f conf$$.sh
7232 # Find out how to test for executable files. Don't use a zero-byte file,
7233 # as systems may use methods other than mode bits to determine executability.
7234 cat >conf$$.file <<_ASEOF
7235 #! /bin/sh
7236 exit 0
7237 _ASEOF
7238 chmod +x conf$$.file
7239 if test -x conf$$.file >/dev/null 2>&1; then
7240 ac_executable_p="test -x"
7241 else
7242 ac_executable_p="test -f"
7244 rm -f conf$$.file
7246 # Extract the first word of "valgrind", so it can be a program name with args.
7247 set dummy valgrind; ac_word=$2
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249 $as_echo_n "checking for $ac_word... " >&6; }
7250 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7251 $as_echo_n "(cached) " >&6
7252 else
7253 case "$valgrind_path" in
7254 [\\/]* | ?:[\\/]*)
7255 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7258 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7259 for ac_dir in $PATH; do
7260 IFS="$ac_save_IFS"
7261 test -z "$ac_dir" && ac_dir=.
7262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7264 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7265 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7266 break 2
7269 done
7270 done
7271 IFS="$ac_save_IFS"
7273 esac
7275 valgrind_path="$ac_cv_path_valgrind_path"
7276 if test -n "$valgrind_path"; then
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7278 $as_echo "$valgrind_path" >&6; }
7279 else
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }
7284 if test "x$valgrind_path" = "x" \
7285 || (test $have_valgrind_h = no \
7286 && test $gcc_cv_header_memcheck_h = no \
7287 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7288 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7290 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7291 valgrind_command="$valgrind_path -q"
7293 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7299 # Enable code coverage collection
7300 # Check whether --enable-coverage was given.
7301 if test "${enable_coverage+set}" = set; then :
7302 enableval=$enable_coverage; case "${enableval}" in
7303 yes|noopt)
7304 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7306 opt)
7307 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7310 # a.k.a. --disable-coverage
7311 coverage_flags=""
7314 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7316 esac
7317 else
7318 coverage_flags=""
7323 # Check whether --enable-gather-detailed-mem-stats was given.
7324 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7325 enableval=$enable_gather_detailed_mem_stats;
7326 else
7327 enable_gather_detailed_mem_stats=no
7330 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7332 cat >>confdefs.h <<_ACEOF
7333 #define GATHER_STATISTICS $gather_stats
7334 _ACEOF
7337 # Check whether --enable-valgrind-annotations was given.
7338 if test "${enable_valgrind_annotations+set}" = set; then :
7339 enableval=$enable_valgrind_annotations;
7340 else
7341 enable_valgrind_annotations=no
7344 if test x$enable_valgrind_annotations != xno \
7345 || test x$ac_valgrind_checking != x; then
7346 if (test $have_valgrind_h = no \
7347 && test $gcc_cv_header_memcheck_h = no \
7348 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7349 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7352 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7356 # -------------------------------
7357 # Miscenalleous configure options
7358 # -------------------------------
7360 # With stabs
7362 # Check whether --with-stabs was given.
7363 if test "${with_stabs+set}" = set; then :
7364 withval=$with_stabs; stabs="$with_stabs"
7365 else
7366 stabs=no
7370 # Determine whether or not multilibs are enabled.
7371 # Check whether --enable-multilib was given.
7372 if test "${enable_multilib+set}" = set; then :
7373 enableval=$enable_multilib;
7374 else
7375 enable_multilib=yes
7380 # Determine whether or not multiarch is enabled.
7381 # Check whether --enable-multiarch was given.
7382 if test "${enable_multiarch+set}" = set; then :
7383 enableval=$enable_multiarch; case "${enableval}" in
7384 yes|no|auto) enable_multiarch=$enableval;;
7385 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7386 esac
7387 else
7388 enable_multiarch=auto
7391 if test x${enable_multiarch} = xauto; then
7392 if test x${with_native_system_header_dir} != x; then
7393 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7394 enable_multiarch=no
7396 if test x$host != x$target && test "x$with_sysroot" = x; then
7397 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7398 enable_multiarch=no
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7402 $as_echo_n "checking for multiarch configuration... " >&6; }
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7405 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7407 # needed for setting the multiarch name for soft-float/hard-float ABIs
7411 # Enable __cxa_atexit for C++.
7412 # Check whether --enable-__cxa_atexit was given.
7413 if test "${enable___cxa_atexit+set}" = set; then :
7414 enableval=$enable___cxa_atexit;
7418 # Enable C extension for decimal float if target supports it.
7420 # Check whether --enable-decimal-float was given.
7421 if test "${enable_decimal_float+set}" = set; then :
7422 enableval=$enable_decimal_float;
7423 case $enable_decimal_float in
7424 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7425 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7426 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7427 esac
7429 else
7431 case $target in
7432 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7433 i?86*-*-elfiamcu | i?86*-*-gnu* | \
7434 i?86*-*-mingw* | x86_64*-*-mingw* | \
7435 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7436 enable_decimal_float=yes
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7440 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7441 enable_decimal_float=no
7443 esac
7448 # x86's use BID format instead of DPD
7449 case x$enable_decimal_float in
7450 xyes)
7451 case $target in
7452 i?86*-*-* | x86_64*-*-*)
7453 enable_decimal_float=bid
7456 enable_decimal_float=dpd
7458 esac
7459 default_decimal_float=$enable_decimal_float
7461 xno)
7462 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7463 # dependency on libdecnumber.
7464 default_decimal_float=dpd
7466 esac
7471 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7473 cat >>confdefs.h <<_ACEOF
7474 #define ENABLE_DECIMAL_FLOAT $dfp
7475 _ACEOF
7478 # Use default_decimal_float for dependency.
7479 enable_decimal_float=$default_decimal_float
7481 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7483 cat >>confdefs.h <<_ACEOF
7484 #define ENABLE_DECIMAL_BID_FORMAT $bid
7485 _ACEOF
7488 # Enable C extension for fixed-point arithmetic.
7489 # Check whether --enable-fixed-point was given.
7490 if test "${enable_fixed_point+set}" = set; then :
7491 enableval=$enable_fixed_point;
7492 else
7494 case $target in
7495 arm*)
7496 enable_fixed_point=yes
7499 mips*-*-*)
7500 enable_fixed_point=yes
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7504 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7505 enable_fixed_point=no
7507 esac
7513 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7515 cat >>confdefs.h <<_ACEOF
7516 #define ENABLE_FIXED_POINT $fixedpoint
7517 _ACEOF
7520 # Enable threads
7521 # Pass with no value to take the default
7522 # Pass with a value to specify a thread package
7523 # Check whether --enable-threads was given.
7524 if test "${enable_threads+set}" = set; then :
7525 enableval=$enable_threads;
7526 else
7527 enable_threads=''
7531 # Check whether --enable-tls was given.
7532 if test "${enable_tls+set}" = set; then :
7533 enableval=$enable_tls;
7534 case $enable_tls in
7535 yes | no) ;;
7536 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7537 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7538 esac
7540 else
7541 enable_tls=''
7545 # Check whether --enable-objc-gc was given.
7546 if test "${enable_objc_gc+set}" = set; then :
7547 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7548 objc_boehm_gc=''
7549 else
7550 objc_boehm_gc=1
7552 else
7553 objc_boehm_gc=''
7558 # Check whether --with-dwarf2 was given.
7559 if test "${with_dwarf2+set}" = set; then :
7560 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7561 else
7562 dwarf2=no
7566 # Check whether --enable-shared was given.
7567 if test "${enable_shared+set}" = set; then :
7568 enableval=$enable_shared;
7569 case $enable_shared in
7570 yes | no) ;;
7572 enable_shared=no
7573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7574 for pkg in $enableval; do
7575 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7576 enable_shared=yes
7578 done
7579 IFS="$ac_save_ifs"
7581 esac
7583 else
7584 enable_shared=yes
7590 # Check whether --with-specs was given.
7591 if test "${with_specs+set}" = set; then :
7592 withval=$with_specs; CONFIGURE_SPECS=$withval
7593 else
7594 CONFIGURE_SPECS=
7602 # Check whether --with-pkgversion was given.
7603 if test "${with_pkgversion+set}" = set; then :
7604 withval=$with_pkgversion; case "$withval" in
7605 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7606 no) PKGVERSION= ;;
7607 *) PKGVERSION="($withval) " ;;
7608 esac
7609 else
7610 PKGVERSION="(GCC) "
7618 # Check whether --with-bugurl was given.
7619 if test "${with_bugurl+set}" = set; then :
7620 withval=$with_bugurl; case "$withval" in
7621 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7622 no) BUGURL=
7624 *) BUGURL="$withval"
7626 esac
7627 else
7628 BUGURL="http://gcc.gnu.org/bugs.html"
7632 case ${BUGURL} in
7634 REPORT_BUGS_TO=
7635 REPORT_BUGS_TEXI=
7638 REPORT_BUGS_TO="<$BUGURL>"
7639 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7641 esac;
7646 # Sanity check enable_languages in case someone does not run the toplevel
7647 # configure # script.
7648 # Check whether --enable-languages was given.
7649 if test "${enable_languages+set}" = set; then :
7650 enableval=$enable_languages; case ,${enable_languages}, in
7651 ,,|,yes,)
7652 # go safe -- we cannot be much sure without the toplevel
7653 # configure's
7654 # analysis of which target libs are present and usable
7655 enable_languages=c
7657 *,all,*)
7658 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7660 *,c,*)
7663 enable_languages=c,${enable_languages}
7665 esac
7666 else
7667 enable_languages=c
7671 if test x"$enable_as_accelerator_for" != x; then
7673 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7675 enable_as_accelerator=yes
7676 case "${target}" in
7677 *-intelmicemul-*)
7678 # In this case we expect offload compiler to be built as native, so we
7679 # need to rename the driver to avoid clashes with host's drivers.
7680 program_transform_name="s&^&${target}-&" ;;
7681 esac
7682 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7683 program_transform_name=`echo $program_transform_name | sed $sedscript`
7684 accel_dir_suffix=/accel/${target_noncanonical}
7685 real_target_noncanonical=${enable_as_accelerator_for}
7691 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7692 tgt=`echo $tgt | sed 's/=.*//'`
7693 if test x"$offload_targets" = x; then
7694 offload_targets=$tgt
7695 else
7696 offload_targets="$offload_targets:$tgt"
7698 done
7700 cat >>confdefs.h <<_ACEOF
7701 #define OFFLOAD_TARGETS "$offload_targets"
7702 _ACEOF
7704 if test x"$offload_targets" != x; then
7706 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7711 # Check whether --with-multilib-list was given.
7712 if test "${with_multilib_list+set}" = set; then :
7713 withval=$with_multilib_list; :
7714 else
7715 with_multilib_list=default
7719 # -------------------------
7720 # Checks for other programs
7721 # -------------------------
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7724 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7725 set x ${MAKE-make}
7726 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7727 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7728 $as_echo_n "(cached) " >&6
7729 else
7730 cat >conftest.make <<\_ACEOF
7731 SHELL = /bin/sh
7732 all:
7733 @echo '@@@%%%=$(MAKE)=@@@%%%'
7734 _ACEOF
7735 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7736 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7737 *@@@%%%=?*=@@@%%%*)
7738 eval ac_cv_prog_make_${ac_make}_set=yes;;
7740 eval ac_cv_prog_make_${ac_make}_set=no;;
7741 esac
7742 rm -f conftest.make
7744 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7746 $as_echo "yes" >&6; }
7747 SET_MAKE=
7748 else
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7751 SET_MAKE="MAKE=${MAKE-make}"
7755 # Find some useful tools
7756 for ac_prog in gawk mawk nawk awk
7758 # Extract the first word of "$ac_prog", so it can be a program name with args.
7759 set dummy $ac_prog; ac_word=$2
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7761 $as_echo_n "checking for $ac_word... " >&6; }
7762 if test "${ac_cv_prog_AWK+set}" = set; then :
7763 $as_echo_n "(cached) " >&6
7764 else
7765 if test -n "$AWK"; then
7766 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7767 else
7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769 for as_dir in $PATH
7771 IFS=$as_save_IFS
7772 test -z "$as_dir" && as_dir=.
7773 for ac_exec_ext in '' $ac_executable_extensions; do
7774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7775 ac_cv_prog_AWK="$ac_prog"
7776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7777 break 2
7779 done
7780 done
7781 IFS=$as_save_IFS
7785 AWK=$ac_cv_prog_AWK
7786 if test -n "$AWK"; then
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7788 $as_echo "$AWK" >&6; }
7789 else
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791 $as_echo "no" >&6; }
7795 test -n "$AWK" && break
7796 done
7798 # We need awk to create options.c and options.h.
7799 # Bail out if it's missing.
7800 case ${AWK} in
7801 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7802 esac
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7805 $as_echo_n "checking whether ln -s works... " >&6; }
7806 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7807 $as_echo_n "(cached) " >&6
7808 else
7809 rm -f conftestdata_t
7810 echo >conftestdata_f
7811 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7812 then
7813 gcc_cv_prog_LN_S="ln -s"
7814 else
7815 if ln conftestdata_f conftestdata_t 2>/dev/null
7816 then
7817 gcc_cv_prog_LN_S=ln
7818 else
7819 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7820 then
7821 gcc_cv_prog_LN_S="cp -p"
7822 else
7823 gcc_cv_prog_LN_S=cp
7827 rm -f conftestdata_f conftestdata_t
7830 LN_S="$gcc_cv_prog_LN_S"
7831 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7833 $as_echo "yes" >&6; }
7834 else
7835 if test "$gcc_cv_prog_LN_S" = "ln"; then
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7837 $as_echo "no, using ln" >&6; }
7838 else
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7840 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7845 $as_echo_n "checking whether ln works... " >&6; }
7846 if test "${acx_cv_prog_LN+set}" = set; then :
7847 $as_echo_n "(cached) " >&6
7848 else
7849 rm -f conftestdata_t
7850 echo >conftestdata_f
7851 if ln conftestdata_f conftestdata_t 2>/dev/null
7852 then
7853 acx_cv_prog_LN=ln
7854 else
7855 acx_cv_prog_LN=no
7857 rm -f conftestdata_f conftestdata_t
7860 if test $acx_cv_prog_LN = no; then
7861 LN="$LN_S"
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7863 $as_echo "no, using $LN" >&6; }
7864 else
7865 LN="$acx_cv_prog_LN"
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7867 $as_echo "yes" >&6; }
7870 if test -n "$ac_tool_prefix"; then
7871 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7872 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7874 $as_echo_n "checking for $ac_word... " >&6; }
7875 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7876 $as_echo_n "(cached) " >&6
7877 else
7878 if test -n "$RANLIB"; then
7879 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7880 else
7881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882 for as_dir in $PATH
7884 IFS=$as_save_IFS
7885 test -z "$as_dir" && as_dir=.
7886 for ac_exec_ext in '' $ac_executable_extensions; do
7887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7888 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7890 break 2
7892 done
7893 done
7894 IFS=$as_save_IFS
7898 RANLIB=$ac_cv_prog_RANLIB
7899 if test -n "$RANLIB"; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7901 $as_echo "$RANLIB" >&6; }
7902 else
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 $as_echo "no" >&6; }
7909 if test -z "$ac_cv_prog_RANLIB"; then
7910 ac_ct_RANLIB=$RANLIB
7911 # Extract the first word of "ranlib", so it can be a program name with args.
7912 set dummy ranlib; ac_word=$2
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7914 $as_echo_n "checking for $ac_word... " >&6; }
7915 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7916 $as_echo_n "(cached) " >&6
7917 else
7918 if test -n "$ac_ct_RANLIB"; then
7919 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7920 else
7921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922 for as_dir in $PATH
7924 IFS=$as_save_IFS
7925 test -z "$as_dir" && as_dir=.
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7928 ac_cv_prog_ac_ct_RANLIB="ranlib"
7929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7930 break 2
7932 done
7933 done
7934 IFS=$as_save_IFS
7938 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7939 if test -n "$ac_ct_RANLIB"; then
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7941 $as_echo "$ac_ct_RANLIB" >&6; }
7942 else
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944 $as_echo "no" >&6; }
7947 if test "x$ac_ct_RANLIB" = x; then
7948 RANLIB=":"
7949 else
7950 case $cross_compiling:$ac_tool_warned in
7951 yes:)
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7954 ac_tool_warned=yes ;;
7955 esac
7956 RANLIB=$ac_ct_RANLIB
7958 else
7959 RANLIB="$ac_cv_prog_RANLIB"
7962 ranlib_flags=""
7965 # Find a good install program. We prefer a C program (faster),
7966 # so one script is as good as another. But avoid the broken or
7967 # incompatible versions:
7968 # SysV /etc/install, /usr/sbin/install
7969 # SunOS /usr/etc/install
7970 # IRIX /sbin/install
7971 # AIX /bin/install
7972 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7973 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7974 # ./install, which can be erroneously created by make from ./install.sh.
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7976 $as_echo_n "checking for a BSD compatible install... " >&6; }
7977 if test -z "$INSTALL"; then
7978 if test "${ac_cv_path_install+set}" = set; then :
7979 $as_echo_n "(cached) " >&6
7980 else
7981 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7982 for ac_dir in $PATH; do
7983 # Account for people who put trailing slashes in PATH elements.
7984 case "$ac_dir/" in
7985 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7987 # OSF1 and SCO ODT 3.0 have their own names for install.
7988 for ac_prog in ginstall scoinst install; do
7989 if test -f $ac_dir/$ac_prog; then
7990 if test $ac_prog = install &&
7991 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7992 # AIX install. It has an incompatible calling convention.
7993 # OSF/1 installbsd also uses dspmsg, but is usable.
7995 else
7996 ac_cv_path_install="$ac_dir/$ac_prog -c"
7997 break 2
8000 done
8002 esac
8003 done
8004 IFS="$ac_save_IFS"
8007 if test "${ac_cv_path_install+set}" = set; then
8008 INSTALL="$ac_cv_path_install"
8009 else
8010 # As a last resort, use the slow shell script. We don't cache a
8011 # path for INSTALL within a source directory, because that will
8012 # break other packages using the cache if that directory is
8013 # removed, or if the path is relative.
8014 INSTALL="$ac_install_sh"
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8018 $as_echo "$INSTALL" >&6; }
8020 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8021 # It thinks the first close brace ends the variable substitution.
8022 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8024 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8027 # See if cmp has --ignore-initial.
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8029 $as_echo_n "checking for cmp's capabilities... " >&6; }
8030 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8031 $as_echo_n "(cached) " >&6
8032 else
8033 echo abfoo >t1
8034 echo cdfoo >t2
8035 gcc_cv_prog_cmp_skip=slowcompare
8036 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8037 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8039 else
8040 gcc_cv_prog_cmp_skip=gnucompare
8043 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8044 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8045 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8047 else
8048 gcc_cv_prog_cmp_skip=fastcompare
8052 rm t1 t2
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8056 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8057 make_compare_target=$gcc_cv_prog_cmp_skip
8061 # See if we have the mktemp command.
8062 # Extract the first word of "mktemp", so it can be a program name with args.
8063 set dummy mktemp; ac_word=$2
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8065 $as_echo_n "checking for $ac_word... " >&6; }
8066 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8067 $as_echo_n "(cached) " >&6
8068 else
8069 if test -n "$have_mktemp_command"; then
8070 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8071 else
8072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8073 for as_dir in $PATH
8075 IFS=$as_save_IFS
8076 test -z "$as_dir" && as_dir=.
8077 for ac_exec_ext in '' $ac_executable_extensions; do
8078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8079 ac_cv_prog_have_mktemp_command="yes"
8080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8081 break 2
8083 done
8084 done
8085 IFS=$as_save_IFS
8087 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8090 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8091 if test -n "$have_mktemp_command"; then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8093 $as_echo "$have_mktemp_command" >&6; }
8094 else
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096 $as_echo "no" >&6; }
8101 # See if makeinfo has been installed and is modern enough
8102 # that we can use it.
8104 # Extract the first word of "makeinfo", so it can be a program name with args.
8105 set dummy makeinfo; ac_word=$2
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8107 $as_echo_n "checking for $ac_word... " >&6; }
8108 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8109 $as_echo_n "(cached) " >&6
8110 else
8111 if test -n "$MAKEINFO"; then
8112 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8113 else
8114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115 for as_dir in $PATH
8117 IFS=$as_save_IFS
8118 test -z "$as_dir" && as_dir=.
8119 for ac_exec_ext in '' $ac_executable_extensions; do
8120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8121 ac_cv_prog_MAKEINFO="makeinfo"
8122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8123 break 2
8125 done
8126 done
8127 IFS=$as_save_IFS
8131 MAKEINFO=$ac_cv_prog_MAKEINFO
8132 if test -n "$MAKEINFO"; then
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8134 $as_echo "$MAKEINFO" >&6; }
8135 else
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137 $as_echo "no" >&6; }
8141 if test -n "$MAKEINFO"; then
8142 # Found it, now check the version.
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8144 $as_echo_n "checking for modern makeinfo... " >&6; }
8145 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8146 $as_echo_n "(cached) " >&6
8147 else
8148 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8149 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8151 case $ac_prog_version in
8152 '') gcc_cv_prog_makeinfo_modern=no;;
8153 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8154 *) gcc_cv_prog_makeinfo_modern=no;;
8155 esac
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8159 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8160 else
8161 gcc_cv_prog_makeinfo_modern=no
8163 if test $gcc_cv_prog_makeinfo_modern = no; then
8164 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8167 if test $gcc_cv_prog_makeinfo_modern = no; then
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8169 *** Makeinfo is missing or too old.
8170 *** Info documentation will not be built." >&5
8171 $as_echo "$as_me: WARNING:
8172 *** Makeinfo is missing or too old.
8173 *** Info documentation will not be built." >&2;}
8174 BUILD_INFO=
8175 else
8176 BUILD_INFO=info
8180 # Is pod2man recent enough to regenerate manpages?
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8182 $as_echo_n "checking for recent Pod::Man... " >&6; }
8183 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8185 $as_echo "yes" >&6; }
8186 GENERATED_MANPAGES=generated-manpages
8187 else
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189 $as_echo "no" >&6; }
8190 GENERATED_MANPAGES=
8194 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8196 # How about lex?
8197 for ac_prog in flex
8199 # Extract the first word of "$ac_prog", so it can be a program name with args.
8200 set dummy $ac_prog; ac_word=$2
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8202 $as_echo_n "checking for $ac_word... " >&6; }
8203 if test "${ac_cv_prog_FLEX+set}" = set; then :
8204 $as_echo_n "(cached) " >&6
8205 else
8206 if test -n "$FLEX"; then
8207 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8208 else
8209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210 for as_dir in $PATH
8212 IFS=$as_save_IFS
8213 test -z "$as_dir" && as_dir=.
8214 for ac_exec_ext in '' $ac_executable_extensions; do
8215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8216 ac_cv_prog_FLEX="$ac_prog"
8217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8218 break 2
8220 done
8221 done
8222 IFS=$as_save_IFS
8226 FLEX=$ac_cv_prog_FLEX
8227 if test -n "$FLEX"; then
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8229 $as_echo "$FLEX" >&6; }
8230 else
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 $as_echo "no" >&6; }
8236 test -n "$FLEX" && break
8237 done
8238 test -n "$FLEX" || FLEX="$MISSING flex"
8241 # Bison?
8242 for ac_prog in bison
8244 # Extract the first word of "$ac_prog", so it can be a program name with args.
8245 set dummy $ac_prog; ac_word=$2
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8247 $as_echo_n "checking for $ac_word... " >&6; }
8248 if test "${ac_cv_prog_BISON+set}" = set; then :
8249 $as_echo_n "(cached) " >&6
8250 else
8251 if test -n "$BISON"; then
8252 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8253 else
8254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8255 for as_dir in $PATH
8257 IFS=$as_save_IFS
8258 test -z "$as_dir" && as_dir=.
8259 for ac_exec_ext in '' $ac_executable_extensions; do
8260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8261 ac_cv_prog_BISON="$ac_prog"
8262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8263 break 2
8265 done
8266 done
8267 IFS=$as_save_IFS
8271 BISON=$ac_cv_prog_BISON
8272 if test -n "$BISON"; then
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8274 $as_echo "$BISON" >&6; }
8275 else
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8281 test -n "$BISON" && break
8282 done
8283 test -n "$BISON" || BISON="$MISSING bison"
8286 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8287 # check for build == host before using them.
8289 # NM
8290 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8291 && test -d ../binutils ; then
8292 NM='${objdir}/../binutils/nm-new'
8293 else
8294 # Extract the first word of "nm", so it can be a program name with args.
8295 set dummy nm; ac_word=$2
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297 $as_echo_n "checking for $ac_word... " >&6; }
8298 if test "${ac_cv_prog_NM+set}" = set; then :
8299 $as_echo_n "(cached) " >&6
8300 else
8301 if test -n "$NM"; then
8302 ac_cv_prog_NM="$NM" # Let the user override the test.
8303 else
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305 for as_dir in $PATH
8307 IFS=$as_save_IFS
8308 test -z "$as_dir" && as_dir=.
8309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8311 ac_cv_prog_NM="nm"
8312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8313 break 2
8315 done
8316 done
8317 IFS=$as_save_IFS
8319 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8322 NM=$ac_cv_prog_NM
8323 if test -n "$NM"; then
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8325 $as_echo "$NM" >&6; }
8326 else
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328 $as_echo "no" >&6; }
8334 # AR
8335 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8336 && test -d ../binutils ; then
8337 AR='${objdir}/../binutils/ar'
8338 else
8339 # Extract the first word of "ar", so it can be a program name with args.
8340 set dummy ar; ac_word=$2
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8342 $as_echo_n "checking for $ac_word... " >&6; }
8343 if test "${ac_cv_prog_AR+set}" = set; then :
8344 $as_echo_n "(cached) " >&6
8345 else
8346 if test -n "$AR"; then
8347 ac_cv_prog_AR="$AR" # Let the user override the test.
8348 else
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350 for as_dir in $PATH
8352 IFS=$as_save_IFS
8353 test -z "$as_dir" && as_dir=.
8354 for ac_exec_ext in '' $ac_executable_extensions; do
8355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8356 ac_cv_prog_AR="ar"
8357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8358 break 2
8360 done
8361 done
8362 IFS=$as_save_IFS
8364 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8367 AR=$ac_cv_prog_AR
8368 if test -n "$AR"; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8370 $as_echo "$AR" >&6; }
8371 else
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8373 $as_echo "no" >&6; }
8379 # The jit documentation looks better if built with sphinx, but can be
8380 # built with texinfo if sphinx is not available.
8381 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8382 # Extract the first word of "sphinx-build", so it can be a program name with args.
8383 set dummy sphinx-build; ac_word=$2
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8385 $as_echo_n "checking for $ac_word... " >&6; }
8386 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8387 $as_echo_n "(cached) " >&6
8388 else
8389 if test -n "$doc_build_sys"; then
8390 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8391 else
8392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393 for as_dir in $PATH
8395 IFS=$as_save_IFS
8396 test -z "$as_dir" && as_dir=.
8397 for ac_exec_ext in '' $ac_executable_extensions; do
8398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8399 ac_cv_prog_doc_build_sys="sphinx"
8400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8401 break 2
8403 done
8404 done
8405 IFS=$as_save_IFS
8407 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8410 doc_build_sys=$ac_cv_prog_doc_build_sys
8411 if test -n "$doc_build_sys"; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8413 $as_echo "$doc_build_sys" >&6; }
8414 else
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416 $as_echo "no" >&6; }
8421 # --------------------
8422 # Checks for C headers
8423 # --------------------
8425 # Need to reject headers which give warnings, so that the -Werror bootstrap
8426 # works later. *sigh* This needs to come before all header checks.
8428 ac_c_preproc_warn_flag=yes
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8431 $as_echo_n "checking for ANSI C header files... " >&6; }
8432 if test "${ac_cv_header_stdc+set}" = set; then :
8433 $as_echo_n "(cached) " >&6
8434 else
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8437 #include <stdlib.h>
8438 #include <stdarg.h>
8439 #include <string.h>
8440 #include <float.h>
8443 main ()
8447 return 0;
8449 _ACEOF
8450 if ac_fn_cxx_try_compile "$LINENO"; then :
8451 ac_cv_header_stdc=yes
8452 else
8453 ac_cv_header_stdc=no
8455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8457 if test $ac_cv_header_stdc = yes; then
8458 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460 /* end confdefs.h. */
8461 #include <string.h>
8463 _ACEOF
8464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8465 $EGREP "memchr" >/dev/null 2>&1; then :
8467 else
8468 ac_cv_header_stdc=no
8470 rm -f conftest*
8474 if test $ac_cv_header_stdc = yes; then
8475 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8477 /* end confdefs.h. */
8478 #include <stdlib.h>
8480 _ACEOF
8481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8482 $EGREP "free" >/dev/null 2>&1; then :
8484 else
8485 ac_cv_header_stdc=no
8487 rm -f conftest*
8491 if test $ac_cv_header_stdc = yes; then
8492 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8493 if test "$cross_compiling" = yes; then :
8495 else
8496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8497 /* end confdefs.h. */
8498 #include <ctype.h>
8499 #include <stdlib.h>
8500 #if ((' ' & 0x0FF) == 0x020)
8501 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8502 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8503 #else
8504 # define ISLOWER(c) \
8505 (('a' <= (c) && (c) <= 'i') \
8506 || ('j' <= (c) && (c) <= 'r') \
8507 || ('s' <= (c) && (c) <= 'z'))
8508 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8509 #endif
8511 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8513 main ()
8515 int i;
8516 for (i = 0; i < 256; i++)
8517 if (XOR (islower (i), ISLOWER (i))
8518 || toupper (i) != TOUPPER (i))
8519 return 2;
8520 return 0;
8522 _ACEOF
8523 if ac_fn_cxx_try_run "$LINENO"; then :
8525 else
8526 ac_cv_header_stdc=no
8528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8529 conftest.$ac_objext conftest.beam conftest.$ac_ext
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8535 $as_echo "$ac_cv_header_stdc" >&6; }
8536 if test $ac_cv_header_stdc = yes; then
8538 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8543 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8544 if test "${ac_cv_header_time+set}" = set; then :
8545 $as_echo_n "(cached) " >&6
8546 else
8547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8548 /* end confdefs.h. */
8549 #include <sys/types.h>
8550 #include <sys/time.h>
8551 #include <time.h>
8554 main ()
8556 if ((struct tm *) 0)
8557 return 0;
8559 return 0;
8561 _ACEOF
8562 if ac_fn_cxx_try_compile "$LINENO"; then :
8563 ac_cv_header_time=yes
8564 else
8565 ac_cv_header_time=no
8567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8570 $as_echo "$ac_cv_header_time" >&6; }
8571 if test $ac_cv_header_time = yes; then
8573 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8578 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8579 if test "${gcc_cv_header_string+set}" = set; then :
8580 $as_echo_n "(cached) " >&6
8581 else
8582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8583 /* end confdefs.h. */
8584 #include <string.h>
8585 #include <strings.h>
8587 main ()
8591 return 0;
8593 _ACEOF
8594 if ac_fn_cxx_try_compile "$LINENO"; then :
8595 gcc_cv_header_string=yes
8596 else
8597 gcc_cv_header_string=no
8599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8602 $as_echo "$gcc_cv_header_string" >&6; }
8603 if test $gcc_cv_header_string = yes; then
8605 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8610 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8611 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8612 $as_echo_n "(cached) " >&6
8613 else
8614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8615 /* end confdefs.h. */
8616 #include <sys/types.h>
8617 #include <sys/wait.h>
8618 #ifndef WEXITSTATUS
8619 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8620 #endif
8621 #ifndef WIFEXITED
8622 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8623 #endif
8626 main ()
8628 int s;
8629 wait (&s);
8630 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8632 return 0;
8634 _ACEOF
8635 if ac_fn_cxx_try_compile "$LINENO"; then :
8636 ac_cv_header_sys_wait_h=yes
8637 else
8638 ac_cv_header_sys_wait_h=no
8640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8643 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8644 if test $ac_cv_header_sys_wait_h = yes; then
8646 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8651 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8652 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8653 $as_echo_n "(cached) " >&6
8654 else
8655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656 /* end confdefs.h. */
8657 #include <sys/types.h>
8658 #include <termios.h>
8659 #ifdef TIOCGWINSZ
8661 #endif
8663 _ACEOF
8664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8665 $EGREP "yes" >/dev/null 2>&1; then :
8666 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8667 else
8668 ac_cv_sys_tiocgwinsz_in_termios_h=no
8670 rm -f conftest*
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8674 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8676 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8678 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8679 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8680 $as_echo_n "(cached) " >&6
8681 else
8682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8683 /* end confdefs.h. */
8684 #include <sys/types.h>
8685 #include <sys/ioctl.h>
8686 #ifdef TIOCGWINSZ
8688 #endif
8690 _ACEOF
8691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8692 $EGREP "yes" >/dev/null 2>&1; then :
8693 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8694 else
8695 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8697 rm -f conftest*
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8701 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8703 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8705 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8710 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8711 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8712 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8713 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8714 do :
8715 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8716 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8717 eval as_val=\$$as_ac_Header
8718 if test "x$as_val" = x""yes; then :
8719 cat >>confdefs.h <<_ACEOF
8720 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8721 _ACEOF
8724 done
8727 # Check for thread headers.
8728 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8729 if test "x$ac_cv_header_thread_h" = x""yes; then :
8730 have_thread_h=yes
8731 else
8732 have_thread_h=
8735 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8736 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8737 have_pthread_h=yes
8738 else
8739 have_pthread_h=
8743 # These tests can't be done till we know if we have limits.h.
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8745 $as_echo_n "checking for CHAR_BIT... " >&6; }
8746 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8747 $as_echo_n "(cached) " >&6
8748 else
8749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8750 /* end confdefs.h. */
8751 #ifdef HAVE_LIMITS_H
8752 #include <limits.h>
8753 #endif
8754 #ifdef CHAR_BIT
8755 found
8756 #endif
8757 _ACEOF
8758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8759 $EGREP "found" >/dev/null 2>&1; then :
8760 gcc_cv_decl_char_bit=yes
8761 else
8762 gcc_cv_decl_char_bit=no
8764 rm -f conftest*
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8769 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8770 if test $gcc_cv_decl_char_bit = no; then
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8772 $as_echo_n "checking number of bits in a byte... " >&6; }
8773 if test "${gcc_cv_c_nbby+set}" = set; then :
8774 $as_echo_n "(cached) " >&6
8775 else
8777 gcc_cv_c_nbby=
8778 while test $i -lt 65; do
8779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8780 /* end confdefs.h. */
8783 main ()
8785 switch(0) {
8786 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8787 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8790 return 0;
8792 _ACEOF
8793 if ac_fn_cxx_try_compile "$LINENO"; then :
8794 gcc_cv_c_nbby=$i; break
8796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8797 i=`expr $i + 1`
8798 done
8799 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8803 $as_echo "$gcc_cv_c_nbby" >&6; }
8804 if test $gcc_cv_c_nbby = failed; then
8805 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8806 else
8808 cat >>confdefs.h <<_ACEOF
8809 #define CHAR_BIT $gcc_cv_c_nbby
8810 _ACEOF
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8815 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8816 if test "${ac_cv_c_bigendian+set}" = set; then :
8817 $as_echo_n "(cached) " >&6
8818 else
8819 ac_cv_c_bigendian=unknown
8820 # See if we're dealing with a universal compiler.
8821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8822 /* end confdefs.h. */
8823 #ifndef __APPLE_CC__
8824 not a universal capable compiler
8825 #endif
8826 typedef int dummy;
8828 _ACEOF
8829 if ac_fn_cxx_try_compile "$LINENO"; then :
8831 # Check for potential -arch flags. It is not universal unless
8832 # there are at least two -arch flags with different values.
8833 ac_arch=
8834 ac_prev=
8835 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8836 if test -n "$ac_prev"; then
8837 case $ac_word in
8838 i?86 | x86_64 | ppc | ppc64)
8839 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8840 ac_arch=$ac_word
8841 else
8842 ac_cv_c_bigendian=universal
8843 break
8846 esac
8847 ac_prev=
8848 elif test "x$ac_word" = "x-arch"; then
8849 ac_prev=arch
8851 done
8853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8854 if test $ac_cv_c_bigendian = unknown; then
8855 # See if sys/param.h defines the BYTE_ORDER macro.
8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8858 #include <sys/types.h>
8859 #include <sys/param.h>
8862 main ()
8864 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8865 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8866 && LITTLE_ENDIAN)
8867 bogus endian macros
8868 #endif
8871 return 0;
8873 _ACEOF
8874 if ac_fn_cxx_try_compile "$LINENO"; then :
8875 # It does; now see whether it defined to BIG_ENDIAN or not.
8876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8877 /* end confdefs.h. */
8878 #include <sys/types.h>
8879 #include <sys/param.h>
8882 main ()
8884 #if BYTE_ORDER != BIG_ENDIAN
8885 not big endian
8886 #endif
8889 return 0;
8891 _ACEOF
8892 if ac_fn_cxx_try_compile "$LINENO"; then :
8893 ac_cv_c_bigendian=yes
8894 else
8895 ac_cv_c_bigendian=no
8897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8901 if test $ac_cv_c_bigendian = unknown; then
8902 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8905 #include <limits.h>
8908 main ()
8910 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8911 bogus endian macros
8912 #endif
8915 return 0;
8917 _ACEOF
8918 if ac_fn_cxx_try_compile "$LINENO"; then :
8919 # It does; now see whether it defined to _BIG_ENDIAN or not.
8920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921 /* end confdefs.h. */
8922 #include <limits.h>
8925 main ()
8927 #ifndef _BIG_ENDIAN
8928 not big endian
8929 #endif
8932 return 0;
8934 _ACEOF
8935 if ac_fn_cxx_try_compile "$LINENO"; then :
8936 ac_cv_c_bigendian=yes
8937 else
8938 ac_cv_c_bigendian=no
8940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8944 if test $ac_cv_c_bigendian = unknown; then
8945 # Compile a test program.
8946 if test "$cross_compiling" = yes; then :
8947 # Try to guess by grepping values from an object file.
8948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8949 /* end confdefs.h. */
8950 short int ascii_mm[] =
8951 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8952 short int ascii_ii[] =
8953 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8954 int use_ascii (int i) {
8955 return ascii_mm[i] + ascii_ii[i];
8957 short int ebcdic_ii[] =
8958 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8959 short int ebcdic_mm[] =
8960 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8961 int use_ebcdic (int i) {
8962 return ebcdic_mm[i] + ebcdic_ii[i];
8964 extern int foo;
8967 main ()
8969 return use_ascii (foo) == use_ebcdic (foo);
8971 return 0;
8973 _ACEOF
8974 if ac_fn_cxx_try_compile "$LINENO"; then :
8975 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8976 ac_cv_c_bigendian=yes
8978 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8979 if test "$ac_cv_c_bigendian" = unknown; then
8980 ac_cv_c_bigendian=no
8981 else
8982 # finding both strings is unlikely to happen, but who knows?
8983 ac_cv_c_bigendian=unknown
8987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8988 else
8989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8990 /* end confdefs.h. */
8991 $ac_includes_default
8993 main ()
8996 /* Are we little or big endian? From Harbison&Steele. */
8997 union
8999 long int l;
9000 char c[sizeof (long int)];
9001 } u;
9002 u.l = 1;
9003 return u.c[sizeof (long int) - 1] == 1;
9006 return 0;
9008 _ACEOF
9009 if ac_fn_cxx_try_run "$LINENO"; then :
9010 ac_cv_c_bigendian=no
9011 else
9012 ac_cv_c_bigendian=yes
9014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9015 conftest.$ac_objext conftest.beam conftest.$ac_ext
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9021 $as_echo "$ac_cv_c_bigendian" >&6; }
9022 case $ac_cv_c_bigendian in #(
9023 yes)
9024 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9025 ;; #(
9027 ;; #(
9028 universal)
9030 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9032 ;; #(
9034 as_fn_error "unknown endianness
9035 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9036 esac
9039 # ----------------------
9040 # Checks for C++ headers
9041 # ----------------------
9043 ac_ext=cpp
9044 ac_cpp='$CXXCPP $CPPFLAGS'
9045 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9046 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9047 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9049 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9050 if test -z "$CXXCPP"; then
9051 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9052 $as_echo_n "(cached) " >&6
9053 else
9054 # Double quotes because CXXCPP needs to be expanded
9055 for CXXCPP in "$CXX -E" "/lib/cpp"
9057 ac_preproc_ok=false
9058 for ac_cxx_preproc_warn_flag in '' yes
9060 # Use a header file that comes with gcc, so configuring glibc
9061 # with a fresh cross-compiler works.
9062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9063 # <limits.h> exists even on freestanding compilers.
9064 # On the NeXT, cc -E runs the code through the compiler's parser,
9065 # not just through cpp. "Syntax error" is here to catch this case.
9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9068 #ifdef __STDC__
9069 # include <limits.h>
9070 #else
9071 # include <assert.h>
9072 #endif
9073 Syntax error
9074 _ACEOF
9075 if ac_fn_cxx_try_cpp "$LINENO"; then :
9077 else
9078 # Broken: fails on valid input.
9079 continue
9081 rm -f conftest.err conftest.$ac_ext
9083 # OK, works on sane cases. Now check whether nonexistent headers
9084 # can be detected and how.
9085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086 /* end confdefs.h. */
9087 #include <ac_nonexistent.h>
9088 _ACEOF
9089 if ac_fn_cxx_try_cpp "$LINENO"; then :
9090 # Broken: success on invalid input.
9091 continue
9092 else
9093 # Passes both tests.
9094 ac_preproc_ok=:
9095 break
9097 rm -f conftest.err conftest.$ac_ext
9099 done
9100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9101 rm -f conftest.err conftest.$ac_ext
9102 if $ac_preproc_ok; then :
9103 break
9106 done
9107 ac_cv_prog_CXXCPP=$CXXCPP
9110 CXXCPP=$ac_cv_prog_CXXCPP
9111 else
9112 ac_cv_prog_CXXCPP=$CXXCPP
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9115 $as_echo "$CXXCPP" >&6; }
9116 ac_preproc_ok=false
9117 for ac_cxx_preproc_warn_flag in '' yes
9119 # Use a header file that comes with gcc, so configuring glibc
9120 # with a fresh cross-compiler works.
9121 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9122 # <limits.h> exists even on freestanding compilers.
9123 # On the NeXT, cc -E runs the code through the compiler's parser,
9124 # not just through cpp. "Syntax error" is here to catch this case.
9125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9126 /* end confdefs.h. */
9127 #ifdef __STDC__
9128 # include <limits.h>
9129 #else
9130 # include <assert.h>
9131 #endif
9132 Syntax error
9133 _ACEOF
9134 if ac_fn_cxx_try_cpp "$LINENO"; then :
9136 else
9137 # Broken: fails on valid input.
9138 continue
9140 rm -f conftest.err conftest.$ac_ext
9142 # OK, works on sane cases. Now check whether nonexistent headers
9143 # can be detected and how.
9144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h. */
9146 #include <ac_nonexistent.h>
9147 _ACEOF
9148 if ac_fn_cxx_try_cpp "$LINENO"; then :
9149 # Broken: success on invalid input.
9150 continue
9151 else
9152 # Passes both tests.
9153 ac_preproc_ok=:
9154 break
9156 rm -f conftest.err conftest.$ac_ext
9158 done
9159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9160 rm -f conftest.err conftest.$ac_ext
9161 if $ac_preproc_ok; then :
9163 else
9164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9167 See \`config.log' for more details." >&5
9168 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9169 See \`config.log' for more details." >&2;}; }
9172 ac_ext=cpp
9173 ac_cpp='$CXXCPP $CPPFLAGS'
9174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9179 for ac_header in unordered_map
9180 do :
9181 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9182 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9183 cat >>confdefs.h <<_ACEOF
9184 #define HAVE_UNORDERED_MAP 1
9185 _ACEOF
9188 done
9190 for ac_header in tr1/unordered_map
9191 do :
9192 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9193 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9194 cat >>confdefs.h <<_ACEOF
9195 #define HAVE_TR1_UNORDERED_MAP 1
9196 _ACEOF
9199 done
9201 for ac_header in ext/hash_map
9202 do :
9203 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9204 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9205 cat >>confdefs.h <<_ACEOF
9206 #define HAVE_EXT_HASH_MAP 1
9207 _ACEOF
9210 done
9213 # --------
9214 # Dependency checking.
9215 # --------
9217 rm -rf .tst 2>/dev/null
9218 mkdir .tst 2>/dev/null
9219 if test -d .tst; then
9220 am__leading_dot=.
9221 else
9222 am__leading_dot=_
9224 rmdir .tst 2>/dev/null
9226 DEPDIR="${am__leading_dot}deps"
9228 ac_config_commands="$ac_config_commands depdir"
9231 ac_config_commands="$ac_config_commands gccdepdir"
9234 depcc="$CXX" am_compiler_list=
9236 am_depcomp=$ac_aux_dir/depcomp
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9238 $as_echo_n "checking dependency style of $depcc... " >&6; }
9239 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9240 $as_echo_n "(cached) " >&6
9241 else
9242 if test -f "$am_depcomp"; then
9243 # We make a subdir and do the tests there. Otherwise we can end up
9244 # making bogus files that we don't know about and never remove. For
9245 # instance it was reported that on HP-UX the gcc test will end up
9246 # making a dummy file named `D' -- because `-MD' means `put the output
9247 # in D'.
9248 mkdir conftest.dir
9249 # Copy depcomp to subdir because otherwise we won't find it if we're
9250 # using a relative directory.
9251 cp "$am_depcomp" conftest.dir
9252 cd conftest.dir
9253 # We will build objects and dependencies in a subdirectory because
9254 # it helps to detect inapplicable dependency modes. For instance
9255 # both Tru64's cc and ICC support -MD to output dependencies as a
9256 # side effect of compilation, but ICC will put the dependencies in
9257 # the current directory while Tru64 will put them in the object
9258 # directory.
9259 mkdir sub
9261 am_cv_CXX_dependencies_compiler_type=none
9262 if test "$am_compiler_list" = ""; then
9263 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9265 for depmode in $am_compiler_list; do
9266 if test $depmode = none; then break; fi
9268 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9269 # Setup a source with many dependencies, because some compilers
9270 # like to wrap large dependency lists on column 80 (with \), and
9271 # we should not choose a depcomp mode which is confused by this.
9273 # We need to recreate these files for each test, as the compiler may
9274 # overwrite some of them when testing with obscure command lines.
9275 # This happens at least with the AIX C compiler.
9276 : > sub/conftest.c
9277 for i in 1 2 3 4 5 6; do
9278 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9279 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9280 # Solaris 8's {/usr,}/bin/sh.
9281 touch sub/conftst$i.h
9282 done
9283 echo "include sub/conftest.Po" > confmf
9285 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9286 # mode. It turns out that the SunPro C++ compiler does not properly
9287 # handle `-M -o', and we need to detect this.
9288 depcmd="depmode=$depmode \
9289 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9290 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9291 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9292 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9293 if env $depcmd > conftest.err 2>&1 &&
9294 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9295 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9296 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9297 # icc doesn't choke on unknown options, it will just issue warnings
9298 # or remarks (even with -Werror). So we grep stderr for any message
9299 # that says an option was ignored or not supported.
9300 # When given -MP, icc 7.0 and 7.1 complain thusly:
9301 # icc: Command line warning: ignoring option '-M'; no argument required
9302 # The diagnosis changed in icc 8.0:
9303 # icc: Command line remark: option '-MP' not supported
9304 if (grep 'ignoring option' conftest.err ||
9305 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9306 am_cv_CXX_dependencies_compiler_type=$depmode
9307 $as_echo "$as_me:$LINENO: success" >&5
9308 break
9311 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9312 sed -e 's/^/| /' < conftest.err >&5
9313 done
9315 cd ..
9316 rm -rf conftest.dir
9317 else
9318 am_cv_CXX_dependencies_compiler_type=none
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9323 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9324 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9325 then as_fn_error "no usable dependency style found" "$LINENO" 5
9326 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9331 # --------
9332 # UNSORTED
9333 # --------
9336 # These libraries may be used by collect2.
9337 # We may need a special search path to get them linked.
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9339 $as_echo_n "checking for collect2 libraries... " >&6; }
9340 if test "${gcc_cv_collect2_libs+set}" = set; then :
9341 $as_echo_n "(cached) " >&6
9342 else
9343 save_LIBS="$LIBS"
9344 for libs in '' -lld -lmld \
9345 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9346 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9348 LIBS="$libs"
9349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9350 /* end confdefs.h. */
9352 /* Override any GCC internal prototype to avoid an error.
9353 Use char because int might match the return type of a GCC
9354 builtin and then its argument prototype would still apply. */
9355 #ifdef __cplusplus
9356 extern "C"
9357 #endif
9358 char ldopen ();
9360 main ()
9362 return ldopen ();
9364 return 0;
9366 _ACEOF
9367 if ac_fn_cxx_try_link "$LINENO"; then :
9368 gcc_cv_collect2_libs="$libs"; break
9370 rm -f core conftest.err conftest.$ac_objext \
9371 conftest$ac_exeext conftest.$ac_ext
9372 done
9373 LIBS="$save_LIBS"
9374 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9377 $as_echo "$gcc_cv_collect2_libs" >&6; }
9378 case $gcc_cv_collect2_libs in
9379 "none required") ;;
9380 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9381 esac
9384 # When building Ada code on Alpha, we need exc_resume which is usually in
9385 # -lexc. So test for it.
9386 save_LIBS="$LIBS"
9387 LIBS=
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9389 $as_echo_n "checking for library containing exc_resume... " >&6; }
9390 if test "${ac_cv_search_exc_resume+set}" = set; then :
9391 $as_echo_n "(cached) " >&6
9392 else
9393 ac_func_search_save_LIBS=$LIBS
9394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9395 /* end confdefs.h. */
9397 /* Override any GCC internal prototype to avoid an error.
9398 Use char because int might match the return type of a GCC
9399 builtin and then its argument prototype would still apply. */
9400 #ifdef __cplusplus
9401 extern "C"
9402 #endif
9403 char exc_resume ();
9405 main ()
9407 return exc_resume ();
9409 return 0;
9411 _ACEOF
9412 for ac_lib in '' exc; do
9413 if test -z "$ac_lib"; then
9414 ac_res="none required"
9415 else
9416 ac_res=-l$ac_lib
9417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9419 if ac_fn_cxx_try_link "$LINENO"; then :
9420 ac_cv_search_exc_resume=$ac_res
9422 rm -f core conftest.err conftest.$ac_objext \
9423 conftest$ac_exeext
9424 if test "${ac_cv_search_exc_resume+set}" = set; then :
9425 break
9427 done
9428 if test "${ac_cv_search_exc_resume+set}" = set; then :
9430 else
9431 ac_cv_search_exc_resume=no
9433 rm conftest.$ac_ext
9434 LIBS=$ac_func_search_save_LIBS
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9437 $as_echo "$ac_cv_search_exc_resume" >&6; }
9438 ac_res=$ac_cv_search_exc_resume
9439 if test "$ac_res" != no; then :
9440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9444 GNAT_LIBEXC="$LIBS"
9445 LIBS="$save_LIBS"
9448 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9449 save_LIBS="$LIBS"
9450 LIBS=
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9452 $as_echo_n "checking for library containing kstat_open... " >&6; }
9453 if test "${ac_cv_search_kstat_open+set}" = set; then :
9454 $as_echo_n "(cached) " >&6
9455 else
9456 ac_func_search_save_LIBS=$LIBS
9457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9458 /* end confdefs.h. */
9460 /* Override any GCC internal prototype to avoid an error.
9461 Use char because int might match the return type of a GCC
9462 builtin and then its argument prototype would still apply. */
9463 #ifdef __cplusplus
9464 extern "C"
9465 #endif
9466 char kstat_open ();
9468 main ()
9470 return kstat_open ();
9472 return 0;
9474 _ACEOF
9475 for ac_lib in '' kstat; do
9476 if test -z "$ac_lib"; then
9477 ac_res="none required"
9478 else
9479 ac_res=-l$ac_lib
9480 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9482 if ac_fn_cxx_try_link "$LINENO"; then :
9483 ac_cv_search_kstat_open=$ac_res
9485 rm -f core conftest.err conftest.$ac_objext \
9486 conftest$ac_exeext
9487 if test "${ac_cv_search_kstat_open+set}" = set; then :
9488 break
9490 done
9491 if test "${ac_cv_search_kstat_open+set}" = set; then :
9493 else
9494 ac_cv_search_kstat_open=no
9496 rm conftest.$ac_ext
9497 LIBS=$ac_func_search_save_LIBS
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9500 $as_echo "$ac_cv_search_kstat_open" >&6; }
9501 ac_res=$ac_cv_search_kstat_open
9502 if test "$ac_res" != no; then :
9503 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9507 EXTRA_GCC_LIBS="$LIBS"
9508 LIBS="$save_LIBS"
9511 # Some systems put ldexp and frexp in libm instead of libc; assume
9512 # they're both in the same place. jcf-dump needs them.
9513 save_LIBS="$LIBS"
9514 LIBS=
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9516 $as_echo_n "checking for library containing ldexp... " >&6; }
9517 if test "${ac_cv_search_ldexp+set}" = set; then :
9518 $as_echo_n "(cached) " >&6
9519 else
9520 ac_func_search_save_LIBS=$LIBS
9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h. */
9524 /* Override any GCC internal prototype to avoid an error.
9525 Use char because int might match the return type of a GCC
9526 builtin and then its argument prototype would still apply. */
9527 #ifdef __cplusplus
9528 extern "C"
9529 #endif
9530 char ldexp ();
9532 main ()
9534 return ldexp ();
9536 return 0;
9538 _ACEOF
9539 for ac_lib in '' m; do
9540 if test -z "$ac_lib"; then
9541 ac_res="none required"
9542 else
9543 ac_res=-l$ac_lib
9544 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9546 if ac_fn_cxx_try_link "$LINENO"; then :
9547 ac_cv_search_ldexp=$ac_res
9549 rm -f core conftest.err conftest.$ac_objext \
9550 conftest$ac_exeext
9551 if test "${ac_cv_search_ldexp+set}" = set; then :
9552 break
9554 done
9555 if test "${ac_cv_search_ldexp+set}" = set; then :
9557 else
9558 ac_cv_search_ldexp=no
9560 rm conftest.$ac_ext
9561 LIBS=$ac_func_search_save_LIBS
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9564 $as_echo "$ac_cv_search_ldexp" >&6; }
9565 ac_res=$ac_cv_search_ldexp
9566 if test "$ac_res" != no; then :
9567 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9571 LDEXP_LIB="$LIBS"
9572 LIBS="$save_LIBS"
9575 # Use <inttypes.h> only if it exists,
9576 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9577 # PRId64
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9579 $as_echo_n "checking for inttypes.h... " >&6; }
9580 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9581 $as_echo_n "(cached) " >&6
9582 else
9583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9584 /* end confdefs.h. */
9585 #define __STDC_FORMAT_MACROS
9586 #include <sys/types.h>
9587 #include <inttypes.h>
9589 main ()
9591 intmax_t i = -1;
9592 #ifndef PRId64
9593 choke me
9594 #endif
9596 return 0;
9598 _ACEOF
9599 if ac_fn_cxx_try_compile "$LINENO"; then :
9600 gcc_cv_header_inttypes_h=yes
9601 else
9602 gcc_cv_header_inttypes_h=no
9604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9608 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9609 if test $gcc_cv_header_inttypes_h = yes; then
9611 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9617 for ac_func in times clock kill getrlimit setrlimit atoq \
9618 popen sysconf strsignal getrusage nl_langinfo \
9619 gettimeofday mbstowcs wcswidth mmap setlocale \
9620 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
9621 do :
9622 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9623 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9624 eval as_val=\$$as_ac_var
9625 if test "x$as_val" = x""yes; then :
9626 cat >>confdefs.h <<_ACEOF
9627 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9628 _ACEOF
9631 done
9634 if test x$ac_cv_func_mbstowcs = xyes; then
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9636 $as_echo_n "checking whether mbstowcs works... " >&6; }
9637 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9638 $as_echo_n "(cached) " >&6
9639 else
9640 if test "$cross_compiling" = yes; then :
9641 gcc_cv_func_mbstowcs_works=yes
9642 else
9643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9644 /* end confdefs.h. */
9645 #include <stdlib.h>
9646 int main()
9648 mbstowcs(0, "", 0);
9649 return 0;
9651 _ACEOF
9652 if ac_fn_cxx_try_run "$LINENO"; then :
9653 gcc_cv_func_mbstowcs_works=yes
9654 else
9655 gcc_cv_func_mbstowcs_works=no
9657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9658 conftest.$ac_objext conftest.beam conftest.$ac_ext
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9663 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9664 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9666 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9671 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9672 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9674 else
9676 cat >>confdefs.h <<_ACEOF
9677 #define ssize_t int
9678 _ACEOF
9682 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9683 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9685 else
9687 cat >>confdefs.h <<_ACEOF
9688 #define caddr_t char *
9689 _ACEOF
9695 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9696 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9697 gcc_header_sys_mman_h=yes
9698 else
9699 gcc_header_sys_mman_h=no
9702 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9703 if test "x$ac_cv_func_mmap" = x""yes; then :
9704 gcc_func_mmap=yes
9705 else
9706 gcc_func_mmap=no
9709 if test "$gcc_header_sys_mman_h" != yes \
9710 || test "$gcc_func_mmap" != yes; then
9711 gcc_cv_func_mmap_file=no
9712 gcc_cv_func_mmap_dev_zero=no
9713 gcc_cv_func_mmap_anon=no
9714 else
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9716 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9717 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9718 $as_echo_n "(cached) " >&6
9719 else
9720 # Add a system to this blacklist if
9721 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9722 # memory area containing the same data that you'd get if you applied
9723 # read() to the same fd. The only system known to have a problem here
9724 # is VMS, where text files have record structure.
9725 case "$host_os" in
9726 *vms* | ultrix*)
9727 gcc_cv_func_mmap_file=no ;;
9729 gcc_cv_func_mmap_file=yes;;
9730 esac
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9733 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9735 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9736 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9737 $as_echo_n "(cached) " >&6
9738 else
9739 # Add a system to this blacklist if it has mmap() but /dev/zero
9740 # does not exist, or if mmapping /dev/zero does not give anonymous
9741 # zeroed pages with both the following properties:
9742 # 1. If you map N consecutive pages in with one call, and then
9743 # unmap any subset of those pages, the pages that were not
9744 # explicitly unmapped remain accessible.
9745 # 2. If you map two adjacent blocks of memory and then unmap them
9746 # both at once, they must both go away.
9747 # Systems known to be in this category are Windows (all variants),
9748 # VMS, and Darwin.
9749 case "$host_os" in
9750 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9751 gcc_cv_func_mmap_dev_zero=no ;;
9753 gcc_cv_func_mmap_dev_zero=yes;;
9754 esac
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9757 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9759 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9761 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9762 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9763 $as_echo_n "(cached) " >&6
9764 else
9765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9766 /* end confdefs.h. */
9767 #include <sys/types.h>
9768 #include <sys/mman.h>
9769 #include <unistd.h>
9771 #ifndef MAP_ANONYMOUS
9772 #define MAP_ANONYMOUS MAP_ANON
9773 #endif
9776 main ()
9778 int n = MAP_ANONYMOUS;
9780 return 0;
9782 _ACEOF
9783 if ac_fn_cxx_try_compile "$LINENO"; then :
9784 gcc_cv_decl_map_anon=yes
9785 else
9786 gcc_cv_decl_map_anon=no
9788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9791 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9793 if test $gcc_cv_decl_map_anon = no; then
9794 gcc_cv_func_mmap_anon=no
9795 else
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9797 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9798 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9799 $as_echo_n "(cached) " >&6
9800 else
9801 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9802 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9803 # doesn't give anonymous zeroed pages with the same properties listed
9804 # above for use of /dev/zero.
9805 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9806 case "$host_os" in
9807 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9808 gcc_cv_func_mmap_anon=no ;;
9810 gcc_cv_func_mmap_anon=yes;;
9811 esac
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9814 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9818 if test $gcc_cv_func_mmap_file = yes; then
9820 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9823 if test $gcc_cv_func_mmap_dev_zero = yes; then
9825 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9828 if test $gcc_cv_func_mmap_anon = yes; then
9830 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9835 case "${host}" in
9836 *-*-*vms*)
9837 # Under VMS, vfork works very differently than on Unix. The standard test
9838 # won't work, and it isn't easily adaptable. It makes more sense to
9839 # just force it.
9840 ac_cv_func_vfork_works=yes
9842 esac
9843 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9844 if test "x$ac_cv_type_pid_t" = x""yes; then :
9846 else
9848 cat >>confdefs.h <<_ACEOF
9849 #define pid_t int
9850 _ACEOF
9854 for ac_header in vfork.h
9855 do :
9856 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9857 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9858 cat >>confdefs.h <<_ACEOF
9859 #define HAVE_VFORK_H 1
9860 _ACEOF
9863 done
9865 for ac_func in fork vfork
9866 do :
9867 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9868 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9869 eval as_val=\$$as_ac_var
9870 if test "x$as_val" = x""yes; then :
9871 cat >>confdefs.h <<_ACEOF
9872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9873 _ACEOF
9876 done
9878 if test "x$ac_cv_func_fork" = xyes; then
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9880 $as_echo_n "checking for working fork... " >&6; }
9881 if test "${ac_cv_func_fork_works+set}" = set; then :
9882 $as_echo_n "(cached) " >&6
9883 else
9884 if test "$cross_compiling" = yes; then :
9885 ac_cv_func_fork_works=cross
9886 else
9887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888 /* end confdefs.h. */
9889 $ac_includes_default
9891 main ()
9894 /* By Ruediger Kuhlmann. */
9895 return fork () < 0;
9898 return 0;
9900 _ACEOF
9901 if ac_fn_cxx_try_run "$LINENO"; then :
9902 ac_cv_func_fork_works=yes
9903 else
9904 ac_cv_func_fork_works=no
9906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9907 conftest.$ac_objext conftest.beam conftest.$ac_ext
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9912 $as_echo "$ac_cv_func_fork_works" >&6; }
9914 else
9915 ac_cv_func_fork_works=$ac_cv_func_fork
9917 if test "x$ac_cv_func_fork_works" = xcross; then
9918 case $host in
9919 *-*-amigaos* | *-*-msdosdjgpp*)
9920 # Override, as these systems have only a dummy fork() stub
9921 ac_cv_func_fork_works=no
9924 ac_cv_func_fork_works=yes
9926 esac
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9928 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9930 ac_cv_func_vfork_works=$ac_cv_func_vfork
9931 if test "x$ac_cv_func_vfork" = xyes; then
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9933 $as_echo_n "checking for working vfork... " >&6; }
9934 if test "${ac_cv_func_vfork_works+set}" = set; then :
9935 $as_echo_n "(cached) " >&6
9936 else
9937 if test "$cross_compiling" = yes; then :
9938 ac_cv_func_vfork_works=cross
9939 else
9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941 /* end confdefs.h. */
9942 /* Thanks to Paul Eggert for this test. */
9943 $ac_includes_default
9944 #include <sys/wait.h>
9945 #ifdef HAVE_VFORK_H
9946 # include <vfork.h>
9947 #endif
9948 /* On some sparc systems, changes by the child to local and incoming
9949 argument registers are propagated back to the parent. The compiler
9950 is told about this with #include <vfork.h>, but some compilers
9951 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9952 static variable whose address is put into a register that is
9953 clobbered by the vfork. */
9954 static void
9955 #ifdef __cplusplus
9956 sparc_address_test (int arg)
9957 # else
9958 sparc_address_test (arg) int arg;
9959 #endif
9961 static pid_t child;
9962 if (!child) {
9963 child = vfork ();
9964 if (child < 0) {
9965 perror ("vfork");
9966 _exit(2);
9968 if (!child) {
9969 arg = getpid();
9970 write(-1, "", 0);
9971 _exit (arg);
9977 main ()
9979 pid_t parent = getpid ();
9980 pid_t child;
9982 sparc_address_test (0);
9984 child = vfork ();
9986 if (child == 0) {
9987 /* Here is another test for sparc vfork register problems. This
9988 test uses lots of local variables, at least as many local
9989 variables as main has allocated so far including compiler
9990 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9991 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9992 reuse the register of parent for one of the local variables,
9993 since it will think that parent can't possibly be used any more
9994 in this routine. Assigning to the local variable will thus
9995 munge parent in the parent process. */
9996 pid_t
9997 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9998 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9999 /* Convince the compiler that p..p7 are live; otherwise, it might
10000 use the same hardware register for all 8 local variables. */
10001 if (p != p1 || p != p2 || p != p3 || p != p4
10002 || p != p5 || p != p6 || p != p7)
10003 _exit(1);
10005 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10006 from child file descriptors. If the child closes a descriptor
10007 before it execs or exits, this munges the parent's descriptor
10008 as well. Test for this by closing stdout in the child. */
10009 _exit(close(fileno(stdout)) != 0);
10010 } else {
10011 int status;
10012 struct stat st;
10014 while (wait(&status) != child)
10016 return (
10017 /* Was there some problem with vforking? */
10018 child < 0
10020 /* Did the child fail? (This shouldn't happen.) */
10021 || status
10023 /* Did the vfork/compiler bug occur? */
10024 || parent != getpid()
10026 /* Did the file descriptor bug occur? */
10027 || fstat(fileno(stdout), &st) != 0
10031 _ACEOF
10032 if ac_fn_cxx_try_run "$LINENO"; then :
10033 ac_cv_func_vfork_works=yes
10034 else
10035 ac_cv_func_vfork_works=no
10037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10038 conftest.$ac_objext conftest.beam conftest.$ac_ext
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10043 $as_echo "$ac_cv_func_vfork_works" >&6; }
10046 if test "x$ac_cv_func_fork_works" = xcross; then
10047 ac_cv_func_vfork_works=$ac_cv_func_vfork
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10049 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10052 if test "x$ac_cv_func_vfork_works" = xyes; then
10054 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10056 else
10058 $as_echo "#define vfork fork" >>confdefs.h
10061 if test "x$ac_cv_func_fork_works" = xyes; then
10063 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10069 if test "X$prefix" = "XNONE"; then
10070 acl_final_prefix="$ac_default_prefix"
10071 else
10072 acl_final_prefix="$prefix"
10074 if test "X$exec_prefix" = "XNONE"; then
10075 acl_final_exec_prefix='${prefix}'
10076 else
10077 acl_final_exec_prefix="$exec_prefix"
10079 acl_save_prefix="$prefix"
10080 prefix="$acl_final_prefix"
10081 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10082 prefix="$acl_save_prefix"
10085 # Check whether --with-gnu-ld was given.
10086 if test "${with_gnu_ld+set}" = set; then :
10087 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10088 else
10089 with_gnu_ld=no
10092 # Prepare PATH_SEPARATOR.
10093 # The user is always right.
10094 if test "${PATH_SEPARATOR+set}" != set; then
10095 echo "#! /bin/sh" >conf$$.sh
10096 echo "exit 0" >>conf$$.sh
10097 chmod +x conf$$.sh
10098 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10099 PATH_SEPARATOR=';'
10100 else
10101 PATH_SEPARATOR=:
10103 rm -f conf$$.sh
10105 ac_prog=ld
10106 if test "$GCC" = yes; then
10107 # Check if gcc -print-prog-name=ld gives a path.
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10109 $as_echo_n "checking for ld used by GCC... " >&6; }
10110 case $host in
10111 *-*-mingw*)
10112 # gcc leaves a trailing carriage return which upsets mingw
10113 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10115 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10116 esac
10117 case $ac_prog in
10118 # Accept absolute paths.
10119 [\\/]* | [A-Za-z]:[\\/]*)
10120 re_direlt='/[^/][^/]*/\.\./'
10121 # Canonicalize the path of ld
10122 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10123 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10124 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10125 done
10126 test -z "$LD" && LD="$ac_prog"
10129 # If it fails, then pretend we aren't using GCC.
10130 ac_prog=ld
10133 # If it is relative, then search for the first ld in PATH.
10134 with_gnu_ld=unknown
10136 esac
10137 elif test "$with_gnu_ld" = yes; then
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10139 $as_echo_n "checking for GNU ld... " >&6; }
10140 else
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10142 $as_echo_n "checking for non-GNU ld... " >&6; }
10144 if test "${acl_cv_path_LD+set}" = set; then :
10145 $as_echo_n "(cached) " >&6
10146 else
10147 if test -z "$LD"; then
10148 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10149 for ac_dir in $PATH; do
10150 test -z "$ac_dir" && ac_dir=.
10151 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10152 acl_cv_path_LD="$ac_dir/$ac_prog"
10153 # Check to see if the program is GNU ld. I'd rather use --version,
10154 # but apparently some GNU ld's only accept -v.
10155 # Break only if it was the GNU/non-GNU ld that we prefer.
10156 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10157 test "$with_gnu_ld" != no && break
10158 else
10159 test "$with_gnu_ld" != yes && break
10162 done
10163 IFS="$ac_save_ifs"
10164 else
10165 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10169 LD="$acl_cv_path_LD"
10170 if test -n "$LD"; then
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10172 $as_echo "$LD" >&6; }
10173 else
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10175 $as_echo "no" >&6; }
10177 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10179 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10180 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10181 $as_echo_n "(cached) " >&6
10182 else
10183 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10184 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10185 acl_cv_prog_gnu_ld=yes
10186 else
10187 acl_cv_prog_gnu_ld=no
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10191 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10192 with_gnu_ld=$acl_cv_prog_gnu_ld
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10197 $as_echo_n "checking for shared library run path origin... " >&6; }
10198 if test "${acl_cv_rpath+set}" = set; then :
10199 $as_echo_n "(cached) " >&6
10200 else
10202 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10203 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10204 . ./conftest.sh
10205 rm -f ./conftest.sh
10206 acl_cv_rpath=done
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10210 $as_echo "$acl_cv_rpath" >&6; }
10211 wl="$acl_cv_wl"
10212 libext="$acl_cv_libext"
10213 shlibext="$acl_cv_shlibext"
10214 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10215 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10216 hardcode_direct="$acl_cv_hardcode_direct"
10217 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10218 # Check whether --enable-rpath was given.
10219 if test "${enable_rpath+set}" = set; then :
10220 enableval=$enable_rpath; :
10221 else
10222 enable_rpath=yes
10232 use_additional=yes
10234 acl_save_prefix="$prefix"
10235 prefix="$acl_final_prefix"
10236 acl_save_exec_prefix="$exec_prefix"
10237 exec_prefix="$acl_final_exec_prefix"
10239 eval additional_includedir=\"$includedir\"
10240 eval additional_libdir=\"$libdir\"
10242 exec_prefix="$acl_save_exec_prefix"
10243 prefix="$acl_save_prefix"
10246 # Check whether --with-libiconv-prefix was given.
10247 if test "${with_libiconv_prefix+set}" = set; then :
10248 withval=$with_libiconv_prefix;
10249 if test "X$withval" = "Xno"; then
10250 use_additional=no
10251 else
10252 if test "X$withval" = "X"; then
10254 acl_save_prefix="$prefix"
10255 prefix="$acl_final_prefix"
10256 acl_save_exec_prefix="$exec_prefix"
10257 exec_prefix="$acl_final_exec_prefix"
10259 eval additional_includedir=\"$includedir\"
10260 eval additional_libdir=\"$libdir\"
10262 exec_prefix="$acl_save_exec_prefix"
10263 prefix="$acl_save_prefix"
10265 else
10266 additional_includedir="$withval/include"
10267 additional_libdir="$withval/lib"
10273 LIBICONV=
10274 LTLIBICONV=
10275 INCICONV=
10276 rpathdirs=
10277 ltrpathdirs=
10278 names_already_handled=
10279 names_next_round='iconv '
10280 while test -n "$names_next_round"; do
10281 names_this_round="$names_next_round"
10282 names_next_round=
10283 for name in $names_this_round; do
10284 already_handled=
10285 for n in $names_already_handled; do
10286 if test "$n" = "$name"; then
10287 already_handled=yes
10288 break
10290 done
10291 if test -z "$already_handled"; then
10292 names_already_handled="$names_already_handled $name"
10293 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10294 eval value=\"\$HAVE_LIB$uppername\"
10295 if test -n "$value"; then
10296 if test "$value" = yes; then
10297 eval value=\"\$LIB$uppername\"
10298 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10299 eval value=\"\$LTLIB$uppername\"
10300 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10301 else
10304 else
10305 found_dir=
10306 found_la=
10307 found_so=
10308 found_a=
10309 if test $use_additional = yes; then
10310 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10311 found_dir="$additional_libdir"
10312 found_so="$additional_libdir/lib$name.$shlibext"
10313 if test -f "$additional_libdir/lib$name.la"; then
10314 found_la="$additional_libdir/lib$name.la"
10316 else
10317 if test -f "$additional_libdir/lib$name.$libext"; then
10318 found_dir="$additional_libdir"
10319 found_a="$additional_libdir/lib$name.$libext"
10320 if test -f "$additional_libdir/lib$name.la"; then
10321 found_la="$additional_libdir/lib$name.la"
10326 if test "X$found_dir" = "X"; then
10327 for x in $LDFLAGS $LTLIBICONV; do
10329 acl_save_prefix="$prefix"
10330 prefix="$acl_final_prefix"
10331 acl_save_exec_prefix="$exec_prefix"
10332 exec_prefix="$acl_final_exec_prefix"
10333 eval x=\"$x\"
10334 exec_prefix="$acl_save_exec_prefix"
10335 prefix="$acl_save_prefix"
10337 case "$x" in
10338 -L*)
10339 dir=`echo "X$x" | sed -e 's/^X-L//'`
10340 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10341 found_dir="$dir"
10342 found_so="$dir/lib$name.$shlibext"
10343 if test -f "$dir/lib$name.la"; then
10344 found_la="$dir/lib$name.la"
10346 else
10347 if test -f "$dir/lib$name.$libext"; then
10348 found_dir="$dir"
10349 found_a="$dir/lib$name.$libext"
10350 if test -f "$dir/lib$name.la"; then
10351 found_la="$dir/lib$name.la"
10356 esac
10357 if test "X$found_dir" != "X"; then
10358 break
10360 done
10362 if test "X$found_dir" != "X"; then
10363 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10364 if test "X$found_so" != "X"; then
10365 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10366 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10367 else
10368 haveit=
10369 for x in $ltrpathdirs; do
10370 if test "X$x" = "X$found_dir"; then
10371 haveit=yes
10372 break
10374 done
10375 if test -z "$haveit"; then
10376 ltrpathdirs="$ltrpathdirs $found_dir"
10378 if test "$hardcode_direct" = yes; then
10379 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10380 else
10381 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10382 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10383 haveit=
10384 for x in $rpathdirs; do
10385 if test "X$x" = "X$found_dir"; then
10386 haveit=yes
10387 break
10389 done
10390 if test -z "$haveit"; then
10391 rpathdirs="$rpathdirs $found_dir"
10393 else
10394 haveit=
10395 for x in $LDFLAGS $LIBICONV; do
10397 acl_save_prefix="$prefix"
10398 prefix="$acl_final_prefix"
10399 acl_save_exec_prefix="$exec_prefix"
10400 exec_prefix="$acl_final_exec_prefix"
10401 eval x=\"$x\"
10402 exec_prefix="$acl_save_exec_prefix"
10403 prefix="$acl_save_prefix"
10405 if test "X$x" = "X-L$found_dir"; then
10406 haveit=yes
10407 break
10409 done
10410 if test -z "$haveit"; then
10411 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10413 if test "$hardcode_minus_L" != no; then
10414 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10415 else
10416 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10421 else
10422 if test "X$found_a" != "X"; then
10423 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10424 else
10425 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10428 additional_includedir=
10429 case "$found_dir" in
10430 */lib | */lib/)
10431 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10432 additional_includedir="$basedir/include"
10434 esac
10435 if test "X$additional_includedir" != "X"; then
10436 if test "X$additional_includedir" != "X/usr/include"; then
10437 haveit=
10438 if test "X$additional_includedir" = "X/usr/local/include"; then
10439 if test -n "$GCC"; then
10440 case $host_os in
10441 linux*) haveit=yes;;
10442 esac
10445 if test -z "$haveit"; then
10446 for x in $CPPFLAGS $INCICONV; do
10448 acl_save_prefix="$prefix"
10449 prefix="$acl_final_prefix"
10450 acl_save_exec_prefix="$exec_prefix"
10451 exec_prefix="$acl_final_exec_prefix"
10452 eval x=\"$x\"
10453 exec_prefix="$acl_save_exec_prefix"
10454 prefix="$acl_save_prefix"
10456 if test "X$x" = "X-I$additional_includedir"; then
10457 haveit=yes
10458 break
10460 done
10461 if test -z "$haveit"; then
10462 if test -d "$additional_includedir"; then
10463 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10469 if test -n "$found_la"; then
10470 save_libdir="$libdir"
10471 case "$found_la" in
10472 */* | *\\*) . "$found_la" ;;
10473 *) . "./$found_la" ;;
10474 esac
10475 libdir="$save_libdir"
10476 for dep in $dependency_libs; do
10477 case "$dep" in
10478 -L*)
10479 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10480 if test "X$additional_libdir" != "X/usr/lib"; then
10481 haveit=
10482 if test "X$additional_libdir" = "X/usr/local/lib"; then
10483 if test -n "$GCC"; then
10484 case $host_os in
10485 linux*) haveit=yes;;
10486 esac
10489 if test -z "$haveit"; then
10490 haveit=
10491 for x in $LDFLAGS $LIBICONV; do
10493 acl_save_prefix="$prefix"
10494 prefix="$acl_final_prefix"
10495 acl_save_exec_prefix="$exec_prefix"
10496 exec_prefix="$acl_final_exec_prefix"
10497 eval x=\"$x\"
10498 exec_prefix="$acl_save_exec_prefix"
10499 prefix="$acl_save_prefix"
10501 if test "X$x" = "X-L$additional_libdir"; then
10502 haveit=yes
10503 break
10505 done
10506 if test -z "$haveit"; then
10507 if test -d "$additional_libdir"; then
10508 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10511 haveit=
10512 for x in $LDFLAGS $LTLIBICONV; do
10514 acl_save_prefix="$prefix"
10515 prefix="$acl_final_prefix"
10516 acl_save_exec_prefix="$exec_prefix"
10517 exec_prefix="$acl_final_exec_prefix"
10518 eval x=\"$x\"
10519 exec_prefix="$acl_save_exec_prefix"
10520 prefix="$acl_save_prefix"
10522 if test "X$x" = "X-L$additional_libdir"; then
10523 haveit=yes
10524 break
10526 done
10527 if test -z "$haveit"; then
10528 if test -d "$additional_libdir"; then
10529 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10535 -R*)
10536 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10537 if test "$enable_rpath" != no; then
10538 haveit=
10539 for x in $rpathdirs; do
10540 if test "X$x" = "X$dir"; then
10541 haveit=yes
10542 break
10544 done
10545 if test -z "$haveit"; then
10546 rpathdirs="$rpathdirs $dir"
10548 haveit=
10549 for x in $ltrpathdirs; do
10550 if test "X$x" = "X$dir"; then
10551 haveit=yes
10552 break
10554 done
10555 if test -z "$haveit"; then
10556 ltrpathdirs="$ltrpathdirs $dir"
10560 -l*)
10561 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10563 *.la)
10564 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10567 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10568 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10570 esac
10571 done
10573 else
10574 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10575 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10579 done
10580 done
10581 if test "X$rpathdirs" != "X"; then
10582 if test -n "$hardcode_libdir_separator"; then
10583 alldirs=
10584 for found_dir in $rpathdirs; do
10585 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10586 done
10587 acl_save_libdir="$libdir"
10588 libdir="$alldirs"
10589 eval flag=\"$hardcode_libdir_flag_spec\"
10590 libdir="$acl_save_libdir"
10591 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10592 else
10593 for found_dir in $rpathdirs; do
10594 acl_save_libdir="$libdir"
10595 libdir="$found_dir"
10596 eval flag=\"$hardcode_libdir_flag_spec\"
10597 libdir="$acl_save_libdir"
10598 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10599 done
10602 if test "X$ltrpathdirs" != "X"; then
10603 for found_dir in $ltrpathdirs; do
10604 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10605 done
10614 am_save_CPPFLAGS="$CPPFLAGS"
10616 for element in $INCICONV; do
10617 haveit=
10618 for x in $CPPFLAGS; do
10620 acl_save_prefix="$prefix"
10621 prefix="$acl_final_prefix"
10622 acl_save_exec_prefix="$exec_prefix"
10623 exec_prefix="$acl_final_exec_prefix"
10624 eval x=\"$x\"
10625 exec_prefix="$acl_save_exec_prefix"
10626 prefix="$acl_save_prefix"
10628 if test "X$x" = "X$element"; then
10629 haveit=yes
10630 break
10632 done
10633 if test -z "$haveit"; then
10634 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10636 done
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10640 $as_echo_n "checking for iconv... " >&6; }
10641 if test "${am_cv_func_iconv+set}" = set; then :
10642 $as_echo_n "(cached) " >&6
10643 else
10645 am_cv_func_iconv="no, consider installing GNU libiconv"
10646 am_cv_lib_iconv=no
10647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10648 /* end confdefs.h. */
10649 #include <stdlib.h>
10650 #include <iconv.h>
10652 main ()
10654 iconv_t cd = iconv_open("","");
10655 iconv(cd,NULL,NULL,NULL,NULL);
10656 iconv_close(cd);
10658 return 0;
10660 _ACEOF
10661 if ac_fn_cxx_try_link "$LINENO"; then :
10662 am_cv_func_iconv=yes
10664 rm -f core conftest.err conftest.$ac_objext \
10665 conftest$ac_exeext conftest.$ac_ext
10666 if test "$am_cv_func_iconv" != yes; then
10667 am_save_LIBS="$LIBS"
10668 LIBS="$LIBS $LIBICONV"
10669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h. */
10671 #include <stdlib.h>
10672 #include <iconv.h>
10674 main ()
10676 iconv_t cd = iconv_open("","");
10677 iconv(cd,NULL,NULL,NULL,NULL);
10678 iconv_close(cd);
10680 return 0;
10682 _ACEOF
10683 if ac_fn_cxx_try_link "$LINENO"; then :
10684 am_cv_lib_iconv=yes
10685 am_cv_func_iconv=yes
10687 rm -f core conftest.err conftest.$ac_objext \
10688 conftest$ac_exeext conftest.$ac_ext
10689 LIBS="$am_save_LIBS"
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10694 $as_echo "$am_cv_func_iconv" >&6; }
10695 if test "$am_cv_func_iconv" = yes; then
10697 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10700 if test "$am_cv_lib_iconv" = yes; then
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10702 $as_echo_n "checking how to link with libiconv... " >&6; }
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10704 $as_echo "$LIBICONV" >&6; }
10705 else
10706 CPPFLAGS="$am_save_CPPFLAGS"
10707 LIBICONV=
10708 LTLIBICONV=
10713 if test "$am_cv_func_iconv" = yes; then
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10715 $as_echo_n "checking for iconv declaration... " >&6; }
10716 if test "${am_cv_proto_iconv+set}" = set; then :
10717 $as_echo_n "(cached) " >&6
10718 else
10720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10721 /* end confdefs.h. */
10723 #include <stdlib.h>
10724 #include <iconv.h>
10725 extern
10726 #ifdef __cplusplus
10728 #endif
10729 #if defined(__STDC__) || defined(__cplusplus)
10730 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10731 #else
10732 size_t iconv();
10733 #endif
10736 main ()
10740 return 0;
10742 _ACEOF
10743 if ac_fn_cxx_try_compile "$LINENO"; then :
10744 am_cv_proto_iconv_arg1=""
10745 else
10746 am_cv_proto_iconv_arg1="const"
10748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10749 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);"
10752 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10754 }$am_cv_proto_iconv" >&5
10755 $as_echo "${ac_t:-
10756 }$am_cv_proto_iconv" >&6; }
10758 cat >>confdefs.h <<_ACEOF
10759 #define ICONV_CONST $am_cv_proto_iconv_arg1
10760 _ACEOF
10765 # Until we have in-tree GNU iconv:
10766 LIBICONV_DEP=
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10771 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10772 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10773 $as_echo_n "(cached) " >&6
10774 else
10775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10776 /* end confdefs.h. */
10777 #include <locale.h>
10779 main ()
10781 return LC_MESSAGES
10783 return 0;
10785 _ACEOF
10786 if ac_fn_cxx_try_link "$LINENO"; then :
10787 am_cv_val_LC_MESSAGES=yes
10788 else
10789 am_cv_val_LC_MESSAGES=no
10791 rm -f core conftest.err conftest.$ac_objext \
10792 conftest$ac_exeext conftest.$ac_ext
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10795 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10796 if test $am_cv_val_LC_MESSAGES = yes; then
10798 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10805 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10806 if test "${am_cv_langinfo_codeset+set}" = set; then :
10807 $as_echo_n "(cached) " >&6
10808 else
10809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810 /* end confdefs.h. */
10811 #include <langinfo.h>
10813 main ()
10815 char* cs = nl_langinfo(CODESET);
10817 return 0;
10819 _ACEOF
10820 if ac_fn_cxx_try_link "$LINENO"; then :
10821 am_cv_langinfo_codeset=yes
10822 else
10823 am_cv_langinfo_codeset=no
10825 rm -f core conftest.err conftest.$ac_objext \
10826 conftest$ac_exeext conftest.$ac_ext
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10830 $as_echo "$am_cv_langinfo_codeset" >&6; }
10831 if test $am_cv_langinfo_codeset = yes; then
10833 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10838 # We will need to find libiberty.h and ansidecl.h
10839 saved_CFLAGS="$CFLAGS"
10840 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10841 saved_CXXFLAGS="$CXXFLAGS"
10842 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10844 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10845 # normal autoconf function for these. But force definition of
10846 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10847 # basename handling in libiberty.h.
10848 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10849 #undef HAVE_DECL_BASENAME
10850 #define HAVE_DECL_BASENAME 1
10851 #include \"ansidecl.h\"
10852 #include \"system.h\"
10854 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10855 ac_have_decl=1
10856 else
10857 ac_have_decl=0
10860 cat >>confdefs.h <<_ACEOF
10861 #define HAVE_DECL_BASENAME $ac_have_decl
10862 _ACEOF
10863 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10864 #undef HAVE_DECL_BASENAME
10865 #define HAVE_DECL_BASENAME 1
10866 #include \"ansidecl.h\"
10867 #include \"system.h\"
10869 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10870 ac_have_decl=1
10871 else
10872 ac_have_decl=0
10875 cat >>confdefs.h <<_ACEOF
10876 #define HAVE_DECL_STRSTR $ac_have_decl
10877 _ACEOF
10880 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10881 madvise stpcpy strnlen strsignal strverscmp \
10882 strtol strtoul strtoll strtoull \
10883 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10884 free getopt clock getpagesize ffs clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
10886 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10888 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10889 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10890 $as_echo_n "(cached) " >&6
10891 else
10892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10893 /* end confdefs.h. */
10894 #undef $ac_tr_decl
10895 #define $ac_tr_decl 1
10897 #include "ansidecl.h"
10898 #include "system.h"
10901 main ()
10903 #ifndef $ac_func
10904 char *(*pfn) = (char *(*)) $ac_func ;
10905 #endif
10907 return 0;
10909 _ACEOF
10910 if ac_fn_cxx_try_compile "$LINENO"; then :
10911 eval "gcc_cv_have_decl_$ac_func=yes"
10912 else
10913 eval "gcc_cv_have_decl_$ac_func=no"
10915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10918 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10920 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10921 #define $ac_tr_decl 1
10922 _ACEOF
10924 else
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10926 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10927 #define $ac_tr_decl 0
10928 _ACEOF
10932 done
10935 for ac_func in getrlimit setrlimit getrusage
10937 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10939 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10940 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10941 $as_echo_n "(cached) " >&6
10942 else
10943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10944 /* end confdefs.h. */
10945 #undef $ac_tr_decl
10946 #define $ac_tr_decl 1
10948 #include "ansidecl.h"
10949 #include "system.h"
10950 #ifdef HAVE_SYS_RESOURCE_H
10951 #include <sys/resource.h>
10952 #endif
10956 main ()
10958 #ifndef $ac_func
10959 char *(*pfn) = (char *(*)) $ac_func ;
10960 #endif
10962 return 0;
10964 _ACEOF
10965 if ac_fn_cxx_try_compile "$LINENO"; then :
10966 eval "gcc_cv_have_decl_$ac_func=yes"
10967 else
10968 eval "gcc_cv_have_decl_$ac_func=no"
10970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10973 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10975 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10976 #define $ac_tr_decl 1
10977 _ACEOF
10979 else
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10981 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10982 #define $ac_tr_decl 0
10983 _ACEOF
10987 done
10990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10991 /* end confdefs.h. */
10993 #include "ansidecl.h"
10994 #include "system.h"
10995 #ifdef HAVE_SYS_RESOURCE_H
10996 #include <sys/resource.h>
10997 #endif
11000 main ()
11002 rlim_t l = 0;
11004 return 0;
11006 _ACEOF
11007 if ac_fn_cxx_try_compile "$LINENO"; then :
11009 else
11011 $as_echo "#define rlim_t long" >>confdefs.h
11014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11016 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11017 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11018 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11019 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11020 for ac_func in ldgetname
11022 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11024 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11025 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11026 $as_echo_n "(cached) " >&6
11027 else
11028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11029 /* end confdefs.h. */
11030 #undef $ac_tr_decl
11031 #define $ac_tr_decl 1
11033 #include "ansidecl.h"
11034 #include "system.h"
11035 #ifdef HAVE_LDFCN_H
11036 #undef FREAD
11037 #undef FWRITE
11038 #include <ldfcn.h>
11039 #endif
11043 main ()
11045 #ifndef $ac_func
11046 char *(*pfn) = (char *(*)) $ac_func ;
11047 #endif
11049 return 0;
11051 _ACEOF
11052 if ac_fn_cxx_try_compile "$LINENO"; then :
11053 eval "gcc_cv_have_decl_$ac_func=yes"
11054 else
11055 eval "gcc_cv_have_decl_$ac_func=no"
11057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11060 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11062 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11063 #define $ac_tr_decl 1
11064 _ACEOF
11066 else
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11068 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11069 #define $ac_tr_decl 0
11070 _ACEOF
11074 done
11077 for ac_func in times
11079 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11081 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11082 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11083 $as_echo_n "(cached) " >&6
11084 else
11085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11086 /* end confdefs.h. */
11087 #undef $ac_tr_decl
11088 #define $ac_tr_decl 1
11090 #include "ansidecl.h"
11091 #include "system.h"
11092 #ifdef HAVE_SYS_TIMES_H
11093 #include <sys/times.h>
11094 #endif
11098 main ()
11100 #ifndef $ac_func
11101 char *(*pfn) = (char *(*)) $ac_func ;
11102 #endif
11104 return 0;
11106 _ACEOF
11107 if ac_fn_cxx_try_compile "$LINENO"; then :
11108 eval "gcc_cv_have_decl_$ac_func=yes"
11109 else
11110 eval "gcc_cv_have_decl_$ac_func=no"
11112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11115 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11117 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11118 #define $ac_tr_decl 1
11119 _ACEOF
11121 else
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11123 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11124 #define $ac_tr_decl 0
11125 _ACEOF
11129 done
11132 for ac_func in sigaltstack
11134 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11136 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11137 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11138 $as_echo_n "(cached) " >&6
11139 else
11140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11141 /* end confdefs.h. */
11142 #undef $ac_tr_decl
11143 #define $ac_tr_decl 1
11145 #include "ansidecl.h"
11146 #include "system.h"
11147 #include <signal.h>
11151 main ()
11153 #ifndef $ac_func
11154 char *(*pfn) = (char *(*)) $ac_func ;
11155 #endif
11157 return 0;
11159 _ACEOF
11160 if ac_fn_cxx_try_compile "$LINENO"; then :
11161 eval "gcc_cv_have_decl_$ac_func=yes"
11162 else
11163 eval "gcc_cv_have_decl_$ac_func=no"
11165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11168 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11170 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11171 #define $ac_tr_decl 1
11172 _ACEOF
11174 else
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11176 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11177 #define $ac_tr_decl 0
11178 _ACEOF
11182 done
11185 # More time-related stuff.
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11187 $as_echo_n "checking for struct tms... " >&6; }
11188 if test "${ac_cv_struct_tms+set}" = set; then :
11189 $as_echo_n "(cached) " >&6
11190 else
11192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11193 /* end confdefs.h. */
11195 #include "ansidecl.h"
11196 #include "system.h"
11197 #ifdef HAVE_SYS_TIMES_H
11198 #include <sys/times.h>
11199 #endif
11202 main ()
11204 struct tms tms;
11206 return 0;
11208 _ACEOF
11209 if ac_fn_cxx_try_compile "$LINENO"; then :
11210 ac_cv_struct_tms=yes
11211 else
11212 ac_cv_struct_tms=no
11214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11217 $as_echo "$ac_cv_struct_tms" >&6; }
11218 if test $ac_cv_struct_tms = yes; then
11220 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11224 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11225 # revisit after autoconf 2.50.
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11227 $as_echo_n "checking for clock_t... " >&6; }
11228 if test "${gcc_cv_type_clock_t+set}" = set; then :
11229 $as_echo_n "(cached) " >&6
11230 else
11232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11233 /* end confdefs.h. */
11235 #include "ansidecl.h"
11236 #include "system.h"
11239 main ()
11241 clock_t x;
11243 return 0;
11245 _ACEOF
11246 if ac_fn_cxx_try_compile "$LINENO"; then :
11247 gcc_cv_type_clock_t=yes
11248 else
11249 gcc_cv_type_clock_t=no
11251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11254 $as_echo "$gcc_cv_type_clock_t" >&6; }
11255 if test $gcc_cv_type_clock_t = yes; then
11257 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11261 # Check if F_SETLKW is supported by fcntl.
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11263 $as_echo_n "checking for F_SETLKW... " >&6; }
11264 if test "${ac_cv_f_setlkw+set}" = set; then :
11265 $as_echo_n "(cached) " >&6
11266 else
11268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11269 /* end confdefs.h. */
11271 #include <fcntl.h>
11273 main ()
11276 struct flock fl;
11277 fl.l_whence = 0;
11278 fl.l_start = 0;
11279 fl.l_len = 0;
11280 fl.l_pid = 0;
11281 return fcntl (1, F_SETLKW, &fl);
11283 return 0;
11285 _ACEOF
11286 if ac_fn_cxx_try_compile "$LINENO"; then :
11287 ac_cv_f_setlkw=yes
11288 else
11289 ac_cv_f_setlkw=no
11291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11294 $as_echo "$ac_cv_f_setlkw" >&6; }
11295 if test $ac_cv_f_setlkw = yes; then
11297 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11301 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11302 CFLAGS="$saved_CFLAGS"
11303 CXXFLAGS="$saved_CXXFLAGS"
11305 # mkdir takes a single argument on some systems.
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11307 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11308 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11309 $as_echo_n "(cached) " >&6
11310 else
11311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11312 /* end confdefs.h. */
11314 #include <sys/types.h>
11315 #ifdef HAVE_SYS_STAT_H
11316 # include <sys/stat.h>
11317 #endif
11318 #ifdef HAVE_UNISTD_H
11319 # include <unistd.h>
11320 #endif
11321 #ifdef HAVE_DIRECT_H
11322 # include <direct.h>
11323 #endif
11325 main ()
11327 mkdir ("foo", 0);
11329 return 0;
11331 _ACEOF
11332 if ac_fn_cxx_try_compile "$LINENO"; then :
11333 gcc_cv_mkdir_takes_one_arg=no
11334 else
11335 gcc_cv_mkdir_takes_one_arg=yes
11337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11340 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11341 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11343 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11348 # File extensions
11349 manext='.1'
11350 objext='.o'
11354 # With Setjmp/Longjmp based exception handling.
11355 # Check whether --enable-sjlj-exceptions was given.
11356 if test "${enable_sjlj_exceptions+set}" = set; then :
11357 enableval=$enable_sjlj_exceptions; case $target in
11358 *-*-hpux10*)
11359 if test $enableval != yes; then
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11361 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11362 enableval=yes
11365 esac
11366 force_sjlj_exceptions=yes
11367 else
11368 case $target in
11369 *-*-hpux10*)
11370 force_sjlj_exceptions=yes
11371 enableval=yes
11373 lm32*-*-*)
11374 force_sjlj_exceptions=yes
11375 enableval=yes
11378 force_sjlj_exceptions=no
11380 esac
11383 if test $force_sjlj_exceptions = yes; then
11384 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11386 cat >>confdefs.h <<_ACEOF
11387 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11388 _ACEOF
11392 # --------------------------------------------------------
11393 # Build, host, and target specific configuration fragments
11394 # --------------------------------------------------------
11396 # Collect build-machine-specific information.
11397 . ${srcdir}/config.build
11399 # Collect host-machine-specific information.
11400 . ${srcdir}/config.host
11402 target_gtfiles=
11404 # Collect target-machine-specific information.
11405 . ${srcdir}/config.gcc
11407 extra_objs="${host_extra_objs} ${extra_objs}"
11408 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11410 # Default the target-machine variables that were not explicitly set.
11411 if test x"$tm_file" = x
11412 then tm_file=$cpu_type/$cpu_type.h; fi
11414 if test x"$extra_headers" = x
11415 then extra_headers=; fi
11417 if test x$md_file = x
11418 then md_file=$cpu_type/$cpu_type.md; fi
11420 if test x$out_file = x
11421 then out_file=$cpu_type/$cpu_type.c; fi
11423 if test x"$tmake_file" = x
11424 then tmake_file=$cpu_type/t-$cpu_type
11427 # Support --enable-initfini-array.
11428 if test x$enable_initfini_array != xno; then
11429 tm_file="${tm_file} initfini-array.h"
11432 if test x"$dwarf2" = xyes
11433 then tm_file="$tm_file tm-dwarf2.h"
11436 # Say what files are being used for the output code and MD file.
11437 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11438 echo "Using \`$srcdir/config/$md_file' as machine description file."
11440 # If any of the xm_file variables contain nonexistent files, warn
11441 # about them and drop them.
11444 for x in $build_xm_file; do
11445 if test -f $srcdir/config/$x
11446 then bx="$bx $x"
11447 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11448 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11450 done
11451 build_xm_file="$bx"
11454 for x in $host_xm_file; do
11455 if test -f $srcdir/config/$x
11456 then hx="$hx $x"
11457 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11458 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11460 done
11461 host_xm_file="$hx"
11464 for x in $xm_file; do
11465 if test -f $srcdir/config/$x
11466 then tx="$tx $x"
11467 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11468 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11470 done
11471 xm_file="$tx"
11473 count=a
11474 for f in $tm_file; do
11475 count=${count}x
11476 done
11477 if test $count = ax; then
11478 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11479 else
11480 echo "Using the following target machine macro files:"
11481 for f in $tm_file; do
11482 echo " $srcdir/config/$f"
11483 done
11486 if test x$use_long_long_for_widest_fast_int = xyes; then
11488 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11492 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11494 cat >>confdefs.h <<_ACEOF
11495 #define HAVE_GNU_LD $gnu_ld_bool
11496 _ACEOF
11499 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11501 cat >>confdefs.h <<_ACEOF
11502 #define HAVE_GNU_AS $gnu_as_bool
11503 _ACEOF
11506 count=a
11507 for f in $host_xm_file; do
11508 count=${count}x
11509 done
11510 if test $count = a; then
11512 elif test $count = ax; then
11513 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11514 else
11515 echo "Using the following host machine macro files:"
11516 for f in $host_xm_file; do
11517 echo " $srcdir/config/$f"
11518 done
11520 echo "Using ${out_host_hook_obj} for host machine hooks."
11522 if test "$host_xm_file" != "$build_xm_file"; then
11523 count=a
11524 for f in $build_xm_file; do
11525 count=${count}x
11526 done
11527 if test $count = a; then
11529 elif test $count = ax; then
11530 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11531 else
11532 echo "Using the following build machine macro files:"
11533 for f in $build_xm_file; do
11534 echo " $srcdir/config/$f"
11535 done
11539 if test -n "$configured_native_system_header_dir"; then
11540 native_system_header_dir=$configured_native_system_header_dir
11542 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11545 case ${host} in
11546 powerpc*-*-darwin*)
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11548 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11549 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11550 $as_echo_n "(cached) " >&6
11551 else
11552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11553 /* end confdefs.h. */
11555 #include <sys/cdefs.h>
11556 #include <sys/signal.h>
11557 #include <ucontext.h>
11558 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11560 _ACEOF
11561 if ac_fn_cxx_try_compile "$LINENO"; then :
11562 gcc_cv_mcontext_underscores=no
11563 else
11564 gcc_cv_mcontext_underscores=yes
11566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11569 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11570 if test $gcc_cv_mcontext_underscores = yes; then
11572 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11576 esac
11578 # ---------
11579 # Threading
11580 # ---------
11582 # Check if a valid thread package
11583 case ${enable_threads} in
11584 "" | no)
11585 # No threads
11586 target_thread_file='single'
11588 yes)
11589 # default
11590 target_thread_file='single'
11592 aix | dce | lynx | mipssde | posix | rtems | \
11593 single | tpf | vxworks | win32)
11594 target_thread_file=${enable_threads}
11597 echo "${enable_threads} is an unknown thread package" 1>&2
11598 exit 1
11600 esac
11602 if test x${thread_file} = x; then
11603 # No thread file set by target-specific clauses in config.gcc,
11604 # so use file chosen by default logic above
11605 thread_file=${target_thread_file}
11608 # --------
11609 # UNSORTED
11610 # --------
11612 use_cxa_atexit=no
11613 if test x$enable___cxa_atexit = xyes || \
11614 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11615 if test x$host = x$target; then
11616 case $host in
11617 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11618 # keyed to flag_use_cxa_atexit
11619 *-*-mingw32*)
11620 use_cxa_atexit=yes
11622 powerpc-ibm-aix*)
11623 use_cxa_atexit=yes
11626 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11627 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11628 use_cxa_atexit=yes
11629 else
11630 echo "__cxa_atexit can't be enabled on this target"
11634 esac
11635 else
11636 # We can't check for __cxa_atexit when building a cross, so assume
11637 # it is available
11638 use_cxa_atexit=yes
11640 if test x$use_cxa_atexit = xyes; then
11642 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11647 # Look for a file containing extra machine modes.
11648 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11649 extra_modes_file='$(srcdir)'/config/${extra_modes}
11652 cat >>confdefs.h <<_ACEOF
11653 #define EXTRA_MODES_FILE "config/$extra_modes"
11654 _ACEOF
11658 # Convert extra_options into a form suitable for Makefile use.
11659 extra_opt_files=
11660 all_opt_files=
11661 for f in $extra_options; do
11662 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11663 all_opt_files="$all_opt_files $srcdir/config/$f"
11664 done
11667 # auto-host.h is the file containing items generated by autoconf and is
11668 # the first file included by config.h.
11669 # If host=build, it is correct to have bconfig include auto-host.h
11670 # as well. If host!=build, we are in error and need to do more
11671 # work to find out the build config parameters.
11672 if test x$host = x$build
11673 then
11674 build_auto=auto-host.h
11675 else
11676 # We create a subdir, then run autoconf in the subdir.
11677 # To prevent recursion we set host and build for the new
11678 # invocation of configure to the build for this invocation
11679 # of configure.
11680 tempdir=build.$$
11681 rm -rf $tempdir
11682 mkdir $tempdir
11683 cd $tempdir
11684 case ${srcdir} in
11685 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11686 *) realsrcdir=../${srcdir};;
11687 esac
11688 # Clearing GMPINC is necessary to prevent host headers being
11689 # used by the build compiler. Defining GENERATOR_FILE stops
11690 # system.h from including gmp.h.
11691 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11692 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11693 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11694 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11695 ${realsrcdir}/configure \
11696 --enable-languages=${enable_languages-all} \
11697 --target=$target_alias --host=$build_alias --build=$build_alias
11699 # We just finished tests for the build machine, so rename
11700 # the file auto-build.h in the gcc directory.
11701 mv auto-host.h ../auto-build.h
11702 cd ..
11703 rm -rf $tempdir
11704 build_auto=auto-build.h
11708 tm_file="${tm_file} defaults.h"
11709 tm_p_file="${tm_p_file} tm-preds.h"
11710 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11711 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11712 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11713 # put this back in temporarily.
11714 xm_file="auto-host.h ansidecl.h ${xm_file}"
11716 # --------
11717 # UNSORTED
11718 # --------
11720 # Compile in configure arguments.
11721 if test -f configargs.h ; then
11722 # Being re-configured.
11723 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11724 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11725 else
11726 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11729 # Double all backslashes and backslash all quotes to turn
11730 # gcc_config_arguments into a C string.
11731 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11732 $gcc_config_arguments
11734 gcc_config_arguments_str=`cat conftest.out`
11735 rm -f conftest.out
11737 cat > configargs.h <<EOF
11738 /* Generated automatically. */
11739 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11740 static const char thread_model[] = "$thread_file";
11742 static const struct {
11743 const char *name, *value;
11744 } configure_default_options[] = $configure_default_options;
11747 gcc_BASEVER=`cat $srcdir/BASE-VER`
11748 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11749 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11750 if test -f $srcdir/REVISION ; then
11751 gcc_REVISION=`cat $srcdir/REVISION`
11752 else
11753 gcc_REVISION=""
11755 cat > plugin-version.h <<EOF
11756 #include "configargs.h"
11758 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11759 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11760 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11761 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11763 static char basever[] = "$gcc_BASEVER";
11764 static char datestamp[] = "$gcc_DATESTAMP";
11765 static char devphase[] = "$gcc_DEVPHASE";
11766 static char revision[] = "$gcc_REVISION";
11768 /* FIXME plugins: We should make the version information more precise.
11769 One way to do is to add a checksum. */
11771 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11772 devphase, revision,
11773 configuration_arguments};
11776 # Internationalization
11777 # If we haven't got the data from the intl directory,
11778 # assume NLS is disabled.
11779 USE_NLS=no
11780 LIBINTL=
11781 LIBINTL_DEP=
11782 INCINTL=
11783 XGETTEXT=
11784 GMSGFMT=
11785 POSUB=
11787 if test -f ../intl/config.intl; then
11788 . ../intl/config.intl
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11791 $as_echo_n "checking whether NLS is requested... " >&6; }
11792 if test x"$USE_NLS" != xyes; then
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11794 $as_echo "no" >&6; }
11795 else
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11797 $as_echo "yes" >&6; }
11799 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11803 $as_echo_n "checking for catalogs to be installed... " >&6; }
11804 # Look for .po and .gmo files in the source directory.
11805 CATALOGS=
11806 XLINGUAS=
11807 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11808 # If there aren't any .gmo files the shell will give us the
11809 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11810 # weeded out.
11811 case "$cat" in *\**)
11812 continue;;
11813 esac
11814 # The quadruple backslash is collapsed to a double backslash
11815 # by the backticks, then collapsed again by the double quotes,
11816 # leaving us with one backslash in the sed expression (right
11817 # before the dot that mustn't act as a wildcard).
11818 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11819 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11820 # The user is allowed to set LINGUAS to a list of languages to
11821 # install catalogs for. If it's empty that means "all of them."
11822 if test "x$LINGUAS" = x; then
11823 CATALOGS="$CATALOGS $cat"
11824 XLINGUAS="$XLINGUAS $lang"
11825 else
11826 case "$LINGUAS" in *$lang*)
11827 CATALOGS="$CATALOGS $cat"
11828 XLINGUAS="$XLINGUAS $lang"
11830 esac
11832 done
11833 LINGUAS="$XLINGUAS"
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11835 $as_echo "$LINGUAS" >&6; }
11838 DATADIRNAME=share
11840 INSTOBJEXT=.mo
11842 GENCAT=gencat
11844 CATOBJEXT=.gmo
11848 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11849 # -liconv on the link line twice.
11850 case "$LIBINTL" in *$LIBICONV*)
11851 LIBICONV= ;;
11852 esac
11854 # Check whether --enable-secureplt was given.
11855 if test "${enable_secureplt+set}" = set; then :
11856 enableval=$enable_secureplt;
11860 # Check whether --enable-leading-mingw64-underscores was given.
11861 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11862 enableval=$enable_leading_mingw64_underscores;
11865 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11867 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11871 # Check whether --enable-cld was given.
11872 if test "${enable_cld+set}" = set; then :
11873 enableval=$enable_cld;
11874 else
11875 enable_cld=no
11879 # Check whether --enable-frame-pointer was given.
11880 if test "${enable_frame_pointer+set}" = set; then :
11881 enableval=$enable_frame_pointer;
11882 else
11884 case $target_os in
11885 linux* | darwin[8912]*)
11886 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11887 # DWARF2.
11888 enable_frame_pointer=no
11891 enable_frame_pointer=yes
11893 esac
11898 # Windows32 Registry support for specifying GCC installation paths.
11899 # Check whether --enable-win32-registry was given.
11900 if test "${enable_win32_registry+set}" = set; then :
11901 enableval=$enable_win32_registry;
11905 case $host_os in
11906 win32 | pe | cygwin* | mingw32* | uwin*)
11907 if test "x$enable_win32_registry" != xno; then
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11909 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11910 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11911 $as_echo_n "(cached) " >&6
11912 else
11913 ac_func_search_save_LIBS=$LIBS
11914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11915 /* end confdefs.h. */
11917 /* Override any GCC internal prototype to avoid an error.
11918 Use char because int might match the return type of a GCC
11919 builtin and then its argument prototype would still apply. */
11920 #ifdef __cplusplus
11921 extern "C"
11922 #endif
11923 char RegOpenKeyExA ();
11925 main ()
11927 return RegOpenKeyExA ();
11929 return 0;
11931 _ACEOF
11932 for ac_lib in '' advapi32; do
11933 if test -z "$ac_lib"; then
11934 ac_res="none required"
11935 else
11936 ac_res=-l$ac_lib
11937 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11939 if ac_fn_cxx_try_link "$LINENO"; then :
11940 ac_cv_search_RegOpenKeyExA=$ac_res
11942 rm -f core conftest.err conftest.$ac_objext \
11943 conftest$ac_exeext
11944 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11945 break
11947 done
11948 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11950 else
11951 ac_cv_search_RegOpenKeyExA=no
11953 rm conftest.$ac_ext
11954 LIBS=$ac_func_search_save_LIBS
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11957 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11958 ac_res=$ac_cv_search_RegOpenKeyExA
11959 if test "$ac_res" != no; then :
11960 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11962 else
11963 enable_win32_registry=no
11968 if test "x$enable_win32_registry" != xno; then
11970 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11973 if test "x$enable_win32_registry" != xyes \
11974 && test "x$enable_win32_registry" != x; then
11976 cat >>confdefs.h <<_ACEOF
11977 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11978 _ACEOF
11983 esac
11985 # Get an absolute path to the GCC top-level source directory
11986 holddir=`${PWDCMD-pwd}`
11987 cd $srcdir
11988 topdir=`${PWDCMD-pwd}`
11989 cd $holddir
11991 # Conditionalize the makefile for this host machine.
11992 xmake_file=
11993 for f in ${host_xmake_file}
11995 if test -f ${srcdir}/config/$f
11996 then
11997 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11999 done
12001 # Conditionalize the makefile for this target machine.
12002 tmake_file_=
12003 for f in ${tmake_file}
12005 if test -f ${srcdir}/config/$f
12006 then
12007 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12009 done
12010 tmake_file="${tmake_file_}"
12012 out_object_file=`basename $out_file .c`.o
12013 common_out_object_file=`basename $common_out_file .c`.o
12015 tm_file_list="options.h"
12016 tm_include_list="options.h insn-constants.h"
12017 for f in $tm_file; do
12018 case $f in
12019 ./* )
12020 f=`echo $f | sed 's/^..//'`
12021 tm_file_list="${tm_file_list} $f"
12022 tm_include_list="${tm_include_list} $f"
12024 defaults.h )
12025 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12026 tm_include_list="${tm_include_list} $f"
12029 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12030 tm_include_list="${tm_include_list} config/$f"
12032 esac
12033 done
12035 tm_p_file_list=
12036 tm_p_include_list=
12037 for f in $tm_p_file; do
12038 case $f in
12039 tm-preds.h )
12040 tm_p_file_list="${tm_p_file_list} $f"
12041 tm_p_include_list="${tm_p_include_list} $f"
12044 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12045 tm_p_include_list="${tm_p_include_list} config/$f"
12046 esac
12047 done
12049 xm_file_list=
12050 xm_include_list=
12051 for f in $xm_file; do
12052 case $f in
12053 ansidecl.h )
12054 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12055 xm_include_list="${xm_include_list} $f"
12057 auto-host.h )
12058 xm_file_list="${xm_file_list} $f"
12059 xm_include_list="${xm_include_list} $f"
12062 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12063 xm_include_list="${xm_include_list} config/$f"
12065 esac
12066 done
12068 host_xm_file_list=
12069 host_xm_include_list=
12070 for f in $host_xm_file; do
12071 case $f in
12072 ansidecl.h )
12073 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12074 host_xm_include_list="${host_xm_include_list} $f"
12076 auto-host.h )
12077 host_xm_file_list="${host_xm_file_list} $f"
12078 host_xm_include_list="${host_xm_include_list} $f"
12081 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12082 host_xm_include_list="${host_xm_include_list} config/$f"
12084 esac
12085 done
12087 build_xm_file_list=
12088 for f in $build_xm_file; do
12089 case $f in
12090 ansidecl.h )
12091 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12092 build_xm_include_list="${build_xm_include_list} $f"
12094 auto-build.h | auto-host.h )
12095 build_xm_file_list="${build_xm_file_list} $f"
12096 build_xm_include_list="${build_xm_include_list} $f"
12099 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12100 build_xm_include_list="${build_xm_include_list} config/$f"
12102 esac
12103 done
12105 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12106 # cross-compiler which does not use the native headers and libraries.
12107 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12108 CROSS=
12109 ALL=all.internal
12110 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12112 if test "x$with_build_sysroot" != x; then
12113 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12114 else
12115 # This value is used, even on a native system, because
12116 # CROSS_SYSTEM_HEADER_DIR is just
12117 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12118 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12121 if test x$host != x$target
12122 then
12123 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12124 ALL=all.cross
12125 SYSTEM_HEADER_DIR=$build_system_header_dir
12126 case "$host","$target" in
12127 # Darwin crosses can use the host system's libraries and headers,
12128 # because of the fat library support. Of course, it must be the
12129 # same version of Darwin on both sides. Allow the user to
12130 # just say --target=foo-darwin without a version number to mean
12131 # "the version on this system".
12132 *-*-darwin*,*-*-darwin*)
12133 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12134 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12135 if test $hostos = $targetos -o $targetos = darwin ; then
12136 CROSS=
12137 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12138 with_headers=yes
12142 i?86-*-*,x86_64-*-* \
12143 | powerpc*-*-*,powerpc64*-*-*)
12144 CROSS="$CROSS -DNATIVE_CROSS" ;;
12145 esac
12147 case $target in
12148 *-*-mingw*)
12149 if test "x$with_headers" = x; then
12150 with_headers=yes
12155 esac
12156 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12157 SYSTEM_HEADER_DIR=$build_system_header_dir
12160 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
12161 if test "x$with_headers" != x; then
12162 target_header_dir=$with_headers
12163 elif test "x$with_sysroot" = x; then
12164 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12165 elif test "x$with_build_sysroot" != "x"; then
12166 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12167 elif test "x$with_sysroot" = xyes; then
12168 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12169 else
12170 target_header_dir="${with_sysroot}${native_system_header_dir}"
12172 else
12173 target_header_dir=${native_system_header_dir}
12176 # If this is a cross-compiler that does not
12177 # have its own set of headers then define
12178 # inhibit_libc
12180 # If this is using newlib, without having the headers available now,
12181 # then define inhibit_libc in LIBGCC2_CFLAGS.
12182 # This prevents libgcc2 from containing any code which requires libc
12183 # support.
12184 : ${inhibit_libc=false}
12185 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12186 test x$with_newlib = xyes ; } &&
12187 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12188 inhibit_libc=true
12192 # When building gcc with a cross-compiler, we need to adjust things so
12193 # that the generator programs are still built with the native compiler.
12194 # Also, we cannot run fixincludes.
12196 # These are the normal (build=host) settings:
12197 CC_FOR_BUILD='$(CC)'
12198 CXX_FOR_BUILD='$(CXX)'
12199 BUILD_CFLAGS='$(ALL_CFLAGS)'
12200 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12201 BUILD_LDFLAGS='$(LDFLAGS)'
12202 STMP_FIXINC=stmp-fixinc
12204 # And these apply if build != host, or we are generating coverage data
12205 if test x$build != x$host || test "x$coverage_flags" != x
12206 then
12207 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12208 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12209 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12212 # Expand extra_headers to include complete path.
12213 # This substitutes for lots of t-* files.
12214 extra_headers_list=
12215 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12216 for file in ${extra_headers} ; do
12217 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12218 done
12220 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12221 if test x"$use_gcc_tgmath" = xyes
12222 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12225 # Define collect2 in Makefile.
12226 case $host_can_use_collect2 in
12227 no) collect2= ;;
12228 *) collect2='collect2$(exeext)' ;;
12229 esac
12232 # Add a definition of USE_COLLECT2 if system wants one.
12233 case $use_collect2 in
12234 no) use_collect2= ;;
12235 "") ;;
12237 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12238 xm_defines="${xm_defines} USE_COLLECT2"
12239 case $host_can_use_collect2 in
12241 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12243 esac
12245 esac
12248 cat >>confdefs.h <<_ACEOF
12249 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12250 _ACEOF
12253 # ---------------------------
12254 # Assembler & linker features
12255 # ---------------------------
12257 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12258 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12259 # However when ld-new is first executed from the build tree, libtool will
12260 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12261 # to the build tree. While doing this we need to use the previous-stage
12262 # linker, or we have an infinite loop. The presence of a shell script as
12263 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12264 # the gcc/collect-ld script. So we need to know how libtool works, or
12265 # exec-tool will fail.
12268 case `pwd` in
12269 *\ * | *\ *)
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12271 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12272 esac
12276 macro_version='2.2.7a'
12277 macro_revision='1.3134'
12291 ltmain="$ac_aux_dir/ltmain.sh"
12293 # Backslashify metacharacters that are still active within
12294 # double-quoted strings.
12295 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12297 # Same as above, but do not quote variable references.
12298 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12300 # Sed substitution to delay expansion of an escaped shell variable in a
12301 # double_quote_subst'ed string.
12302 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12304 # Sed substitution to delay expansion of an escaped single quote.
12305 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12307 # Sed substitution to avoid accidental globbing in evaled expressions
12308 no_glob_subst='s/\*/\\\*/g'
12310 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12311 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12312 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12315 $as_echo_n "checking how to print strings... " >&6; }
12316 # Test print first, because it will be a builtin if present.
12317 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12318 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12319 ECHO='print -r --'
12320 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12321 ECHO='printf %s\n'
12322 else
12323 # Use this function as a fallback that always works.
12324 func_fallback_echo ()
12326 eval 'cat <<_LTECHO_EOF
12328 _LTECHO_EOF'
12330 ECHO='func_fallback_echo'
12333 # func_echo_all arg...
12334 # Invoke $ECHO with all args, space-separated.
12335 func_echo_all ()
12337 $ECHO ""
12340 case "$ECHO" in
12341 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12342 $as_echo "printf" >&6; } ;;
12343 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12344 $as_echo "print -r" >&6; } ;;
12345 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12346 $as_echo "cat" >&6; } ;;
12347 esac
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12363 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12364 if test "${ac_cv_path_SED+set}" = set; then :
12365 $as_echo_n "(cached) " >&6
12366 else
12367 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12368 for ac_i in 1 2 3 4 5 6 7; do
12369 ac_script="$ac_script$as_nl$ac_script"
12370 done
12371 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12372 { ac_script=; unset ac_script;}
12373 if test -z "$SED"; then
12374 ac_path_SED_found=false
12375 # Loop through the user's path and test for each of PROGNAME-LIST
12376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12377 for as_dir in $PATH
12379 IFS=$as_save_IFS
12380 test -z "$as_dir" && as_dir=.
12381 for ac_prog in sed gsed; do
12382 for ac_exec_ext in '' $ac_executable_extensions; do
12383 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12384 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12385 # Check for GNU ac_path_SED and select it if it is found.
12386 # Check for GNU $ac_path_SED
12387 case `"$ac_path_SED" --version 2>&1` in
12388 *GNU*)
12389 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12391 ac_count=0
12392 $as_echo_n 0123456789 >"conftest.in"
12393 while :
12395 cat "conftest.in" "conftest.in" >"conftest.tmp"
12396 mv "conftest.tmp" "conftest.in"
12397 cp "conftest.in" "conftest.nl"
12398 $as_echo '' >> "conftest.nl"
12399 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12400 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12401 as_fn_arith $ac_count + 1 && ac_count=$as_val
12402 if test $ac_count -gt ${ac_path_SED_max-0}; then
12403 # Best one so far, save it but keep looking for a better one
12404 ac_cv_path_SED="$ac_path_SED"
12405 ac_path_SED_max=$ac_count
12407 # 10*(2^10) chars as input seems more than enough
12408 test $ac_count -gt 10 && break
12409 done
12410 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12411 esac
12413 $ac_path_SED_found && break 3
12414 done
12415 done
12416 done
12417 IFS=$as_save_IFS
12418 if test -z "$ac_cv_path_SED"; then
12419 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12421 else
12422 ac_cv_path_SED=$SED
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12427 $as_echo "$ac_cv_path_SED" >&6; }
12428 SED="$ac_cv_path_SED"
12429 rm -f conftest.sed
12431 test -z "$SED" && SED=sed
12432 Xsed="$SED -e 1s/^X//"
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12445 $as_echo_n "checking for fgrep... " >&6; }
12446 if test "${ac_cv_path_FGREP+set}" = set; then :
12447 $as_echo_n "(cached) " >&6
12448 else
12449 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12450 then ac_cv_path_FGREP="$GREP -F"
12451 else
12452 if test -z "$FGREP"; then
12453 ac_path_FGREP_found=false
12454 # Loop through the user's path and test for each of PROGNAME-LIST
12455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12456 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12458 IFS=$as_save_IFS
12459 test -z "$as_dir" && as_dir=.
12460 for ac_prog in fgrep; do
12461 for ac_exec_ext in '' $ac_executable_extensions; do
12462 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12463 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12464 # Check for GNU ac_path_FGREP and select it if it is found.
12465 # Check for GNU $ac_path_FGREP
12466 case `"$ac_path_FGREP" --version 2>&1` in
12467 *GNU*)
12468 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12470 ac_count=0
12471 $as_echo_n 0123456789 >"conftest.in"
12472 while :
12474 cat "conftest.in" "conftest.in" >"conftest.tmp"
12475 mv "conftest.tmp" "conftest.in"
12476 cp "conftest.in" "conftest.nl"
12477 $as_echo 'FGREP' >> "conftest.nl"
12478 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12479 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12480 as_fn_arith $ac_count + 1 && ac_count=$as_val
12481 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12482 # Best one so far, save it but keep looking for a better one
12483 ac_cv_path_FGREP="$ac_path_FGREP"
12484 ac_path_FGREP_max=$ac_count
12486 # 10*(2^10) chars as input seems more than enough
12487 test $ac_count -gt 10 && break
12488 done
12489 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12490 esac
12492 $ac_path_FGREP_found && break 3
12493 done
12494 done
12495 done
12496 IFS=$as_save_IFS
12497 if test -z "$ac_cv_path_FGREP"; then
12498 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12500 else
12501 ac_cv_path_FGREP=$FGREP
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12507 $as_echo "$ac_cv_path_FGREP" >&6; }
12508 FGREP="$ac_cv_path_FGREP"
12511 test -z "$GREP" && GREP=grep
12531 # Check whether --with-gnu-ld was given.
12532 if test "${with_gnu_ld+set}" = set; then :
12533 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12534 else
12535 with_gnu_ld=no
12538 ac_prog=ld
12539 if test "$GCC" = yes; then
12540 # Check if gcc -print-prog-name=ld gives a path.
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12542 $as_echo_n "checking for ld used by $CC... " >&6; }
12543 case $host in
12544 *-*-mingw*)
12545 # gcc leaves a trailing carriage return which upsets mingw
12546 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12548 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12549 esac
12550 case $ac_prog in
12551 # Accept absolute paths.
12552 [\\/]* | ?:[\\/]*)
12553 re_direlt='/[^/][^/]*/\.\./'
12554 # Canonicalize the pathname of ld
12555 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12556 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12557 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12558 done
12559 test -z "$LD" && LD="$ac_prog"
12562 # If it fails, then pretend we aren't using GCC.
12563 ac_prog=ld
12566 # If it is relative, then search for the first ld in PATH.
12567 with_gnu_ld=unknown
12569 esac
12570 elif test "$with_gnu_ld" = yes; then
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12572 $as_echo_n "checking for GNU ld... " >&6; }
12573 else
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12575 $as_echo_n "checking for non-GNU ld... " >&6; }
12577 if test "${lt_cv_path_LD+set}" = set; then :
12578 $as_echo_n "(cached) " >&6
12579 else
12580 if test -z "$LD"; then
12581 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12582 for ac_dir in $PATH; do
12583 IFS="$lt_save_ifs"
12584 test -z "$ac_dir" && ac_dir=.
12585 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12586 lt_cv_path_LD="$ac_dir/$ac_prog"
12587 # Check to see if the program is GNU ld. I'd rather use --version,
12588 # but apparently some variants of GNU ld only accept -v.
12589 # Break only if it was the GNU/non-GNU ld that we prefer.
12590 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12591 *GNU* | *'with BFD'*)
12592 test "$with_gnu_ld" != no && break
12595 test "$with_gnu_ld" != yes && break
12597 esac
12599 done
12600 IFS="$lt_save_ifs"
12601 else
12602 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12606 LD="$lt_cv_path_LD"
12607 if test -n "$LD"; then
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12609 $as_echo "$LD" >&6; }
12610 else
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12612 $as_echo "no" >&6; }
12614 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12616 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12617 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12618 $as_echo_n "(cached) " >&6
12619 else
12620 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12621 case `$LD -v 2>&1 </dev/null` in
12622 *GNU* | *'with BFD'*)
12623 lt_cv_prog_gnu_ld=yes
12626 lt_cv_prog_gnu_ld=no
12628 esac
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12631 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12632 with_gnu_ld=$lt_cv_prog_gnu_ld
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12643 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12644 if test "${lt_cv_path_NM+set}" = set; then :
12645 $as_echo_n "(cached) " >&6
12646 else
12647 if test -n "$NM"; then
12648 # Let the user override the test.
12649 lt_cv_path_NM="$NM"
12650 else
12651 lt_nm_to_check="${ac_tool_prefix}nm"
12652 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12653 lt_nm_to_check="$lt_nm_to_check nm"
12655 for lt_tmp_nm in $lt_nm_to_check; do
12656 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12657 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12658 IFS="$lt_save_ifs"
12659 test -z "$ac_dir" && ac_dir=.
12660 tmp_nm="$ac_dir/$lt_tmp_nm"
12661 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12662 # Check to see if the nm accepts a BSD-compat flag.
12663 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12664 # nm: unknown option "B" ignored
12665 # Tru64's nm complains that /dev/null is an invalid object file
12666 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12667 */dev/null* | *'Invalid file or object type'*)
12668 lt_cv_path_NM="$tmp_nm -B"
12669 break
12672 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12673 */dev/null*)
12674 lt_cv_path_NM="$tmp_nm -p"
12675 break
12678 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12679 continue # so that we can try to find one that supports BSD flags
12681 esac
12683 esac
12685 done
12686 IFS="$lt_save_ifs"
12687 done
12688 : ${lt_cv_path_NM=no}
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12692 $as_echo "$lt_cv_path_NM" >&6; }
12693 if test "$lt_cv_path_NM" != "no"; then
12694 NM="$lt_cv_path_NM"
12695 else
12696 # Didn't find any BSD compatible name lister, look for dumpbin.
12697 if test -n "$DUMPBIN"; then :
12698 # Let the user override the test.
12699 else
12700 if test -n "$ac_tool_prefix"; then
12701 for ac_prog in dumpbin "link -dump"
12703 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12704 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12706 $as_echo_n "checking for $ac_word... " >&6; }
12707 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12708 $as_echo_n "(cached) " >&6
12709 else
12710 if test -n "$DUMPBIN"; then
12711 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12712 else
12713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12714 for as_dir in $PATH
12716 IFS=$as_save_IFS
12717 test -z "$as_dir" && as_dir=.
12718 for ac_exec_ext in '' $ac_executable_extensions; do
12719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12720 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12722 break 2
12724 done
12725 done
12726 IFS=$as_save_IFS
12730 DUMPBIN=$ac_cv_prog_DUMPBIN
12731 if test -n "$DUMPBIN"; then
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12733 $as_echo "$DUMPBIN" >&6; }
12734 else
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12736 $as_echo "no" >&6; }
12740 test -n "$DUMPBIN" && break
12741 done
12743 if test -z "$DUMPBIN"; then
12744 ac_ct_DUMPBIN=$DUMPBIN
12745 for ac_prog in dumpbin "link -dump"
12747 # Extract the first word of "$ac_prog", so it can be a program name with args.
12748 set dummy $ac_prog; ac_word=$2
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12750 $as_echo_n "checking for $ac_word... " >&6; }
12751 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12752 $as_echo_n "(cached) " >&6
12753 else
12754 if test -n "$ac_ct_DUMPBIN"; then
12755 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12756 else
12757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12758 for as_dir in $PATH
12760 IFS=$as_save_IFS
12761 test -z "$as_dir" && as_dir=.
12762 for ac_exec_ext in '' $ac_executable_extensions; do
12763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12764 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12766 break 2
12768 done
12769 done
12770 IFS=$as_save_IFS
12774 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12775 if test -n "$ac_ct_DUMPBIN"; then
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12777 $as_echo "$ac_ct_DUMPBIN" >&6; }
12778 else
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12780 $as_echo "no" >&6; }
12784 test -n "$ac_ct_DUMPBIN" && break
12785 done
12787 if test "x$ac_ct_DUMPBIN" = x; then
12788 DUMPBIN=":"
12789 else
12790 case $cross_compiling:$ac_tool_warned in
12791 yes:)
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12794 ac_tool_warned=yes ;;
12795 esac
12796 DUMPBIN=$ac_ct_DUMPBIN
12800 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12801 *COFF*)
12802 DUMPBIN="$DUMPBIN -symbols"
12805 DUMPBIN=:
12807 esac
12810 if test "$DUMPBIN" != ":"; then
12811 NM="$DUMPBIN"
12814 test -z "$NM" && NM=nm
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12822 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12823 if test "${lt_cv_nm_interface+set}" = set; then :
12824 $as_echo_n "(cached) " >&6
12825 else
12826 lt_cv_nm_interface="BSD nm"
12827 echo "int some_variable = 0;" > conftest.$ac_ext
12828 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12829 (eval "$ac_compile" 2>conftest.err)
12830 cat conftest.err >&5
12831 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12832 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12833 cat conftest.err >&5
12834 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12835 cat conftest.out >&5
12836 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12837 lt_cv_nm_interface="MS dumpbin"
12839 rm -f conftest*
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12842 $as_echo "$lt_cv_nm_interface" >&6; }
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12845 $as_echo_n "checking whether ln -s works... " >&6; }
12846 LN_S=$as_ln_s
12847 if test "$LN_S" = "ln -s"; then
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12849 $as_echo "yes" >&6; }
12850 else
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12852 $as_echo "no, using $LN_S" >&6; }
12855 # find the maximum length of command line arguments
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12857 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12858 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12859 $as_echo_n "(cached) " >&6
12860 else
12862 teststring="ABCD"
12864 case $build_os in
12865 msdosdjgpp*)
12866 # On DJGPP, this test can blow up pretty badly due to problems in libc
12867 # (any single argument exceeding 2000 bytes causes a buffer overrun
12868 # during glob expansion). Even if it were fixed, the result of this
12869 # check would be larger than it should be.
12870 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12873 gnu*)
12874 # Under GNU Hurd, this test is not required because there is
12875 # no limit to the length of command line arguments.
12876 # Libtool will interpret -1 as no limit whatsoever
12877 lt_cv_sys_max_cmd_len=-1;
12880 cygwin* | mingw* | cegcc*)
12881 # On Win9x/ME, this test blows up -- it succeeds, but takes
12882 # about 5 minutes as the teststring grows exponentially.
12883 # Worse, since 9x/ME are not pre-emptively multitasking,
12884 # you end up with a "frozen" computer, even though with patience
12885 # the test eventually succeeds (with a max line length of 256k).
12886 # Instead, let's just punt: use the minimum linelength reported by
12887 # all of the supported platforms: 8192 (on NT/2K/XP).
12888 lt_cv_sys_max_cmd_len=8192;
12891 mint*)
12892 # On MiNT this can take a long time and run out of memory.
12893 lt_cv_sys_max_cmd_len=8192;
12896 amigaos*)
12897 # On AmigaOS with pdksh, this test takes hours, literally.
12898 # So we just punt and use a minimum line length of 8192.
12899 lt_cv_sys_max_cmd_len=8192;
12902 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12903 # This has been around since 386BSD, at least. Likely further.
12904 if test -x /sbin/sysctl; then
12905 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12906 elif test -x /usr/sbin/sysctl; then
12907 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12908 else
12909 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12911 # And add a safety zone
12912 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12913 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12916 interix*)
12917 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12918 lt_cv_sys_max_cmd_len=196608
12921 osf*)
12922 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12923 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12924 # nice to cause kernel panics so lets avoid the loop below.
12925 # First set a reasonable default.
12926 lt_cv_sys_max_cmd_len=16384
12928 if test -x /sbin/sysconfig; then
12929 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12930 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12931 esac
12934 sco3.2v5*)
12935 lt_cv_sys_max_cmd_len=102400
12937 sysv5* | sco5v6* | sysv4.2uw2*)
12938 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12939 if test -n "$kargmax"; then
12940 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12941 else
12942 lt_cv_sys_max_cmd_len=32768
12946 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12947 if test -n "$lt_cv_sys_max_cmd_len"; then
12948 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12949 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12950 else
12951 # Make teststring a little bigger before we do anything with it.
12952 # a 1K string should be a reasonable start.
12953 for i in 1 2 3 4 5 6 7 8 ; do
12954 teststring=$teststring$teststring
12955 done
12956 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12957 # If test is not a shell built-in, we'll probably end up computing a
12958 # maximum length that is only half of the actual maximum length, but
12959 # we can't tell.
12960 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12961 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12962 test $i != 17 # 1/2 MB should be enough
12964 i=`expr $i + 1`
12965 teststring=$teststring$teststring
12966 done
12967 # Only check the string length outside the loop.
12968 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12969 teststring=
12970 # Add a significant safety factor because C++ compilers can tack on
12971 # massive amounts of additional arguments before passing them to the
12972 # linker. It appears as though 1/2 is a usable value.
12973 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12976 esac
12980 if test -n $lt_cv_sys_max_cmd_len ; then
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12982 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12983 else
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12985 $as_echo "none" >&6; }
12987 max_cmd_len=$lt_cv_sys_max_cmd_len
12994 : ${CP="cp -f"}
12995 : ${MV="mv -f"}
12996 : ${RM="rm -f"}
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12999 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13000 # Try some XSI features
13001 xsi_shell=no
13002 ( _lt_dummy="a/b/c"
13003 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13004 = c,a/b,, \
13005 && eval 'test $(( 1 + 1 )) -eq 2 \
13006 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13007 && xsi_shell=yes
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13009 $as_echo "$xsi_shell" >&6; }
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13013 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13014 lt_shell_append=no
13015 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13016 >/dev/null 2>&1 \
13017 && lt_shell_append=yes
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13019 $as_echo "$lt_shell_append" >&6; }
13022 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13023 lt_unset=unset
13024 else
13025 lt_unset=false
13032 # test EBCDIC or ASCII
13033 case `echo X|tr X '\101'` in
13034 A) # ASCII based system
13035 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13036 lt_SP2NL='tr \040 \012'
13037 lt_NL2SP='tr \015\012 \040\040'
13039 *) # EBCDIC based system
13040 lt_SP2NL='tr \100 \n'
13041 lt_NL2SP='tr \r\n \100\100'
13043 esac
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13054 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13055 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13056 $as_echo_n "(cached) " >&6
13057 else
13058 lt_cv_ld_reload_flag='-r'
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13061 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13062 reload_flag=$lt_cv_ld_reload_flag
13063 case $reload_flag in
13064 "" | " "*) ;;
13065 *) reload_flag=" $reload_flag" ;;
13066 esac
13067 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13068 case $host_os in
13069 darwin*)
13070 if test "$GCC" = yes; then
13071 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13072 else
13073 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13076 esac
13086 if test -n "$ac_tool_prefix"; then
13087 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13088 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13090 $as_echo_n "checking for $ac_word... " >&6; }
13091 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13092 $as_echo_n "(cached) " >&6
13093 else
13094 if test -n "$OBJDUMP"; then
13095 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13096 else
13097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13098 for as_dir in $PATH
13100 IFS=$as_save_IFS
13101 test -z "$as_dir" && as_dir=.
13102 for ac_exec_ext in '' $ac_executable_extensions; do
13103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13104 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13106 break 2
13108 done
13109 done
13110 IFS=$as_save_IFS
13114 OBJDUMP=$ac_cv_prog_OBJDUMP
13115 if test -n "$OBJDUMP"; then
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13117 $as_echo "$OBJDUMP" >&6; }
13118 else
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13120 $as_echo "no" >&6; }
13125 if test -z "$ac_cv_prog_OBJDUMP"; then
13126 ac_ct_OBJDUMP=$OBJDUMP
13127 # Extract the first word of "objdump", so it can be a program name with args.
13128 set dummy objdump; ac_word=$2
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13130 $as_echo_n "checking for $ac_word... " >&6; }
13131 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13132 $as_echo_n "(cached) " >&6
13133 else
13134 if test -n "$ac_ct_OBJDUMP"; then
13135 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13136 else
13137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13138 for as_dir in $PATH
13140 IFS=$as_save_IFS
13141 test -z "$as_dir" && as_dir=.
13142 for ac_exec_ext in '' $ac_executable_extensions; do
13143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13144 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13146 break 2
13148 done
13149 done
13150 IFS=$as_save_IFS
13154 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13155 if test -n "$ac_ct_OBJDUMP"; then
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13157 $as_echo "$ac_ct_OBJDUMP" >&6; }
13158 else
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13160 $as_echo "no" >&6; }
13163 if test "x$ac_ct_OBJDUMP" = x; then
13164 OBJDUMP="false"
13165 else
13166 case $cross_compiling:$ac_tool_warned in
13167 yes:)
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13170 ac_tool_warned=yes ;;
13171 esac
13172 OBJDUMP=$ac_ct_OBJDUMP
13174 else
13175 OBJDUMP="$ac_cv_prog_OBJDUMP"
13178 test -z "$OBJDUMP" && OBJDUMP=objdump
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13189 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13190 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13191 $as_echo_n "(cached) " >&6
13192 else
13193 lt_cv_file_magic_cmd='$MAGIC_CMD'
13194 lt_cv_file_magic_test_file=
13195 lt_cv_deplibs_check_method='unknown'
13196 # Need to set the preceding variable on all platforms that support
13197 # interlibrary dependencies.
13198 # 'none' -- dependencies not supported.
13199 # `unknown' -- same as none, but documents that we really don't know.
13200 # 'pass_all' -- all dependencies passed with no checks.
13201 # 'test_compile' -- check by making test program.
13202 # 'file_magic [[regex]]' -- check by looking for files in library path
13203 # which responds to the $file_magic_cmd with a given extended regex.
13204 # If you have `file' or equivalent on your system and you're not sure
13205 # whether `pass_all' will *always* work, you probably want this one.
13207 case $host_os in
13208 aix[4-9]*)
13209 lt_cv_deplibs_check_method=pass_all
13212 beos*)
13213 lt_cv_deplibs_check_method=pass_all
13216 bsdi[45]*)
13217 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13218 lt_cv_file_magic_cmd='/usr/bin/file -L'
13219 lt_cv_file_magic_test_file=/shlib/libc.so
13222 cygwin*)
13223 # func_win32_libid is a shell function defined in ltmain.sh
13224 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13225 lt_cv_file_magic_cmd='func_win32_libid'
13228 mingw* | pw32*)
13229 # Base MSYS/MinGW do not provide the 'file' command needed by
13230 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13231 # unless we find 'file', for example because we are cross-compiling.
13232 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13233 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13234 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13235 lt_cv_file_magic_cmd='func_win32_libid'
13236 else
13237 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13238 lt_cv_file_magic_cmd='$OBJDUMP -f'
13242 cegcc*)
13243 # use the weaker test based on 'objdump'. See mingw*.
13244 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13245 lt_cv_file_magic_cmd='$OBJDUMP -f'
13248 darwin* | rhapsody*)
13249 lt_cv_deplibs_check_method=pass_all
13252 freebsd* | dragonfly*)
13253 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13254 case $host_cpu in
13255 i*86 )
13256 # Not sure whether the presence of OpenBSD here was a mistake.
13257 # Let's accept both of them until this is cleared up.
13258 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13259 lt_cv_file_magic_cmd=/usr/bin/file
13260 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13262 esac
13263 else
13264 lt_cv_deplibs_check_method=pass_all
13268 gnu*)
13269 lt_cv_deplibs_check_method=pass_all
13272 haiku*)
13273 lt_cv_deplibs_check_method=pass_all
13276 hpux10.20* | hpux11*)
13277 lt_cv_file_magic_cmd=/usr/bin/file
13278 case $host_cpu in
13279 ia64*)
13280 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13281 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13283 hppa*64*)
13284 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]'
13285 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13288 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13289 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13291 esac
13294 interix[3-9]*)
13295 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13296 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13299 irix5* | irix6* | nonstopux*)
13300 case $LD in
13301 *-32|*"-32 ") libmagic=32-bit;;
13302 *-n32|*"-n32 ") libmagic=N32;;
13303 *-64|*"-64 ") libmagic=64-bit;;
13304 *) libmagic=never-match;;
13305 esac
13306 lt_cv_deplibs_check_method=pass_all
13309 # This must be Linux ELF.
13310 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13311 lt_cv_deplibs_check_method=pass_all
13314 netbsd*)
13315 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13316 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13317 else
13318 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13322 newos6*)
13323 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13324 lt_cv_file_magic_cmd=/usr/bin/file
13325 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13328 *nto* | *qnx*)
13329 lt_cv_deplibs_check_method=pass_all
13332 openbsd*)
13333 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13334 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13335 else
13336 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13340 osf3* | osf4* | osf5*)
13341 lt_cv_deplibs_check_method=pass_all
13344 rdos*)
13345 lt_cv_deplibs_check_method=pass_all
13348 solaris*)
13349 lt_cv_deplibs_check_method=pass_all
13352 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13353 lt_cv_deplibs_check_method=pass_all
13356 sysv4 | sysv4.3*)
13357 case $host_vendor in
13358 motorola)
13359 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]'
13360 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13362 ncr)
13363 lt_cv_deplibs_check_method=pass_all
13365 sequent)
13366 lt_cv_file_magic_cmd='/bin/file'
13367 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13369 sni)
13370 lt_cv_file_magic_cmd='/bin/file'
13371 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13372 lt_cv_file_magic_test_file=/lib/libc.so
13374 siemens)
13375 lt_cv_deplibs_check_method=pass_all
13378 lt_cv_deplibs_check_method=pass_all
13380 esac
13383 tpf*)
13384 lt_cv_deplibs_check_method=pass_all
13386 esac
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13390 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13391 file_magic_cmd=$lt_cv_file_magic_cmd
13392 deplibs_check_method=$lt_cv_deplibs_check_method
13393 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13406 if test -n "$ac_tool_prefix"; then
13407 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13408 set dummy ${ac_tool_prefix}ar; ac_word=$2
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13410 $as_echo_n "checking for $ac_word... " >&6; }
13411 if test "${ac_cv_prog_AR+set}" = set; then :
13412 $as_echo_n "(cached) " >&6
13413 else
13414 if test -n "$AR"; then
13415 ac_cv_prog_AR="$AR" # Let the user override the test.
13416 else
13417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13418 for as_dir in $PATH
13420 IFS=$as_save_IFS
13421 test -z "$as_dir" && as_dir=.
13422 for ac_exec_ext in '' $ac_executable_extensions; do
13423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13424 ac_cv_prog_AR="${ac_tool_prefix}ar"
13425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13426 break 2
13428 done
13429 done
13430 IFS=$as_save_IFS
13434 AR=$ac_cv_prog_AR
13435 if test -n "$AR"; then
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13437 $as_echo "$AR" >&6; }
13438 else
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13440 $as_echo "no" >&6; }
13445 if test -z "$ac_cv_prog_AR"; then
13446 ac_ct_AR=$AR
13447 # Extract the first word of "ar", so it can be a program name with args.
13448 set dummy ar; ac_word=$2
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13450 $as_echo_n "checking for $ac_word... " >&6; }
13451 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13452 $as_echo_n "(cached) " >&6
13453 else
13454 if test -n "$ac_ct_AR"; then
13455 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13456 else
13457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13458 for as_dir in $PATH
13460 IFS=$as_save_IFS
13461 test -z "$as_dir" && as_dir=.
13462 for ac_exec_ext in '' $ac_executable_extensions; do
13463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13464 ac_cv_prog_ac_ct_AR="ar"
13465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13466 break 2
13468 done
13469 done
13470 IFS=$as_save_IFS
13474 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13475 if test -n "$ac_ct_AR"; then
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13477 $as_echo "$ac_ct_AR" >&6; }
13478 else
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13480 $as_echo "no" >&6; }
13483 if test "x$ac_ct_AR" = x; then
13484 AR="false"
13485 else
13486 case $cross_compiling:$ac_tool_warned in
13487 yes:)
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13490 ac_tool_warned=yes ;;
13491 esac
13492 AR=$ac_ct_AR
13494 else
13495 AR="$ac_cv_prog_AR"
13498 test -z "$AR" && AR=ar
13499 test -z "$AR_FLAGS" && AR_FLAGS=cru
13511 if test -n "$ac_tool_prefix"; then
13512 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13513 set dummy ${ac_tool_prefix}strip; ac_word=$2
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13515 $as_echo_n "checking for $ac_word... " >&6; }
13516 if test "${ac_cv_prog_STRIP+set}" = set; then :
13517 $as_echo_n "(cached) " >&6
13518 else
13519 if test -n "$STRIP"; then
13520 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13521 else
13522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13523 for as_dir in $PATH
13525 IFS=$as_save_IFS
13526 test -z "$as_dir" && as_dir=.
13527 for ac_exec_ext in '' $ac_executable_extensions; do
13528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13529 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13531 break 2
13533 done
13534 done
13535 IFS=$as_save_IFS
13539 STRIP=$ac_cv_prog_STRIP
13540 if test -n "$STRIP"; then
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13542 $as_echo "$STRIP" >&6; }
13543 else
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13545 $as_echo "no" >&6; }
13550 if test -z "$ac_cv_prog_STRIP"; then
13551 ac_ct_STRIP=$STRIP
13552 # Extract the first word of "strip", so it can be a program name with args.
13553 set dummy strip; ac_word=$2
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13555 $as_echo_n "checking for $ac_word... " >&6; }
13556 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13557 $as_echo_n "(cached) " >&6
13558 else
13559 if test -n "$ac_ct_STRIP"; then
13560 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13561 else
13562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13563 for as_dir in $PATH
13565 IFS=$as_save_IFS
13566 test -z "$as_dir" && as_dir=.
13567 for ac_exec_ext in '' $ac_executable_extensions; do
13568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13569 ac_cv_prog_ac_ct_STRIP="strip"
13570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13571 break 2
13573 done
13574 done
13575 IFS=$as_save_IFS
13579 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13580 if test -n "$ac_ct_STRIP"; then
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13582 $as_echo "$ac_ct_STRIP" >&6; }
13583 else
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13585 $as_echo "no" >&6; }
13588 if test "x$ac_ct_STRIP" = x; then
13589 STRIP=":"
13590 else
13591 case $cross_compiling:$ac_tool_warned in
13592 yes:)
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13595 ac_tool_warned=yes ;;
13596 esac
13597 STRIP=$ac_ct_STRIP
13599 else
13600 STRIP="$ac_cv_prog_STRIP"
13603 test -z "$STRIP" && STRIP=:
13610 if test -n "$ac_tool_prefix"; then
13611 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13612 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13614 $as_echo_n "checking for $ac_word... " >&6; }
13615 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13616 $as_echo_n "(cached) " >&6
13617 else
13618 if test -n "$RANLIB"; then
13619 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13620 else
13621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13622 for as_dir in $PATH
13624 IFS=$as_save_IFS
13625 test -z "$as_dir" && as_dir=.
13626 for ac_exec_ext in '' $ac_executable_extensions; do
13627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13628 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13630 break 2
13632 done
13633 done
13634 IFS=$as_save_IFS
13638 RANLIB=$ac_cv_prog_RANLIB
13639 if test -n "$RANLIB"; then
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13641 $as_echo "$RANLIB" >&6; }
13642 else
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13644 $as_echo "no" >&6; }
13649 if test -z "$ac_cv_prog_RANLIB"; then
13650 ac_ct_RANLIB=$RANLIB
13651 # Extract the first word of "ranlib", so it can be a program name with args.
13652 set dummy ranlib; ac_word=$2
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13654 $as_echo_n "checking for $ac_word... " >&6; }
13655 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13656 $as_echo_n "(cached) " >&6
13657 else
13658 if test -n "$ac_ct_RANLIB"; then
13659 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13660 else
13661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13662 for as_dir in $PATH
13664 IFS=$as_save_IFS
13665 test -z "$as_dir" && as_dir=.
13666 for ac_exec_ext in '' $ac_executable_extensions; do
13667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13668 ac_cv_prog_ac_ct_RANLIB="ranlib"
13669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13670 break 2
13672 done
13673 done
13674 IFS=$as_save_IFS
13678 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13679 if test -n "$ac_ct_RANLIB"; then
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13681 $as_echo "$ac_ct_RANLIB" >&6; }
13682 else
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13684 $as_echo "no" >&6; }
13687 if test "x$ac_ct_RANLIB" = x; then
13688 RANLIB=":"
13689 else
13690 case $cross_compiling:$ac_tool_warned in
13691 yes:)
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13694 ac_tool_warned=yes ;;
13695 esac
13696 RANLIB=$ac_ct_RANLIB
13698 else
13699 RANLIB="$ac_cv_prog_RANLIB"
13702 test -z "$RANLIB" && RANLIB=:
13709 # Determine commands to create old-style static archives.
13710 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13711 old_postinstall_cmds='chmod 644 $oldlib'
13712 old_postuninstall_cmds=
13714 if test -n "$RANLIB"; then
13715 case $host_os in
13716 openbsd*)
13717 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13720 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13722 esac
13723 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13726 case $host_os in
13727 darwin*)
13728 lock_old_archive_extraction=yes ;;
13730 lock_old_archive_extraction=no ;;
13731 esac
13771 # If no C compiler was specified, use CC.
13772 LTCC=${LTCC-"$CC"}
13774 # If no C compiler flags were specified, use CFLAGS.
13775 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13777 # Allow CC to be a program name with arguments.
13778 compiler=$CC
13781 # Check for command to grab the raw symbol name followed by C symbol from nm.
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13783 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13784 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13785 $as_echo_n "(cached) " >&6
13786 else
13788 # These are sane defaults that work on at least a few old systems.
13789 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13791 # Character class describing NM global symbol codes.
13792 symcode='[BCDEGRST]'
13794 # Regexp to match symbols that can be accessed directly from C.
13795 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13797 # Define system-specific variables.
13798 case $host_os in
13799 aix*)
13800 symcode='[BCDT]'
13802 cygwin* | mingw* | pw32* | cegcc*)
13803 symcode='[ABCDGISTW]'
13805 hpux*)
13806 if test "$host_cpu" = ia64; then
13807 symcode='[ABCDEGRST]'
13810 irix* | nonstopux*)
13811 symcode='[BCDEGRST]'
13813 osf*)
13814 symcode='[BCDEGQRST]'
13816 solaris*)
13817 symcode='[BDRT]'
13819 sco3.2v5*)
13820 symcode='[DT]'
13822 sysv4.2uw2*)
13823 symcode='[DT]'
13825 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13826 symcode='[ABDT]'
13828 sysv4)
13829 symcode='[DFNSTU]'
13831 esac
13833 # If we're using GNU nm, then use its standard symbol codes.
13834 case `$NM -V 2>&1` in
13835 *GNU* | *'with BFD'*)
13836 symcode='[ABCDGIRSTW]' ;;
13837 esac
13839 # Transform an extracted symbol line into a proper C declaration.
13840 # Some systems (esp. on ia64) link data and code symbols differently,
13841 # so use this general approach.
13842 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13844 # Transform an extracted symbol line into symbol name and symbol address
13845 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13846 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'"
13848 # Handle CRLF in mingw tool chain
13849 opt_cr=
13850 case $build_os in
13851 mingw*)
13852 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13854 esac
13856 # Try without a prefix underscore, then with it.
13857 for ac_symprfx in "" "_"; do
13859 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13860 symxfrm="\\1 $ac_symprfx\\2 \\2"
13862 # Write the raw and C identifiers.
13863 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13864 # Fake it for dumpbin and say T for any non-static function
13865 # and D for any global variable.
13866 # Also find C++ and __fastcall symbols from MSVC++,
13867 # which start with @ or ?.
13868 lt_cv_sys_global_symbol_pipe="$AWK '"\
13869 " {last_section=section; section=\$ 3};"\
13870 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13871 " \$ 0!~/External *\|/{next};"\
13872 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13873 " {if(hide[section]) next};"\
13874 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13875 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13876 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13877 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13878 " ' prfx=^$ac_symprfx"
13879 else
13880 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13883 # Check to see that the pipe works correctly.
13884 pipe_works=no
13886 rm -f conftest*
13887 cat > conftest.$ac_ext <<_LT_EOF
13888 #ifdef __cplusplus
13889 extern "C" {
13890 #endif
13891 char nm_test_var;
13892 void nm_test_func(void);
13893 void nm_test_func(void){}
13894 #ifdef __cplusplus
13896 #endif
13897 int main(){nm_test_var='a';nm_test_func();return(0);}
13898 _LT_EOF
13900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13901 (eval $ac_compile) 2>&5
13902 ac_status=$?
13903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13904 test $ac_status = 0; }; then
13905 # Now try to grab the symbols.
13906 nlist=conftest.nm
13907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13908 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13909 ac_status=$?
13910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13911 test $ac_status = 0; } && test -s "$nlist"; then
13912 # Try sorting and uniquifying the output.
13913 if sort "$nlist" | uniq > "$nlist"T; then
13914 mv -f "$nlist"T "$nlist"
13915 else
13916 rm -f "$nlist"T
13919 # Make sure that we snagged all the symbols we need.
13920 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13921 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13922 cat <<_LT_EOF > conftest.$ac_ext
13923 #ifdef __cplusplus
13924 extern "C" {
13925 #endif
13927 _LT_EOF
13928 # Now generate the symbol file.
13929 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13931 cat <<_LT_EOF >> conftest.$ac_ext
13933 /* The mapping between symbol names and symbols. */
13934 const struct {
13935 const char *name;
13936 void *address;
13938 lt__PROGRAM__LTX_preloaded_symbols[] =
13940 { "@PROGRAM@", (void *) 0 },
13941 _LT_EOF
13942 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13943 cat <<\_LT_EOF >> conftest.$ac_ext
13944 {0, (void *) 0}
13947 /* This works around a problem in FreeBSD linker */
13948 #ifdef FREEBSD_WORKAROUND
13949 static const void *lt_preloaded_setup() {
13950 return lt__PROGRAM__LTX_preloaded_symbols;
13952 #endif
13954 #ifdef __cplusplus
13956 #endif
13957 _LT_EOF
13958 # Now try linking the two files.
13959 mv conftest.$ac_objext conftstm.$ac_objext
13960 lt_save_LIBS="$LIBS"
13961 lt_save_CFLAGS="$CFLAGS"
13962 LIBS="conftstm.$ac_objext"
13963 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13965 (eval $ac_link) 2>&5
13966 ac_status=$?
13967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13968 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13969 pipe_works=yes
13971 LIBS="$lt_save_LIBS"
13972 CFLAGS="$lt_save_CFLAGS"
13973 else
13974 echo "cannot find nm_test_func in $nlist" >&5
13976 else
13977 echo "cannot find nm_test_var in $nlist" >&5
13979 else
13980 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13982 else
13983 echo "$progname: failed program was:" >&5
13984 cat conftest.$ac_ext >&5
13986 rm -rf conftest* conftst*
13988 # Do not use the global_symbol_pipe unless it works.
13989 if test "$pipe_works" = yes; then
13990 break
13991 else
13992 lt_cv_sys_global_symbol_pipe=
13994 done
13998 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13999 lt_cv_sys_global_symbol_to_cdecl=
14001 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14003 $as_echo "failed" >&6; }
14004 else
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14006 $as_echo "ok" >&6; }
14030 # Check whether --enable-libtool-lock was given.
14031 if test "${enable_libtool_lock+set}" = set; then :
14032 enableval=$enable_libtool_lock;
14035 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14037 # Some flags need to be propagated to the compiler or linker for good
14038 # libtool support.
14039 case $host in
14040 ia64-*-hpux*)
14041 # Find out which ABI we are using.
14042 echo 'int i;' > conftest.$ac_ext
14043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14044 (eval $ac_compile) 2>&5
14045 ac_status=$?
14046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14047 test $ac_status = 0; }; then
14048 case `/usr/bin/file conftest.$ac_objext` in
14049 *ELF-32*)
14050 HPUX_IA64_MODE="32"
14052 *ELF-64*)
14053 HPUX_IA64_MODE="64"
14055 esac
14057 rm -rf conftest*
14059 *-*-irix6*)
14060 # Find out which ABI we are using.
14061 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14063 (eval $ac_compile) 2>&5
14064 ac_status=$?
14065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14066 test $ac_status = 0; }; then
14067 if test "$lt_cv_prog_gnu_ld" = yes; then
14068 case `/usr/bin/file conftest.$ac_objext` in
14069 *32-bit*)
14070 LD="${LD-ld} -melf32bsmip"
14072 *N32*)
14073 LD="${LD-ld} -melf32bmipn32"
14075 *64-bit*)
14076 LD="${LD-ld} -melf64bmip"
14078 esac
14079 else
14080 case `/usr/bin/file conftest.$ac_objext` in
14081 *32-bit*)
14082 LD="${LD-ld} -32"
14084 *N32*)
14085 LD="${LD-ld} -n32"
14087 *64-bit*)
14088 LD="${LD-ld} -64"
14090 esac
14093 rm -rf conftest*
14096 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14097 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14098 # Find out which ABI we are using.
14099 echo 'int i;' > conftest.$ac_ext
14100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14101 (eval $ac_compile) 2>&5
14102 ac_status=$?
14103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14104 test $ac_status = 0; }; then
14105 case `/usr/bin/file conftest.o` in
14106 *32-bit*)
14107 case $host in
14108 x86_64-*kfreebsd*-gnu)
14109 LD="${LD-ld} -m elf_i386_fbsd"
14111 x86_64-*linux*)
14112 case `/usr/bin/file conftest.o` in
14113 *x86-64*)
14114 LD="${LD-ld} -m elf32_x86_64"
14117 LD="${LD-ld} -m elf_i386"
14119 esac
14121 powerpc64le-*linux*)
14122 LD="${LD-ld} -m elf32lppclinux"
14124 powerpc64-*linux*)
14125 LD="${LD-ld} -m elf32ppclinux"
14127 s390x-*linux*)
14128 LD="${LD-ld} -m elf_s390"
14130 sparc64-*linux*)
14131 LD="${LD-ld} -m elf32_sparc"
14133 esac
14135 *64-bit*)
14136 case $host in
14137 x86_64-*kfreebsd*-gnu)
14138 LD="${LD-ld} -m elf_x86_64_fbsd"
14140 x86_64-*linux*)
14141 LD="${LD-ld} -m elf_x86_64"
14143 powerpcle-*linux*)
14144 LD="${LD-ld} -m elf64lppc"
14146 powerpc-*linux*)
14147 LD="${LD-ld} -m elf64ppc"
14149 s390*-*linux*|s390*-*tpf*)
14150 LD="${LD-ld} -m elf64_s390"
14152 sparc*-*linux*)
14153 LD="${LD-ld} -m elf64_sparc"
14155 esac
14157 esac
14159 rm -rf conftest*
14162 *-*-sco3.2v5*)
14163 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14164 SAVE_CFLAGS="$CFLAGS"
14165 CFLAGS="$CFLAGS -belf"
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14167 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14168 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14169 $as_echo_n "(cached) " >&6
14170 else
14171 ac_ext=c
14172 ac_cpp='$CPP $CPPFLAGS'
14173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14178 /* end confdefs.h. */
14181 main ()
14185 return 0;
14187 _ACEOF
14188 if ac_fn_c_try_link "$LINENO"; then :
14189 lt_cv_cc_needs_belf=yes
14190 else
14191 lt_cv_cc_needs_belf=no
14193 rm -f core conftest.err conftest.$ac_objext \
14194 conftest$ac_exeext conftest.$ac_ext
14195 ac_ext=c
14196 ac_cpp='$CPP $CPPFLAGS'
14197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14203 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14204 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14205 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14206 CFLAGS="$SAVE_CFLAGS"
14209 sparc*-*solaris*)
14210 # Find out which ABI we are using.
14211 echo 'int i;' > conftest.$ac_ext
14212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14213 (eval $ac_compile) 2>&5
14214 ac_status=$?
14215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14216 test $ac_status = 0; }; then
14217 case `/usr/bin/file conftest.o` in
14218 *64-bit*)
14219 case $lt_cv_prog_gnu_ld in
14220 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14222 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14223 LD="${LD-ld} -64"
14226 esac
14228 esac
14230 rm -rf conftest*
14232 esac
14234 need_locks="$enable_libtool_lock"
14237 case $host_os in
14238 rhapsody* | darwin*)
14239 if test -n "$ac_tool_prefix"; then
14240 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14241 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14243 $as_echo_n "checking for $ac_word... " >&6; }
14244 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14245 $as_echo_n "(cached) " >&6
14246 else
14247 if test -n "$DSYMUTIL"; then
14248 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14249 else
14250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14251 for as_dir in $PATH
14253 IFS=$as_save_IFS
14254 test -z "$as_dir" && as_dir=.
14255 for ac_exec_ext in '' $ac_executable_extensions; do
14256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14257 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14259 break 2
14261 done
14262 done
14263 IFS=$as_save_IFS
14267 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14268 if test -n "$DSYMUTIL"; then
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14270 $as_echo "$DSYMUTIL" >&6; }
14271 else
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14273 $as_echo "no" >&6; }
14278 if test -z "$ac_cv_prog_DSYMUTIL"; then
14279 ac_ct_DSYMUTIL=$DSYMUTIL
14280 # Extract the first word of "dsymutil", so it can be a program name with args.
14281 set dummy dsymutil; ac_word=$2
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14283 $as_echo_n "checking for $ac_word... " >&6; }
14284 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14285 $as_echo_n "(cached) " >&6
14286 else
14287 if test -n "$ac_ct_DSYMUTIL"; then
14288 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14289 else
14290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14291 for as_dir in $PATH
14293 IFS=$as_save_IFS
14294 test -z "$as_dir" && as_dir=.
14295 for ac_exec_ext in '' $ac_executable_extensions; do
14296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14297 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14299 break 2
14301 done
14302 done
14303 IFS=$as_save_IFS
14307 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14308 if test -n "$ac_ct_DSYMUTIL"; then
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14310 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14311 else
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14313 $as_echo "no" >&6; }
14316 if test "x$ac_ct_DSYMUTIL" = x; then
14317 DSYMUTIL=":"
14318 else
14319 case $cross_compiling:$ac_tool_warned in
14320 yes:)
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14323 ac_tool_warned=yes ;;
14324 esac
14325 DSYMUTIL=$ac_ct_DSYMUTIL
14327 else
14328 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14331 if test -n "$ac_tool_prefix"; then
14332 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14333 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14335 $as_echo_n "checking for $ac_word... " >&6; }
14336 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14337 $as_echo_n "(cached) " >&6
14338 else
14339 if test -n "$NMEDIT"; then
14340 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14341 else
14342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14343 for as_dir in $PATH
14345 IFS=$as_save_IFS
14346 test -z "$as_dir" && as_dir=.
14347 for ac_exec_ext in '' $ac_executable_extensions; do
14348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14349 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14351 break 2
14353 done
14354 done
14355 IFS=$as_save_IFS
14359 NMEDIT=$ac_cv_prog_NMEDIT
14360 if test -n "$NMEDIT"; then
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14362 $as_echo "$NMEDIT" >&6; }
14363 else
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14365 $as_echo "no" >&6; }
14370 if test -z "$ac_cv_prog_NMEDIT"; then
14371 ac_ct_NMEDIT=$NMEDIT
14372 # Extract the first word of "nmedit", so it can be a program name with args.
14373 set dummy nmedit; ac_word=$2
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14375 $as_echo_n "checking for $ac_word... " >&6; }
14376 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14377 $as_echo_n "(cached) " >&6
14378 else
14379 if test -n "$ac_ct_NMEDIT"; then
14380 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14381 else
14382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14383 for as_dir in $PATH
14385 IFS=$as_save_IFS
14386 test -z "$as_dir" && as_dir=.
14387 for ac_exec_ext in '' $ac_executable_extensions; do
14388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14389 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14391 break 2
14393 done
14394 done
14395 IFS=$as_save_IFS
14399 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14400 if test -n "$ac_ct_NMEDIT"; then
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14402 $as_echo "$ac_ct_NMEDIT" >&6; }
14403 else
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14405 $as_echo "no" >&6; }
14408 if test "x$ac_ct_NMEDIT" = x; then
14409 NMEDIT=":"
14410 else
14411 case $cross_compiling:$ac_tool_warned in
14412 yes:)
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14415 ac_tool_warned=yes ;;
14416 esac
14417 NMEDIT=$ac_ct_NMEDIT
14419 else
14420 NMEDIT="$ac_cv_prog_NMEDIT"
14423 if test -n "$ac_tool_prefix"; then
14424 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14425 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14427 $as_echo_n "checking for $ac_word... " >&6; }
14428 if test "${ac_cv_prog_LIPO+set}" = set; then :
14429 $as_echo_n "(cached) " >&6
14430 else
14431 if test -n "$LIPO"; then
14432 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14433 else
14434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14435 for as_dir in $PATH
14437 IFS=$as_save_IFS
14438 test -z "$as_dir" && as_dir=.
14439 for ac_exec_ext in '' $ac_executable_extensions; do
14440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14441 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14443 break 2
14445 done
14446 done
14447 IFS=$as_save_IFS
14451 LIPO=$ac_cv_prog_LIPO
14452 if test -n "$LIPO"; then
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14454 $as_echo "$LIPO" >&6; }
14455 else
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14457 $as_echo "no" >&6; }
14462 if test -z "$ac_cv_prog_LIPO"; then
14463 ac_ct_LIPO=$LIPO
14464 # Extract the first word of "lipo", so it can be a program name with args.
14465 set dummy lipo; ac_word=$2
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14467 $as_echo_n "checking for $ac_word... " >&6; }
14468 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14469 $as_echo_n "(cached) " >&6
14470 else
14471 if test -n "$ac_ct_LIPO"; then
14472 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14473 else
14474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14475 for as_dir in $PATH
14477 IFS=$as_save_IFS
14478 test -z "$as_dir" && as_dir=.
14479 for ac_exec_ext in '' $ac_executable_extensions; do
14480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14481 ac_cv_prog_ac_ct_LIPO="lipo"
14482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14483 break 2
14485 done
14486 done
14487 IFS=$as_save_IFS
14491 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14492 if test -n "$ac_ct_LIPO"; then
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14494 $as_echo "$ac_ct_LIPO" >&6; }
14495 else
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14497 $as_echo "no" >&6; }
14500 if test "x$ac_ct_LIPO" = x; then
14501 LIPO=":"
14502 else
14503 case $cross_compiling:$ac_tool_warned in
14504 yes:)
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14507 ac_tool_warned=yes ;;
14508 esac
14509 LIPO=$ac_ct_LIPO
14511 else
14512 LIPO="$ac_cv_prog_LIPO"
14515 if test -n "$ac_tool_prefix"; then
14516 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14517 set dummy ${ac_tool_prefix}otool; ac_word=$2
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14519 $as_echo_n "checking for $ac_word... " >&6; }
14520 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14521 $as_echo_n "(cached) " >&6
14522 else
14523 if test -n "$OTOOL"; then
14524 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14525 else
14526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14527 for as_dir in $PATH
14529 IFS=$as_save_IFS
14530 test -z "$as_dir" && as_dir=.
14531 for ac_exec_ext in '' $ac_executable_extensions; do
14532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14533 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14535 break 2
14537 done
14538 done
14539 IFS=$as_save_IFS
14543 OTOOL=$ac_cv_prog_OTOOL
14544 if test -n "$OTOOL"; then
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14546 $as_echo "$OTOOL" >&6; }
14547 else
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14549 $as_echo "no" >&6; }
14554 if test -z "$ac_cv_prog_OTOOL"; then
14555 ac_ct_OTOOL=$OTOOL
14556 # Extract the first word of "otool", so it can be a program name with args.
14557 set dummy otool; ac_word=$2
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14559 $as_echo_n "checking for $ac_word... " >&6; }
14560 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14561 $as_echo_n "(cached) " >&6
14562 else
14563 if test -n "$ac_ct_OTOOL"; then
14564 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14565 else
14566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14567 for as_dir in $PATH
14569 IFS=$as_save_IFS
14570 test -z "$as_dir" && as_dir=.
14571 for ac_exec_ext in '' $ac_executable_extensions; do
14572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14573 ac_cv_prog_ac_ct_OTOOL="otool"
14574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14575 break 2
14577 done
14578 done
14579 IFS=$as_save_IFS
14583 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14584 if test -n "$ac_ct_OTOOL"; then
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14586 $as_echo "$ac_ct_OTOOL" >&6; }
14587 else
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14589 $as_echo "no" >&6; }
14592 if test "x$ac_ct_OTOOL" = x; then
14593 OTOOL=":"
14594 else
14595 case $cross_compiling:$ac_tool_warned in
14596 yes:)
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14599 ac_tool_warned=yes ;;
14600 esac
14601 OTOOL=$ac_ct_OTOOL
14603 else
14604 OTOOL="$ac_cv_prog_OTOOL"
14607 if test -n "$ac_tool_prefix"; then
14608 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14609 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14611 $as_echo_n "checking for $ac_word... " >&6; }
14612 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14613 $as_echo_n "(cached) " >&6
14614 else
14615 if test -n "$OTOOL64"; then
14616 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14617 else
14618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14619 for as_dir in $PATH
14621 IFS=$as_save_IFS
14622 test -z "$as_dir" && as_dir=.
14623 for ac_exec_ext in '' $ac_executable_extensions; do
14624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14625 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14627 break 2
14629 done
14630 done
14631 IFS=$as_save_IFS
14635 OTOOL64=$ac_cv_prog_OTOOL64
14636 if test -n "$OTOOL64"; then
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14638 $as_echo "$OTOOL64" >&6; }
14639 else
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14641 $as_echo "no" >&6; }
14646 if test -z "$ac_cv_prog_OTOOL64"; then
14647 ac_ct_OTOOL64=$OTOOL64
14648 # Extract the first word of "otool64", so it can be a program name with args.
14649 set dummy otool64; ac_word=$2
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14651 $as_echo_n "checking for $ac_word... " >&6; }
14652 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14653 $as_echo_n "(cached) " >&6
14654 else
14655 if test -n "$ac_ct_OTOOL64"; then
14656 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14657 else
14658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14659 for as_dir in $PATH
14661 IFS=$as_save_IFS
14662 test -z "$as_dir" && as_dir=.
14663 for ac_exec_ext in '' $ac_executable_extensions; do
14664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14665 ac_cv_prog_ac_ct_OTOOL64="otool64"
14666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14667 break 2
14669 done
14670 done
14671 IFS=$as_save_IFS
14675 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14676 if test -n "$ac_ct_OTOOL64"; then
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14678 $as_echo "$ac_ct_OTOOL64" >&6; }
14679 else
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14681 $as_echo "no" >&6; }
14684 if test "x$ac_ct_OTOOL64" = x; then
14685 OTOOL64=":"
14686 else
14687 case $cross_compiling:$ac_tool_warned in
14688 yes:)
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14691 ac_tool_warned=yes ;;
14692 esac
14693 OTOOL64=$ac_ct_OTOOL64
14695 else
14696 OTOOL64="$ac_cv_prog_OTOOL64"
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14726 $as_echo_n "checking for -single_module linker flag... " >&6; }
14727 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14728 $as_echo_n "(cached) " >&6
14729 else
14730 lt_cv_apple_cc_single_mod=no
14731 if test -z "${LT_MULTI_MODULE}"; then
14732 # By default we will add the -single_module flag. You can override
14733 # by either setting the environment variable LT_MULTI_MODULE
14734 # non-empty at configure time, or by adding -multi_module to the
14735 # link flags.
14736 rm -rf libconftest.dylib*
14737 echo "int foo(void){return 1;}" > conftest.c
14738 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14739 -dynamiclib -Wl,-single_module conftest.c" >&5
14740 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14741 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14742 _lt_result=$?
14743 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14744 lt_cv_apple_cc_single_mod=yes
14745 else
14746 cat conftest.err >&5
14748 rm -rf libconftest.dylib*
14749 rm -f conftest.*
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14753 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14755 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14756 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14757 $as_echo_n "(cached) " >&6
14758 else
14759 lt_cv_ld_exported_symbols_list=no
14760 save_LDFLAGS=$LDFLAGS
14761 echo "_main" > conftest.sym
14762 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14764 /* end confdefs.h. */
14767 main ()
14771 return 0;
14773 _ACEOF
14774 if ac_fn_c_try_link "$LINENO"; then :
14775 lt_cv_ld_exported_symbols_list=yes
14776 else
14777 lt_cv_ld_exported_symbols_list=no
14779 rm -f core conftest.err conftest.$ac_objext \
14780 conftest$ac_exeext conftest.$ac_ext
14781 LDFLAGS="$save_LDFLAGS"
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14785 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14787 $as_echo_n "checking for -force_load linker flag... " >&6; }
14788 if test "${lt_cv_ld_force_load+set}" = set; then :
14789 $as_echo_n "(cached) " >&6
14790 else
14791 lt_cv_ld_force_load=no
14792 cat > conftest.c << _LT_EOF
14793 int forced_loaded() { return 2;}
14794 _LT_EOF
14795 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14796 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14797 echo "$AR cru libconftest.a conftest.o" >&5
14798 $AR cru libconftest.a conftest.o 2>&5
14799 cat > conftest.c << _LT_EOF
14800 int main() { return 0;}
14801 _LT_EOF
14802 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14803 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14804 _lt_result=$?
14805 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14806 lt_cv_ld_force_load=yes
14807 else
14808 cat conftest.err >&5
14810 rm -f conftest.err libconftest.a conftest conftest.c
14811 rm -rf conftest.dSYM
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14815 $as_echo "$lt_cv_ld_force_load" >&6; }
14816 case $host_os in
14817 rhapsody* | darwin1.[012])
14818 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14819 darwin1.*)
14820 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14821 darwin*) # darwin 5.x on
14822 # if running on 10.5 or later, the deployment target defaults
14823 # to the OS version, if on x86, and 10.4, the deployment
14824 # target defaults to 10.4. Don't you love it?
14825 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14826 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14827 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14828 10.[012][,.]*)
14829 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14830 10.*)
14831 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14832 esac
14834 esac
14835 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14836 _lt_dar_single_mod='$single_module'
14838 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14839 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14840 else
14841 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14843 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14844 _lt_dsymutil='~$DSYMUTIL $lib || :'
14845 else
14846 _lt_dsymutil=
14849 esac
14852 for ac_header in dlfcn.h
14853 do :
14854 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14855 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14856 cat >>confdefs.h <<_ACEOF
14857 #define HAVE_DLFCN_H 1
14858 _ACEOF
14861 done
14867 # Set options
14871 enable_dlopen=no
14874 enable_win32_dll=no
14877 # Check whether --enable-shared was given.
14878 if test "${enable_shared+set}" = set; then :
14879 enableval=$enable_shared; p=${PACKAGE-default}
14880 case $enableval in
14881 yes) enable_shared=yes ;;
14882 no) enable_shared=no ;;
14884 enable_shared=no
14885 # Look at the argument we got. We use all the common list separators.
14886 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14887 for pkg in $enableval; do
14888 IFS="$lt_save_ifs"
14889 if test "X$pkg" = "X$p"; then
14890 enable_shared=yes
14892 done
14893 IFS="$lt_save_ifs"
14895 esac
14896 else
14897 enable_shared=yes
14908 # Check whether --enable-static was given.
14909 if test "${enable_static+set}" = set; then :
14910 enableval=$enable_static; p=${PACKAGE-default}
14911 case $enableval in
14912 yes) enable_static=yes ;;
14913 no) enable_static=no ;;
14915 enable_static=no
14916 # Look at the argument we got. We use all the common list separators.
14917 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14918 for pkg in $enableval; do
14919 IFS="$lt_save_ifs"
14920 if test "X$pkg" = "X$p"; then
14921 enable_static=yes
14923 done
14924 IFS="$lt_save_ifs"
14926 esac
14927 else
14928 enable_static=yes
14940 # Check whether --with-pic was given.
14941 if test "${with_pic+set}" = set; then :
14942 withval=$with_pic; pic_mode="$withval"
14943 else
14944 pic_mode=default
14948 test -z "$pic_mode" && pic_mode=default
14956 # Check whether --enable-fast-install was given.
14957 if test "${enable_fast_install+set}" = set; then :
14958 enableval=$enable_fast_install; p=${PACKAGE-default}
14959 case $enableval in
14960 yes) enable_fast_install=yes ;;
14961 no) enable_fast_install=no ;;
14963 enable_fast_install=no
14964 # Look at the argument we got. We use all the common list separators.
14965 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14966 for pkg in $enableval; do
14967 IFS="$lt_save_ifs"
14968 if test "X$pkg" = "X$p"; then
14969 enable_fast_install=yes
14971 done
14972 IFS="$lt_save_ifs"
14974 esac
14975 else
14976 enable_fast_install=yes
14989 # This can be used to rebuild libtool when needed
14990 LIBTOOL_DEPS="$ltmain"
14992 # Always use our own libtool.
14993 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15020 test -z "$LN_S" && LN_S="ln -s"
15035 if test -n "${ZSH_VERSION+set}" ; then
15036 setopt NO_GLOB_SUBST
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15040 $as_echo_n "checking for objdir... " >&6; }
15041 if test "${lt_cv_objdir+set}" = set; then :
15042 $as_echo_n "(cached) " >&6
15043 else
15044 rm -f .libs 2>/dev/null
15045 mkdir .libs 2>/dev/null
15046 if test -d .libs; then
15047 lt_cv_objdir=.libs
15048 else
15049 # MS-DOS does not allow filenames that begin with a dot.
15050 lt_cv_objdir=_libs
15052 rmdir .libs 2>/dev/null
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15055 $as_echo "$lt_cv_objdir" >&6; }
15056 objdir=$lt_cv_objdir
15062 cat >>confdefs.h <<_ACEOF
15063 #define LT_OBJDIR "$lt_cv_objdir/"
15064 _ACEOF
15069 case $host_os in
15070 aix3*)
15071 # AIX sometimes has problems with the GCC collect2 program. For some
15072 # reason, if we set the COLLECT_NAMES environment variable, the problems
15073 # vanish in a puff of smoke.
15074 if test "X${COLLECT_NAMES+set}" != Xset; then
15075 COLLECT_NAMES=
15076 export COLLECT_NAMES
15079 esac
15081 # Global variables:
15082 ofile=libtool
15083 can_build_shared=yes
15085 # All known linkers require a `.a' archive for static linking (except MSVC,
15086 # which needs '.lib').
15087 libext=a
15089 with_gnu_ld="$lt_cv_prog_gnu_ld"
15091 old_CC="$CC"
15092 old_CFLAGS="$CFLAGS"
15094 # Set sane defaults for various variables
15095 test -z "$CC" && CC=cc
15096 test -z "$LTCC" && LTCC=$CC
15097 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15098 test -z "$LD" && LD=ld
15099 test -z "$ac_objext" && ac_objext=o
15101 for cc_temp in $compiler""; do
15102 case $cc_temp in
15103 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15104 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15105 \-*) ;;
15106 *) break;;
15107 esac
15108 done
15109 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15112 # Only perform the check for file, if the check method requires it
15113 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15114 case $deplibs_check_method in
15115 file_magic*)
15116 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15118 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15119 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15120 $as_echo_n "(cached) " >&6
15121 else
15122 case $MAGIC_CMD in
15123 [\\/*] | ?:[\\/]*)
15124 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15127 lt_save_MAGIC_CMD="$MAGIC_CMD"
15128 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15129 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15130 for ac_dir in $ac_dummy; do
15131 IFS="$lt_save_ifs"
15132 test -z "$ac_dir" && ac_dir=.
15133 if test -f $ac_dir/${ac_tool_prefix}file; then
15134 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15135 if test -n "$file_magic_test_file"; then
15136 case $deplibs_check_method in
15137 "file_magic "*)
15138 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15139 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15140 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15141 $EGREP "$file_magic_regex" > /dev/null; then
15143 else
15144 cat <<_LT_EOF 1>&2
15146 *** Warning: the command libtool uses to detect shared libraries,
15147 *** $file_magic_cmd, produces output that libtool cannot recognize.
15148 *** The result is that libtool may fail to recognize shared libraries
15149 *** as such. This will affect the creation of libtool libraries that
15150 *** depend on shared libraries, but programs linked with such libtool
15151 *** libraries will work regardless of this problem. Nevertheless, you
15152 *** may want to report the problem to your system manager and/or to
15153 *** bug-libtool@gnu.org
15155 _LT_EOF
15156 fi ;;
15157 esac
15159 break
15161 done
15162 IFS="$lt_save_ifs"
15163 MAGIC_CMD="$lt_save_MAGIC_CMD"
15165 esac
15168 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15169 if test -n "$MAGIC_CMD"; then
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15171 $as_echo "$MAGIC_CMD" >&6; }
15172 else
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15174 $as_echo "no" >&6; }
15181 if test -z "$lt_cv_path_MAGIC_CMD"; then
15182 if test -n "$ac_tool_prefix"; then
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15184 $as_echo_n "checking for file... " >&6; }
15185 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15186 $as_echo_n "(cached) " >&6
15187 else
15188 case $MAGIC_CMD in
15189 [\\/*] | ?:[\\/]*)
15190 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15193 lt_save_MAGIC_CMD="$MAGIC_CMD"
15194 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15195 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15196 for ac_dir in $ac_dummy; do
15197 IFS="$lt_save_ifs"
15198 test -z "$ac_dir" && ac_dir=.
15199 if test -f $ac_dir/file; then
15200 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15201 if test -n "$file_magic_test_file"; then
15202 case $deplibs_check_method in
15203 "file_magic "*)
15204 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15205 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15206 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15207 $EGREP "$file_magic_regex" > /dev/null; then
15209 else
15210 cat <<_LT_EOF 1>&2
15212 *** Warning: the command libtool uses to detect shared libraries,
15213 *** $file_magic_cmd, produces output that libtool cannot recognize.
15214 *** The result is that libtool may fail to recognize shared libraries
15215 *** as such. This will affect the creation of libtool libraries that
15216 *** depend on shared libraries, but programs linked with such libtool
15217 *** libraries will work regardless of this problem. Nevertheless, you
15218 *** may want to report the problem to your system manager and/or to
15219 *** bug-libtool@gnu.org
15221 _LT_EOF
15222 fi ;;
15223 esac
15225 break
15227 done
15228 IFS="$lt_save_ifs"
15229 MAGIC_CMD="$lt_save_MAGIC_CMD"
15231 esac
15234 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15235 if test -n "$MAGIC_CMD"; then
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15237 $as_echo "$MAGIC_CMD" >&6; }
15238 else
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15240 $as_echo "no" >&6; }
15244 else
15245 MAGIC_CMD=:
15251 esac
15253 # Use C for the default configuration in the libtool script
15255 lt_save_CC="$CC"
15256 ac_ext=c
15257 ac_cpp='$CPP $CPPFLAGS'
15258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15263 # Source file extension for C test sources.
15264 ac_ext=c
15266 # Object file extension for compiled C test sources.
15267 objext=o
15268 objext=$objext
15270 # Code to be used in simple compile tests
15271 lt_simple_compile_test_code="int some_variable = 0;"
15273 # Code to be used in simple link tests
15274 lt_simple_link_test_code='int main(){return(0);}'
15282 # If no C compiler was specified, use CC.
15283 LTCC=${LTCC-"$CC"}
15285 # If no C compiler flags were specified, use CFLAGS.
15286 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15288 # Allow CC to be a program name with arguments.
15289 compiler=$CC
15291 # Save the default compiler, since it gets overwritten when the other
15292 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15293 compiler_DEFAULT=$CC
15295 # save warnings/boilerplate of simple test code
15296 ac_outfile=conftest.$ac_objext
15297 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15298 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15299 _lt_compiler_boilerplate=`cat conftest.err`
15300 $RM conftest*
15302 ac_outfile=conftest.$ac_objext
15303 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15304 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15305 _lt_linker_boilerplate=`cat conftest.err`
15306 $RM -r conftest*
15309 ## CAVEAT EMPTOR:
15310 ## There is no encapsulation within the following macros, do not change
15311 ## the running order or otherwise move them around unless you know exactly
15312 ## what you are doing...
15313 if test -n "$compiler"; then
15315 lt_prog_compiler_no_builtin_flag=
15317 if test "$GCC" = yes; then
15318 case $cc_basename in
15319 nvcc*)
15320 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15322 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15323 esac
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15326 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15327 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15328 $as_echo_n "(cached) " >&6
15329 else
15330 lt_cv_prog_compiler_rtti_exceptions=no
15331 ac_outfile=conftest.$ac_objext
15332 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15333 lt_compiler_flag="-fno-rtti -fno-exceptions"
15334 # Insert the option either (1) after the last *FLAGS variable, or
15335 # (2) before a word containing "conftest.", or (3) at the end.
15336 # Note that $ac_compile itself does not contain backslashes and begins
15337 # with a dollar sign (not a hyphen), so the echo should work correctly.
15338 # The option is referenced via a variable to avoid confusing sed.
15339 lt_compile=`echo "$ac_compile" | $SED \
15340 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15341 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15342 -e 's:$: $lt_compiler_flag:'`
15343 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15344 (eval "$lt_compile" 2>conftest.err)
15345 ac_status=$?
15346 cat conftest.err >&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 if (exit $ac_status) && test -s "$ac_outfile"; then
15349 # The compiler can only warn and ignore the option if not recognized
15350 # So say no if there are warnings other than the usual output.
15351 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15352 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15353 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15354 lt_cv_prog_compiler_rtti_exceptions=yes
15357 $RM conftest*
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15361 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15363 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15364 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15365 else
15376 lt_prog_compiler_wl=
15377 lt_prog_compiler_pic=
15378 lt_prog_compiler_static=
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15381 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15383 if test "$GCC" = yes; then
15384 lt_prog_compiler_wl='-Wl,'
15385 lt_prog_compiler_static='-static'
15387 case $host_os in
15388 aix*)
15389 # All AIX code is PIC.
15390 if test "$host_cpu" = ia64; then
15391 # AIX 5 now supports IA64 processor
15392 lt_prog_compiler_static='-Bstatic'
15394 lt_prog_compiler_pic='-fPIC'
15397 amigaos*)
15398 case $host_cpu in
15399 powerpc)
15400 # see comment about AmigaOS4 .so support
15401 lt_prog_compiler_pic='-fPIC'
15403 m68k)
15404 # FIXME: we need at least 68020 code to build shared libraries, but
15405 # adding the `-m68020' flag to GCC prevents building anything better,
15406 # like `-m68040'.
15407 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15409 esac
15412 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15413 # PIC is the default for these OSes.
15416 mingw* | cygwin* | pw32* | os2* | cegcc*)
15417 # This hack is so that the source file can tell whether it is being
15418 # built for inclusion in a dll (and should export symbols for example).
15419 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15420 # (--disable-auto-import) libraries
15421 lt_prog_compiler_pic='-DDLL_EXPORT'
15424 darwin* | rhapsody*)
15425 # PIC is the default on this platform
15426 # Common symbols not allowed in MH_DYLIB files
15427 lt_prog_compiler_pic='-fno-common'
15430 haiku*)
15431 # PIC is the default for Haiku.
15432 # The "-static" flag exists, but is broken.
15433 lt_prog_compiler_static=
15436 hpux*)
15437 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15438 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15439 # sets the default TLS model and affects inlining.
15440 case $host_cpu in
15441 hppa*64*)
15442 # +Z the default
15445 lt_prog_compiler_pic='-fPIC'
15447 esac
15450 interix[3-9]*)
15451 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15452 # Instead, we relocate shared libraries at runtime.
15455 msdosdjgpp*)
15456 # Just because we use GCC doesn't mean we suddenly get shared libraries
15457 # on systems that don't support them.
15458 lt_prog_compiler_can_build_shared=no
15459 enable_shared=no
15462 *nto* | *qnx*)
15463 # QNX uses GNU C++, but need to define -shared option too, otherwise
15464 # it will coredump.
15465 lt_prog_compiler_pic='-fPIC -shared'
15468 sysv4*MP*)
15469 if test -d /usr/nec; then
15470 lt_prog_compiler_pic=-Kconform_pic
15475 lt_prog_compiler_pic='-fPIC'
15477 esac
15479 case $cc_basename in
15480 nvcc*) # Cuda Compiler Driver 2.2
15481 lt_prog_compiler_wl='-Xlinker '
15482 lt_prog_compiler_pic='-Xcompiler -fPIC'
15484 esac
15485 else
15486 # PORTME Check for flag to pass linker flags through the system compiler.
15487 case $host_os in
15488 aix*)
15489 lt_prog_compiler_wl='-Wl,'
15490 if test "$host_cpu" = ia64; then
15491 # AIX 5 now supports IA64 processor
15492 lt_prog_compiler_static='-Bstatic'
15493 else
15494 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15498 mingw* | cygwin* | pw32* | os2* | cegcc*)
15499 # This hack is so that the source file can tell whether it is being
15500 # built for inclusion in a dll (and should export symbols for example).
15501 lt_prog_compiler_pic='-DDLL_EXPORT'
15504 hpux9* | hpux10* | hpux11*)
15505 lt_prog_compiler_wl='-Wl,'
15506 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15507 # not for PA HP-UX.
15508 case $host_cpu in
15509 hppa*64*|ia64*)
15510 # +Z the default
15513 lt_prog_compiler_pic='+Z'
15515 esac
15516 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15517 lt_prog_compiler_static='${wl}-a ${wl}archive'
15520 irix5* | irix6* | nonstopux*)
15521 lt_prog_compiler_wl='-Wl,'
15522 # PIC (with -KPIC) is the default.
15523 lt_prog_compiler_static='-non_shared'
15526 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15527 case $cc_basename in
15528 # old Intel for x86_64 which still supported -KPIC.
15529 ecc*)
15530 lt_prog_compiler_wl='-Wl,'
15531 lt_prog_compiler_pic='-KPIC'
15532 lt_prog_compiler_static='-static'
15534 # icc used to be incompatible with GCC.
15535 # ICC 10 doesn't accept -KPIC any more.
15536 icc* | ifort*)
15537 lt_prog_compiler_wl='-Wl,'
15538 lt_prog_compiler_pic='-fPIC'
15539 lt_prog_compiler_static='-static'
15541 # Lahey Fortran 8.1.
15542 lf95*)
15543 lt_prog_compiler_wl='-Wl,'
15544 lt_prog_compiler_pic='--shared'
15545 lt_prog_compiler_static='--static'
15547 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15548 # Portland Group compilers (*not* the Pentium gcc compiler,
15549 # which looks to be a dead project)
15550 lt_prog_compiler_wl='-Wl,'
15551 lt_prog_compiler_pic='-fpic'
15552 lt_prog_compiler_static='-Bstatic'
15554 ccc*)
15555 lt_prog_compiler_wl='-Wl,'
15556 # All Alpha code is PIC.
15557 lt_prog_compiler_static='-non_shared'
15559 xl* | bgxl* | bgf* | mpixl*)
15560 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15561 lt_prog_compiler_wl='-Wl,'
15562 lt_prog_compiler_pic='-qpic'
15563 lt_prog_compiler_static='-qstaticlink'
15566 case `$CC -V 2>&1 | sed 5q` in
15567 *Sun\ F* | *Sun*Fortran*)
15568 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15569 lt_prog_compiler_pic='-KPIC'
15570 lt_prog_compiler_static='-Bstatic'
15571 lt_prog_compiler_wl=''
15573 *Sun\ C*)
15574 # Sun C 5.9
15575 lt_prog_compiler_pic='-KPIC'
15576 lt_prog_compiler_static='-Bstatic'
15577 lt_prog_compiler_wl='-Wl,'
15579 esac
15581 esac
15584 newsos6)
15585 lt_prog_compiler_pic='-KPIC'
15586 lt_prog_compiler_static='-Bstatic'
15589 *nto* | *qnx*)
15590 # QNX uses GNU C++, but need to define -shared option too, otherwise
15591 # it will coredump.
15592 lt_prog_compiler_pic='-fPIC -shared'
15595 osf3* | osf4* | osf5*)
15596 lt_prog_compiler_wl='-Wl,'
15597 # All OSF/1 code is PIC.
15598 lt_prog_compiler_static='-non_shared'
15601 rdos*)
15602 lt_prog_compiler_static='-non_shared'
15605 solaris*)
15606 lt_prog_compiler_pic='-KPIC'
15607 lt_prog_compiler_static='-Bstatic'
15608 case $cc_basename in
15609 f77* | f90* | f95*)
15610 lt_prog_compiler_wl='-Qoption ld ';;
15612 lt_prog_compiler_wl='-Wl,';;
15613 esac
15616 sunos4*)
15617 lt_prog_compiler_wl='-Qoption ld '
15618 lt_prog_compiler_pic='-PIC'
15619 lt_prog_compiler_static='-Bstatic'
15622 sysv4 | sysv4.2uw2* | sysv4.3*)
15623 lt_prog_compiler_wl='-Wl,'
15624 lt_prog_compiler_pic='-KPIC'
15625 lt_prog_compiler_static='-Bstatic'
15628 sysv4*MP*)
15629 if test -d /usr/nec ;then
15630 lt_prog_compiler_pic='-Kconform_pic'
15631 lt_prog_compiler_static='-Bstatic'
15635 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15636 lt_prog_compiler_wl='-Wl,'
15637 lt_prog_compiler_pic='-KPIC'
15638 lt_prog_compiler_static='-Bstatic'
15641 unicos*)
15642 lt_prog_compiler_wl='-Wl,'
15643 lt_prog_compiler_can_build_shared=no
15646 uts4*)
15647 lt_prog_compiler_pic='-pic'
15648 lt_prog_compiler_static='-Bstatic'
15652 lt_prog_compiler_can_build_shared=no
15654 esac
15657 case $host_os in
15658 # For platforms which do not support PIC, -DPIC is meaningless:
15659 *djgpp*)
15660 lt_prog_compiler_pic=
15663 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15665 esac
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15667 $as_echo "$lt_prog_compiler_pic" >&6; }
15675 # Check to make sure the PIC flag actually works.
15677 if test -n "$lt_prog_compiler_pic"; then
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15679 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15680 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15681 $as_echo_n "(cached) " >&6
15682 else
15683 lt_cv_prog_compiler_pic_works=no
15684 ac_outfile=conftest.$ac_objext
15685 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15686 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15687 # Insert the option either (1) after the last *FLAGS variable, or
15688 # (2) before a word containing "conftest.", or (3) at the end.
15689 # Note that $ac_compile itself does not contain backslashes and begins
15690 # with a dollar sign (not a hyphen), so the echo should work correctly.
15691 # The option is referenced via a variable to avoid confusing sed.
15692 lt_compile=`echo "$ac_compile" | $SED \
15693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15695 -e 's:$: $lt_compiler_flag:'`
15696 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15697 (eval "$lt_compile" 2>conftest.err)
15698 ac_status=$?
15699 cat conftest.err >&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 if (exit $ac_status) && test -s "$ac_outfile"; then
15702 # The compiler can only warn and ignore the option if not recognized
15703 # So say no if there are warnings other than the usual output.
15704 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15705 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15706 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15707 lt_cv_prog_compiler_pic_works=yes
15710 $RM conftest*
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15714 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15716 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15717 case $lt_prog_compiler_pic in
15718 "" | " "*) ;;
15719 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15720 esac
15721 else
15722 lt_prog_compiler_pic=
15723 lt_prog_compiler_can_build_shared=no
15734 # Check to make sure the static flag actually works.
15736 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15738 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15739 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15740 $as_echo_n "(cached) " >&6
15741 else
15742 lt_cv_prog_compiler_static_works=no
15743 save_LDFLAGS="$LDFLAGS"
15744 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15745 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15746 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15747 # The linker can only warn and ignore the option if not recognized
15748 # So say no if there are warnings
15749 if test -s conftest.err; then
15750 # Append any errors to the config.log.
15751 cat conftest.err 1>&5
15752 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15753 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15754 if diff conftest.exp conftest.er2 >/dev/null; then
15755 lt_cv_prog_compiler_static_works=yes
15757 else
15758 lt_cv_prog_compiler_static_works=yes
15761 $RM -r conftest*
15762 LDFLAGS="$save_LDFLAGS"
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15766 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15768 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15770 else
15771 lt_prog_compiler_static=
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15781 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15782 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15783 $as_echo_n "(cached) " >&6
15784 else
15785 lt_cv_prog_compiler_c_o=no
15786 $RM -r conftest 2>/dev/null
15787 mkdir conftest
15788 cd conftest
15789 mkdir out
15790 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15792 lt_compiler_flag="-o out/conftest2.$ac_objext"
15793 # Insert the option either (1) after the last *FLAGS variable, or
15794 # (2) before a word containing "conftest.", or (3) at the end.
15795 # Note that $ac_compile itself does not contain backslashes and begins
15796 # with a dollar sign (not a hyphen), so the echo should work correctly.
15797 lt_compile=`echo "$ac_compile" | $SED \
15798 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15799 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15800 -e 's:$: $lt_compiler_flag:'`
15801 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15802 (eval "$lt_compile" 2>out/conftest.err)
15803 ac_status=$?
15804 cat out/conftest.err >&5
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15807 then
15808 # The compiler can only warn and ignore the option if not recognized
15809 # So say no if there are warnings
15810 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15811 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15812 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15813 lt_cv_prog_compiler_c_o=yes
15816 chmod u+w . 2>&5
15817 $RM conftest*
15818 # SGI C++ compiler will create directory out/ii_files/ for
15819 # template instantiation
15820 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15821 $RM out/* && rmdir out
15822 cd ..
15823 $RM -r conftest
15824 $RM conftest*
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15828 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15836 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15837 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15838 $as_echo_n "(cached) " >&6
15839 else
15840 lt_cv_prog_compiler_c_o=no
15841 $RM -r conftest 2>/dev/null
15842 mkdir conftest
15843 cd conftest
15844 mkdir out
15845 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15847 lt_compiler_flag="-o out/conftest2.$ac_objext"
15848 # Insert the option either (1) after the last *FLAGS variable, or
15849 # (2) before a word containing "conftest.", or (3) at the end.
15850 # Note that $ac_compile itself does not contain backslashes and begins
15851 # with a dollar sign (not a hyphen), so the echo should work correctly.
15852 lt_compile=`echo "$ac_compile" | $SED \
15853 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15854 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15855 -e 's:$: $lt_compiler_flag:'`
15856 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15857 (eval "$lt_compile" 2>out/conftest.err)
15858 ac_status=$?
15859 cat out/conftest.err >&5
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15862 then
15863 # The compiler can only warn and ignore the option if not recognized
15864 # So say no if there are warnings
15865 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15866 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15867 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15868 lt_cv_prog_compiler_c_o=yes
15871 chmod u+w . 2>&5
15872 $RM conftest*
15873 # SGI C++ compiler will create directory out/ii_files/ for
15874 # template instantiation
15875 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15876 $RM out/* && rmdir out
15877 cd ..
15878 $RM -r conftest
15879 $RM conftest*
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15883 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15888 hard_links="nottested"
15889 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15890 # do not overwrite the value of need_locks provided by the user
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15892 $as_echo_n "checking if we can lock with hard links... " >&6; }
15893 hard_links=yes
15894 $RM conftest*
15895 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15896 touch conftest.a
15897 ln conftest.a conftest.b 2>&5 || hard_links=no
15898 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15900 $as_echo "$hard_links" >&6; }
15901 if test "$hard_links" = no; then
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15903 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15904 need_locks=warn
15906 else
15907 need_locks=no
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15916 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15918 runpath_var=
15919 allow_undefined_flag=
15920 always_export_symbols=no
15921 archive_cmds=
15922 archive_expsym_cmds=
15923 compiler_needs_object=no
15924 enable_shared_with_static_runtimes=no
15925 export_dynamic_flag_spec=
15926 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15927 hardcode_automatic=no
15928 hardcode_direct=no
15929 hardcode_direct_absolute=no
15930 hardcode_libdir_flag_spec=
15931 hardcode_libdir_flag_spec_ld=
15932 hardcode_libdir_separator=
15933 hardcode_minus_L=no
15934 hardcode_shlibpath_var=unsupported
15935 inherit_rpath=no
15936 link_all_deplibs=unknown
15937 module_cmds=
15938 module_expsym_cmds=
15939 old_archive_from_new_cmds=
15940 old_archive_from_expsyms_cmds=
15941 thread_safe_flag_spec=
15942 whole_archive_flag_spec=
15943 # include_expsyms should be a list of space-separated symbols to be *always*
15944 # included in the symbol list
15945 include_expsyms=
15946 # exclude_expsyms can be an extended regexp of symbols to exclude
15947 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15948 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15949 # as well as any symbol that contains `d'.
15950 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15951 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15952 # platforms (ab)use it in PIC code, but their linkers get confused if
15953 # the symbol is explicitly referenced. Since portable code cannot
15954 # rely on this symbol name, it's probably fine to never include it in
15955 # preloaded symbol tables.
15956 # Exclude shared library initialization/finalization symbols.
15957 extract_expsyms_cmds=
15959 case $host_os in
15960 cygwin* | mingw* | pw32* | cegcc*)
15961 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15962 # When not using gcc, we currently assume that we are using
15963 # Microsoft Visual C++.
15964 if test "$GCC" != yes; then
15965 with_gnu_ld=no
15968 interix*)
15969 # we just hope/assume this is gcc and not c89 (= MSVC++)
15970 with_gnu_ld=yes
15972 openbsd*)
15973 with_gnu_ld=no
15975 esac
15977 ld_shlibs=yes
15979 # On some targets, GNU ld is compatible enough with the native linker
15980 # that we're better off using the native interface for both.
15981 lt_use_gnu_ld_interface=no
15982 if test "$with_gnu_ld" = yes; then
15983 case $host_os in
15984 aix*)
15985 # The AIX port of GNU ld has always aspired to compatibility
15986 # with the native linker. However, as the warning in the GNU ld
15987 # block says, versions before 2.19.5* couldn't really create working
15988 # shared libraries, regardless of the interface used.
15989 case `$LD -v 2>&1` in
15990 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15991 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15992 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15994 lt_use_gnu_ld_interface=yes
15996 esac
15999 lt_use_gnu_ld_interface=yes
16001 esac
16004 if test "$lt_use_gnu_ld_interface" = yes; then
16005 # If archive_cmds runs LD, not CC, wlarc should be empty
16006 wlarc='${wl}'
16008 # Set some defaults for GNU ld with shared library support. These
16009 # are reset later if shared libraries are not supported. Putting them
16010 # here allows them to be overridden if necessary.
16011 runpath_var=LD_RUN_PATH
16012 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16013 export_dynamic_flag_spec='${wl}--export-dynamic'
16014 # ancient GNU ld didn't support --whole-archive et. al.
16015 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16016 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16017 else
16018 whole_archive_flag_spec=
16020 supports_anon_versioning=no
16021 case `$LD -v 2>&1` in
16022 *GNU\ gold*) supports_anon_versioning=yes ;;
16023 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16024 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16025 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16026 *\ 2.11.*) ;; # other 2.11 versions
16027 *) supports_anon_versioning=yes ;;
16028 esac
16030 # See if GNU ld supports shared libraries.
16031 case $host_os in
16032 aix[3-9]*)
16033 # On AIX/PPC, the GNU linker is very broken
16034 if test "$host_cpu" != ia64; then
16035 ld_shlibs=no
16036 cat <<_LT_EOF 1>&2
16038 *** Warning: the GNU linker, at least up to release 2.19, is reported
16039 *** to be unable to reliably create shared libraries on AIX.
16040 *** Therefore, libtool is disabling shared libraries support. If you
16041 *** really care for shared libraries, you may want to install binutils
16042 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16043 *** You will then need to restart the configuration process.
16045 _LT_EOF
16049 amigaos*)
16050 case $host_cpu in
16051 powerpc)
16052 # see comment about AmigaOS4 .so support
16053 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16054 archive_expsym_cmds=''
16056 m68k)
16057 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)'
16058 hardcode_libdir_flag_spec='-L$libdir'
16059 hardcode_minus_L=yes
16061 esac
16064 beos*)
16065 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16066 allow_undefined_flag=unsupported
16067 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16068 # support --undefined. This deserves some investigation. FIXME
16069 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16070 else
16071 ld_shlibs=no
16075 cygwin* | mingw* | pw32* | cegcc*)
16076 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16077 # as there is no search path for DLLs.
16078 hardcode_libdir_flag_spec='-L$libdir'
16079 export_dynamic_flag_spec='${wl}--export-all-symbols'
16080 allow_undefined_flag=unsupported
16081 always_export_symbols=no
16082 enable_shared_with_static_runtimes=yes
16083 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16085 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16086 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16087 # If the export-symbols file already is a .def file (1st line
16088 # is EXPORTS), use it as is; otherwise, prepend...
16089 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16090 cp $export_symbols $output_objdir/$soname.def;
16091 else
16092 echo EXPORTS > $output_objdir/$soname.def;
16093 cat $export_symbols >> $output_objdir/$soname.def;
16095 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16096 else
16097 ld_shlibs=no
16101 haiku*)
16102 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16103 link_all_deplibs=yes
16106 interix[3-9]*)
16107 hardcode_direct=no
16108 hardcode_shlibpath_var=no
16109 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16110 export_dynamic_flag_spec='${wl}-E'
16111 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16112 # Instead, shared libraries are loaded at an image base (0x10000000 by
16113 # default) and relocated if they conflict, which is a slow very memory
16114 # consuming and fragmenting process. To avoid this, we pick a random,
16115 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16116 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16117 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16118 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'
16121 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16122 tmp_diet=no
16123 if test "$host_os" = linux-dietlibc; then
16124 case $cc_basename in
16125 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16126 esac
16128 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16129 && test "$tmp_diet" = no
16130 then
16131 tmp_addflag=' $pic_flag'
16132 tmp_sharedflag='-shared'
16133 case $cc_basename,$host_cpu in
16134 pgcc*) # Portland Group C compiler
16135 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'
16136 tmp_addflag=' $pic_flag'
16138 pgf77* | pgf90* | pgf95* | pgfortran*)
16139 # Portland Group f77 and f90 compilers
16140 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'
16141 tmp_addflag=' $pic_flag -Mnomain' ;;
16142 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16143 tmp_addflag=' -i_dynamic' ;;
16144 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16145 tmp_addflag=' -i_dynamic -nofor_main' ;;
16146 ifc* | ifort*) # Intel Fortran compiler
16147 tmp_addflag=' -nofor_main' ;;
16148 lf95*) # Lahey Fortran 8.1
16149 whole_archive_flag_spec=
16150 tmp_sharedflag='--shared' ;;
16151 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16152 tmp_sharedflag='-qmkshrobj'
16153 tmp_addflag= ;;
16154 nvcc*) # Cuda Compiler Driver 2.2
16155 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'
16156 compiler_needs_object=yes
16158 esac
16159 case `$CC -V 2>&1 | sed 5q` in
16160 *Sun\ C*) # Sun C 5.9
16161 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'
16162 compiler_needs_object=yes
16163 tmp_sharedflag='-G' ;;
16164 *Sun\ F*) # Sun Fortran 8.3
16165 tmp_sharedflag='-G' ;;
16166 esac
16167 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16169 if test "x$supports_anon_versioning" = xyes; then
16170 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16171 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16172 echo "local: *; };" >> $output_objdir/$libname.ver~
16173 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16176 case $cc_basename in
16177 xlf* | bgf* | bgxlf* | mpixlf*)
16178 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16179 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16180 hardcode_libdir_flag_spec=
16181 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16182 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16183 if test "x$supports_anon_versioning" = xyes; then
16184 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16185 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16186 echo "local: *; };" >> $output_objdir/$libname.ver~
16187 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16190 esac
16191 else
16192 ld_shlibs=no
16196 netbsd*)
16197 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16198 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16199 wlarc=
16200 else
16201 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16202 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16206 solaris*)
16207 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16208 ld_shlibs=no
16209 cat <<_LT_EOF 1>&2
16211 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16212 *** create shared libraries on Solaris systems. Therefore, libtool
16213 *** is disabling shared libraries support. We urge you to upgrade GNU
16214 *** binutils to release 2.9.1 or newer. Another option is to modify
16215 *** your PATH or compiler configuration so that the native linker is
16216 *** used, and then restart.
16218 _LT_EOF
16219 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16220 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16221 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16222 else
16223 ld_shlibs=no
16227 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16228 case `$LD -v 2>&1` in
16229 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16230 ld_shlibs=no
16231 cat <<_LT_EOF 1>&2
16233 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16234 *** reliably create shared libraries on SCO systems. Therefore, libtool
16235 *** is disabling shared libraries support. We urge you to upgrade GNU
16236 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16237 *** your PATH or compiler configuration so that the native linker is
16238 *** used, and then restart.
16240 _LT_EOF
16243 # For security reasons, it is highly recommended that you always
16244 # use absolute paths for naming shared libraries, and exclude the
16245 # DT_RUNPATH tag from executables and libraries. But doing so
16246 # requires that you compile everything twice, which is a pain.
16247 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16248 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16249 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16250 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16251 else
16252 ld_shlibs=no
16255 esac
16258 sunos4*)
16259 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16260 wlarc=
16261 hardcode_direct=yes
16262 hardcode_shlibpath_var=no
16266 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16267 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16268 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16269 else
16270 ld_shlibs=no
16273 esac
16275 if test "$ld_shlibs" = no; then
16276 runpath_var=
16277 hardcode_libdir_flag_spec=
16278 export_dynamic_flag_spec=
16279 whole_archive_flag_spec=
16281 else
16282 # PORTME fill in a description of your system's linker (not GNU ld)
16283 case $host_os in
16284 aix3*)
16285 allow_undefined_flag=unsupported
16286 always_export_symbols=yes
16287 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'
16288 # Note: this linker hardcodes the directories in LIBPATH if there
16289 # are no directories specified by -L.
16290 hardcode_minus_L=yes
16291 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16292 # Neither direct hardcoding nor static linking is supported with a
16293 # broken collect2.
16294 hardcode_direct=unsupported
16298 aix[4-9]*)
16299 if test "$host_cpu" = ia64; then
16300 # On IA64, the linker does run time linking by default, so we don't
16301 # have to do anything special.
16302 aix_use_runtimelinking=no
16303 exp_sym_flag='-Bexport'
16304 no_entry_flag=""
16305 else
16306 # If we're using GNU nm, then we don't want the "-C" option.
16307 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16308 # Also, AIX nm treats weak defined symbols like other global
16309 # defined symbols, whereas GNU nm marks them as "W".
16310 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16311 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'
16312 else
16313 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'
16315 aix_use_runtimelinking=no
16317 # Test if we are trying to use run time linking or normal
16318 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16319 # need to do runtime linking.
16320 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16321 for ld_flag in $LDFLAGS; do
16322 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16323 aix_use_runtimelinking=yes
16324 break
16326 done
16328 esac
16330 exp_sym_flag='-bexport'
16331 no_entry_flag='-bnoentry'
16334 # When large executables or shared objects are built, AIX ld can
16335 # have problems creating the table of contents. If linking a library
16336 # or program results in "error TOC overflow" add -mminimal-toc to
16337 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16338 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16340 archive_cmds=''
16341 hardcode_direct=yes
16342 hardcode_direct_absolute=yes
16343 hardcode_libdir_separator=':'
16344 link_all_deplibs=yes
16345 file_list_spec='${wl}-f,'
16347 if test "$GCC" = yes; then
16348 case $host_os in aix4.[012]|aix4.[012].*)
16349 # We only want to do this on AIX 4.2 and lower, the check
16350 # below for broken collect2 doesn't work under 4.3+
16351 collect2name=`${CC} -print-prog-name=collect2`
16352 if test -f "$collect2name" &&
16353 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16354 then
16355 # We have reworked collect2
16357 else
16358 # We have old collect2
16359 hardcode_direct=unsupported
16360 # It fails to find uninstalled libraries when the uninstalled
16361 # path is not listed in the libpath. Setting hardcode_minus_L
16362 # to unsupported forces relinking
16363 hardcode_minus_L=yes
16364 hardcode_libdir_flag_spec='-L$libdir'
16365 hardcode_libdir_separator=
16368 esac
16369 shared_flag='-shared'
16370 if test "$aix_use_runtimelinking" = yes; then
16371 shared_flag="$shared_flag "'${wl}-G'
16373 else
16374 # not using gcc
16375 if test "$host_cpu" = ia64; then
16376 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16377 # chokes on -Wl,-G. The following line is correct:
16378 shared_flag='-G'
16379 else
16380 if test "$aix_use_runtimelinking" = yes; then
16381 shared_flag='${wl}-G'
16382 else
16383 shared_flag='${wl}-bM:SRE'
16388 export_dynamic_flag_spec='${wl}-bexpall'
16389 # It seems that -bexpall does not export symbols beginning with
16390 # underscore (_), so it is better to generate a list of symbols to export.
16391 always_export_symbols=yes
16392 if test "$aix_use_runtimelinking" = yes; then
16393 # Warning - without using the other runtime loading flags (-brtl),
16394 # -berok will link without error, but may produce a broken library.
16395 allow_undefined_flag='-berok'
16396 # Determine the default libpath from the value encoded in an
16397 # empty executable.
16398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16399 /* end confdefs.h. */
16402 main ()
16406 return 0;
16408 _ACEOF
16409 if ac_fn_c_try_link "$LINENO"; then :
16411 lt_aix_libpath_sed='
16412 /Import File Strings/,/^$/ {
16413 /^0/ {
16414 s/^0 *\(.*\)$/\1/
16418 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16419 # Check for a 64-bit object if we didn't find anything.
16420 if test -z "$aix_libpath"; then
16421 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16424 rm -f core conftest.err conftest.$ac_objext \
16425 conftest$ac_exeext conftest.$ac_ext
16426 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16428 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16429 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"
16430 else
16431 if test "$host_cpu" = ia64; then
16432 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16433 allow_undefined_flag="-z nodefs"
16434 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"
16435 else
16436 # Determine the default libpath from the value encoded in an
16437 # empty executable.
16438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16439 /* end confdefs.h. */
16442 main ()
16446 return 0;
16448 _ACEOF
16449 if ac_fn_c_try_link "$LINENO"; then :
16451 lt_aix_libpath_sed='
16452 /Import File Strings/,/^$/ {
16453 /^0/ {
16454 s/^0 *\(.*\)$/\1/
16458 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16459 # Check for a 64-bit object if we didn't find anything.
16460 if test -z "$aix_libpath"; then
16461 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16464 rm -f core conftest.err conftest.$ac_objext \
16465 conftest$ac_exeext conftest.$ac_ext
16466 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16468 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16469 # Warning - without using the other run time loading flags,
16470 # -berok will link without error, but may produce a broken library.
16471 no_undefined_flag=' ${wl}-bernotok'
16472 allow_undefined_flag=' ${wl}-berok'
16473 if test "$with_gnu_ld" = yes; then
16474 # We only use this code for GNU lds that support --whole-archive.
16475 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16476 else
16477 # Exported symbols can be pulled into shared objects from archives
16478 whole_archive_flag_spec='$convenience'
16480 archive_cmds_need_lc=yes
16481 # This is similar to how AIX traditionally builds its shared libraries.
16482 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'
16487 amigaos*)
16488 case $host_cpu in
16489 powerpc)
16490 # see comment about AmigaOS4 .so support
16491 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16492 archive_expsym_cmds=''
16494 m68k)
16495 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)'
16496 hardcode_libdir_flag_spec='-L$libdir'
16497 hardcode_minus_L=yes
16499 esac
16502 bsdi[45]*)
16503 export_dynamic_flag_spec=-rdynamic
16506 cygwin* | mingw* | pw32* | cegcc*)
16507 # When not using gcc, we currently assume that we are using
16508 # Microsoft Visual C++.
16509 # hardcode_libdir_flag_spec is actually meaningless, as there is
16510 # no search path for DLLs.
16511 hardcode_libdir_flag_spec=' '
16512 allow_undefined_flag=unsupported
16513 # Tell ltmain to make .lib files, not .a files.
16514 libext=lib
16515 # Tell ltmain to make .dll files, not .so files.
16516 shrext_cmds=".dll"
16517 # FIXME: Setting linknames here is a bad hack.
16518 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16519 # The linker will automatically build a .lib file if we build a DLL.
16520 old_archive_from_new_cmds='true'
16521 # FIXME: Should let the user specify the lib program.
16522 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16523 fix_srcfile_path='`cygpath -w "$srcfile"`'
16524 enable_shared_with_static_runtimes=yes
16527 darwin* | rhapsody*)
16530 archive_cmds_need_lc=no
16531 hardcode_direct=no
16532 hardcode_automatic=yes
16533 hardcode_shlibpath_var=unsupported
16534 if test "$lt_cv_ld_force_load" = "yes"; then
16535 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\"`'
16536 else
16537 whole_archive_flag_spec=''
16539 link_all_deplibs=yes
16540 allow_undefined_flag="$_lt_dar_allow_undefined"
16541 case $cc_basename in
16542 ifort*) _lt_dar_can_shared=yes ;;
16543 *) _lt_dar_can_shared=$GCC ;;
16544 esac
16545 if test "$_lt_dar_can_shared" = "yes"; then
16546 output_verbose_link_cmd=func_echo_all
16547 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16548 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16549 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}"
16550 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}"
16552 else
16553 ld_shlibs=no
16558 dgux*)
16559 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16560 hardcode_libdir_flag_spec='-L$libdir'
16561 hardcode_shlibpath_var=no
16564 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16565 # support. Future versions do this automatically, but an explicit c++rt0.o
16566 # does not break anything, and helps significantly (at the cost of a little
16567 # extra space).
16568 freebsd2.2*)
16569 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16570 hardcode_libdir_flag_spec='-R$libdir'
16571 hardcode_direct=yes
16572 hardcode_shlibpath_var=no
16575 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16576 freebsd2.*)
16577 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16578 hardcode_direct=yes
16579 hardcode_minus_L=yes
16580 hardcode_shlibpath_var=no
16583 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16584 freebsd* | dragonfly*)
16585 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16586 hardcode_libdir_flag_spec='-R$libdir'
16587 hardcode_direct=yes
16588 hardcode_shlibpath_var=no
16591 hpux9*)
16592 if test "$GCC" = yes; then
16593 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'
16594 else
16595 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'
16597 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16598 hardcode_libdir_separator=:
16599 hardcode_direct=yes
16601 # hardcode_minus_L: Not really in the search PATH,
16602 # but as the default location of the library.
16603 hardcode_minus_L=yes
16604 export_dynamic_flag_spec='${wl}-E'
16607 hpux10*)
16608 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16609 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16610 else
16611 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16613 if test "$with_gnu_ld" = no; then
16614 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16615 hardcode_libdir_flag_spec_ld='+b $libdir'
16616 hardcode_libdir_separator=:
16617 hardcode_direct=yes
16618 hardcode_direct_absolute=yes
16619 export_dynamic_flag_spec='${wl}-E'
16620 # hardcode_minus_L: Not really in the search PATH,
16621 # but as the default location of the library.
16622 hardcode_minus_L=yes
16626 hpux11*)
16627 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16628 case $host_cpu in
16629 hppa*64*)
16630 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16632 ia64*)
16633 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16636 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16638 esac
16639 else
16640 case $host_cpu in
16641 hppa*64*)
16642 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16644 ia64*)
16645 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16649 # Older versions of the 11.00 compiler do not understand -b yet
16650 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16652 $as_echo_n "checking if $CC understands -b... " >&6; }
16653 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16654 $as_echo_n "(cached) " >&6
16655 else
16656 lt_cv_prog_compiler__b=no
16657 save_LDFLAGS="$LDFLAGS"
16658 LDFLAGS="$LDFLAGS -b"
16659 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16660 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16661 # The linker can only warn and ignore the option if not recognized
16662 # So say no if there are warnings
16663 if test -s conftest.err; then
16664 # Append any errors to the config.log.
16665 cat conftest.err 1>&5
16666 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16668 if diff conftest.exp conftest.er2 >/dev/null; then
16669 lt_cv_prog_compiler__b=yes
16671 else
16672 lt_cv_prog_compiler__b=yes
16675 $RM -r conftest*
16676 LDFLAGS="$save_LDFLAGS"
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16680 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16682 if test x"$lt_cv_prog_compiler__b" = xyes; then
16683 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16684 else
16685 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16689 esac
16691 if test "$with_gnu_ld" = no; then
16692 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16693 hardcode_libdir_separator=:
16695 case $host_cpu in
16696 hppa*64*|ia64*)
16697 hardcode_direct=no
16698 hardcode_shlibpath_var=no
16701 hardcode_direct=yes
16702 hardcode_direct_absolute=yes
16703 export_dynamic_flag_spec='${wl}-E'
16705 # hardcode_minus_L: Not really in the search PATH,
16706 # but as the default location of the library.
16707 hardcode_minus_L=yes
16709 esac
16713 irix5* | irix6* | nonstopux*)
16714 if test "$GCC" = yes; then
16715 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'
16716 # Try to use the -exported_symbol ld option, if it does not
16717 # work, assume that -exports_file does not work either and
16718 # implicitly export all symbols.
16719 save_LDFLAGS="$LDFLAGS"
16720 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16722 /* end confdefs.h. */
16723 int foo(void) {}
16724 _ACEOF
16725 if ac_fn_c_try_link "$LINENO"; then :
16726 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'
16729 rm -f core conftest.err conftest.$ac_objext \
16730 conftest$ac_exeext conftest.$ac_ext
16731 LDFLAGS="$save_LDFLAGS"
16732 else
16733 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'
16734 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'
16736 archive_cmds_need_lc='no'
16737 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16738 hardcode_libdir_separator=:
16739 inherit_rpath=yes
16740 link_all_deplibs=yes
16743 netbsd*)
16744 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16745 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16746 else
16747 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16749 hardcode_libdir_flag_spec='-R$libdir'
16750 hardcode_direct=yes
16751 hardcode_shlibpath_var=no
16754 newsos6)
16755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16756 hardcode_direct=yes
16757 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16758 hardcode_libdir_separator=:
16759 hardcode_shlibpath_var=no
16762 *nto* | *qnx*)
16765 openbsd*)
16766 if test -f /usr/libexec/ld.so; then
16767 hardcode_direct=yes
16768 hardcode_shlibpath_var=no
16769 hardcode_direct_absolute=yes
16770 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16771 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16772 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16773 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16774 export_dynamic_flag_spec='${wl}-E'
16775 else
16776 case $host_os in
16777 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16778 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16779 hardcode_libdir_flag_spec='-R$libdir'
16782 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16783 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16785 esac
16787 else
16788 ld_shlibs=no
16792 os2*)
16793 hardcode_libdir_flag_spec='-L$libdir'
16794 hardcode_minus_L=yes
16795 allow_undefined_flag=unsupported
16796 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'
16797 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16800 osf3*)
16801 if test "$GCC" = yes; then
16802 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16803 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'
16804 else
16805 allow_undefined_flag=' -expect_unresolved \*'
16806 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'
16808 archive_cmds_need_lc='no'
16809 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16810 hardcode_libdir_separator=:
16813 osf4* | osf5*) # as osf3* with the addition of -msym flag
16814 if test "$GCC" = yes; then
16815 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16816 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'
16817 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16818 else
16819 allow_undefined_flag=' -expect_unresolved \*'
16820 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'
16821 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~
16822 $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'
16824 # Both c and cxx compiler support -rpath directly
16825 hardcode_libdir_flag_spec='-rpath $libdir'
16827 archive_cmds_need_lc='no'
16828 hardcode_libdir_separator=:
16831 solaris*)
16832 no_undefined_flag=' -z defs'
16833 if test "$GCC" = yes; then
16834 wlarc='${wl}'
16835 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16836 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16837 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16838 else
16839 case `$CC -V 2>&1` in
16840 *"Compilers 5.0"*)
16841 wlarc=''
16842 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16843 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16844 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16847 wlarc='${wl}'
16848 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16849 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16850 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16852 esac
16854 hardcode_libdir_flag_spec='-R$libdir'
16855 hardcode_shlibpath_var=no
16856 case $host_os in
16857 solaris2.[0-5] | solaris2.[0-5].*) ;;
16859 # The compiler driver will combine and reorder linker options,
16860 # but understands `-z linker_flag'. GCC discards it without `$wl',
16861 # but is careful enough not to reorder.
16862 # Supported since Solaris 2.6 (maybe 2.5.1?)
16863 if test "$GCC" = yes; then
16864 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16865 else
16866 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16869 esac
16870 link_all_deplibs=yes
16873 sunos4*)
16874 if test "x$host_vendor" = xsequent; then
16875 # Use $CC to link under sequent, because it throws in some extra .o
16876 # files that make .init and .fini sections work.
16877 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16878 else
16879 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16881 hardcode_libdir_flag_spec='-L$libdir'
16882 hardcode_direct=yes
16883 hardcode_minus_L=yes
16884 hardcode_shlibpath_var=no
16887 sysv4)
16888 case $host_vendor in
16889 sni)
16890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16891 hardcode_direct=yes # is this really true???
16893 siemens)
16894 ## LD is ld it makes a PLAMLIB
16895 ## CC just makes a GrossModule.
16896 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16897 reload_cmds='$CC -r -o $output$reload_objs'
16898 hardcode_direct=no
16900 motorola)
16901 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16902 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16904 esac
16905 runpath_var='LD_RUN_PATH'
16906 hardcode_shlibpath_var=no
16909 sysv4.3*)
16910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16911 hardcode_shlibpath_var=no
16912 export_dynamic_flag_spec='-Bexport'
16915 sysv4*MP*)
16916 if test -d /usr/nec; then
16917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16918 hardcode_shlibpath_var=no
16919 runpath_var=LD_RUN_PATH
16920 hardcode_runpath_var=yes
16921 ld_shlibs=yes
16925 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16926 no_undefined_flag='${wl}-z,text'
16927 archive_cmds_need_lc=no
16928 hardcode_shlibpath_var=no
16929 runpath_var='LD_RUN_PATH'
16931 if test "$GCC" = yes; then
16932 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16933 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16934 else
16935 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16936 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16940 sysv5* | sco3.2v5* | sco5v6*)
16941 # Note: We can NOT use -z defs as we might desire, because we do not
16942 # link with -lc, and that would cause any symbols used from libc to
16943 # always be unresolved, which means just about no library would
16944 # ever link correctly. If we're not using GNU ld we use -z text
16945 # though, which does catch some bad symbols but isn't as heavy-handed
16946 # as -z defs.
16947 no_undefined_flag='${wl}-z,text'
16948 allow_undefined_flag='${wl}-z,nodefs'
16949 archive_cmds_need_lc=no
16950 hardcode_shlibpath_var=no
16951 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16952 hardcode_libdir_separator=':'
16953 link_all_deplibs=yes
16954 export_dynamic_flag_spec='${wl}-Bexport'
16955 runpath_var='LD_RUN_PATH'
16957 if test "$GCC" = yes; then
16958 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16959 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16960 else
16961 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16962 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16966 uts4*)
16967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16968 hardcode_libdir_flag_spec='-L$libdir'
16969 hardcode_shlibpath_var=no
16973 ld_shlibs=no
16975 esac
16977 if test x$host_vendor = xsni; then
16978 case $host in
16979 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16980 export_dynamic_flag_spec='${wl}-Blargedynsym'
16982 esac
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16987 $as_echo "$ld_shlibs" >&6; }
16988 test "$ld_shlibs" = no && can_build_shared=no
16990 with_gnu_ld=$with_gnu_ld
17007 # Do we need to explicitly link libc?
17009 case "x$archive_cmds_need_lc" in
17010 x|xyes)
17011 # Assume -lc should be added
17012 archive_cmds_need_lc=yes
17014 if test "$enable_shared" = yes && test "$GCC" = yes; then
17015 case $archive_cmds in
17016 *'~'*)
17017 # FIXME: we may have to deal with multi-command sequences.
17019 '$CC '*)
17020 # Test whether the compiler implicitly links with -lc since on some
17021 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17022 # to ld, don't add -lc before -lgcc.
17023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17024 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17025 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17026 $as_echo_n "(cached) " >&6
17027 else
17028 $RM conftest*
17029 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17032 (eval $ac_compile) 2>&5
17033 ac_status=$?
17034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17035 test $ac_status = 0; } 2>conftest.err; then
17036 soname=conftest
17037 lib=conftest
17038 libobjs=conftest.$ac_objext
17039 deplibs=
17040 wl=$lt_prog_compiler_wl
17041 pic_flag=$lt_prog_compiler_pic
17042 compiler_flags=-v
17043 linker_flags=-v
17044 verstring=
17045 output_objdir=.
17046 libname=conftest
17047 lt_save_allow_undefined_flag=$allow_undefined_flag
17048 allow_undefined_flag=
17049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17050 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17051 ac_status=$?
17052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17053 test $ac_status = 0; }
17054 then
17055 lt_cv_archive_cmds_need_lc=no
17056 else
17057 lt_cv_archive_cmds_need_lc=yes
17059 allow_undefined_flag=$lt_save_allow_undefined_flag
17060 else
17061 cat conftest.err 1>&5
17063 $RM conftest*
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17067 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17068 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17070 esac
17073 esac
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17232 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17234 if test "$GCC" = yes; then
17235 case $host_os in
17236 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17237 *) lt_awk_arg="/^libraries:/" ;;
17238 esac
17239 case $host_os in
17240 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17241 *) lt_sed_strip_eq="s,=/,/,g" ;;
17242 esac
17243 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17244 case $lt_search_path_spec in
17245 *\;*)
17246 # if the path contains ";" then we assume it to be the separator
17247 # otherwise default to the standard path separator (i.e. ":") - it is
17248 # assumed that no part of a normal pathname contains ";" but that should
17249 # okay in the real world where ";" in dirpaths is itself problematic.
17250 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17253 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17255 esac
17256 # Ok, now we have the path, separated by spaces, we can step through it
17257 # and add multilib dir if necessary.
17258 lt_tmp_lt_search_path_spec=
17259 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17260 for lt_sys_path in $lt_search_path_spec; do
17261 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17262 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17263 else
17264 test -d "$lt_sys_path" && \
17265 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17267 done
17268 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17269 BEGIN {RS=" "; FS="/|\n";} {
17270 lt_foo="";
17271 lt_count=0;
17272 for (lt_i = NF; lt_i > 0; lt_i--) {
17273 if ($lt_i != "" && $lt_i != ".") {
17274 if ($lt_i == "..") {
17275 lt_count++;
17276 } else {
17277 if (lt_count == 0) {
17278 lt_foo="/" $lt_i lt_foo;
17279 } else {
17280 lt_count--;
17285 if (lt_foo != "") { lt_freq[lt_foo]++; }
17286 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17288 # AWK program above erroneously prepends '/' to C:/dos/paths
17289 # for these hosts.
17290 case $host_os in
17291 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17292 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17293 esac
17294 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17295 else
17296 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17298 library_names_spec=
17299 libname_spec='lib$name'
17300 soname_spec=
17301 shrext_cmds=".so"
17302 postinstall_cmds=
17303 postuninstall_cmds=
17304 finish_cmds=
17305 finish_eval=
17306 shlibpath_var=
17307 shlibpath_overrides_runpath=unknown
17308 version_type=none
17309 dynamic_linker="$host_os ld.so"
17310 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17311 need_lib_prefix=unknown
17312 hardcode_into_libs=no
17314 # when you set need_version to no, make sure it does not cause -set_version
17315 # flags to be left without arguments
17316 need_version=unknown
17318 case $host_os in
17319 aix3*)
17320 version_type=linux
17321 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17322 shlibpath_var=LIBPATH
17324 # AIX 3 has no versioning support, so we append a major version to the name.
17325 soname_spec='${libname}${release}${shared_ext}$major'
17328 aix[4-9]*)
17329 version_type=linux
17330 need_lib_prefix=no
17331 need_version=no
17332 hardcode_into_libs=yes
17333 if test "$host_cpu" = ia64; then
17334 # AIX 5 supports IA64
17335 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17336 shlibpath_var=LD_LIBRARY_PATH
17337 else
17338 # With GCC up to 2.95.x, collect2 would create an import file
17339 # for dependence libraries. The import file would start with
17340 # the line `#! .'. This would cause the generated library to
17341 # depend on `.', always an invalid library. This was fixed in
17342 # development snapshots of GCC prior to 3.0.
17343 case $host_os in
17344 aix4 | aix4.[01] | aix4.[01].*)
17345 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17346 echo ' yes '
17347 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17349 else
17350 can_build_shared=no
17353 esac
17354 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17355 # soname into executable. Probably we can add versioning support to
17356 # collect2, so additional links can be useful in future.
17357 if test "$aix_use_runtimelinking" = yes; then
17358 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17359 # instead of lib<name>.a to let people know that these are not
17360 # typical AIX shared libraries.
17361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17362 else
17363 # We preserve .a as extension for shared libraries through AIX4.2
17364 # and later when we are not doing run time linking.
17365 library_names_spec='${libname}${release}.a $libname.a'
17366 soname_spec='${libname}${release}${shared_ext}$major'
17368 shlibpath_var=LIBPATH
17372 amigaos*)
17373 case $host_cpu in
17374 powerpc)
17375 # Since July 2007 AmigaOS4 officially supports .so libraries.
17376 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17379 m68k)
17380 library_names_spec='$libname.ixlibrary $libname.a'
17381 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17382 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'
17384 esac
17387 beos*)
17388 library_names_spec='${libname}${shared_ext}'
17389 dynamic_linker="$host_os ld.so"
17390 shlibpath_var=LIBRARY_PATH
17393 bsdi[45]*)
17394 version_type=linux
17395 need_version=no
17396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17397 soname_spec='${libname}${release}${shared_ext}$major'
17398 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17399 shlibpath_var=LD_LIBRARY_PATH
17400 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17401 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17402 # the default ld.so.conf also contains /usr/contrib/lib and
17403 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17404 # libtool to hard-code these into programs
17407 cygwin* | mingw* | pw32* | cegcc*)
17408 version_type=windows
17409 shrext_cmds=".dll"
17410 need_version=no
17411 need_lib_prefix=no
17413 case $GCC,$host_os in
17414 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17415 library_names_spec='$libname.dll.a'
17416 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17417 postinstall_cmds='base_file=`basename \${file}`~
17418 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17419 dldir=$destdir/`dirname \$dlpath`~
17420 test -d \$dldir || mkdir -p \$dldir~
17421 $install_prog $dir/$dlname \$dldir/$dlname~
17422 chmod a+x \$dldir/$dlname~
17423 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17424 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17426 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17427 dlpath=$dir/\$dldll~
17428 $RM \$dlpath'
17429 shlibpath_overrides_runpath=yes
17431 case $host_os in
17432 cygwin*)
17433 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17434 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17436 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17438 mingw* | cegcc*)
17439 # MinGW DLLs use traditional 'lib' prefix
17440 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17442 pw32*)
17443 # pw32 DLLs use 'pw' prefix rather than 'lib'
17444 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17446 esac
17450 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17452 esac
17453 dynamic_linker='Win32 ld.exe'
17454 # FIXME: first we should search . and the directory the executable is in
17455 shlibpath_var=PATH
17458 darwin* | rhapsody*)
17459 dynamic_linker="$host_os dyld"
17460 version_type=darwin
17461 need_lib_prefix=no
17462 need_version=no
17463 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17464 soname_spec='${libname}${release}${major}$shared_ext'
17465 shlibpath_overrides_runpath=yes
17466 shlibpath_var=DYLD_LIBRARY_PATH
17467 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17469 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17470 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17473 dgux*)
17474 version_type=linux
17475 need_lib_prefix=no
17476 need_version=no
17477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17478 soname_spec='${libname}${release}${shared_ext}$major'
17479 shlibpath_var=LD_LIBRARY_PATH
17482 freebsd* | dragonfly*)
17483 # DragonFly does not have aout. When/if they implement a new
17484 # versioning mechanism, adjust this.
17485 if test -x /usr/bin/objformat; then
17486 objformat=`/usr/bin/objformat`
17487 else
17488 case $host_os in
17489 freebsd[23].*) objformat=aout ;;
17490 *) objformat=elf ;;
17491 esac
17493 version_type=freebsd-$objformat
17494 case $version_type in
17495 freebsd-elf*)
17496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17497 need_version=no
17498 need_lib_prefix=no
17500 freebsd-*)
17501 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17502 need_version=yes
17504 esac
17505 shlibpath_var=LD_LIBRARY_PATH
17506 case $host_os in
17507 freebsd2.*)
17508 shlibpath_overrides_runpath=yes
17510 freebsd3.[01]* | freebsdelf3.[01]*)
17511 shlibpath_overrides_runpath=yes
17512 hardcode_into_libs=yes
17514 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17515 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17516 shlibpath_overrides_runpath=no
17517 hardcode_into_libs=yes
17519 *) # from 4.6 on, and DragonFly
17520 shlibpath_overrides_runpath=yes
17521 hardcode_into_libs=yes
17523 esac
17526 gnu*)
17527 version_type=linux
17528 need_lib_prefix=no
17529 need_version=no
17530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17531 soname_spec='${libname}${release}${shared_ext}$major'
17532 shlibpath_var=LD_LIBRARY_PATH
17533 hardcode_into_libs=yes
17536 haiku*)
17537 version_type=linux
17538 need_lib_prefix=no
17539 need_version=no
17540 dynamic_linker="$host_os runtime_loader"
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=LIBRARY_PATH
17544 shlibpath_overrides_runpath=yes
17545 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17546 hardcode_into_libs=yes
17549 hpux9* | hpux10* | hpux11*)
17550 # Give a soname corresponding to the major version so that dld.sl refuses to
17551 # link against other versions.
17552 version_type=sunos
17553 need_lib_prefix=no
17554 need_version=no
17555 case $host_cpu in
17556 ia64*)
17557 shrext_cmds='.so'
17558 hardcode_into_libs=yes
17559 dynamic_linker="$host_os dld.so"
17560 shlibpath_var=LD_LIBRARY_PATH
17561 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17563 soname_spec='${libname}${release}${shared_ext}$major'
17564 if test "X$HPUX_IA64_MODE" = X32; then
17565 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17566 else
17567 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17569 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17571 hppa*64*)
17572 shrext_cmds='.sl'
17573 hardcode_into_libs=yes
17574 dynamic_linker="$host_os dld.sl"
17575 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17576 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17578 soname_spec='${libname}${release}${shared_ext}$major'
17579 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17580 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17583 shrext_cmds='.sl'
17584 dynamic_linker="$host_os dld.sl"
17585 shlibpath_var=SHLIB_PATH
17586 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17588 soname_spec='${libname}${release}${shared_ext}$major'
17590 esac
17591 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17592 postinstall_cmds='chmod 555 $lib'
17593 # or fails outright, so override atomically:
17594 install_override_mode=555
17597 interix[3-9]*)
17598 version_type=linux
17599 need_lib_prefix=no
17600 need_version=no
17601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17602 soname_spec='${libname}${release}${shared_ext}$major'
17603 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17604 shlibpath_var=LD_LIBRARY_PATH
17605 shlibpath_overrides_runpath=no
17606 hardcode_into_libs=yes
17609 irix5* | irix6* | nonstopux*)
17610 case $host_os in
17611 nonstopux*) version_type=nonstopux ;;
17613 if test "$lt_cv_prog_gnu_ld" = yes; then
17614 version_type=linux
17615 else
17616 version_type=irix
17617 fi ;;
17618 esac
17619 need_lib_prefix=no
17620 need_version=no
17621 soname_spec='${libname}${release}${shared_ext}$major'
17622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17623 case $host_os in
17624 irix5* | nonstopux*)
17625 libsuff= shlibsuff=
17628 case $LD in # libtool.m4 will add one of these switches to LD
17629 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17630 libsuff= shlibsuff= libmagic=32-bit;;
17631 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17632 libsuff=32 shlibsuff=N32 libmagic=N32;;
17633 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17634 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17635 *) libsuff= shlibsuff= libmagic=never-match;;
17636 esac
17638 esac
17639 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17640 shlibpath_overrides_runpath=no
17641 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17642 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17643 hardcode_into_libs=yes
17646 # No shared lib support for Linux oldld, aout, or coff.
17647 linux*oldld* | linux*aout* | linux*coff*)
17648 dynamic_linker=no
17651 # This must be Linux ELF.
17652 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17653 version_type=linux
17654 need_lib_prefix=no
17655 need_version=no
17656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17657 soname_spec='${libname}${release}${shared_ext}$major'
17658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17659 shlibpath_var=LD_LIBRARY_PATH
17660 shlibpath_overrides_runpath=no
17662 # Some binutils ld are patched to set DT_RUNPATH
17663 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17664 $as_echo_n "(cached) " >&6
17665 else
17666 lt_cv_shlibpath_overrides_runpath=no
17667 save_LDFLAGS=$LDFLAGS
17668 save_libdir=$libdir
17669 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17670 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17672 /* end confdefs.h. */
17675 main ()
17679 return 0;
17681 _ACEOF
17682 if ac_fn_c_try_link "$LINENO"; then :
17683 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17684 lt_cv_shlibpath_overrides_runpath=yes
17687 rm -f core conftest.err conftest.$ac_objext \
17688 conftest$ac_exeext conftest.$ac_ext
17689 LDFLAGS=$save_LDFLAGS
17690 libdir=$save_libdir
17694 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17696 # This implies no fast_install, which is unacceptable.
17697 # Some rework will be needed to allow for fast_install
17698 # before this can be enabled.
17699 hardcode_into_libs=yes
17701 # Append ld.so.conf contents to the search path
17702 if test -f /etc/ld.so.conf; then
17703 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' ' '`
17704 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17707 # We used to test for /lib/ld.so.1 and disable shared libraries on
17708 # powerpc, because MkLinux only supported shared libraries with the
17709 # GNU dynamic linker. Since this was broken with cross compilers,
17710 # most powerpc-linux boxes support dynamic linking these days and
17711 # people can always --disable-shared, the test was removed, and we
17712 # assume the GNU/Linux dynamic linker is in use.
17713 dynamic_linker='GNU/Linux ld.so'
17716 netbsd*)
17717 version_type=sunos
17718 need_lib_prefix=no
17719 need_version=no
17720 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17723 dynamic_linker='NetBSD (a.out) ld.so'
17724 else
17725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17726 soname_spec='${libname}${release}${shared_ext}$major'
17727 dynamic_linker='NetBSD ld.elf_so'
17729 shlibpath_var=LD_LIBRARY_PATH
17730 shlibpath_overrides_runpath=yes
17731 hardcode_into_libs=yes
17734 newsos6)
17735 version_type=linux
17736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17737 shlibpath_var=LD_LIBRARY_PATH
17738 shlibpath_overrides_runpath=yes
17741 *nto* | *qnx*)
17742 version_type=qnx
17743 need_lib_prefix=no
17744 need_version=no
17745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17746 soname_spec='${libname}${release}${shared_ext}$major'
17747 shlibpath_var=LD_LIBRARY_PATH
17748 shlibpath_overrides_runpath=no
17749 hardcode_into_libs=yes
17750 dynamic_linker='ldqnx.so'
17753 openbsd*)
17754 version_type=sunos
17755 sys_lib_dlsearch_path_spec="/usr/lib"
17756 need_lib_prefix=no
17757 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17758 case $host_os in
17759 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17760 *) need_version=no ;;
17761 esac
17762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17763 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17764 shlibpath_var=LD_LIBRARY_PATH
17765 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17766 case $host_os in
17767 openbsd2.[89] | openbsd2.[89].*)
17768 shlibpath_overrides_runpath=no
17771 shlibpath_overrides_runpath=yes
17773 esac
17774 else
17775 shlibpath_overrides_runpath=yes
17779 os2*)
17780 libname_spec='$name'
17781 shrext_cmds=".dll"
17782 need_lib_prefix=no
17783 library_names_spec='$libname${shared_ext} $libname.a'
17784 dynamic_linker='OS/2 ld.exe'
17785 shlibpath_var=LIBPATH
17788 osf3* | osf4* | osf5*)
17789 version_type=osf
17790 need_lib_prefix=no
17791 need_version=no
17792 soname_spec='${libname}${release}${shared_ext}$major'
17793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17794 shlibpath_var=LD_LIBRARY_PATH
17795 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17796 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17799 rdos*)
17800 dynamic_linker=no
17803 solaris*)
17804 version_type=linux
17805 need_lib_prefix=no
17806 need_version=no
17807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17808 soname_spec='${libname}${release}${shared_ext}$major'
17809 shlibpath_var=LD_LIBRARY_PATH
17810 shlibpath_overrides_runpath=yes
17811 hardcode_into_libs=yes
17812 # ldd complains unless libraries are executable
17813 postinstall_cmds='chmod +x $lib'
17816 sunos4*)
17817 version_type=sunos
17818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17819 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17820 shlibpath_var=LD_LIBRARY_PATH
17821 shlibpath_overrides_runpath=yes
17822 if test "$with_gnu_ld" = yes; then
17823 need_lib_prefix=no
17825 need_version=yes
17828 sysv4 | sysv4.3*)
17829 version_type=linux
17830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17831 soname_spec='${libname}${release}${shared_ext}$major'
17832 shlibpath_var=LD_LIBRARY_PATH
17833 case $host_vendor in
17834 sni)
17835 shlibpath_overrides_runpath=no
17836 need_lib_prefix=no
17837 runpath_var=LD_RUN_PATH
17839 siemens)
17840 need_lib_prefix=no
17842 motorola)
17843 need_lib_prefix=no
17844 need_version=no
17845 shlibpath_overrides_runpath=no
17846 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17848 esac
17851 sysv4*MP*)
17852 if test -d /usr/nec ;then
17853 version_type=linux
17854 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17855 soname_spec='$libname${shared_ext}.$major'
17856 shlibpath_var=LD_LIBRARY_PATH
17860 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17861 version_type=freebsd-elf
17862 need_lib_prefix=no
17863 need_version=no
17864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17865 soname_spec='${libname}${release}${shared_ext}$major'
17866 shlibpath_var=LD_LIBRARY_PATH
17867 shlibpath_overrides_runpath=yes
17868 hardcode_into_libs=yes
17869 if test "$with_gnu_ld" = yes; then
17870 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17871 else
17872 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17873 case $host_os in
17874 sco3.2v5*)
17875 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17877 esac
17879 sys_lib_dlsearch_path_spec='/usr/lib'
17882 tpf*)
17883 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17884 version_type=linux
17885 need_lib_prefix=no
17886 need_version=no
17887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17888 shlibpath_var=LD_LIBRARY_PATH
17889 shlibpath_overrides_runpath=no
17890 hardcode_into_libs=yes
17893 uts4*)
17894 version_type=linux
17895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17896 soname_spec='${libname}${release}${shared_ext}$major'
17897 shlibpath_var=LD_LIBRARY_PATH
17901 dynamic_linker=no
17903 esac
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17905 $as_echo "$dynamic_linker" >&6; }
17906 test "$dynamic_linker" = no && can_build_shared=no
17908 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17909 if test "$GCC" = yes; then
17910 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17913 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17914 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17916 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17917 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18012 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18013 hardcode_action=
18014 if test -n "$hardcode_libdir_flag_spec" ||
18015 test -n "$runpath_var" ||
18016 test "X$hardcode_automatic" = "Xyes" ; then
18018 # We can hardcode non-existent directories.
18019 if test "$hardcode_direct" != no &&
18020 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18021 # have to relink, otherwise we might link with an installed library
18022 # when we should be linking with a yet-to-be-installed one
18023 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18024 test "$hardcode_minus_L" != no; then
18025 # Linking always hardcodes the temporary library directory.
18026 hardcode_action=relink
18027 else
18028 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18029 hardcode_action=immediate
18031 else
18032 # We cannot hardcode anything, or else we can only hardcode existing
18033 # directories.
18034 hardcode_action=unsupported
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18037 $as_echo "$hardcode_action" >&6; }
18039 if test "$hardcode_action" = relink ||
18040 test "$inherit_rpath" = yes; then
18041 # Fast installation is not supported
18042 enable_fast_install=no
18043 elif test "$shlibpath_overrides_runpath" = yes ||
18044 test "$enable_shared" = no; then
18045 # Fast installation is not necessary
18046 enable_fast_install=needless
18054 if test "x$enable_dlopen" != xyes; then
18055 enable_dlopen=unknown
18056 enable_dlopen_self=unknown
18057 enable_dlopen_self_static=unknown
18058 else
18059 lt_cv_dlopen=no
18060 lt_cv_dlopen_libs=
18062 case $host_os in
18063 beos*)
18064 lt_cv_dlopen="load_add_on"
18065 lt_cv_dlopen_libs=
18066 lt_cv_dlopen_self=yes
18069 mingw* | pw32* | cegcc*)
18070 lt_cv_dlopen="LoadLibrary"
18071 lt_cv_dlopen_libs=
18074 cygwin*)
18075 lt_cv_dlopen="dlopen"
18076 lt_cv_dlopen_libs=
18079 darwin*)
18080 # if libdl is installed we need to link against it
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18082 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18083 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18084 $as_echo_n "(cached) " >&6
18085 else
18086 ac_check_lib_save_LIBS=$LIBS
18087 LIBS="-ldl $LIBS"
18088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18089 /* end confdefs.h. */
18091 /* Override any GCC internal prototype to avoid an error.
18092 Use char because int might match the return type of a GCC
18093 builtin and then its argument prototype would still apply. */
18094 #ifdef __cplusplus
18095 extern "C"
18096 #endif
18097 char dlopen ();
18099 main ()
18101 return dlopen ();
18103 return 0;
18105 _ACEOF
18106 if ac_fn_c_try_link "$LINENO"; then :
18107 ac_cv_lib_dl_dlopen=yes
18108 else
18109 ac_cv_lib_dl_dlopen=no
18111 rm -f core conftest.err conftest.$ac_objext \
18112 conftest$ac_exeext conftest.$ac_ext
18113 LIBS=$ac_check_lib_save_LIBS
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18116 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18117 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18118 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18119 else
18121 lt_cv_dlopen="dyld"
18122 lt_cv_dlopen_libs=
18123 lt_cv_dlopen_self=yes
18130 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18131 if test "x$ac_cv_func_shl_load" = x""yes; then :
18132 lt_cv_dlopen="shl_load"
18133 else
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18135 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18136 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18137 $as_echo_n "(cached) " >&6
18138 else
18139 ac_check_lib_save_LIBS=$LIBS
18140 LIBS="-ldld $LIBS"
18141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18142 /* end confdefs.h. */
18144 /* Override any GCC internal prototype to avoid an error.
18145 Use char because int might match the return type of a GCC
18146 builtin and then its argument prototype would still apply. */
18147 #ifdef __cplusplus
18148 extern "C"
18149 #endif
18150 char shl_load ();
18152 main ()
18154 return shl_load ();
18156 return 0;
18158 _ACEOF
18159 if ac_fn_c_try_link "$LINENO"; then :
18160 ac_cv_lib_dld_shl_load=yes
18161 else
18162 ac_cv_lib_dld_shl_load=no
18164 rm -f core conftest.err conftest.$ac_objext \
18165 conftest$ac_exeext conftest.$ac_ext
18166 LIBS=$ac_check_lib_save_LIBS
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18169 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18170 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18171 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18172 else
18173 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18174 if test "x$ac_cv_func_dlopen" = x""yes; then :
18175 lt_cv_dlopen="dlopen"
18176 else
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18178 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18179 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18180 $as_echo_n "(cached) " >&6
18181 else
18182 ac_check_lib_save_LIBS=$LIBS
18183 LIBS="-ldl $LIBS"
18184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18185 /* end confdefs.h. */
18187 /* Override any GCC internal prototype to avoid an error.
18188 Use char because int might match the return type of a GCC
18189 builtin and then its argument prototype would still apply. */
18190 #ifdef __cplusplus
18191 extern "C"
18192 #endif
18193 char dlopen ();
18195 main ()
18197 return dlopen ();
18199 return 0;
18201 _ACEOF
18202 if ac_fn_c_try_link "$LINENO"; then :
18203 ac_cv_lib_dl_dlopen=yes
18204 else
18205 ac_cv_lib_dl_dlopen=no
18207 rm -f core conftest.err conftest.$ac_objext \
18208 conftest$ac_exeext conftest.$ac_ext
18209 LIBS=$ac_check_lib_save_LIBS
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18212 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18213 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18214 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18215 else
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18217 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18218 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18219 $as_echo_n "(cached) " >&6
18220 else
18221 ac_check_lib_save_LIBS=$LIBS
18222 LIBS="-lsvld $LIBS"
18223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18224 /* end confdefs.h. */
18226 /* Override any GCC internal prototype to avoid an error.
18227 Use char because int might match the return type of a GCC
18228 builtin and then its argument prototype would still apply. */
18229 #ifdef __cplusplus
18230 extern "C"
18231 #endif
18232 char dlopen ();
18234 main ()
18236 return dlopen ();
18238 return 0;
18240 _ACEOF
18241 if ac_fn_c_try_link "$LINENO"; then :
18242 ac_cv_lib_svld_dlopen=yes
18243 else
18244 ac_cv_lib_svld_dlopen=no
18246 rm -f core conftest.err conftest.$ac_objext \
18247 conftest$ac_exeext conftest.$ac_ext
18248 LIBS=$ac_check_lib_save_LIBS
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18251 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18252 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18253 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18254 else
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18256 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18257 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18258 $as_echo_n "(cached) " >&6
18259 else
18260 ac_check_lib_save_LIBS=$LIBS
18261 LIBS="-ldld $LIBS"
18262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18263 /* end confdefs.h. */
18265 /* Override any GCC internal prototype to avoid an error.
18266 Use char because int might match the return type of a GCC
18267 builtin and then its argument prototype would still apply. */
18268 #ifdef __cplusplus
18269 extern "C"
18270 #endif
18271 char dld_link ();
18273 main ()
18275 return dld_link ();
18277 return 0;
18279 _ACEOF
18280 if ac_fn_c_try_link "$LINENO"; then :
18281 ac_cv_lib_dld_dld_link=yes
18282 else
18283 ac_cv_lib_dld_dld_link=no
18285 rm -f core conftest.err conftest.$ac_objext \
18286 conftest$ac_exeext conftest.$ac_ext
18287 LIBS=$ac_check_lib_save_LIBS
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18290 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18291 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18292 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18311 esac
18313 if test "x$lt_cv_dlopen" != xno; then
18314 enable_dlopen=yes
18315 else
18316 enable_dlopen=no
18319 case $lt_cv_dlopen in
18320 dlopen)
18321 save_CPPFLAGS="$CPPFLAGS"
18322 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18324 save_LDFLAGS="$LDFLAGS"
18325 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18327 save_LIBS="$LIBS"
18328 LIBS="$lt_cv_dlopen_libs $LIBS"
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18331 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18332 if test "${lt_cv_dlopen_self+set}" = set; then :
18333 $as_echo_n "(cached) " >&6
18334 else
18335 if test "$cross_compiling" = yes; then :
18336 lt_cv_dlopen_self=cross
18337 else
18338 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18339 lt_status=$lt_dlunknown
18340 cat > conftest.$ac_ext <<_LT_EOF
18341 #line 18341 "configure"
18342 #include "confdefs.h"
18344 #if HAVE_DLFCN_H
18345 #include <dlfcn.h>
18346 #endif
18348 #include <stdio.h>
18350 #ifdef RTLD_GLOBAL
18351 # define LT_DLGLOBAL RTLD_GLOBAL
18352 #else
18353 # ifdef DL_GLOBAL
18354 # define LT_DLGLOBAL DL_GLOBAL
18355 # else
18356 # define LT_DLGLOBAL 0
18357 # endif
18358 #endif
18360 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18361 find out it does not work in some platform. */
18362 #ifndef LT_DLLAZY_OR_NOW
18363 # ifdef RTLD_LAZY
18364 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18365 # else
18366 # ifdef DL_LAZY
18367 # define LT_DLLAZY_OR_NOW DL_LAZY
18368 # else
18369 # ifdef RTLD_NOW
18370 # define LT_DLLAZY_OR_NOW RTLD_NOW
18371 # else
18372 # ifdef DL_NOW
18373 # define LT_DLLAZY_OR_NOW DL_NOW
18374 # else
18375 # define LT_DLLAZY_OR_NOW 0
18376 # endif
18377 # endif
18378 # endif
18379 # endif
18380 #endif
18382 /* When -fvisbility=hidden is used, assume the code has been annotated
18383 correspondingly for the symbols needed. */
18384 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18385 void fnord () __attribute__((visibility("default")));
18386 #endif
18388 void fnord () { int i=42; }
18389 int main ()
18391 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18392 int status = $lt_dlunknown;
18394 if (self)
18396 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18397 else
18399 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18400 else puts (dlerror ());
18402 /* dlclose (self); */
18404 else
18405 puts (dlerror ());
18407 return status;
18409 _LT_EOF
18410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18411 (eval $ac_link) 2>&5
18412 ac_status=$?
18413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18414 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18415 (./conftest; exit; ) >&5 2>/dev/null
18416 lt_status=$?
18417 case x$lt_status in
18418 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18419 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18420 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18421 esac
18422 else :
18423 # compilation failed
18424 lt_cv_dlopen_self=no
18427 rm -fr conftest*
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18432 $as_echo "$lt_cv_dlopen_self" >&6; }
18434 if test "x$lt_cv_dlopen_self" = xyes; then
18435 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18437 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18438 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18439 $as_echo_n "(cached) " >&6
18440 else
18441 if test "$cross_compiling" = yes; then :
18442 lt_cv_dlopen_self_static=cross
18443 else
18444 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18445 lt_status=$lt_dlunknown
18446 cat > conftest.$ac_ext <<_LT_EOF
18447 #line 18447 "configure"
18448 #include "confdefs.h"
18450 #if HAVE_DLFCN_H
18451 #include <dlfcn.h>
18452 #endif
18454 #include <stdio.h>
18456 #ifdef RTLD_GLOBAL
18457 # define LT_DLGLOBAL RTLD_GLOBAL
18458 #else
18459 # ifdef DL_GLOBAL
18460 # define LT_DLGLOBAL DL_GLOBAL
18461 # else
18462 # define LT_DLGLOBAL 0
18463 # endif
18464 #endif
18466 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18467 find out it does not work in some platform. */
18468 #ifndef LT_DLLAZY_OR_NOW
18469 # ifdef RTLD_LAZY
18470 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18471 # else
18472 # ifdef DL_LAZY
18473 # define LT_DLLAZY_OR_NOW DL_LAZY
18474 # else
18475 # ifdef RTLD_NOW
18476 # define LT_DLLAZY_OR_NOW RTLD_NOW
18477 # else
18478 # ifdef DL_NOW
18479 # define LT_DLLAZY_OR_NOW DL_NOW
18480 # else
18481 # define LT_DLLAZY_OR_NOW 0
18482 # endif
18483 # endif
18484 # endif
18485 # endif
18486 #endif
18488 /* When -fvisbility=hidden is used, assume the code has been annotated
18489 correspondingly for the symbols needed. */
18490 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18491 void fnord () __attribute__((visibility("default")));
18492 #endif
18494 void fnord () { int i=42; }
18495 int main ()
18497 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18498 int status = $lt_dlunknown;
18500 if (self)
18502 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18503 else
18505 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18506 else puts (dlerror ());
18508 /* dlclose (self); */
18510 else
18511 puts (dlerror ());
18513 return status;
18515 _LT_EOF
18516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18517 (eval $ac_link) 2>&5
18518 ac_status=$?
18519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18520 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18521 (./conftest; exit; ) >&5 2>/dev/null
18522 lt_status=$?
18523 case x$lt_status in
18524 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18525 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18526 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18527 esac
18528 else :
18529 # compilation failed
18530 lt_cv_dlopen_self_static=no
18533 rm -fr conftest*
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18538 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18541 CPPFLAGS="$save_CPPFLAGS"
18542 LDFLAGS="$save_LDFLAGS"
18543 LIBS="$save_LIBS"
18545 esac
18547 case $lt_cv_dlopen_self in
18548 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18549 *) enable_dlopen_self=unknown ;;
18550 esac
18552 case $lt_cv_dlopen_self_static in
18553 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18554 *) enable_dlopen_self_static=unknown ;;
18555 esac
18574 striplib=
18575 old_striplib=
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18577 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18578 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18579 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18580 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18582 $as_echo "yes" >&6; }
18583 else
18584 # FIXME - insert some real tests, host_os isn't really good enough
18585 case $host_os in
18586 darwin*)
18587 if test -n "$STRIP" ; then
18588 striplib="$STRIP -x"
18589 old_striplib="$STRIP -S"
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18591 $as_echo "yes" >&6; }
18592 else
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18594 $as_echo "no" >&6; }
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18599 $as_echo "no" >&6; }
18601 esac
18615 # Report which library types will actually be built
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18617 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18619 $as_echo "$can_build_shared" >&6; }
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18622 $as_echo_n "checking whether to build shared libraries... " >&6; }
18623 test "$can_build_shared" = "no" && enable_shared=no
18625 # On AIX, shared libraries and static libraries use the same namespace, and
18626 # are all built from PIC.
18627 case $host_os in
18628 aix3*)
18629 test "$enable_shared" = yes && enable_static=no
18630 if test -n "$RANLIB"; then
18631 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18632 postinstall_cmds='$RANLIB $lib'
18636 aix[4-9]*)
18637 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18638 test "$enable_shared" = yes && enable_static=no
18641 esac
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18643 $as_echo "$enable_shared" >&6; }
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18646 $as_echo_n "checking whether to build static libraries... " >&6; }
18647 # Make sure either enable_shared or enable_static is yes.
18648 test "$enable_shared" = yes || enable_static=yes
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18650 $as_echo "$enable_static" >&6; }
18656 ac_ext=cpp
18657 ac_cpp='$CXXCPP $CPPFLAGS'
18658 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18659 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18660 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18662 CC="$lt_save_CC"
18664 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18665 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18666 (test "X$CXX" != "Xg++"))) ; then
18667 ac_ext=cpp
18668 ac_cpp='$CXXCPP $CPPFLAGS'
18669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18673 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18674 if test -z "$CXXCPP"; then
18675 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18676 $as_echo_n "(cached) " >&6
18677 else
18678 # Double quotes because CXXCPP needs to be expanded
18679 for CXXCPP in "$CXX -E" "/lib/cpp"
18681 ac_preproc_ok=false
18682 for ac_cxx_preproc_warn_flag in '' yes
18684 # Use a header file that comes with gcc, so configuring glibc
18685 # with a fresh cross-compiler works.
18686 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18687 # <limits.h> exists even on freestanding compilers.
18688 # On the NeXT, cc -E runs the code through the compiler's parser,
18689 # not just through cpp. "Syntax error" is here to catch this case.
18690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18691 /* end confdefs.h. */
18692 #ifdef __STDC__
18693 # include <limits.h>
18694 #else
18695 # include <assert.h>
18696 #endif
18697 Syntax error
18698 _ACEOF
18699 if ac_fn_cxx_try_cpp "$LINENO"; then :
18701 else
18702 # Broken: fails on valid input.
18703 continue
18705 rm -f conftest.err conftest.$ac_ext
18707 # OK, works on sane cases. Now check whether nonexistent headers
18708 # can be detected and how.
18709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18710 /* end confdefs.h. */
18711 #include <ac_nonexistent.h>
18712 _ACEOF
18713 if ac_fn_cxx_try_cpp "$LINENO"; then :
18714 # Broken: success on invalid input.
18715 continue
18716 else
18717 # Passes both tests.
18718 ac_preproc_ok=:
18719 break
18721 rm -f conftest.err conftest.$ac_ext
18723 done
18724 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18725 rm -f conftest.err conftest.$ac_ext
18726 if $ac_preproc_ok; then :
18727 break
18730 done
18731 ac_cv_prog_CXXCPP=$CXXCPP
18734 CXXCPP=$ac_cv_prog_CXXCPP
18735 else
18736 ac_cv_prog_CXXCPP=$CXXCPP
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18739 $as_echo "$CXXCPP" >&6; }
18740 ac_preproc_ok=false
18741 for ac_cxx_preproc_warn_flag in '' yes
18743 # Use a header file that comes with gcc, so configuring glibc
18744 # with a fresh cross-compiler works.
18745 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18746 # <limits.h> exists even on freestanding compilers.
18747 # On the NeXT, cc -E runs the code through the compiler's parser,
18748 # not just through cpp. "Syntax error" is here to catch this case.
18749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18750 /* end confdefs.h. */
18751 #ifdef __STDC__
18752 # include <limits.h>
18753 #else
18754 # include <assert.h>
18755 #endif
18756 Syntax error
18757 _ACEOF
18758 if ac_fn_cxx_try_cpp "$LINENO"; then :
18760 else
18761 # Broken: fails on valid input.
18762 continue
18764 rm -f conftest.err conftest.$ac_ext
18766 # OK, works on sane cases. Now check whether nonexistent headers
18767 # can be detected and how.
18768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18769 /* end confdefs.h. */
18770 #include <ac_nonexistent.h>
18771 _ACEOF
18772 if ac_fn_cxx_try_cpp "$LINENO"; then :
18773 # Broken: success on invalid input.
18774 continue
18775 else
18776 # Passes both tests.
18777 ac_preproc_ok=:
18778 break
18780 rm -f conftest.err conftest.$ac_ext
18782 done
18783 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18784 rm -f conftest.err conftest.$ac_ext
18785 if $ac_preproc_ok; then :
18787 else
18788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18790 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18791 See \`config.log' for more details." "$LINENO" 5; }
18794 ac_ext=cpp
18795 ac_cpp='$CXXCPP $CPPFLAGS'
18796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18800 else
18801 _lt_caught_CXX_error=yes
18804 ac_ext=cpp
18805 ac_cpp='$CXXCPP $CPPFLAGS'
18806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18810 archive_cmds_need_lc_CXX=no
18811 allow_undefined_flag_CXX=
18812 always_export_symbols_CXX=no
18813 archive_expsym_cmds_CXX=
18814 compiler_needs_object_CXX=no
18815 export_dynamic_flag_spec_CXX=
18816 hardcode_direct_CXX=no
18817 hardcode_direct_absolute_CXX=no
18818 hardcode_libdir_flag_spec_CXX=
18819 hardcode_libdir_flag_spec_ld_CXX=
18820 hardcode_libdir_separator_CXX=
18821 hardcode_minus_L_CXX=no
18822 hardcode_shlibpath_var_CXX=unsupported
18823 hardcode_automatic_CXX=no
18824 inherit_rpath_CXX=no
18825 module_cmds_CXX=
18826 module_expsym_cmds_CXX=
18827 link_all_deplibs_CXX=unknown
18828 old_archive_cmds_CXX=$old_archive_cmds
18829 reload_flag_CXX=$reload_flag
18830 reload_cmds_CXX=$reload_cmds
18831 no_undefined_flag_CXX=
18832 whole_archive_flag_spec_CXX=
18833 enable_shared_with_static_runtimes_CXX=no
18835 # Source file extension for C++ test sources.
18836 ac_ext=cpp
18838 # Object file extension for compiled C++ test sources.
18839 objext=o
18840 objext_CXX=$objext
18842 # No sense in running all these tests if we already determined that
18843 # the CXX compiler isn't working. Some variables (like enable_shared)
18844 # are currently assumed to apply to all compilers on this platform,
18845 # and will be corrupted by setting them based on a non-working compiler.
18846 if test "$_lt_caught_CXX_error" != yes; then
18847 # Code to be used in simple compile tests
18848 lt_simple_compile_test_code="int some_variable = 0;"
18850 # Code to be used in simple link tests
18851 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18853 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18860 # If no C compiler was specified, use CC.
18861 LTCC=${LTCC-"$CC"}
18863 # If no C compiler flags were specified, use CFLAGS.
18864 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18866 # Allow CC to be a program name with arguments.
18867 compiler=$CC
18870 # save warnings/boilerplate of simple test code
18871 ac_outfile=conftest.$ac_objext
18872 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18873 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18874 _lt_compiler_boilerplate=`cat conftest.err`
18875 $RM conftest*
18877 ac_outfile=conftest.$ac_objext
18878 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18879 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18880 _lt_linker_boilerplate=`cat conftest.err`
18881 $RM -r conftest*
18884 # Allow CC to be a program name with arguments.
18885 lt_save_CC=$CC
18886 lt_save_LD=$LD
18887 lt_save_GCC=$GCC
18888 GCC=$GXX
18889 lt_save_with_gnu_ld=$with_gnu_ld
18890 lt_save_path_LD=$lt_cv_path_LD
18891 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18892 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18893 else
18894 $as_unset lt_cv_prog_gnu_ld
18896 if test -n "${lt_cv_path_LDCXX+set}"; then
18897 lt_cv_path_LD=$lt_cv_path_LDCXX
18898 else
18899 $as_unset lt_cv_path_LD
18901 test -z "${LDCXX+set}" || LD=$LDCXX
18902 CC=${CXX-"c++"}
18903 compiler=$CC
18904 compiler_CXX=$CC
18905 for cc_temp in $compiler""; do
18906 case $cc_temp in
18907 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18908 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18909 \-*) ;;
18910 *) break;;
18911 esac
18912 done
18913 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18916 if test -n "$compiler"; then
18917 # We don't want -fno-exception when compiling C++ code, so set the
18918 # no_builtin_flag separately
18919 if test "$GXX" = yes; then
18920 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18921 else
18922 lt_prog_compiler_no_builtin_flag_CXX=
18925 if test "$GXX" = yes; then
18926 # Set up default GNU C++ configuration
18930 # Check whether --with-gnu-ld was given.
18931 if test "${with_gnu_ld+set}" = set; then :
18932 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18933 else
18934 with_gnu_ld=no
18937 ac_prog=ld
18938 if test "$GCC" = yes; then
18939 # Check if gcc -print-prog-name=ld gives a path.
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18941 $as_echo_n "checking for ld used by $CC... " >&6; }
18942 case $host in
18943 *-*-mingw*)
18944 # gcc leaves a trailing carriage return which upsets mingw
18945 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18947 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18948 esac
18949 case $ac_prog in
18950 # Accept absolute paths.
18951 [\\/]* | ?:[\\/]*)
18952 re_direlt='/[^/][^/]*/\.\./'
18953 # Canonicalize the pathname of ld
18954 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18955 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18956 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18957 done
18958 test -z "$LD" && LD="$ac_prog"
18961 # If it fails, then pretend we aren't using GCC.
18962 ac_prog=ld
18965 # If it is relative, then search for the first ld in PATH.
18966 with_gnu_ld=unknown
18968 esac
18969 elif test "$with_gnu_ld" = yes; then
18970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18971 $as_echo_n "checking for GNU ld... " >&6; }
18972 else
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18974 $as_echo_n "checking for non-GNU ld... " >&6; }
18976 if test "${lt_cv_path_LD+set}" = set; then :
18977 $as_echo_n "(cached) " >&6
18978 else
18979 if test -z "$LD"; then
18980 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18981 for ac_dir in $PATH; do
18982 IFS="$lt_save_ifs"
18983 test -z "$ac_dir" && ac_dir=.
18984 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18985 lt_cv_path_LD="$ac_dir/$ac_prog"
18986 # Check to see if the program is GNU ld. I'd rather use --version,
18987 # but apparently some variants of GNU ld only accept -v.
18988 # Break only if it was the GNU/non-GNU ld that we prefer.
18989 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18990 *GNU* | *'with BFD'*)
18991 test "$with_gnu_ld" != no && break
18994 test "$with_gnu_ld" != yes && break
18996 esac
18998 done
18999 IFS="$lt_save_ifs"
19000 else
19001 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19005 LD="$lt_cv_path_LD"
19006 if test -n "$LD"; then
19007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19008 $as_echo "$LD" >&6; }
19009 else
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19011 $as_echo "no" >&6; }
19013 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19015 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19016 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19017 $as_echo_n "(cached) " >&6
19018 else
19019 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19020 case `$LD -v 2>&1 </dev/null` in
19021 *GNU* | *'with BFD'*)
19022 lt_cv_prog_gnu_ld=yes
19025 lt_cv_prog_gnu_ld=no
19027 esac
19029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19030 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19031 with_gnu_ld=$lt_cv_prog_gnu_ld
19039 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19040 # archiving commands below assume that GNU ld is being used.
19041 if test "$with_gnu_ld" = yes; then
19042 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19043 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19045 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19046 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19048 # If archive_cmds runs LD, not CC, wlarc should be empty
19049 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19050 # investigate it a little bit more. (MM)
19051 wlarc='${wl}'
19053 # ancient GNU ld didn't support --whole-archive et. al.
19054 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19055 $GREP 'no-whole-archive' > /dev/null; then
19056 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19057 else
19058 whole_archive_flag_spec_CXX=
19060 else
19061 with_gnu_ld=no
19062 wlarc=
19064 # A generic and very simple default shared library creation
19065 # command for GNU C++ for the case where it uses the native
19066 # linker, instead of GNU ld. If possible, this setting should
19067 # overridden to take advantage of the native linker features on
19068 # the platform it is being used on.
19069 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19072 # Commands to make compiler produce verbose output that lists
19073 # what "hidden" libraries, object files and flags are used when
19074 # linking a shared library.
19075 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19077 else
19078 GXX=no
19079 with_gnu_ld=no
19080 wlarc=
19083 # PORTME: fill in a description of your system's C++ link characteristics
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19085 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19086 ld_shlibs_CXX=yes
19087 case $host_os in
19088 aix3*)
19089 # FIXME: insert proper C++ library support
19090 ld_shlibs_CXX=no
19092 aix[4-9]*)
19093 if test "$host_cpu" = ia64; then
19094 # On IA64, the linker does run time linking by default, so we don't
19095 # have to do anything special.
19096 aix_use_runtimelinking=no
19097 exp_sym_flag='-Bexport'
19098 no_entry_flag=""
19099 else
19100 aix_use_runtimelinking=no
19102 # Test if we are trying to use run time linking or normal
19103 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19104 # need to do runtime linking.
19105 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19106 for ld_flag in $LDFLAGS; do
19107 case $ld_flag in
19108 *-brtl*)
19109 aix_use_runtimelinking=yes
19110 break
19112 esac
19113 done
19115 esac
19117 exp_sym_flag='-bexport'
19118 no_entry_flag='-bnoentry'
19121 # When large executables or shared objects are built, AIX ld can
19122 # have problems creating the table of contents. If linking a library
19123 # or program results in "error TOC overflow" add -mminimal-toc to
19124 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19125 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19127 archive_cmds_CXX=''
19128 hardcode_direct_CXX=yes
19129 hardcode_direct_absolute_CXX=yes
19130 hardcode_libdir_separator_CXX=':'
19131 link_all_deplibs_CXX=yes
19132 file_list_spec_CXX='${wl}-f,'
19134 if test "$GXX" = yes; then
19135 case $host_os in aix4.[012]|aix4.[012].*)
19136 # We only want to do this on AIX 4.2 and lower, the check
19137 # below for broken collect2 doesn't work under 4.3+
19138 collect2name=`${CC} -print-prog-name=collect2`
19139 if test -f "$collect2name" &&
19140 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19141 then
19142 # We have reworked collect2
19144 else
19145 # We have old collect2
19146 hardcode_direct_CXX=unsupported
19147 # It fails to find uninstalled libraries when the uninstalled
19148 # path is not listed in the libpath. Setting hardcode_minus_L
19149 # to unsupported forces relinking
19150 hardcode_minus_L_CXX=yes
19151 hardcode_libdir_flag_spec_CXX='-L$libdir'
19152 hardcode_libdir_separator_CXX=
19154 esac
19155 shared_flag='-shared'
19156 if test "$aix_use_runtimelinking" = yes; then
19157 shared_flag="$shared_flag "'${wl}-G'
19159 else
19160 # not using gcc
19161 if test "$host_cpu" = ia64; then
19162 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19163 # chokes on -Wl,-G. The following line is correct:
19164 shared_flag='-G'
19165 else
19166 if test "$aix_use_runtimelinking" = yes; then
19167 shared_flag='${wl}-G'
19168 else
19169 shared_flag='${wl}-bM:SRE'
19174 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19175 # It seems that -bexpall does not export symbols beginning with
19176 # underscore (_), so it is better to generate a list of symbols to
19177 # export.
19178 always_export_symbols_CXX=yes
19179 if test "$aix_use_runtimelinking" = yes; then
19180 # Warning - without using the other runtime loading flags (-brtl),
19181 # -berok will link without error, but may produce a broken library.
19182 allow_undefined_flag_CXX='-berok'
19183 # Determine the default libpath from the value encoded in an empty
19184 # executable.
19185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19186 /* end confdefs.h. */
19189 main ()
19193 return 0;
19195 _ACEOF
19196 if ac_fn_cxx_try_link "$LINENO"; then :
19198 lt_aix_libpath_sed='
19199 /Import File Strings/,/^$/ {
19200 /^0/ {
19201 s/^0 *\(.*\)$/\1/
19205 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19206 # Check for a 64-bit object if we didn't find anything.
19207 if test -z "$aix_libpath"; then
19208 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19211 rm -f core conftest.err conftest.$ac_objext \
19212 conftest$ac_exeext conftest.$ac_ext
19213 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19215 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19217 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"
19218 else
19219 if test "$host_cpu" = ia64; then
19220 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19221 allow_undefined_flag_CXX="-z nodefs"
19222 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"
19223 else
19224 # Determine the default libpath from the value encoded in an
19225 # empty executable.
19226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19227 /* end confdefs.h. */
19230 main ()
19234 return 0;
19236 _ACEOF
19237 if ac_fn_cxx_try_link "$LINENO"; then :
19239 lt_aix_libpath_sed='
19240 /Import File Strings/,/^$/ {
19241 /^0/ {
19242 s/^0 *\(.*\)$/\1/
19246 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19247 # Check for a 64-bit object if we didn't find anything.
19248 if test -z "$aix_libpath"; then
19249 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19252 rm -f core conftest.err conftest.$ac_objext \
19253 conftest$ac_exeext conftest.$ac_ext
19254 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19256 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19257 # Warning - without using the other run time loading flags,
19258 # -berok will link without error, but may produce a broken library.
19259 no_undefined_flag_CXX=' ${wl}-bernotok'
19260 allow_undefined_flag_CXX=' ${wl}-berok'
19261 if test "$with_gnu_ld" = yes; then
19262 # We only use this code for GNU lds that support --whole-archive.
19263 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19264 else
19265 # Exported symbols can be pulled into shared objects from archives
19266 whole_archive_flag_spec_CXX='$convenience'
19268 archive_cmds_need_lc_CXX=yes
19269 # This is similar to how AIX traditionally builds its shared
19270 # libraries.
19271 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'
19276 beos*)
19277 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19278 allow_undefined_flag_CXX=unsupported
19279 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19280 # support --undefined. This deserves some investigation. FIXME
19281 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19282 else
19283 ld_shlibs_CXX=no
19287 chorus*)
19288 case $cc_basename in
19290 # FIXME: insert proper C++ library support
19291 ld_shlibs_CXX=no
19293 esac
19296 cygwin* | mingw* | pw32* | cegcc*)
19297 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19298 # as there is no search path for DLLs.
19299 hardcode_libdir_flag_spec_CXX='-L$libdir'
19300 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19301 allow_undefined_flag_CXX=unsupported
19302 always_export_symbols_CXX=no
19303 enable_shared_with_static_runtimes_CXX=yes
19305 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19306 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'
19307 # If the export-symbols file already is a .def file (1st line
19308 # is EXPORTS), use it as is; otherwise, prepend...
19309 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19310 cp $export_symbols $output_objdir/$soname.def;
19311 else
19312 echo EXPORTS > $output_objdir/$soname.def;
19313 cat $export_symbols >> $output_objdir/$soname.def;
19315 $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'
19316 else
19317 ld_shlibs_CXX=no
19320 darwin* | rhapsody*)
19323 archive_cmds_need_lc_CXX=no
19324 hardcode_direct_CXX=no
19325 hardcode_automatic_CXX=yes
19326 hardcode_shlibpath_var_CXX=unsupported
19327 if test "$lt_cv_ld_force_load" = "yes"; then
19328 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\"`'
19329 else
19330 whole_archive_flag_spec_CXX=''
19332 link_all_deplibs_CXX=yes
19333 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19334 case $cc_basename in
19335 ifort*) _lt_dar_can_shared=yes ;;
19336 *) _lt_dar_can_shared=$GCC ;;
19337 esac
19338 if test "$_lt_dar_can_shared" = "yes"; then
19339 output_verbose_link_cmd=func_echo_all
19340 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}"
19341 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19342 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}"
19343 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}"
19344 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19345 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}"
19346 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}"
19349 else
19350 ld_shlibs_CXX=no
19355 dgux*)
19356 case $cc_basename in
19357 ec++*)
19358 # FIXME: insert proper C++ library support
19359 ld_shlibs_CXX=no
19361 ghcx*)
19362 # Green Hills C++ Compiler
19363 # FIXME: insert proper C++ library support
19364 ld_shlibs_CXX=no
19367 # FIXME: insert proper C++ library support
19368 ld_shlibs_CXX=no
19370 esac
19373 freebsd2.*)
19374 # C++ shared libraries reported to be fairly broken before
19375 # switch to ELF
19376 ld_shlibs_CXX=no
19379 freebsd-elf*)
19380 archive_cmds_need_lc_CXX=no
19383 freebsd* | dragonfly*)
19384 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19385 # conventions
19386 ld_shlibs_CXX=yes
19389 gnu*)
19392 haiku*)
19393 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19394 link_all_deplibs_CXX=yes
19397 hpux9*)
19398 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19399 hardcode_libdir_separator_CXX=:
19400 export_dynamic_flag_spec_CXX='${wl}-E'
19401 hardcode_direct_CXX=yes
19402 hardcode_minus_L_CXX=yes # Not in the search PATH,
19403 # but as the default
19404 # location of the library.
19406 case $cc_basename in
19407 CC*)
19408 # FIXME: insert proper C++ library support
19409 ld_shlibs_CXX=no
19411 aCC*)
19412 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'
19413 # Commands to make compiler produce verbose output that lists
19414 # what "hidden" libraries, object files and flags are used when
19415 # linking a shared library.
19417 # There doesn't appear to be a way to prevent this compiler from
19418 # explicitly linking system object files so we need to strip them
19419 # from the output so that they don't get included in the library
19420 # dependencies.
19421 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"'
19424 if test "$GXX" = yes; then
19425 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'
19426 else
19427 # FIXME: insert proper C++ library support
19428 ld_shlibs_CXX=no
19431 esac
19434 hpux10*|hpux11*)
19435 if test $with_gnu_ld = no; then
19436 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19437 hardcode_libdir_separator_CXX=:
19439 case $host_cpu in
19440 hppa*64*|ia64*)
19443 export_dynamic_flag_spec_CXX='${wl}-E'
19445 esac
19447 case $host_cpu in
19448 hppa*64*|ia64*)
19449 hardcode_direct_CXX=no
19450 hardcode_shlibpath_var_CXX=no
19453 hardcode_direct_CXX=yes
19454 hardcode_direct_absolute_CXX=yes
19455 hardcode_minus_L_CXX=yes # Not in the search PATH,
19456 # but as the default
19457 # location of the library.
19459 esac
19461 case $cc_basename in
19462 CC*)
19463 # FIXME: insert proper C++ library support
19464 ld_shlibs_CXX=no
19466 aCC*)
19467 case $host_cpu in
19468 hppa*64*)
19469 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19471 ia64*)
19472 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19475 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19477 esac
19478 # Commands to make compiler produce verbose output that lists
19479 # what "hidden" libraries, object files and flags are used when
19480 # linking a shared library.
19482 # There doesn't appear to be a way to prevent this compiler from
19483 # explicitly linking system object files so we need to strip them
19484 # from the output so that they don't get included in the library
19485 # dependencies.
19486 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"'
19489 if test "$GXX" = yes; then
19490 if test $with_gnu_ld = no; then
19491 case $host_cpu in
19492 hppa*64*)
19493 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19495 ia64*)
19496 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19499 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'
19501 esac
19503 else
19504 # FIXME: insert proper C++ library support
19505 ld_shlibs_CXX=no
19508 esac
19511 interix[3-9]*)
19512 hardcode_direct_CXX=no
19513 hardcode_shlibpath_var_CXX=no
19514 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19515 export_dynamic_flag_spec_CXX='${wl}-E'
19516 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19517 # Instead, shared libraries are loaded at an image base (0x10000000 by
19518 # default) and relocated if they conflict, which is a slow very memory
19519 # consuming and fragmenting process. To avoid this, we pick a random,
19520 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19521 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19522 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'
19523 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'
19525 irix5* | irix6*)
19526 case $cc_basename in
19527 CC*)
19528 # SGI C++
19529 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'
19531 # Archives containing C++ object files must be created using
19532 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19533 # necessary to make sure instantiated templates are included
19534 # in the archive.
19535 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19538 if test "$GXX" = yes; then
19539 if test "$with_gnu_ld" = no; then
19540 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'
19541 else
19542 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'
19545 link_all_deplibs_CXX=yes
19547 esac
19548 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19549 hardcode_libdir_separator_CXX=:
19550 inherit_rpath_CXX=yes
19553 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19554 case $cc_basename in
19555 KCC*)
19556 # Kuck and Associates, Inc. (KAI) C++ Compiler
19558 # KCC will only create a shared library if the output file
19559 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19560 # to its proper name (with version) after linking.
19561 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'
19562 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'
19563 # Commands to make compiler produce verbose output that lists
19564 # what "hidden" libraries, object files and flags are used when
19565 # linking a shared library.
19567 # There doesn't appear to be a way to prevent this compiler from
19568 # explicitly linking system object files so we need to strip them
19569 # from the output so that they don't get included in the library
19570 # dependencies.
19571 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"'
19573 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19574 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19576 # Archives containing C++ object files must be created using
19577 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19578 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19580 icpc* | ecpc* )
19581 # Intel C++
19582 with_gnu_ld=yes
19583 # version 8.0 and above of icpc choke on multiply defined symbols
19584 # if we add $predep_objects and $postdep_objects, however 7.1 and
19585 # earlier do not add the objects themselves.
19586 case `$CC -V 2>&1` in
19587 *"Version 7."*)
19588 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19589 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'
19591 *) # Version 8.0 or newer
19592 tmp_idyn=
19593 case $host_cpu in
19594 ia64*) tmp_idyn=' -i_dynamic';;
19595 esac
19596 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19597 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'
19599 esac
19600 archive_cmds_need_lc_CXX=no
19601 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19602 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19603 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19605 pgCC* | pgcpp*)
19606 # Portland Group C++ compiler
19607 case `$CC -V` in
19608 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19609 prelink_cmds_CXX='tpldir=Template.dir~
19610 rm -rf $tpldir~
19611 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19612 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19613 old_archive_cmds_CXX='tpldir=Template.dir~
19614 rm -rf $tpldir~
19615 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19616 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19617 $RANLIB $oldlib'
19618 archive_cmds_CXX='tpldir=Template.dir~
19619 rm -rf $tpldir~
19620 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19621 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19622 archive_expsym_cmds_CXX='tpldir=Template.dir~
19623 rm -rf $tpldir~
19624 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19625 $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'
19627 *) # Version 6 and above use weak symbols
19628 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19629 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'
19631 esac
19633 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19634 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19635 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'
19637 cxx*)
19638 # Compaq C++
19639 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19640 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'
19642 runpath_var=LD_RUN_PATH
19643 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19644 hardcode_libdir_separator_CXX=:
19646 # Commands to make compiler produce verbose output that lists
19647 # what "hidden" libraries, object files and flags are used when
19648 # linking a shared library.
19650 # There doesn't appear to be a way to prevent this compiler from
19651 # explicitly linking system object files so we need to strip them
19652 # from the output so that they don't get included in the library
19653 # dependencies.
19654 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'
19656 xl* | mpixl* | bgxl*)
19657 # IBM XL 8.0 on PPC, with GNU ld
19658 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19659 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19660 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19661 if test "x$supports_anon_versioning" = xyes; then
19662 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19663 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19664 echo "local: *; };" >> $output_objdir/$libname.ver~
19665 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19669 case `$CC -V 2>&1 | sed 5q` in
19670 *Sun\ C*)
19671 # Sun C++ 5.9
19672 no_undefined_flag_CXX=' -zdefs'
19673 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19674 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'
19675 hardcode_libdir_flag_spec_CXX='-R$libdir'
19676 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'
19677 compiler_needs_object_CXX=yes
19679 # Not sure whether something based on
19680 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19681 # would be better.
19682 output_verbose_link_cmd='func_echo_all'
19684 # Archives containing C++ object files must be created using
19685 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19686 # necessary to make sure instantiated templates are included
19687 # in the archive.
19688 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19690 esac
19692 esac
19695 lynxos*)
19696 # FIXME: insert proper C++ library support
19697 ld_shlibs_CXX=no
19700 m88k*)
19701 # FIXME: insert proper C++ library support
19702 ld_shlibs_CXX=no
19705 mvs*)
19706 case $cc_basename in
19707 cxx*)
19708 # FIXME: insert proper C++ library support
19709 ld_shlibs_CXX=no
19712 # FIXME: insert proper C++ library support
19713 ld_shlibs_CXX=no
19715 esac
19718 netbsd*)
19719 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19720 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19721 wlarc=
19722 hardcode_libdir_flag_spec_CXX='-R$libdir'
19723 hardcode_direct_CXX=yes
19724 hardcode_shlibpath_var_CXX=no
19726 # Workaround some broken pre-1.5 toolchains
19727 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19730 *nto* | *qnx*)
19731 ld_shlibs_CXX=yes
19734 openbsd2*)
19735 # C++ shared libraries are fairly broken
19736 ld_shlibs_CXX=no
19739 openbsd*)
19740 if test -f /usr/libexec/ld.so; then
19741 hardcode_direct_CXX=yes
19742 hardcode_shlibpath_var_CXX=no
19743 hardcode_direct_absolute_CXX=yes
19744 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19745 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19746 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19747 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19748 export_dynamic_flag_spec_CXX='${wl}-E'
19749 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19751 output_verbose_link_cmd=func_echo_all
19752 else
19753 ld_shlibs_CXX=no
19757 osf3* | osf4* | osf5*)
19758 case $cc_basename in
19759 KCC*)
19760 # Kuck and Associates, Inc. (KAI) C++ Compiler
19762 # KCC will only create a shared library if the output file
19763 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19764 # to its proper name (with version) after linking.
19765 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'
19767 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19768 hardcode_libdir_separator_CXX=:
19770 # Archives containing C++ object files must be created using
19771 # the KAI C++ compiler.
19772 case $host in
19773 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19774 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19775 esac
19777 RCC*)
19778 # Rational C++ 2.4.1
19779 # FIXME: insert proper C++ library support
19780 ld_shlibs_CXX=no
19782 cxx*)
19783 case $host in
19784 osf3*)
19785 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19786 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'
19787 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19790 allow_undefined_flag_CXX=' -expect_unresolved \*'
19791 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'
19792 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19793 echo "-hidden">> $lib.exp~
19794 $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~
19795 $RM $lib.exp'
19796 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19798 esac
19800 hardcode_libdir_separator_CXX=:
19802 # Commands to make compiler produce verbose output that lists
19803 # what "hidden" libraries, object files and flags are used when
19804 # linking a shared library.
19806 # There doesn't appear to be a way to prevent this compiler from
19807 # explicitly linking system object files so we need to strip them
19808 # from the output so that they don't get included in the library
19809 # dependencies.
19810 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"'
19813 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19814 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19815 case $host in
19816 osf3*)
19817 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'
19820 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'
19822 esac
19824 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19825 hardcode_libdir_separator_CXX=:
19827 # Commands to make compiler produce verbose output that lists
19828 # what "hidden" libraries, object files and flags are used when
19829 # linking a shared library.
19830 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19832 else
19833 # FIXME: insert proper C++ library support
19834 ld_shlibs_CXX=no
19837 esac
19840 psos*)
19841 # FIXME: insert proper C++ library support
19842 ld_shlibs_CXX=no
19845 sunos4*)
19846 case $cc_basename in
19847 CC*)
19848 # Sun C++ 4.x
19849 # FIXME: insert proper C++ library support
19850 ld_shlibs_CXX=no
19852 lcc*)
19853 # Lucid
19854 # FIXME: insert proper C++ library support
19855 ld_shlibs_CXX=no
19858 # FIXME: insert proper C++ library support
19859 ld_shlibs_CXX=no
19861 esac
19864 solaris*)
19865 case $cc_basename in
19866 CC*)
19867 # Sun C++ 4.2, 5.x and Centerline C++
19868 archive_cmds_need_lc_CXX=yes
19869 no_undefined_flag_CXX=' -zdefs'
19870 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19871 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19872 $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'
19874 hardcode_libdir_flag_spec_CXX='-R$libdir'
19875 hardcode_shlibpath_var_CXX=no
19876 case $host_os in
19877 solaris2.[0-5] | solaris2.[0-5].*) ;;
19879 # The compiler driver will combine and reorder linker options,
19880 # but understands `-z linker_flag'.
19881 # Supported since Solaris 2.6 (maybe 2.5.1?)
19882 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19884 esac
19885 link_all_deplibs_CXX=yes
19887 output_verbose_link_cmd='func_echo_all'
19889 # Archives containing C++ object files must be created using
19890 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19891 # necessary to make sure instantiated templates are included
19892 # in the archive.
19893 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19895 gcx*)
19896 # Green Hills C++ Compiler
19897 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19899 # The C++ compiler must be used to create the archive.
19900 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19903 # GNU C++ compiler with Solaris linker
19904 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19905 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19906 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19907 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19908 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19909 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19911 # Commands to make compiler produce verbose output that lists
19912 # what "hidden" libraries, object files and flags are used when
19913 # linking a shared library.
19914 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19915 else
19916 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19917 # platform.
19918 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19919 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19920 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19922 # Commands to make compiler produce verbose output that lists
19923 # what "hidden" libraries, object files and flags are used when
19924 # linking a shared library.
19925 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19928 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19929 case $host_os in
19930 solaris2.[0-5] | solaris2.[0-5].*) ;;
19932 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19934 esac
19937 esac
19940 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19941 no_undefined_flag_CXX='${wl}-z,text'
19942 archive_cmds_need_lc_CXX=no
19943 hardcode_shlibpath_var_CXX=no
19944 runpath_var='LD_RUN_PATH'
19946 case $cc_basename in
19947 CC*)
19948 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19949 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19952 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19953 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19955 esac
19958 sysv5* | sco3.2v5* | sco5v6*)
19959 # Note: We can NOT use -z defs as we might desire, because we do not
19960 # link with -lc, and that would cause any symbols used from libc to
19961 # always be unresolved, which means just about no library would
19962 # ever link correctly. If we're not using GNU ld we use -z text
19963 # though, which does catch some bad symbols but isn't as heavy-handed
19964 # as -z defs.
19965 no_undefined_flag_CXX='${wl}-z,text'
19966 allow_undefined_flag_CXX='${wl}-z,nodefs'
19967 archive_cmds_need_lc_CXX=no
19968 hardcode_shlibpath_var_CXX=no
19969 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19970 hardcode_libdir_separator_CXX=':'
19971 link_all_deplibs_CXX=yes
19972 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19973 runpath_var='LD_RUN_PATH'
19975 case $cc_basename in
19976 CC*)
19977 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19978 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19979 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19980 '"$old_archive_cmds_CXX"
19981 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19982 '"$reload_cmds_CXX"
19985 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19986 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19988 esac
19991 tandem*)
19992 case $cc_basename in
19993 NCC*)
19994 # NonStop-UX NCC 3.20
19995 # FIXME: insert proper C++ library support
19996 ld_shlibs_CXX=no
19999 # FIXME: insert proper C++ library support
20000 ld_shlibs_CXX=no
20002 esac
20005 vxworks*)
20006 # FIXME: insert proper C++ library support
20007 ld_shlibs_CXX=no
20011 # FIXME: insert proper C++ library support
20012 ld_shlibs_CXX=no
20014 esac
20016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20017 $as_echo "$ld_shlibs_CXX" >&6; }
20018 test "$ld_shlibs_CXX" = no && can_build_shared=no
20020 GCC_CXX="$GXX"
20021 LD_CXX="$LD"
20023 ## CAVEAT EMPTOR:
20024 ## There is no encapsulation within the following macros, do not change
20025 ## the running order or otherwise move them around unless you know exactly
20026 ## what you are doing...
20027 # Dependencies to place before and after the object being linked:
20028 predep_objects_CXX=
20029 postdep_objects_CXX=
20030 predeps_CXX=
20031 postdeps_CXX=
20032 compiler_lib_search_path_CXX=
20034 cat > conftest.$ac_ext <<_LT_EOF
20035 class Foo
20037 public:
20038 Foo (void) { a = 0; }
20039 private:
20040 int a;
20042 _LT_EOF
20044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20045 (eval $ac_compile) 2>&5
20046 ac_status=$?
20047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20048 test $ac_status = 0; }; then
20049 # Parse the compiler output and extract the necessary
20050 # objects, libraries and library flags.
20052 # Sentinel used to keep track of whether or not we are before
20053 # the conftest object file.
20054 pre_test_object_deps_done=no
20056 for p in `eval "$output_verbose_link_cmd"`; do
20057 case $p in
20059 -L* | -R* | -l*)
20060 # Some compilers place space between "-{L,R}" and the path.
20061 # Remove the space.
20062 if test $p = "-L" ||
20063 test $p = "-R"; then
20064 prev=$p
20065 continue
20066 else
20067 prev=
20070 if test "$pre_test_object_deps_done" = no; then
20071 case $p in
20072 -L* | -R*)
20073 # Internal compiler library paths should come after those
20074 # provided the user. The postdeps already come after the
20075 # user supplied libs so there is no need to process them.
20076 if test -z "$compiler_lib_search_path_CXX"; then
20077 compiler_lib_search_path_CXX="${prev}${p}"
20078 else
20079 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20082 # The "-l" case would never come before the object being
20083 # linked, so don't bother handling this case.
20084 esac
20085 else
20086 if test -z "$postdeps_CXX"; then
20087 postdeps_CXX="${prev}${p}"
20088 else
20089 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20094 *.$objext)
20095 # This assumes that the test object file only shows up
20096 # once in the compiler output.
20097 if test "$p" = "conftest.$objext"; then
20098 pre_test_object_deps_done=yes
20099 continue
20102 if test "$pre_test_object_deps_done" = no; then
20103 if test -z "$predep_objects_CXX"; then
20104 predep_objects_CXX="$p"
20105 else
20106 predep_objects_CXX="$predep_objects_CXX $p"
20108 else
20109 if test -z "$postdep_objects_CXX"; then
20110 postdep_objects_CXX="$p"
20111 else
20112 postdep_objects_CXX="$postdep_objects_CXX $p"
20117 *) ;; # Ignore the rest.
20119 esac
20120 done
20122 # Clean up.
20123 rm -f a.out a.exe
20124 else
20125 echo "libtool.m4: error: problem compiling CXX test program"
20128 $RM -f confest.$objext
20130 # PORTME: override above test on systems where it is broken
20131 case $host_os in
20132 interix[3-9]*)
20133 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20134 # hack all around it, let's just trust "g++" to DTRT.
20135 predep_objects_CXX=
20136 postdep_objects_CXX=
20137 postdeps_CXX=
20140 linux*)
20141 case `$CC -V 2>&1 | sed 5q` in
20142 *Sun\ C*)
20143 # Sun C++ 5.9
20145 # The more standards-conforming stlport4 library is
20146 # incompatible with the Cstd library. Avoid specifying
20147 # it if it's in CXXFLAGS. Ignore libCrun as
20148 # -library=stlport4 depends on it.
20149 case " $CXX $CXXFLAGS " in
20150 *" -library=stlport4 "*)
20151 solaris_use_stlport4=yes
20153 esac
20155 if test "$solaris_use_stlport4" != yes; then
20156 postdeps_CXX='-library=Cstd -library=Crun'
20159 esac
20162 solaris*)
20163 case $cc_basename in
20164 CC*)
20165 # The more standards-conforming stlport4 library is
20166 # incompatible with the Cstd library. Avoid specifying
20167 # it if it's in CXXFLAGS. Ignore libCrun as
20168 # -library=stlport4 depends on it.
20169 case " $CXX $CXXFLAGS " in
20170 *" -library=stlport4 "*)
20171 solaris_use_stlport4=yes
20173 esac
20175 # Adding this requires a known-good setup of shared libraries for
20176 # Sun compiler versions before 5.6, else PIC objects from an old
20177 # archive will be linked into the output, leading to subtle bugs.
20178 if test "$solaris_use_stlport4" != yes; then
20179 postdeps_CXX='-library=Cstd -library=Crun'
20182 esac
20184 esac
20187 case " $postdeps_CXX " in
20188 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20189 esac
20190 compiler_lib_search_dirs_CXX=
20191 if test -n "${compiler_lib_search_path_CXX}"; then
20192 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20225 lt_prog_compiler_wl_CXX=
20226 lt_prog_compiler_pic_CXX=
20227 lt_prog_compiler_static_CXX=
20229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20230 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20232 # C++ specific cases for pic, static, wl, etc.
20233 if test "$GXX" = yes; then
20234 lt_prog_compiler_wl_CXX='-Wl,'
20235 lt_prog_compiler_static_CXX='-static'
20237 case $host_os in
20238 aix*)
20239 # All AIX code is PIC.
20240 if test "$host_cpu" = ia64; then
20241 # AIX 5 now supports IA64 processor
20242 lt_prog_compiler_static_CXX='-Bstatic'
20244 lt_prog_compiler_pic_CXX='-fPIC'
20247 amigaos*)
20248 case $host_cpu in
20249 powerpc)
20250 # see comment about AmigaOS4 .so support
20251 lt_prog_compiler_pic_CXX='-fPIC'
20253 m68k)
20254 # FIXME: we need at least 68020 code to build shared libraries, but
20255 # adding the `-m68020' flag to GCC prevents building anything better,
20256 # like `-m68040'.
20257 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20259 esac
20262 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20263 # PIC is the default for these OSes.
20265 mingw* | cygwin* | os2* | pw32* | cegcc*)
20266 # This hack is so that the source file can tell whether it is being
20267 # built for inclusion in a dll (and should export symbols for example).
20268 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20269 # (--disable-auto-import) libraries
20270 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20272 darwin* | rhapsody*)
20273 # PIC is the default on this platform
20274 # Common symbols not allowed in MH_DYLIB files
20275 lt_prog_compiler_pic_CXX='-fno-common'
20277 *djgpp*)
20278 # DJGPP does not support shared libraries at all
20279 lt_prog_compiler_pic_CXX=
20281 haiku*)
20282 # PIC is the default for Haiku.
20283 # The "-static" flag exists, but is broken.
20284 lt_prog_compiler_static_CXX=
20286 interix[3-9]*)
20287 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20288 # Instead, we relocate shared libraries at runtime.
20290 sysv4*MP*)
20291 if test -d /usr/nec; then
20292 lt_prog_compiler_pic_CXX=-Kconform_pic
20295 hpux*)
20296 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20297 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20298 # sets the default TLS model and affects inlining.
20299 case $host_cpu in
20300 hppa*64*)
20303 lt_prog_compiler_pic_CXX='-fPIC'
20305 esac
20307 *qnx* | *nto*)
20308 # QNX uses GNU C++, but need to define -shared option too, otherwise
20309 # it will coredump.
20310 lt_prog_compiler_pic_CXX='-fPIC -shared'
20313 lt_prog_compiler_pic_CXX='-fPIC'
20315 esac
20316 else
20317 case $host_os in
20318 aix[4-9]*)
20319 # All AIX code is PIC.
20320 if test "$host_cpu" = ia64; then
20321 # AIX 5 now supports IA64 processor
20322 lt_prog_compiler_static_CXX='-Bstatic'
20323 else
20324 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20327 chorus*)
20328 case $cc_basename in
20329 cxch68*)
20330 # Green Hills C++ Compiler
20331 # _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"
20333 esac
20335 dgux*)
20336 case $cc_basename in
20337 ec++*)
20338 lt_prog_compiler_pic_CXX='-KPIC'
20340 ghcx*)
20341 # Green Hills C++ Compiler
20342 lt_prog_compiler_pic_CXX='-pic'
20346 esac
20348 freebsd* | dragonfly*)
20349 # FreeBSD uses GNU C++
20351 hpux9* | hpux10* | hpux11*)
20352 case $cc_basename in
20353 CC*)
20354 lt_prog_compiler_wl_CXX='-Wl,'
20355 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20356 if test "$host_cpu" != ia64; then
20357 lt_prog_compiler_pic_CXX='+Z'
20360 aCC*)
20361 lt_prog_compiler_wl_CXX='-Wl,'
20362 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20363 case $host_cpu in
20364 hppa*64*|ia64*)
20365 # +Z the default
20368 lt_prog_compiler_pic_CXX='+Z'
20370 esac
20374 esac
20376 interix*)
20377 # This is c89, which is MS Visual C++ (no shared libs)
20378 # Anyone wants to do a port?
20380 irix5* | irix6* | nonstopux*)
20381 case $cc_basename in
20382 CC*)
20383 lt_prog_compiler_wl_CXX='-Wl,'
20384 lt_prog_compiler_static_CXX='-non_shared'
20385 # CC pic flag -KPIC is the default.
20389 esac
20391 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20392 case $cc_basename in
20393 KCC*)
20394 # KAI C++ Compiler
20395 lt_prog_compiler_wl_CXX='--backend -Wl,'
20396 lt_prog_compiler_pic_CXX='-fPIC'
20398 ecpc* )
20399 # old Intel C++ for x86_64 which still supported -KPIC.
20400 lt_prog_compiler_wl_CXX='-Wl,'
20401 lt_prog_compiler_pic_CXX='-KPIC'
20402 lt_prog_compiler_static_CXX='-static'
20404 icpc* )
20405 # Intel C++, used to be incompatible with GCC.
20406 # ICC 10 doesn't accept -KPIC any more.
20407 lt_prog_compiler_wl_CXX='-Wl,'
20408 lt_prog_compiler_pic_CXX='-fPIC'
20409 lt_prog_compiler_static_CXX='-static'
20411 pgCC* | pgcpp*)
20412 # Portland Group C++ compiler
20413 lt_prog_compiler_wl_CXX='-Wl,'
20414 lt_prog_compiler_pic_CXX='-fpic'
20415 lt_prog_compiler_static_CXX='-Bstatic'
20417 cxx*)
20418 # Compaq C++
20419 # Make sure the PIC flag is empty. It appears that all Alpha
20420 # Linux and Compaq Tru64 Unix objects are PIC.
20421 lt_prog_compiler_pic_CXX=
20422 lt_prog_compiler_static_CXX='-non_shared'
20424 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20425 # IBM XL 8.0, 9.0 on PPC and BlueGene
20426 lt_prog_compiler_wl_CXX='-Wl,'
20427 lt_prog_compiler_pic_CXX='-qpic'
20428 lt_prog_compiler_static_CXX='-qstaticlink'
20431 case `$CC -V 2>&1 | sed 5q` in
20432 *Sun\ C*)
20433 # Sun C++ 5.9
20434 lt_prog_compiler_pic_CXX='-KPIC'
20435 lt_prog_compiler_static_CXX='-Bstatic'
20436 lt_prog_compiler_wl_CXX='-Qoption ld '
20438 esac
20440 esac
20442 lynxos*)
20444 m88k*)
20446 mvs*)
20447 case $cc_basename in
20448 cxx*)
20449 lt_prog_compiler_pic_CXX='-W c,exportall'
20453 esac
20455 netbsd*)
20457 *qnx* | *nto*)
20458 # QNX uses GNU C++, but need to define -shared option too, otherwise
20459 # it will coredump.
20460 lt_prog_compiler_pic_CXX='-fPIC -shared'
20462 osf3* | osf4* | osf5*)
20463 case $cc_basename in
20464 KCC*)
20465 lt_prog_compiler_wl_CXX='--backend -Wl,'
20467 RCC*)
20468 # Rational C++ 2.4.1
20469 lt_prog_compiler_pic_CXX='-pic'
20471 cxx*)
20472 # Digital/Compaq C++
20473 lt_prog_compiler_wl_CXX='-Wl,'
20474 # Make sure the PIC flag is empty. It appears that all Alpha
20475 # Linux and Compaq Tru64 Unix objects are PIC.
20476 lt_prog_compiler_pic_CXX=
20477 lt_prog_compiler_static_CXX='-non_shared'
20481 esac
20483 psos*)
20485 solaris*)
20486 case $cc_basename in
20487 CC*)
20488 # Sun C++ 4.2, 5.x and Centerline C++
20489 lt_prog_compiler_pic_CXX='-KPIC'
20490 lt_prog_compiler_static_CXX='-Bstatic'
20491 lt_prog_compiler_wl_CXX='-Qoption ld '
20493 gcx*)
20494 # Green Hills C++ Compiler
20495 lt_prog_compiler_pic_CXX='-PIC'
20499 esac
20501 sunos4*)
20502 case $cc_basename in
20503 CC*)
20504 # Sun C++ 4.x
20505 lt_prog_compiler_pic_CXX='-pic'
20506 lt_prog_compiler_static_CXX='-Bstatic'
20508 lcc*)
20509 # Lucid
20510 lt_prog_compiler_pic_CXX='-pic'
20514 esac
20516 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20517 case $cc_basename in
20518 CC*)
20519 lt_prog_compiler_wl_CXX='-Wl,'
20520 lt_prog_compiler_pic_CXX='-KPIC'
20521 lt_prog_compiler_static_CXX='-Bstatic'
20523 esac
20525 tandem*)
20526 case $cc_basename in
20527 NCC*)
20528 # NonStop-UX NCC 3.20
20529 lt_prog_compiler_pic_CXX='-KPIC'
20533 esac
20535 vxworks*)
20538 lt_prog_compiler_can_build_shared_CXX=no
20540 esac
20543 case $host_os in
20544 # For platforms which do not support PIC, -DPIC is meaningless:
20545 *djgpp*)
20546 lt_prog_compiler_pic_CXX=
20549 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20551 esac
20552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20553 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20558 # Check to make sure the PIC flag actually works.
20560 if test -n "$lt_prog_compiler_pic_CXX"; then
20561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20562 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20563 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20564 $as_echo_n "(cached) " >&6
20565 else
20566 lt_cv_prog_compiler_pic_works_CXX=no
20567 ac_outfile=conftest.$ac_objext
20568 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20569 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20570 # Insert the option either (1) after the last *FLAGS variable, or
20571 # (2) before a word containing "conftest.", or (3) at the end.
20572 # Note that $ac_compile itself does not contain backslashes and begins
20573 # with a dollar sign (not a hyphen), so the echo should work correctly.
20574 # The option is referenced via a variable to avoid confusing sed.
20575 lt_compile=`echo "$ac_compile" | $SED \
20576 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20577 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20578 -e 's:$: $lt_compiler_flag:'`
20579 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20580 (eval "$lt_compile" 2>conftest.err)
20581 ac_status=$?
20582 cat conftest.err >&5
20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 if (exit $ac_status) && test -s "$ac_outfile"; then
20585 # The compiler can only warn and ignore the option if not recognized
20586 # So say no if there are warnings other than the usual output.
20587 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20588 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20589 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20590 lt_cv_prog_compiler_pic_works_CXX=yes
20593 $RM conftest*
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20597 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20599 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20600 case $lt_prog_compiler_pic_CXX in
20601 "" | " "*) ;;
20602 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20603 esac
20604 else
20605 lt_prog_compiler_pic_CXX=
20606 lt_prog_compiler_can_build_shared_CXX=no
20614 # Check to make sure the static flag actually works.
20616 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20618 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20619 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20620 $as_echo_n "(cached) " >&6
20621 else
20622 lt_cv_prog_compiler_static_works_CXX=no
20623 save_LDFLAGS="$LDFLAGS"
20624 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20625 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20626 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20627 # The linker can only warn and ignore the option if not recognized
20628 # So say no if there are warnings
20629 if test -s conftest.err; then
20630 # Append any errors to the config.log.
20631 cat conftest.err 1>&5
20632 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20633 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20634 if diff conftest.exp conftest.er2 >/dev/null; then
20635 lt_cv_prog_compiler_static_works_CXX=yes
20637 else
20638 lt_cv_prog_compiler_static_works_CXX=yes
20641 $RM -r conftest*
20642 LDFLAGS="$save_LDFLAGS"
20645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20646 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20648 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20650 else
20651 lt_prog_compiler_static_CXX=
20657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20658 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20659 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20660 $as_echo_n "(cached) " >&6
20661 else
20662 lt_cv_prog_compiler_c_o_CXX=no
20663 $RM -r conftest 2>/dev/null
20664 mkdir conftest
20665 cd conftest
20666 mkdir out
20667 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20669 lt_compiler_flag="-o out/conftest2.$ac_objext"
20670 # Insert the option either (1) after the last *FLAGS variable, or
20671 # (2) before a word containing "conftest.", or (3) at the end.
20672 # Note that $ac_compile itself does not contain backslashes and begins
20673 # with a dollar sign (not a hyphen), so the echo should work correctly.
20674 lt_compile=`echo "$ac_compile" | $SED \
20675 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20676 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20677 -e 's:$: $lt_compiler_flag:'`
20678 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20679 (eval "$lt_compile" 2>out/conftest.err)
20680 ac_status=$?
20681 cat out/conftest.err >&5
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20684 then
20685 # The compiler can only warn and ignore the option if not recognized
20686 # So say no if there are warnings
20687 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20688 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20689 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20690 lt_cv_prog_compiler_c_o_CXX=yes
20693 chmod u+w . 2>&5
20694 $RM conftest*
20695 # SGI C++ compiler will create directory out/ii_files/ for
20696 # template instantiation
20697 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20698 $RM out/* && rmdir out
20699 cd ..
20700 $RM -r conftest
20701 $RM conftest*
20704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20705 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20710 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20711 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20712 $as_echo_n "(cached) " >&6
20713 else
20714 lt_cv_prog_compiler_c_o_CXX=no
20715 $RM -r conftest 2>/dev/null
20716 mkdir conftest
20717 cd conftest
20718 mkdir out
20719 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20721 lt_compiler_flag="-o out/conftest2.$ac_objext"
20722 # Insert the option either (1) after the last *FLAGS variable, or
20723 # (2) before a word containing "conftest.", or (3) at the end.
20724 # Note that $ac_compile itself does not contain backslashes and begins
20725 # with a dollar sign (not a hyphen), so the echo should work correctly.
20726 lt_compile=`echo "$ac_compile" | $SED \
20727 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20728 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20729 -e 's:$: $lt_compiler_flag:'`
20730 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20731 (eval "$lt_compile" 2>out/conftest.err)
20732 ac_status=$?
20733 cat out/conftest.err >&5
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20736 then
20737 # The compiler can only warn and ignore the option if not recognized
20738 # So say no if there are warnings
20739 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20740 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20741 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20742 lt_cv_prog_compiler_c_o_CXX=yes
20745 chmod u+w . 2>&5
20746 $RM conftest*
20747 # SGI C++ compiler will create directory out/ii_files/ for
20748 # template instantiation
20749 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20750 $RM out/* && rmdir out
20751 cd ..
20752 $RM -r conftest
20753 $RM conftest*
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20757 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20762 hard_links="nottested"
20763 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20764 # do not overwrite the value of need_locks provided by the user
20765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20766 $as_echo_n "checking if we can lock with hard links... " >&6; }
20767 hard_links=yes
20768 $RM conftest*
20769 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20770 touch conftest.a
20771 ln conftest.a conftest.b 2>&5 || hard_links=no
20772 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20774 $as_echo "$hard_links" >&6; }
20775 if test "$hard_links" = no; then
20776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20777 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20778 need_locks=warn
20780 else
20781 need_locks=no
20786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20787 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20789 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20790 case $host_os in
20791 aix[4-9]*)
20792 # If we're using GNU nm, then we don't want the "-C" option.
20793 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20794 # Also, AIX nm treats weak defined symbols like other global defined
20795 # symbols, whereas GNU nm marks them as "W".
20796 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20797 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'
20798 else
20799 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'
20802 pw32*)
20803 export_symbols_cmds_CXX="$ltdll_cmds"
20805 cygwin* | mingw* | cegcc*)
20806 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'
20809 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20811 esac
20812 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20815 $as_echo "$ld_shlibs_CXX" >&6; }
20816 test "$ld_shlibs_CXX" = no && can_build_shared=no
20818 with_gnu_ld_CXX=$with_gnu_ld
20826 # Do we need to explicitly link libc?
20828 case "x$archive_cmds_need_lc_CXX" in
20829 x|xyes)
20830 # Assume -lc should be added
20831 archive_cmds_need_lc_CXX=yes
20833 if test "$enable_shared" = yes && test "$GCC" = yes; then
20834 case $archive_cmds_CXX in
20835 *'~'*)
20836 # FIXME: we may have to deal with multi-command sequences.
20838 '$CC '*)
20839 # Test whether the compiler implicitly links with -lc since on some
20840 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20841 # to ld, don't add -lc before -lgcc.
20842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20843 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20844 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20845 $as_echo_n "(cached) " >&6
20846 else
20847 $RM conftest*
20848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20851 (eval $ac_compile) 2>&5
20852 ac_status=$?
20853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20854 test $ac_status = 0; } 2>conftest.err; then
20855 soname=conftest
20856 lib=conftest
20857 libobjs=conftest.$ac_objext
20858 deplibs=
20859 wl=$lt_prog_compiler_wl_CXX
20860 pic_flag=$lt_prog_compiler_pic_CXX
20861 compiler_flags=-v
20862 linker_flags=-v
20863 verstring=
20864 output_objdir=.
20865 libname=conftest
20866 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20867 allow_undefined_flag_CXX=
20868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20869 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20870 ac_status=$?
20871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20872 test $ac_status = 0; }
20873 then
20874 lt_cv_archive_cmds_need_lc_CXX=no
20875 else
20876 lt_cv_archive_cmds_need_lc_CXX=yes
20878 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20879 else
20880 cat conftest.err 1>&5
20882 $RM conftest*
20885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20886 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20887 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20889 esac
20892 esac
20957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20958 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20960 library_names_spec=
20961 libname_spec='lib$name'
20962 soname_spec=
20963 shrext_cmds=".so"
20964 postinstall_cmds=
20965 postuninstall_cmds=
20966 finish_cmds=
20967 finish_eval=
20968 shlibpath_var=
20969 shlibpath_overrides_runpath=unknown
20970 version_type=none
20971 dynamic_linker="$host_os ld.so"
20972 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20973 need_lib_prefix=unknown
20974 hardcode_into_libs=no
20976 # when you set need_version to no, make sure it does not cause -set_version
20977 # flags to be left without arguments
20978 need_version=unknown
20980 case $host_os in
20981 aix3*)
20982 version_type=linux
20983 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20984 shlibpath_var=LIBPATH
20986 # AIX 3 has no versioning support, so we append a major version to the name.
20987 soname_spec='${libname}${release}${shared_ext}$major'
20990 aix[4-9]*)
20991 version_type=linux
20992 need_lib_prefix=no
20993 need_version=no
20994 hardcode_into_libs=yes
20995 if test "$host_cpu" = ia64; then
20996 # AIX 5 supports IA64
20997 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20998 shlibpath_var=LD_LIBRARY_PATH
20999 else
21000 # With GCC up to 2.95.x, collect2 would create an import file
21001 # for dependence libraries. The import file would start with
21002 # the line `#! .'. This would cause the generated library to
21003 # depend on `.', always an invalid library. This was fixed in
21004 # development snapshots of GCC prior to 3.0.
21005 case $host_os in
21006 aix4 | aix4.[01] | aix4.[01].*)
21007 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21008 echo ' yes '
21009 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21011 else
21012 can_build_shared=no
21015 esac
21016 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21017 # soname into executable. Probably we can add versioning support to
21018 # collect2, so additional links can be useful in future.
21019 if test "$aix_use_runtimelinking" = yes; then
21020 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21021 # instead of lib<name>.a to let people know that these are not
21022 # typical AIX shared libraries.
21023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21024 else
21025 # We preserve .a as extension for shared libraries through AIX4.2
21026 # and later when we are not doing run time linking.
21027 library_names_spec='${libname}${release}.a $libname.a'
21028 soname_spec='${libname}${release}${shared_ext}$major'
21030 shlibpath_var=LIBPATH
21034 amigaos*)
21035 case $host_cpu in
21036 powerpc)
21037 # Since July 2007 AmigaOS4 officially supports .so libraries.
21038 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21041 m68k)
21042 library_names_spec='$libname.ixlibrary $libname.a'
21043 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21044 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'
21046 esac
21049 beos*)
21050 library_names_spec='${libname}${shared_ext}'
21051 dynamic_linker="$host_os ld.so"
21052 shlibpath_var=LIBRARY_PATH
21055 bsdi[45]*)
21056 version_type=linux
21057 need_version=no
21058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21059 soname_spec='${libname}${release}${shared_ext}$major'
21060 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21061 shlibpath_var=LD_LIBRARY_PATH
21062 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21063 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21064 # the default ld.so.conf also contains /usr/contrib/lib and
21065 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21066 # libtool to hard-code these into programs
21069 cygwin* | mingw* | pw32* | cegcc*)
21070 version_type=windows
21071 shrext_cmds=".dll"
21072 need_version=no
21073 need_lib_prefix=no
21075 case $GCC,$host_os in
21076 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21077 library_names_spec='$libname.dll.a'
21078 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21079 postinstall_cmds='base_file=`basename \${file}`~
21080 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21081 dldir=$destdir/`dirname \$dlpath`~
21082 test -d \$dldir || mkdir -p \$dldir~
21083 $install_prog $dir/$dlname \$dldir/$dlname~
21084 chmod a+x \$dldir/$dlname~
21085 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21086 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21088 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21089 dlpath=$dir/\$dldll~
21090 $RM \$dlpath'
21091 shlibpath_overrides_runpath=yes
21093 case $host_os in
21094 cygwin*)
21095 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21096 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21099 mingw* | cegcc*)
21100 # MinGW DLLs use traditional 'lib' prefix
21101 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21103 pw32*)
21104 # pw32 DLLs use 'pw' prefix rather than 'lib'
21105 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21107 esac
21111 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21113 esac
21114 dynamic_linker='Win32 ld.exe'
21115 # FIXME: first we should search . and the directory the executable is in
21116 shlibpath_var=PATH
21119 darwin* | rhapsody*)
21120 dynamic_linker="$host_os dyld"
21121 version_type=darwin
21122 need_lib_prefix=no
21123 need_version=no
21124 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21125 soname_spec='${libname}${release}${major}$shared_ext'
21126 shlibpath_overrides_runpath=yes
21127 shlibpath_var=DYLD_LIBRARY_PATH
21128 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21130 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21133 dgux*)
21134 version_type=linux
21135 need_lib_prefix=no
21136 need_version=no
21137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21138 soname_spec='${libname}${release}${shared_ext}$major'
21139 shlibpath_var=LD_LIBRARY_PATH
21142 freebsd* | dragonfly*)
21143 # DragonFly does not have aout. When/if they implement a new
21144 # versioning mechanism, adjust this.
21145 if test -x /usr/bin/objformat; then
21146 objformat=`/usr/bin/objformat`
21147 else
21148 case $host_os in
21149 freebsd[23].*) objformat=aout ;;
21150 *) objformat=elf ;;
21151 esac
21153 version_type=freebsd-$objformat
21154 case $version_type in
21155 freebsd-elf*)
21156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21157 need_version=no
21158 need_lib_prefix=no
21160 freebsd-*)
21161 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21162 need_version=yes
21164 esac
21165 shlibpath_var=LD_LIBRARY_PATH
21166 case $host_os in
21167 freebsd2.*)
21168 shlibpath_overrides_runpath=yes
21170 freebsd3.[01]* | freebsdelf3.[01]*)
21171 shlibpath_overrides_runpath=yes
21172 hardcode_into_libs=yes
21174 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21175 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21176 shlibpath_overrides_runpath=no
21177 hardcode_into_libs=yes
21179 *) # from 4.6 on, and DragonFly
21180 shlibpath_overrides_runpath=yes
21181 hardcode_into_libs=yes
21183 esac
21186 gnu*)
21187 version_type=linux
21188 need_lib_prefix=no
21189 need_version=no
21190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21191 soname_spec='${libname}${release}${shared_ext}$major'
21192 shlibpath_var=LD_LIBRARY_PATH
21193 hardcode_into_libs=yes
21196 haiku*)
21197 version_type=linux
21198 need_lib_prefix=no
21199 need_version=no
21200 dynamic_linker="$host_os runtime_loader"
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=LIBRARY_PATH
21204 shlibpath_overrides_runpath=yes
21205 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21206 hardcode_into_libs=yes
21209 hpux9* | hpux10* | hpux11*)
21210 # Give a soname corresponding to the major version so that dld.sl refuses to
21211 # link against other versions.
21212 version_type=sunos
21213 need_lib_prefix=no
21214 need_version=no
21215 case $host_cpu in
21216 ia64*)
21217 shrext_cmds='.so'
21218 hardcode_into_libs=yes
21219 dynamic_linker="$host_os dld.so"
21220 shlibpath_var=LD_LIBRARY_PATH
21221 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21223 soname_spec='${libname}${release}${shared_ext}$major'
21224 if test "X$HPUX_IA64_MODE" = X32; then
21225 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21226 else
21227 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21229 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21231 hppa*64*)
21232 shrext_cmds='.sl'
21233 hardcode_into_libs=yes
21234 dynamic_linker="$host_os dld.sl"
21235 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21236 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21238 soname_spec='${libname}${release}${shared_ext}$major'
21239 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21240 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21243 shrext_cmds='.sl'
21244 dynamic_linker="$host_os dld.sl"
21245 shlibpath_var=SHLIB_PATH
21246 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21248 soname_spec='${libname}${release}${shared_ext}$major'
21250 esac
21251 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21252 postinstall_cmds='chmod 555 $lib'
21253 # or fails outright, so override atomically:
21254 install_override_mode=555
21257 interix[3-9]*)
21258 version_type=linux
21259 need_lib_prefix=no
21260 need_version=no
21261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21262 soname_spec='${libname}${release}${shared_ext}$major'
21263 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21264 shlibpath_var=LD_LIBRARY_PATH
21265 shlibpath_overrides_runpath=no
21266 hardcode_into_libs=yes
21269 irix5* | irix6* | nonstopux*)
21270 case $host_os in
21271 nonstopux*) version_type=nonstopux ;;
21273 if test "$lt_cv_prog_gnu_ld" = yes; then
21274 version_type=linux
21275 else
21276 version_type=irix
21277 fi ;;
21278 esac
21279 need_lib_prefix=no
21280 need_version=no
21281 soname_spec='${libname}${release}${shared_ext}$major'
21282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21283 case $host_os in
21284 irix5* | nonstopux*)
21285 libsuff= shlibsuff=
21288 case $LD in # libtool.m4 will add one of these switches to LD
21289 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21290 libsuff= shlibsuff= libmagic=32-bit;;
21291 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21292 libsuff=32 shlibsuff=N32 libmagic=N32;;
21293 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21294 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21295 *) libsuff= shlibsuff= libmagic=never-match;;
21296 esac
21298 esac
21299 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21300 shlibpath_overrides_runpath=no
21301 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21302 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21303 hardcode_into_libs=yes
21306 # No shared lib support for Linux oldld, aout, or coff.
21307 linux*oldld* | linux*aout* | linux*coff*)
21308 dynamic_linker=no
21311 # This must be Linux ELF.
21312 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21313 version_type=linux
21314 need_lib_prefix=no
21315 need_version=no
21316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21317 soname_spec='${libname}${release}${shared_ext}$major'
21318 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21319 shlibpath_var=LD_LIBRARY_PATH
21320 shlibpath_overrides_runpath=no
21322 # Some binutils ld are patched to set DT_RUNPATH
21323 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21324 $as_echo_n "(cached) " >&6
21325 else
21326 lt_cv_shlibpath_overrides_runpath=no
21327 save_LDFLAGS=$LDFLAGS
21328 save_libdir=$libdir
21329 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21330 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21332 /* end confdefs.h. */
21335 main ()
21339 return 0;
21341 _ACEOF
21342 if ac_fn_cxx_try_link "$LINENO"; then :
21343 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21344 lt_cv_shlibpath_overrides_runpath=yes
21347 rm -f core conftest.err conftest.$ac_objext \
21348 conftest$ac_exeext conftest.$ac_ext
21349 LDFLAGS=$save_LDFLAGS
21350 libdir=$save_libdir
21354 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21356 # This implies no fast_install, which is unacceptable.
21357 # Some rework will be needed to allow for fast_install
21358 # before this can be enabled.
21359 hardcode_into_libs=yes
21361 # Append ld.so.conf contents to the search path
21362 if test -f /etc/ld.so.conf; then
21363 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' ' '`
21364 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21367 # We used to test for /lib/ld.so.1 and disable shared libraries on
21368 # powerpc, because MkLinux only supported shared libraries with the
21369 # GNU dynamic linker. Since this was broken with cross compilers,
21370 # most powerpc-linux boxes support dynamic linking these days and
21371 # people can always --disable-shared, the test was removed, and we
21372 # assume the GNU/Linux dynamic linker is in use.
21373 dynamic_linker='GNU/Linux ld.so'
21376 netbsd*)
21377 version_type=sunos
21378 need_lib_prefix=no
21379 need_version=no
21380 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21383 dynamic_linker='NetBSD (a.out) ld.so'
21384 else
21385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21386 soname_spec='${libname}${release}${shared_ext}$major'
21387 dynamic_linker='NetBSD ld.elf_so'
21389 shlibpath_var=LD_LIBRARY_PATH
21390 shlibpath_overrides_runpath=yes
21391 hardcode_into_libs=yes
21394 newsos6)
21395 version_type=linux
21396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21397 shlibpath_var=LD_LIBRARY_PATH
21398 shlibpath_overrides_runpath=yes
21401 *nto* | *qnx*)
21402 version_type=qnx
21403 need_lib_prefix=no
21404 need_version=no
21405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21406 soname_spec='${libname}${release}${shared_ext}$major'
21407 shlibpath_var=LD_LIBRARY_PATH
21408 shlibpath_overrides_runpath=no
21409 hardcode_into_libs=yes
21410 dynamic_linker='ldqnx.so'
21413 openbsd*)
21414 version_type=sunos
21415 sys_lib_dlsearch_path_spec="/usr/lib"
21416 need_lib_prefix=no
21417 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21418 case $host_os in
21419 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21420 *) need_version=no ;;
21421 esac
21422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21423 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21424 shlibpath_var=LD_LIBRARY_PATH
21425 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21426 case $host_os in
21427 openbsd2.[89] | openbsd2.[89].*)
21428 shlibpath_overrides_runpath=no
21431 shlibpath_overrides_runpath=yes
21433 esac
21434 else
21435 shlibpath_overrides_runpath=yes
21439 os2*)
21440 libname_spec='$name'
21441 shrext_cmds=".dll"
21442 need_lib_prefix=no
21443 library_names_spec='$libname${shared_ext} $libname.a'
21444 dynamic_linker='OS/2 ld.exe'
21445 shlibpath_var=LIBPATH
21448 osf3* | osf4* | osf5*)
21449 version_type=osf
21450 need_lib_prefix=no
21451 need_version=no
21452 soname_spec='${libname}${release}${shared_ext}$major'
21453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21454 shlibpath_var=LD_LIBRARY_PATH
21455 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21456 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21459 rdos*)
21460 dynamic_linker=no
21463 solaris*)
21464 version_type=linux
21465 need_lib_prefix=no
21466 need_version=no
21467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21468 soname_spec='${libname}${release}${shared_ext}$major'
21469 shlibpath_var=LD_LIBRARY_PATH
21470 shlibpath_overrides_runpath=yes
21471 hardcode_into_libs=yes
21472 # ldd complains unless libraries are executable
21473 postinstall_cmds='chmod +x $lib'
21476 sunos4*)
21477 version_type=sunos
21478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21479 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21480 shlibpath_var=LD_LIBRARY_PATH
21481 shlibpath_overrides_runpath=yes
21482 if test "$with_gnu_ld" = yes; then
21483 need_lib_prefix=no
21485 need_version=yes
21488 sysv4 | sysv4.3*)
21489 version_type=linux
21490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21491 soname_spec='${libname}${release}${shared_ext}$major'
21492 shlibpath_var=LD_LIBRARY_PATH
21493 case $host_vendor in
21494 sni)
21495 shlibpath_overrides_runpath=no
21496 need_lib_prefix=no
21497 runpath_var=LD_RUN_PATH
21499 siemens)
21500 need_lib_prefix=no
21502 motorola)
21503 need_lib_prefix=no
21504 need_version=no
21505 shlibpath_overrides_runpath=no
21506 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21508 esac
21511 sysv4*MP*)
21512 if test -d /usr/nec ;then
21513 version_type=linux
21514 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21515 soname_spec='$libname${shared_ext}.$major'
21516 shlibpath_var=LD_LIBRARY_PATH
21520 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21521 version_type=freebsd-elf
21522 need_lib_prefix=no
21523 need_version=no
21524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21525 soname_spec='${libname}${release}${shared_ext}$major'
21526 shlibpath_var=LD_LIBRARY_PATH
21527 shlibpath_overrides_runpath=yes
21528 hardcode_into_libs=yes
21529 if test "$with_gnu_ld" = yes; then
21530 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21531 else
21532 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21533 case $host_os in
21534 sco3.2v5*)
21535 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21537 esac
21539 sys_lib_dlsearch_path_spec='/usr/lib'
21542 tpf*)
21543 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21544 version_type=linux
21545 need_lib_prefix=no
21546 need_version=no
21547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21548 shlibpath_var=LD_LIBRARY_PATH
21549 shlibpath_overrides_runpath=no
21550 hardcode_into_libs=yes
21553 uts4*)
21554 version_type=linux
21555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21556 soname_spec='${libname}${release}${shared_ext}$major'
21557 shlibpath_var=LD_LIBRARY_PATH
21561 dynamic_linker=no
21563 esac
21564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21565 $as_echo "$dynamic_linker" >&6; }
21566 test "$dynamic_linker" = no && can_build_shared=no
21568 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21569 if test "$GCC" = yes; then
21570 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21573 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21574 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21576 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21577 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21618 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21619 hardcode_action_CXX=
21620 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21621 test -n "$runpath_var_CXX" ||
21622 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21624 # We can hardcode non-existent directories.
21625 if test "$hardcode_direct_CXX" != no &&
21626 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21627 # have to relink, otherwise we might link with an installed library
21628 # when we should be linking with a yet-to-be-installed one
21629 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21630 test "$hardcode_minus_L_CXX" != no; then
21631 # Linking always hardcodes the temporary library directory.
21632 hardcode_action_CXX=relink
21633 else
21634 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21635 hardcode_action_CXX=immediate
21637 else
21638 # We cannot hardcode anything, or else we can only hardcode existing
21639 # directories.
21640 hardcode_action_CXX=unsupported
21642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21643 $as_echo "$hardcode_action_CXX" >&6; }
21645 if test "$hardcode_action_CXX" = relink ||
21646 test "$inherit_rpath_CXX" = yes; then
21647 # Fast installation is not supported
21648 enable_fast_install=no
21649 elif test "$shlibpath_overrides_runpath" = yes ||
21650 test "$enable_shared" = no; then
21651 # Fast installation is not necessary
21652 enable_fast_install=needless
21661 fi # test -n "$compiler"
21663 CC=$lt_save_CC
21664 LDCXX=$LD
21665 LD=$lt_save_LD
21666 GCC=$lt_save_GCC
21667 with_gnu_ld=$lt_save_with_gnu_ld
21668 lt_cv_path_LDCXX=$lt_cv_path_LD
21669 lt_cv_path_LD=$lt_save_path_LD
21670 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21671 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21672 fi # test "$_lt_caught_CXX_error" != yes
21674 ac_ext=cpp
21675 ac_cpp='$CXXCPP $CPPFLAGS'
21676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21695 # Only expand once:
21701 # Identify the assembler which will work hand-in-glove with the newly
21702 # built GCC, so that we can examine its features. This is the assembler
21703 # which will be driven by the driver program.
21705 # If build != host, and we aren't building gas in-tree, we identify a
21706 # build->target assembler and hope that it will have the same features
21707 # as the host->target assembler we'll be using.
21708 gcc_cv_gas_major_version=
21709 gcc_cv_gas_minor_version=
21710 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21712 if test "${gcc_cv_as+set}" = set; then :
21714 else
21716 if test -x "$DEFAULT_ASSEMBLER"; then
21717 gcc_cv_as="$DEFAULT_ASSEMBLER"
21718 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21719 && test -f ../gas/Makefile \
21720 && test x$build = x$host; then
21721 gcc_cv_as=../gas/as-new$build_exeext
21722 elif test -x as$build_exeext; then
21723 # Build using assembler in the current directory.
21724 gcc_cv_as=./as$build_exeext
21725 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21726 gcc_cv_as="$AS_FOR_TARGET"
21727 else
21728 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21729 set dummy $AS_FOR_TARGET; ac_word=$2
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21731 $as_echo_n "checking for $ac_word... " >&6; }
21732 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21733 $as_echo_n "(cached) " >&6
21734 else
21735 case $gcc_cv_as in
21736 [\\/]* | ?:[\\/]*)
21737 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21741 for as_dir in $PATH
21743 IFS=$as_save_IFS
21744 test -z "$as_dir" && as_dir=.
21745 for ac_exec_ext in '' $ac_executable_extensions; do
21746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21747 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21749 break 2
21751 done
21752 done
21753 IFS=$as_save_IFS
21756 esac
21758 gcc_cv_as=$ac_cv_path_gcc_cv_as
21759 if test -n "$gcc_cv_as"; then
21760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21761 $as_echo "$gcc_cv_as" >&6; }
21762 else
21763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21764 $as_echo "no" >&6; }
21771 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21773 case "$ORIGINAL_AS_FOR_TARGET" in
21774 ./as | ./as$build_exeext) ;;
21775 *) ac_config_files="$ac_config_files as:exec-tool.in"
21777 esac
21779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21780 $as_echo_n "checking what assembler to use... " >&6; }
21781 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21782 # Single tree build which includes gas. We want to prefer it
21783 # over whatever linker top-level may have detected, since
21784 # we'll use what we're building after installation anyway.
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21786 $as_echo "newly built gas" >&6; }
21787 in_tree_gas=yes
21788 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21789 for f in $gcc_cv_as_bfd_srcdir/configure \
21790 $gcc_cv_as_gas_srcdir/configure \
21791 $gcc_cv_as_gas_srcdir/configure.ac \
21792 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21793 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21794 if test x$gcc_cv_gas_version != x; then
21795 break
21797 done
21798 case $gcc_cv_gas_version in
21799 VERSION=[0-9]*) ;;
21800 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21801 esac
21802 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21803 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21804 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21805 case $gcc_cv_gas_patch_version in
21806 "") gcc_cv_gas_patch_version="0" ;;
21807 esac
21808 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21809 + $gcc_cv_gas_minor_version \) \* 1000 \
21810 + $gcc_cv_gas_patch_version`
21812 in_tree_gas_is_elf=no
21813 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21814 || (grep 'obj_format = multi' ../gas/Makefile \
21815 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21816 then
21817 in_tree_gas_is_elf=yes
21819 else
21820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21821 $as_echo "$gcc_cv_as" >&6; }
21822 in_tree_gas=no
21825 default_ld=
21826 # Check whether --enable-ld was given.
21827 if test "${enable_ld+set}" = set; then :
21828 enableval=$enable_ld; case "${enableval}" in
21830 default_ld=ld.gold
21832 esac
21836 install_gold_as_default=no
21837 # Check whether --enable-gold was given.
21838 if test "${enable_gold+set}" = set; then :
21839 enableval=$enable_gold; case "${enableval}" in
21840 default)
21841 install_gold_as_default=yes
21843 yes)
21844 if test x${default_ld} != x; then
21845 install_gold_as_default=yes
21851 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21853 esac
21857 # Identify the linker which will work hand-in-glove with the newly
21858 # built GCC, so that we can examine its features. This is the linker
21859 # which will be driven by the driver program.
21861 # If build != host, and we aren't building gas in-tree, we identify a
21862 # build->target linker and hope that it will have the same features
21863 # as the host->target linker we'll be using.
21864 gcc_cv_gld_major_version=
21865 gcc_cv_gld_minor_version=
21866 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21867 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21868 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21870 if test "${gcc_cv_ld+set}" = set; then :
21872 else
21874 if test -x "$DEFAULT_LINKER"; then
21875 gcc_cv_ld="$DEFAULT_LINKER"
21876 elif test $install_gold_as_default = yes \
21877 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21878 && test -f ../gold/Makefile \
21879 && test x$build = x$host; then
21880 gcc_cv_ld=../gold/ld-new$build_exeext
21881 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21882 && test -f ../ld/Makefile \
21883 && test x$build = x$host; then
21884 gcc_cv_ld=../ld/ld-new$build_exeext
21885 elif test -x collect-ld$build_exeext; then
21886 # Build using linker in the current directory.
21887 gcc_cv_ld=./collect-ld$build_exeext
21888 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21889 gcc_cv_ld="$LD_FOR_TARGET"
21890 else
21891 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21892 set dummy $LD_FOR_TARGET; ac_word=$2
21893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21894 $as_echo_n "checking for $ac_word... " >&6; }
21895 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21896 $as_echo_n "(cached) " >&6
21897 else
21898 case $gcc_cv_ld in
21899 [\\/]* | ?:[\\/]*)
21900 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21904 for as_dir in $PATH
21906 IFS=$as_save_IFS
21907 test -z "$as_dir" && as_dir=.
21908 for ac_exec_ext in '' $ac_executable_extensions; do
21909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21910 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21912 break 2
21914 done
21915 done
21916 IFS=$as_save_IFS
21919 esac
21921 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21922 if test -n "$gcc_cv_ld"; then
21923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21924 $as_echo "$gcc_cv_ld" >&6; }
21925 else
21926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21927 $as_echo "no" >&6; }
21934 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21935 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21936 # if the PLUGIN_LD is set ld-new, just have it as ld
21937 # as that is the installed named.
21938 if test x$PLUGIN_LD_SUFFIX = xld-new \
21939 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21940 PLUGIN_LD_SUFFIX=ld
21943 # Check whether --with-plugin-ld was given.
21944 if test "${with_plugin_ld+set}" = set; then :
21945 withval=$with_plugin_ld; if test x"$withval" != x; then
21946 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21947 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21953 cat >>confdefs.h <<_ACEOF
21954 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21955 _ACEOF
21958 # Check to see if we are using gold instead of ld
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21960 $as_echo_n "checking whether we are using gold... " >&6; }
21961 ld_is_gold=no
21962 if test x$gcc_cv_ld != x; then
21963 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21964 | grep "GNU gold" > /dev/null; then
21965 ld_is_gold=yes
21968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21969 $as_echo "$ld_is_gold" >&6; }
21971 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21973 case "$ORIGINAL_LD_FOR_TARGET" in
21974 ./collect-ld | ./collect-ld$build_exeext) ;;
21975 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21977 esac
21979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21980 $as_echo_n "checking what linker to use... " >&6; }
21981 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21982 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21983 # Single tree build which includes ld. We want to prefer it
21984 # over whatever linker top-level may have detected, since
21985 # we'll use what we're building after installation anyway.
21986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21987 $as_echo "newly built ld" >&6; }
21988 in_tree_ld=yes
21989 in_tree_ld_is_elf=no
21990 if (grep 'EMUL = .*elf' ../ld/Makefile \
21991 || grep 'EMUL = .*linux' ../ld/Makefile \
21992 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21993 in_tree_ld_is_elf=yes
21994 elif test "$ld_is_gold" = yes; then
21995 in_tree_ld_is_elf=yes
21997 for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.ac $gcc_cv_ld_gld_srcdir/Makefile.in
21999 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22000 if test x$gcc_cv_gld_version != x; then
22001 break
22003 done
22004 case $gcc_cv_gld_version in
22005 VERSION=[0-9]*) ;;
22006 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22007 esac
22008 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22009 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22010 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22011 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22012 else
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22014 $as_echo "$gcc_cv_ld" >&6; }
22015 in_tree_ld=no
22016 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22017 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22018 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22024 # Figure out what nm we will be using.
22025 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22026 if test "${gcc_cv_nm+set}" = set; then :
22028 else
22030 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22031 && test -f ../binutils/Makefile \
22032 && test x$build = x$host; then
22033 gcc_cv_nm=../binutils/nm-new$build_exeext
22034 elif test -x nm$build_exeext; then
22035 gcc_cv_nm=./nm$build_exeext
22036 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22037 gcc_cv_nm="$NM_FOR_TARGET"
22038 else
22039 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22040 set dummy $NM_FOR_TARGET; ac_word=$2
22041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22042 $as_echo_n "checking for $ac_word... " >&6; }
22043 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22044 $as_echo_n "(cached) " >&6
22045 else
22046 case $gcc_cv_nm in
22047 [\\/]* | ?:[\\/]*)
22048 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22052 for as_dir in $PATH
22054 IFS=$as_save_IFS
22055 test -z "$as_dir" && as_dir=.
22056 for ac_exec_ext in '' $ac_executable_extensions; do
22057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22058 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22060 break 2
22062 done
22063 done
22064 IFS=$as_save_IFS
22067 esac
22069 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22070 if test -n "$gcc_cv_nm"; then
22071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22072 $as_echo "$gcc_cv_nm" >&6; }
22073 else
22074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22075 $as_echo "no" >&6; }
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22083 $as_echo_n "checking what nm to use... " >&6; }
22084 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22085 # Single tree build which includes binutils.
22086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22087 $as_echo "newly built nm" >&6; }
22088 in_tree_nm=yes
22089 else
22090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22091 $as_echo "$gcc_cv_nm" >&6; }
22092 in_tree_nm=no
22095 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22097 case "$ORIGINAL_NM_FOR_TARGET" in
22098 ./nm | ./nm$build_exeext) ;;
22099 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22101 esac
22104 # Figure out what objdump we will be using.
22105 if test "${gcc_cv_objdump+set}" = set; then :
22107 else
22109 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22110 && test -f ../binutils/Makefile \
22111 && test x$build = x$host; then
22112 # Single tree build which includes binutils.
22113 gcc_cv_objdump=../binutils/objdump$build_exeext
22114 elif test -x objdump$build_exeext; then
22115 gcc_cv_objdump=./objdump$build_exeext
22116 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22117 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22118 else
22119 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22120 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22122 $as_echo_n "checking for $ac_word... " >&6; }
22123 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22124 $as_echo_n "(cached) " >&6
22125 else
22126 case $gcc_cv_objdump in
22127 [\\/]* | ?:[\\/]*)
22128 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22132 for as_dir in $PATH
22134 IFS=$as_save_IFS
22135 test -z "$as_dir" && as_dir=.
22136 for ac_exec_ext in '' $ac_executable_extensions; do
22137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22138 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22140 break 2
22142 done
22143 done
22144 IFS=$as_save_IFS
22147 esac
22149 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22150 if test -n "$gcc_cv_objdump"; then
22151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22152 $as_echo "$gcc_cv_objdump" >&6; }
22153 else
22154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22155 $as_echo "no" >&6; }
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22163 $as_echo_n "checking what objdump to use... " >&6; }
22164 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22165 # Single tree build which includes binutils.
22166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22167 $as_echo "newly built objdump" >&6; }
22168 elif test x$gcc_cv_objdump = x; then
22169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22170 $as_echo "not found" >&6; }
22171 else
22172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22173 $as_echo "$gcc_cv_objdump" >&6; }
22176 # Figure out what readelf we will be using.
22177 if test "${gcc_cv_readelf+set}" = set; then :
22179 else
22181 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22182 && test -f ../binutils/Makefile \
22183 && test x$build = x$host; then
22184 # Single tree build which includes binutils.
22185 gcc_cv_readelf=../binutils/readelf$build_exeext
22186 elif test -x readelf$build_exeext; then
22187 gcc_cv_readelf=./readelf$build_exeext
22188 else
22189 # Extract the first word of "readelf", so it can be a program name with args.
22190 set dummy readelf; ac_word=$2
22191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22192 $as_echo_n "checking for $ac_word... " >&6; }
22193 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22194 $as_echo_n "(cached) " >&6
22195 else
22196 case $gcc_cv_readelf in
22197 [\\/]* | ?:[\\/]*)
22198 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22202 for as_dir in $PATH
22204 IFS=$as_save_IFS
22205 test -z "$as_dir" && as_dir=.
22206 for ac_exec_ext in '' $ac_executable_extensions; do
22207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22208 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22210 break 2
22212 done
22213 done
22214 IFS=$as_save_IFS
22217 esac
22219 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22220 if test -n "$gcc_cv_readelf"; then
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22222 $as_echo "$gcc_cv_readelf" >&6; }
22223 else
22224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22225 $as_echo "no" >&6; }
22232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22233 $as_echo_n "checking what readelf to use... " >&6; }
22234 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22235 # Single tree build which includes binutils.
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22237 $as_echo "newly built readelf" >&6; }
22238 elif test x$gcc_cv_readelf = x; then
22239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22240 $as_echo "not found" >&6; }
22241 else
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22243 $as_echo "$gcc_cv_readelf" >&6; }
22246 # Figure out what assembler alignment features are present.
22247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22248 $as_echo_n "checking assembler flags... " >&6; }
22249 if test "${gcc_cv_as_flags+set}" = set; then :
22250 $as_echo_n "(cached) " >&6
22251 else
22252 case "$target" in
22253 i[34567]86-*-linux*)
22254 gcc_cv_as_flags=--32
22256 x86_64-*-linux-gnux32)
22257 gcc_cv_as_flags=--x32
22259 x86_64-*-linux*)
22260 gcc_cv_as_flags=--64
22262 powerpc*-*-darwin*)
22263 gcc_cv_as_flags="-arch ppc"
22266 gcc_cv_as_flags=" "
22268 esac
22270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22271 $as_echo "$gcc_cv_as_flags" >&6; }
22273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22274 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22275 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22276 $as_echo_n "(cached) " >&6
22277 else
22278 gcc_cv_as_balign_and_p2align=no
22279 if test $in_tree_gas = yes; then
22280 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22281 then gcc_cv_as_balign_and_p2align=yes
22283 elif test x$gcc_cv_as != x; then
22284 $as_echo '.balign 4
22285 .p2align 2' > conftest.s
22286 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22288 (eval $ac_try) 2>&5
22289 ac_status=$?
22290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22291 test $ac_status = 0; }; }
22292 then
22293 gcc_cv_as_balign_and_p2align=yes
22294 else
22295 echo "configure: failed program was" >&5
22296 cat conftest.s >&5
22298 rm -f conftest.o conftest.s
22301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22302 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22303 if test $gcc_cv_as_balign_and_p2align = yes; then
22305 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22310 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22311 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22312 $as_echo_n "(cached) " >&6
22313 else
22314 gcc_cv_as_max_skip_p2align=no
22315 if test $in_tree_gas = yes; then
22316 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22317 then gcc_cv_as_max_skip_p2align=yes
22319 elif test x$gcc_cv_as != x; then
22320 $as_echo '.p2align 4,,7' > conftest.s
22321 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22323 (eval $ac_try) 2>&5
22324 ac_status=$?
22325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22326 test $ac_status = 0; }; }
22327 then
22328 gcc_cv_as_max_skip_p2align=yes
22329 else
22330 echo "configure: failed program was" >&5
22331 cat conftest.s >&5
22333 rm -f conftest.o conftest.s
22336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22337 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22338 if test $gcc_cv_as_max_skip_p2align = yes; then
22340 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22345 $as_echo_n "checking assembler for .literal16... " >&6; }
22346 if test "${gcc_cv_as_literal16+set}" = set; then :
22347 $as_echo_n "(cached) " >&6
22348 else
22349 gcc_cv_as_literal16=no
22350 if test $in_tree_gas = yes; then
22351 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22352 then gcc_cv_as_literal16=yes
22354 elif test x$gcc_cv_as != x; then
22355 $as_echo '.literal16' > conftest.s
22356 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22358 (eval $ac_try) 2>&5
22359 ac_status=$?
22360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22361 test $ac_status = 0; }; }
22362 then
22363 gcc_cv_as_literal16=yes
22364 else
22365 echo "configure: failed program was" >&5
22366 cat conftest.s >&5
22368 rm -f conftest.o conftest.s
22371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22372 $as_echo "$gcc_cv_as_literal16" >&6; }
22373 if test $gcc_cv_as_literal16 = yes; then
22375 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22380 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22381 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22382 $as_echo_n "(cached) " >&6
22383 else
22384 gcc_cv_as_subsection_m1=no
22385 if test $in_tree_gas = yes; then
22386 if test $in_tree_gas_is_elf = yes \
22387 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22388 then gcc_cv_as_subsection_m1=yes
22390 elif test x$gcc_cv_as != x; then
22391 $as_echo 'conftest_label1: .word 0
22392 .subsection -1
22393 conftest_label2: .word 0
22394 .previous' > conftest.s
22395 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22397 (eval $ac_try) 2>&5
22398 ac_status=$?
22399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22400 test $ac_status = 0; }; }
22401 then
22402 if test x$gcc_cv_nm != x; then
22403 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22404 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22405 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22406 then :
22407 else gcc_cv_as_subsection_m1=yes
22409 rm -f conftest.nm1 conftest.nm2
22411 else
22412 echo "configure: failed program was" >&5
22413 cat conftest.s >&5
22415 rm -f conftest.o conftest.s
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22419 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22420 if test $gcc_cv_as_subsection_m1 = yes; then
22422 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22427 $as_echo_n "checking assembler for .weak... " >&6; }
22428 if test "${gcc_cv_as_weak+set}" = set; then :
22429 $as_echo_n "(cached) " >&6
22430 else
22431 gcc_cv_as_weak=no
22432 if test $in_tree_gas = yes; then
22433 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22434 then gcc_cv_as_weak=yes
22436 elif test x$gcc_cv_as != x; then
22437 $as_echo ' .weak foobar' > conftest.s
22438 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22440 (eval $ac_try) 2>&5
22441 ac_status=$?
22442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22443 test $ac_status = 0; }; }
22444 then
22445 gcc_cv_as_weak=yes
22446 else
22447 echo "configure: failed program was" >&5
22448 cat conftest.s >&5
22450 rm -f conftest.o conftest.s
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22454 $as_echo "$gcc_cv_as_weak" >&6; }
22455 if test $gcc_cv_as_weak = yes; then
22457 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22462 $as_echo_n "checking assembler for .weakref... " >&6; }
22463 if test "${gcc_cv_as_weakref+set}" = set; then :
22464 $as_echo_n "(cached) " >&6
22465 else
22466 gcc_cv_as_weakref=no
22467 if test $in_tree_gas = yes; then
22468 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22469 then gcc_cv_as_weakref=yes
22471 elif test x$gcc_cv_as != x; then
22472 $as_echo ' .weakref foobar, barfnot' > conftest.s
22473 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22475 (eval $ac_try) 2>&5
22476 ac_status=$?
22477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22478 test $ac_status = 0; }; }
22479 then
22480 gcc_cv_as_weakref=yes
22481 else
22482 echo "configure: failed program was" >&5
22483 cat conftest.s >&5
22485 rm -f conftest.o conftest.s
22488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22489 $as_echo "$gcc_cv_as_weakref" >&6; }
22490 if test $gcc_cv_as_weakref = yes; then
22492 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22497 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22498 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22499 $as_echo_n "(cached) " >&6
22500 else
22501 gcc_cv_as_nsubspa_comdat=no
22502 if test $in_tree_gas = yes; then
22503 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22504 then gcc_cv_as_nsubspa_comdat=yes
22506 elif test x$gcc_cv_as != x; then
22507 $as_echo ' .SPACE $TEXT$
22508 .NSUBSPA $CODE$,COMDAT' > conftest.s
22509 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22511 (eval $ac_try) 2>&5
22512 ac_status=$?
22513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22514 test $ac_status = 0; }; }
22515 then
22516 gcc_cv_as_nsubspa_comdat=yes
22517 else
22518 echo "configure: failed program was" >&5
22519 cat conftest.s >&5
22521 rm -f conftest.o conftest.s
22524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22525 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22526 if test $gcc_cv_as_nsubspa_comdat = yes; then
22528 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22532 # .hidden needs to be supported in both the assembler and the linker,
22533 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22534 # This is irritatingly difficult to feature test for; we have to check the
22535 # date string after the version number. If we've got an in-tree
22536 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22537 # to be safe.
22538 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22540 $as_echo_n "checking assembler for .hidden... " >&6; }
22541 if test "${gcc_cv_as_hidden+set}" = set; then :
22542 $as_echo_n "(cached) " >&6
22543 else
22544 gcc_cv_as_hidden=no
22545 if test $in_tree_gas = yes; then
22546 if test $in_tree_gas_is_elf = yes \
22547 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22548 then gcc_cv_as_hidden=yes
22550 elif test x$gcc_cv_as != x; then
22551 $as_echo ' .hidden foobar
22552 foobar:' > conftest.s
22553 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22555 (eval $ac_try) 2>&5
22556 ac_status=$?
22557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22558 test $ac_status = 0; }; }
22559 then
22560 gcc_cv_as_hidden=yes
22561 else
22562 echo "configure: failed program was" >&5
22563 cat conftest.s >&5
22565 rm -f conftest.o conftest.s
22568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22569 $as_echo "$gcc_cv_as_hidden" >&6; }
22571 case "${target}" in
22572 *-*-darwin*)
22573 # Darwin as has some visibility support, though with a different syntax.
22574 gcc_cv_as_hidden=yes
22576 esac
22578 # gnu_indirect_function type is an extension proposed at
22579 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22580 # selection of function implementation
22581 # Check whether --enable-gnu-indirect-function was given.
22582 if test "${enable_gnu_indirect_function+set}" = set; then :
22583 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22584 yes | no) ;;
22585 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22586 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22587 esac
22588 else
22589 enable_gnu_indirect_function="$default_gnu_indirect_function"
22593 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22595 cat >>confdefs.h <<_ACEOF
22596 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22597 _ACEOF
22601 if test $in_tree_ld != yes ; then
22602 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22603 if echo "$ld_ver" | grep GNU > /dev/null; then
22604 if test x"$ld_is_gold" = xyes; then
22605 # GNU gold --version looks like this:
22607 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22609 # We extract the binutils version which is more familiar and specific
22610 # than the gold version.
22611 ld_vers=`echo $ld_ver | sed -n \
22612 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22613 else
22614 # GNU ld --version looks like this:
22616 # GNU ld (GNU Binutils) 2.21.51.20110225
22617 ld_vers=`echo $ld_ver | sed -n \
22618 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22620 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'`
22621 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22622 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22623 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22624 else
22625 case "${target}" in
22626 *-*-solaris2*)
22627 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22628 # format.
22630 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22631 # /usr/ccs/bin/ld has been configured.
22632 ld_ver=`$gcc_cv_ld -V 2>&1`
22633 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22634 ld_vers=`echo $ld_ver | sed -n \
22635 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22636 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22637 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22640 esac
22644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22645 $as_echo_n "checking linker for .hidden support... " >&6; }
22646 if test "${gcc_cv_ld_hidden+set}" = set; then :
22647 $as_echo_n "(cached) " >&6
22648 else
22649 if test $in_tree_ld = yes ; then
22650 gcc_cv_ld_hidden=no
22651 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 \
22652 && test $in_tree_ld_is_elf = yes; then
22653 gcc_cv_ld_hidden=yes
22655 else
22656 gcc_cv_ld_hidden=yes
22657 if test x"$ld_is_gold" = xyes; then
22659 elif echo "$ld_ver" | grep GNU > /dev/null; then
22660 case "${target}" in
22661 mmix-knuth-mmixware)
22662 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22663 gcc_cv_ld_hidden=no
22665 esac
22666 if test 0"$ld_date" -lt 20020404; then
22667 if test -n "$ld_date"; then
22668 # If there was date string, but was earlier than 2002-04-04, fail
22669 gcc_cv_ld_hidden=no
22670 elif test -z "$ld_vers"; then
22671 # If there was no date string nor ld version number, something is wrong
22672 gcc_cv_ld_hidden=no
22673 else
22674 test -z "$ld_vers_patch" && ld_vers_patch=0
22675 if test "$ld_vers_major" -lt 2; then
22676 gcc_cv_ld_hidden=no
22677 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22678 gcc_cv_ld_hidden="no"
22679 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22680 gcc_cv_ld_hidden=no
22684 else
22685 case "${target}" in
22686 *-*-darwin*)
22687 # Darwin ld has some visibility support.
22688 gcc_cv_ld_hidden=yes
22690 hppa64*-*-hpux* | ia64*-*-hpux*)
22691 gcc_cv_ld_hidden=yes
22693 *-*-solaris2.1[0-9]*)
22694 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22695 # .symbolic was only added in Solaris 9 12/02.
22696 gcc_cv_ld_hidden=yes
22699 gcc_cv_ld_hidden=no
22701 esac
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22706 $as_echo "$gcc_cv_ld_hidden" >&6; }
22707 libgcc_visibility=no
22710 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22711 libgcc_visibility=yes
22713 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22718 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22719 gcc_cv_ld_ro_rw_mix=unknown
22720 if test $in_tree_ld = yes ; then
22721 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 \
22722 && test $in_tree_ld_is_elf = yes; then
22723 gcc_cv_ld_ro_rw_mix=read-write
22725 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22726 echo '.section myfoosect, "a"' > conftest1.s
22727 echo '.section myfoosect, "aw"' > conftest2.s
22728 echo '.byte 1' >> conftest2.s
22729 echo '.section myfoosect, "a"' > conftest3.s
22730 echo '.byte 0' >> conftest3.s
22731 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22732 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22733 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22734 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22735 conftest2.o conftest3.o > /dev/null 2>&1; then
22736 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22737 | sed -e '/myfoosect/!d' -e N`
22738 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22739 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22740 gcc_cv_ld_ro_rw_mix=read-only
22741 else
22742 gcc_cv_ld_ro_rw_mix=read-write
22746 rm -f conftest.* conftest[123].*
22748 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22750 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22754 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22756 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22757 case "${target}" in
22758 *-*-solaris2*)
22760 # Solaris 2 ld -V output looks like this for a regular version:
22762 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22764 # but test versions add stuff at the end:
22766 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22768 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22769 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22770 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22771 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22772 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22773 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22776 esac
22779 # Check whether --enable-initfini-array was given.
22780 if test "${enable_initfini_array+set}" = set; then :
22781 enableval=$enable_initfini_array;
22782 else
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22785 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22786 if test "${gcc_cv_initfini_array+set}" = set; then :
22787 $as_echo_n "(cached) " >&6
22788 else
22789 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22790 case "${target}" in
22791 ia64-*)
22792 if test "$cross_compiling" = yes; then :
22793 gcc_cv_initfini_array=no
22794 else
22795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22796 /* end confdefs.h. */
22798 #ifndef __ELF__
22799 #error Not an ELF OS
22800 #endif
22801 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22802 if it can be used. */
22803 static int x = -1;
22804 int main (void) { return x; }
22805 int foo (void) { x = 0; }
22806 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22808 _ACEOF
22809 if ac_fn_cxx_try_run "$LINENO"; then :
22810 gcc_cv_initfini_array=yes
22811 else
22812 gcc_cv_initfini_array=no
22814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22815 conftest.$ac_objext conftest.beam conftest.$ac_ext
22819 gcc_cv_initfini_array=no
22820 if test $in_tree_ld = yes ; then
22821 if test "$gcc_cv_gld_major_version" -eq 2 \
22822 -a "$gcc_cv_gld_minor_version" -ge 22 \
22823 -o "$gcc_cv_gld_major_version" -gt 2 \
22824 && test $in_tree_ld_is_elf = yes; then
22825 gcc_cv_initfini_array=yes
22827 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22828 cat > conftest.s <<\EOF
22829 .section .dtors,"a",%progbits
22830 .balign 4
22831 .byte 'A', 'A', 'A', 'A'
22832 .section .ctors,"a",%progbits
22833 .balign 4
22834 .byte 'B', 'B', 'B', 'B'
22835 .section .fini_array.65530,"a",%progbits
22836 .balign 4
22837 .byte 'C', 'C', 'C', 'C'
22838 .section .init_array.65530,"a",%progbits
22839 .balign 4
22840 .byte 'D', 'D', 'D', 'D'
22841 .section .dtors.64528,"a",%progbits
22842 .balign 4
22843 .byte 'E', 'E', 'E', 'E'
22844 .section .ctors.64528,"a",%progbits
22845 .balign 4
22846 .byte 'F', 'F', 'F', 'F'
22847 .section .fini_array.01005,"a",%progbits
22848 .balign 4
22849 .byte 'G', 'G', 'G', 'G'
22850 .section .init_array.01005,"a",%progbits
22851 .balign 4
22852 .byte 'H', 'H', 'H', 'H'
22853 .text
22854 .globl _start
22855 _start:
22857 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22858 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22859 && $gcc_cv_objdump -s -j .init_array conftest \
22860 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22861 && $gcc_cv_objdump -s -j .fini_array conftest \
22862 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22863 gcc_cv_initfini_array=yes
22865 rm -f conftest conftest.*
22867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22868 /* end confdefs.h. */
22870 #ifndef __ELF__
22871 # error Not an ELF OS
22872 #endif
22873 #include <stdlib.h>
22874 #if defined __GLIBC_PREREQ
22875 # if __GLIBC_PREREQ (2, 4)
22876 # else
22877 # error GLIBC 2.4 required
22878 # endif
22879 #else
22880 # if defined __sun__ && defined __svr4__
22881 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22882 # else
22883 # error The C library not known to support .init_array/.fini_array
22884 # endif
22885 #endif
22887 _ACEOF
22888 if ac_fn_cxx_try_cpp "$LINENO"; then :
22890 else
22891 gcc_cv_initfini_array=no
22893 rm -f conftest.err conftest.$ac_ext;;
22894 esac
22895 else
22896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22897 $as_echo_n "checking cross compile... guessing... " >&6; }
22898 gcc_cv_initfini_array=no
22901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22902 $as_echo "$gcc_cv_initfini_array" >&6; }
22903 enable_initfini_array=$gcc_cv_initfini_array
22907 if test $enable_initfini_array = yes; then
22909 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22913 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22915 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22916 if test "${gcc_cv_as_leb128+set}" = set; then :
22917 $as_echo_n "(cached) " >&6
22918 else
22919 gcc_cv_as_leb128=no
22920 if test $in_tree_gas = yes; then
22921 if test $in_tree_gas_is_elf = yes \
22922 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22923 then gcc_cv_as_leb128=yes
22925 elif test x$gcc_cv_as != x; then
22926 $as_echo ' .data
22927 .uleb128 L2 - L1
22929 .uleb128 1280
22930 .sleb128 -1010
22931 L2:' > conftest.s
22932 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22934 (eval $ac_try) 2>&5
22935 ac_status=$?
22936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22937 test $ac_status = 0; }; }
22938 then
22939 # GAS versions before 2.11 do not support uleb128,
22940 # despite appearing to.
22941 # ??? There exists an elf-specific test that will crash
22942 # the assembler. Perhaps it's better to figure out whether
22943 # arbitrary sections are supported and try the test.
22944 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22945 if echo "$as_ver" | grep GNU > /dev/null; then
22946 as_vers=`echo $as_ver | sed -n \
22947 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22948 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22949 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22950 if test $as_major -eq 2 && test $as_minor -lt 11
22951 then :
22952 else gcc_cv_as_leb128=yes
22955 else
22956 echo "configure: failed program was" >&5
22957 cat conftest.s >&5
22959 rm -f conftest.o conftest.s
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22963 $as_echo "$gcc_cv_as_leb128" >&6; }
22964 if test $gcc_cv_as_leb128 = yes; then
22966 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22970 # Check if we have assembler support for unwind directives.
22971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22972 $as_echo_n "checking assembler for cfi directives... " >&6; }
22973 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22974 $as_echo_n "(cached) " >&6
22975 else
22976 gcc_cv_as_cfi_directive=no
22977 if test x$gcc_cv_as != x; then
22978 $as_echo ' .text
22979 .cfi_startproc
22980 .cfi_offset 0, 0
22981 .cfi_same_value 1
22982 .cfi_def_cfa 1, 2
22983 .cfi_escape 1, 2, 3, 4, 5
22984 .cfi_endproc' > conftest.s
22985 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22987 (eval $ac_try) 2>&5
22988 ac_status=$?
22989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22990 test $ac_status = 0; }; }
22991 then
22992 case "$target" in
22993 *-*-solaris*)
22994 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22995 # read-only and read-write sections, we need to make sure that the
22996 # assembler used emits read-write .eh_frame sections.
22997 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22998 if test "x$gcc_cv_objdump" != x; then
22999 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23000 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
23001 gcc_cv_as_cfi_directive=no
23002 else
23003 case "$target" in
23004 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
23005 # On Solaris/x86, make sure that GCC and assembler agree on using
23006 # read-only .eh_frame sections for 64-bit.
23007 if test x$gas = xyes; then
23008 as_ix86_64_opt="--64"
23009 else
23010 as_ix86_64_opt="-xarch=amd64"
23012 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
23013 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23014 sed -e /.eh_frame/!d -e N | \
23015 grep READONLY > /dev/null; then
23016 gcc_cv_as_cfi_directive=yes
23017 else
23018 gcc_cv_as_cfi_directive=no
23022 gcc_cv_as_cfi_directive=yes
23024 esac
23026 else
23027 # no objdump, err on the side of caution
23028 gcc_cv_as_cfi_directive=no
23030 else
23031 gcc_cv_as_cfi_directive=yes
23034 *-*-*)
23035 gcc_cv_as_cfi_directive=yes
23037 esac
23038 else
23039 echo "configure: failed program was" >&5
23040 cat conftest.s >&5
23042 rm -f conftest.o conftest.s
23045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23046 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23048 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23050 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23051 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23052 $as_echo_n "(cached) " >&6
23053 else
23054 gcc_cv_as_cfi_advance_working=no
23055 if test x$gcc_cv_as != x; then
23056 $as_echo ' .text
23057 .cfi_startproc
23058 .cfi_adjust_cfa_offset 64
23059 .skip 75040, 0
23060 .cfi_adjust_cfa_offset 128
23061 .cfi_endproc' > conftest.s
23062 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23064 (eval $ac_try) 2>&5
23065 ac_status=$?
23066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23067 test $ac_status = 0; }; }
23068 then
23070 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23071 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23072 gcc_cv_as_cfi_advance_working=yes
23075 else
23076 echo "configure: failed program was" >&5
23077 cat conftest.s >&5
23079 rm -f conftest.o conftest.s
23082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23083 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23085 else
23086 # no objdump, err on the side of caution
23087 gcc_cv_as_cfi_advance_working=no
23091 cat >>confdefs.h <<_ACEOF
23092 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23093 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23094 _ACEOF
23098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23099 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23100 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23101 $as_echo_n "(cached) " >&6
23102 else
23103 gcc_cv_as_cfi_personality_directive=no
23104 if test x$gcc_cv_as != x; then
23105 $as_echo ' .text
23106 .cfi_startproc
23107 .cfi_personality 0, symbol
23108 .cfi_endproc' > conftest.s
23109 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23111 (eval $ac_try) 2>&5
23112 ac_status=$?
23113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23114 test $ac_status = 0; }; }
23115 then
23116 gcc_cv_as_cfi_personality_directive=yes
23117 else
23118 echo "configure: failed program was" >&5
23119 cat conftest.s >&5
23121 rm -f conftest.o conftest.s
23124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23125 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23128 cat >>confdefs.h <<_ACEOF
23129 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23130 then echo 1; else echo 0; fi`
23131 _ACEOF
23134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23135 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23136 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23137 $as_echo_n "(cached) " >&6
23138 else
23139 gcc_cv_as_cfi_sections_directive=no
23140 if test x$gcc_cv_as != x; then
23141 $as_echo ' .text
23142 .cfi_sections .debug_frame, .eh_frame
23143 .cfi_startproc
23144 .cfi_endproc' > conftest.s
23145 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23147 (eval $ac_try) 2>&5
23148 ac_status=$?
23149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23150 test $ac_status = 0; }; }
23151 then
23152 case $target_os in
23153 win32 | pe | cygwin* | mingw32* | uwin*)
23154 # Need to check that we generated the correct relocation for the
23155 # .debug_frame section. This was fixed for binutils 2.21.
23156 gcc_cv_as_cfi_sections_directive=no
23157 if test "x$gcc_cv_objdump" != x; then
23158 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23159 grep secrel > /dev/null; then
23160 gcc_cv_as_cfi_sections_directive=yes
23165 gcc_cv_as_cfi_sections_directive=yes
23167 esac
23168 else
23169 echo "configure: failed program was" >&5
23170 cat conftest.s >&5
23172 rm -f conftest.o conftest.s
23175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23176 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23180 cat >>confdefs.h <<_ACEOF
23181 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23182 then echo 1; else echo 0; fi`
23183 _ACEOF
23186 # GAS versions up to and including 2.11.0 may mis-optimize
23187 # .eh_frame data.
23188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23189 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23190 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23191 $as_echo_n "(cached) " >&6
23192 else
23193 gcc_cv_as_eh_frame=no
23194 if test $in_tree_gas = yes; then
23195 if test $in_tree_gas_is_elf = yes \
23196 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23197 then gcc_cv_as_eh_frame=yes
23199 elif test x$gcc_cv_as != x; then
23200 $as_echo ' .text
23201 .LFB1:
23202 .4byte 0
23203 .L1:
23204 .4byte 0
23205 .LFE1:
23206 .section .eh_frame,"aw",@progbits
23207 __FRAME_BEGIN__:
23208 .4byte .LECIE1-.LSCIE1
23209 .LSCIE1:
23210 .4byte 0x0
23211 .byte 0x1
23212 .ascii "z\0"
23213 .byte 0x1
23214 .byte 0x78
23215 .byte 0x1a
23216 .byte 0x0
23217 .byte 0x4
23218 .4byte 1
23219 .p2align 1
23220 .LECIE1:
23221 .LSFDE1:
23222 .4byte .LEFDE1-.LASFDE1
23223 .LASFDE1:
23224 .4byte .LASFDE1-__FRAME_BEGIN__
23225 .4byte .LFB1
23226 .4byte .LFE1-.LFB1
23227 .byte 0x4
23228 .4byte .LFE1-.LFB1
23229 .byte 0x4
23230 .4byte .L1-.LFB1
23231 .LEFDE1:' > conftest.s
23232 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23234 (eval $ac_try) 2>&5
23235 ac_status=$?
23236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23237 test $ac_status = 0; }; }
23238 then
23239 cat > conftest.lit <<EOF
23240 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23241 0010 01000000 12000000 18000000 00000000 ................
23242 0020 08000000 04080000 0044 .........D
23244 cat > conftest.big <<EOF
23245 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23246 0010 00000001 00000012 00000018 00000000 ................
23247 0020 00000008 04000000 0844 .........D
23249 # If the assembler didn't choke, and we can objdump,
23250 # and we got the correct data, then succeed.
23251 # The text in the here-document typically retains its unix-style line
23252 # endings, while the output of objdump will use host line endings.
23253 # Therefore, use diff -b for the comparisons.
23254 if test x$gcc_cv_objdump != x \
23255 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23256 | tail -3 > conftest.got \
23257 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23258 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23259 then
23260 gcc_cv_as_eh_frame=yes
23261 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23263 (eval $ac_try) 2>&5
23264 ac_status=$?
23265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23266 test $ac_status = 0; }; }; then
23267 gcc_cv_as_eh_frame=buggy
23268 else
23269 # Uh oh, what do we do now?
23270 gcc_cv_as_eh_frame=no
23272 else
23273 echo "configure: failed program was" >&5
23274 cat conftest.s >&5
23276 rm -f conftest.o conftest.s
23279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23280 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23283 if test $gcc_cv_as_eh_frame = buggy; then
23285 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23290 $as_echo_n "checking assembler for section merging support... " >&6; }
23291 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23292 $as_echo_n "(cached) " >&6
23293 else
23294 gcc_cv_as_shf_merge=no
23295 if test $in_tree_gas = yes; then
23296 if test $in_tree_gas_is_elf = yes \
23297 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23298 then gcc_cv_as_shf_merge=yes
23300 elif test x$gcc_cv_as != x; then
23301 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23302 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23304 (eval $ac_try) 2>&5
23305 ac_status=$?
23306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23307 test $ac_status = 0; }; }
23308 then
23309 gcc_cv_as_shf_merge=yes
23310 else
23311 echo "configure: failed program was" >&5
23312 cat conftest.s >&5
23314 rm -f conftest.o conftest.s
23317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23318 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23320 if test $gcc_cv_as_shf_merge = no; then
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23322 $as_echo_n "checking assembler for section merging support... " >&6; }
23323 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23324 $as_echo_n "(cached) " >&6
23325 else
23326 gcc_cv_as_shf_merge=no
23327 if test $in_tree_gas = yes; then
23328 if test $in_tree_gas_is_elf = yes \
23329 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23330 then gcc_cv_as_shf_merge=yes
23332 elif test x$gcc_cv_as != x; then
23333 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23334 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23336 (eval $ac_try) 2>&5
23337 ac_status=$?
23338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23339 test $ac_status = 0; }; }
23340 then
23341 gcc_cv_as_shf_merge=yes
23342 else
23343 echo "configure: failed program was" >&5
23344 cat conftest.s >&5
23346 rm -f conftest.o conftest.s
23349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23350 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23354 cat >>confdefs.h <<_ACEOF
23355 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23356 _ACEOF
23359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23360 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23361 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23362 $as_echo_n "(cached) " >&6
23363 else
23364 gcc_cv_as_comdat_group=no
23365 if test $in_tree_gas = yes; then
23366 if test $in_tree_gas_is_elf = yes \
23367 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23368 then gcc_cv_as_comdat_group=yes
23370 elif test x$gcc_cv_as != x; then
23371 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23372 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23374 (eval $ac_try) 2>&5
23375 ac_status=$?
23376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23377 test $ac_status = 0; }; }
23378 then
23379 gcc_cv_as_comdat_group=yes
23380 else
23381 echo "configure: failed program was" >&5
23382 cat conftest.s >&5
23384 rm -f conftest.o conftest.s
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23388 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23390 if test $gcc_cv_as_comdat_group = yes; then
23391 gcc_cv_as_comdat_group_percent=no
23392 gcc_cv_as_comdat_group_group=no
23393 else
23394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23395 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23396 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23397 $as_echo_n "(cached) " >&6
23398 else
23399 gcc_cv_as_comdat_group_percent=no
23400 if test $in_tree_gas = yes; then
23401 if test $in_tree_gas_is_elf = yes \
23402 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23403 then gcc_cv_as_comdat_group_percent=yes
23405 elif test x$gcc_cv_as != x; then
23406 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23407 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23409 (eval $ac_try) 2>&5
23410 ac_status=$?
23411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23412 test $ac_status = 0; }; }
23413 then
23414 gcc_cv_as_comdat_group_percent=yes
23415 else
23416 echo "configure: failed program was" >&5
23417 cat conftest.s >&5
23419 rm -f conftest.o conftest.s
23422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23423 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23425 if test $gcc_cv_as_comdat_group_percent = yes; then
23426 gcc_cv_as_comdat_group_group=no
23427 else
23428 case "${target}" in
23429 # Sun as uses a completely different syntax.
23430 *-*-solaris2*)
23431 case "${target}" in
23432 sparc*-*-solaris2*)
23433 conftest_s='
23434 .group foo,".text%foo",#comdat
23435 .section ".text%foo", #alloc,#execinstr,#progbits
23436 .globl foo
23437 foo:
23440 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23441 conftest_s='
23442 .group foo,.text%foo,#comdat
23443 .section .text%foo, "ax", @progbits
23444 .globl foo
23445 foo:
23448 esac
23449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23450 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23451 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23452 $as_echo_n "(cached) " >&6
23453 else
23454 gcc_cv_as_comdat_group_group=no
23455 if test x$gcc_cv_as != x; then
23456 $as_echo "$conftest_s" > conftest.s
23457 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23459 (eval $ac_try) 2>&5
23460 ac_status=$?
23461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23462 test $ac_status = 0; }; }
23463 then
23464 gcc_cv_as_comdat_group_group=yes
23465 else
23466 echo "configure: failed program was" >&5
23467 cat conftest.s >&5
23469 rm -f conftest.o conftest.s
23472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23473 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23476 esac
23477 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23478 gcc_cv_as_comdat_group_group=no
23482 if test x"$ld_is_gold" = xyes; then
23483 comdat_group=yes
23484 elif test $in_tree_ld = yes ; then
23485 comdat_group=no
23486 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 \
23487 && test $in_tree_ld_is_elf = yes; then
23488 comdat_group=yes
23490 elif echo "$ld_ver" | grep GNU > /dev/null; then
23491 comdat_group=yes
23492 if test 0"$ld_date" -lt 20050308; then
23493 if test -n "$ld_date"; then
23494 # If there was date string, but was earlier than 2005-03-08, fail
23495 comdat_group=no
23496 elif test "$ld_vers_major" -lt 2; then
23497 comdat_group=no
23498 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23499 comdat_group=no
23502 else
23503 case "${target}" in
23504 *-*-solaris2.1[1-9]*)
23505 comdat_group=no
23506 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23507 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23508 # version 1.688.
23510 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23511 # least ld version 1.2267.
23512 if test "$ld_vers_major" -gt 1; then
23513 comdat_group=yes
23514 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23515 comdat_group=yes
23516 elif test "$ld_vers_minor" -ge 2267; then
23517 comdat_group=yes
23521 # Assume linkers other than GNU ld don't support COMDAT group.
23522 comdat_group=no
23524 esac
23526 # Allow overriding the automatic COMDAT group tests above.
23527 # Check whether --enable-comdat was given.
23528 if test "${enable_comdat+set}" = set; then :
23529 enableval=$enable_comdat; comdat_group="$enable_comdat"
23532 if test $comdat_group = no; then
23533 gcc_cv_as_comdat_group=no
23534 gcc_cv_as_comdat_group_percent=no
23535 gcc_cv_as_comdat_group_group=no
23538 cat >>confdefs.h <<_ACEOF
23539 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23540 || test $gcc_cv_as_comdat_group_percent = yes \
23541 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23542 _ACEOF
23545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23546 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23547 if test "${gcc_cv_as_discriminator+set}" = set; then :
23548 $as_echo_n "(cached) " >&6
23549 else
23550 gcc_cv_as_discriminator=no
23551 if test $in_tree_gas = yes; then
23552 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23553 then gcc_cv_as_discriminator=yes
23555 elif test x$gcc_cv_as != x; then
23556 $as_echo ' .text
23557 .file 1 "conf.c"
23558 .loc 1 1 0 discriminator 1' > conftest.s
23559 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23561 (eval $ac_try) 2>&5
23562 ac_status=$?
23563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23564 test $ac_status = 0; }; }
23565 then
23566 gcc_cv_as_discriminator=yes
23567 else
23568 echo "configure: failed program was" >&5
23569 cat conftest.s >&5
23571 rm -f conftest.o conftest.s
23574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23575 $as_echo "$gcc_cv_as_discriminator" >&6; }
23576 if test $gcc_cv_as_discriminator = yes; then
23578 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23582 # Thread-local storage - the check is heavily parameterized.
23583 conftest_s=
23584 tls_first_major=
23585 tls_first_minor=
23586 tls_as_opt=
23587 case "$target" in
23588 alpha*-*-*)
23589 conftest_s='
23590 .section ".tdata","awT",@progbits
23591 foo: .long 25
23592 .text
23593 ldq $27,__tls_get_addr($29) !literal!1
23594 lda $16,foo($29) !tlsgd!1
23595 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23596 ldq $27,__tls_get_addr($29) !literal!2
23597 lda $16,foo($29) !tlsldm!2
23598 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23599 ldq $1,foo($29) !gotdtprel
23600 ldah $2,foo($29) !dtprelhi
23601 lda $3,foo($2) !dtprello
23602 lda $4,foo($29) !dtprel
23603 ldq $1,foo($29) !gottprel
23604 ldah $2,foo($29) !tprelhi
23605 lda $3,foo($2) !tprello
23606 lda $4,foo($29) !tprel'
23607 tls_first_major=2
23608 tls_first_minor=13
23609 tls_as_opt=--fatal-warnings
23611 cris-*-*|crisv32-*-*)
23612 conftest_s='
23613 .section ".tdata","awT",@progbits
23614 x: .long 25
23615 .text
23616 move.d x:IE,$r10
23617 nop'
23618 tls_first_major=2
23619 tls_first_minor=20
23620 tls_as_opt=--fatal-warnings
23622 frv*-*-*)
23623 conftest_s='
23624 .section ".tdata","awT",@progbits
23625 x: .long 25
23626 .text
23627 call #gettlsoff(x)'
23628 tls_first_major=2
23629 tls_first_minor=14
23631 hppa*-*-linux*)
23632 conftest_s='
23633 t1: .reg %r20
23634 t2: .reg %r21
23635 gp: .reg %r19
23636 .section ".tdata","awT",@progbits
23637 foo: .long 25
23638 .text
23639 .align 4
23640 addil LT%foo-$tls_gdidx$,gp
23641 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23642 b __tls_get_addr
23644 addil LT%foo-$tls_ldidx$,gp
23645 b __tls_get_addr
23646 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23647 addil LR%foo-$tls_dtpoff$,%ret0
23648 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23649 mfctl %cr27,%t1
23650 addil LT%foo-$tls_ieoff$,gp
23651 ldw RT%foo-$tls_ieoff$(%r1),%t2
23652 add %t1,%t2,%t3
23653 mfctl %cr27,%t1
23654 addil LR%foo-$tls_leoff$,%t1
23655 ldo RR%foo-$tls_leoff$(%r1),%t2'
23656 tls_first_major=2
23657 tls_first_minor=15
23658 tls_as_opt=--fatal-warnings
23660 arm*-*-*)
23661 conftest_s='
23662 .section ".tdata","awT",%progbits
23663 foo: .long 25
23664 .text
23665 .word foo(gottpoff)
23666 .word foo(tpoff)
23667 .word foo(tlsgd)
23668 .word foo(tlsldm)
23669 .word foo(tlsldo)'
23670 tls_first_major=2
23671 tls_first_minor=17
23673 i[34567]86-*-* | x86_64-*-*)
23674 case "$target" in
23675 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23676 on_solaris=yes
23679 on_solaris=no
23681 esac
23682 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23683 conftest_s='
23684 .section .tdata,"awt",@progbits'
23685 tls_first_major=0
23686 tls_first_minor=0
23687 tls_section_flag=t
23689 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23691 else
23692 conftest_s='
23693 .section ".tdata","awT",@progbits'
23694 tls_first_major=2
23695 tls_first_minor=14
23696 tls_section_flag=T
23697 tls_as_opt="--fatal-warnings"
23699 case "$target" in
23700 i[34567]86-*-*)
23701 conftest_s="$conftest_s
23702 foo: .long 25
23703 .text
23704 movl %gs:0, %eax
23705 leal foo@tlsgd(,%ebx,1), %eax
23706 leal foo@tlsldm(%ebx), %eax
23707 leal foo@dtpoff(%eax), %edx
23708 movl foo@gottpoff(%ebx), %eax
23709 subl foo@gottpoff(%ebx), %eax
23710 addl foo@gotntpoff(%ebx), %eax
23711 movl foo@indntpoff, %eax
23712 movl \$foo@tpoff, %eax
23713 subl \$foo@tpoff, %eax
23714 leal foo@ntpoff(%ecx), %eax"
23716 x86_64-*-*)
23717 if test x$on_solaris = xyes; then
23718 case $gas_flag in
23719 yes) tls_as_opt="$tls_as_opt --64" ;;
23720 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23721 esac
23723 conftest_s="$conftest_s
23724 foo: .long 25
23725 .text
23726 movq %fs:0, %rax
23727 leaq foo@tlsgd(%rip), %rdi
23728 leaq foo@tlsld(%rip), %rdi
23729 leaq foo@dtpoff(%rax), %rdx
23730 movq foo@gottpoff(%rip), %rax
23731 movq \$foo@tpoff, %rax"
23733 esac
23735 ia64-*-*)
23736 conftest_s='
23737 .section ".tdata","awT",@progbits
23738 foo: data8 25
23739 .text
23740 addl r16 = @ltoff(@dtpmod(foo#)), gp
23741 addl r17 = @ltoff(@dtprel(foo#)), gp
23742 addl r18 = @ltoff(@tprel(foo#)), gp
23743 addl r19 = @dtprel(foo#), gp
23744 adds r21 = @dtprel(foo#), r13
23745 movl r23 = @dtprel(foo#)
23746 addl r20 = @tprel(foo#), gp
23747 adds r22 = @tprel(foo#), r13
23748 movl r24 = @tprel(foo#)'
23749 tls_first_major=2
23750 tls_first_minor=13
23751 tls_as_opt=--fatal-warnings
23753 microblaze*-*-*)
23754 conftest_s='
23755 .section .tdata,"awT",@progbits
23757 .word 2
23758 .text
23759 addik r5,r20,x@TLSGD
23760 addik r5,r20,x@TLSLDM'
23761 tls_first_major=2
23762 tls_first_minor=20
23763 tls_as_opt='--fatal-warnings'
23765 mips*-*-*)
23766 conftest_s='
23767 .section .tdata,"awT",@progbits
23769 .word 2
23770 .text
23771 addiu $4, $28, %tlsgd(x)
23772 addiu $4, $28, %tlsldm(x)
23773 lui $4, %dtprel_hi(x)
23774 addiu $4, $4, %dtprel_lo(x)
23775 lw $4, %gottprel(x)($28)
23776 lui $4, %tprel_hi(x)
23777 addiu $4, $4, %tprel_lo(x)'
23778 tls_first_major=2
23779 tls_first_minor=16
23780 tls_as_opt='-32 --fatal-warnings'
23782 m68k-*-*)
23783 conftest_s='
23784 .section .tdata,"awT",@progbits
23786 .word 2
23787 .text
23788 foo:
23789 move.l x@TLSGD(%a5),%a0
23790 move.l x@TLSLDM(%a5),%a0
23791 move.l x@TLSLDO(%a5),%a0
23792 move.l x@TLSIE(%a5),%a0
23793 move.l x@TLSLE(%a5),%a0'
23794 tls_first_major=2
23795 tls_first_minor=19
23796 tls_as_opt='--fatal-warnings'
23798 nios2-*-*)
23799 conftest_s='
23800 .section ".tdata","awT",@progbits'
23801 tls_first_major=2
23802 tls_first_minor=23
23803 tls_as_opt="--fatal-warnings"
23805 aarch64*-*-*)
23806 conftest_s='
23807 .section ".tdata","awT",%progbits
23808 foo: .long 25
23809 .text
23810 adrp x0, :tlsgd:x
23811 add x0, x0, #:tlsgd_lo12:x
23812 bl __tls_get_addr
23813 nop'
23814 tls_first_major=2
23815 tls_first_minor=20
23816 tls_as_opt='--fatal-warnings'
23818 powerpc-ibm-aix*)
23819 conftest_s='
23820 .extern __get_tpointer
23821 .toc
23822 LC..1:
23823 .tc a[TC],a[TL]@le
23824 .csect .text[PR]
23825 .tlstest:
23826 lwz 9,LC..1(2)
23827 bla __get_tpointer
23828 lwzx 3,9,3
23829 .globl a
23830 .csect a[TL],4
23832 .space 4'
23833 tls_first_major=0
23834 tls_first_minor=0
23836 powerpc64*-*-*)
23837 conftest_s='
23838 .section ".tdata","awT",@progbits
23839 .align 3
23840 ld0: .space 8
23841 ld1: .space 8
23842 x1: .space 8
23843 x2: .space 8
23844 x3: .space 8
23845 .text
23846 addi 3,2,ld0@got@tlsgd
23847 bl .__tls_get_addr
23849 addi 3,2,ld1@toc
23850 bl .__tls_get_addr
23852 addi 3,2,x1@got@tlsld
23853 bl .__tls_get_addr
23855 addi 9,3,x1@dtprel
23856 bl .__tls_get_addr
23858 addis 9,3,x2@dtprel@ha
23859 addi 9,9,x2@dtprel@l
23860 bl .__tls_get_addr
23862 ld 9,x3@got@dtprel(2)
23863 add 9,9,3
23864 bl .__tls_get_addr
23865 nop'
23866 tls_first_major=2
23867 tls_first_minor=14
23868 tls_as_opt="-a64 --fatal-warnings"
23870 powerpc*-*-*)
23871 conftest_s='
23872 .section ".tdata","awT",@progbits
23873 .align 2
23874 ld0: .space 4
23875 ld1: .space 4
23876 x1: .space 4
23877 x2: .space 4
23878 x3: .space 4
23879 .text
23880 addi 3,31,ld0@got@tlsgd
23881 bl __tls_get_addr
23882 addi 3,31,x1@got@tlsld
23883 bl __tls_get_addr
23884 addi 9,3,x1@dtprel
23885 addis 9,3,x2@dtprel@ha
23886 addi 9,9,x2@dtprel@l
23887 lwz 9,x3@got@tprel(31)
23888 add 9,9,x@tls
23889 addi 9,2,x1@tprel
23890 addis 9,2,x2@tprel@ha
23891 addi 9,9,x2@tprel@l'
23892 tls_first_major=2
23893 tls_first_minor=14
23894 tls_as_opt="-a32 --fatal-warnings"
23896 s390-*-*)
23897 conftest_s='
23898 .section ".tdata","awT",@progbits
23899 foo: .long 25
23900 .text
23901 .long foo@TLSGD
23902 .long foo@TLSLDM
23903 .long foo@DTPOFF
23904 .long foo@NTPOFF
23905 .long foo@GOTNTPOFF
23906 .long foo@INDNTPOFF
23907 l %r1,foo@GOTNTPOFF(%r12)
23908 l %r1,0(%r1):tls_load:foo
23909 bas %r14,0(%r1,%r13):tls_gdcall:foo
23910 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23911 tls_first_major=2
23912 tls_first_minor=14
23913 tls_as_opt="-m31 --fatal-warnings"
23915 s390x-*-*)
23916 conftest_s='
23917 .section ".tdata","awT",@progbits
23918 foo: .long 25
23919 .text
23920 .quad foo@TLSGD
23921 .quad foo@TLSLDM
23922 .quad foo@DTPOFF
23923 .quad foo@NTPOFF
23924 .quad foo@GOTNTPOFF
23925 lg %r1,foo@GOTNTPOFF(%r12)
23926 larl %r1,foo@INDNTPOFF
23927 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23928 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23929 tls_first_major=2
23930 tls_first_minor=14
23931 tls_as_opt="-m64 -Aesame --fatal-warnings"
23933 sh-*-* | sh[34]-*-*)
23934 conftest_s='
23935 .section ".tdata","awT",@progbits
23936 foo: .long 25
23937 .text
23938 .long foo@TLSGD
23939 .long foo@TLSLDM
23940 .long foo@DTPOFF
23941 .long foo@GOTTPOFF
23942 .long foo@TPOFF'
23943 tls_first_major=2
23944 tls_first_minor=13
23945 tls_as_opt=--fatal-warnings
23947 sparc*-*-*)
23948 case "$target" in
23949 sparc*-sun-solaris2.*)
23950 on_solaris=yes
23953 on_solaris=no
23955 esac
23956 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23957 conftest_s='
23958 .section ".tdata",#alloc,#write,#tls'
23959 tls_first_major=0
23960 tls_first_minor=0
23961 else
23962 conftest_s='
23963 .section ".tdata","awT",@progbits'
23964 tls_first_major=2
23965 tls_first_minor=14
23966 tls_as_opt="-32 --fatal-warnings"
23968 conftest_s="$conftest_s
23969 foo: .long 25
23970 .text
23971 sethi %tgd_hi22(foo), %o0
23972 add %o0, %tgd_lo10(foo), %o1
23973 add %l7, %o1, %o0, %tgd_add(foo)
23974 call __tls_get_addr, %tgd_call(foo)
23975 sethi %tldm_hi22(foo), %l1
23976 add %l1, %tldm_lo10(foo), %l2
23977 add %l7, %l2, %o0, %tldm_add(foo)
23978 call __tls_get_addr, %tldm_call(foo)
23979 sethi %tldo_hix22(foo), %l3
23980 xor %l3, %tldo_lox10(foo), %l4
23981 add %o0, %l4, %l5, %tldo_add(foo)
23982 sethi %tie_hi22(foo), %o3
23983 add %o3, %tie_lo10(foo), %o3
23984 ld [%l7 + %o3], %o2, %tie_ld(foo)
23985 add %g7, %o2, %o4, %tie_add(foo)
23986 sethi %tle_hix22(foo), %l1
23987 xor %l1, %tle_lox10(foo), %o5
23988 ld [%g7 + %o5], %o1"
23990 tilepro*-*-*)
23991 conftest_s='
23992 .section ".tdata","awT",@progbits
23993 foo: .long 25
23994 .text
23995 addli r0, zero, tls_gd(foo)
23996 auli r0, zero, tls_gd_ha16(foo)
23997 addli r0, r0, tls_gd_lo16(foo)
23998 jal __tls_get_addr
23999 addli r0, zero, tls_ie(foo)
24000 auli r0, r0, tls_ie_ha16(foo)
24001 addli r0, r0, tls_ie_lo16(foo)'
24002 tls_first_major=2
24003 tls_first_minor=22
24004 tls_as_opt="--fatal-warnings"
24006 tilegx*-*-*)
24007 conftest_s='
24008 .section ".tdata","awT",@progbits
24009 foo: .long 25
24010 .text
24011 shl16insli r0, zero, hw0_last_tls_gd(foo)
24012 shl16insli r0, zero, hw1_last_tls_gd(foo)
24013 shl16insli r0, r0, hw0_tls_gd(foo)
24014 jal __tls_get_addr
24015 shl16insli r0, zero, hw1_last_tls_ie(foo)
24016 shl16insli r0, r0, hw0_tls_ie(foo)'
24017 tls_first_major=2
24018 tls_first_minor=22
24019 tls_as_opt="--fatal-warnings"
24021 xtensa*-*-*)
24022 conftest_s='
24023 .section ".tdata","awT",@progbits
24024 foo: .long 25
24025 .text
24026 movi a8, foo@TLSFUNC
24027 movi a10, foo@TLSARG
24028 callx8.tls a8, foo@TLSCALL'
24029 tls_first_major=2
24030 tls_first_minor=19
24032 esac
24033 set_have_as_tls=no
24034 if test "x$enable_tls" = xno ; then
24035 : # TLS explicitly disabled.
24036 elif test "x$enable_tls" = xyes ; then
24037 set_have_as_tls=yes # TLS explicitly enabled.
24038 elif test -z "$tls_first_major"; then
24039 : # If we don't have a check, assume no support.
24040 else
24041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24042 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24043 if test "${gcc_cv_as_tls+set}" = set; then :
24044 $as_echo_n "(cached) " >&6
24045 else
24046 gcc_cv_as_tls=no
24047 if test $in_tree_gas = yes; then
24048 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24049 then gcc_cv_as_tls=yes
24051 elif test x$gcc_cv_as != x; then
24052 $as_echo "$conftest_s" > conftest.s
24053 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24055 (eval $ac_try) 2>&5
24056 ac_status=$?
24057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24058 test $ac_status = 0; }; }
24059 then
24060 gcc_cv_as_tls=yes
24061 else
24062 echo "configure: failed program was" >&5
24063 cat conftest.s >&5
24065 rm -f conftest.o conftest.s
24068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24069 $as_echo "$gcc_cv_as_tls" >&6; }
24070 if test $gcc_cv_as_tls = yes; then
24071 set_have_as_tls=yes
24074 if test $set_have_as_tls = yes ; then
24076 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24080 # Target-specific assembler checks.
24082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24083 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24084 gcc_cv_ld_static_dynamic=no
24085 gcc_cv_ld_static_option='-Bstatic'
24086 gcc_cv_ld_dynamic_option='-Bdynamic'
24087 if test $in_tree_ld = yes ; then
24088 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
24089 gcc_cv_ld_static_dynamic=yes
24091 elif test x$gcc_cv_ld != x; then
24092 # Check if linker supports -Bstatic/-Bdynamic option
24093 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
24094 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
24095 gcc_cv_ld_static_dynamic=yes
24096 else
24097 case "$target" in
24098 # AIX ld uses -b flags
24099 *-*-aix4.[23]* | *-*-aix[5-9]*)
24100 gcc_cv_ld_static_dynamic=yes
24101 gcc_cv_ld_static_option="-bstatic"
24102 gcc_cv_ld_dynamic_option="-bdynamic"
24104 # HP-UX ld uses -a flags to select between shared and archive.
24105 *-*-hpux*)
24106 if test x"$gnu_ld" = xno; then
24107 gcc_cv_ld_static_dynamic=yes
24108 gcc_cv_ld_static_option="-aarchive_shared"
24109 gcc_cv_ld_dynamic_option="-adefault"
24112 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24113 *-*-solaris2*)
24114 gcc_cv_ld_static_dynamic=yes
24116 esac
24119 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24121 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24124 cat >>confdefs.h <<_ACEOF
24125 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24126 _ACEOF
24129 cat >>confdefs.h <<_ACEOF
24130 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24131 _ACEOF
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24135 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24137 if test x"$demangler_in_ld" = xyes; then
24138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24139 $as_echo_n "checking linker --demangle support... " >&6; }
24140 gcc_cv_ld_demangle=no
24141 if test $in_tree_ld = yes; then
24142 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 \
24143 gcc_cv_ld_demangle=yes
24145 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24146 # Check if the GNU linker supports --demangle option
24147 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24148 gcc_cv_ld_demangle=yes
24151 if test x"$gcc_cv_ld_demangle" = xyes; then
24153 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24157 $as_echo "$gcc_cv_ld_demangle" >&6; }
24160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24161 $as_echo_n "checking linker plugin support... " >&6; }
24162 gcc_cv_lto_plugin=0
24163 if test -f liblto_plugin.la; then
24164 save_ld_ver="$ld_ver"
24165 save_ld_vers_major="$ld_vers_major"
24166 save_ld_vers_minor="$ld_vers_minor"
24167 save_ld_is_gold="$ld_is_gold"
24169 ld_is_gold=no
24171 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24172 ld_ver="GNU ld"
24173 # FIXME: ld_is_gold?
24174 ld_vers_major="$gcc_cv_gld_major_version"
24175 ld_vers_minor="$gcc_cv_gld_minor_version"
24176 else
24177 # Determine plugin linker version.
24178 # FIXME: Partial duplicate from above, generalize.
24179 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24180 if echo "$ld_ver" | grep GNU > /dev/null; then
24181 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24182 ld_is_gold=yes
24183 ld_vers=`echo $ld_ver | sed -n \
24184 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24185 else
24186 ld_vers=`echo $ld_ver | sed -n \
24187 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24189 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24190 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24194 # Determine plugin support.
24195 if echo "$ld_ver" | grep GNU > /dev/null; then
24196 # Require GNU ld or gold 2.21+ for plugin support by default.
24197 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24198 gcc_cv_lto_plugin=2
24199 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24200 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24201 gcc_cv_lto_plugin=1
24205 ld_ver="$save_ld_ver"
24206 ld_vers_major="$save_ld_vers_major"
24207 ld_vers_minor="$save_ld_vers_minor"
24208 ld_is_gold="$save_ld_is_gold"
24211 cat >>confdefs.h <<_ACEOF
24212 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24213 _ACEOF
24215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24216 $as_echo "$gcc_cv_lto_plugin" >&6; }
24218 case "$target" in
24219 aarch64*-*-*)
24220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24221 $as_echo_n "checking assembler for -mabi option... " >&6; }
24222 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24223 $as_echo_n "(cached) " >&6
24224 else
24225 gcc_cv_as_aarch64_mabi=no
24226 if test x$gcc_cv_as != x; then
24227 $as_echo '.text' > conftest.s
24228 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24230 (eval $ac_try) 2>&5
24231 ac_status=$?
24232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24233 test $ac_status = 0; }; }
24234 then
24235 gcc_cv_as_aarch64_mabi=yes
24236 else
24237 echo "configure: failed program was" >&5
24238 cat conftest.s >&5
24240 rm -f conftest.o conftest.s
24243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24244 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24246 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24248 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24250 else
24251 if test x$with_abi = xilp32; then
24252 as_fn_error "Assembler does not support -mabi=ilp32.\
24253 Upgrade the Assembler." "$LINENO" 5
24255 if test x"$with_multilib_list" = xdefault; then
24256 TM_MULTILIB_CONFIG=lp64
24257 else
24258 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24259 for aarch64_multilib in ${aarch64_multilibs}; do
24260 case ${aarch64_multilib} in
24261 ilp32)
24262 as_fn_error "Assembler does not support -mabi=ilp32.\
24263 Upgrade the Assembler." "$LINENO" 5
24267 esac
24268 done
24271 # Check if we have binutils support for relocations types needed by -fpic
24272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24273 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24274 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24275 $as_echo_n "(cached) " >&6
24276 else
24277 gcc_cv_as_aarch64_picreloc=no
24278 if test x$gcc_cv_as != x; then
24279 $as_echo '
24280 .text
24281 ldr x0, [x2, #:gotpage_lo15:globalsym]
24282 ' > conftest.s
24283 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24284 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24285 (eval $ac_try) 2>&5
24286 ac_status=$?
24287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24288 test $ac_status = 0; }; }
24289 then
24290 gcc_cv_as_aarch64_picreloc=yes
24291 else
24292 echo "configure: failed program was" >&5
24293 cat conftest.s >&5
24295 rm -f conftest.o conftest.s
24298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24299 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24300 if test $gcc_cv_as_aarch64_picreloc = yes; then
24302 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24305 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24306 # Check whether --enable-fix-cortex-a53-835769 was given.
24307 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24308 enableval=$enable_fix_cortex_a53_835769;
24309 case $enableval in
24310 yes)
24311 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24316 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24317 Valid choices are 'yes' and 'no'." "$LINENO" 5
24320 esac
24324 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24325 # Check whether --enable-fix-cortex-a53-843419 was given.
24326 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24327 enableval=$enable_fix_cortex_a53_843419;
24328 case $enableval in
24329 yes)
24330 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24335 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24336 Valid choices are 'yes' and 'no'." "$LINENO" 5
24339 esac
24345 # All TARGET_ABI_OSF targets.
24346 alpha*-*-linux* | alpha*-*-*bsd*)
24347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24348 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24349 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24350 $as_echo_n "(cached) " >&6
24351 else
24352 gcc_cv_as_alpha_explicit_relocs=no
24353 if test $in_tree_gas = yes; then
24354 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24355 then gcc_cv_as_alpha_explicit_relocs=yes
24357 elif test x$gcc_cv_as != x; then
24358 $as_echo ' .set nomacro
24359 .text
24360 extbl $3, $2, $3 !lituse_bytoff!1
24361 ldq $2, a($29) !literal!1
24362 ldq $4, b($29) !literal!2
24363 ldq_u $3, 0($2) !lituse_base!1
24364 ldq $27, f($29) !literal!5
24365 jsr $26, ($27), f !lituse_jsr!5
24366 ldah $29, 0($26) !gpdisp!3
24367 lda $0, c($29) !gprel
24368 ldah $1, d($29) !gprelhigh
24369 lda $1, d($1) !gprellow
24370 lda $29, 0($29) !gpdisp!3' > conftest.s
24371 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24373 (eval $ac_try) 2>&5
24374 ac_status=$?
24375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24376 test $ac_status = 0; }; }
24377 then
24378 gcc_cv_as_alpha_explicit_relocs=yes
24379 else
24380 echo "configure: failed program was" >&5
24381 cat conftest.s >&5
24383 rm -f conftest.o conftest.s
24386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24387 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24388 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24390 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24394 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24395 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24396 $as_echo_n "(cached) " >&6
24397 else
24398 gcc_cv_as_alpha_jsrdirect_relocs=no
24399 if test $in_tree_gas = yes; then
24400 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24401 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24403 elif test x$gcc_cv_as != x; then
24404 $as_echo ' .set nomacro
24405 .text
24406 ldq $27, a($29) !literal!1
24407 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24408 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24410 (eval $ac_try) 2>&5
24411 ac_status=$?
24412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24413 test $ac_status = 0; }; }
24414 then
24415 gcc_cv_as_alpha_jsrdirect_relocs=yes
24416 else
24417 echo "configure: failed program was" >&5
24418 cat conftest.s >&5
24420 rm -f conftest.o conftest.s
24423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24424 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24425 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24427 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24432 avr-*-*)
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24434 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24435 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24436 $as_echo_n "(cached) " >&6
24437 else
24438 gcc_cv_as_avr_mlink_relax=no
24439 if test x$gcc_cv_as != x; then
24440 $as_echo '.text' > conftest.s
24441 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24443 (eval $ac_try) 2>&5
24444 ac_status=$?
24445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24446 test $ac_status = 0; }; }
24447 then
24448 gcc_cv_as_avr_mlink_relax=yes
24449 else
24450 echo "configure: failed program was" >&5
24451 cat conftest.s >&5
24453 rm -f conftest.o conftest.s
24456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24457 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24458 if test $gcc_cv_as_avr_mlink_relax = yes; then
24460 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24465 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24466 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24467 $as_echo_n "(cached) " >&6
24468 else
24469 gcc_cv_as_avr_mrmw=no
24470 if test x$gcc_cv_as != x; then
24471 $as_echo '.text' > conftest.s
24472 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24474 (eval $ac_try) 2>&5
24475 ac_status=$?
24476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24477 test $ac_status = 0; }; }
24478 then
24479 gcc_cv_as_avr_mrmw=yes
24480 else
24481 echo "configure: failed program was" >&5
24482 cat conftest.s >&5
24484 rm -f conftest.o conftest.s
24487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24488 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24489 if test $gcc_cv_as_avr_mrmw = yes; then
24491 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24496 cris-*-*)
24497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24498 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24499 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24500 $as_echo_n "(cached) " >&6
24501 else
24502 gcc_cv_as_cris_no_mul_bug=no
24503 if test $in_tree_gas = yes; then
24504 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24505 then gcc_cv_as_cris_no_mul_bug=yes
24507 elif test x$gcc_cv_as != x; then
24508 $as_echo '.text' > conftest.s
24509 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24511 (eval $ac_try) 2>&5
24512 ac_status=$?
24513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24514 test $ac_status = 0; }; }
24515 then
24516 gcc_cv_as_cris_no_mul_bug=yes
24517 else
24518 echo "configure: failed program was" >&5
24519 cat conftest.s >&5
24521 rm -f conftest.o conftest.s
24524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24525 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24526 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24528 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24533 sparc*-*-*)
24534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24535 $as_echo_n "checking assembler for .register... " >&6; }
24536 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24537 $as_echo_n "(cached) " >&6
24538 else
24539 gcc_cv_as_sparc_register_op=no
24540 if test x$gcc_cv_as != x; then
24541 $as_echo '.register %g2, #scratch' > conftest.s
24542 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24544 (eval $ac_try) 2>&5
24545 ac_status=$?
24546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24547 test $ac_status = 0; }; }
24548 then
24549 gcc_cv_as_sparc_register_op=yes
24550 else
24551 echo "configure: failed program was" >&5
24552 cat conftest.s >&5
24554 rm -f conftest.o conftest.s
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24558 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24559 if test $gcc_cv_as_sparc_register_op = yes; then
24561 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24566 $as_echo_n "checking assembler for #nobits... " >&6; }
24567 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24568 $as_echo_n "(cached) " >&6
24569 else
24570 gcc_cv_as_sparc_nobits=no
24571 if test x$gcc_cv_as != x; then
24572 $as_echo '.section "nobits",#alloc,#write,#nobits
24573 .section "progbits",#alloc,#write,#progbits' > conftest.s
24574 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24575 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24576 (eval $ac_try) 2>&5
24577 ac_status=$?
24578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24579 test $ac_status = 0; }; }
24580 then
24581 gcc_cv_as_sparc_nobits=yes
24582 else
24583 echo "configure: failed program was" >&5
24584 cat conftest.s >&5
24586 rm -f conftest.o conftest.s
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24590 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24593 cat >>confdefs.h <<_ACEOF
24594 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24595 _ACEOF
24598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24599 $as_echo_n "checking assembler for -relax option... " >&6; }
24600 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24601 $as_echo_n "(cached) " >&6
24602 else
24603 gcc_cv_as_sparc_relax=no
24604 if test x$gcc_cv_as != x; then
24605 $as_echo '.text' > conftest.s
24606 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24608 (eval $ac_try) 2>&5
24609 ac_status=$?
24610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24611 test $ac_status = 0; }; }
24612 then
24613 gcc_cv_as_sparc_relax=yes
24614 else
24615 echo "configure: failed program was" >&5
24616 cat conftest.s >&5
24618 rm -f conftest.o conftest.s
24621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24622 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24623 if test $gcc_cv_as_sparc_relax = yes; then
24625 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24630 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24631 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24632 $as_echo_n "(cached) " >&6
24633 else
24634 gcc_cv_as_sparc_gotdata_op=no
24635 if test x$gcc_cv_as != x; then
24636 $as_echo '.text
24637 .align 4
24638 foo:
24640 bar:
24641 sethi %gdop_hix22(foo), %g1
24642 xor %g1, %gdop_lox10(foo), %g1
24643 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24644 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24646 (eval $ac_try) 2>&5
24647 ac_status=$?
24648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24649 test $ac_status = 0; }; }
24650 then
24651 if test x$gcc_cv_ld != x \
24652 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24653 if test x$gcc_cv_objdump != x; then
24654 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24655 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24656 gcc_cv_as_sparc_gotdata_op=no
24657 else
24658 gcc_cv_as_sparc_gotdata_op=yes
24662 rm -f conftest
24663 else
24664 echo "configure: failed program was" >&5
24665 cat conftest.s >&5
24667 rm -f conftest.o conftest.s
24670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24671 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24672 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24674 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24679 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24680 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24681 $as_echo_n "(cached) " >&6
24682 else
24683 gcc_cv_as_sparc_ua_pcrel=no
24684 if test x$gcc_cv_as != x; then
24685 $as_echo '.text
24686 foo:
24688 .data
24689 .align 4
24690 .byte 0
24691 .uaword %r_disp32(foo)' > conftest.s
24692 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24694 (eval $ac_try) 2>&5
24695 ac_status=$?
24696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24697 test $ac_status = 0; }; }
24698 then
24699 if test x$gcc_cv_ld != x \
24700 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24701 gcc_cv_as_sparc_ua_pcrel=yes
24703 rm -f conftest
24704 else
24705 echo "configure: failed program was" >&5
24706 cat conftest.s >&5
24708 rm -f conftest.o conftest.s
24711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24712 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24713 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24715 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24719 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24720 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24721 $as_echo_n "(cached) " >&6
24722 else
24723 gcc_cv_as_sparc_ua_pcrel_hidden=no
24724 if test x$gcc_cv_as != x; then
24725 $as_echo '.data
24726 .align 4
24727 .byte 0x31
24728 .uaword %r_disp32(foo)
24729 .byte 0x32, 0x33, 0x34
24730 .global foo
24731 .hidden foo
24732 foo:
24733 .skip 4' > conftest.s
24734 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24736 (eval $ac_try) 2>&5
24737 ac_status=$?
24738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24739 test $ac_status = 0; }; }
24740 then
24741 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24742 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24743 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24744 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24745 if $gcc_cv_objdump -R conftest 2> /dev/null \
24746 | grep 'DISP32' > /dev/null 2>&1; then
24748 else
24749 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24752 rm -f conftest
24753 else
24754 echo "configure: failed program was" >&5
24755 cat conftest.s >&5
24757 rm -f conftest.o conftest.s
24760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24761 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24762 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24764 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24768 fi # unaligned pcrel relocs
24770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24771 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24772 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24773 $as_echo_n "(cached) " >&6
24774 else
24775 gcc_cv_as_sparc_offsetable_lo10=no
24776 if test x$gcc_cv_as != x; then
24777 $as_echo '.text
24778 or %g1, %lo(ab) + 12, %g1
24779 or %g1, %lo(ab + 12), %g1' > conftest.s
24780 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24782 (eval $ac_try) 2>&5
24783 ac_status=$?
24784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24785 test $ac_status = 0; }; }
24786 then
24787 if test x$gcc_cv_objdump != x \
24788 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24789 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24790 gcc_cv_as_sparc_offsetable_lo10=yes
24792 else
24793 echo "configure: failed program was" >&5
24794 cat conftest.s >&5
24796 rm -f conftest.o conftest.s
24799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24800 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24801 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24803 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24808 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24809 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24810 $as_echo_n "(cached) " >&6
24811 else
24812 gcc_cv_as_sparc_fmaf=no
24813 if test x$gcc_cv_as != x; then
24814 $as_echo '.text
24815 .register %g2, #scratch
24816 .register %g3, #scratch
24817 .align 4
24818 fmaddd %f0, %f2, %f4, %f6
24819 addxccc %g1, %g2, %g3
24820 fsrl32 %f2, %f4, %f8
24821 fnaddd %f10, %f12, %f14' > conftest.s
24822 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24824 (eval $ac_try) 2>&5
24825 ac_status=$?
24826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24827 test $ac_status = 0; }; }
24828 then
24829 gcc_cv_as_sparc_fmaf=yes
24830 else
24831 echo "configure: failed program was" >&5
24832 cat conftest.s >&5
24834 rm -f conftest.o conftest.s
24837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24838 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24839 if test $gcc_cv_as_sparc_fmaf = yes; then
24841 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24846 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24847 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24848 $as_echo_n "(cached) " >&6
24849 else
24850 gcc_cv_as_sparc_sparc4=no
24851 if test x$gcc_cv_as != x; then
24852 $as_echo '.text
24853 .register %g2, #scratch
24854 .register %g3, #scratch
24855 .align 4
24856 cxbe %g2, %g3, 1f
24857 1: cwbneg %g2, %g3, 1f
24858 1: sha1
24860 aes_kexpand0 %f4, %f6, %f8
24861 des_round %f38, %f40, %f42, %f44
24862 camellia_f %f54, %f56, %f58, %f60
24863 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24864 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24866 (eval $ac_try) 2>&5
24867 ac_status=$?
24868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24869 test $ac_status = 0; }; }
24870 then
24871 gcc_cv_as_sparc_sparc4=yes
24872 else
24873 echo "configure: failed program was" >&5
24874 cat conftest.s >&5
24876 rm -f conftest.o conftest.s
24879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24880 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24881 if test $gcc_cv_as_sparc_sparc4 = yes; then
24883 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24888 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24889 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24890 $as_echo_n "(cached) " >&6
24891 else
24892 gcc_cv_as_sparc_leon=no
24893 if test x$gcc_cv_as != x; then
24894 $as_echo '.text
24895 .register %g2, #scratch
24896 .register %g3, #scratch
24897 .align 4
24898 smac %g2, %g3, %g1
24899 umac %g2, %g3, %g1
24900 casa [%g2] 0xb, %g3, %g1' > conftest.s
24901 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24903 (eval $ac_try) 2>&5
24904 ac_status=$?
24905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24906 test $ac_status = 0; }; }
24907 then
24908 gcc_cv_as_sparc_leon=yes
24909 else
24910 echo "configure: failed program was" >&5
24911 cat conftest.s >&5
24913 rm -f conftest.o conftest.s
24916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24917 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24918 if test $gcc_cv_as_sparc_leon = yes; then
24920 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24925 i[34567]86-*-* | x86_64-*-*)
24926 case $target_os in
24927 cygwin*)
24928 # Full C++ conformance when using a shared libstdc++-v3 requires some
24929 # support from the Cygwin DLL, which in more recent versions exports
24930 # wrappers to aid in interposing and redirecting operators new, delete,
24931 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24932 # are configuring for a version of Cygwin that exports the wrappers.
24933 if test x$host = x$target && test x$host_cpu = xi686; then
24934 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24935 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24936 gcc_ac_cygwin_dll_wrappers=yes
24937 else
24938 gcc_ac_cygwin_dll_wrappers=no
24941 else
24942 # Can't check presence of libc functions during cross-compile, so
24943 # we just have to assume we're building for an up-to-date target.
24944 gcc_ac_cygwin_dll_wrappers=yes
24947 cat >>confdefs.h <<_ACEOF
24948 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24949 _ACEOF
24951 esac
24952 case $target_os in
24953 cygwin* | pe | mingw32* | interix*)
24954 # Recent binutils allows the three-operand form of ".comm" on PE. This
24955 # definition is used unconditionally to initialise the default state of
24956 # the target option variable that governs usage of the feature.
24957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24958 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24959 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24960 $as_echo_n "(cached) " >&6
24961 else
24962 gcc_cv_as_comm_has_align=no
24963 if test $in_tree_gas = yes; then
24964 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24965 then gcc_cv_as_comm_has_align=yes
24967 elif test x$gcc_cv_as != x; then
24968 $as_echo '.comm foo,1,32' > conftest.s
24969 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24971 (eval $ac_try) 2>&5
24972 ac_status=$?
24973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24974 test $ac_status = 0; }; }
24975 then
24976 gcc_cv_as_comm_has_align=yes
24977 else
24978 echo "configure: failed program was" >&5
24979 cat conftest.s >&5
24981 rm -f conftest.o conftest.s
24984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24985 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24988 cat >>confdefs.h <<_ACEOF
24989 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24990 _ACEOF
24992 # Used for DWARF 2 in PE
24993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24994 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24995 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24996 $as_echo_n "(cached) " >&6
24997 else
24998 gcc_cv_as_ix86_pe_secrel32=no
24999 if test $in_tree_gas = yes; then
25000 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25001 then gcc_cv_as_ix86_pe_secrel32=yes
25003 elif test x$gcc_cv_as != x; then
25004 $as_echo '.text
25005 foo: nop
25006 .data
25007 .secrel32 foo' > conftest.s
25008 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25010 (eval $ac_try) 2>&5
25011 ac_status=$?
25012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25013 test $ac_status = 0; }; }
25014 then
25015 if test x$gcc_cv_ld != x \
25016 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25017 gcc_cv_as_ix86_pe_secrel32=yes
25019 rm -f conftest
25020 else
25021 echo "configure: failed program was" >&5
25022 cat conftest.s >&5
25024 rm -f conftest.o conftest.s
25027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25028 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25029 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25031 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25034 # Test if the assembler supports the extended form of the .section
25035 # directive that specifies section alignment. LTO support uses this,
25036 # but normally only after installation, so we warn but don't fail the
25037 # configure if LTO is enabled but the assembler does not support it.
25038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25039 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25040 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25041 $as_echo_n "(cached) " >&6
25042 else
25043 gcc_cv_as_section_has_align=no
25044 if test $in_tree_gas = yes; then
25045 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25046 then gcc_cv_as_section_has_align=yes
25048 elif test x$gcc_cv_as != x; then
25049 $as_echo '.section lto_test,"dr0"' > conftest.s
25050 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25052 (eval $ac_try) 2>&5
25053 ac_status=$?
25054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25055 test $ac_status = 0; }; }
25056 then
25057 gcc_cv_as_section_has_align=yes
25058 else
25059 echo "configure: failed program was" >&5
25060 cat conftest.s >&5
25062 rm -f conftest.o conftest.s
25065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25066 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25068 if test x$gcc_cv_as_section_has_align != xyes; then
25069 case ",$enable_languages," in
25070 *,lto,*)
25071 { $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
25072 $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;}
25074 esac
25077 esac
25079 # Test if the assembler supports the section flag 'e' for specifying
25080 # an excluded section.
25081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25082 $as_echo_n "checking assembler for .section with e... " >&6; }
25083 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25084 $as_echo_n "(cached) " >&6
25085 else
25086 gcc_cv_as_section_has_e=no
25087 if test $in_tree_gas = yes; then
25088 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25089 then gcc_cv_as_section_has_e=yes
25091 elif test x$gcc_cv_as != x; then
25092 $as_echo '.section foo1,"e"
25093 .byte 0,0,0,0' > conftest.s
25094 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25096 (eval $ac_try) 2>&5
25097 ac_status=$?
25098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25099 test $ac_status = 0; }; }
25100 then
25101 gcc_cv_as_section_has_e=yes
25102 else
25103 echo "configure: failed program was" >&5
25104 cat conftest.s >&5
25106 rm -f conftest.o conftest.s
25109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25110 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25113 cat >>confdefs.h <<_ACEOF
25114 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25115 _ACEOF
25118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25119 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25120 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25121 $as_echo_n "(cached) " >&6
25122 else
25123 gcc_cv_as_ix86_filds=no
25124 if test x$gcc_cv_as != x; then
25125 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25126 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25128 (eval $ac_try) 2>&5
25129 ac_status=$?
25130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25131 test $ac_status = 0; }; }
25132 then
25133 gcc_cv_as_ix86_filds=yes
25134 else
25135 echo "configure: failed program was" >&5
25136 cat conftest.s >&5
25138 rm -f conftest.o conftest.s
25141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25142 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25143 if test $gcc_cv_as_ix86_filds = yes; then
25145 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25150 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25151 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25152 $as_echo_n "(cached) " >&6
25153 else
25154 gcc_cv_as_ix86_fildq=no
25155 if test x$gcc_cv_as != x; then
25156 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25157 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25159 (eval $ac_try) 2>&5
25160 ac_status=$?
25161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25162 test $ac_status = 0; }; }
25163 then
25164 gcc_cv_as_ix86_fildq=yes
25165 else
25166 echo "configure: failed program was" >&5
25167 cat conftest.s >&5
25169 rm -f conftest.o conftest.s
25172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25173 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25174 if test $gcc_cv_as_ix86_fildq = yes; then
25176 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25181 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25182 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25183 $as_echo_n "(cached) " >&6
25184 else
25185 gcc_cv_as_ix86_cmov_sun_syntax=no
25186 if test x$gcc_cv_as != x; then
25187 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25188 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25190 (eval $ac_try) 2>&5
25191 ac_status=$?
25192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25193 test $ac_status = 0; }; }
25194 then
25195 gcc_cv_as_ix86_cmov_sun_syntax=yes
25196 else
25197 echo "configure: failed program was" >&5
25198 cat conftest.s >&5
25200 rm -f conftest.o conftest.s
25203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25204 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25205 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25207 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25212 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25213 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25214 $as_echo_n "(cached) " >&6
25215 else
25216 gcc_cv_as_ix86_ffreep=no
25217 if test x$gcc_cv_as != x; then
25218 $as_echo 'ffreep %st(1)' > conftest.s
25219 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25221 (eval $ac_try) 2>&5
25222 ac_status=$?
25223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25224 test $ac_status = 0; }; }
25225 then
25226 gcc_cv_as_ix86_ffreep=yes
25227 else
25228 echo "configure: failed program was" >&5
25229 cat conftest.s >&5
25231 rm -f conftest.o conftest.s
25234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25235 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25236 if test $gcc_cv_as_ix86_ffreep = yes; then
25238 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25243 $as_echo_n "checking assembler for .quad directive... " >&6; }
25244 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25245 $as_echo_n "(cached) " >&6
25246 else
25247 gcc_cv_as_ix86_quad=no
25248 if test x$gcc_cv_as != x; then
25249 $as_echo '.quad 0' > conftest.s
25250 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25252 (eval $ac_try) 2>&5
25253 ac_status=$?
25254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25255 test $ac_status = 0; }; }
25256 then
25257 gcc_cv_as_ix86_quad=yes
25258 else
25259 echo "configure: failed program was" >&5
25260 cat conftest.s >&5
25262 rm -f conftest.o conftest.s
25265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25266 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25267 if test $gcc_cv_as_ix86_quad = yes; then
25269 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25274 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25275 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25276 $as_echo_n "(cached) " >&6
25277 else
25278 gcc_cv_as_ix86_sahf=no
25279 if test x$gcc_cv_as != x; then
25280 $as_echo '.code64
25281 sahf' > conftest.s
25282 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25284 (eval $ac_try) 2>&5
25285 ac_status=$?
25286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25287 test $ac_status = 0; }; }
25288 then
25289 gcc_cv_as_ix86_sahf=yes
25290 else
25291 echo "configure: failed program was" >&5
25292 cat conftest.s >&5
25294 rm -f conftest.o conftest.s
25297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25298 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25299 if test $gcc_cv_as_ix86_sahf = yes; then
25301 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25306 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25307 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25308 $as_echo_n "(cached) " >&6
25309 else
25310 gcc_cv_as_ix86_interunit_movq=no
25311 if test x$gcc_cv_as != x; then
25312 $as_echo '.code64
25313 movq %mm0, %rax
25314 movq %rax, %xmm0' > conftest.s
25315 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25317 (eval $ac_try) 2>&5
25318 ac_status=$?
25319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25320 test $ac_status = 0; }; }
25321 then
25322 gcc_cv_as_ix86_interunit_movq=yes
25323 else
25324 echo "configure: failed program was" >&5
25325 cat conftest.s >&5
25327 rm -f conftest.o conftest.s
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25331 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25334 cat >>confdefs.h <<_ACEOF
25335 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25336 _ACEOF
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25340 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25341 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25342 $as_echo_n "(cached) " >&6
25343 else
25344 gcc_cv_as_ix86_hle=no
25345 if test x$gcc_cv_as != x; then
25346 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25347 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25349 (eval $ac_try) 2>&5
25350 ac_status=$?
25351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25352 test $ac_status = 0; }; }
25353 then
25354 gcc_cv_as_ix86_hle=yes
25355 else
25356 echo "configure: failed program was" >&5
25357 cat conftest.s >&5
25359 rm -f conftest.o conftest.s
25362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25363 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25364 if test $gcc_cv_as_ix86_hle = yes; then
25366 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25371 $as_echo_n "checking assembler for swap suffix... " >&6; }
25372 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25373 $as_echo_n "(cached) " >&6
25374 else
25375 gcc_cv_as_ix86_swap=no
25376 if test x$gcc_cv_as != x; then
25377 $as_echo 'movl.s %esp, %ebp' > conftest.s
25378 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25380 (eval $ac_try) 2>&5
25381 ac_status=$?
25382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25383 test $ac_status = 0; }; }
25384 then
25385 gcc_cv_as_ix86_swap=yes
25386 else
25387 echo "configure: failed program was" >&5
25388 cat conftest.s >&5
25390 rm -f conftest.o conftest.s
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25394 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25395 if test $gcc_cv_as_ix86_swap = yes; then
25397 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25402 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25403 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25404 $as_echo_n "(cached) " >&6
25405 else
25406 gcc_cv_as_ix86_diff_sect_delta=no
25407 if test x$gcc_cv_as != x; then
25408 $as_echo '.section .rodata
25409 .L1:
25410 .long .L2-.L1
25411 .long .L3-.L1
25412 .text
25413 .L3: nop
25414 .L2: nop' > conftest.s
25415 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25417 (eval $ac_try) 2>&5
25418 ac_status=$?
25419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25420 test $ac_status = 0; }; }
25421 then
25422 gcc_cv_as_ix86_diff_sect_delta=yes
25423 else
25424 echo "configure: failed program was" >&5
25425 cat conftest.s >&5
25427 rm -f conftest.o conftest.s
25430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25431 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25432 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25434 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25438 # These two are used unconditionally by i386.[ch]; it is to be defined
25439 # to 1 if the feature is present, 0 otherwise.
25440 as_ix86_gotoff_in_data_opt=
25441 if test x$gas = xyes; then
25442 as_ix86_gotoff_in_data_opt="--32"
25444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25445 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25446 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25447 $as_echo_n "(cached) " >&6
25448 else
25449 gcc_cv_as_ix86_gotoff_in_data=no
25450 if test $in_tree_gas = yes; then
25451 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25452 then gcc_cv_as_ix86_gotoff_in_data=yes
25454 elif test x$gcc_cv_as != x; then
25455 $as_echo ' .text
25456 .L0:
25458 .data
25459 .long .L0@GOTOFF' > conftest.s
25460 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25462 (eval $ac_try) 2>&5
25463 ac_status=$?
25464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25465 test $ac_status = 0; }; }
25466 then
25467 gcc_cv_as_ix86_gotoff_in_data=yes
25468 else
25469 echo "configure: failed program was" >&5
25470 cat conftest.s >&5
25472 rm -f conftest.o conftest.s
25475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25476 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25479 cat >>confdefs.h <<_ACEOF
25480 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25481 _ACEOF
25484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25485 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25486 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25487 $as_echo_n "(cached) " >&6
25488 else
25489 gcc_cv_as_ix86_rep_lock_prefix=no
25490 if test x$gcc_cv_as != x; then
25491 $as_echo 'rep movsl
25492 rep ret
25493 rep nop
25494 rep bsf %ecx, %eax
25495 rep bsr %ecx, %eax
25496 lock addl %edi, (%eax,%esi)
25497 lock orl $0, (%esp)' > conftest.s
25498 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25499 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25500 (eval $ac_try) 2>&5
25501 ac_status=$?
25502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25503 test $ac_status = 0; }; }
25504 then
25505 gcc_cv_as_ix86_rep_lock_prefix=yes
25506 else
25507 echo "configure: failed program was" >&5
25508 cat conftest.s >&5
25510 rm -f conftest.o conftest.s
25513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25514 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25515 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25517 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25522 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25523 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25524 $as_echo_n "(cached) " >&6
25525 else
25526 gcc_cv_as_ix86_ud2=no
25527 if test x$gcc_cv_as != x; then
25528 $as_echo 'ud2' > conftest.s
25529 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25531 (eval $ac_try) 2>&5
25532 ac_status=$?
25533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25534 test $ac_status = 0; }; }
25535 then
25536 gcc_cv_as_ix86_ud2=yes
25537 else
25538 echo "configure: failed program was" >&5
25539 cat conftest.s >&5
25541 rm -f conftest.o conftest.s
25544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25545 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25546 if test $gcc_cv_as_ix86_ud2 = yes; then
25548 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25553 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25554 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25555 $as_echo_n "(cached) " >&6
25556 else
25557 gcc_cv_as_ix86_tlsgdplt=no
25558 if test x$gcc_cv_as != x; then
25559 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25560 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25562 (eval $ac_try) 2>&5
25563 ac_status=$?
25564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25565 test $ac_status = 0; }; }
25566 then
25567 if test x$gcc_cv_ld != x \
25568 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25569 gcc_cv_as_ix86_tlsgdplt=yes
25571 rm -f conftest
25572 else
25573 echo "configure: failed program was" >&5
25574 cat conftest.s >&5
25576 rm -f conftest.o conftest.s
25579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25580 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25581 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25583 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25587 conftest_s='
25588 .section .tdata,"aw'$tls_section_flag'",@progbits
25589 tls_ld:
25590 .section .text,"ax",@progbits
25591 call tls_ld@tlsldmplt'
25592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25593 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25594 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25595 $as_echo_n "(cached) " >&6
25596 else
25597 gcc_cv_as_ix86_tlsldmplt=no
25598 if test x$gcc_cv_as != x; then
25599 $as_echo "$conftest_s" > conftest.s
25600 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25602 (eval $ac_try) 2>&5
25603 ac_status=$?
25604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25605 test $ac_status = 0; }; }
25606 then
25607 if test x$gcc_cv_ld != x \
25608 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25609 gcc_cv_as_ix86_tlsldmplt=yes
25611 rm -f conftest
25612 else
25613 echo "configure: failed program was" >&5
25614 cat conftest.s >&5
25616 rm -f conftest.o conftest.s
25619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25620 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25623 cat >>confdefs.h <<_ACEOF
25624 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25625 _ACEOF
25628 # Enforce 32-bit output with gas and gld.
25629 if test x$gas = xyes; then
25630 as_ix86_tls_ldm_opt="--32"
25632 if echo "$ld_ver" | grep GNU > /dev/null; then
25633 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25634 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25635 else
25636 ld_ix86_tls_ldm_opt="-melf_i386"
25639 conftest_s='
25640 .section .text,"ax",@progbits
25641 .globl _start
25642 .type _start, @function
25643 _start:
25644 leal value@tlsldm(%ebx), %eax
25645 call ___tls_get_addr@plt
25647 .section .tdata,"aw'$tls_section_flag'",@progbits
25648 .type value, @object
25649 value:'
25650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25651 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25652 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25653 $as_echo_n "(cached) " >&6
25654 else
25655 gcc_cv_as_ix86_tlsldm=no
25656 if test x$gcc_cv_as != x; then
25657 $as_echo "$conftest_s" > conftest.s
25658 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25660 (eval $ac_try) 2>&5
25661 ac_status=$?
25662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25663 test $ac_status = 0; }; }
25664 then
25665 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25666 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25667 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25668 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25669 gcc_cv_as_ix86_tlsldm=yes
25672 rm -f conftest
25673 else
25674 echo "configure: failed program was" >&5
25675 cat conftest.s >&5
25677 rm -f conftest.o conftest.s
25680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25681 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25684 cat >>confdefs.h <<_ACEOF
25685 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25686 _ACEOF
25691 ia64*-*-*)
25692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25693 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25694 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25695 $as_echo_n "(cached) " >&6
25696 else
25697 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25698 if test $in_tree_gas = yes; then
25699 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25700 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25702 elif test x$gcc_cv_as != x; then
25703 $as_echo ' .text
25704 addl r15 = @ltoffx(x#), gp
25706 ld8.mov r16 = [r15], x#' > conftest.s
25707 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25709 (eval $ac_try) 2>&5
25710 ac_status=$?
25711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25712 test $ac_status = 0; }; }
25713 then
25714 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25715 else
25716 echo "configure: failed program was" >&5
25717 cat conftest.s >&5
25719 rm -f conftest.o conftest.s
25722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25723 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25724 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25726 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25732 powerpc*-*-*)
25733 case $target in
25734 *-*-aix*) conftest_s=' .machine "pwr5"
25735 .csect .text[PR]
25736 mfcr 3,128';;
25737 *-*-darwin*)
25738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25739 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25740 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25741 $as_echo_n "(cached) " >&6
25742 else
25743 gcc_cv_as_machine_directive=no
25744 if test x$gcc_cv_as != x; then
25745 $as_echo ' .machine ppc7400' > conftest.s
25746 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25748 (eval $ac_try) 2>&5
25749 ac_status=$?
25750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25751 test $ac_status = 0; }; }
25752 then
25753 gcc_cv_as_machine_directive=yes
25754 else
25755 echo "configure: failed program was" >&5
25756 cat conftest.s >&5
25758 rm -f conftest.o conftest.s
25761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25762 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25764 if test x$gcc_cv_as_machine_directive != xyes; then
25765 echo "*** This target requires an assembler supporting \".machine\"" >&2
25766 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25767 test x$build = x$target && exit 1
25769 conftest_s=' .text
25770 mfcr r3,128';;
25771 *) conftest_s=' .machine power4
25772 .text
25773 mfcr 3,128';;
25774 esac
25776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25777 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25778 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25779 $as_echo_n "(cached) " >&6
25780 else
25781 gcc_cv_as_powerpc_mfcrf=no
25782 if test $in_tree_gas = yes; then
25783 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25784 then gcc_cv_as_powerpc_mfcrf=yes
25786 elif test x$gcc_cv_as != x; then
25787 $as_echo "$conftest_s" > conftest.s
25788 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25790 (eval $ac_try) 2>&5
25791 ac_status=$?
25792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25793 test $ac_status = 0; }; }
25794 then
25795 gcc_cv_as_powerpc_mfcrf=yes
25796 else
25797 echo "configure: failed program was" >&5
25798 cat conftest.s >&5
25800 rm -f conftest.o conftest.s
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25804 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25805 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25807 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25811 case $target in
25812 *-*-aix*) conftest_s=' .machine "pwr5"
25813 .csect .text[PR]
25814 popcntb 3,3';;
25815 *) conftest_s=' .machine power5
25816 .text
25817 popcntb 3,3';;
25818 esac
25820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25821 $as_echo_n "checking assembler for popcntb support... " >&6; }
25822 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25823 $as_echo_n "(cached) " >&6
25824 else
25825 gcc_cv_as_powerpc_popcntb=no
25826 if test $in_tree_gas = yes; then
25827 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25828 then gcc_cv_as_powerpc_popcntb=yes
25830 elif test x$gcc_cv_as != x; then
25831 $as_echo "$conftest_s" > conftest.s
25832 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25834 (eval $ac_try) 2>&5
25835 ac_status=$?
25836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25837 test $ac_status = 0; }; }
25838 then
25839 gcc_cv_as_powerpc_popcntb=yes
25840 else
25841 echo "configure: failed program was" >&5
25842 cat conftest.s >&5
25844 rm -f conftest.o conftest.s
25847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25848 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25849 if test $gcc_cv_as_powerpc_popcntb = yes; then
25851 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25855 case $target in
25856 *-*-aix*) conftest_s=' .machine "pwr5x"
25857 .csect .text[PR]
25858 frin 1,1';;
25859 *) conftest_s=' .machine power5
25860 .text
25861 frin 1,1';;
25862 esac
25864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25865 $as_echo_n "checking assembler for fp round support... " >&6; }
25866 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25867 $as_echo_n "(cached) " >&6
25868 else
25869 gcc_cv_as_powerpc_fprnd=no
25870 if test $in_tree_gas = yes; then
25871 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25872 then gcc_cv_as_powerpc_fprnd=yes
25874 elif test x$gcc_cv_as != x; then
25875 $as_echo "$conftest_s" > conftest.s
25876 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25878 (eval $ac_try) 2>&5
25879 ac_status=$?
25880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25881 test $ac_status = 0; }; }
25882 then
25883 gcc_cv_as_powerpc_fprnd=yes
25884 else
25885 echo "configure: failed program was" >&5
25886 cat conftest.s >&5
25888 rm -f conftest.o conftest.s
25891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25892 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25893 if test $gcc_cv_as_powerpc_fprnd = yes; then
25895 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25899 case $target in
25900 *-*-aix*) conftest_s=' .machine "pwr6"
25901 .csect .text[PR]
25902 mffgpr 1,3';;
25903 *) conftest_s=' .machine power6
25904 .text
25905 mffgpr 1,3';;
25906 esac
25908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25909 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25910 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25911 $as_echo_n "(cached) " >&6
25912 else
25913 gcc_cv_as_powerpc_mfpgpr=no
25914 if test $in_tree_gas = yes; then
25915 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25916 then gcc_cv_as_powerpc_mfpgpr=yes
25918 elif test x$gcc_cv_as != x; then
25919 $as_echo "$conftest_s" > conftest.s
25920 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25922 (eval $ac_try) 2>&5
25923 ac_status=$?
25924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25925 test $ac_status = 0; }; }
25926 then
25927 gcc_cv_as_powerpc_mfpgpr=yes
25928 else
25929 echo "configure: failed program was" >&5
25930 cat conftest.s >&5
25932 rm -f conftest.o conftest.s
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25936 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25937 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25939 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25943 case $target in
25944 *-*-aix*) conftest_s=' .csect .text[PR]
25945 LCF..0:
25946 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25947 *-*-darwin*)
25948 conftest_s=' .text
25949 LCF0:
25950 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25951 *) conftest_s=' .text
25952 .LCF0:
25953 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25954 esac
25956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25957 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25958 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25959 $as_echo_n "(cached) " >&6
25960 else
25961 gcc_cv_as_powerpc_rel16=no
25962 if test $in_tree_gas = yes; then
25963 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25964 then gcc_cv_as_powerpc_rel16=yes
25966 elif test x$gcc_cv_as != x; then
25967 $as_echo "$conftest_s" > conftest.s
25968 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25970 (eval $ac_try) 2>&5
25971 ac_status=$?
25972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25973 test $ac_status = 0; }; }
25974 then
25975 gcc_cv_as_powerpc_rel16=yes
25976 else
25977 echo "configure: failed program was" >&5
25978 cat conftest.s >&5
25980 rm -f conftest.o conftest.s
25983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25984 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25985 if test $gcc_cv_as_powerpc_rel16 = yes; then
25987 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25991 case $target in
25992 *-*-aix*) conftest_s=' .machine "pwr6"
25993 .csect .text[PR]
25994 cmpb 3,4,5';;
25995 *) conftest_s=' .machine power6
25996 .text
25997 cmpb 3,4,5';;
25998 esac
26000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26001 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26002 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26003 $as_echo_n "(cached) " >&6
26004 else
26005 gcc_cv_as_powerpc_cmpb=no
26006 if test $in_tree_gas = yes; then
26007 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26008 then gcc_cv_as_powerpc_cmpb=yes
26010 elif test x$gcc_cv_as != x; then
26011 $as_echo "$conftest_s" > conftest.s
26012 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26014 (eval $ac_try) 2>&5
26015 ac_status=$?
26016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26017 test $ac_status = 0; }; }
26018 then
26019 gcc_cv_as_powerpc_cmpb=yes
26020 else
26021 echo "configure: failed program was" >&5
26022 cat conftest.s >&5
26024 rm -f conftest.o conftest.s
26027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26028 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26029 if test $gcc_cv_as_powerpc_cmpb = yes; then
26031 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26035 case $target in
26036 *-*-aix*) conftest_s=' .machine "pwr6"
26037 .csect .text[PR]
26038 dadd 1,2,3';;
26039 *) conftest_s=' .machine power6
26040 .text
26041 dadd 1,2,3';;
26042 esac
26044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26045 $as_echo_n "checking assembler for decimal float support... " >&6; }
26046 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26047 $as_echo_n "(cached) " >&6
26048 else
26049 gcc_cv_as_powerpc_dfp=no
26050 if test $in_tree_gas = yes; then
26051 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26052 then gcc_cv_as_powerpc_dfp=yes
26054 elif test x$gcc_cv_as != x; then
26055 $as_echo "$conftest_s" > conftest.s
26056 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26058 (eval $ac_try) 2>&5
26059 ac_status=$?
26060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26061 test $ac_status = 0; }; }
26062 then
26063 gcc_cv_as_powerpc_dfp=yes
26064 else
26065 echo "configure: failed program was" >&5
26066 cat conftest.s >&5
26068 rm -f conftest.o conftest.s
26071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26072 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26073 if test $gcc_cv_as_powerpc_dfp = yes; then
26075 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26079 case $target in
26080 *-*-aix*) conftest_s=' .machine "pwr7"
26081 .csect .text[PR]
26082 lxvd2x 1,2,3';;
26083 *) conftest_s=' .machine power7
26084 .text
26085 lxvd2x 1,2,3';;
26086 esac
26088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26089 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26090 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26091 $as_echo_n "(cached) " >&6
26092 else
26093 gcc_cv_as_powerpc_vsx=no
26094 if test $in_tree_gas = yes; then
26095 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26096 then gcc_cv_as_powerpc_vsx=yes
26098 elif test x$gcc_cv_as != x; then
26099 $as_echo "$conftest_s" > conftest.s
26100 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26102 (eval $ac_try) 2>&5
26103 ac_status=$?
26104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26105 test $ac_status = 0; }; }
26106 then
26107 gcc_cv_as_powerpc_vsx=yes
26108 else
26109 echo "configure: failed program was" >&5
26110 cat conftest.s >&5
26112 rm -f conftest.o conftest.s
26115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26116 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26117 if test $gcc_cv_as_powerpc_vsx = yes; then
26119 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26123 case $target in
26124 *-*-aix*) conftest_s=' .machine "pwr7"
26125 .csect .text[PR]
26126 popcntd 3,3';;
26127 *) conftest_s=' .machine power7
26128 .text
26129 popcntd 3,3';;
26130 esac
26132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26133 $as_echo_n "checking assembler for popcntd support... " >&6; }
26134 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26135 $as_echo_n "(cached) " >&6
26136 else
26137 gcc_cv_as_powerpc_popcntd=no
26138 if test $in_tree_gas = yes; then
26139 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26140 then gcc_cv_as_powerpc_popcntd=yes
26142 elif test x$gcc_cv_as != x; then
26143 $as_echo "$conftest_s" > conftest.s
26144 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26146 (eval $ac_try) 2>&5
26147 ac_status=$?
26148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26149 test $ac_status = 0; }; }
26150 then
26151 gcc_cv_as_powerpc_popcntd=yes
26152 else
26153 echo "configure: failed program was" >&5
26154 cat conftest.s >&5
26156 rm -f conftest.o conftest.s
26159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26160 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26161 if test $gcc_cv_as_powerpc_popcntd = yes; then
26163 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26167 case $target in
26168 *-*-aix*) conftest_s=' .machine "pwr8"
26169 .csect .text[PR]';;
26170 *) conftest_s=' .machine power8
26171 .text';;
26172 esac
26174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26175 $as_echo_n "checking assembler for power8 support... " >&6; }
26176 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26177 $as_echo_n "(cached) " >&6
26178 else
26179 gcc_cv_as_powerpc_power8=no
26180 if test $in_tree_gas = yes; then
26181 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26182 then gcc_cv_as_powerpc_power8=yes
26184 elif test x$gcc_cv_as != x; then
26185 $as_echo "$conftest_s" > conftest.s
26186 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26188 (eval $ac_try) 2>&5
26189 ac_status=$?
26190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26191 test $ac_status = 0; }; }
26192 then
26193 gcc_cv_as_powerpc_power8=yes
26194 else
26195 echo "configure: failed program was" >&5
26196 cat conftest.s >&5
26198 rm -f conftest.o conftest.s
26201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26202 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26203 if test $gcc_cv_as_powerpc_power8 = yes; then
26205 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26209 case $target in
26210 *-*-aix*) conftest_s=' .csect .text[PR]
26211 lwsync';;
26212 *) conftest_s=' .text
26213 lwsync';;
26214 esac
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26217 $as_echo_n "checking assembler for lwsync support... " >&6; }
26218 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26219 $as_echo_n "(cached) " >&6
26220 else
26221 gcc_cv_as_powerpc_lwsync=no
26222 if test $in_tree_gas = yes; then
26223 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26224 then gcc_cv_as_powerpc_lwsync=yes
26226 elif test x$gcc_cv_as != x; then
26227 $as_echo "$conftest_s" > conftest.s
26228 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26230 (eval $ac_try) 2>&5
26231 ac_status=$?
26232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26233 test $ac_status = 0; }; }
26234 then
26235 gcc_cv_as_powerpc_lwsync=yes
26236 else
26237 echo "configure: failed program was" >&5
26238 cat conftest.s >&5
26240 rm -f conftest.o conftest.s
26243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26244 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26245 if test $gcc_cv_as_powerpc_lwsync = yes; then
26247 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26251 case $target in
26252 *-*-aix*) conftest_s=' .machine "476"
26253 .csect .text[PR]
26254 dci 0';;
26255 *) conftest_s=' .machine "476"
26256 .text
26257 dci 0';;
26258 esac
26260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26261 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26262 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26263 $as_echo_n "(cached) " >&6
26264 else
26265 gcc_cv_as_powerpc_dci=no
26266 if test $in_tree_gas = yes; then
26267 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26268 then gcc_cv_as_powerpc_dci=yes
26270 elif test x$gcc_cv_as != x; then
26271 $as_echo "$conftest_s" > conftest.s
26272 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26274 (eval $ac_try) 2>&5
26275 ac_status=$?
26276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26277 test $ac_status = 0; }; }
26278 then
26279 gcc_cv_as_powerpc_dci=yes
26280 else
26281 echo "configure: failed program was" >&5
26282 cat conftest.s >&5
26284 rm -f conftest.o conftest.s
26287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26288 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26289 if test $gcc_cv_as_powerpc_dci = yes; then
26291 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26296 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26297 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26298 $as_echo_n "(cached) " >&6
26299 else
26300 gcc_cv_as_powerpc_gnu_attribute=no
26301 if test $in_tree_gas = yes; then
26302 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26303 then gcc_cv_as_powerpc_gnu_attribute=yes
26305 elif test x$gcc_cv_as != x; then
26306 $as_echo '.gnu_attribute 4,1' > conftest.s
26307 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26309 (eval $ac_try) 2>&5
26310 ac_status=$?
26311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26312 test $ac_status = 0; }; }
26313 then
26314 gcc_cv_as_powerpc_gnu_attribute=yes
26315 else
26316 echo "configure: failed program was" >&5
26317 cat conftest.s >&5
26319 rm -f conftest.o conftest.s
26322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26323 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26324 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26326 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26331 $as_echo_n "checking assembler for tls marker support... " >&6; }
26332 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26333 $as_echo_n "(cached) " >&6
26334 else
26335 gcc_cv_as_powerpc_tls_markers=no
26336 if test $in_tree_gas = yes; then
26337 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26338 then gcc_cv_as_powerpc_tls_markers=yes
26340 elif test x$gcc_cv_as != x; then
26341 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26342 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26344 (eval $ac_try) 2>&5
26345 ac_status=$?
26346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26347 test $ac_status = 0; }; }
26348 then
26349 gcc_cv_as_powerpc_tls_markers=yes
26350 else
26351 echo "configure: failed program was" >&5
26352 cat conftest.s >&5
26354 rm -f conftest.o conftest.s
26357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26358 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26359 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26361 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26365 case $target in
26366 *-*-aix*)
26367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26368 $as_echo_n "checking assembler for .ref support... " >&6; }
26369 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26370 $as_echo_n "(cached) " >&6
26371 else
26372 gcc_cv_as_aix_ref=no
26373 if test $in_tree_gas = yes; then
26374 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26375 then gcc_cv_as_aix_ref=yes
26377 elif test x$gcc_cv_as != x; then
26378 $as_echo ' .csect stuff[rw]
26379 stuff:
26380 .long 1
26381 .extern sym
26382 .ref sym
26383 ' > conftest.s
26384 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26386 (eval $ac_try) 2>&5
26387 ac_status=$?
26388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26389 test $ac_status = 0; }; }
26390 then
26391 gcc_cv_as_aix_ref=yes
26392 else
26393 echo "configure: failed program was" >&5
26394 cat conftest.s >&5
26396 rm -f conftest.o conftest.s
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26400 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26401 if test $gcc_cv_as_aix_ref = yes; then
26403 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26407 esac
26410 mips*-*-*)
26411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26412 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26413 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26414 $as_echo_n "(cached) " >&6
26415 else
26416 gcc_cv_as_mips_explicit_relocs=no
26417 if test $in_tree_gas = yes; then
26418 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26419 then gcc_cv_as_mips_explicit_relocs=yes
26421 elif test x$gcc_cv_as != x; then
26422 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26423 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26425 (eval $ac_try) 2>&5
26426 ac_status=$?
26427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26428 test $ac_status = 0; }; }
26429 then
26430 gcc_cv_as_mips_explicit_relocs=yes
26431 else
26432 echo "configure: failed program was" >&5
26433 cat conftest.s >&5
26435 rm -f conftest.o conftest.s
26438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26439 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26440 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26441 if test x$target_cpu_default = x
26442 then target_cpu_default=MASK_EXPLICIT_RELOCS
26443 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26447 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26448 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26449 $as_echo_n "(cached) " >&6
26450 else
26451 gcc_cv_as_mips_no_shared=no
26452 if test $in_tree_gas = yes; then
26453 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26454 then gcc_cv_as_mips_no_shared=yes
26456 elif test x$gcc_cv_as != x; then
26457 $as_echo 'nop' > conftest.s
26458 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26459 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26460 (eval $ac_try) 2>&5
26461 ac_status=$?
26462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26463 test $ac_status = 0; }; }
26464 then
26465 gcc_cv_as_mips_no_shared=yes
26466 else
26467 echo "configure: failed program was" >&5
26468 cat conftest.s >&5
26470 rm -f conftest.o conftest.s
26473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26474 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26475 if test $gcc_cv_as_mips_no_shared = yes; then
26477 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26482 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26483 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26484 $as_echo_n "(cached) " >&6
26485 else
26486 gcc_cv_as_mips_gnu_attribute=no
26487 if test $in_tree_gas = yes; then
26488 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26489 then gcc_cv_as_mips_gnu_attribute=yes
26491 elif test x$gcc_cv_as != x; then
26492 $as_echo '.gnu_attribute 4,1' > conftest.s
26493 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26495 (eval $ac_try) 2>&5
26496 ac_status=$?
26497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26498 test $ac_status = 0; }; }
26499 then
26500 gcc_cv_as_mips_gnu_attribute=yes
26501 else
26502 echo "configure: failed program was" >&5
26503 cat conftest.s >&5
26505 rm -f conftest.o conftest.s
26508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26509 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26510 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26512 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26517 $as_echo_n "checking assembler for .module support... " >&6; }
26518 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26519 $as_echo_n "(cached) " >&6
26520 else
26521 gcc_cv_as_mips_dot_module=no
26522 if test x$gcc_cv_as != x; then
26523 $as_echo '.module mips2
26524 .module fp=xx' > conftest.s
26525 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -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_mips_dot_module=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_mips_dot_module" >&5
26541 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26542 if test $gcc_cv_as_mips_dot_module = yes; then
26544 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26547 if test x$gcc_cv_as_mips_dot_module = xno \
26548 && test x$with_fp_32 != x; then
26549 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26553 $as_echo_n "checking assembler for .micromips support... " >&6; }
26554 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26555 $as_echo_n "(cached) " >&6
26556 else
26557 gcc_cv_as_micromips_support=no
26558 if test x$gcc_cv_as != x; then
26559 $as_echo '.set micromips' > conftest.s
26560 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26562 (eval $ac_try) 2>&5
26563 ac_status=$?
26564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26565 test $ac_status = 0; }; }
26566 then
26567 gcc_cv_as_micromips_support=yes
26568 else
26569 echo "configure: failed program was" >&5
26570 cat conftest.s >&5
26572 rm -f conftest.o conftest.s
26575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26576 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26577 if test $gcc_cv_as_micromips_support = yes; then
26579 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26584 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26585 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26586 $as_echo_n "(cached) " >&6
26587 else
26588 gcc_cv_as_mips_dtprelword=no
26589 if test $in_tree_gas = yes; then
26590 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26591 then gcc_cv_as_mips_dtprelword=yes
26593 elif test x$gcc_cv_as != x; then
26594 $as_echo '.section .tdata,"awT",@progbits
26596 .word 2
26597 .text
26598 .dtprelword x+0x8000' > conftest.s
26599 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26601 (eval $ac_try) 2>&5
26602 ac_status=$?
26603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26604 test $ac_status = 0; }; }
26605 then
26606 gcc_cv_as_mips_dtprelword=yes
26607 else
26608 echo "configure: failed program was" >&5
26609 cat conftest.s >&5
26611 rm -f conftest.o conftest.s
26614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26615 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26616 if test $gcc_cv_as_mips_dtprelword = yes; then
26618 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26623 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26624 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26625 $as_echo_n "(cached) " >&6
26626 else
26627 gcc_cv_as_mips_dspr1_mult=no
26628 if test x$gcc_cv_as != x; then
26629 $as_echo ' .set mips32r2
26630 .set nodspr2
26631 .set dsp
26632 madd $ac3,$4,$5
26633 maddu $ac3,$4,$5
26634 msub $ac3,$4,$5
26635 msubu $ac3,$4,$5
26636 mult $ac3,$4,$5
26637 multu $ac3,$4,$5' > conftest.s
26638 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26640 (eval $ac_try) 2>&5
26641 ac_status=$?
26642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26643 test $ac_status = 0; }; }
26644 then
26645 gcc_cv_as_mips_dspr1_mult=yes
26646 else
26647 echo "configure: failed program was" >&5
26648 cat conftest.s >&5
26650 rm -f conftest.o conftest.s
26653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26654 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26655 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26657 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26662 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26663 gcc_cv_as_ld_jalr_reloc=no
26664 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26665 if test $in_tree_ld = yes ; then
26666 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 \
26667 && test $in_tree_ld_is_elf = yes; then
26668 gcc_cv_as_ld_jalr_reloc=yes
26670 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26671 echo ' .ent x' > conftest.s
26672 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26673 echo ' lw $25,%call16(y)($28)' >> conftest.s
26674 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26675 echo '1: jalr $25' >> conftest.s
26676 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26677 echo '1: jalr $25' >> conftest.s
26678 echo ' .end x' >> conftest.s
26679 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26680 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26681 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26682 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26683 gcc_cv_as_ld_jalr_reloc=yes
26686 rm -f conftest.*
26689 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26690 if test x$target_cpu_default = x; then
26691 target_cpu_default=MASK_RELAX_PIC_CALLS
26692 else
26693 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26697 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26700 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26701 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26702 $as_echo_n "(cached) " >&6
26703 else
26704 gcc_cv_ld_mips_personality_relaxation=no
26705 if test $in_tree_ld = yes ; then
26706 if test "$gcc_cv_gld_major_version" -eq 2 \
26707 -a "$gcc_cv_gld_minor_version" -ge 21 \
26708 -o "$gcc_cv_gld_major_version" -gt 2; then
26709 gcc_cv_ld_mips_personality_relaxation=yes
26711 elif test x$gcc_cv_as != x \
26712 -a x$gcc_cv_ld != x \
26713 -a x$gcc_cv_readelf != x ; then
26714 cat > conftest.s <<EOF
26715 .cfi_startproc
26716 .cfi_personality 0x80,indirect_ptr
26717 .ent test
26718 test:
26720 .end test
26721 .cfi_endproc
26723 .section .data,"aw",@progbits
26724 indirect_ptr:
26725 .dc.a personality
26727 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26728 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26729 if $gcc_cv_readelf -d conftest 2>&1 \
26730 | grep TEXTREL > /dev/null 2>&1; then
26732 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26733 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26735 else
26736 gcc_cv_ld_mips_personality_relaxation=yes
26740 rm -f conftest.s conftest.o conftest
26742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26743 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26744 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26746 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26751 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26752 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26753 $as_echo_n "(cached) " >&6
26754 else
26755 gcc_cv_as_mips_nan=no
26756 if test x$gcc_cv_as != x; then
26757 $as_echo '' > conftest.s
26758 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26760 (eval $ac_try) 2>&5
26761 ac_status=$?
26762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26763 test $ac_status = 0; }; }
26764 then
26765 gcc_cv_as_mips_nan=yes
26766 else
26767 echo "configure: failed program was" >&5
26768 cat conftest.s >&5
26770 rm -f conftest.o conftest.s
26773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26774 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26775 if test $gcc_cv_as_mips_nan = yes; then
26777 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26780 if test x$gcc_cv_as_mips_nan = xno \
26781 && test x$with_nan != x; then
26782 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26785 s390*-*-*)
26786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26787 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26788 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
26789 $as_echo_n "(cached) " >&6
26790 else
26791 gcc_cv_as_s390_gnu_attribute=no
26792 if test $in_tree_gas = yes; then
26793 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26794 then gcc_cv_as_s390_gnu_attribute=yes
26796 elif test x$gcc_cv_as != x; then
26797 $as_echo '.gnu_attribute 8,1' > conftest.s
26798 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26800 (eval $ac_try) 2>&5
26801 ac_status=$?
26802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26803 test $ac_status = 0; }; }
26804 then
26805 gcc_cv_as_s390_gnu_attribute=yes
26806 else
26807 echo "configure: failed program was" >&5
26808 cat conftest.s >&5
26810 rm -f conftest.o conftest.s
26813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
26814 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
26815 if test $gcc_cv_as_s390_gnu_attribute = yes; then
26817 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26821 esac
26823 # Mips and HP-UX need the GNU assembler.
26824 # Linux on IA64 might be able to use the Intel assembler.
26826 case "$target" in
26827 mips*-*-* | *-*-hpux* )
26828 if test x$gas_flag = xyes \
26829 || test x"$host" != x"$build" \
26830 || test ! -x "$gcc_cv_as" \
26831 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26833 else
26834 echo "*** This configuration requires the GNU assembler" >&2
26835 exit 1
26838 esac
26840 # ??? Not all targets support dwarf2 debug_line, even within a version
26841 # of gas. Moreover, we need to emit a valid instruction to trigger any
26842 # info to the output file. So, as supported targets are added to gas 2.11,
26843 # add some instruction here to (also) show we expect this might work.
26844 # ??? Once 2.11 is released, probably need to add first known working
26845 # version to the per-target configury.
26846 case "$cpu_type" in
26847 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26848 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26849 | visium | xstormy16 | xtensa)
26850 insn="nop"
26852 ia64 | s390)
26853 insn="nop 0"
26855 mmix)
26856 insn="swym 0"
26858 esac
26859 if test x"$insn" != x; then
26860 conftest_s="\
26861 .file 1 \"conftest.s\"
26862 .loc 1 3 0
26863 $insn"
26864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26865 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26866 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26867 $as_echo_n "(cached) " >&6
26868 else
26869 gcc_cv_as_dwarf2_debug_line=no
26870 if test $in_tree_gas = yes; then
26871 if test $in_tree_gas_is_elf = yes \
26872 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26873 then gcc_cv_as_dwarf2_debug_line=yes
26875 elif test x$gcc_cv_as != x; then
26876 $as_echo "$conftest_s" > conftest.s
26877 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26879 (eval $ac_try) 2>&5
26880 ac_status=$?
26881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26882 test $ac_status = 0; }; }
26883 then
26884 if test x$gcc_cv_objdump != x \
26885 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26886 | grep debug_line > /dev/null 2>&1; then
26887 gcc_cv_as_dwarf2_debug_line=yes
26889 else
26890 echo "configure: failed program was" >&5
26891 cat conftest.s >&5
26893 rm -f conftest.o conftest.s
26896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26897 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26900 # The .debug_line file table must be in the exact order that
26901 # we specified the files, since these indices are also used
26902 # by DW_AT_decl_file. Approximate this test by testing if
26903 # the assembler bitches if the same index is assigned twice.
26904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26905 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26906 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26907 $as_echo_n "(cached) " >&6
26908 else
26909 gcc_cv_as_dwarf2_file_buggy=no
26910 if test x$gcc_cv_as != x; then
26911 $as_echo ' .file 1 "foo.s"
26912 .file 1 "bar.s"' > conftest.s
26913 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26915 (eval $ac_try) 2>&5
26916 ac_status=$?
26917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26918 test $ac_status = 0; }; }
26919 then
26920 gcc_cv_as_dwarf2_file_buggy=yes
26921 else
26922 echo "configure: failed program was" >&5
26923 cat conftest.s >&5
26925 rm -f conftest.o conftest.s
26928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26929 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26932 if test $gcc_cv_as_dwarf2_debug_line = yes \
26933 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26935 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26940 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26941 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26942 $as_echo_n "(cached) " >&6
26943 else
26944 gcc_cv_as_gdwarf2_flag=no
26945 if test $in_tree_gas = yes; then
26946 if test $in_tree_gas_is_elf = yes \
26947 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26948 then gcc_cv_as_gdwarf2_flag=yes
26950 elif test x$gcc_cv_as != x; then
26951 $as_echo "$insn" > conftest.s
26952 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26954 (eval $ac_try) 2>&5
26955 ac_status=$?
26956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26957 test $ac_status = 0; }; }
26958 then
26959 gcc_cv_as_gdwarf2_flag=yes
26960 else
26961 echo "configure: failed program was" >&5
26962 cat conftest.s >&5
26964 rm -f conftest.o conftest.s
26967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26968 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26969 if test $gcc_cv_as_gdwarf2_flag = yes; then
26971 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26976 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26977 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26978 $as_echo_n "(cached) " >&6
26979 else
26980 gcc_cv_as_gstabs_flag=no
26981 if test $in_tree_gas = yes; then
26982 if test $in_tree_gas_is_elf = yes \
26983 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26984 then gcc_cv_as_gstabs_flag=yes
26986 elif test x$gcc_cv_as != x; then
26987 $as_echo "$insn" > conftest.s
26988 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26990 (eval $ac_try) 2>&5
26991 ac_status=$?
26992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26993 test $ac_status = 0; }; }
26994 then
26995 gcc_cv_as_gstabs_flag=yes
26996 else
26997 echo "configure: failed program was" >&5
26998 cat conftest.s >&5
27000 rm -f conftest.o conftest.s
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27004 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27005 if test $gcc_cv_as_gstabs_flag = yes; then
27007 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27012 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27013 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27014 $as_echo_n "(cached) " >&6
27015 else
27016 gcc_cv_as_debug_prefix_map_flag=no
27017 if test $in_tree_gas = yes; then
27018 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27019 then gcc_cv_as_debug_prefix_map_flag=yes
27021 elif test x$gcc_cv_as != x; then
27022 $as_echo "$insn" > conftest.s
27023 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27025 (eval $ac_try) 2>&5
27026 ac_status=$?
27027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27028 test $ac_status = 0; }; }
27029 then
27030 gcc_cv_as_debug_prefix_map_flag=yes
27031 else
27032 echo "configure: failed program was" >&5
27033 cat conftest.s >&5
27035 rm -f conftest.o conftest.s
27038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27039 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27040 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27042 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27048 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27049 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27050 $as_echo_n "(cached) " >&6
27051 else
27052 gcc_cv_as_compress_debug=no
27053 if test x$gcc_cv_as != x; then
27054 $as_echo '' > conftest.s
27055 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
27056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27057 (eval $ac_try) 2>&5
27058 ac_status=$?
27059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27060 test $ac_status = 0; }; }
27061 then
27062 # gas compiled without zlib cannot compress debug sections and warns
27063 # about it, but still exits successfully. So check for this, too.
27064 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27065 then
27066 gcc_cv_as_compress_debug=0
27067 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27068 then
27069 gcc_cv_as_compress_debug=1
27070 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27071 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27072 else
27073 gcc_cv_as_compress_debug=0
27074 # FIXME: Future gas versions will support ELF gABI style via
27075 # --compress-debug-sections[=type].
27077 else
27078 echo "configure: failed program was" >&5
27079 cat conftest.s >&5
27081 rm -f conftest.o conftest.s
27084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27085 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27088 cat >>confdefs.h <<_ACEOF
27089 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27090 _ACEOF
27093 cat >>confdefs.h <<_ACEOF
27094 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27095 _ACEOF
27098 cat >>confdefs.h <<_ACEOF
27099 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27100 _ACEOF
27103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27104 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27105 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27106 $as_echo_n "(cached) " >&6
27107 else
27108 gcc_cv_as_lcomm_with_alignment=no
27109 if test x$gcc_cv_as != x; then
27110 $as_echo '.lcomm bar,4,16' > conftest.s
27111 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27113 (eval $ac_try) 2>&5
27114 ac_status=$?
27115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27116 test $ac_status = 0; }; }
27117 then
27118 gcc_cv_as_lcomm_with_alignment=yes
27119 else
27120 echo "configure: failed program was" >&5
27121 cat conftest.s >&5
27123 rm -f conftest.o conftest.s
27126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27127 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27128 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27130 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27134 if test x$with_sysroot = x && test x$host = x$target \
27135 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27136 && test "$prefix" != "NONE"; then
27138 cat >>confdefs.h <<_ACEOF
27139 #define PREFIX_INCLUDE_DIR "$prefix/include"
27140 _ACEOF
27144 # Determine the version of glibc, if any, used on the target.
27145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27146 $as_echo_n "checking for target glibc version... " >&6; }
27148 # Check whether --with-glibc-version was given.
27149 if test "${with_glibc_version+set}" = set; then :
27150 withval=$with_glibc_version;
27151 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27152 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27153 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27154 else
27155 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27157 else
27159 glibc_version_major=0
27160 glibc_version_minor=0
27161 if test -f $target_header_dir/features.h \
27162 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27163 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27164 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27165 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27170 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27172 cat >>confdefs.h <<_ACEOF
27173 #define TARGET_GLIBC_MAJOR $glibc_version_major
27174 _ACEOF
27177 cat >>confdefs.h <<_ACEOF
27178 #define TARGET_GLIBC_MINOR $glibc_version_minor
27179 _ACEOF
27182 # Check whether --enable-gnu-unique-object was given.
27183 if test "${enable_gnu_unique_object+set}" = set; then :
27184 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27185 yes | no) ;;
27186 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27187 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27188 esac
27189 else
27190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27191 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27192 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27193 $as_echo_n "(cached) " >&6
27194 else
27195 gcc_cv_as_gnu_unique_object=no
27196 if test $in_tree_gas = yes; then
27197 if test $in_tree_gas_is_elf = yes \
27198 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27199 then gcc_cv_as_gnu_unique_object=yes
27201 elif test x$gcc_cv_as != x; then
27202 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27203 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27205 (eval $ac_try) 2>&5
27206 ac_status=$?
27207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27208 test $ac_status = 0; }; }
27209 then
27210 gcc_cv_as_gnu_unique_object=yes
27211 else
27212 echo "configure: failed program was" >&5
27213 cat conftest.s >&5
27215 rm -f conftest.o conftest.s
27218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27219 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27220 if test $gcc_cv_as_gnu_unique_object = yes; then
27221 # We need to unquote above to to use the definition from config.gcc.
27222 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27224 if test $glibc_version_major -gt 2 \
27225 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27226 enable_gnu_unique_object=yes
27232 if test x$enable_gnu_unique_object = xyes; then
27234 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27239 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27240 if test "${gcc_cv_as_line_zero+set}" = set; then :
27241 $as_echo_n "(cached) " >&6
27242 else
27243 gcc_cv_as_line_zero=no
27244 if test $in_tree_gas = yes; then
27245 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27246 then gcc_cv_as_line_zero=yes
27248 elif test "x$gcc_cv_as" != x; then
27249 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27250 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27252 (eval $ac_try) 2>&5
27253 ac_status=$?
27254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27255 test $ac_status = 0; }; } &&
27256 test "x`cat conftest.out`" = x
27257 then
27258 gcc_cv_as_line_zero=yes
27259 else
27260 echo "configure: failed program was" >&5
27261 cat conftest.s >&5
27262 echo "configure: error output was" >&5
27263 cat conftest.out >&5
27265 rm -f conftest.o conftest.s conftest.out
27268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27269 $as_echo "$gcc_cv_as_line_zero" >&6; }
27270 if test "x$gcc_cv_as_line_zero" = xyes; then
27272 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27277 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27278 gcc_cv_ld_eh_frame_hdr=no
27279 if test $in_tree_ld = yes ; then
27280 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 \
27281 && test $in_tree_ld_is_elf = yes; then
27282 gcc_cv_ld_eh_frame_hdr=yes
27284 elif test x$gcc_cv_ld != x; then
27285 if echo "$ld_ver" | grep GNU > /dev/null; then
27286 # Check if linker supports --eh-frame-hdr option
27287 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
27288 gcc_cv_ld_eh_frame_hdr=yes
27290 else
27291 case "$target" in
27292 *-*-solaris2*)
27293 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27294 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27295 gcc_cv_ld_eh_frame_hdr=yes
27298 esac
27302 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
27304 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27308 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27311 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27312 gcc_cv_ld_eh_frame_ciev3=no
27313 if test $in_tree_ld = yes ; then
27314 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 \
27315 && test $in_tree_ld_is_elf = yes; then
27316 gcc_cv_ld_eh_frame_ciev3=yes
27318 elif test x$gcc_cv_ld != x; then
27319 if echo "$ld_ver" | grep GNU > /dev/null; then
27320 gcc_cv_ld_eh_frame_ciev3=yes
27321 if test 0"$ld_date" -lt 20040513; then
27322 if test -n "$ld_date"; then
27323 # If there was date string, but was earlier than 2004-05-13, fail
27324 gcc_cv_ld_eh_frame_ciev3=no
27325 elif test "$ld_vers_major" -lt 2; then
27326 gcc_cv_ld_eh_frame_ciev3=no
27327 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27328 gcc_cv_ld_eh_frame_ciev3=no
27331 else
27332 case "$target" in
27333 *-*-solaris2*)
27334 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27335 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
27336 gcc_cv_ld_eh_frame_ciev3=yes
27339 esac
27343 cat >>confdefs.h <<_ACEOF
27344 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27345 _ACEOF
27347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27348 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27351 $as_echo_n "checking linker position independent executable support... " >&6; }
27352 gcc_cv_ld_pie=no
27353 if test $in_tree_ld = yes ; then
27354 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 \
27355 && test $in_tree_ld_is_elf = yes; then
27356 gcc_cv_ld_pie=yes
27358 elif test x$gcc_cv_ld != x; then
27359 # Check if linker supports -pie option
27360 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27361 gcc_cv_ld_pie=yes
27364 if test x"$gcc_cv_ld_pie" = xyes; then
27366 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27370 $as_echo "$gcc_cv_ld_pie" >&6; }
27372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27373 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27374 gcc_cv_ld_pie_copyreloc=no
27375 if test $gcc_cv_ld_pie = yes ; then
27376 if test $in_tree_ld = yes ; then
27377 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
27378 gcc_cv_ld_pie_copyreloc=yes
27380 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27381 # Check if linker supports -pie option with copy reloc
27382 case "$target" in
27383 i?86-*-linux* | x86_64-*-linux*)
27384 cat > conftest1.s <<EOF
27385 .globl a_glob
27386 .data
27387 .type a_glob, @object
27388 .size a_glob, 4
27389 a_glob:
27390 .long 2
27392 cat > conftest2.s <<EOF
27393 .text
27394 .globl main
27395 .type main, @function
27396 main:
27397 movl %eax, a_glob(%rip)
27398 .size main, .-main
27399 .globl ptr
27400 .section .data.rel,"aw",@progbits
27401 .type ptr, @object
27402 ptr:
27403 .quad a_glob
27405 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27406 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
27407 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27408 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
27409 gcc_cv_ld_pie_copyreloc=yes
27411 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27413 esac
27417 cat >>confdefs.h <<_ACEOF
27418 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27419 _ACEOF
27421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27422 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27425 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27426 gcc_cv_ld_eh_gc_sections=no
27427 if test $in_tree_ld = yes ; then
27428 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 \
27429 && test $in_tree_ld_is_elf = yes; then
27430 gcc_cv_ld_eh_gc_sections=yes
27432 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27433 cat > conftest.s <<EOF
27434 .section .text
27435 .globl _start
27436 .type _start, @function
27437 _start:
27438 .long foo
27439 .size _start, .-_start
27440 .section .text.foo,"ax",@progbits
27441 .type foo, @function
27442 foo:
27443 .long 0
27444 .size foo, .-foo
27445 .section .gcc_except_table.foo,"a",@progbits
27446 .L0:
27447 .long 0
27448 .section .eh_frame,"a",@progbits
27449 .long .L0
27451 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27452 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27453 | grep "gc-sections option ignored" > /dev/null; then
27454 gcc_cv_ld_eh_gc_sections=no
27455 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27456 | grep gcc_except_table > /dev/null; then
27457 gcc_cv_ld_eh_gc_sections=yes
27458 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27459 if test x$gcc_cv_as_comdat_group != xyes; then
27460 gcc_cv_ld_eh_gc_sections=no
27461 cat > conftest.s <<EOF
27462 .section .text
27463 .globl _start
27464 .type _start, @function
27465 _start:
27466 .long foo
27467 .size _start, .-_start
27468 .section .gnu.linkonce.t.foo,"ax",@progbits
27469 .type foo, @function
27470 foo:
27471 .long 0
27472 .size foo, .-foo
27473 .section .gcc_except_table.foo,"a",@progbits
27474 .L0:
27475 .long 0
27476 .section .eh_frame,"a",@progbits
27477 .long .L0
27479 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27480 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27481 | grep "gc-sections option ignored" > /dev/null; then
27482 gcc_cv_ld_eh_gc_sections=no
27483 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27484 | grep gcc_except_table > /dev/null; then
27485 gcc_cv_ld_eh_gc_sections=yes
27491 rm -f conftest.s conftest.o conftest
27493 case "$target" in
27494 hppa*-*-linux*)
27495 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27496 gcc_cv_ld_eh_gc_sections=no
27498 esac
27499 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
27501 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27505 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27508 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27509 gcc_cv_ld_eh_gc_sections_bug=no
27510 if test $in_tree_ld = yes ; then
27511 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 \
27512 && test $in_tree_ld_is_elf = yes; then
27513 gcc_cv_ld_eh_gc_sections_bug=yes
27515 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
27516 gcc_cv_ld_eh_gc_sections_bug=yes
27517 cat > conftest.s <<EOF
27518 .section .text
27519 .globl _start
27520 .type _start, @function
27521 _start:
27522 .long foo
27523 .size _start, .-_start
27524 .section .text.startup.foo,"ax",@progbits
27525 .type foo, @function
27526 foo:
27527 .long 0
27528 .size foo, .-foo
27529 .section .gcc_except_table.foo,"a",@progbits
27530 .L0:
27531 .long 0
27532 .section .eh_frame,"a",@progbits
27533 .long .L0
27535 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27536 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27537 | grep "gc-sections option ignored" > /dev/null; then
27539 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27540 | grep gcc_except_table > /dev/null; then
27541 gcc_cv_ld_eh_gc_sections_bug=no
27544 rm -f conftest.s conftest.o conftest
27546 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27548 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27552 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27555 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27556 # gold/gld support compressed debug sections since binutils 2.19/2.21
27557 if test $in_tree_ld = yes ; then
27558 gcc_cv_ld_compress_debug=0
27559 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 \
27560 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27561 gcc_cv_ld_compress_debug=2
27562 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27563 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 \
27564 && test $in_tree_ld_is_elf = yes; then
27565 gcc_cv_ld_compress_debug=1
27567 elif echo "$ld_ver" | grep GNU > /dev/null; then
27568 gcc_cv_ld_compress_debug=1
27569 if test 0"$ld_date" -lt 20050308; then
27570 if test -n "$ld_date"; then
27571 # If there was date string, but was earlier than 2005-03-08, fail
27572 gcc_cv_ld_compress_debug=0
27573 elif test "$ld_vers_major" -lt 2; then
27574 gcc_cv_ld_compress_debug=0
27575 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27576 gcc_cv_ld_compress_debug=0
27579 if test $ld_is_gold = yes; then
27580 gcc_cv_ld_compress_debug=2
27581 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27583 else
27584 case "${target}" in
27585 *-*-solaris2*)
27586 # Introduced in Solaris 11.2.
27587 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
27588 gcc_cv_ld_compress_debug=3
27589 gcc_cv_ld_compress_debug_option="-z compress-sections"
27590 else
27591 gcc_cv_ld_compress_debug=0
27595 # Assume linkers other than GNU ld don't support compessed debug
27596 # sections.
27597 gcc_cv_ld_compress_debug=0
27599 esac
27602 cat >>confdefs.h <<_ACEOF
27603 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27604 _ACEOF
27607 cat >>confdefs.h <<_ACEOF
27608 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27609 _ACEOF
27611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27612 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27614 # --------
27615 # UNSORTED
27616 # --------
27618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27619 $as_echo_n "checking linker --as-needed support... " >&6; }
27620 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27621 $as_echo_n "(cached) " >&6
27622 else
27623 gcc_cv_ld_as_needed=no
27624 gcc_cv_ld_as_needed_option='--as-needed'
27625 gcc_cv_ld_no_as_needed_option='--no-as-needed'
27626 if test $in_tree_ld = yes ; then
27627 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 \
27628 && test $in_tree_ld_is_elf = yes; then
27629 gcc_cv_ld_as_needed=yes
27631 elif test x$gcc_cv_ld != x; then
27632 # Check if linker supports --as-needed and --no-as-needed options
27633 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
27634 gcc_cv_ld_as_needed=yes
27635 else
27636 case "$target" in
27637 # Solaris 2 ld always supports -z ignore/-z record.
27638 *-*-solaris2*)
27639 gcc_cv_ld_as_needed=yes
27640 gcc_cv_ld_as_needed_option="-z ignore"
27641 gcc_cv_ld_no_as_needed_option="-z record"
27643 esac
27646 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27647 # dl_iterate_phdr, i.e. since Solaris 11.
27648 case "$target" in
27649 *-*-solaris2.1[1-9]*)
27650 case "$target" in
27651 i?86-*-* | x86_64-*-*)
27652 if echo "$ld_ver" | grep GNU > /dev/null; then
27653 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27654 gcc_cv_ld_as_needed=no
27657 esac
27659 *-*-solaris2*)
27660 gcc_cv_ld_as_needed=no
27662 esac
27665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27666 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27667 if test x"$gcc_cv_ld_as_needed" = xyes; then
27669 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27672 cat >>confdefs.h <<_ACEOF
27673 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27674 _ACEOF
27677 cat >>confdefs.h <<_ACEOF
27678 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27679 _ACEOF
27683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27684 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27685 saved_LDFLAGS="$LDFLAGS"
27686 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
27687 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27689 /* end confdefs.h. */
27690 int main(void) {return 0;}
27691 _ACEOF
27692 if ac_fn_cxx_try_link "$LINENO"; then :
27693 gcc_cv_ld_clearcap=yes; break
27694 else
27695 gcc_cv_ld_clearcap=no
27697 rm -f core conftest.err conftest.$ac_objext \
27698 conftest$ac_exeext conftest.$ac_ext
27699 done
27700 LDFLAGS="$saved_LDFLAGS"
27701 if test "x$gcc_cv_ld_clearcap" = xyes; then
27703 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27705 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27709 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27711 case "$target:$tm_file" in
27712 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27713 case "$target" in
27714 *le-*-linux*)
27715 emul_name="-melf64lppc"
27717 *-*-linux*)
27718 emul_name="-melf64ppc"
27720 *-*-freebsd*)
27721 emul_name="-melf64ppc_fbsd"
27723 esac
27724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27725 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27726 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27727 $as_echo_n "(cached) " >&6
27728 else
27729 gcc_cv_ld_no_dot_syms=no
27730 if test x"$ld_is_gold" = xyes; then
27731 gcc_cv_ld_no_dot_syms=yes
27732 elif test $in_tree_ld = yes ; then
27733 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
27734 gcc_cv_ld_no_dot_syms=yes
27736 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27737 cat > conftest1.s <<EOF
27738 .text
27739 bl .foo
27741 cat > conftest2.s <<EOF
27742 .section ".opd","aw"
27743 .align 3
27744 .globl foo
27745 .type foo,@function
27746 foo:
27747 .quad .LEfoo,.TOC.@tocbase,0
27748 .text
27749 .LEfoo:
27751 .size foo,.-.LEfoo
27753 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27754 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27755 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27756 gcc_cv_ld_no_dot_syms=yes
27758 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27763 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27764 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27766 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27771 $as_echo_n "checking linker large toc support... " >&6; }
27772 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27773 $as_echo_n "(cached) " >&6
27774 else
27775 gcc_cv_ld_large_toc=no
27776 if test x"$ld_is_gold" = xyes; then
27777 gcc_cv_ld_large_toc=yes
27778 elif test $in_tree_ld = yes ; then
27779 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
27780 gcc_cv_ld_large_toc=yes
27782 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27783 cat > conftest.s <<EOF
27784 .section ".tbss","awT",@nobits
27785 .align 3
27786 ie0: .space 8
27787 .global _start
27788 .text
27789 _start:
27790 addis 9,13,ie0@got@tprel@ha
27791 ld 9,ie0@got@tprel@l(9)
27793 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27794 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27795 gcc_cv_ld_large_toc=yes
27797 rm -f conftest conftest.o conftest.s
27801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27802 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27803 if test x"$gcc_cv_ld_large_toc" = xyes; then
27805 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
27810 $as_echo_n "checking linker toc pointer alignment... " >&6; }
27811 if test "${gcc_cv_ld_toc_align+set}" = set; then :
27812 $as_echo_n "(cached) " >&6
27813 else
27814 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
27815 cat > conftest.s <<EOF
27816 .global _start
27817 .text
27818 _start:
27819 addis 9,2,x@got@ha
27820 .section .data.rel.ro,"aw",@progbits
27821 .p2align 16
27822 .space 32768
27823 x: .quad .TOC.
27825 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27826 && $gcc_cv_ld $emul_name -o conftest conftest.o > /dev/null 2>&1; then
27827 gcc_cv_ld_toc_align=`$gcc_cv_nm conftest | ${AWK} '/\.TOC\./ { match ($0, "0[[:xdigit:]]*", a); print strtonum ("0x" substr(a[0], length(a[0])-3)) }'`
27829 rm -f conftest conftest.o conftest.s
27833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
27834 $as_echo "$gcc_cv_ld_toc_align" >&6; }
27835 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
27837 cat >>confdefs.h <<_ACEOF
27838 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
27839 _ACEOF
27843 esac
27845 case "$target" in
27846 *-*-aix*)
27847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27848 $as_echo_n "checking linker large toc support... " >&6; }
27849 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27850 $as_echo_n "(cached) " >&6
27851 else
27852 gcc_cv_ld_large_toc=no
27853 if test x$gcc_cv_as != x ; then
27854 cat > conftest.s <<EOF
27855 .toc
27856 LC..1:
27857 .tc a[TC],a[RW]
27858 .extern a[RW]
27859 .csect .text[PR]
27860 .largetoctest:
27861 addis 9,LC..1@u(2)
27862 ld 3,LC..1@l(9)
27864 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27865 gcc_cv_ld_large_toc=yes
27867 rm -f conftest conftest.o conftest.s
27871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27872 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27873 if test x"$gcc_cv_ld_large_toc" = xyes; then
27875 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27879 esac
27881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27882 $as_echo_n "checking linker --build-id support... " >&6; }
27883 if test "${gcc_cv_ld_buildid+set}" = set; then :
27884 $as_echo_n "(cached) " >&6
27885 else
27886 gcc_cv_ld_buildid=no
27887 if test $in_tree_ld = yes ; then
27888 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27889 "$gcc_cv_gld_minor_version" -ge 18 -o \
27890 "$gcc_cv_gld_major_version" -gt 2 \
27891 && test $in_tree_ld_is_elf = yes; then
27892 gcc_cv_ld_buildid=yes
27894 elif test x$gcc_cv_ld != x; then
27895 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
27896 gcc_cv_ld_buildid=yes
27900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27901 $as_echo "$gcc_cv_ld_buildid" >&6; }
27902 if test x"$gcc_cv_ld_buildid" = xyes; then
27904 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27908 # Check whether --enable-linker-build-id was given.
27909 if test "${enable_linker_build_id+set}" = set; then :
27910 enableval=$enable_linker_build_id;
27911 else
27912 enable_linker_build_id=no
27916 if test x"$enable_linker_build_id" = xyes; then
27917 if test x"$gcc_cv_ld_buildid" = xyes; then
27919 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27921 else
27922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27923 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27927 # In binutils 2.21, GNU ld gained support for new emulations fully
27928 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27930 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27931 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27932 $as_echo_n "(cached) " >&6
27933 else
27934 gcc_cv_ld_sol2_emulation=no
27935 if test $in_tree_ld = yes ; then
27936 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27937 "$gcc_cv_gld_minor_version" -ge 21 -o \
27938 "$gcc_cv_gld_major_version" -gt 2 \
27939 && test $in_tree_ld_is_elf = yes; then
27940 gcc_cv_ld_sol2_emulation=yes
27942 elif test x$gcc_cv_ld != x; then
27943 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27944 grep _sol2 > /dev/null; then
27945 gcc_cv_ld_sol2_emulation=yes
27949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27950 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27951 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27953 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27958 $as_echo_n "checking linker --sysroot support... " >&6; }
27959 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27960 $as_echo_n "(cached) " >&6
27961 else
27962 gcc_cv_ld_sysroot=no
27963 if test $in_tree_ld = yes ; then
27964 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
27965 gcc_cv_ld_sysroot=yes
27967 elif test x$gcc_cv_ld != x; then
27968 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27969 gcc_cv_ld_sysroot=yes
27973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27974 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27975 if test x"$gcc_cv_ld_sysroot" = xyes; then
27977 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27981 # Test for stack protector support in target C library.
27982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27983 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27984 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27985 $as_echo_n "(cached) " >&6
27986 else
27987 gcc_cv_libc_provides_ssp=no
27988 case "$target" in
27989 *-*-musl*)
27990 # All versions of musl provide stack protector
27991 gcc_cv_libc_provides_ssp=yes;;
27992 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27993 # glibc 2.4 and later provides __stack_chk_fail and
27994 # either __stack_chk_guard, or TLS access to stack guard canary.
27996 if test $glibc_version_major -gt 2 \
27997 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27998 gcc_cv_libc_provides_ssp=yes
27999 else
28001 if test -f $target_header_dir/features.h \
28002 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28003 $target_header_dir/features.h > /dev/null; then
28004 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28005 $target_header_dir/features.h > /dev/null && \
28006 test -f $target_header_dir/bits/uClibc_config.h && \
28007 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28008 $target_header_dir/bits/uClibc_config.h > /dev/null; then
28009 gcc_cv_libc_provides_ssp=yes
28011 # all versions of Bionic support stack protector
28012 elif test -f $target_header_dir/sys/cdefs.h \
28013 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28014 $target_header_dir/sys/cdefs.h > /dev/null; then
28015 gcc_cv_libc_provides_ssp=yes
28019 *-*-gnu*)
28020 # Avoid complicated tests (see
28021 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28022 # simply assert that glibc does provide this, which is true for all
28023 # realistically usable GNU/Hurd configurations.
28024 # All supported versions of musl provide it as well
28025 gcc_cv_libc_provides_ssp=yes;;
28026 *-*-darwin* | *-*-freebsd*)
28027 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28028 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
28029 gcc_cv_libc_provides_ssp=yes
28030 else
28031 echo "no __stack_chk_fail on this target"
28035 *) gcc_cv_libc_provides_ssp=no ;;
28036 esac
28038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28039 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28041 if test x$gcc_cv_libc_provides_ssp = xyes; then
28043 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28047 # Test for <sys/sdt.h> on the target.
28049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28050 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28051 have_sys_sdt_h=no
28052 if test -f $target_header_dir/sys/sdt.h; then
28053 have_sys_sdt_h=yes
28055 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28059 $as_echo "$have_sys_sdt_h" >&6; }
28061 # Check if TFmode long double should be used by default or not.
28062 # Some glibc targets used DFmode long double, but with glibc 2.4
28063 # and later they can use TFmode.
28064 case "$target" in
28065 powerpc*-*-linux* | \
28066 sparc*-*-linux* | \
28067 s390*-*-linux* | \
28068 alpha*-*-linux*)
28070 # Check whether --with-long-double-128 was given.
28071 if test "${with_long_double_128+set}" = set; then :
28072 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
28073 else
28075 if test $glibc_version_major -gt 2 \
28076 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28077 gcc_cv_target_ldbl128=yes
28078 else
28080 gcc_cv_target_ldbl128=no
28081 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28082 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
28083 && gcc_cv_target_ldbl128=yes
28089 esac
28090 if test x$gcc_cv_target_ldbl128 = xyes; then
28092 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28097 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28098 gcc_cv_target_dl_iterate_phdr=unknown
28099 case "$target" in
28100 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
28101 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
28102 # libdl there, both complicating its use and breaking compatibility
28103 # between Solaris 10 updates.
28104 *-*-solaris2.1[1-9]*)
28105 # <link.h> needs both a dl_iterate_phdr declaration and support for
28106 # compilation with largefile support.
28107 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
28108 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
28109 gcc_cv_target_dl_iterate_phdr=yes
28110 else
28111 gcc_cv_target_dl_iterate_phdr=no
28114 *-*-dragonfly* | *-*-freebsd*)
28115 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
28116 gcc_cv_target_dl_iterate_phdr=yes
28117 else
28118 gcc_cv_target_dl_iterate_phdr=no
28121 *-linux-musl*)
28122 gcc_cv_target_dl_iterate_phdr=yes
28124 esac
28126 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
28128 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28132 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28134 # We no longer support different GC mechanisms. Emit an error if
28135 # the user configures with --with-gc.
28137 # Check whether --with-gc was given.
28138 if test "${with_gc+set}" = set; then :
28139 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28143 # Libraries to use on the host. This will normally be set by the top
28144 # level Makefile. Here we simply capture the value for our Makefile.
28145 if test -z "${HOST_LIBS+set}"; then
28146 HOST_LIBS=
28150 # Use the system's zlib library.
28152 # Use the system's zlib library.
28153 zlibdir="-L\$(top_builddir)/../zlib"
28154 zlibinc="-I\$(top_srcdir)/../zlib"
28156 # Check whether --with-system-zlib was given.
28157 if test "${with_system_zlib+set}" = set; then :
28158 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
28159 zlibdir=
28160 zlibinc=
28170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28171 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28172 # Check whether --enable-maintainer-mode was given.
28173 if test "${enable_maintainer_mode+set}" = set; then :
28174 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
28175 else
28176 maintainer_mode=no
28180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28181 $as_echo "$maintainer_mode" >&6; }
28183 if test "$maintainer_mode" = "yes"; then
28184 MAINT=''
28185 else
28186 MAINT='#'
28190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28191 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28192 # Check whether --enable-link-mutex was given.
28193 if test "${enable_link_mutex+set}" = set; then :
28194 enableval=$enable_link_mutex; do_link_mutex=$enableval
28195 else
28196 do_link_mutex=no
28199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28200 $as_echo "$do_link_mutex" >&6; }
28202 if test "$do_link_mutex" = "yes"; then
28203 DO_LINK_MUTEX=true
28204 else
28205 DO_LINK_MUTEX=false
28209 # --------------
28210 # Language hooks
28211 # --------------
28213 # Make empty files to contain the specs and options for each language.
28214 # Then add #include lines to for a compiler that has specs and/or options.
28216 subdirs=
28217 lang_opt_files=
28218 lang_specs_files=
28219 lang_tree_files=
28220 # These (without "all_") are set in each config-lang.in.
28221 # `language' must be a single word so is spelled singularly.
28222 all_languages=
28223 all_compilers=
28224 all_outputs='Makefile'
28225 # List of language makefile fragments.
28226 all_lang_makefrags=
28227 # Additional files for gengtype
28228 all_gtfiles="$target_gtfiles"
28230 # These are the languages that are set in --enable-languages,
28231 # and are available in the GCC tree.
28232 all_selected_languages=
28234 # Add the language fragments.
28235 # Languages are added via two mechanisms. Some information must be
28236 # recorded in makefile variables, these are defined in config-lang.in.
28237 # We accumulate them and plug them into the main Makefile.
28238 # The other mechanism is a set of hooks for each of the main targets
28239 # like `clean', `install', etc.
28241 language_hooks="Make-hooks"
28243 for lang in ${srcdir}/*/config-lang.in
28245 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28247 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28248 if test "x$lang_alias" = x
28249 then
28250 echo "$lang doesn't set \$language." 1>&2
28251 exit 1
28253 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28254 subdirs="$subdirs $subdir"
28256 # $gcc_subdir is where the gcc integration files are to be found
28257 # for a language, both for internal compiler purposes (compiler
28258 # sources implementing front-end to GCC tree converters), and for
28259 # build infrastructure purposes (Make-lang.in, etc.)
28261 # This will be <subdir> (relative to $srcdir) if a line like
28262 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28263 # is found in <langdir>/config-lang.in, and will remain <langdir>
28264 # otherwise.
28266 # Except for the language alias (fetched above), the regular
28267 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28268 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28269 # only this and the language alias.
28271 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28272 if [ "$gcc_subdir" = "" ]; then
28273 gcc_subdir="$subdir"
28276 case ",$enable_languages," in
28277 *,$lang_alias,*)
28278 all_selected_languages="$all_selected_languages $lang_alias"
28279 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
28280 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28283 esac
28285 language=
28286 boot_language=
28287 compilers=
28288 outputs=
28289 gtfiles=
28290 subdir_requires=
28291 . ${srcdir}/$gcc_subdir/config-lang.in
28292 if test "x$language" = x
28293 then
28294 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28295 exit 1
28298 ok=:
28299 case ",$enable_languages," in
28300 *,$lang_alias,*) ;;
28302 for i in $subdir_requires; do
28303 test -f "${srcdir}/$i/config-lang.in" && continue
28304 ok=false
28305 break
28306 done
28308 esac
28309 $ok || continue
28311 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28312 if test -f $srcdir/$gcc_subdir/lang.opt; then
28313 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28314 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28316 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
28317 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28319 all_languages="$all_languages $language"
28320 all_compilers="$all_compilers $compilers"
28321 all_outputs="$all_outputs $outputs"
28322 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
28323 case ",$enable_languages," in
28324 *,lto,*)
28326 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28328 enable_lto=yes
28331 *) ;;
28332 esac
28333 done
28335 check_languages=
28336 for language in $all_selected_languages
28338 check_languages="$check_languages check-$language"
28339 done
28341 # We link each language in with a set of hooks, reached indirectly via
28342 # lang.${target}. Only do so for selected languages.
28344 rm -f Make-hooks
28345 touch Make-hooks
28346 target_list="all.cross start.encap rest.encap tags \
28347 install-common install-man install-info install-pdf install-html dvi \
28348 pdf html uninstall info man srcextra srcman srcinfo \
28349 mostlyclean clean distclean maintainer-clean install-plugin"
28351 for t in $target_list
28354 for lang in $all_selected_languages
28356 x="$x $lang.$t"
28357 done
28358 echo "lang.$t: $x" >> Make-hooks
28359 done
28361 # --------
28362 # Option include files
28363 # --------
28365 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
28366 option_includes="option-includes.mk"
28369 # --------
28370 # UNSORTED
28371 # --------
28373 # Create .gdbinit.
28375 echo "dir ." > .gdbinit
28376 echo "dir ${srcdir}" >> .gdbinit
28377 if test x$gdb_needs_out_file_path = xyes
28378 then
28379 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28381 if test "x$subdirs" != x; then
28382 for s in $subdirs
28384 echo "dir ${srcdir}/$s" >> .gdbinit
28385 done
28387 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28388 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
28390 # Put a breakpoint on __asan_report_error to help with debugging buffer
28391 # overflow.
28392 case "$CFLAGS" in
28393 *-fsanitize=address*)
28394 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28396 esac
28398 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28402 # Find a directory in which to install a shared libgcc.
28404 # Check whether --enable-version-specific-runtime-libs was given.
28405 if test "${enable_version_specific_runtime_libs+set}" = set; then :
28406 enableval=$enable_version_specific_runtime_libs;
28410 # Substitute configuration variables
28473 # Echo link setup.
28474 if test x${build} = x${host} ; then
28475 if test x${host} = x${target} ; then
28476 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28477 else
28478 echo "Links are now set up to build a cross-compiler" 1>&2
28479 echo " from ${host} to ${target}." 1>&2
28481 else
28482 if test x${host} = x${target} ; then
28483 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28484 echo " for ${target}." 1>&2
28485 else
28486 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28487 echo " from ${host} to ${target}." 1>&2
28496 if test "x${ISLLIBS}" != "x" ; then
28498 $as_echo "#define HAVE_isl 1" >>confdefs.h
28502 # Check whether isl_schedule_constraints_compute_schedule is available;
28503 # it's new in ISL-0.13.
28504 # Check whether isl_options_set_schedule_serialize_sccs is available;
28505 # it's new in ISL-0.15.
28506 if test "x${ISLLIBS}" != "x" ; then
28507 saved_CXXFLAGS="$CXXFLAGS"
28508 CXXFLAGS="$CXXFLAGS $ISLINC"
28509 saved_LIBS="$LIBS"
28510 LIBS="$LIBS $ISLLIBS $GMPLIBS"
28512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_schedule_constraints_compute_schedule" >&5
28513 $as_echo_n "checking Checking for isl_schedule_constraints_compute_schedule... " >&6; }
28514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28515 /* end confdefs.h. */
28516 #include <isl/schedule.h>
28518 main ()
28520 isl_schedule_constraints_compute_schedule (NULL);
28522 return 0;
28524 _ACEOF
28525 if ac_fn_cxx_try_link "$LINENO"; then :
28526 ac_has_isl_schedule_constraints_compute_schedule=yes
28527 else
28528 ac_has_isl_schedule_constraints_compute_schedule=no
28530 rm -f core conftest.err conftest.$ac_objext \
28531 conftest$ac_exeext conftest.$ac_ext
28532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_schedule_constraints_compute_schedule" >&5
28533 $as_echo "$ac_has_isl_schedule_constraints_compute_schedule" >&6; }
28535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
28536 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
28537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28538 /* end confdefs.h. */
28539 #include <isl/schedule.h>
28541 main ()
28543 isl_options_set_schedule_serialize_sccs (NULL, 0);
28545 return 0;
28547 _ACEOF
28548 if ac_fn_cxx_try_link "$LINENO"; then :
28549 ac_has_isl_options_set_schedule_serialize_sccs=yes
28550 else
28551 ac_has_isl_options_set_schedule_serialize_sccs=no
28553 rm -f core conftest.err conftest.$ac_objext \
28554 conftest$ac_exeext conftest.$ac_ext
28555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
28556 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
28558 LIBS="$saved_LIBS"
28559 CXXFLAGS="$saved_CXXFLAGS"
28561 if test x"$ac_has_isl_schedule_constraints_compute_schedule" = x"yes"; then
28563 $as_echo "#define HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE 1" >>confdefs.h
28567 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
28569 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
28574 # Check for plugin support
28575 # Check whether --enable-plugin was given.
28576 if test "${enable_plugin+set}" = set; then :
28577 enableval=$enable_plugin; enable_plugin=$enableval
28578 else
28579 enable_plugin=yes; default_plugin=yes
28583 pluginlibs=
28585 case "${host}" in
28586 *-*-darwin*)
28587 if test x$build = x$host; then
28588 export_sym_check="nm${exeext} -g"
28589 elif test x$host = x$target; then
28590 export_sym_check="$gcc_cv_nm -g"
28591 else
28592 export_sym_check=
28596 if test x$build = x$host; then
28597 export_sym_check="objdump${exeext} -T"
28598 elif test x$host = x$target; then
28599 export_sym_check="$gcc_cv_objdump -T"
28600 else
28601 export_sym_check=
28604 esac
28606 if test x"$enable_plugin" = x"yes"; then
28608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28609 $as_echo_n "checking for exported symbols... " >&6; }
28610 if test "x$export_sym_check" != x; then
28611 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28612 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28613 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28614 : # No need to use a flag
28615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28616 $as_echo "yes" >&6; }
28617 else
28618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28619 $as_echo "yes" >&6; }
28620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28621 $as_echo_n "checking for -rdynamic... " >&6; }
28622 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28623 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28624 plugin_rdynamic=yes
28625 pluginlibs="-rdynamic"
28626 else
28627 plugin_rdynamic=no
28628 enable_plugin=no
28630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28631 $as_echo "$plugin_rdynamic" >&6; }
28633 else
28634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28635 $as_echo "unable to check" >&6; }
28638 # Check -ldl
28639 saved_LIBS="$LIBS"
28640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28641 $as_echo_n "checking for library containing dlopen... " >&6; }
28642 if test "${ac_cv_search_dlopen+set}" = set; then :
28643 $as_echo_n "(cached) " >&6
28644 else
28645 ac_func_search_save_LIBS=$LIBS
28646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28647 /* end confdefs.h. */
28649 /* Override any GCC internal prototype to avoid an error.
28650 Use char because int might match the return type of a GCC
28651 builtin and then its argument prototype would still apply. */
28652 #ifdef __cplusplus
28653 extern "C"
28654 #endif
28655 char dlopen ();
28657 main ()
28659 return dlopen ();
28661 return 0;
28663 _ACEOF
28664 for ac_lib in '' dl; do
28665 if test -z "$ac_lib"; then
28666 ac_res="none required"
28667 else
28668 ac_res=-l$ac_lib
28669 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28671 if ac_fn_cxx_try_link "$LINENO"; then :
28672 ac_cv_search_dlopen=$ac_res
28674 rm -f core conftest.err conftest.$ac_objext \
28675 conftest$ac_exeext
28676 if test "${ac_cv_search_dlopen+set}" = set; then :
28677 break
28679 done
28680 if test "${ac_cv_search_dlopen+set}" = set; then :
28682 else
28683 ac_cv_search_dlopen=no
28685 rm conftest.$ac_ext
28686 LIBS=$ac_func_search_save_LIBS
28688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28689 $as_echo "$ac_cv_search_dlopen" >&6; }
28690 ac_res=$ac_cv_search_dlopen
28691 if test "$ac_res" != no; then :
28692 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28696 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
28697 pluginlibs="$pluginlibs -ldl"
28699 LIBS="$saved_LIBS"
28701 # Check that we can build shared objects with -fPIC -shared
28702 saved_LDFLAGS="$LDFLAGS"
28703 saved_CFLAGS="$CFLAGS"
28704 case "${host}" in
28705 *-*-darwin*)
28706 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28707 CFLAGS="$CFLAGS -fPIC"
28708 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
28711 CFLAGS="$CFLAGS -fPIC"
28712 LDFLAGS="$LDFLAGS -fPIC -shared"
28714 esac
28715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28716 $as_echo_n "checking for -fPIC -shared... " >&6; }
28717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28718 /* end confdefs.h. */
28719 extern int X;
28721 main ()
28723 return X == 0;
28725 return 0;
28727 _ACEOF
28728 if ac_fn_cxx_try_link "$LINENO"; then :
28729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28730 $as_echo "yes" >&6; }; have_pic_shared=yes
28731 else
28732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28733 $as_echo "no" >&6; }; have_pic_shared=no
28735 rm -f core conftest.err conftest.$ac_objext \
28736 conftest$ac_exeext conftest.$ac_ext
28737 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
28738 pluginlibs=
28739 enable_plugin=no
28741 LDFLAGS="$saved_LDFLAGS"
28742 CFLAGS="$saved_CFLAGS"
28744 # If plugin support had been requested but not available, fail.
28745 if test x"$enable_plugin" = x"no" ; then
28746 if test x"$default_plugin" != x"yes"; then
28747 as_fn_error "
28748 Building GCC with plugin support requires a host that supports
28749 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28756 if test x"$enable_plugin" = x"yes"; then
28758 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28763 # Enable --enable-host-shared
28764 # Check whether --enable-host-shared was given.
28765 if test "${enable_host_shared+set}" = set; then :
28766 enableval=$enable_host_shared; PICFLAG=-fPIC
28767 else
28768 PICFLAG=
28775 # Check whether --enable-libquadmath-support was given.
28776 if test "${enable_libquadmath_support+set}" = set; then :
28777 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
28778 else
28779 ENABLE_LIBQUADMATH_SUPPORT=yes
28782 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28784 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28789 # Specify what hash style to use by default.
28791 # Check whether --with-linker-hash-style was given.
28792 if test "${with_linker_hash_style+set}" = set; then :
28793 withval=$with_linker_hash_style; case x"$withval" in
28794 xsysv)
28795 LINKER_HASH_STYLE=sysv
28797 xgnu)
28798 LINKER_HASH_STYLE=gnu
28800 xboth)
28801 LINKER_HASH_STYLE=both
28804 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28806 esac
28807 else
28808 LINKER_HASH_STYLE=''
28811 if test x"${LINKER_HASH_STYLE}" != x; then
28813 cat >>confdefs.h <<_ACEOF
28814 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28815 _ACEOF
28819 # Specify what should be the default of -fdiagnostics-color option.
28821 # Check whether --with-diagnostics-color was given.
28822 if test "${with_diagnostics_color+set}" = set; then :
28823 withval=$with_diagnostics_color; case x"$withval" in
28824 xnever)
28825 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
28827 xauto)
28828 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
28830 xauto-if-env)
28831 DIAGNOSTICS_COLOR_DEFAULT=-1
28833 xalways)
28834 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
28837 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
28839 esac
28840 else
28841 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
28845 cat >>confdefs.h <<_ACEOF
28846 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
28847 _ACEOF
28850 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
28851 # of jit/jit-playback.c.
28852 cat > gcc-driver-name.h <<EOF
28853 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
28856 # Check whether --enable-default-pie was given.
28857 # Check whether --enable-default-pie was given.
28858 if test "${enable_default_pie+set}" = set; then :
28859 enableval=$enable_default_pie; enable_default_pie=$enableval
28860 else
28861 enable_default_pie=no
28864 if test x$enable_default_pie == xyes ; then
28866 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
28871 # Check if -fno-PIE works.
28872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
28873 $as_echo_n "checking for -fno-PIE option... " >&6; }
28874 if test "${gcc_cv_c_no_fpie+set}" = set; then :
28875 $as_echo_n "(cached) " >&6
28876 else
28877 saved_CXXFLAGS="$CXXFLAGS"
28878 CXXFLAGS="$CXXFLAGS -fno-PIE"
28879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28880 /* end confdefs.h. */
28881 int main(void) {return 0;}
28882 _ACEOF
28883 if ac_fn_cxx_try_compile "$LINENO"; then :
28884 gcc_cv_c_no_fpie=yes
28885 else
28886 gcc_cv_c_no_fpie=no
28888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28889 CXXFLAGS="$saved_CXXFLAGS"
28891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
28892 $as_echo "$gcc_cv_c_no_fpie" >&6; }
28893 if test "$gcc_cv_c_no_fpie" = "yes"; then
28894 NO_PIE_CFLAGS="-fno-PIE"
28898 # Check if -no-pie works.
28899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
28900 $as_echo_n "checking for -no-pie option... " >&6; }
28901 if test "${gcc_cv_no_pie+set}" = set; then :
28902 $as_echo_n "(cached) " >&6
28903 else
28904 saved_LDFLAGS="$LDFLAGS"
28905 LDFLAGS="$LDFLAGS -no-pie"
28906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28907 /* end confdefs.h. */
28908 int main(void) {return 0;}
28909 _ACEOF
28910 if ac_fn_cxx_try_link "$LINENO"; then :
28911 gcc_cv_no_pie=yes
28912 else
28913 gcc_cv_no_pie=no
28915 rm -f core conftest.err conftest.$ac_objext \
28916 conftest$ac_exeext conftest.$ac_ext
28917 LDFLAGS="$saved_LDFLAGS"
28919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
28920 $as_echo "$gcc_cv_no_pie" >&6; }
28921 if test "$gcc_cv_no_pie" = "yes"; then
28922 NO_PIE_FLAG="-no-pie"
28926 # Check linker supports '-z bndplt'
28927 ld_bndplt_support=no
28928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
28929 $as_echo_n "checking linker -z bndplt option... " >&6; }
28930 if test x"$ld_is_gold" = xno; then
28931 if test $in_tree_ld = yes ; then
28932 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
28933 ld_bndplt_support=yes
28935 elif test x$gcc_cv_ld != x; then
28936 # Check if linker supports -a bndplt option
28937 if $gcc_cv_ld --help 2>/dev/null | grep -- '-z bndplt' > /dev/null; then
28938 ld_bndplt_support=yes
28942 if test x"$ld_bndplt_support" = xyes; then
28944 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
28947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
28948 $as_echo "$ld_bndplt_support" >&6; }
28950 # Configure the subdirectories
28951 # AC_CONFIG_SUBDIRS($subdirs)
28953 # Create the Makefile
28954 # and configure language subdirectories
28955 ac_config_files="$ac_config_files $all_outputs"
28958 ac_config_commands="$ac_config_commands default"
28960 cat >confcache <<\_ACEOF
28961 # This file is a shell script that caches the results of configure
28962 # tests run on this system so they can be shared between configure
28963 # scripts and configure runs, see configure's option --config-cache.
28964 # It is not useful on other systems. If it contains results you don't
28965 # want to keep, you may remove or edit it.
28967 # config.status only pays attention to the cache file if you give it
28968 # the --recheck option to rerun configure.
28970 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28971 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28972 # following values.
28974 _ACEOF
28976 # The following way of writing the cache mishandles newlines in values,
28977 # but we know of no workaround that is simple, portable, and efficient.
28978 # So, we kill variables containing newlines.
28979 # Ultrix sh set writes to stderr and can't be redirected directly,
28980 # and sets the high bit in the cache file unless we assign to the vars.
28982 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28983 eval ac_val=\$$ac_var
28984 case $ac_val in #(
28985 *${as_nl}*)
28986 case $ac_var in #(
28987 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28988 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28989 esac
28990 case $ac_var in #(
28991 _ | IFS | as_nl) ;; #(
28992 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28993 *) { eval $ac_var=; unset $ac_var;} ;;
28994 esac ;;
28995 esac
28996 done
28998 (set) 2>&1 |
28999 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29000 *${as_nl}ac_space=\ *)
29001 # `set' does not quote correctly, so add quotes: double-quote
29002 # substitution turns \\\\ into \\, and sed turns \\ into \.
29003 sed -n \
29004 "s/'/'\\\\''/g;
29005 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29006 ;; #(
29008 # `set' quotes correctly as required by POSIX, so do not add quotes.
29009 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29011 esac |
29012 sort
29014 sed '
29015 /^ac_cv_env_/b end
29016 t clear
29017 :clear
29018 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29019 t end
29020 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29021 :end' >>confcache
29022 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29023 if test -w "$cache_file"; then
29024 test "x$cache_file" != "x/dev/null" &&
29025 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29026 $as_echo "$as_me: updating cache $cache_file" >&6;}
29027 cat confcache >$cache_file
29028 else
29029 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29030 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29033 rm -f confcache
29035 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29036 # Let make expand exec_prefix.
29037 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29039 DEFS=-DHAVE_CONFIG_H
29041 ac_libobjs=
29042 ac_ltlibobjs=
29043 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29044 # 1. Remove the extension, and $U if already installed.
29045 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29046 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29047 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29048 # will be set to the directory where LIBOBJS objects are built.
29049 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29050 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29051 done
29052 LIBOBJS=$ac_libobjs
29054 LTLIBOBJS=$ac_ltlibobjs
29059 : ${CONFIG_STATUS=./config.status}
29060 ac_write_fail=0
29061 ac_clean_files_save=$ac_clean_files
29062 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29063 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29064 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29065 as_write_fail=0
29066 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29067 #! $SHELL
29068 # Generated by $as_me.
29069 # Run this file to recreate the current configuration.
29070 # Compiler output produced by configure, useful for debugging
29071 # configure, is in config.log if it exists.
29073 debug=false
29074 ac_cs_recheck=false
29075 ac_cs_silent=false
29077 SHELL=\${CONFIG_SHELL-$SHELL}
29078 export SHELL
29079 _ASEOF
29080 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29081 ## -------------------- ##
29082 ## M4sh Initialization. ##
29083 ## -------------------- ##
29085 # Be more Bourne compatible
29086 DUALCASE=1; export DUALCASE # for MKS sh
29087 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29088 emulate sh
29089 NULLCMD=:
29090 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29091 # is contrary to our usage. Disable this feature.
29092 alias -g '${1+"$@"}'='"$@"'
29093 setopt NO_GLOB_SUBST
29094 else
29095 case `(set -o) 2>/dev/null` in #(
29096 *posix*) :
29097 set -o posix ;; #(
29098 *) :
29100 esac
29104 as_nl='
29106 export as_nl
29107 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29108 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29109 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29110 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29111 # Prefer a ksh shell builtin over an external printf program on Solaris,
29112 # but without wasting forks for bash or zsh.
29113 if test -z "$BASH_VERSION$ZSH_VERSION" \
29114 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29115 as_echo='print -r --'
29116 as_echo_n='print -rn --'
29117 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29118 as_echo='printf %s\n'
29119 as_echo_n='printf %s'
29120 else
29121 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29122 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29123 as_echo_n='/usr/ucb/echo -n'
29124 else
29125 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29126 as_echo_n_body='eval
29127 arg=$1;
29128 case $arg in #(
29129 *"$as_nl"*)
29130 expr "X$arg" : "X\\(.*\\)$as_nl";
29131 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29132 esac;
29133 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29135 export as_echo_n_body
29136 as_echo_n='sh -c $as_echo_n_body as_echo'
29138 export as_echo_body
29139 as_echo='sh -c $as_echo_body as_echo'
29142 # The user is always right.
29143 if test "${PATH_SEPARATOR+set}" != set; then
29144 PATH_SEPARATOR=:
29145 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29146 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29147 PATH_SEPARATOR=';'
29152 # IFS
29153 # We need space, tab and new line, in precisely that order. Quoting is
29154 # there to prevent editors from complaining about space-tab.
29155 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29156 # splitting by setting IFS to empty value.)
29157 IFS=" "" $as_nl"
29159 # Find who we are. Look in the path if we contain no directory separator.
29160 case $0 in #((
29161 *[\\/]* ) as_myself=$0 ;;
29162 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29163 for as_dir in $PATH
29165 IFS=$as_save_IFS
29166 test -z "$as_dir" && as_dir=.
29167 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29168 done
29169 IFS=$as_save_IFS
29172 esac
29173 # We did not find ourselves, most probably we were run as `sh COMMAND'
29174 # in which case we are not to be found in the path.
29175 if test "x$as_myself" = x; then
29176 as_myself=$0
29178 if test ! -f "$as_myself"; then
29179 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29180 exit 1
29183 # Unset variables that we do not need and which cause bugs (e.g. in
29184 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29185 # suppresses any "Segmentation fault" message there. '((' could
29186 # trigger a bug in pdksh 5.2.14.
29187 for as_var in BASH_ENV ENV MAIL MAILPATH
29188 do eval test x\${$as_var+set} = xset \
29189 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29190 done
29191 PS1='$ '
29192 PS2='> '
29193 PS4='+ '
29195 # NLS nuisances.
29196 LC_ALL=C
29197 export LC_ALL
29198 LANGUAGE=C
29199 export LANGUAGE
29201 # CDPATH.
29202 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29205 # as_fn_error ERROR [LINENO LOG_FD]
29206 # ---------------------------------
29207 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29208 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29209 # script with status $?, using 1 if that was 0.
29210 as_fn_error ()
29212 as_status=$?; test $as_status -eq 0 && as_status=1
29213 if test "$3"; then
29214 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29215 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29217 $as_echo "$as_me: error: $1" >&2
29218 as_fn_exit $as_status
29219 } # as_fn_error
29222 # as_fn_set_status STATUS
29223 # -----------------------
29224 # Set $? to STATUS, without forking.
29225 as_fn_set_status ()
29227 return $1
29228 } # as_fn_set_status
29230 # as_fn_exit STATUS
29231 # -----------------
29232 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29233 as_fn_exit ()
29235 set +e
29236 as_fn_set_status $1
29237 exit $1
29238 } # as_fn_exit
29240 # as_fn_unset VAR
29241 # ---------------
29242 # Portably unset VAR.
29243 as_fn_unset ()
29245 { eval $1=; unset $1;}
29247 as_unset=as_fn_unset
29248 # as_fn_append VAR VALUE
29249 # ----------------------
29250 # Append the text in VALUE to the end of the definition contained in VAR. Take
29251 # advantage of any shell optimizations that allow amortized linear growth over
29252 # repeated appends, instead of the typical quadratic growth present in naive
29253 # implementations.
29254 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29255 eval 'as_fn_append ()
29257 eval $1+=\$2
29259 else
29260 as_fn_append ()
29262 eval $1=\$$1\$2
29264 fi # as_fn_append
29266 # as_fn_arith ARG...
29267 # ------------------
29268 # Perform arithmetic evaluation on the ARGs, and store the result in the
29269 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29270 # must be portable across $(()) and expr.
29271 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29272 eval 'as_fn_arith ()
29274 as_val=$(( $* ))
29276 else
29277 as_fn_arith ()
29279 as_val=`expr "$@" || test $? -eq 1`
29281 fi # as_fn_arith
29284 if expr a : '\(a\)' >/dev/null 2>&1 &&
29285 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29286 as_expr=expr
29287 else
29288 as_expr=false
29291 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29292 as_basename=basename
29293 else
29294 as_basename=false
29297 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29298 as_dirname=dirname
29299 else
29300 as_dirname=false
29303 as_me=`$as_basename -- "$0" ||
29304 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29305 X"$0" : 'X\(//\)$' \| \
29306 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29307 $as_echo X/"$0" |
29308 sed '/^.*\/\([^/][^/]*\)\/*$/{
29309 s//\1/
29312 /^X\/\(\/\/\)$/{
29313 s//\1/
29316 /^X\/\(\/\).*/{
29317 s//\1/
29320 s/.*/./; q'`
29322 # Avoid depending upon Character Ranges.
29323 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29324 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29325 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29326 as_cr_digits='0123456789'
29327 as_cr_alnum=$as_cr_Letters$as_cr_digits
29329 ECHO_C= ECHO_N= ECHO_T=
29330 case `echo -n x` in #(((((
29331 -n*)
29332 case `echo 'xy\c'` in
29333 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29334 xy) ECHO_C='\c';;
29335 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29336 ECHO_T=' ';;
29337 esac;;
29339 ECHO_N='-n';;
29340 esac
29342 rm -f conf$$ conf$$.exe conf$$.file
29343 if test -d conf$$.dir; then
29344 rm -f conf$$.dir/conf$$.file
29345 else
29346 rm -f conf$$.dir
29347 mkdir conf$$.dir 2>/dev/null
29349 if (echo >conf$$.file) 2>/dev/null; then
29350 if ln -s conf$$.file conf$$ 2>/dev/null; then
29351 as_ln_s='ln -s'
29352 # ... but there are two gotchas:
29353 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29354 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29355 # In both cases, we have to default to `cp -p'.
29356 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29357 as_ln_s='cp -p'
29358 elif ln conf$$.file conf$$ 2>/dev/null; then
29359 as_ln_s=ln
29360 else
29361 as_ln_s='cp -p'
29363 else
29364 as_ln_s='cp -p'
29366 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29367 rmdir conf$$.dir 2>/dev/null
29370 # as_fn_mkdir_p
29371 # -------------
29372 # Create "$as_dir" as a directory, including parents if necessary.
29373 as_fn_mkdir_p ()
29376 case $as_dir in #(
29377 -*) as_dir=./$as_dir;;
29378 esac
29379 test -d "$as_dir" || eval $as_mkdir_p || {
29380 as_dirs=
29381 while :; do
29382 case $as_dir in #(
29383 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29384 *) as_qdir=$as_dir;;
29385 esac
29386 as_dirs="'$as_qdir' $as_dirs"
29387 as_dir=`$as_dirname -- "$as_dir" ||
29388 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29389 X"$as_dir" : 'X\(//\)[^/]' \| \
29390 X"$as_dir" : 'X\(//\)$' \| \
29391 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29392 $as_echo X"$as_dir" |
29393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29394 s//\1/
29397 /^X\(\/\/\)[^/].*/{
29398 s//\1/
29401 /^X\(\/\/\)$/{
29402 s//\1/
29405 /^X\(\/\).*/{
29406 s//\1/
29409 s/.*/./; q'`
29410 test -d "$as_dir" && break
29411 done
29412 test -z "$as_dirs" || eval "mkdir $as_dirs"
29413 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29416 } # as_fn_mkdir_p
29417 if mkdir -p . 2>/dev/null; then
29418 as_mkdir_p='mkdir -p "$as_dir"'
29419 else
29420 test -d ./-p && rmdir ./-p
29421 as_mkdir_p=false
29424 if test -x / >/dev/null 2>&1; then
29425 as_test_x='test -x'
29426 else
29427 if ls -dL / >/dev/null 2>&1; then
29428 as_ls_L_option=L
29429 else
29430 as_ls_L_option=
29432 as_test_x='
29433 eval sh -c '\''
29434 if test -d "$1"; then
29435 test -d "$1/.";
29436 else
29437 case $1 in #(
29438 -*)set "./$1";;
29439 esac;
29440 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29441 ???[sx]*):;;*)false;;esac;fi
29442 '\'' sh
29445 as_executable_p=$as_test_x
29447 # Sed expression to map a string onto a valid CPP name.
29448 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29450 # Sed expression to map a string onto a valid variable name.
29451 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29454 exec 6>&1
29455 ## ----------------------------------- ##
29456 ## Main body of $CONFIG_STATUS script. ##
29457 ## ----------------------------------- ##
29458 _ASEOF
29459 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29462 # Save the log message, to keep $0 and so on meaningful, and to
29463 # report actual input values of CONFIG_FILES etc. instead of their
29464 # values after options handling.
29465 ac_log="
29466 This file was extended by $as_me, which was
29467 generated by GNU Autoconf 2.64. Invocation command line was
29469 CONFIG_FILES = $CONFIG_FILES
29470 CONFIG_HEADERS = $CONFIG_HEADERS
29471 CONFIG_LINKS = $CONFIG_LINKS
29472 CONFIG_COMMANDS = $CONFIG_COMMANDS
29473 $ $0 $@
29475 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29478 _ACEOF
29480 case $ac_config_files in *"
29481 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29482 esac
29484 case $ac_config_headers in *"
29485 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29486 esac
29489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29490 # Files that config.status was made for.
29491 config_files="$ac_config_files"
29492 config_headers="$ac_config_headers"
29493 config_links="$ac_config_links"
29494 config_commands="$ac_config_commands"
29496 _ACEOF
29498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29499 ac_cs_usage="\
29500 \`$as_me' instantiates files and other configuration actions
29501 from templates according to the current configuration. Unless the files
29502 and actions are specified as TAGs, all are instantiated by default.
29504 Usage: $0 [OPTION]... [TAG]...
29506 -h, --help print this help, then exit
29507 -V, --version print version number and configuration settings, then exit
29508 -q, --quiet, --silent
29509 do not print progress messages
29510 -d, --debug don't remove temporary files
29511 --recheck update $as_me by reconfiguring in the same conditions
29512 --file=FILE[:TEMPLATE]
29513 instantiate the configuration file FILE
29514 --header=FILE[:TEMPLATE]
29515 instantiate the configuration header FILE
29517 Configuration files:
29518 $config_files
29520 Configuration headers:
29521 $config_headers
29523 Configuration links:
29524 $config_links
29526 Configuration commands:
29527 $config_commands
29529 Report bugs to the package provider."
29531 _ACEOF
29532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29533 ac_cs_version="\\
29534 config.status
29535 configured by $0, generated by GNU Autoconf 2.64,
29536 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29538 Copyright (C) 2009 Free Software Foundation, Inc.
29539 This config.status script is free software; the Free Software Foundation
29540 gives unlimited permission to copy, distribute and modify it."
29542 ac_pwd='$ac_pwd'
29543 srcdir='$srcdir'
29544 AWK='$AWK'
29545 test -n "\$AWK" || AWK=awk
29546 _ACEOF
29548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29549 # The default lists apply if the user does not specify any file.
29550 ac_need_defaults=:
29551 while test $# != 0
29553 case $1 in
29554 --*=*)
29555 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29556 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29557 ac_shift=:
29560 ac_option=$1
29561 ac_optarg=$2
29562 ac_shift=shift
29564 esac
29566 case $ac_option in
29567 # Handling of the options.
29568 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29569 ac_cs_recheck=: ;;
29570 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29571 $as_echo "$ac_cs_version"; exit ;;
29572 --debug | --debu | --deb | --de | --d | -d )
29573 debug=: ;;
29574 --file | --fil | --fi | --f )
29575 $ac_shift
29576 case $ac_optarg in
29577 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29578 esac
29579 as_fn_append CONFIG_FILES " '$ac_optarg'"
29580 ac_need_defaults=false;;
29581 --header | --heade | --head | --hea )
29582 $ac_shift
29583 case $ac_optarg in
29584 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29585 esac
29586 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29587 ac_need_defaults=false;;
29588 --he | --h)
29589 # Conflict between --help and --header
29590 as_fn_error "ambiguous option: \`$1'
29591 Try \`$0 --help' for more information.";;
29592 --help | --hel | -h )
29593 $as_echo "$ac_cs_usage"; exit ;;
29594 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29595 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29596 ac_cs_silent=: ;;
29598 # This is an error.
29599 -*) as_fn_error "unrecognized option: \`$1'
29600 Try \`$0 --help' for more information." ;;
29602 *) as_fn_append ac_config_targets " $1"
29603 ac_need_defaults=false ;;
29605 esac
29606 shift
29607 done
29609 ac_configure_extra_args=
29611 if $ac_cs_silent; then
29612 exec 6>/dev/null
29613 ac_configure_extra_args="$ac_configure_extra_args --silent"
29616 _ACEOF
29617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29618 if \$ac_cs_recheck; then
29619 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29620 shift
29621 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29622 CONFIG_SHELL='$SHELL'
29623 export CONFIG_SHELL
29624 exec "\$@"
29627 _ACEOF
29628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29629 exec 5>>config.log
29631 echo
29632 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29633 ## Running $as_me. ##
29634 _ASBOX
29635 $as_echo "$ac_log"
29636 } >&5
29638 _ACEOF
29639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29641 # INIT-COMMANDS
29643 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29644 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29645 subdirs='$subdirs'
29647 _ACEOF
29649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29651 # Handling of arguments.
29652 for ac_config_target in $ac_config_targets
29654 case $ac_config_target in
29655 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
29656 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
29657 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
29658 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
29659 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
29660 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
29661 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
29662 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
29663 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29665 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29666 esac
29667 done
29670 # If the user did not use the arguments to specify the items to instantiate,
29671 # then the envvar interface is used. Set only those that are not.
29672 # We use the long form for the default assignment because of an extremely
29673 # bizarre bug on SunOS 4.1.3.
29674 if $ac_need_defaults; then
29675 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29676 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29677 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29678 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29681 # Have a temporary directory for convenience. Make it in the build tree
29682 # simply because there is no reason against having it here, and in addition,
29683 # creating and moving files from /tmp can sometimes cause problems.
29684 # Hook for its removal unless debugging.
29685 # Note that there is a small window in which the directory will not be cleaned:
29686 # after its creation but before its name has been assigned to `$tmp'.
29687 $debug ||
29689 tmp=
29690 trap 'exit_status=$?
29691 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29693 trap 'as_fn_exit 1' 1 2 13 15
29695 # Create a (secure) tmp directory for tmp files.
29698 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29699 test -n "$tmp" && test -d "$tmp"
29700 } ||
29702 tmp=./conf$$-$RANDOM
29703 (umask 077 && mkdir "$tmp")
29704 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
29706 # Set up the scripts for CONFIG_FILES section.
29707 # No need to generate them if there are no CONFIG_FILES.
29708 # This happens for instance with `./config.status config.h'.
29709 if test -n "$CONFIG_FILES"; then
29711 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
29712 ac_cs_awk_getline=:
29713 ac_cs_awk_pipe_init=
29714 ac_cs_awk_read_file='
29715 while ((getline aline < (F[key])) > 0)
29716 print(aline)
29717 close(F[key])'
29718 ac_cs_awk_pipe_fini=
29719 else
29720 ac_cs_awk_getline=false
29721 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
29722 ac_cs_awk_read_file='
29723 print "|#_!!_#|"
29724 print "cat " F[key] " &&"
29725 '$ac_cs_awk_pipe_init
29726 # The final `:' finishes the AND list.
29727 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
29729 ac_cr=`echo X | tr X '\015'`
29730 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29731 # But we know of no other shell where ac_cr would be empty at this
29732 # point, so we can use a bashism as a fallback.
29733 if test "x$ac_cr" = x; then
29734 eval ac_cr=\$\'\\r\'
29736 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29737 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29738 ac_cs_awk_cr='\r'
29739 else
29740 ac_cs_awk_cr=$ac_cr
29743 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29744 _ACEOF
29746 # Create commands to substitute file output variables.
29748 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29749 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29750 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
29751 echo "_ACAWK" &&
29752 echo "_ACEOF"
29753 } >conf$$files.sh &&
29754 . ./conf$$files.sh ||
29755 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29756 rm -f conf$$files.sh
29759 echo "cat >conf$$subs.awk <<_ACEOF" &&
29760 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29761 echo "_ACEOF"
29762 } >conf$$subs.sh ||
29763 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29764 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29765 ac_delim='%!_!# '
29766 for ac_last_try in false false false false false :; do
29767 . ./conf$$subs.sh ||
29768 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29770 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29771 if test $ac_delim_n = $ac_delim_num; then
29772 break
29773 elif $ac_last_try; then
29774 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29775 else
29776 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29778 done
29779 rm -f conf$$subs.sh
29781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29782 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29783 _ACEOF
29784 sed -n '
29786 s/^/S["/; s/!.*/"]=/
29789 s/^[^!]*!//
29790 :repl
29791 t repl
29792 s/'"$ac_delim"'$//
29793 t delim
29796 s/\(.\{148\}\).*/\1/
29797 t more1
29798 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29801 b repl
29802 :more1
29803 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29806 s/.\{148\}//
29807 t nl
29808 :delim
29810 s/\(.\{148\}\).*/\1/
29811 t more2
29812 s/["\\]/\\&/g; s/^/"/; s/$/"/
29815 :more2
29816 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29819 s/.\{148\}//
29820 t delim
29821 ' <conf$$subs.awk | sed '
29822 /^[^""]/{
29824 s/\n//
29826 ' >>$CONFIG_STATUS || ac_write_fail=1
29827 rm -f conf$$subs.awk
29828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29829 _ACAWK
29830 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29831 for (key in S) S_is_set[key] = 1
29832 FS = "\a"
29833 \$ac_cs_awk_pipe_init
29836 line = $ 0
29837 nfields = split(line, field, "@")
29838 substed = 0
29839 len = length(field[1])
29840 for (i = 2; i < nfields; i++) {
29841 key = field[i]
29842 keylen = length(key)
29843 if (S_is_set[key]) {
29844 value = S[key]
29845 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29846 len += length(value) + length(field[++i])
29847 substed = 1
29848 } else
29849 len += 1 + keylen
29851 if (nfields == 3 && !substed) {
29852 key = field[2]
29853 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29854 \$ac_cs_awk_read_file
29855 next
29858 print line
29860 \$ac_cs_awk_pipe_fini
29861 _ACAWK
29862 _ACEOF
29863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29864 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29865 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29866 else
29868 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29869 || as_fn_error "could not setup config files machinery" "$LINENO" 5
29870 _ACEOF
29872 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29873 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29874 # trailing colons and then remove the whole line if VPATH becomes empty
29875 # (actually we leave an empty line to preserve line numbers).
29876 if test "x$srcdir" = x.; then
29877 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29878 s/:*\$(srcdir):*/:/
29879 s/:*\${srcdir}:*/:/
29880 s/:*@srcdir@:*/:/
29881 s/^\([^=]*=[ ]*\):*/\1/
29882 s/:*$//
29883 s/^[^=]*=[ ]*$//
29887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29888 fi # test -n "$CONFIG_FILES"
29890 # Set up the scripts for CONFIG_HEADERS section.
29891 # No need to generate them if there are no CONFIG_HEADERS.
29892 # This happens for instance with `./config.status Makefile'.
29893 if test -n "$CONFIG_HEADERS"; then
29894 cat >"$tmp/defines.awk" <<\_ACAWK ||
29895 BEGIN {
29896 _ACEOF
29898 # Transform confdefs.h into an awk script `defines.awk', embedded as
29899 # here-document in config.status, that substitutes the proper values into
29900 # config.h.in to produce config.h.
29902 # Create a delimiter string that does not exist in confdefs.h, to ease
29903 # handling of long lines.
29904 ac_delim='%!_!# '
29905 for ac_last_try in false false :; do
29906 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29907 if test -z "$ac_t"; then
29908 break
29909 elif $ac_last_try; then
29910 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
29911 else
29912 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29914 done
29916 # For the awk script, D is an array of macro values keyed by name,
29917 # likewise P contains macro parameters if any. Preserve backslash
29918 # newline sequences.
29920 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29921 sed -n '
29922 s/.\{148\}/&'"$ac_delim"'/g
29923 t rset
29924 :rset
29925 s/^[ ]*#[ ]*define[ ][ ]*/ /
29926 t def
29928 :def
29929 s/\\$//
29930 t bsnl
29931 s/["\\]/\\&/g
29932 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29933 D["\1"]=" \3"/p
29934 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29936 :bsnl
29937 s/["\\]/\\&/g
29938 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29939 D["\1"]=" \3\\\\\\n"\\/p
29940 t cont
29941 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29942 t cont
29944 :cont
29946 s/.\{148\}/&'"$ac_delim"'/g
29947 t clear
29948 :clear
29949 s/\\$//
29950 t bsnlc
29951 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29953 :bsnlc
29954 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29955 b cont
29956 ' <confdefs.h | sed '
29957 s/'"$ac_delim"'/"\\\
29958 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29961 for (key in D) D_is_set[key] = 1
29962 FS = "\a"
29964 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29965 line = \$ 0
29966 split(line, arg, " ")
29967 if (arg[1] == "#") {
29968 defundef = arg[2]
29969 mac1 = arg[3]
29970 } else {
29971 defundef = substr(arg[1], 2)
29972 mac1 = arg[2]
29974 split(mac1, mac2, "(") #)
29975 macro = mac2[1]
29976 prefix = substr(line, 1, index(line, defundef) - 1)
29977 if (D_is_set[macro]) {
29978 # Preserve the white space surrounding the "#".
29979 print prefix "define", macro P[macro] D[macro]
29980 next
29981 } else {
29982 # Replace #undef with comments. This is necessary, for example,
29983 # in the case of _POSIX_SOURCE, which is predefined and required
29984 # on some systems where configure will not decide to define it.
29985 if (defundef == "undef") {
29986 print "/*", prefix defundef, macro, "*/"
29987 next
29991 { print }
29992 _ACAWK
29993 _ACEOF
29994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29995 as_fn_error "could not setup config headers machinery" "$LINENO" 5
29996 fi # test -n "$CONFIG_HEADERS"
29999 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30000 shift
30001 for ac_tag
30003 case $ac_tag in
30004 :[FHLC]) ac_mode=$ac_tag; continue;;
30005 esac
30006 case $ac_mode$ac_tag in
30007 :[FHL]*:*);;
30008 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30009 :[FH]-) ac_tag=-:-;;
30010 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30011 esac
30012 ac_save_IFS=$IFS
30013 IFS=:
30014 set x $ac_tag
30015 IFS=$ac_save_IFS
30016 shift
30017 ac_file=$1
30018 shift
30020 case $ac_mode in
30021 :L) ac_source=$1;;
30022 :[FH])
30023 ac_file_inputs=
30024 for ac_f
30026 case $ac_f in
30027 -) ac_f="$tmp/stdin";;
30028 *) # Look for the file first in the build tree, then in the source tree
30029 # (if the path is not absolute). The absolute path cannot be DOS-style,
30030 # because $ac_f cannot contain `:'.
30031 test -f "$ac_f" ||
30032 case $ac_f in
30033 [\\/$]*) false;;
30034 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30035 esac ||
30036 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30037 esac
30038 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30039 as_fn_append ac_file_inputs " '$ac_f'"
30040 done
30042 # Let's still pretend it is `configure' which instantiates (i.e., don't
30043 # use $as_me), people would be surprised to read:
30044 # /* config.h. Generated by config.status. */
30045 configure_input='Generated from '`
30046 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30047 `' by configure.'
30048 if test x"$ac_file" != x-; then
30049 configure_input="$ac_file. $configure_input"
30050 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30051 $as_echo "$as_me: creating $ac_file" >&6;}
30053 # Neutralize special characters interpreted by sed in replacement strings.
30054 case $configure_input in #(
30055 *\&* | *\|* | *\\* )
30056 ac_sed_conf_input=`$as_echo "$configure_input" |
30057 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30058 *) ac_sed_conf_input=$configure_input;;
30059 esac
30061 case $ac_tag in
30062 *:-:* | *:-) cat >"$tmp/stdin" \
30063 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30064 esac
30066 esac
30068 ac_dir=`$as_dirname -- "$ac_file" ||
30069 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30070 X"$ac_file" : 'X\(//\)[^/]' \| \
30071 X"$ac_file" : 'X\(//\)$' \| \
30072 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30073 $as_echo X"$ac_file" |
30074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30075 s//\1/
30078 /^X\(\/\/\)[^/].*/{
30079 s//\1/
30082 /^X\(\/\/\)$/{
30083 s//\1/
30086 /^X\(\/\).*/{
30087 s//\1/
30090 s/.*/./; q'`
30091 as_dir="$ac_dir"; as_fn_mkdir_p
30092 ac_builddir=.
30094 case "$ac_dir" in
30095 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30097 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30098 # A ".." for each directory in $ac_dir_suffix.
30099 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30100 case $ac_top_builddir_sub in
30101 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30102 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30103 esac ;;
30104 esac
30105 ac_abs_top_builddir=$ac_pwd
30106 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30107 # for backward compatibility:
30108 ac_top_builddir=$ac_top_build_prefix
30110 case $srcdir in
30111 .) # We are building in place.
30112 ac_srcdir=.
30113 ac_top_srcdir=$ac_top_builddir_sub
30114 ac_abs_top_srcdir=$ac_pwd ;;
30115 [\\/]* | ?:[\\/]* ) # Absolute name.
30116 ac_srcdir=$srcdir$ac_dir_suffix;
30117 ac_top_srcdir=$srcdir
30118 ac_abs_top_srcdir=$srcdir ;;
30119 *) # Relative name.
30120 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30121 ac_top_srcdir=$ac_top_build_prefix$srcdir
30122 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30123 esac
30124 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30127 case $ac_mode in
30130 # CONFIG_FILE
30133 _ACEOF
30135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30136 # If the template does not know about datarootdir, expand it.
30137 # FIXME: This hack should be removed a few years after 2.60.
30138 ac_datarootdir_hack=; ac_datarootdir_seen=
30139 ac_sed_dataroot='
30140 /datarootdir/ {
30144 /@datadir@/p
30145 /@docdir@/p
30146 /@infodir@/p
30147 /@localedir@/p
30148 /@mandir@/p'
30149 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30150 *datarootdir*) ac_datarootdir_seen=yes;;
30151 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30153 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30154 _ACEOF
30155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30156 ac_datarootdir_hack='
30157 s&@datadir@&$datadir&g
30158 s&@docdir@&$docdir&g
30159 s&@infodir@&$infodir&g
30160 s&@localedir@&$localedir&g
30161 s&@mandir@&$mandir&g
30162 s&\\\${datarootdir}&$datarootdir&g' ;;
30163 esac
30164 _ACEOF
30166 # Neutralize VPATH when `$srcdir' = `.'.
30167 # Shell code in configure.ac might set extrasub.
30168 # FIXME: do we really want to maintain this feature?
30169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30170 ac_sed_extra="$ac_vpsub
30171 $extrasub
30172 _ACEOF
30173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30175 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30176 s|@configure_input@|$ac_sed_conf_input|;t t
30177 s&@top_builddir@&$ac_top_builddir_sub&;t t
30178 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30179 s&@srcdir@&$ac_srcdir&;t t
30180 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30181 s&@top_srcdir@&$ac_top_srcdir&;t t
30182 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30183 s&@builddir@&$ac_builddir&;t t
30184 s&@abs_builddir@&$ac_abs_builddir&;t t
30185 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30186 $ac_datarootdir_hack
30188 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30189 if $ac_cs_awk_getline; then
30190 $AWK -f "$tmp/subs.awk"
30191 else
30192 $AWK -f "$tmp/subs.awk" | $SHELL
30193 fi >$tmp/out \
30194 || as_fn_error "could not create $ac_file" "$LINENO" 5
30196 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30197 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30198 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30200 which seems to be undefined. Please make sure it is defined." >&5
30201 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30202 which seems to be undefined. Please make sure it is defined." >&2;}
30204 rm -f "$tmp/stdin"
30205 case $ac_file in
30206 -) cat "$tmp/out" && rm -f "$tmp/out";;
30207 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30208 esac \
30209 || as_fn_error "could not create $ac_file" "$LINENO" 5
30213 # CONFIG_HEADER
30215 if test x"$ac_file" != x-; then
30217 $as_echo "/* $configure_input */" \
30218 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30219 } >"$tmp/config.h" \
30220 || as_fn_error "could not create $ac_file" "$LINENO" 5
30221 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30222 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30223 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30224 else
30225 rm -f "$ac_file"
30226 mv "$tmp/config.h" "$ac_file" \
30227 || as_fn_error "could not create $ac_file" "$LINENO" 5
30229 else
30230 $as_echo "/* $configure_input */" \
30231 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30232 || as_fn_error "could not create -" "$LINENO" 5
30237 # CONFIG_LINK
30240 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30242 else
30243 # Prefer the file from the source tree if names are identical.
30244 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30245 ac_source=$srcdir/$ac_source
30248 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30249 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30251 if test ! -r "$ac_source"; then
30252 as_fn_error "$ac_source: file not found" "$LINENO" 5
30254 rm -f "$ac_file"
30256 # Try a relative symlink, then a hard link, then a copy.
30257 case $srcdir in
30258 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30259 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30260 esac
30261 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30262 ln "$ac_source" "$ac_file" 2>/dev/null ||
30263 cp -p "$ac_source" "$ac_file" ||
30264 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30267 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30268 $as_echo "$as_me: executing $ac_file commands" >&6;}
30270 esac
30273 case $ac_file$ac_mode in
30274 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30275 "gccdepdir":C)
30276 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30277 for lang in $subdirs c-family common
30279 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30280 done ;;
30281 "as":F) chmod +x as ;;
30282 "collect-ld":F) chmod +x collect-ld ;;
30283 "nm":F) chmod +x nm ;;
30284 "default":C)
30285 case ${CONFIG_HEADERS} in
30286 *auto-host.h:config.in*)
30287 echo > cstamp-h ;;
30288 esac
30289 # Make sure all the subdirs exist.
30290 for d in $subdirs doc build common c-family
30292 test -d $d || mkdir $d
30293 done
30296 esac
30297 done # for ac_tag
30300 as_fn_exit 0
30301 _ACEOF
30302 ac_clean_files=$ac_clean_files_save
30304 test $ac_write_fail = 0 ||
30305 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30308 # configure is writing to config.log, and then calls config.status.
30309 # config.status does its own redirection, appending to config.log.
30310 # Unfortunately, on DOS this fails, as config.log is still kept open
30311 # by configure, so config.status won't be able to write to it; its
30312 # output is simply discarded. So we exec the FD to /dev/null,
30313 # effectively closing config.log, so it can be properly (re)opened and
30314 # appended to by config.status. When coming back to configure, we
30315 # need to make the FD available again.
30316 if test "$no_create" != yes; then
30317 ac_cs_success=:
30318 ac_config_status_args=
30319 test "$silent" = yes &&
30320 ac_config_status_args="$ac_config_status_args --quiet"
30321 exec 5>/dev/null
30322 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30323 exec 5>>config.log
30324 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30325 # would make configure fail if this is the last instruction.
30326 $ac_cs_success || as_fn_exit $?
30328 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30330 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}