Update LOCAL_PATCHES after libsanitizer merge.
[official-gcc.git] / gcc / configure
blob03461f1e27538a3a0791c2b61b0e75c3ff1a25be
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 d_target_objs
616 fortran_target_objs
617 cxx_target_objs
618 c_target_objs
619 use_gcc_stdint
620 xm_defines
621 xm_include_list
622 xm_file_list
623 tm_d_include_list
624 tm_d_file_list
625 tm_p_include_list
626 tm_p_file_list
627 tm_defines
628 tm_include_list
629 tm_file_list
630 common_out_object_file
631 common_out_file
632 out_object_file
633 out_file
634 objc_boehm_gc
635 md_file
636 local_prefix
637 lang_tree_files
638 lang_specs_files
639 lang_opt_files
640 install
641 out_host_hook_obj
642 host_xm_defines
643 host_xm_include_list
644 host_xm_file_list
645 host_exeext
646 gcc_gxx_include_dir_add_sysroot
647 gcc_gxx_include_dir
648 gcc_config_arguments
649 float_h_file
650 extra_programs
651 extra_objs
652 extra_headers_list
653 user_headers_inc_next_post
654 user_headers_inc_next_pre
655 extra_gcc_objs
656 TM_MULTILIB_EXCEPTIONS_CONFIG
657 TM_MULTILIB_CONFIG
658 TM_ENDIAN_CONFIG
659 tmake_file
660 xmake_file
661 cpp_install_dir
662 selftest_languages
663 check_languages
664 build_file_translate
665 build_xm_defines
666 build_xm_include_list
667 build_xm_file_list
668 build_install_headers_dir
669 build_exeext
670 all_selected_languages
671 all_languages
672 all_lang_makefrags
673 all_gtfiles
674 all_compilers
675 srcdir
676 subdirs
677 dollar
678 gcc_tooldir
679 enable_lto
680 DO_LINK_MUTEX
681 MAINT
682 zlibinc
683 zlibdir
684 HOST_LIBS
685 enable_default_ssp
686 thin_archive_support
687 ld_soname_option
688 ld_version_script_option
689 libgcc_visibility
690 gcc_cv_readelf
691 gcc_cv_objdump
692 ORIGINAL_NM_FOR_TARGET
693 gcc_cv_nm
694 ORIGINAL_LD_GOLD_FOR_TARGET
695 ORIGINAL_LD_BFD_FOR_TARGET
696 ORIGINAL_LD_FOR_TARGET
697 ORIGINAL_PLUGIN_LD_FOR_TARGET
698 gcc_cv_ld
699 ORIGINAL_AS_FOR_TARGET
700 gcc_cv_as
701 enable_fast_install
702 objdir
703 OTOOL64
704 OTOOL
705 LIPO
706 NMEDIT
707 DSYMUTIL
708 STRIP
709 OBJDUMP
710 ac_ct_DUMPBIN
711 DUMPBIN
713 FGREP
715 LIBTOOL
716 collect2
717 NO_PIE_FLAG_FOR_BUILD
718 NO_PIE_CFLAGS_FOR_BUILD
719 BUILD_NO_PIE_FLAG
720 BUILD_NO_PIE_CFLAGS
721 STMP_FIXINC
722 BUILD_LDFLAGS
723 BUILD_CXXFLAGS
724 BUILD_CFLAGS
725 CXX_FOR_BUILD
726 CC_FOR_BUILD
727 inhibit_libc
728 BUILD_SYSTEM_HEADER_DIR
729 SYSTEM_HEADER_DIR
731 CROSS
732 CATOBJEXT
733 GENCAT
734 INSTOBJEXT
735 DATADIRNAME
736 CATALOGS
737 POSUB
738 GMSGFMT
739 XGETTEXT
740 INCINTL
741 LIBINTL_DEP
742 LIBINTL
743 USE_NLS
744 get_gcc_base_ver
745 extra_opt_files
746 extra_modes_file
747 NATIVE_SYSTEM_HEADER_DIR
748 objext
749 manext
750 LIBICONV_DEP
751 LTLIBICONV
752 LIBICONV
753 LDEXP_LIB
754 EXTRA_GCC_LIBS
755 GNAT_LIBEXC
756 COLLECT2_LIBS
757 CXXDEPMODE
758 DEPDIR
759 am__leading_dot
760 doc_build_sys
763 BISON
764 FLEX
765 GENERATED_MANPAGES
766 BUILD_INFO
767 MAKEINFO
768 have_mktemp_command
769 make_compare_target
770 INSTALL_DATA
771 INSTALL_PROGRAM
772 INSTALL
773 ranlib_flags
774 RANLIB
776 LN_S
778 SET_MAKE
779 accel_dir_suffix
780 real_target_noncanonical
781 enable_as_accelerator
782 REPORT_BUGS_TEXI
783 REPORT_BUGS_TO
784 PKGVERSION
785 CONFIGURE_SPECS
786 enable_gcov
787 enable_shared
788 enable_fixed_point
789 enable_decimal_float
790 with_float
791 with_cpu
792 enable_multiarch
793 enable_multilib
794 coverage_flags
795 valgrind_command
796 valgrind_path_defines
797 valgrind_path
798 TREECHECKING
799 nocommon_flag
800 noexception_flags
801 warn_cxxflags
802 warn_cflags
803 c_strict_warn
804 strict_warn
805 c_loose_warn
806 loose_warn
807 aliasing_flags
809 EGREP
810 GREP
811 CXXCPP
812 PICFLAG_FOR_TARGET
813 GNATMAKE
814 GNATBIND
815 ac_ct_CXX
816 CXXFLAGS
818 OBJEXT
819 EXEEXT
820 ac_ct_CC
821 CPPFLAGS
822 LDFLAGS
823 CFLAGS
825 GENINSRC
826 CROSS_SYSTEM_HEADER_DIR
827 TARGET_SYSTEM_ROOT_DEFINE
828 TARGET_SYSTEM_ROOT
829 SYSROOT_CFLAGS_FOR_TARGET
830 target_subdir
831 host_subdir
832 build_subdir
833 build_libsubdir
834 target_noncanonical
835 host_noncanonical
836 target_os
837 target_vendor
838 target_cpu
839 target
840 host_os
841 host_vendor
842 host_cpu
843 host
844 build_os
845 build_vendor
846 build_cpu
847 build
848 target_alias
849 host_alias
850 build_alias
851 LIBS
852 ECHO_T
853 ECHO_N
854 ECHO_C
855 DEFS
856 mandir
857 localedir
858 libdir
859 psdir
860 pdfdir
861 dvidir
862 htmldir
863 infodir
864 docdir
865 oldincludedir
866 includedir
867 localstatedir
868 sharedstatedir
869 sysconfdir
870 datadir
871 datarootdir
872 libexecdir
873 sbindir
874 bindir
875 program_transform_name
876 prefix
877 exec_prefix
878 PACKAGE_URL
879 PACKAGE_BUGREPORT
880 PACKAGE_STRING
881 PACKAGE_VERSION
882 PACKAGE_TARNAME
883 PACKAGE_NAME
884 PATH_SEPARATOR
885 SHELL'
886 ac_subst_files='option_includes
887 language_hooks'
888 ac_user_opts='
889 enable_option_checking
890 with_build_libsubdir
891 with_local_prefix
892 with_native_system_header_dir
893 with_build_sysroot
894 with_sysroot
895 with_gxx_include_dir
896 with_cpp_install_dir
897 enable_generated_files_in_srcdir
898 with_gnu_ld
899 with_ld
900 with_demangler_in_ld
901 with_gnu_as
902 with_as
903 enable_largefile
904 enable_build_format_warnings
905 enable_werror_always
906 enable_checking
907 enable_coverage
908 enable_gather_detailed_mem_stats
909 enable_valgrind_annotations
910 with_stabs
911 enable_multilib
912 enable_multiarch
913 with_stack_clash_protection_guard_size
914 enable___cxa_atexit
915 enable_decimal_float
916 enable_fixed_point
917 enable_threads
918 enable_tls
919 enable_vtable_verify
920 enable_objc_gc
921 with_dwarf2
922 enable_shared
923 enable_gcov
924 with_specs
925 with_pkgversion
926 with_bugurl
927 enable_languages
928 with_multilib_list
929 enable_rpath
930 with_libiconv_prefix
931 enable_sjlj_exceptions
932 with_gcc_major_version_only
933 enable_secureplt
934 enable_mingw_wildcard
935 enable_large_address_aware
936 enable_leading_mingw64_underscores
937 enable_cld
938 enable_frame_pointer
939 enable_win32_registry
940 enable_static
941 with_pic
942 enable_fast_install
943 enable_libtool_lock
944 enable_ld
945 enable_gold
946 with_plugin_ld
947 enable_gnu_indirect_function
948 enable_initfini_array
949 enable_comdat
950 enable_fix_cortex_a53_835769
951 enable_fix_cortex_a53_843419
952 with_glibc_version
953 enable_gnu_unique_object
954 enable_linker_build_id
955 enable_libssp
956 enable_default_ssp
957 with_long_double_128
958 with_long_double_format
959 with_gc
960 with_system_zlib
961 enable_maintainer_mode
962 enable_link_mutex
963 enable_version_specific_runtime_libs
964 enable_plugin
965 enable_host_shared
966 enable_libquadmath_support
967 with_linker_hash_style
968 with_diagnostics_color
969 enable_default_pie
971 ac_precious_vars='build_alias
972 host_alias
973 target_alias
975 CFLAGS
976 LDFLAGS
977 LIBS
978 CPPFLAGS
980 CXXFLAGS
982 CXXCPP
984 GMPLIBS
985 GMPINC
986 ISLLIBS
987 ISLINC'
990 # Initialize some variables set by options.
991 ac_init_help=
992 ac_init_version=false
993 ac_unrecognized_opts=
994 ac_unrecognized_sep=
995 # The variables have the same names as the options, with
996 # dashes changed to underlines.
997 cache_file=/dev/null
998 exec_prefix=NONE
999 no_create=
1000 no_recursion=
1001 prefix=NONE
1002 program_prefix=NONE
1003 program_suffix=NONE
1004 program_transform_name=s,x,x,
1005 silent=
1006 site=
1007 srcdir=
1008 verbose=
1009 x_includes=NONE
1010 x_libraries=NONE
1012 # Installation directory options.
1013 # These are left unexpanded so users can "make install exec_prefix=/foo"
1014 # and all the variables that are supposed to be based on exec_prefix
1015 # by default will actually change.
1016 # Use braces instead of parens because sh, perl, etc. also accept them.
1017 # (The list follows the same order as the GNU Coding Standards.)
1018 bindir='${exec_prefix}/bin'
1019 sbindir='${exec_prefix}/sbin'
1020 libexecdir='${exec_prefix}/libexec'
1021 datarootdir='${prefix}/share'
1022 datadir='${datarootdir}'
1023 sysconfdir='${prefix}/etc'
1024 sharedstatedir='${prefix}/com'
1025 localstatedir='${prefix}/var'
1026 includedir='${prefix}/include'
1027 oldincludedir='/usr/include'
1028 docdir='${datarootdir}/doc/${PACKAGE}'
1029 infodir='${datarootdir}/info'
1030 htmldir='${docdir}'
1031 dvidir='${docdir}'
1032 pdfdir='${docdir}'
1033 psdir='${docdir}'
1034 libdir='${exec_prefix}/lib'
1035 localedir='${datarootdir}/locale'
1036 mandir='${datarootdir}/man'
1038 ac_prev=
1039 ac_dashdash=
1040 for ac_option
1042 # If the previous option needs an argument, assign it.
1043 if test -n "$ac_prev"; then
1044 eval $ac_prev=\$ac_option
1045 ac_prev=
1046 continue
1049 case $ac_option in
1050 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1051 *) ac_optarg=yes ;;
1052 esac
1054 # Accept the important Cygnus configure options, so we can diagnose typos.
1056 case $ac_dashdash$ac_option in
1058 ac_dashdash=yes ;;
1060 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1061 ac_prev=bindir ;;
1062 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1063 bindir=$ac_optarg ;;
1065 -build | --build | --buil | --bui | --bu)
1066 ac_prev=build_alias ;;
1067 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1068 build_alias=$ac_optarg ;;
1070 -cache-file | --cache-file | --cache-fil | --cache-fi \
1071 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1072 ac_prev=cache_file ;;
1073 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1074 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1075 cache_file=$ac_optarg ;;
1077 --config-cache | -C)
1078 cache_file=config.cache ;;
1080 -datadir | --datadir | --datadi | --datad)
1081 ac_prev=datadir ;;
1082 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1083 datadir=$ac_optarg ;;
1085 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1086 | --dataroo | --dataro | --datar)
1087 ac_prev=datarootdir ;;
1088 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1089 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1090 datarootdir=$ac_optarg ;;
1092 -disable-* | --disable-*)
1093 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096 as_fn_error "invalid feature name: $ac_useropt"
1097 ac_useropt_orig=$ac_useropt
1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1101 "enable_$ac_useropt"
1102 "*) ;;
1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1104 ac_unrecognized_sep=', ';;
1105 esac
1106 eval enable_$ac_useropt=no ;;
1108 -docdir | --docdir | --docdi | --doc | --do)
1109 ac_prev=docdir ;;
1110 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1111 docdir=$ac_optarg ;;
1113 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1114 ac_prev=dvidir ;;
1115 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1116 dvidir=$ac_optarg ;;
1118 -enable-* | --enable-*)
1119 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error "invalid feature name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1127 "enable_$ac_useropt"
1128 "*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1131 esac
1132 eval enable_$ac_useropt=\$ac_optarg ;;
1134 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1135 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1136 | --exec | --exe | --ex)
1137 ac_prev=exec_prefix ;;
1138 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1139 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1140 | --exec=* | --exe=* | --ex=*)
1141 exec_prefix=$ac_optarg ;;
1143 -gas | --gas | --ga | --g)
1144 # Obsolete; use --with-gas.
1145 with_gas=yes ;;
1147 -help | --help | --hel | --he | -h)
1148 ac_init_help=long ;;
1149 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1150 ac_init_help=recursive ;;
1151 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1152 ac_init_help=short ;;
1154 -host | --host | --hos | --ho)
1155 ac_prev=host_alias ;;
1156 -host=* | --host=* | --hos=* | --ho=*)
1157 host_alias=$ac_optarg ;;
1159 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1160 ac_prev=htmldir ;;
1161 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1162 | --ht=*)
1163 htmldir=$ac_optarg ;;
1165 -includedir | --includedir | --includedi | --included | --include \
1166 | --includ | --inclu | --incl | --inc)
1167 ac_prev=includedir ;;
1168 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1169 | --includ=* | --inclu=* | --incl=* | --inc=*)
1170 includedir=$ac_optarg ;;
1172 -infodir | --infodir | --infodi | --infod | --info | --inf)
1173 ac_prev=infodir ;;
1174 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1175 infodir=$ac_optarg ;;
1177 -libdir | --libdir | --libdi | --libd)
1178 ac_prev=libdir ;;
1179 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1180 libdir=$ac_optarg ;;
1182 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1183 | --libexe | --libex | --libe)
1184 ac_prev=libexecdir ;;
1185 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1186 | --libexe=* | --libex=* | --libe=*)
1187 libexecdir=$ac_optarg ;;
1189 -localedir | --localedir | --localedi | --localed | --locale)
1190 ac_prev=localedir ;;
1191 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1192 localedir=$ac_optarg ;;
1194 -localstatedir | --localstatedir | --localstatedi | --localstated \
1195 | --localstate | --localstat | --localsta | --localst | --locals)
1196 ac_prev=localstatedir ;;
1197 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1198 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1199 localstatedir=$ac_optarg ;;
1201 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1202 ac_prev=mandir ;;
1203 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1204 mandir=$ac_optarg ;;
1206 -nfp | --nfp | --nf)
1207 # Obsolete; use --without-fp.
1208 with_fp=no ;;
1210 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1211 | --no-cr | --no-c | -n)
1212 no_create=yes ;;
1214 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1215 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1216 no_recursion=yes ;;
1218 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1219 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1220 | --oldin | --oldi | --old | --ol | --o)
1221 ac_prev=oldincludedir ;;
1222 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1223 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1224 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1225 oldincludedir=$ac_optarg ;;
1227 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1228 ac_prev=prefix ;;
1229 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1230 prefix=$ac_optarg ;;
1232 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1233 | --program-pre | --program-pr | --program-p)
1234 ac_prev=program_prefix ;;
1235 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1236 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1237 program_prefix=$ac_optarg ;;
1239 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1240 | --program-suf | --program-su | --program-s)
1241 ac_prev=program_suffix ;;
1242 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1243 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1244 program_suffix=$ac_optarg ;;
1246 -program-transform-name | --program-transform-name \
1247 | --program-transform-nam | --program-transform-na \
1248 | --program-transform-n | --program-transform- \
1249 | --program-transform | --program-transfor \
1250 | --program-transfo | --program-transf \
1251 | --program-trans | --program-tran \
1252 | --progr-tra | --program-tr | --program-t)
1253 ac_prev=program_transform_name ;;
1254 -program-transform-name=* | --program-transform-name=* \
1255 | --program-transform-nam=* | --program-transform-na=* \
1256 | --program-transform-n=* | --program-transform-=* \
1257 | --program-transform=* | --program-transfor=* \
1258 | --program-transfo=* | --program-transf=* \
1259 | --program-trans=* | --program-tran=* \
1260 | --progr-tra=* | --program-tr=* | --program-t=*)
1261 program_transform_name=$ac_optarg ;;
1263 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1264 ac_prev=pdfdir ;;
1265 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1266 pdfdir=$ac_optarg ;;
1268 -psdir | --psdir | --psdi | --psd | --ps)
1269 ac_prev=psdir ;;
1270 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1271 psdir=$ac_optarg ;;
1273 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1274 | -silent | --silent | --silen | --sile | --sil)
1275 silent=yes ;;
1277 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1278 ac_prev=sbindir ;;
1279 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1280 | --sbi=* | --sb=*)
1281 sbindir=$ac_optarg ;;
1283 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1284 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1285 | --sharedst | --shareds | --shared | --share | --shar \
1286 | --sha | --sh)
1287 ac_prev=sharedstatedir ;;
1288 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1289 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1290 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1291 | --sha=* | --sh=*)
1292 sharedstatedir=$ac_optarg ;;
1294 -site | --site | --sit)
1295 ac_prev=site ;;
1296 -site=* | --site=* | --sit=*)
1297 site=$ac_optarg ;;
1299 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1300 ac_prev=srcdir ;;
1301 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1302 srcdir=$ac_optarg ;;
1304 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1305 | --syscon | --sysco | --sysc | --sys | --sy)
1306 ac_prev=sysconfdir ;;
1307 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1308 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1309 sysconfdir=$ac_optarg ;;
1311 -target | --target | --targe | --targ | --tar | --ta | --t)
1312 ac_prev=target_alias ;;
1313 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1314 target_alias=$ac_optarg ;;
1316 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1317 verbose=yes ;;
1319 -version | --version | --versio | --versi | --vers | -V)
1320 ac_init_version=: ;;
1322 -with-* | --with-*)
1323 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1326 as_fn_error "invalid package name: $ac_useropt"
1327 ac_useropt_orig=$ac_useropt
1328 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1329 case $ac_user_opts in
1331 "with_$ac_useropt"
1332 "*) ;;
1333 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1334 ac_unrecognized_sep=', ';;
1335 esac
1336 eval with_$ac_useropt=\$ac_optarg ;;
1338 -without-* | --without-*)
1339 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1340 # Reject names that are not valid shell variable names.
1341 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1342 as_fn_error "invalid package name: $ac_useropt"
1343 ac_useropt_orig=$ac_useropt
1344 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1345 case $ac_user_opts in
1347 "with_$ac_useropt"
1348 "*) ;;
1349 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1350 ac_unrecognized_sep=', ';;
1351 esac
1352 eval with_$ac_useropt=no ;;
1354 --x)
1355 # Obsolete; use --with-x.
1356 with_x=yes ;;
1358 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1359 | --x-incl | --x-inc | --x-in | --x-i)
1360 ac_prev=x_includes ;;
1361 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1362 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1363 x_includes=$ac_optarg ;;
1365 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1366 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1367 ac_prev=x_libraries ;;
1368 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1369 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1370 x_libraries=$ac_optarg ;;
1372 -*) as_fn_error "unrecognized option: \`$ac_option'
1373 Try \`$0 --help' for more information."
1376 *=*)
1377 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1378 # Reject names that are not valid shell variable names.
1379 case $ac_envvar in #(
1380 '' | [0-9]* | *[!_$as_cr_alnum]* )
1381 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1382 esac
1383 eval $ac_envvar=\$ac_optarg
1384 export $ac_envvar ;;
1387 # FIXME: should be removed in autoconf 3.0.
1388 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1389 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1390 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1391 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1394 esac
1395 done
1397 if test -n "$ac_prev"; then
1398 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1399 as_fn_error "missing argument to $ac_option"
1402 if test -n "$ac_unrecognized_opts"; then
1403 case $enable_option_checking in
1404 no) ;;
1405 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1406 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1407 esac
1410 # Check all directory arguments for consistency.
1411 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1412 datadir sysconfdir sharedstatedir localstatedir includedir \
1413 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1414 libdir localedir mandir
1416 eval ac_val=\$$ac_var
1417 # Remove trailing slashes.
1418 case $ac_val in
1419 */ )
1420 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1421 eval $ac_var=\$ac_val;;
1422 esac
1423 # Be sure to have absolute directory names.
1424 case $ac_val in
1425 [\\/$]* | ?:[\\/]* ) continue;;
1426 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1427 esac
1428 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1429 done
1431 # There might be people who depend on the old broken behavior: `$host'
1432 # used to hold the argument of --host etc.
1433 # FIXME: To remove some day.
1434 build=$build_alias
1435 host=$host_alias
1436 target=$target_alias
1438 # FIXME: To remove some day.
1439 if test "x$host_alias" != x; then
1440 if test "x$build_alias" = x; then
1441 cross_compiling=maybe
1442 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1443 If a cross compiler is detected then cross compile mode will be used." >&2
1444 elif test "x$build_alias" != "x$host_alias"; then
1445 cross_compiling=yes
1449 ac_tool_prefix=
1450 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1452 test "$silent" = yes && exec 6>/dev/null
1455 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1456 ac_ls_di=`ls -di .` &&
1457 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1458 as_fn_error "working directory cannot be determined"
1459 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1460 as_fn_error "pwd does not report name of working directory"
1463 # Find the source files, if location was not specified.
1464 if test -z "$srcdir"; then
1465 ac_srcdir_defaulted=yes
1466 # Try the directory containing this script, then the parent directory.
1467 ac_confdir=`$as_dirname -- "$as_myself" ||
1468 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1469 X"$as_myself" : 'X\(//\)[^/]' \| \
1470 X"$as_myself" : 'X\(//\)$' \| \
1471 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1472 $as_echo X"$as_myself" |
1473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1474 s//\1/
1477 /^X\(\/\/\)[^/].*/{
1478 s//\1/
1481 /^X\(\/\/\)$/{
1482 s//\1/
1485 /^X\(\/\).*/{
1486 s//\1/
1489 s/.*/./; q'`
1490 srcdir=$ac_confdir
1491 if test ! -r "$srcdir/$ac_unique_file"; then
1492 srcdir=..
1494 else
1495 ac_srcdir_defaulted=no
1497 if test ! -r "$srcdir/$ac_unique_file"; then
1498 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1499 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1501 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1502 ac_abs_confdir=`(
1503 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1504 pwd)`
1505 # When building in place, set srcdir=.
1506 if test "$ac_abs_confdir" = "$ac_pwd"; then
1507 srcdir=.
1509 # Remove unnecessary trailing slashes from srcdir.
1510 # Double slashes in file names in object file debugging info
1511 # mess up M-x gdb in Emacs.
1512 case $srcdir in
1513 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1514 esac
1515 for ac_var in $ac_precious_vars; do
1516 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1517 eval ac_env_${ac_var}_value=\$${ac_var}
1518 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1519 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1520 done
1523 # Report the --help message.
1525 if test "$ac_init_help" = "long"; then
1526 # Omit some internal or obsolete options to make the list less imposing.
1527 # This message is too long to be a string in the A/UX 3.1 sh.
1528 cat <<_ACEOF
1529 \`configure' configures this package to adapt to many kinds of systems.
1531 Usage: $0 [OPTION]... [VAR=VALUE]...
1533 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1534 VAR=VALUE. See below for descriptions of some of the useful variables.
1536 Defaults for the options are specified in brackets.
1538 Configuration:
1539 -h, --help display this help and exit
1540 --help=short display options specific to this package
1541 --help=recursive display the short help of all the included packages
1542 -V, --version display version information and exit
1543 -q, --quiet, --silent do not print \`checking...' messages
1544 --cache-file=FILE cache test results in FILE [disabled]
1545 -C, --config-cache alias for \`--cache-file=config.cache'
1546 -n, --no-create do not create output files
1547 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1549 Installation directories:
1550 --prefix=PREFIX install architecture-independent files in PREFIX
1551 [$ac_default_prefix]
1552 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1553 [PREFIX]
1555 By default, \`make install' will install all the files in
1556 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1557 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1558 for instance \`--prefix=\$HOME'.
1560 For better control, use the options below.
1562 Fine tuning of the installation directories:
1563 --bindir=DIR user executables [EPREFIX/bin]
1564 --sbindir=DIR system admin executables [EPREFIX/sbin]
1565 --libexecdir=DIR program executables [EPREFIX/libexec]
1566 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1567 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1568 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1569 --libdir=DIR object code libraries [EPREFIX/lib]
1570 --includedir=DIR C header files [PREFIX/include]
1571 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1572 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1573 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1574 --infodir=DIR info documentation [DATAROOTDIR/info]
1575 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1576 --mandir=DIR man documentation [DATAROOTDIR/man]
1577 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1578 --htmldir=DIR html documentation [DOCDIR]
1579 --dvidir=DIR dvi documentation [DOCDIR]
1580 --pdfdir=DIR pdf documentation [DOCDIR]
1581 --psdir=DIR ps documentation [DOCDIR]
1582 _ACEOF
1584 cat <<\_ACEOF
1586 Program names:
1587 --program-prefix=PREFIX prepend PREFIX to installed program names
1588 --program-suffix=SUFFIX append SUFFIX to installed program names
1589 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1591 System types:
1592 --build=BUILD configure for building on BUILD [guessed]
1593 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1594 --target=TARGET configure for building compilers for TARGET [HOST]
1595 _ACEOF
1598 if test -n "$ac_init_help"; then
1600 cat <<\_ACEOF
1602 Optional Features:
1603 --disable-option-checking ignore unrecognized --enable/--with options
1604 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1605 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1606 --enable-generated-files-in-srcdir
1607 put copies of generated files in source dir intended
1608 for creating source tarballs for users without
1609 texinfo bison or flex
1610 --disable-largefile omit support for large files
1611 --disable-build-format-warnings
1612 don't use -Wformat while building GCC
1613 --enable-werror-always enable -Werror despite compiler version
1614 --enable-checking[=LIST]
1615 enable expensive run-time checks. With LIST, enable
1616 only specific categories of checks. Categories are:
1617 yes,no,all,none,release. Flags are:
1618 assert,df,extra,fold,gc,gcac,gimple,misc,
1619 rtlflag,rtl,runtime,tree,valgrind,types
1620 --enable-coverage[=LEVEL]
1621 enable compiler's code coverage collection. Use to
1622 measure compiler performance and locate unused parts
1623 of the compiler. With LEVEL, specify optimization.
1624 Values are opt, noopt, default is noopt
1625 --enable-gather-detailed-mem-stats
1626 enable detailed memory allocation stats gathering
1627 --enable-valgrind-annotations
1628 enable valgrind runtime interaction
1629 --enable-multilib enable library support for multiple ABIs
1630 --enable-multiarch enable support for multiarch paths
1631 --enable-__cxa_atexit enable __cxa_atexit for C++
1632 --enable-decimal-float={no,yes,bid,dpd}
1633 enable decimal float extension to C. Selecting 'bid'
1634 or 'dpd' choses which decimal floating point format
1635 to use
1636 --enable-fixed-point enable fixed-point arithmetic extension to C
1637 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1638 package
1639 --enable-tls enable or disable generation of tls code overriding
1640 the assembler check for tls support
1641 --enable-vtable-verify enable vtable verification feature
1642 --enable-objc-gc enable the use of Boehm's garbage collector with the
1643 GNU Objective-C runtime
1644 --disable-shared don't provide a shared libgcc
1645 --disable-gcov don't provide libgcov and related host tools
1646 --enable-languages=LIST specify which front-ends to build
1647 --disable-rpath do not hardcode runtime library paths
1648 --enable-sjlj-exceptions
1649 arrange to use setjmp/longjmp exception handling
1650 --enable-secureplt enable -msecure-plt by default for PowerPC
1651 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1652 Default to platform configuration
1653 --enable-large-address-aware
1654 Link mingw executables with --large-address-aware
1655 --enable-leading-mingw64-underscores
1656 enable leading underscores on 64 bit mingw targets
1657 --enable-cld enable -mcld by default for 32bit x86
1658 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1660 --disable-win32-registry
1661 disable lookup of installation paths in the Registry
1662 on Windows hosts
1663 --enable-win32-registry enable registry lookup (default)
1664 --enable-win32-registry=KEY
1665 use KEY instead of GCC version as the last portion
1666 of the registry key
1667 --enable-shared[=PKGS] build shared libraries [default=yes]
1668 --enable-static[=PKGS] build static libraries [default=yes]
1669 --enable-fast-install[=PKGS]
1670 optimize for fast installation [default=yes]
1671 --disable-libtool-lock avoid locking (might break parallel builds)
1672 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1673 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1674 --enable-gnu-indirect-function
1675 enable the use of the @gnu_indirect_function to
1676 glibc systems
1677 --enable-initfini-array use .init_array/.fini_array sections
1678 --enable-comdat enable COMDAT group support
1680 --enable-fix-cortex-a53-835769
1681 enable workaround for AArch64 Cortex-A53 erratum
1682 835769 by default
1683 --disable-fix-cortex-a53-835769
1684 disable workaround for AArch64 Cortex-A53 erratum
1685 835769 by default
1688 --enable-fix-cortex-a53-843419
1689 enable workaround for AArch64 Cortex-A53 erratum
1690 843419 by default
1691 --disable-fix-cortex-a53-843419
1692 disable workaround for AArch64 Cortex-A53 erratum
1693 843419 by default
1695 --enable-gnu-unique-object
1696 enable the use of the @gnu_unique_object ELF
1697 extension on glibc systems
1698 --enable-linker-build-id
1699 compiler will always pass --build-id to linker
1700 --enable-libssp enable linking against libssp
1701 --enable-default-ssp enable Stack Smashing Protection as default
1702 --enable-maintainer-mode
1703 enable make rules and dependencies not useful (and
1704 sometimes confusing) to the casual installer
1705 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1706 thrashing on the build machine
1707 --enable-version-specific-runtime-libs
1708 specify that runtime libraries should be installed
1709 in a compiler-specific directory
1710 --enable-plugin enable plugin support
1711 --enable-host-shared build host code as shared libraries
1712 --disable-libquadmath-support
1713 disable libquadmath support for Fortran
1714 --enable-default-pie enable Position Independent Executable as default
1716 Optional Packages:
1717 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1718 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1719 --with-build-libsubdir=DIR Directory where to find libraries for build system
1720 --with-local-prefix=DIR specifies directory to put local include
1721 --with-native-system-header-dir=dir
1722 use dir as the directory to look for standard
1723 system header files in. Defaults to /usr/include.
1724 --with-build-sysroot=sysroot
1725 use sysroot as the system root during the build
1726 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1727 --with-gxx-include-dir=DIR
1728 specifies directory to put g++ header files
1729 --with-cpp-install-dir=DIR
1730 install the user visible C preprocessor in DIR
1731 (relative to PREFIX) as well as PREFIX/bin
1732 --with-gnu-ld arrange to work with GNU ld
1733 --with-ld arrange to use the specified ld (full pathname)
1734 --with-demangler-in-ld try to use demangler in GNU ld
1735 --with-gnu-as arrange to work with GNU as
1736 --with-as arrange to use the specified as (full pathname)
1737 --with-stabs arrange to use stabs instead of host debug format
1738 --with-stack-clash-protection-guard-size=size
1739 Set the default stack clash protection guard size
1740 for specific targets as a power of two in bytes.
1741 --with-dwarf2 force the default debug format to be DWARF 2
1742 --with-specs=SPECS add SPECS to driver command-line processing
1743 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1744 --with-bugurl=URL Direct users to URL to report a bug
1745 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1746 --with-gnu-ld assume the C compiler uses GNU ld default=no
1747 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1748 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1749 --with-gcc-major-version-only
1750 use only GCC major number in filesystem paths
1751 --with-pic try to use only PIC/non-PIC objects [default=use
1752 both]
1753 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1754 --with-plugin-ld=[ARG] specify the plugin linker
1755 --with-glibc-version=M.N
1756 assume GCC used with glibc version M.N or later
1757 --with-long-double-128 use 128-bit long double by default
1758 --with-long-double-format={ieee,ibm}
1759 Specify whether PowerPC long double uses IEEE or IBM format
1761 --with-gc={page,zone} this option is not supported anymore. It used to
1762 choose the garbage collection mechanism to use with
1763 the compiler
1764 --with-system-zlib use installed libz
1765 --with-linker-hash-style={sysv,gnu,both}
1766 specify the linker hash style
1767 --with-diagnostics-color={never,auto,auto-if-env,always}
1768 specify the default of -fdiagnostics-color option
1769 auto-if-env stands for -fdiagnostics-color=auto if
1770 GCC_COLOR environment variable is present and
1771 -fdiagnostics-color=never otherwise
1773 Some influential environment variables:
1774 CC C compiler command
1775 CFLAGS C compiler flags
1776 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1777 nonstandard directory <lib dir>
1778 LIBS libraries to pass to the linker, e.g. -l<library>
1779 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1780 you have headers in a nonstandard directory <include dir>
1781 CXX C++ compiler command
1782 CXXFLAGS C++ compiler flags
1783 CXXCPP C++ preprocessor
1784 CPP C preprocessor
1785 GMPLIBS How to link GMP
1786 GMPINC How to find GMP include files
1787 ISLLIBS How to link isl
1788 ISLINC How to find isl include files
1790 Use these variables to override the choices made by `configure' or to help
1791 it to find libraries and programs with nonstandard names/locations.
1793 Report bugs to the package provider.
1794 _ACEOF
1795 ac_status=$?
1798 if test "$ac_init_help" = "recursive"; then
1799 # If there are subdirs, report their specific --help.
1800 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1801 test -d "$ac_dir" ||
1802 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1803 continue
1804 ac_builddir=.
1806 case "$ac_dir" in
1807 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1809 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1810 # A ".." for each directory in $ac_dir_suffix.
1811 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1812 case $ac_top_builddir_sub in
1813 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1814 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1815 esac ;;
1816 esac
1817 ac_abs_top_builddir=$ac_pwd
1818 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1819 # for backward compatibility:
1820 ac_top_builddir=$ac_top_build_prefix
1822 case $srcdir in
1823 .) # We are building in place.
1824 ac_srcdir=.
1825 ac_top_srcdir=$ac_top_builddir_sub
1826 ac_abs_top_srcdir=$ac_pwd ;;
1827 [\\/]* | ?:[\\/]* ) # Absolute name.
1828 ac_srcdir=$srcdir$ac_dir_suffix;
1829 ac_top_srcdir=$srcdir
1830 ac_abs_top_srcdir=$srcdir ;;
1831 *) # Relative name.
1832 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1833 ac_top_srcdir=$ac_top_build_prefix$srcdir
1834 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1835 esac
1836 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1838 cd "$ac_dir" || { ac_status=$?; continue; }
1839 # Check for guested configure.
1840 if test -f "$ac_srcdir/configure.gnu"; then
1841 echo &&
1842 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1843 elif test -f "$ac_srcdir/configure"; then
1844 echo &&
1845 $SHELL "$ac_srcdir/configure" --help=recursive
1846 else
1847 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1848 fi || ac_status=$?
1849 cd "$ac_pwd" || { ac_status=$?; break; }
1850 done
1853 test -n "$ac_init_help" && exit $ac_status
1854 if $ac_init_version; then
1855 cat <<\_ACEOF
1856 configure
1857 generated by GNU Autoconf 2.64
1859 Copyright (C) 2009 Free Software Foundation, Inc.
1860 This configure script is free software; the Free Software Foundation
1861 gives unlimited permission to copy, distribute and modify it.
1862 _ACEOF
1863 exit
1866 ## ------------------------ ##
1867 ## Autoconf initialization. ##
1868 ## ------------------------ ##
1870 # ac_fn_c_try_compile LINENO
1871 # --------------------------
1872 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1873 ac_fn_c_try_compile ()
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 rm -f conftest.$ac_objext
1877 if { { ac_try="$ac_compile"
1878 case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_compile") 2>conftest.err
1885 ac_status=$?
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && {
1893 test -z "$ac_c_werror_flag" ||
1894 test ! -s conftest.err
1895 } && test -s conftest.$ac_objext; then :
1896 ac_retval=0
1897 else
1898 $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1901 ac_retval=1
1903 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1904 return $ac_retval
1906 } # ac_fn_c_try_compile
1908 # ac_fn_cxx_try_compile LINENO
1909 # ----------------------------
1910 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1911 ac_fn_cxx_try_compile ()
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 rm -f conftest.$ac_objext
1915 if { { ac_try="$ac_compile"
1916 case "(($ac_try" in
1917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1918 *) ac_try_echo=$ac_try;;
1919 esac
1920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1921 $as_echo "$ac_try_echo"; } >&5
1922 (eval "$ac_compile") 2>conftest.err
1923 ac_status=$?
1924 if test -s conftest.err; then
1925 grep -v '^ *+' conftest.err >conftest.er1
1926 cat conftest.er1 >&5
1927 mv -f conftest.er1 conftest.err
1929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1930 test $ac_status = 0; } && {
1931 test -z "$ac_cxx_werror_flag" ||
1932 test ! -s conftest.err
1933 } && test -s conftest.$ac_objext; then :
1934 ac_retval=0
1935 else
1936 $as_echo "$as_me: failed program was:" >&5
1937 sed 's/^/| /' conftest.$ac_ext >&5
1939 ac_retval=1
1941 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1942 return $ac_retval
1944 } # ac_fn_cxx_try_compile
1946 # ac_fn_cxx_try_cpp LINENO
1947 # ------------------------
1948 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1949 ac_fn_cxx_try_cpp ()
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 if { { ac_try="$ac_cpp conftest.$ac_ext"
1953 case "(($ac_try" in
1954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955 *) ac_try_echo=$ac_try;;
1956 esac
1957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958 $as_echo "$ac_try_echo"; } >&5
1959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1960 ac_status=$?
1961 if test -s conftest.err; then
1962 grep -v '^ *+' conftest.err >conftest.er1
1963 cat conftest.er1 >&5
1964 mv -f conftest.er1 conftest.err
1966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967 test $ac_status = 0; } >/dev/null && {
1968 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1969 test ! -s conftest.err
1970 }; then :
1971 ac_retval=0
1972 else
1973 $as_echo "$as_me: failed program was:" >&5
1974 sed 's/^/| /' conftest.$ac_ext >&5
1976 ac_retval=1
1978 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1979 return $ac_retval
1981 } # ac_fn_cxx_try_cpp
1983 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1984 # ---------------------------------------------------------
1985 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1986 # the include files in INCLUDES and setting the cache variable VAR
1987 # accordingly.
1988 ac_fn_cxx_check_header_mongrel ()
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993 $as_echo_n "checking for $2... " >&6; }
1994 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1995 $as_echo_n "(cached) " >&6
1997 eval ac_res=\$$3
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2000 else
2001 # Is the header compilable?
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2003 $as_echo_n "checking $2 usability... " >&6; }
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2007 #include <$2>
2008 _ACEOF
2009 if ac_fn_cxx_try_compile "$LINENO"; then :
2010 ac_header_compiler=yes
2011 else
2012 ac_header_compiler=no
2014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2016 $as_echo "$ac_header_compiler" >&6; }
2018 # Is the header present?
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2020 $as_echo_n "checking $2 presence... " >&6; }
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2023 #include <$2>
2024 _ACEOF
2025 if ac_fn_cxx_try_cpp "$LINENO"; then :
2026 ac_header_preproc=yes
2027 else
2028 ac_header_preproc=no
2030 rm -f conftest.err conftest.$ac_ext
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2032 $as_echo "$ac_header_preproc" >&6; }
2034 # So? What about this header?
2035 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2036 yes:no: )
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2038 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2040 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2042 no:yes:* )
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2044 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2046 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2048 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2050 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2052 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2054 esac
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056 $as_echo_n "checking for $2... " >&6; }
2057 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2058 $as_echo_n "(cached) " >&6
2059 else
2060 eval "$3=\$ac_header_compiler"
2062 eval ac_res=\$$3
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064 $as_echo "$ac_res" >&6; }
2066 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2068 } # ac_fn_cxx_check_header_mongrel
2070 # ac_fn_cxx_try_run LINENO
2071 # ------------------------
2072 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2073 # that executables *can* be run.
2074 ac_fn_cxx_try_run ()
2076 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2077 if { { ac_try="$ac_link"
2078 case "(($ac_try" in
2079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2080 *) ac_try_echo=$ac_try;;
2081 esac
2082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2083 $as_echo "$ac_try_echo"; } >&5
2084 (eval "$ac_link") 2>&5
2085 ac_status=$?
2086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2087 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2088 { { case "(($ac_try" in
2089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2090 *) ac_try_echo=$ac_try;;
2091 esac
2092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2093 $as_echo "$ac_try_echo"; } >&5
2094 (eval "$ac_try") 2>&5
2095 ac_status=$?
2096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2097 test $ac_status = 0; }; }; then :
2098 ac_retval=0
2099 else
2100 $as_echo "$as_me: program exited with status $ac_status" >&5
2101 $as_echo "$as_me: failed program was:" >&5
2102 sed 's/^/| /' conftest.$ac_ext >&5
2104 ac_retval=$ac_status
2106 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2107 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2108 return $ac_retval
2110 } # ac_fn_cxx_try_run
2112 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2113 # ---------------------------------------------------------
2114 # Tests whether HEADER exists and can be compiled using the include files in
2115 # INCLUDES, setting the cache variable VAR accordingly.
2116 ac_fn_cxx_check_header_compile ()
2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2120 $as_echo_n "checking for $2... " >&6; }
2121 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2122 $as_echo_n "(cached) " >&6
2123 else
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2127 #include <$2>
2128 _ACEOF
2129 if ac_fn_cxx_try_compile "$LINENO"; then :
2130 eval "$3=yes"
2131 else
2132 eval "$3=no"
2134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2136 eval ac_res=\$$3
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2138 $as_echo "$ac_res" >&6; }
2139 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2141 } # ac_fn_cxx_check_header_compile
2143 # ac_fn_c_try_cpp LINENO
2144 # ----------------------
2145 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2146 ac_fn_c_try_cpp ()
2148 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149 if { { ac_try="$ac_cpp conftest.$ac_ext"
2150 case "(($ac_try" in
2151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2152 *) ac_try_echo=$ac_try;;
2153 esac
2154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2155 $as_echo "$ac_try_echo"; } >&5
2156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2157 ac_status=$?
2158 if test -s conftest.err; then
2159 grep -v '^ *+' conftest.err >conftest.er1
2160 cat conftest.er1 >&5
2161 mv -f conftest.er1 conftest.err
2163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2164 test $ac_status = 0; } >/dev/null && {
2165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2166 test ! -s conftest.err
2167 }; then :
2168 ac_retval=0
2169 else
2170 $as_echo "$as_me: failed program was:" >&5
2171 sed 's/^/| /' conftest.$ac_ext >&5
2173 ac_retval=1
2175 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2176 return $ac_retval
2178 } # ac_fn_c_try_cpp
2180 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2181 # ----------------------------------------------
2182 # Tries to find the compile-time value of EXPR in a program that includes
2183 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2184 # computed
2185 ac_fn_cxx_compute_int ()
2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188 if test "$cross_compiling" = yes; then
2189 # Depending upon the size, compute the lo and hi bounds.
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2194 main ()
2196 static int test_array [1 - 2 * !(($2) >= 0)];
2197 test_array [0] = 0
2200 return 0;
2202 _ACEOF
2203 if ac_fn_cxx_try_compile "$LINENO"; then :
2204 ac_lo=0 ac_mid=0
2205 while :; do
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h. */
2210 main ()
2212 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2213 test_array [0] = 0
2216 return 0;
2218 _ACEOF
2219 if ac_fn_cxx_try_compile "$LINENO"; then :
2220 ac_hi=$ac_mid; break
2221 else
2222 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2223 if test $ac_lo -le $ac_mid; then
2224 ac_lo= ac_hi=
2225 break
2227 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230 done
2231 else
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2236 main ()
2238 static int test_array [1 - 2 * !(($2) < 0)];
2239 test_array [0] = 0
2242 return 0;
2244 _ACEOF
2245 if ac_fn_cxx_try_compile "$LINENO"; then :
2246 ac_hi=-1 ac_mid=-1
2247 while :; do
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2252 main ()
2254 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2255 test_array [0] = 0
2258 return 0;
2260 _ACEOF
2261 if ac_fn_cxx_try_compile "$LINENO"; then :
2262 ac_lo=$ac_mid; break
2263 else
2264 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2265 if test $ac_mid -le $ac_hi; then
2266 ac_lo= ac_hi=
2267 break
2269 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 done
2273 else
2274 ac_lo= ac_hi=
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279 # Binary search between lo and hi bounds.
2280 while test "x$ac_lo" != "x$ac_hi"; do
2281 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2286 main ()
2288 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2289 test_array [0] = 0
2292 return 0;
2294 _ACEOF
2295 if ac_fn_cxx_try_compile "$LINENO"; then :
2296 ac_hi=$ac_mid
2297 else
2298 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 done
2302 case $ac_lo in #((
2303 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2304 '') ac_retval=1 ;;
2305 esac
2306 else
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2310 static long int longval () { return $2; }
2311 static unsigned long int ulongval () { return $2; }
2312 #include <stdio.h>
2313 #include <stdlib.h>
2315 main ()
2318 FILE *f = fopen ("conftest.val", "w");
2319 if (! f)
2320 return 1;
2321 if (($2) < 0)
2323 long int i = longval ();
2324 if (i != ($2))
2325 return 1;
2326 fprintf (f, "%ld", i);
2328 else
2330 unsigned long int i = ulongval ();
2331 if (i != ($2))
2332 return 1;
2333 fprintf (f, "%lu", i);
2335 /* Do not output a trailing newline, as this causes \r\n confusion
2336 on some platforms. */
2337 return ferror (f) || fclose (f) != 0;
2340 return 0;
2342 _ACEOF
2343 if ac_fn_cxx_try_run "$LINENO"; then :
2344 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2345 else
2346 ac_retval=1
2348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2349 conftest.$ac_objext conftest.beam conftest.$ac_ext
2350 rm -f conftest.val
2353 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2354 return $ac_retval
2356 } # ac_fn_cxx_compute_int
2358 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2359 # ---------------------------------------------
2360 # Tests whether TYPE exists after having included INCLUDES, setting cache
2361 # variable VAR accordingly.
2362 ac_fn_cxx_check_type ()
2364 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2366 $as_echo_n "checking for $2... " >&6; }
2367 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2368 $as_echo_n "(cached) " >&6
2369 else
2370 eval "$3=no"
2371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2372 /* end confdefs.h. */
2375 main ()
2377 if (sizeof ($2))
2378 return 0;
2380 return 0;
2382 _ACEOF
2383 if ac_fn_cxx_try_compile "$LINENO"; then :
2384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2385 /* end confdefs.h. */
2388 main ()
2390 if (sizeof (($2)))
2391 return 0;
2393 return 0;
2395 _ACEOF
2396 if ac_fn_cxx_try_compile "$LINENO"; then :
2398 else
2399 eval "$3=yes"
2401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 eval ac_res=\$$3
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2407 $as_echo "$ac_res" >&6; }
2408 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2410 } # ac_fn_cxx_check_type
2412 # ac_fn_c_find_intX_t LINENO BITS VAR
2413 # -----------------------------------
2414 # Finds a signed integer type with width BITS, setting cache variable VAR
2415 # accordingly.
2416 ac_fn_c_find_intX_t ()
2418 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2420 $as_echo_n "checking for int$2_t... " >&6; }
2421 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2422 $as_echo_n "(cached) " >&6
2423 else
2424 eval "$3=no"
2425 for ac_type in int$2_t 'int' 'long int' \
2426 'long long int' 'short int' 'signed char'; do
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2429 $ac_includes_default
2431 main ()
2433 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2434 test_array [0] = 0
2437 return 0;
2439 _ACEOF
2440 if ac_fn_cxx_try_compile "$LINENO"; then :
2441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2442 /* end confdefs.h. */
2443 $ac_includes_default
2445 main ()
2447 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2448 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2449 test_array [0] = 0
2452 return 0;
2454 _ACEOF
2455 if ac_fn_cxx_try_compile "$LINENO"; then :
2457 else
2458 case $ac_type in #(
2459 int$2_t) :
2460 eval "$3=yes" ;; #(
2461 *) :
2462 eval "$3=\$ac_type" ;;
2463 esac
2465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2468 eval as_val=\$$3
2469 if test "x$as_val" = x""no; then :
2471 else
2472 break
2474 done
2476 eval ac_res=\$$3
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2478 $as_echo "$ac_res" >&6; }
2479 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2481 } # ac_fn_c_find_intX_t
2483 # ac_fn_cxx_try_link LINENO
2484 # -------------------------
2485 # Try to link conftest.$ac_ext, and return whether this succeeded.
2486 ac_fn_cxx_try_link ()
2488 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2489 rm -f conftest.$ac_objext conftest$ac_exeext
2490 if { { ac_try="$ac_link"
2491 case "(($ac_try" in
2492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2493 *) ac_try_echo=$ac_try;;
2494 esac
2495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2496 $as_echo "$ac_try_echo"; } >&5
2497 (eval "$ac_link") 2>conftest.err
2498 ac_status=$?
2499 if test -s conftest.err; then
2500 grep -v '^ *+' conftest.err >conftest.er1
2501 cat conftest.er1 >&5
2502 mv -f conftest.er1 conftest.err
2504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2505 test $ac_status = 0; } && {
2506 test -z "$ac_cxx_werror_flag" ||
2507 test ! -s conftest.err
2508 } && test -s conftest$ac_exeext && {
2509 test "$cross_compiling" = yes ||
2510 $as_test_x conftest$ac_exeext
2511 }; then :
2512 ac_retval=0
2513 else
2514 $as_echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2517 ac_retval=1
2519 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2520 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2521 # interfere with the next link command; also delete a directory that is
2522 # left behind by Apple's compiler. We do this before executing the actions.
2523 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2524 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2525 return $ac_retval
2527 } # ac_fn_cxx_try_link
2529 # ac_fn_c_find_uintX_t LINENO BITS VAR
2530 # ------------------------------------
2531 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2532 # accordingly.
2533 ac_fn_c_find_uintX_t ()
2535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2537 $as_echo_n "checking for uint$2_t... " >&6; }
2538 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2539 $as_echo_n "(cached) " >&6
2540 else
2541 eval "$3=no"
2542 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2543 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545 /* end confdefs.h. */
2546 $ac_includes_default
2548 main ()
2550 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2551 test_array [0] = 0
2554 return 0;
2556 _ACEOF
2557 if ac_fn_cxx_try_compile "$LINENO"; then :
2558 case $ac_type in #(
2559 uint$2_t) :
2560 eval "$3=yes" ;; #(
2561 *) :
2562 eval "$3=\$ac_type" ;;
2563 esac
2565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2566 eval as_val=\$$3
2567 if test "x$as_val" = x""no; then :
2569 else
2570 break
2572 done
2574 eval ac_res=\$$3
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2576 $as_echo "$ac_res" >&6; }
2577 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2579 } # ac_fn_c_find_uintX_t
2581 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2582 # ------------------------------------------------
2583 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2584 ac_fn_cxx_check_header_preproc ()
2586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2588 $as_echo_n "checking for $2... " >&6; }
2589 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2590 $as_echo_n "(cached) " >&6
2591 else
2592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2593 /* end confdefs.h. */
2594 #include <$2>
2595 _ACEOF
2596 if ac_fn_cxx_try_cpp "$LINENO"; then :
2597 eval "$3=yes"
2598 else
2599 eval "$3=no"
2601 rm -f conftest.err conftest.$ac_ext
2603 eval ac_res=\$$3
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2605 $as_echo "$ac_res" >&6; }
2606 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2608 } # ac_fn_cxx_check_header_preproc
2610 # ac_fn_cxx_check_func LINENO FUNC VAR
2611 # ------------------------------------
2612 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2613 ac_fn_cxx_check_func ()
2615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2617 $as_echo_n "checking for $2... " >&6; }
2618 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2619 $as_echo_n "(cached) " >&6
2620 else
2621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2622 /* end confdefs.h. */
2623 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2625 #define $2 innocuous_$2
2627 /* System header to define __stub macros and hopefully few prototypes,
2628 which can conflict with char $2 (); below.
2629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2630 <limits.h> exists even on freestanding compilers. */
2632 #ifdef __STDC__
2633 # include <limits.h>
2634 #else
2635 # include <assert.h>
2636 #endif
2638 #undef $2
2640 /* Override any GCC internal prototype to avoid an error.
2641 Use char because int might match the return type of a GCC
2642 builtin and then its argument prototype would still apply. */
2643 #ifdef __cplusplus
2644 extern "C"
2645 #endif
2646 char $2 ();
2647 /* The GNU C library defines this for functions which it implements
2648 to always fail with ENOSYS. Some functions are actually named
2649 something starting with __ and the normal name is an alias. */
2650 #if defined __stub_$2 || defined __stub___$2
2651 choke me
2652 #endif
2655 main ()
2657 return $2 ();
2659 return 0;
2661 _ACEOF
2662 if ac_fn_cxx_try_link "$LINENO"; then :
2663 eval "$3=yes"
2664 else
2665 eval "$3=no"
2667 rm -f core conftest.err conftest.$ac_objext \
2668 conftest$ac_exeext conftest.$ac_ext
2670 eval ac_res=\$$3
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2672 $as_echo "$ac_res" >&6; }
2673 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2675 } # ac_fn_cxx_check_func
2677 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2678 # --------------------------------------
2679 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2680 ac_fn_cxx_check_decl ()
2682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2683 as_decl_name=`echo $2|sed 's/ *(.*//'`
2684 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2686 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2687 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2688 $as_echo_n "(cached) " >&6
2689 else
2690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2691 /* end confdefs.h. */
2694 main ()
2696 #ifndef $as_decl_name
2697 #ifdef __cplusplus
2698 (void) $as_decl_use;
2699 #else
2700 (void) $as_decl_name;
2701 #endif
2702 #endif
2705 return 0;
2707 _ACEOF
2708 if ac_fn_cxx_try_compile "$LINENO"; then :
2709 eval "$3=yes"
2710 else
2711 eval "$3=no"
2713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2715 eval ac_res=\$$3
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2717 $as_echo "$ac_res" >&6; }
2718 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2720 } # ac_fn_cxx_check_decl
2722 # ac_fn_c_try_link LINENO
2723 # -----------------------
2724 # Try to link conftest.$ac_ext, and return whether this succeeded.
2725 ac_fn_c_try_link ()
2727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2728 rm -f conftest.$ac_objext conftest$ac_exeext
2729 if { { ac_try="$ac_link"
2730 case "(($ac_try" in
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2733 esac
2734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2735 $as_echo "$ac_try_echo"; } >&5
2736 (eval "$ac_link") 2>conftest.err
2737 ac_status=$?
2738 if test -s conftest.err; then
2739 grep -v '^ *+' conftest.err >conftest.er1
2740 cat conftest.er1 >&5
2741 mv -f conftest.er1 conftest.err
2743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2744 test $ac_status = 0; } && {
2745 test -z "$ac_c_werror_flag" ||
2746 test ! -s conftest.err
2747 } && test -s conftest$ac_exeext && {
2748 test "$cross_compiling" = yes ||
2749 $as_test_x conftest$ac_exeext
2750 }; then :
2751 ac_retval=0
2752 else
2753 $as_echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2756 ac_retval=1
2758 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2759 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2760 # interfere with the next link command; also delete a directory that is
2761 # left behind by Apple's compiler. We do this before executing the actions.
2762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2764 return $ac_retval
2766 } # ac_fn_c_try_link
2768 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2769 # ----------------------------------------------
2770 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2771 ac_fn_c_check_header_preproc ()
2773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2775 $as_echo_n "checking for $2... " >&6; }
2776 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2777 $as_echo_n "(cached) " >&6
2778 else
2779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2780 /* end confdefs.h. */
2781 #include <$2>
2782 _ACEOF
2783 if ac_fn_c_try_cpp "$LINENO"; then :
2784 eval "$3=yes"
2785 else
2786 eval "$3=no"
2788 rm -f conftest.err conftest.$ac_ext
2790 eval ac_res=\$$3
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2792 $as_echo "$ac_res" >&6; }
2793 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2795 } # ac_fn_c_check_header_preproc
2797 # ac_fn_c_check_func LINENO FUNC VAR
2798 # ----------------------------------
2799 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2800 ac_fn_c_check_func ()
2802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2804 $as_echo_n "checking for $2... " >&6; }
2805 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2806 $as_echo_n "(cached) " >&6
2807 else
2808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2809 /* end confdefs.h. */
2810 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2812 #define $2 innocuous_$2
2814 /* System header to define __stub macros and hopefully few prototypes,
2815 which can conflict with char $2 (); below.
2816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2817 <limits.h> exists even on freestanding compilers. */
2819 #ifdef __STDC__
2820 # include <limits.h>
2821 #else
2822 # include <assert.h>
2823 #endif
2825 #undef $2
2827 /* Override any GCC internal prototype to avoid an error.
2828 Use char because int might match the return type of a GCC
2829 builtin and then its argument prototype would still apply. */
2830 #ifdef __cplusplus
2831 extern "C"
2832 #endif
2833 char $2 ();
2834 /* The GNU C library defines this for functions which it implements
2835 to always fail with ENOSYS. Some functions are actually named
2836 something starting with __ and the normal name is an alias. */
2837 #if defined __stub_$2 || defined __stub___$2
2838 choke me
2839 #endif
2842 main ()
2844 return $2 ();
2846 return 0;
2848 _ACEOF
2849 if ac_fn_c_try_link "$LINENO"; then :
2850 eval "$3=yes"
2851 else
2852 eval "$3=no"
2854 rm -f core conftest.err conftest.$ac_objext \
2855 conftest$ac_exeext conftest.$ac_ext
2857 eval ac_res=\$$3
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2859 $as_echo "$ac_res" >&6; }
2860 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2862 } # ac_fn_c_check_func
2863 cat >config.log <<_ACEOF
2864 This file contains any messages produced by compilers while
2865 running configure, to aid debugging if configure makes a mistake.
2867 It was created by $as_me, which was
2868 generated by GNU Autoconf 2.64. Invocation command line was
2870 $ $0 $@
2872 _ACEOF
2873 exec 5>>config.log
2875 cat <<_ASUNAME
2876 ## --------- ##
2877 ## Platform. ##
2878 ## --------- ##
2880 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2881 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2882 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2883 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2884 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2886 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2887 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2889 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2890 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2891 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2892 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2893 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2894 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2895 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2897 _ASUNAME
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2902 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=.
2904 $as_echo "PATH: $as_dir"
2905 done
2906 IFS=$as_save_IFS
2908 } >&5
2910 cat >&5 <<_ACEOF
2913 ## ----------- ##
2914 ## Core tests. ##
2915 ## ----------- ##
2917 _ACEOF
2920 # Keep a trace of the command line.
2921 # Strip out --no-create and --no-recursion so they do not pile up.
2922 # Strip out --silent because we don't want to record it for future runs.
2923 # Also quote any args containing shell meta-characters.
2924 # Make two passes to allow for proper duplicate-argument suppression.
2925 ac_configure_args=
2926 ac_configure_args0=
2927 ac_configure_args1=
2928 ac_must_keep_next=false
2929 for ac_pass in 1 2
2931 for ac_arg
2933 case $ac_arg in
2934 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2936 | -silent | --silent | --silen | --sile | --sil)
2937 continue ;;
2938 *\'*)
2939 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2940 esac
2941 case $ac_pass in
2942 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2944 as_fn_append ac_configure_args1 " '$ac_arg'"
2945 if test $ac_must_keep_next = true; then
2946 ac_must_keep_next=false # Got value, back to normal.
2947 else
2948 case $ac_arg in
2949 *=* | --config-cache | -C | -disable-* | --disable-* \
2950 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2951 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2952 | -with-* | --with-* | -without-* | --without-* | --x)
2953 case "$ac_configure_args0 " in
2954 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2955 esac
2957 -* ) ac_must_keep_next=true ;;
2958 esac
2960 as_fn_append ac_configure_args " '$ac_arg'"
2962 esac
2963 done
2964 done
2965 { ac_configure_args0=; unset ac_configure_args0;}
2966 { ac_configure_args1=; unset ac_configure_args1;}
2968 # When interrupted or exit'd, cleanup temporary files, and complete
2969 # config.log. We remove comments because anyway the quotes in there
2970 # would cause problems or look ugly.
2971 # WARNING: Use '\'' to represent an apostrophe within the trap.
2972 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2973 trap 'exit_status=$?
2974 # Save into config.log some information that might help in debugging.
2976 echo
2978 cat <<\_ASBOX
2979 ## ---------------- ##
2980 ## Cache variables. ##
2981 ## ---------------- ##
2982 _ASBOX
2983 echo
2984 # The following way of writing the cache mishandles newlines in values,
2986 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2987 eval ac_val=\$$ac_var
2988 case $ac_val in #(
2989 *${as_nl}*)
2990 case $ac_var in #(
2991 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2992 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2993 esac
2994 case $ac_var in #(
2995 _ | IFS | as_nl) ;; #(
2996 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2997 *) { eval $ac_var=; unset $ac_var;} ;;
2998 esac ;;
2999 esac
3000 done
3001 (set) 2>&1 |
3002 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3003 *${as_nl}ac_space=\ *)
3004 sed -n \
3005 "s/'\''/'\''\\\\'\'''\''/g;
3006 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3007 ;; #(
3009 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3011 esac |
3012 sort
3014 echo
3016 cat <<\_ASBOX
3017 ## ----------------- ##
3018 ## Output variables. ##
3019 ## ----------------- ##
3020 _ASBOX
3021 echo
3022 for ac_var in $ac_subst_vars
3024 eval ac_val=\$$ac_var
3025 case $ac_val in
3026 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3027 esac
3028 $as_echo "$ac_var='\''$ac_val'\''"
3029 done | sort
3030 echo
3032 if test -n "$ac_subst_files"; then
3033 cat <<\_ASBOX
3034 ## ------------------- ##
3035 ## File substitutions. ##
3036 ## ------------------- ##
3037 _ASBOX
3038 echo
3039 for ac_var in $ac_subst_files
3041 eval ac_val=\$$ac_var
3042 case $ac_val in
3043 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3044 esac
3045 $as_echo "$ac_var='\''$ac_val'\''"
3046 done | sort
3047 echo
3050 if test -s confdefs.h; then
3051 cat <<\_ASBOX
3052 ## ----------- ##
3053 ## confdefs.h. ##
3054 ## ----------- ##
3055 _ASBOX
3056 echo
3057 cat confdefs.h
3058 echo
3060 test "$ac_signal" != 0 &&
3061 $as_echo "$as_me: caught signal $ac_signal"
3062 $as_echo "$as_me: exit $exit_status"
3063 } >&5
3064 rm -f core *.core core.conftest.* &&
3065 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3066 exit $exit_status
3068 for ac_signal in 1 2 13 15; do
3069 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3070 done
3071 ac_signal=0
3073 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3074 rm -f -r conftest* confdefs.h
3076 $as_echo "/* confdefs.h */" > confdefs.h
3078 # Predefined preprocessor variables.
3080 cat >>confdefs.h <<_ACEOF
3081 #define PACKAGE_NAME "$PACKAGE_NAME"
3082 _ACEOF
3084 cat >>confdefs.h <<_ACEOF
3085 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3086 _ACEOF
3088 cat >>confdefs.h <<_ACEOF
3089 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3090 _ACEOF
3092 cat >>confdefs.h <<_ACEOF
3093 #define PACKAGE_STRING "$PACKAGE_STRING"
3094 _ACEOF
3096 cat >>confdefs.h <<_ACEOF
3097 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3098 _ACEOF
3100 cat >>confdefs.h <<_ACEOF
3101 #define PACKAGE_URL "$PACKAGE_URL"
3102 _ACEOF
3105 # Let the site file select an alternate cache file if it wants to.
3106 # Prefer an explicitly selected file to automatically selected ones.
3107 ac_site_file1=NONE
3108 ac_site_file2=NONE
3109 if test -n "$CONFIG_SITE"; then
3110 ac_site_file1=$CONFIG_SITE
3111 elif test "x$prefix" != xNONE; then
3112 ac_site_file1=$prefix/share/config.site
3113 ac_site_file2=$prefix/etc/config.site
3114 else
3115 ac_site_file1=$ac_default_prefix/share/config.site
3116 ac_site_file2=$ac_default_prefix/etc/config.site
3118 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3120 test "x$ac_site_file" = xNONE && continue
3121 if test -r "$ac_site_file"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3123 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3124 sed 's/^/| /' "$ac_site_file" >&5
3125 . "$ac_site_file"
3127 done
3129 if test -r "$cache_file"; then
3130 # Some versions of bash will fail to source /dev/null (special
3131 # files actually), so we avoid doing that.
3132 if test -f "$cache_file"; then
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3134 $as_echo "$as_me: loading cache $cache_file" >&6;}
3135 case $cache_file in
3136 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3137 *) . "./$cache_file";;
3138 esac
3140 else
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3142 $as_echo "$as_me: creating cache $cache_file" >&6;}
3143 >$cache_file
3146 # Check that the precious variables saved in the cache have kept the same
3147 # value.
3148 ac_cache_corrupted=false
3149 for ac_var in $ac_precious_vars; do
3150 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3151 eval ac_new_set=\$ac_env_${ac_var}_set
3152 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3153 eval ac_new_val=\$ac_env_${ac_var}_value
3154 case $ac_old_set,$ac_new_set in
3155 set,)
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3157 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3158 ac_cache_corrupted=: ;;
3159 ,set)
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3161 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3162 ac_cache_corrupted=: ;;
3163 ,);;
3165 if test "x$ac_old_val" != "x$ac_new_val"; then
3166 # differences in whitespace do not lead to failure.
3167 ac_old_val_w=`echo x $ac_old_val`
3168 ac_new_val_w=`echo x $ac_new_val`
3169 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3171 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3172 ac_cache_corrupted=:
3173 else
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3175 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3176 eval $ac_var=\$ac_old_val
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3179 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3181 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3182 fi;;
3183 esac
3184 # Pass precious variables to config.status.
3185 if test "$ac_new_set" = set; then
3186 case $ac_new_val in
3187 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3188 *) ac_arg=$ac_var=$ac_new_val ;;
3189 esac
3190 case " $ac_configure_args " in
3191 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3192 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3193 esac
3195 done
3196 if $ac_cache_corrupted; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3200 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3201 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3203 ## -------------------- ##
3204 ## Main body of script. ##
3205 ## -------------------- ##
3207 ac_ext=c
3208 ac_cpp='$CPP $CPPFLAGS'
3209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3218 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3221 gcc_version=`cat $srcdir/BASE-VER`
3223 # Determine the host, build, and target systems
3224 ac_aux_dir=
3225 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3226 for ac_t in install-sh install.sh shtool; do
3227 if test -f "$ac_dir/$ac_t"; then
3228 ac_aux_dir=$ac_dir
3229 ac_install_sh="$ac_aux_dir/$ac_t -c"
3230 break 2
3232 done
3233 done
3234 if test -z "$ac_aux_dir"; then
3235 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3238 # These three variables are undocumented and unsupported,
3239 # and are intended to be withdrawn in a future Autoconf release.
3240 # They can cause serious problems if a builder's source tree is in a directory
3241 # whose full name contains unusual characters.
3242 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3243 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3244 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3247 # Make sure we can run config.sub.
3248 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3249 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3252 $as_echo_n "checking build system type... " >&6; }
3253 if test "${ac_cv_build+set}" = set; then :
3254 $as_echo_n "(cached) " >&6
3255 else
3256 ac_build_alias=$build_alias
3257 test "x$ac_build_alias" = x &&
3258 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3259 test "x$ac_build_alias" = x &&
3260 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3261 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3262 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3266 $as_echo "$ac_cv_build" >&6; }
3267 case $ac_cv_build in
3268 *-*-*) ;;
3269 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3270 esac
3271 build=$ac_cv_build
3272 ac_save_IFS=$IFS; IFS='-'
3273 set x $ac_cv_build
3274 shift
3275 build_cpu=$1
3276 build_vendor=$2
3277 shift; shift
3278 # Remember, the first character of IFS is used to create $*,
3279 # except with old shells:
3280 build_os=$*
3281 IFS=$ac_save_IFS
3282 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3286 $as_echo_n "checking host system type... " >&6; }
3287 if test "${ac_cv_host+set}" = set; then :
3288 $as_echo_n "(cached) " >&6
3289 else
3290 if test "x$host_alias" = x; then
3291 ac_cv_host=$ac_cv_build
3292 else
3293 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3294 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3299 $as_echo "$ac_cv_host" >&6; }
3300 case $ac_cv_host in
3301 *-*-*) ;;
3302 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3303 esac
3304 host=$ac_cv_host
3305 ac_save_IFS=$IFS; IFS='-'
3306 set x $ac_cv_host
3307 shift
3308 host_cpu=$1
3309 host_vendor=$2
3310 shift; shift
3311 # Remember, the first character of IFS is used to create $*,
3312 # except with old shells:
3313 host_os=$*
3314 IFS=$ac_save_IFS
3315 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3319 $as_echo_n "checking target system type... " >&6; }
3320 if test "${ac_cv_target+set}" = set; then :
3321 $as_echo_n "(cached) " >&6
3322 else
3323 if test "x$target_alias" = x; then
3324 ac_cv_target=$ac_cv_host
3325 else
3326 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3327 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3332 $as_echo "$ac_cv_target" >&6; }
3333 case $ac_cv_target in
3334 *-*-*) ;;
3335 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3336 esac
3337 target=$ac_cv_target
3338 ac_save_IFS=$IFS; IFS='-'
3339 set x $ac_cv_target
3340 shift
3341 target_cpu=$1
3342 target_vendor=$2
3343 shift; shift
3344 # Remember, the first character of IFS is used to create $*,
3345 # except with old shells:
3346 target_os=$*
3347 IFS=$ac_save_IFS
3348 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3351 # The aliases save the names the user supplied, while $host etc.
3352 # will get canonicalized.
3353 test -n "$target_alias" &&
3354 test "$program_prefix$program_suffix$program_transform_name" = \
3355 NONENONEs,x,x, &&
3356 program_prefix=${target_alias}-
3358 # Determine the noncanonical host name, for Ada.
3359 case ${build_alias} in
3360 "") build_noncanonical=${build} ;;
3361 *) build_noncanonical=${build_alias} ;;
3362 esac
3364 case ${host_alias} in
3365 "") host_noncanonical=${build_noncanonical} ;;
3366 *) host_noncanonical=${host_alias} ;;
3367 esac
3372 # Determine the noncanonical target name, for directory use.
3373 case ${target_alias} in
3374 "") target_noncanonical=${host_noncanonical} ;;
3375 *) target_noncanonical=${target_alias} ;;
3376 esac
3381 # Used for constructing correct paths for offload compilers.
3382 real_target_noncanonical=${target_noncanonical}
3383 accel_dir_suffix=
3385 # Determine the target- and build-specific subdirectories
3387 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3388 # have matching libraries, they should use host libraries: Makefile.tpl
3389 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3390 # However, they still use the build modules, because the corresponding
3391 # host modules (e.g. bison) are only built for the host when bootstrap
3392 # finishes. So:
3393 # - build_subdir is where we find build modules, and never changes.
3394 # - build_libsubdir is where we find build libraries, and can be overridden.
3396 # Prefix 'build-' so this never conflicts with target_subdir.
3397 build_subdir="build-${build_noncanonical}"
3399 # Check whether --with-build-libsubdir was given.
3400 if test "${with_build_libsubdir+set}" = set; then :
3401 withval=$with_build_libsubdir; build_libsubdir="$withval"
3402 else
3403 build_libsubdir="$build_subdir"
3406 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3407 if ( test $srcdir = . && test -d gcc ) \
3408 || test -d $srcdir/../host-${host_noncanonical}; then
3409 host_subdir="host-${host_noncanonical}"
3410 else
3411 host_subdir=.
3413 # No prefix.
3414 target_subdir=${target_noncanonical}
3417 # Set program_transform_name
3418 test "$program_prefix" != NONE &&
3419 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3420 # Use a double $ so make ignores it.
3421 test "$program_suffix" != NONE &&
3422 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3423 # Double any \ or $.
3424 # By default was `s,x,x', remove it if useless.
3425 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3426 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3429 # Check for bogus environment variables.
3430 # Test if LIBRARY_PATH contains the notation for the current directory
3431 # since this would lead to problems installing/building glibc.
3432 # LIBRARY_PATH contains the current directory if one of the following
3433 # is true:
3434 # - one of the terminals (":" and ";") is the first or last sign
3435 # - two terminals occur directly after each other
3436 # - the path contains an element with a dot in it
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3438 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3439 case ${LIBRARY_PATH} in
3440 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3441 library_path_setting="contains current directory"
3444 library_path_setting="ok"
3446 esac
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3448 $as_echo "$library_path_setting" >&6; }
3449 if test "$library_path_setting" != "ok"; then
3450 as_fn_error "
3451 *** LIBRARY_PATH shouldn't contain the current directory when
3452 *** building gcc. Please change the environment variable
3453 *** and run configure again." "$LINENO" 5
3456 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3457 # since this would lead to problems installing/building glibc.
3458 # GCC_EXEC_PREFIX contains the current directory if one of the following
3459 # is true:
3460 # - one of the terminals (":" and ";") is the first or last sign
3461 # - two terminals occur directly after each other
3462 # - the path contains an element with a dot in it
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3464 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3465 case ${GCC_EXEC_PREFIX} in
3466 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3467 gcc_exec_prefix_setting="contains current directory"
3470 gcc_exec_prefix_setting="ok"
3472 esac
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3474 $as_echo "$gcc_exec_prefix_setting" >&6; }
3475 if test "$gcc_exec_prefix_setting" != "ok"; then
3476 as_fn_error "
3477 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3478 *** building gcc. Please change the environment variable
3479 *** and run configure again." "$LINENO" 5
3482 # -----------
3483 # Directories
3484 # -----------
3486 # Specify the local prefix
3487 local_prefix=
3489 # Check whether --with-local-prefix was given.
3490 if test "${with_local_prefix+set}" = set; then :
3491 withval=$with_local_prefix; case "${withval}" in
3492 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3493 no) ;;
3494 *) local_prefix=$with_local_prefix ;;
3495 esac
3499 # Default local prefix if it is empty
3500 if test x$local_prefix = x; then
3501 local_prefix=/usr/local
3505 # Check whether --with-native-system-header-dir was given.
3506 if test "${with_native_system_header_dir+set}" = set; then :
3507 withval=$with_native_system_header_dir;
3508 case ${with_native_system_header_dir} in
3509 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3510 /* | [A-Za-z]:[\\/]*) ;;
3511 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3512 esac
3513 configured_native_system_header_dir="${withval}"
3515 else
3516 configured_native_system_header_dir=
3521 # Check whether --with-build-sysroot was given.
3522 if test "${with_build_sysroot+set}" = set; then :
3523 withval=$with_build_sysroot; if test x"$withval" != x ; then
3524 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3526 else
3527 SYSROOT_CFLAGS_FOR_TARGET=
3532 if test "x$prefix" = xNONE; then
3533 test_prefix=/usr/local
3534 else
3535 test_prefix=$prefix
3537 if test "x$exec_prefix" = xNONE; then
3538 test_exec_prefix=$test_prefix
3539 else
3540 test_exec_prefix=$exec_prefix
3544 # Check whether --with-sysroot was given.
3545 if test "${with_sysroot+set}" = set; then :
3546 withval=$with_sysroot;
3547 case ${with_sysroot} in
3548 /) ;;
3549 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3550 esac
3551 case ${with_sysroot} in
3552 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3553 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3554 esac
3556 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3557 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3559 case ${TARGET_SYSTEM_ROOT} in
3560 "${test_prefix}"|"${test_prefix}/"*|\
3561 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3562 '${prefix}'|'${prefix}/'*|\
3563 '${exec_prefix}'|'${exec_prefix}/'*)
3564 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3565 TARGET_SYSTEM_ROOT_DEFINE="$t"
3567 esac
3569 else
3571 TARGET_SYSTEM_ROOT=
3572 TARGET_SYSTEM_ROOT_DEFINE=
3573 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3581 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3582 # passed in by the toplevel make and thus we'd get different behavior
3583 # depending on where we built the sources.
3584 gcc_gxx_include_dir=
3585 # Specify the g++ header file directory
3587 # Check whether --with-gxx-include-dir was given.
3588 if test "${with_gxx_include_dir+set}" = set; then :
3589 withval=$with_gxx_include_dir; case "${withval}" in
3590 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3591 no) ;;
3592 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3593 esac
3597 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3598 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3599 # relative to the sysroot.
3600 gcc_gxx_include_dir_add_sysroot=0
3602 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3603 if test x${gcc_gxx_include_dir} = x; then
3604 if test x${enable_version_specific_runtime_libs} = xyes; then
3605 gcc_gxx_include_dir='${libsubdir}/include/c++'
3606 else
3607 libstdcxx_incdir='include/c++/$(version)'
3608 if test x$host != x$target; then
3609 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3611 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3613 elif test "${with_sysroot+set}" = set; then
3614 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3615 if test "${gcc_gxx_without_sysroot}"; then
3616 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3617 gcc_gxx_include_dir_add_sysroot=1
3622 # Check whether --with-cpp_install_dir was given.
3623 if test "${with_cpp_install_dir+set}" = set; then :
3624 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3625 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3626 elif test x$withval != xno; then
3627 cpp_install_dir=$withval
3632 # We would like to our source tree to be readonly. However when releases or
3633 # pre-releases are generated, the flex/bison generated files as well as the
3634 # various formats of manuals need to be included along with the rest of the
3635 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3636 # just that.
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3639 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3640 # Check whether --enable-generated-files-in-srcdir was given.
3641 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3642 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3643 else
3644 generated_files_in_srcdir=no
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3649 $as_echo "$generated_files_in_srcdir" >&6; }
3651 if test "$generated_files_in_srcdir" = "yes"; then
3652 GENINSRC=''
3653 else
3654 GENINSRC='#'
3658 # -------------------
3659 # Find default linker
3660 # -------------------
3662 # With GNU ld
3664 # Check whether --with-gnu-ld was given.
3665 if test "${with_gnu_ld+set}" = set; then :
3666 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3667 else
3668 gnu_ld_flag=no
3672 case $target in
3673 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3674 *) ld64_flag=no;;
3675 esac
3677 # With pre-defined ld
3679 # Check whether --with-ld was given.
3680 if test "${with_ld+set}" = set; then :
3681 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3684 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3685 if test ! -x "$DEFAULT_LINKER"; then
3686 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3687 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3688 gnu_ld_flag=yes
3689 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3690 ld64_flag=yes
3693 cat >>confdefs.h <<_ACEOF
3694 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3695 _ACEOF
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3700 $as_echo_n "checking whether a default linker was specified... " >&6; }
3701 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3702 if test x"$gnu_ld_flag" = x"no"; then
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3704 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3705 else
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3707 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3709 else
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711 $as_echo "no" >&6; }
3714 # With demangler in GNU ld
3716 # Check whether --with-demangler-in-ld was given.
3717 if test "${with_demangler_in_ld+set}" = set; then :
3718 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3719 else
3720 demangler_in_ld=yes
3724 # ----------------------
3725 # Find default assembler
3726 # ----------------------
3728 # With GNU as
3730 # Check whether --with-gnu-as was given.
3731 if test "${with_gnu_as+set}" = set; then :
3732 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3733 else
3734 gas_flag=no
3739 # Check whether --with-as was given.
3740 if test "${with_as+set}" = set; then :
3741 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3744 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3745 if test ! -x "$DEFAULT_ASSEMBLER"; then
3746 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3747 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3748 gas_flag=yes
3751 cat >>confdefs.h <<_ACEOF
3752 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3753 _ACEOF
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3758 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3759 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3760 if test x"$gas_flag" = x"no"; then
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3762 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3763 else
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3765 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3767 else
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3769 $as_echo "no" >&6; }
3772 # ---------------
3773 # Find C compiler
3774 # ---------------
3776 # If a non-executable a.out is present (e.g. created by GNU as above even if
3777 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3778 # file, even when creating an executable, so an execution test fails.
3779 # Remove possible default executable files to avoid this.
3781 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3782 # Autoconf includes it.
3783 rm -f a.out a.exe b.out
3785 # Find the native compiler
3786 ac_ext=c
3787 ac_cpp='$CPP $CPPFLAGS'
3788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3791 if test -n "$ac_tool_prefix"; then
3792 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3793 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3795 $as_echo_n "checking for $ac_word... " >&6; }
3796 if test "${ac_cv_prog_CC+set}" = set; then :
3797 $as_echo_n "(cached) " >&6
3798 else
3799 if test -n "$CC"; then
3800 ac_cv_prog_CC="$CC" # Let the user override the test.
3801 else
3802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803 for as_dir in $PATH
3805 IFS=$as_save_IFS
3806 test -z "$as_dir" && as_dir=.
3807 for ac_exec_ext in '' $ac_executable_extensions; do
3808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3809 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3811 break 2
3813 done
3814 done
3815 IFS=$as_save_IFS
3819 CC=$ac_cv_prog_CC
3820 if test -n "$CC"; then
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3822 $as_echo "$CC" >&6; }
3823 else
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825 $as_echo "no" >&6; }
3830 if test -z "$ac_cv_prog_CC"; then
3831 ac_ct_CC=$CC
3832 # Extract the first word of "gcc", so it can be a program name with args.
3833 set dummy gcc; ac_word=$2
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3835 $as_echo_n "checking for $ac_word... " >&6; }
3836 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3837 $as_echo_n "(cached) " >&6
3838 else
3839 if test -n "$ac_ct_CC"; then
3840 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3841 else
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 for as_dir in $PATH
3845 IFS=$as_save_IFS
3846 test -z "$as_dir" && as_dir=.
3847 for ac_exec_ext in '' $ac_executable_extensions; do
3848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3849 ac_cv_prog_ac_ct_CC="gcc"
3850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3851 break 2
3853 done
3854 done
3855 IFS=$as_save_IFS
3859 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3860 if test -n "$ac_ct_CC"; then
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3862 $as_echo "$ac_ct_CC" >&6; }
3863 else
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3865 $as_echo "no" >&6; }
3868 if test "x$ac_ct_CC" = x; then
3869 CC=""
3870 else
3871 case $cross_compiling:$ac_tool_warned in
3872 yes:)
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3875 ac_tool_warned=yes ;;
3876 esac
3877 CC=$ac_ct_CC
3879 else
3880 CC="$ac_cv_prog_CC"
3883 if test -z "$CC"; then
3884 if test -n "$ac_tool_prefix"; then
3885 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3886 set dummy ${ac_tool_prefix}cc; ac_word=$2
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3888 $as_echo_n "checking for $ac_word... " >&6; }
3889 if test "${ac_cv_prog_CC+set}" = set; then :
3890 $as_echo_n "(cached) " >&6
3891 else
3892 if test -n "$CC"; then
3893 ac_cv_prog_CC="$CC" # Let the user override the test.
3894 else
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 for as_dir in $PATH
3898 IFS=$as_save_IFS
3899 test -z "$as_dir" && as_dir=.
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3902 ac_cv_prog_CC="${ac_tool_prefix}cc"
3903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 break 2
3906 done
3907 done
3908 IFS=$as_save_IFS
3912 CC=$ac_cv_prog_CC
3913 if test -n "$CC"; then
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3915 $as_echo "$CC" >&6; }
3916 else
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3918 $as_echo "no" >&6; }
3924 if test -z "$CC"; then
3925 # Extract the first word of "cc", so it can be a program name with args.
3926 set dummy cc; ac_word=$2
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3928 $as_echo_n "checking for $ac_word... " >&6; }
3929 if test "${ac_cv_prog_CC+set}" = set; then :
3930 $as_echo_n "(cached) " >&6
3931 else
3932 if test -n "$CC"; then
3933 ac_cv_prog_CC="$CC" # Let the user override the test.
3934 else
3935 ac_prog_rejected=no
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 for as_dir in $PATH
3939 IFS=$as_save_IFS
3940 test -z "$as_dir" && as_dir=.
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3943 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3944 ac_prog_rejected=yes
3945 continue
3947 ac_cv_prog_CC="cc"
3948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3949 break 2
3951 done
3952 done
3953 IFS=$as_save_IFS
3955 if test $ac_prog_rejected = yes; then
3956 # We found a bogon in the path, so make sure we never use it.
3957 set dummy $ac_cv_prog_CC
3958 shift
3959 if test $# != 0; then
3960 # We chose a different compiler from the bogus one.
3961 # However, it has the same basename, so the bogon will be chosen
3962 # first if we set CC to just the basename; use the full file name.
3963 shift
3964 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3969 CC=$ac_cv_prog_CC
3970 if test -n "$CC"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3972 $as_echo "$CC" >&6; }
3973 else
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975 $as_echo "no" >&6; }
3980 if test -z "$CC"; then
3981 if test -n "$ac_tool_prefix"; then
3982 for ac_prog in cl.exe
3984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3987 $as_echo_n "checking for $ac_word... " >&6; }
3988 if test "${ac_cv_prog_CC+set}" = set; then :
3989 $as_echo_n "(cached) " >&6
3990 else
3991 if test -n "$CC"; then
3992 ac_cv_prog_CC="$CC" # Let the user override the test.
3993 else
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 for as_dir in $PATH
3997 IFS=$as_save_IFS
3998 test -z "$as_dir" && as_dir=.
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4001 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4003 break 2
4005 done
4006 done
4007 IFS=$as_save_IFS
4011 CC=$ac_cv_prog_CC
4012 if test -n "$CC"; then
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4014 $as_echo "$CC" >&6; }
4015 else
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017 $as_echo "no" >&6; }
4021 test -n "$CC" && break
4022 done
4024 if test -z "$CC"; then
4025 ac_ct_CC=$CC
4026 for ac_prog in cl.exe
4028 # Extract the first word of "$ac_prog", so it can be a program name with args.
4029 set dummy $ac_prog; ac_word=$2
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4031 $as_echo_n "checking for $ac_word... " >&6; }
4032 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4033 $as_echo_n "(cached) " >&6
4034 else
4035 if test -n "$ac_ct_CC"; then
4036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4037 else
4038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4039 for as_dir in $PATH
4041 IFS=$as_save_IFS
4042 test -z "$as_dir" && as_dir=.
4043 for ac_exec_ext in '' $ac_executable_extensions; do
4044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4045 ac_cv_prog_ac_ct_CC="$ac_prog"
4046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4047 break 2
4049 done
4050 done
4051 IFS=$as_save_IFS
4055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4056 if test -n "$ac_ct_CC"; then
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4058 $as_echo "$ac_ct_CC" >&6; }
4059 else
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061 $as_echo "no" >&6; }
4065 test -n "$ac_ct_CC" && break
4066 done
4068 if test "x$ac_ct_CC" = x; then
4069 CC=""
4070 else
4071 case $cross_compiling:$ac_tool_warned in
4072 yes:)
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4075 ac_tool_warned=yes ;;
4076 esac
4077 CC=$ac_ct_CC
4084 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4086 as_fn_error "no acceptable C compiler found in \$PATH
4087 See \`config.log' for more details." "$LINENO" 5; }
4089 # Provide some information about the compiler.
4090 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4091 set X $ac_compile
4092 ac_compiler=$2
4093 for ac_option in --version -v -V -qversion; do
4094 { { ac_try="$ac_compiler $ac_option >&5"
4095 case "(($ac_try" in
4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4098 esac
4099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4100 $as_echo "$ac_try_echo"; } >&5
4101 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4102 ac_status=$?
4103 if test -s conftest.err; then
4104 sed '10a\
4105 ... rest of stderr output deleted ...
4106 10q' conftest.err >conftest.er1
4107 cat conftest.er1 >&5
4108 rm -f conftest.er1 conftest.err
4110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4111 test $ac_status = 0; }
4112 done
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4118 main ()
4122 return 0;
4124 _ACEOF
4125 ac_clean_files_save=$ac_clean_files
4126 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4127 # Try to create an executable without -o first, disregard a.out.
4128 # It will help us diagnose broken compilers, and finding out an intuition
4129 # of exeext.
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4131 $as_echo_n "checking for C compiler default output file name... " >&6; }
4132 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4134 # The possible output files:
4135 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4137 ac_rmfiles=
4138 for ac_file in $ac_files
4140 case $ac_file in
4141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4142 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4143 esac
4144 done
4145 rm -f $ac_rmfiles
4147 if { { ac_try="$ac_link_default"
4148 case "(($ac_try" in
4149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150 *) ac_try_echo=$ac_try;;
4151 esac
4152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4153 $as_echo "$ac_try_echo"; } >&5
4154 (eval "$ac_link_default") 2>&5
4155 ac_status=$?
4156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4157 test $ac_status = 0; }; then :
4158 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4159 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4160 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4161 # so that the user can short-circuit this test for compilers unknown to
4162 # Autoconf.
4163 for ac_file in $ac_files ''
4165 test -f "$ac_file" || continue
4166 case $ac_file in
4167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4169 [ab].out )
4170 # We found the default executable, but exeext='' is most
4171 # certainly right.
4172 break;;
4173 *.* )
4174 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4175 then :; else
4176 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4178 # We set ac_cv_exeext here because the later test for it is not
4179 # safe: cross compilers may not add the suffix if given an `-o'
4180 # argument, so we may need to know it at that point already.
4181 # Even if this section looks crufty: it has the advantage of
4182 # actually working.
4183 break;;
4185 break;;
4186 esac
4187 done
4188 test "$ac_cv_exeext" = no && ac_cv_exeext=
4190 else
4191 ac_file=''
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4194 $as_echo "$ac_file" >&6; }
4195 if test -z "$ac_file"; then :
4196 $as_echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4201 { as_fn_set_status 77
4202 as_fn_error "C compiler cannot create executables
4203 See \`config.log' for more details." "$LINENO" 5; }; }
4205 ac_exeext=$ac_cv_exeext
4207 # Check that the compiler produces executables we can run. If not, either
4208 # the compiler is broken, or we cross compile.
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4210 $as_echo_n "checking whether the C compiler works... " >&6; }
4211 # If not cross compiling, check that we can run a simple program.
4212 if test "$cross_compiling" != yes; then
4213 if { ac_try='./$ac_file'
4214 { { case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4217 esac
4218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4219 $as_echo "$ac_try_echo"; } >&5
4220 (eval "$ac_try") 2>&5
4221 ac_status=$?
4222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4223 test $ac_status = 0; }; }; then
4224 cross_compiling=no
4225 else
4226 if test "$cross_compiling" = maybe; then
4227 cross_compiling=yes
4228 else
4229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4231 as_fn_error "cannot run C compiled programs.
4232 If you meant to cross compile, use \`--host'.
4233 See \`config.log' for more details." "$LINENO" 5; }
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4238 $as_echo "yes" >&6; }
4240 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4241 ac_clean_files=$ac_clean_files_save
4242 # Check that the compiler produces executables we can run. If not, either
4243 # the compiler is broken, or we cross compile.
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4245 $as_echo_n "checking whether we are cross compiling... " >&6; }
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4247 $as_echo "$cross_compiling" >&6; }
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4250 $as_echo_n "checking for suffix of executables... " >&6; }
4251 if { { ac_try="$ac_link"
4252 case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4255 esac
4256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4257 $as_echo "$ac_try_echo"; } >&5
4258 (eval "$ac_link") 2>&5
4259 ac_status=$?
4260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4261 test $ac_status = 0; }; then :
4262 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4263 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4264 # work properly (i.e., refer to `conftest.exe'), while it won't with
4265 # `rm'.
4266 for ac_file in conftest.exe conftest conftest.*; do
4267 test -f "$ac_file" || continue
4268 case $ac_file in
4269 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4270 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4271 break;;
4272 * ) break;;
4273 esac
4274 done
4275 else
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 executables: cannot compile and link
4279 See \`config.log' for more details." "$LINENO" 5; }
4281 rm -f conftest$ac_cv_exeext
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4283 $as_echo "$ac_cv_exeext" >&6; }
4285 rm -f conftest.$ac_ext
4286 EXEEXT=$ac_cv_exeext
4287 ac_exeext=$EXEEXT
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4289 $as_echo_n "checking for suffix of object files... " >&6; }
4290 if test "${ac_cv_objext+set}" = set; then :
4291 $as_echo_n "(cached) " >&6
4292 else
4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h. */
4297 main ()
4301 return 0;
4303 _ACEOF
4304 rm -f conftest.o conftest.obj
4305 if { { ac_try="$ac_compile"
4306 case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4309 esac
4310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4311 $as_echo "$ac_try_echo"; } >&5
4312 (eval "$ac_compile") 2>&5
4313 ac_status=$?
4314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315 test $ac_status = 0; }; then :
4316 for ac_file in conftest.o conftest.obj conftest.*; do
4317 test -f "$ac_file" || continue;
4318 case $ac_file in
4319 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4320 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4321 break;;
4322 esac
4323 done
4324 else
4325 $as_echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4330 as_fn_error "cannot compute suffix of object files: cannot compile
4331 See \`config.log' for more details." "$LINENO" 5; }
4333 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4336 $as_echo "$ac_cv_objext" >&6; }
4337 OBJEXT=$ac_cv_objext
4338 ac_objext=$OBJEXT
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4340 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4341 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4342 $as_echo_n "(cached) " >&6
4343 else
4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345 /* end confdefs.h. */
4348 main ()
4350 #ifndef __GNUC__
4351 choke me
4352 #endif
4355 return 0;
4357 _ACEOF
4358 if ac_fn_c_try_compile "$LINENO"; then :
4359 ac_compiler_gnu=yes
4360 else
4361 ac_compiler_gnu=no
4363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4364 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4368 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4369 if test $ac_compiler_gnu = yes; then
4370 GCC=yes
4371 else
4372 GCC=
4374 ac_test_CFLAGS=${CFLAGS+set}
4375 ac_save_CFLAGS=$CFLAGS
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4377 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4378 if test "${ac_cv_prog_cc_g+set}" = set; then :
4379 $as_echo_n "(cached) " >&6
4380 else
4381 ac_save_c_werror_flag=$ac_c_werror_flag
4382 ac_c_werror_flag=yes
4383 ac_cv_prog_cc_g=no
4384 CFLAGS="-g"
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4389 main ()
4393 return 0;
4395 _ACEOF
4396 if ac_fn_c_try_compile "$LINENO"; then :
4397 ac_cv_prog_cc_g=yes
4398 else
4399 CFLAGS=""
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4404 main ()
4408 return 0;
4410 _ACEOF
4411 if ac_fn_c_try_compile "$LINENO"; then :
4413 else
4414 ac_c_werror_flag=$ac_save_c_werror_flag
4415 CFLAGS="-g"
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h. */
4420 main ()
4424 return 0;
4426 _ACEOF
4427 if ac_fn_c_try_compile "$LINENO"; then :
4428 ac_cv_prog_cc_g=yes
4430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4435 ac_c_werror_flag=$ac_save_c_werror_flag
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4438 $as_echo "$ac_cv_prog_cc_g" >&6; }
4439 if test "$ac_test_CFLAGS" = set; then
4440 CFLAGS=$ac_save_CFLAGS
4441 elif test $ac_cv_prog_cc_g = yes; then
4442 if test "$GCC" = yes; then
4443 CFLAGS="-g -O2"
4444 else
4445 CFLAGS="-g"
4447 else
4448 if test "$GCC" = yes; then
4449 CFLAGS="-O2"
4450 else
4451 CFLAGS=
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4455 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4456 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4457 $as_echo_n "(cached) " >&6
4458 else
4459 ac_cv_prog_cc_c89=no
4460 ac_save_CC=$CC
4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462 /* end confdefs.h. */
4463 #include <stdarg.h>
4464 #include <stdio.h>
4465 #include <sys/types.h>
4466 #include <sys/stat.h>
4467 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4468 struct buf { int x; };
4469 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4470 static char *e (p, i)
4471 char **p;
4472 int i;
4474 return p[i];
4476 static char *f (char * (*g) (char **, int), char **p, ...)
4478 char *s;
4479 va_list v;
4480 va_start (v,p);
4481 s = g (p, va_arg (v,int));
4482 va_end (v);
4483 return s;
4486 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4487 function prototypes and stuff, but not '\xHH' hex character constants.
4488 These don't provoke an error unfortunately, instead are silently treated
4489 as 'x'. The following induces an error, until -std is added to get
4490 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4491 array size at least. It's necessary to write '\x00'==0 to get something
4492 that's true only with -std. */
4493 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4495 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4496 inside strings and character constants. */
4497 #define FOO(x) 'x'
4498 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4500 int test (int i, double x);
4501 struct s1 {int (*f) (int a);};
4502 struct s2 {int (*f) (double a);};
4503 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4504 int argc;
4505 char **argv;
4507 main ()
4509 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4511 return 0;
4513 _ACEOF
4514 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4515 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4517 CC="$ac_save_CC $ac_arg"
4518 if ac_fn_c_try_compile "$LINENO"; then :
4519 ac_cv_prog_cc_c89=$ac_arg
4521 rm -f core conftest.err conftest.$ac_objext
4522 test "x$ac_cv_prog_cc_c89" != "xno" && break
4523 done
4524 rm -f conftest.$ac_ext
4525 CC=$ac_save_CC
4528 # AC_CACHE_VAL
4529 case "x$ac_cv_prog_cc_c89" in
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4532 $as_echo "none needed" >&6; } ;;
4533 xno)
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4535 $as_echo "unsupported" >&6; } ;;
4537 CC="$CC $ac_cv_prog_cc_c89"
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4539 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4540 esac
4541 if test "x$ac_cv_prog_cc_c89" != xno; then :
4545 ac_ext=c
4546 ac_cpp='$CPP $CPPFLAGS'
4547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4551 ac_ext=cpp
4552 ac_cpp='$CXXCPP $CPPFLAGS'
4553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4556 if test -z "$CXX"; then
4557 if test -n "$CCC"; then
4558 CXX=$CCC
4559 else
4560 if test -n "$ac_tool_prefix"; then
4561 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4563 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4564 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4566 $as_echo_n "checking for $ac_word... " >&6; }
4567 if test "${ac_cv_prog_CXX+set}" = set; then :
4568 $as_echo_n "(cached) " >&6
4569 else
4570 if test -n "$CXX"; then
4571 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4572 else
4573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 for as_dir in $PATH
4576 IFS=$as_save_IFS
4577 test -z "$as_dir" && as_dir=.
4578 for ac_exec_ext in '' $ac_executable_extensions; do
4579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4580 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 break 2
4584 done
4585 done
4586 IFS=$as_save_IFS
4590 CXX=$ac_cv_prog_CXX
4591 if test -n "$CXX"; then
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4593 $as_echo "$CXX" >&6; }
4594 else
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4596 $as_echo "no" >&6; }
4600 test -n "$CXX" && break
4601 done
4603 if test -z "$CXX"; then
4604 ac_ct_CXX=$CXX
4605 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4607 # Extract the first word of "$ac_prog", so it can be a program name with args.
4608 set dummy $ac_prog; ac_word=$2
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4610 $as_echo_n "checking for $ac_word... " >&6; }
4611 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4612 $as_echo_n "(cached) " >&6
4613 else
4614 if test -n "$ac_ct_CXX"; then
4615 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4616 else
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH
4620 IFS=$as_save_IFS
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624 ac_cv_prog_ac_ct_CXX="$ac_prog"
4625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 break 2
4628 done
4629 done
4630 IFS=$as_save_IFS
4634 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4635 if test -n "$ac_ct_CXX"; then
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4637 $as_echo "$ac_ct_CXX" >&6; }
4638 else
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640 $as_echo "no" >&6; }
4644 test -n "$ac_ct_CXX" && break
4645 done
4647 if test "x$ac_ct_CXX" = x; then
4648 CXX="g++"
4649 else
4650 case $cross_compiling:$ac_tool_warned in
4651 yes:)
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4654 ac_tool_warned=yes ;;
4655 esac
4656 CXX=$ac_ct_CXX
4662 # Provide some information about the compiler.
4663 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4664 set X $ac_compile
4665 ac_compiler=$2
4666 for ac_option in --version -v -V -qversion; do
4667 { { ac_try="$ac_compiler $ac_option >&5"
4668 case "(($ac_try" in
4669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4670 *) ac_try_echo=$ac_try;;
4671 esac
4672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4673 $as_echo "$ac_try_echo"; } >&5
4674 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4675 ac_status=$?
4676 if test -s conftest.err; then
4677 sed '10a\
4678 ... rest of stderr output deleted ...
4679 10q' conftest.err >conftest.er1
4680 cat conftest.er1 >&5
4681 rm -f conftest.er1 conftest.err
4683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4684 test $ac_status = 0; }
4685 done
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4688 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4689 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4690 $as_echo_n "(cached) " >&6
4691 else
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h. */
4696 main ()
4698 #ifndef __GNUC__
4699 choke me
4700 #endif
4703 return 0;
4705 _ACEOF
4706 if ac_fn_cxx_try_compile "$LINENO"; then :
4707 ac_compiler_gnu=yes
4708 else
4709 ac_compiler_gnu=no
4711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4712 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4716 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4717 if test $ac_compiler_gnu = yes; then
4718 GXX=yes
4719 else
4720 GXX=
4722 ac_test_CXXFLAGS=${CXXFLAGS+set}
4723 ac_save_CXXFLAGS=$CXXFLAGS
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4725 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4726 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4727 $as_echo_n "(cached) " >&6
4728 else
4729 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4730 ac_cxx_werror_flag=yes
4731 ac_cv_prog_cxx_g=no
4732 CXXFLAGS="-g"
4733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734 /* end confdefs.h. */
4737 main ()
4741 return 0;
4743 _ACEOF
4744 if ac_fn_cxx_try_compile "$LINENO"; then :
4745 ac_cv_prog_cxx_g=yes
4746 else
4747 CXXFLAGS=""
4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h. */
4752 main ()
4756 return 0;
4758 _ACEOF
4759 if ac_fn_cxx_try_compile "$LINENO"; then :
4761 else
4762 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4763 CXXFLAGS="-g"
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h. */
4768 main ()
4772 return 0;
4774 _ACEOF
4775 if ac_fn_cxx_try_compile "$LINENO"; then :
4776 ac_cv_prog_cxx_g=yes
4778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4786 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4787 if test "$ac_test_CXXFLAGS" = set; then
4788 CXXFLAGS=$ac_save_CXXFLAGS
4789 elif test $ac_cv_prog_cxx_g = yes; then
4790 if test "$GXX" = yes; then
4791 CXXFLAGS="-g -O2"
4792 else
4793 CXXFLAGS="-g"
4795 else
4796 if test "$GXX" = yes; then
4797 CXXFLAGS="-O2"
4798 else
4799 CXXFLAGS=
4802 ac_ext=c
4803 ac_cpp='$CPP $CPPFLAGS'
4804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811 if test -n "$ac_tool_prefix"; then
4812 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4813 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4815 $as_echo_n "checking for $ac_word... " >&6; }
4816 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 if test -n "$GNATBIND"; then
4820 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4821 else
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 for as_dir in $PATH
4825 IFS=$as_save_IFS
4826 test -z "$as_dir" && as_dir=.
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4829 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 break 2
4833 done
4834 done
4835 IFS=$as_save_IFS
4839 GNATBIND=$ac_cv_prog_GNATBIND
4840 if test -n "$GNATBIND"; then
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4842 $as_echo "$GNATBIND" >&6; }
4843 else
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845 $as_echo "no" >&6; }
4850 if test -z "$ac_cv_prog_GNATBIND"; then
4851 ac_ct_GNATBIND=$GNATBIND
4852 # Extract the first word of "gnatbind", so it can be a program name with args.
4853 set dummy gnatbind; 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_ac_ct_GNATBIND+set}" = set; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 if test -n "$ac_ct_GNATBIND"; then
4860 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # 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_ac_ct_GNATBIND="gnatbind"
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 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4880 if test -n "$ac_ct_GNATBIND"; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4882 $as_echo "$ac_ct_GNATBIND" >&6; }
4883 else
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 $as_echo "no" >&6; }
4888 if test "x$ac_ct_GNATBIND" = x; then
4889 GNATBIND="no"
4890 else
4891 case $cross_compiling:$ac_tool_warned in
4892 yes:)
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4895 ac_tool_warned=yes ;;
4896 esac
4897 GNATBIND=$ac_ct_GNATBIND
4899 else
4900 GNATBIND="$ac_cv_prog_GNATBIND"
4903 if test -n "$ac_tool_prefix"; then
4904 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4905 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4907 $as_echo_n "checking for $ac_word... " >&6; }
4908 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4909 $as_echo_n "(cached) " >&6
4910 else
4911 if test -n "$GNATMAKE"; then
4912 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4913 else
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH
4917 IFS=$as_save_IFS
4918 test -z "$as_dir" && as_dir=.
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4921 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4923 break 2
4925 done
4926 done
4927 IFS=$as_save_IFS
4931 GNATMAKE=$ac_cv_prog_GNATMAKE
4932 if test -n "$GNATMAKE"; then
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4934 $as_echo "$GNATMAKE" >&6; }
4935 else
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4937 $as_echo "no" >&6; }
4942 if test -z "$ac_cv_prog_GNATMAKE"; then
4943 ac_ct_GNATMAKE=$GNATMAKE
4944 # Extract the first word of "gnatmake", so it can be a program name with args.
4945 set dummy gnatmake; ac_word=$2
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4947 $as_echo_n "checking for $ac_word... " >&6; }
4948 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4949 $as_echo_n "(cached) " >&6
4950 else
4951 if test -n "$ac_ct_GNATMAKE"; then
4952 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4953 else
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 for as_dir in $PATH
4957 IFS=$as_save_IFS
4958 test -z "$as_dir" && as_dir=.
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4961 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4963 break 2
4965 done
4966 done
4967 IFS=$as_save_IFS
4971 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4972 if test -n "$ac_ct_GNATMAKE"; then
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4974 $as_echo "$ac_ct_GNATMAKE" >&6; }
4975 else
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4977 $as_echo "no" >&6; }
4980 if test "x$ac_ct_GNATMAKE" = x; then
4981 GNATMAKE="no"
4982 else
4983 case $cross_compiling:$ac_tool_warned in
4984 yes:)
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4987 ac_tool_warned=yes ;;
4988 esac
4989 GNATMAKE=$ac_ct_GNATMAKE
4991 else
4992 GNATMAKE="$ac_cv_prog_GNATMAKE"
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4996 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4997 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4998 $as_echo_n "(cached) " >&6
4999 else
5000 cat >conftest.adb <<EOF
5001 procedure conftest is begin null; end conftest;
5003 acx_cv_cc_gcc_supports_ada=no
5004 # There is a bug in old released versions of GCC which causes the
5005 # driver to exit successfully when the appropriate language module
5006 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5007 # Therefore we must check for the error message as well as an
5008 # unsuccessful exit.
5009 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5010 # given a .adb file, but produce no object file. So we must check
5011 # if an object file was really produced to guard against this.
5012 errors=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5013 if test x"$errors" = x && test -f conftest.$ac_objext; then
5014 acx_cv_cc_gcc_supports_ada=yes
5016 rm -f conftest.*
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5019 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5021 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5022 have_gnat=yes
5023 else
5024 have_gnat=no
5028 # Do configure tests with the C++ compiler, since that's what we build with.
5029 ac_ext=cpp
5030 ac_cpp='$CXXCPP $CPPFLAGS'
5031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5036 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5037 # optimizations to be activated explicitly by the toplevel.
5038 case "$CC" in
5039 */prev-gcc/xgcc*) ;;
5040 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5041 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5042 esac
5046 # Determine PICFLAG for target gnatlib.
5051 case "${target}" in
5052 # PIC is the default on some targets or must not be used.
5053 *-*-darwin*)
5054 # For darwin, common symbols are not allowed in MH_DYLIB files
5055 case "${CFLAGS}" in
5056 # If we are using a compiler supporting mdynamic-no-pic
5057 # and the option has been tested as safe to add, then cancel
5058 # it here, since the code generated is incompatible with shared
5059 # libs.
5060 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5061 *) PICFLAG_FOR_TARGET=-fno-common ;;
5062 esac
5064 alpha*-dec-osf5*)
5065 # PIC is the default.
5067 hppa*64*-*-hpux*)
5068 # PIC is the default for 64-bit PA HP-UX.
5070 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5072 i[34567]86-*-mingw* | x86_64-*-mingw*)
5074 i[34567]86-*-interix[3-9]*)
5075 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5076 # Instead, we relocate shared libraries at runtime.
5078 i[34567]86-*-nto-qnx*)
5079 # QNX uses GNU C++, but need to define -shared option too, otherwise
5080 # it will coredump.
5081 PICFLAG_FOR_TARGET='-fPIC -shared'
5083 i[34567]86-pc-msdosdjgpp*)
5084 # DJGPP does not support shared libraries at all.
5086 ia64*-*-hpux*)
5087 # On IA64 HP-UX, PIC is the default but the pic flag
5088 # sets the default TLS model and affects inlining.
5089 PICFLAG_FOR_TARGET=-fPIC
5091 mips-sgi-irix6*)
5092 # PIC is the default.
5094 rs6000-ibm-aix* | powerpc-ibm-aix*)
5095 # All AIX code is PIC.
5098 # Some targets support both -fPIC and -fpic, but prefer the latter.
5099 # FIXME: Why?
5100 i[34567]86-*-* | x86_64-*-*)
5101 PICFLAG_FOR_TARGET=-fpic
5103 # FIXME: Override -fPIC default in libgcc only?
5104 sh-*-linux* | sh[2346lbe]*-*-linux*)
5105 PICFLAG_FOR_TARGET=-fpic
5107 # FIXME: Simplify to sh*-*-netbsd*?
5108 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5109 sh64-*-netbsd* | sh64l*-*-netbsd*)
5110 PICFLAG_FOR_TARGET=-fpic
5112 # Default to -fPIC unless specified otherwise.
5114 PICFLAG_FOR_TARGET=-fPIC
5116 esac
5118 # If the user explicitly uses -fpic/-fPIC, keep that.
5119 case "${CFLAGS_FOR_TARGET}" in
5120 *-fpic*)
5121 PICFLAG_FOR_TARGET=-fpic
5123 *-fPIC*)
5124 PICFLAG_FOR_TARGET=-fPIC
5126 esac
5130 # -------------------------
5131 # Check C compiler features
5132 # -------------------------
5135 ac_ext=cpp
5136 ac_cpp='$CXXCPP $CPPFLAGS'
5137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5141 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5142 if test -z "$CXXCPP"; then
5143 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5144 $as_echo_n "(cached) " >&6
5145 else
5146 # Double quotes because CXXCPP needs to be expanded
5147 for CXXCPP in "$CXX -E" "/lib/cpp"
5149 ac_preproc_ok=false
5150 for ac_cxx_preproc_warn_flag in '' yes
5152 # Use a header file that comes with gcc, so configuring glibc
5153 # with a fresh cross-compiler works.
5154 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5155 # <limits.h> exists even on freestanding compilers.
5156 # On the NeXT, cc -E runs the code through the compiler's parser,
5157 # not just through cpp. "Syntax error" is here to catch this case.
5158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159 /* end confdefs.h. */
5160 #ifdef __STDC__
5161 # include <limits.h>
5162 #else
5163 # include <assert.h>
5164 #endif
5165 Syntax error
5166 _ACEOF
5167 if ac_fn_cxx_try_cpp "$LINENO"; then :
5169 else
5170 # Broken: fails on valid input.
5171 continue
5173 rm -f conftest.err conftest.$ac_ext
5175 # OK, works on sane cases. Now check whether nonexistent headers
5176 # can be detected and how.
5177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178 /* end confdefs.h. */
5179 #include <ac_nonexistent.h>
5180 _ACEOF
5181 if ac_fn_cxx_try_cpp "$LINENO"; then :
5182 # Broken: success on invalid input.
5183 continue
5184 else
5185 # Passes both tests.
5186 ac_preproc_ok=:
5187 break
5189 rm -f conftest.err conftest.$ac_ext
5191 done
5192 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5193 rm -f conftest.err conftest.$ac_ext
5194 if $ac_preproc_ok; then :
5195 break
5198 done
5199 ac_cv_prog_CXXCPP=$CXXCPP
5202 CXXCPP=$ac_cv_prog_CXXCPP
5203 else
5204 ac_cv_prog_CXXCPP=$CXXCPP
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5207 $as_echo "$CXXCPP" >&6; }
5208 ac_preproc_ok=false
5209 for ac_cxx_preproc_warn_flag in '' yes
5211 # Use a header file that comes with gcc, so configuring glibc
5212 # with a fresh cross-compiler works.
5213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5214 # <limits.h> exists even on freestanding compilers.
5215 # On the NeXT, cc -E runs the code through the compiler's parser,
5216 # not just through cpp. "Syntax error" is here to catch this case.
5217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218 /* end confdefs.h. */
5219 #ifdef __STDC__
5220 # include <limits.h>
5221 #else
5222 # include <assert.h>
5223 #endif
5224 Syntax error
5225 _ACEOF
5226 if ac_fn_cxx_try_cpp "$LINENO"; then :
5228 else
5229 # Broken: fails on valid input.
5230 continue
5232 rm -f conftest.err conftest.$ac_ext
5234 # OK, works on sane cases. Now check whether nonexistent headers
5235 # can be detected and how.
5236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5237 /* end confdefs.h. */
5238 #include <ac_nonexistent.h>
5239 _ACEOF
5240 if ac_fn_cxx_try_cpp "$LINENO"; then :
5241 # Broken: success on invalid input.
5242 continue
5243 else
5244 # Passes both tests.
5245 ac_preproc_ok=:
5246 break
5248 rm -f conftest.err conftest.$ac_ext
5250 done
5251 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5252 rm -f conftest.err conftest.$ac_ext
5253 if $ac_preproc_ok; then :
5255 else
5256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5258 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5259 See \`config.log' for more details." "$LINENO" 5; }
5262 ac_ext=cpp
5263 ac_cpp='$CXXCPP $CPPFLAGS'
5264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5270 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5271 if test "${ac_cv_path_GREP+set}" = set; then :
5272 $as_echo_n "(cached) " >&6
5273 else
5274 if test -z "$GREP"; then
5275 ac_path_GREP_found=false
5276 # Loop through the user's path and test for each of PROGNAME-LIST
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5280 IFS=$as_save_IFS
5281 test -z "$as_dir" && as_dir=.
5282 for ac_prog in grep ggrep; do
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5285 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5286 # Check for GNU ac_path_GREP and select it if it is found.
5287 # Check for GNU $ac_path_GREP
5288 case `"$ac_path_GREP" --version 2>&1` in
5289 *GNU*)
5290 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5292 ac_count=0
5293 $as_echo_n 0123456789 >"conftest.in"
5294 while :
5296 cat "conftest.in" "conftest.in" >"conftest.tmp"
5297 mv "conftest.tmp" "conftest.in"
5298 cp "conftest.in" "conftest.nl"
5299 $as_echo 'GREP' >> "conftest.nl"
5300 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5301 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5302 as_fn_arith $ac_count + 1 && ac_count=$as_val
5303 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5304 # Best one so far, save it but keep looking for a better one
5305 ac_cv_path_GREP="$ac_path_GREP"
5306 ac_path_GREP_max=$ac_count
5308 # 10*(2^10) chars as input seems more than enough
5309 test $ac_count -gt 10 && break
5310 done
5311 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5312 esac
5314 $ac_path_GREP_found && break 3
5315 done
5316 done
5317 done
5318 IFS=$as_save_IFS
5319 if test -z "$ac_cv_path_GREP"; then
5320 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5322 else
5323 ac_cv_path_GREP=$GREP
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5328 $as_echo "$ac_cv_path_GREP" >&6; }
5329 GREP="$ac_cv_path_GREP"
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5333 $as_echo_n "checking for egrep... " >&6; }
5334 if test "${ac_cv_path_EGREP+set}" = set; then :
5335 $as_echo_n "(cached) " >&6
5336 else
5337 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5338 then ac_cv_path_EGREP="$GREP -E"
5339 else
5340 if test -z "$EGREP"; then
5341 ac_path_EGREP_found=false
5342 # Loop through the user's path and test for each of PROGNAME-LIST
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5346 IFS=$as_save_IFS
5347 test -z "$as_dir" && as_dir=.
5348 for ac_prog in egrep; do
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5351 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5352 # Check for GNU ac_path_EGREP and select it if it is found.
5353 # Check for GNU $ac_path_EGREP
5354 case `"$ac_path_EGREP" --version 2>&1` in
5355 *GNU*)
5356 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5358 ac_count=0
5359 $as_echo_n 0123456789 >"conftest.in"
5360 while :
5362 cat "conftest.in" "conftest.in" >"conftest.tmp"
5363 mv "conftest.tmp" "conftest.in"
5364 cp "conftest.in" "conftest.nl"
5365 $as_echo 'EGREP' >> "conftest.nl"
5366 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5367 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5368 as_fn_arith $ac_count + 1 && ac_count=$as_val
5369 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5370 # Best one so far, save it but keep looking for a better one
5371 ac_cv_path_EGREP="$ac_path_EGREP"
5372 ac_path_EGREP_max=$ac_count
5374 # 10*(2^10) chars as input seems more than enough
5375 test $ac_count -gt 10 && break
5376 done
5377 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5378 esac
5380 $ac_path_EGREP_found && break 3
5381 done
5382 done
5383 done
5384 IFS=$as_save_IFS
5385 if test -z "$ac_cv_path_EGREP"; then
5386 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5388 else
5389 ac_cv_path_EGREP=$EGREP
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5395 $as_echo "$ac_cv_path_EGREP" >&6; }
5396 EGREP="$ac_cv_path_EGREP"
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5400 $as_echo_n "checking for ANSI C header files... " >&6; }
5401 if test "${ac_cv_header_stdc+set}" = set; then :
5402 $as_echo_n "(cached) " >&6
5403 else
5404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405 /* end confdefs.h. */
5406 #include <stdlib.h>
5407 #include <stdarg.h>
5408 #include <string.h>
5409 #include <float.h>
5412 main ()
5416 return 0;
5418 _ACEOF
5419 if ac_fn_cxx_try_compile "$LINENO"; then :
5420 ac_cv_header_stdc=yes
5421 else
5422 ac_cv_header_stdc=no
5424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5426 if test $ac_cv_header_stdc = yes; then
5427 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5430 #include <string.h>
5432 _ACEOF
5433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5434 $EGREP "memchr" >/dev/null 2>&1; then :
5436 else
5437 ac_cv_header_stdc=no
5439 rm -f conftest*
5443 if test $ac_cv_header_stdc = yes; then
5444 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446 /* end confdefs.h. */
5447 #include <stdlib.h>
5449 _ACEOF
5450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5451 $EGREP "free" >/dev/null 2>&1; then :
5453 else
5454 ac_cv_header_stdc=no
5456 rm -f conftest*
5460 if test $ac_cv_header_stdc = yes; then
5461 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5462 if test "$cross_compiling" = yes; then :
5464 else
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5467 #include <ctype.h>
5468 #include <stdlib.h>
5469 #if ((' ' & 0x0FF) == 0x020)
5470 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5471 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5472 #else
5473 # define ISLOWER(c) \
5474 (('a' <= (c) && (c) <= 'i') \
5475 || ('j' <= (c) && (c) <= 'r') \
5476 || ('s' <= (c) && (c) <= 'z'))
5477 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5478 #endif
5480 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5482 main ()
5484 int i;
5485 for (i = 0; i < 256; i++)
5486 if (XOR (islower (i), ISLOWER (i))
5487 || toupper (i) != TOUPPER (i))
5488 return 2;
5489 return 0;
5491 _ACEOF
5492 if ac_fn_cxx_try_run "$LINENO"; then :
5494 else
5495 ac_cv_header_stdc=no
5497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5498 conftest.$ac_objext conftest.beam conftest.$ac_ext
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5504 $as_echo "$ac_cv_header_stdc" >&6; }
5505 if test $ac_cv_header_stdc = yes; then
5507 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5511 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5512 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5513 inttypes.h stdint.h unistd.h
5514 do :
5515 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5516 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5518 eval as_val=\$$as_ac_Header
5519 if test "x$as_val" = x""yes; then :
5520 cat >>confdefs.h <<_ACEOF
5521 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5522 _ACEOF
5526 done
5530 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5531 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5532 MINIX=yes
5533 else
5534 MINIX=
5538 if test "$MINIX" = yes; then
5540 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5543 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5546 $as_echo "#define _MINIX 1" >>confdefs.h
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5552 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5553 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5554 $as_echo_n "(cached) " >&6
5555 else
5556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557 /* end confdefs.h. */
5559 # define __EXTENSIONS__ 1
5560 $ac_includes_default
5562 main ()
5566 return 0;
5568 _ACEOF
5569 if ac_fn_cxx_try_compile "$LINENO"; then :
5570 ac_cv_safe_to_define___extensions__=yes
5571 else
5572 ac_cv_safe_to_define___extensions__=no
5574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5577 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5578 test $ac_cv_safe_to_define___extensions__ = yes &&
5579 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5581 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5583 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5585 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5587 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5590 ac_ext=c
5591 ac_cpp='$CPP $CPPFLAGS'
5592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5596 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5597 # On Suns, sometimes $CPP names a directory.
5598 if test -n "$CPP" && test -d "$CPP"; then
5599 CPP=
5601 if test -z "$CPP"; then
5602 if test "${ac_cv_prog_CPP+set}" = set; then :
5603 $as_echo_n "(cached) " >&6
5604 else
5605 # Double quotes because CPP needs to be expanded
5606 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5608 ac_preproc_ok=false
5609 for ac_c_preproc_warn_flag in '' yes
5611 # Use a header file that comes with gcc, so configuring glibc
5612 # with a fresh cross-compiler works.
5613 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5614 # <limits.h> exists even on freestanding compilers.
5615 # On the NeXT, cc -E runs the code through the compiler's parser,
5616 # not just through cpp. "Syntax error" is here to catch this case.
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5619 #ifdef __STDC__
5620 # include <limits.h>
5621 #else
5622 # include <assert.h>
5623 #endif
5624 Syntax error
5625 _ACEOF
5626 if ac_fn_c_try_cpp "$LINENO"; then :
5628 else
5629 # Broken: fails on valid input.
5630 continue
5632 rm -f conftest.err conftest.$ac_ext
5634 # OK, works on sane cases. Now check whether nonexistent headers
5635 # can be detected and how.
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5638 #include <ac_nonexistent.h>
5639 _ACEOF
5640 if ac_fn_c_try_cpp "$LINENO"; then :
5641 # Broken: success on invalid input.
5642 continue
5643 else
5644 # Passes both tests.
5645 ac_preproc_ok=:
5646 break
5648 rm -f conftest.err conftest.$ac_ext
5650 done
5651 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5652 rm -f conftest.err conftest.$ac_ext
5653 if $ac_preproc_ok; then :
5654 break
5657 done
5658 ac_cv_prog_CPP=$CPP
5661 CPP=$ac_cv_prog_CPP
5662 else
5663 ac_cv_prog_CPP=$CPP
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5666 $as_echo "$CPP" >&6; }
5667 ac_preproc_ok=false
5668 for ac_c_preproc_warn_flag in '' yes
5670 # Use a header file that comes with gcc, so configuring glibc
5671 # with a fresh cross-compiler works.
5672 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5673 # <limits.h> exists even on freestanding compilers.
5674 # On the NeXT, cc -E runs the code through the compiler's parser,
5675 # not just through cpp. "Syntax error" is here to catch this case.
5676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677 /* end confdefs.h. */
5678 #ifdef __STDC__
5679 # include <limits.h>
5680 #else
5681 # include <assert.h>
5682 #endif
5683 Syntax error
5684 _ACEOF
5685 if ac_fn_c_try_cpp "$LINENO"; then :
5687 else
5688 # Broken: fails on valid input.
5689 continue
5691 rm -f conftest.err conftest.$ac_ext
5693 # OK, works on sane cases. Now check whether nonexistent headers
5694 # can be detected and how.
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5697 #include <ac_nonexistent.h>
5698 _ACEOF
5699 if ac_fn_c_try_cpp "$LINENO"; then :
5700 # Broken: success on invalid input.
5701 continue
5702 else
5703 # Passes both tests.
5704 ac_preproc_ok=:
5705 break
5707 rm -f conftest.err conftest.$ac_ext
5709 done
5710 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5711 rm -f conftest.err conftest.$ac_ext
5712 if $ac_preproc_ok; then :
5714 else
5715 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5717 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5718 See \`config.log' for more details." "$LINENO" 5; }
5721 ac_ext=cpp
5722 ac_cpp='$CXXCPP $CPPFLAGS'
5723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5728 $as_echo_n "checking for inline... " >&6; }
5729 if test "${ac_cv_c_inline+set}" = set; then :
5730 $as_echo_n "(cached) " >&6
5731 else
5732 ac_cv_c_inline=no
5733 for ac_kw in inline __inline__ __inline; do
5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h. */
5736 #ifndef __cplusplus
5737 typedef int foo_t;
5738 static $ac_kw foo_t static_foo () {return 0; }
5739 $ac_kw foo_t foo () {return 0; }
5740 #endif
5742 _ACEOF
5743 if ac_fn_cxx_try_compile "$LINENO"; then :
5744 ac_cv_c_inline=$ac_kw
5746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5747 test "$ac_cv_c_inline" != no && break
5748 done
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5752 $as_echo "$ac_cv_c_inline" >&6; }
5754 case $ac_cv_c_inline in
5755 inline | yes) ;;
5757 case $ac_cv_c_inline in
5758 no) ac_val=;;
5759 *) ac_val=$ac_cv_c_inline;;
5760 esac
5761 cat >>confdefs.h <<_ACEOF
5762 #ifndef __cplusplus
5763 #define inline $ac_val
5764 #endif
5765 _ACEOF
5767 esac
5770 # Check whether --enable-largefile was given.
5771 if test "${enable_largefile+set}" = set; then :
5772 enableval=$enable_largefile;
5775 if test "$enable_largefile" != no; then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5778 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5779 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5780 $as_echo_n "(cached) " >&6
5781 else
5782 ac_cv_sys_largefile_CC=no
5783 if test "$GCC" != yes; then
5784 ac_save_CC=$CC
5785 while :; do
5786 # IRIX 6.2 and later do not support large files by default,
5787 # so use the C compiler's -n32 option if that helps.
5788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789 /* end confdefs.h. */
5790 #include <sys/types.h>
5791 /* Check that off_t can represent 2**63 - 1 correctly.
5792 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5793 since some C++ compilers masquerading as C compilers
5794 incorrectly reject 9223372036854775807. */
5795 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5796 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5797 && LARGE_OFF_T % 2147483647 == 1)
5798 ? 1 : -1];
5800 main ()
5804 return 0;
5806 _ACEOF
5807 if ac_fn_cxx_try_compile "$LINENO"; then :
5808 break
5810 rm -f core conftest.err conftest.$ac_objext
5811 CC="$CC -n32"
5812 if ac_fn_cxx_try_compile "$LINENO"; then :
5813 ac_cv_sys_largefile_CC=' -n32'; break
5815 rm -f core conftest.err conftest.$ac_objext
5816 break
5817 done
5818 CC=$ac_save_CC
5819 rm -f conftest.$ac_ext
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5823 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5824 if test "$ac_cv_sys_largefile_CC" != no; then
5825 CC=$CC$ac_cv_sys_largefile_CC
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5829 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5830 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5831 $as_echo_n "(cached) " >&6
5832 else
5833 while :; do
5834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835 /* end confdefs.h. */
5836 #include <sys/types.h>
5837 /* Check that off_t can represent 2**63 - 1 correctly.
5838 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5839 since some C++ compilers masquerading as C compilers
5840 incorrectly reject 9223372036854775807. */
5841 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5842 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5843 && LARGE_OFF_T % 2147483647 == 1)
5844 ? 1 : -1];
5846 main ()
5850 return 0;
5852 _ACEOF
5853 if ac_fn_cxx_try_compile "$LINENO"; then :
5854 ac_cv_sys_file_offset_bits=no; break
5856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858 /* end confdefs.h. */
5859 #define _FILE_OFFSET_BITS 64
5860 #include <sys/types.h>
5861 /* Check that off_t can represent 2**63 - 1 correctly.
5862 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5863 since some C++ compilers masquerading as C compilers
5864 incorrectly reject 9223372036854775807. */
5865 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5866 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5867 && LARGE_OFF_T % 2147483647 == 1)
5868 ? 1 : -1];
5870 main ()
5874 return 0;
5876 _ACEOF
5877 if ac_fn_cxx_try_compile "$LINENO"; then :
5878 ac_cv_sys_file_offset_bits=64; break
5880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5881 ac_cv_sys_file_offset_bits=unknown
5882 break
5883 done
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5886 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5887 case $ac_cv_sys_file_offset_bits in #(
5888 no | unknown) ;;
5890 cat >>confdefs.h <<_ACEOF
5891 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5892 _ACEOF
5894 esac
5895 rm -rf conftest*
5896 if test $ac_cv_sys_file_offset_bits = unknown; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5898 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5899 if test "${ac_cv_sys_large_files+set}" = set; then :
5900 $as_echo_n "(cached) " >&6
5901 else
5902 while :; do
5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5905 #include <sys/types.h>
5906 /* Check that off_t can represent 2**63 - 1 correctly.
5907 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5908 since some C++ compilers masquerading as C compilers
5909 incorrectly reject 9223372036854775807. */
5910 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5911 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5912 && LARGE_OFF_T % 2147483647 == 1)
5913 ? 1 : -1];
5915 main ()
5919 return 0;
5921 _ACEOF
5922 if ac_fn_cxx_try_compile "$LINENO"; then :
5923 ac_cv_sys_large_files=no; break
5925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927 /* end confdefs.h. */
5928 #define _LARGE_FILES 1
5929 #include <sys/types.h>
5930 /* Check that off_t can represent 2**63 - 1 correctly.
5931 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5932 since some C++ compilers masquerading as C compilers
5933 incorrectly reject 9223372036854775807. */
5934 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5935 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5936 && LARGE_OFF_T % 2147483647 == 1)
5937 ? 1 : -1];
5939 main ()
5943 return 0;
5945 _ACEOF
5946 if ac_fn_cxx_try_compile "$LINENO"; then :
5947 ac_cv_sys_large_files=1; break
5949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5950 ac_cv_sys_large_files=unknown
5951 break
5952 done
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5955 $as_echo "$ac_cv_sys_large_files" >&6; }
5956 case $ac_cv_sys_large_files in #(
5957 no | unknown) ;;
5959 cat >>confdefs.h <<_ACEOF
5960 #define _LARGE_FILES $ac_cv_sys_large_files
5961 _ACEOF
5963 esac
5964 rm -rf conftest*
5969 # sizeof(char) is 1 by definition.
5970 # The cast to long int works around a bug in the HP C Compiler
5971 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5972 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5973 # This bug is HP SR number 8606223364.
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5975 $as_echo_n "checking size of void *... " >&6; }
5976 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5977 $as_echo_n "(cached) " >&6
5978 else
5979 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5981 else
5982 if test "$ac_cv_type_void_p" = yes; then
5983 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5985 { as_fn_set_status 77
5986 as_fn_error "cannot compute sizeof (void *)
5987 See \`config.log' for more details." "$LINENO" 5; }; }
5988 else
5989 ac_cv_sizeof_void_p=0
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5995 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5999 cat >>confdefs.h <<_ACEOF
6000 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6001 _ACEOF
6004 # The cast to long int works around a bug in the HP C Compiler
6005 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6006 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6007 # This bug is HP SR number 8606223364.
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6009 $as_echo_n "checking size of short... " >&6; }
6010 if test "${ac_cv_sizeof_short+set}" = set; then :
6011 $as_echo_n "(cached) " >&6
6012 else
6013 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6015 else
6016 if test "$ac_cv_type_short" = yes; then
6017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6019 { as_fn_set_status 77
6020 as_fn_error "cannot compute sizeof (short)
6021 See \`config.log' for more details." "$LINENO" 5; }; }
6022 else
6023 ac_cv_sizeof_short=0
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6029 $as_echo "$ac_cv_sizeof_short" >&6; }
6033 cat >>confdefs.h <<_ACEOF
6034 #define SIZEOF_SHORT $ac_cv_sizeof_short
6035 _ACEOF
6038 # The cast to long int works around a bug in the HP C Compiler
6039 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6040 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6041 # This bug is HP SR number 8606223364.
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6043 $as_echo_n "checking size of int... " >&6; }
6044 if test "${ac_cv_sizeof_int+set}" = set; then :
6045 $as_echo_n "(cached) " >&6
6046 else
6047 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6049 else
6050 if test "$ac_cv_type_int" = yes; then
6051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6053 { as_fn_set_status 77
6054 as_fn_error "cannot compute sizeof (int)
6055 See \`config.log' for more details." "$LINENO" 5; }; }
6056 else
6057 ac_cv_sizeof_int=0
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6063 $as_echo "$ac_cv_sizeof_int" >&6; }
6067 cat >>confdefs.h <<_ACEOF
6068 #define SIZEOF_INT $ac_cv_sizeof_int
6069 _ACEOF
6072 # The cast to long int works around a bug in the HP C Compiler
6073 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6074 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6075 # This bug is HP SR number 8606223364.
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6077 $as_echo_n "checking size of long... " >&6; }
6078 if test "${ac_cv_sizeof_long+set}" = set; then :
6079 $as_echo_n "(cached) " >&6
6080 else
6081 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6083 else
6084 if test "$ac_cv_type_long" = yes; then
6085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6087 { as_fn_set_status 77
6088 as_fn_error "cannot compute sizeof (long)
6089 See \`config.log' for more details." "$LINENO" 5; }; }
6090 else
6091 ac_cv_sizeof_long=0
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6097 $as_echo "$ac_cv_sizeof_long" >&6; }
6101 cat >>confdefs.h <<_ACEOF
6102 #define SIZEOF_LONG $ac_cv_sizeof_long
6103 _ACEOF
6106 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6107 if test "x$ac_cv_type_long_long" = x""yes; then :
6109 cat >>confdefs.h <<_ACEOF
6110 #define HAVE_LONG_LONG 1
6111 _ACEOF
6113 # The cast to long int works around a bug in the HP C Compiler
6114 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6115 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6116 # This bug is HP SR number 8606223364.
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6118 $as_echo_n "checking size of long long... " >&6; }
6119 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6120 $as_echo_n "(cached) " >&6
6121 else
6122 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6124 else
6125 if test "$ac_cv_type_long_long" = yes; then
6126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6128 { as_fn_set_status 77
6129 as_fn_error "cannot compute sizeof (long long)
6130 See \`config.log' for more details." "$LINENO" 5; }; }
6131 else
6132 ac_cv_sizeof_long_long=0
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6138 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6142 cat >>confdefs.h <<_ACEOF
6143 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6144 _ACEOF
6149 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6150 case $ac_cv_c_int8_t in #(
6151 no|yes) ;; #(
6154 cat >>confdefs.h <<_ACEOF
6155 #define int8_t $ac_cv_c_int8_t
6156 _ACEOF
6158 esac
6160 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6161 case $ac_cv_c_int16_t in #(
6162 no|yes) ;; #(
6165 cat >>confdefs.h <<_ACEOF
6166 #define int16_t $ac_cv_c_int16_t
6167 _ACEOF
6169 esac
6171 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6172 case $ac_cv_c_int32_t in #(
6173 no|yes) ;; #(
6176 cat >>confdefs.h <<_ACEOF
6177 #define int32_t $ac_cv_c_int32_t
6178 _ACEOF
6180 esac
6182 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6183 case $ac_cv_c_int64_t in #(
6184 no|yes) ;; #(
6187 cat >>confdefs.h <<_ACEOF
6188 #define int64_t $ac_cv_c_int64_t
6189 _ACEOF
6191 esac
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6195 $as_echo_n "checking for long long int... " >&6; }
6196 if test "${ac_cv_type_long_long_int+set}" = set; then :
6197 $as_echo_n "(cached) " >&6
6198 else
6199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6200 /* end confdefs.h. */
6202 /* For now, do not test the preprocessor; as of 2007 there are too many
6203 implementations with broken preprocessors. Perhaps this can
6204 be revisited in 2012. In the meantime, code should not expect
6205 #if to work with literals wider than 32 bits. */
6206 /* Test literals. */
6207 long long int ll = 9223372036854775807ll;
6208 long long int nll = -9223372036854775807LL;
6209 unsigned long long int ull = 18446744073709551615ULL;
6210 /* Test constant expressions. */
6211 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6212 ? 1 : -1)];
6213 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6214 ? 1 : -1)];
6215 int i = 63;
6217 main ()
6219 /* Test availability of runtime routines for shift and division. */
6220 long long int llmax = 9223372036854775807ll;
6221 unsigned long long int ullmax = 18446744073709551615ull;
6222 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6223 | (llmax / ll) | (llmax % ll)
6224 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6225 | (ullmax / ull) | (ullmax % ull));
6227 return 0;
6230 _ACEOF
6231 if ac_fn_cxx_try_link "$LINENO"; then :
6232 if test "$cross_compiling" = yes; then :
6233 ac_cv_type_long_long_int=yes
6234 else
6235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6236 /* end confdefs.h. */
6237 #include <limits.h>
6238 #ifndef LLONG_MAX
6239 # define HALF \
6240 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6241 # define LLONG_MAX (HALF - 1 + HALF)
6242 #endif
6244 main ()
6246 long long int n = 1;
6247 int i;
6248 for (i = 0; ; i++)
6250 long long int m = n << i;
6251 if (m >> i != n)
6252 return 1;
6253 if (LLONG_MAX / 2 < m)
6254 break;
6256 return 0;
6258 return 0;
6260 _ACEOF
6261 if ac_fn_cxx_try_run "$LINENO"; then :
6262 ac_cv_type_long_long_int=yes
6263 else
6264 ac_cv_type_long_long_int=no
6266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6267 conftest.$ac_objext conftest.beam conftest.$ac_ext
6270 else
6271 ac_cv_type_long_long_int=no
6273 rm -f core conftest.err conftest.$ac_objext \
6274 conftest$ac_exeext conftest.$ac_ext
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6277 $as_echo "$ac_cv_type_long_long_int" >&6; }
6278 if test $ac_cv_type_long_long_int = yes; then
6280 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6286 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6287 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6289 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6291 else
6292 test $ac_cv_type_long_long_int = yes \
6293 && ac_type='long long int' \
6294 || ac_type='long int'
6296 cat >>confdefs.h <<_ACEOF
6297 #define intmax_t $ac_type
6298 _ACEOF
6304 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6305 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6307 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6309 else
6310 for ac_type in 'int' 'long int' 'long long int'; do
6311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312 /* end confdefs.h. */
6313 $ac_includes_default
6315 main ()
6317 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6318 test_array [0] = 0
6321 return 0;
6323 _ACEOF
6324 if ac_fn_cxx_try_compile "$LINENO"; then :
6326 cat >>confdefs.h <<_ACEOF
6327 #define intptr_t $ac_type
6328 _ACEOF
6330 ac_type=
6332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6333 test -z "$ac_type" && break
6334 done
6338 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6339 case $ac_cv_c_uint8_t in #(
6340 no|yes) ;; #(
6343 $as_echo "#define _UINT8_T 1" >>confdefs.h
6346 cat >>confdefs.h <<_ACEOF
6347 #define uint8_t $ac_cv_c_uint8_t
6348 _ACEOF
6350 esac
6352 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6353 case $ac_cv_c_uint16_t in #(
6354 no|yes) ;; #(
6358 cat >>confdefs.h <<_ACEOF
6359 #define uint16_t $ac_cv_c_uint16_t
6360 _ACEOF
6362 esac
6364 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6365 case $ac_cv_c_uint32_t in #(
6366 no|yes) ;; #(
6369 $as_echo "#define _UINT32_T 1" >>confdefs.h
6372 cat >>confdefs.h <<_ACEOF
6373 #define uint32_t $ac_cv_c_uint32_t
6374 _ACEOF
6376 esac
6378 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6379 case $ac_cv_c_uint64_t in #(
6380 no|yes) ;; #(
6383 $as_echo "#define _UINT64_T 1" >>confdefs.h
6386 cat >>confdefs.h <<_ACEOF
6387 #define uint64_t $ac_cv_c_uint64_t
6388 _ACEOF
6390 esac
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6394 $as_echo_n "checking for unsigned long long int... " >&6; }
6395 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6396 $as_echo_n "(cached) " >&6
6397 else
6398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6399 /* end confdefs.h. */
6401 /* For now, do not test the preprocessor; as of 2007 there are too many
6402 implementations with broken preprocessors. Perhaps this can
6403 be revisited in 2012. In the meantime, code should not expect
6404 #if to work with literals wider than 32 bits. */
6405 /* Test literals. */
6406 long long int ll = 9223372036854775807ll;
6407 long long int nll = -9223372036854775807LL;
6408 unsigned long long int ull = 18446744073709551615ULL;
6409 /* Test constant expressions. */
6410 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6411 ? 1 : -1)];
6412 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6413 ? 1 : -1)];
6414 int i = 63;
6416 main ()
6418 /* Test availability of runtime routines for shift and division. */
6419 long long int llmax = 9223372036854775807ll;
6420 unsigned long long int ullmax = 18446744073709551615ull;
6421 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6422 | (llmax / ll) | (llmax % ll)
6423 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6424 | (ullmax / ull) | (ullmax % ull));
6426 return 0;
6429 _ACEOF
6430 if ac_fn_cxx_try_link "$LINENO"; then :
6431 ac_cv_type_unsigned_long_long_int=yes
6432 else
6433 ac_cv_type_unsigned_long_long_int=no
6435 rm -f core conftest.err conftest.$ac_objext \
6436 conftest$ac_exeext conftest.$ac_ext
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6439 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6440 if test $ac_cv_type_unsigned_long_long_int = yes; then
6442 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6448 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6449 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6451 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6453 else
6454 test $ac_cv_type_unsigned_long_long_int = yes \
6455 && ac_type='unsigned long long int' \
6456 || ac_type='unsigned long int'
6458 cat >>confdefs.h <<_ACEOF
6459 #define uintmax_t $ac_type
6460 _ACEOF
6466 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6467 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6469 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6471 else
6472 for ac_type in 'unsigned int' 'unsigned long int' \
6473 'unsigned long long int'; do
6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475 /* end confdefs.h. */
6476 $ac_includes_default
6478 main ()
6480 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6481 test_array [0] = 0
6484 return 0;
6486 _ACEOF
6487 if ac_fn_cxx_try_compile "$LINENO"; then :
6489 cat >>confdefs.h <<_ACEOF
6490 #define uintptr_t $ac_type
6491 _ACEOF
6493 ac_type=
6495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6496 test -z "$ac_type" && break
6497 done
6513 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6514 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6517 # check what underlying integer type int64_t uses
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6519 $as_echo_n "checking for int64_t underlying type... " >&6; }
6520 if test "${ac_cv_int64_t_type+set}" = set; then :
6521 $as_echo_n "(cached) " >&6
6522 else
6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h. */
6527 #ifdef HAVE_STDINT_H
6528 #include <stdint.h>
6529 #endif
6530 template <typename T> struct X { };
6531 template <>
6532 struct X<long> { typedef long t; };
6535 main ()
6537 X<int64_t>::t x;
6539 return 0;
6541 _ACEOF
6542 if ac_fn_cxx_try_compile "$LINENO"; then :
6543 ac_cv_int64_t_type=long
6544 else
6545 ac_cv_int64_t_type="long long"
6547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6550 $as_echo "$ac_cv_int64_t_type" >&6; }
6551 if test "$ac_cv_int64_t_type" = "long"; then
6553 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6555 else
6556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557 /* end confdefs.h. */
6559 #ifdef HAVE_STDINT_H
6560 #include <stdint.h>
6561 #endif
6562 template <typename T> struct X { };
6563 template <>
6564 struct X<long long> { typedef long long t; };
6567 main ()
6569 X<int64_t>::t x;
6571 return 0;
6573 _ACEOF
6574 if ac_fn_cxx_try_compile "$LINENO"; then :
6576 else
6577 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6583 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6584 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6585 $as_echo_n "(cached) " >&6
6586 else
6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589 /* end confdefs.h. */
6591 #include <utility>
6594 main ()
6596 int a, b; std::swap(a,b);
6598 return 0;
6600 _ACEOF
6601 if ac_fn_cxx_try_compile "$LINENO"; then :
6602 ac_cv_std_swap_in_utility=yes
6603 else
6604 ac_cv_std_swap_in_utility=no
6606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6609 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6610 if test $ac_cv_std_swap_in_utility = yes; then
6612 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6616 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6617 # If the host compiler is affected by the bug, and we build with optimization
6618 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6619 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6620 # Since there is no reliable feature check for the presence of this bug,
6621 # we simply use a GCC version number check. (This should never trigger for
6622 # stages 2 or 3 of a native bootstrap.)
6623 aliasing_flags=
6624 if test "$GCC" = yes; then
6625 saved_CXXFLAGS="$CXXFLAGS"
6627 # The following test compilation will succeed if and only if $CXX accepts
6628 # -fno-strict-aliasing *and* is older than GCC 4.3.
6629 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6631 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633 /* end confdefs.h. */
6635 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6636 #error compiler not affected by placement new aliasing bug
6637 #endif
6639 _ACEOF
6640 if ac_fn_cxx_try_compile "$LINENO"; then :
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6642 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6643 else
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645 $as_echo "no" >&6; }
6647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6649 CXXFLAGS="$saved_CXXFLAGS"
6655 # ---------------------
6656 # Warnings and checking
6657 # ---------------------
6659 # Check $CC warning features (if it's GCC).
6660 # We want to use -pedantic, but we don't want warnings about
6661 # * 'long long'
6662 # * variadic macros
6663 # * overlong strings
6664 # * C++11 narrowing conversions in { }
6665 # So, we only use -pedantic if we can disable those warnings.
6667 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6668 # Check whether --enable-build-format-warnings was given.
6669 if test "${enable_build_format_warnings+set}" = set; then :
6670 enableval=$enable_build_format_warnings;
6671 else
6672 enable_build_format_warnings=yes
6675 if test $enable_build_format_warnings = no; then :
6676 wf_opt=-Wno-format
6677 else
6678 wf_opt=
6680 ac_ext=cpp
6681 ac_cpp='$CXXCPP $CPPFLAGS'
6682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6686 loose_warn=
6687 save_CXXFLAGS="$CXXFLAGS"
6688 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6689 # Do the check with the no- prefix removed since gcc silently
6690 # accepts any -Wno-* option on purpose
6691 case $real_option in
6692 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6693 *) option=$real_option ;;
6694 esac
6695 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6698 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6699 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6700 $as_echo_n "(cached) " >&6
6701 else
6702 CXXFLAGS="$option"
6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h. */
6707 main ()
6711 return 0;
6713 _ACEOF
6714 if ac_fn_cxx_try_compile "$LINENO"; then :
6715 eval "$as_acx_Woption=yes"
6716 else
6717 eval "$as_acx_Woption=no"
6719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6722 eval ac_res=\$$as_acx_Woption
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6724 $as_echo "$ac_res" >&6; }
6725 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6726 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6728 done
6729 CXXFLAGS="$save_CXXFLAGS"
6730 ac_ext=cpp
6731 ac_cpp='$CXXCPP $CPPFLAGS'
6732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6738 ac_ext=c
6739 ac_cpp='$CPP $CPPFLAGS'
6740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6744 c_loose_warn=
6745 save_CFLAGS="$CFLAGS"
6746 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6747 # Do the check with the no- prefix removed since gcc silently
6748 # accepts any -Wno-* option on purpose
6749 case $real_option in
6750 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6751 *) option=$real_option ;;
6752 esac
6753 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6756 $as_echo_n "checking whether $CC supports $option... " >&6; }
6757 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6758 $as_echo_n "(cached) " >&6
6759 else
6760 CFLAGS="$option"
6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h. */
6765 main ()
6769 return 0;
6771 _ACEOF
6772 if ac_fn_c_try_compile "$LINENO"; then :
6773 eval "$as_acx_Woption=yes"
6774 else
6775 eval "$as_acx_Woption=no"
6777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6780 eval ac_res=\$$as_acx_Woption
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6782 $as_echo "$ac_res" >&6; }
6783 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6784 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6786 done
6787 CFLAGS="$save_CFLAGS"
6788 ac_ext=cpp
6789 ac_cpp='$CXXCPP $CPPFLAGS'
6790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6795 ac_ext=cpp
6796 ac_cpp='$CXXCPP $CPPFLAGS'
6797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6801 strict_warn=
6802 save_CXXFLAGS="$CXXFLAGS"
6803 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6804 # Do the check with the no- prefix removed since gcc silently
6805 # accepts any -Wno-* option on purpose
6806 case $real_option in
6807 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6808 *) option=$real_option ;;
6809 esac
6810 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6813 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6814 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6815 $as_echo_n "(cached) " >&6
6816 else
6817 CXXFLAGS="$option"
6818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h. */
6822 main ()
6826 return 0;
6828 _ACEOF
6829 if ac_fn_cxx_try_compile "$LINENO"; then :
6830 eval "$as_acx_Woption=yes"
6831 else
6832 eval "$as_acx_Woption=no"
6834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6837 eval ac_res=\$$as_acx_Woption
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6839 $as_echo "$ac_res" >&6; }
6840 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6841 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6843 done
6844 CXXFLAGS="$save_CXXFLAGS"
6845 ac_ext=cpp
6846 ac_cpp='$CXXCPP $CPPFLAGS'
6847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6852 ac_ext=c
6853 ac_cpp='$CPP $CPPFLAGS'
6854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6858 c_strict_warn=
6859 save_CFLAGS="$CFLAGS"
6860 for real_option in -Wold-style-definition -Wc++-compat; do
6861 # Do the check with the no- prefix removed since gcc silently
6862 # accepts any -Wno-* option on purpose
6863 case $real_option in
6864 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6865 *) option=$real_option ;;
6866 esac
6867 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6870 $as_echo_n "checking whether $CC supports $option... " >&6; }
6871 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6872 $as_echo_n "(cached) " >&6
6873 else
6874 CFLAGS="$option"
6875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876 /* end confdefs.h. */
6879 main ()
6883 return 0;
6885 _ACEOF
6886 if ac_fn_c_try_compile "$LINENO"; then :
6887 eval "$as_acx_Woption=yes"
6888 else
6889 eval "$as_acx_Woption=no"
6891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6894 eval ac_res=\$$as_acx_Woption
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6896 $as_echo "$ac_res" >&6; }
6897 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6898 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6900 done
6901 CFLAGS="$save_CFLAGS"
6902 ac_ext=cpp
6903 ac_cpp='$CXXCPP $CPPFLAGS'
6904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6909 ac_ext=cpp
6910 ac_cpp='$CXXCPP $CPPFLAGS'
6911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6915 # Do the check with the no- prefix removed from the warning options
6916 # since gcc silently accepts any -Wno-* option on purpose
6917 if test "$GXX" = yes; then :
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6919 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6920 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6921 $as_echo_n "(cached) " >&6
6922 else
6923 save_CXXFLAGS="$CXXFLAGS"
6924 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6926 /* end confdefs.h. */
6929 main ()
6933 return 0;
6935 _ACEOF
6936 if ac_fn_cxx_try_compile "$LINENO"; then :
6937 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6938 else
6939 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6942 CXXFLAGS="$save_CXXFLAGS"
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6945 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6946 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6947 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6951 ac_ext=cpp
6952 ac_cpp='$CXXCPP $CPPFLAGS'
6953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6958 ac_ext=cpp
6959 ac_cpp='$CXXCPP $CPPFLAGS'
6960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6964 # Check whether --enable-werror-always was given.
6965 if test "${enable_werror_always+set}" = set; then :
6966 enableval=$enable_werror_always;
6967 else
6968 enable_werror_always=no
6971 if test $enable_werror_always = yes; then :
6972 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6975 ac_ext=cpp
6976 ac_cpp='$CXXCPP $CPPFLAGS'
6977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6983 # The above macros do nothing if the compiler is not GCC. However, the
6984 # Makefile has more goo to add other flags, so these variables are used
6985 # to enable warnings only for GCC.
6986 warn_cflags=
6987 warn_cxxflags=
6988 if test "x$GCC" = "xyes"; then
6989 warn_cflags='$(GCC_WARN_CFLAGS)'
6990 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6995 # Disable exceptions and RTTI if building with g++
6996 ac_ext=c
6997 ac_cpp='$CPP $CPPFLAGS'
6998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7002 noexception_flags=
7003 save_CFLAGS="$CFLAGS"
7004 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7005 # Do the check with the no- prefix removed since gcc silently
7006 # accepts any -Wno-* option on purpose
7007 case $real_option in
7008 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7009 *) option=$real_option ;;
7010 esac
7011 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7014 $as_echo_n "checking whether $CC supports $option... " >&6; }
7015 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
7016 $as_echo_n "(cached) " >&6
7017 else
7018 CFLAGS="$option"
7019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7020 /* end confdefs.h. */
7023 main ()
7027 return 0;
7029 _ACEOF
7030 if ac_fn_c_try_compile "$LINENO"; then :
7031 eval "$as_acx_Woption=yes"
7032 else
7033 eval "$as_acx_Woption=no"
7035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7038 eval ac_res=\$$as_acx_Woption
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7040 $as_echo "$ac_res" >&6; }
7041 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7042 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7044 done
7045 CFLAGS="$save_CFLAGS"
7046 ac_ext=cpp
7047 ac_cpp='$CXXCPP $CPPFLAGS'
7048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7054 # Enable expensive internal checks
7055 is_release=
7056 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7057 is_release=yes
7060 # Check whether --enable-checking was given.
7061 if test "${enable_checking+set}" = set; then :
7062 enableval=$enable_checking; ac_checking_flags="${enableval}"
7063 else
7065 # Determine the default checks.
7066 if test x$is_release = x ; then
7067 ac_checking_flags=yes,extra
7068 else
7069 ac_checking_flags=release
7073 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7074 for check in release $ac_checking_flags
7076 case $check in
7077 # these set all the flags to specific states
7078 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7079 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7080 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7081 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7082 ac_tree_checking=1 ; ac_valgrind_checking= ;
7083 ac_types_checking=1 ;;
7084 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7085 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7086 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7087 ac_rtlflag_checking= ; ac_runtime_checking= ;
7088 ac_tree_checking= ; ac_valgrind_checking= ;
7089 ac_types_checking= ;;
7090 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7091 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7092 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7093 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7094 ac_tree_checking=1 ; ac_valgrind_checking= ;
7095 ac_types_checking=1 ;;
7096 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7097 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7098 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7099 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7100 ac_tree_checking= ; ac_valgrind_checking= ;
7101 ac_types_checking= ;;
7102 # these enable particular checks
7103 assert) ac_assert_checking=1 ;;
7104 df) ac_df_checking=1 ;;
7105 extra) ac_extra_checking=1 ;;
7106 fold) ac_fold_checking=1 ;;
7107 gc) ac_gc_checking=1 ;;
7108 gcac) ac_gc_always_collect=1 ;;
7109 gimple) ac_gimple_checking=1 ;;
7110 misc) ac_checking=1 ;;
7111 rtl) ac_rtl_checking=1 ;;
7112 rtlflag) ac_rtlflag_checking=1 ;;
7113 runtime) ac_runtime_checking=1 ;;
7114 tree) ac_tree_checking=1 ;;
7115 types) ac_types_checking=1 ;;
7116 valgrind) ac_valgrind_checking=1 ;;
7117 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7118 esac
7119 done
7120 IFS="$ac_save_IFS"
7122 nocommon_flag=""
7123 if test x$ac_checking != x ; then
7125 $as_echo "#define CHECKING_P 1" >>confdefs.h
7127 nocommon_flag=-fno-common
7128 else
7129 $as_echo "#define CHECKING_P 0" >>confdefs.h
7133 if test x$ac_extra_checking != x ; then
7135 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7137 else
7138 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7141 if test x$ac_df_checking != x ; then
7143 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7146 if test x$ac_assert_checking != x ; then
7148 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7151 if test x$ac_gimple_checking != x ; then
7153 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7157 if test x$ac_runtime_checking != x ; then
7159 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7162 if test x$ac_tree_checking != x ; then
7164 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7166 TREECHECKING=yes
7168 if test x$ac_types_checking != x ; then
7170 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7174 if test x$ac_rtl_checking != x ; then
7176 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7179 if test x$ac_rtlflag_checking != x ; then
7181 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7184 if test x$ac_gc_checking != x ; then
7186 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7189 if test x$ac_gc_always_collect != x ; then
7191 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7194 if test x$ac_fold_checking != x ; then
7196 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7199 valgrind_path_defines=
7200 valgrind_command=
7202 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7203 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7204 have_valgrind_h=yes
7205 else
7206 have_valgrind_h=no
7211 # It is certainly possible that there's valgrind but no valgrind.h.
7212 # GCC relies on making annotations so we must have both.
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7214 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7216 /* end confdefs.h. */
7217 #include <valgrind/memcheck.h>
7218 #ifndef VALGRIND_DISCARD
7219 #error VALGRIND_DISCARD not defined
7220 #endif
7221 _ACEOF
7222 if ac_fn_cxx_try_cpp "$LINENO"; then :
7223 gcc_cv_header_valgrind_memcheck_h=yes
7224 else
7225 gcc_cv_header_valgrind_memcheck_h=no
7227 rm -f conftest.err conftest.$ac_ext
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7229 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7231 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7233 /* end confdefs.h. */
7234 #include <memcheck.h>
7235 #ifndef VALGRIND_DISCARD
7236 #error VALGRIND_DISCARD not defined
7237 #endif
7238 _ACEOF
7239 if ac_fn_cxx_try_cpp "$LINENO"; then :
7240 gcc_cv_header_memcheck_h=yes
7241 else
7242 gcc_cv_header_memcheck_h=no
7244 rm -f conftest.err conftest.$ac_ext
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7246 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7247 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7249 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7252 if test $gcc_cv_header_memcheck_h = yes; then
7254 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7258 if test x$ac_valgrind_checking != x ; then
7260 # Prepare PATH_SEPARATOR.
7261 # The user is always right.
7262 if test "${PATH_SEPARATOR+set}" != set; then
7263 echo "#! /bin/sh" >conf$$.sh
7264 echo "exit 0" >>conf$$.sh
7265 chmod +x conf$$.sh
7266 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7267 PATH_SEPARATOR=';'
7268 else
7269 PATH_SEPARATOR=:
7271 rm -f conf$$.sh
7274 # Find out how to test for executable files. Don't use a zero-byte file,
7275 # as systems may use methods other than mode bits to determine executability.
7276 cat >conf$$.file <<_ASEOF
7277 #! /bin/sh
7278 exit 0
7279 _ASEOF
7280 chmod +x conf$$.file
7281 if test -x conf$$.file >/dev/null 2>&1; then
7282 ac_executable_p="test -x"
7283 else
7284 ac_executable_p="test -f"
7286 rm -f conf$$.file
7288 # Extract the first word of "valgrind", so it can be a program name with args.
7289 set dummy valgrind; ac_word=$2
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7291 $as_echo_n "checking for $ac_word... " >&6; }
7292 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7293 $as_echo_n "(cached) " >&6
7294 else
7295 case "$valgrind_path" in
7296 [\\/]* | ?:[\\/]*)
7297 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7300 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7301 for ac_dir in $PATH; do
7302 IFS="$ac_save_IFS"
7303 test -z "$ac_dir" && ac_dir=.
7304 for ac_exec_ext in '' $ac_executable_extensions; do
7305 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7306 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7307 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7308 break 2
7311 done
7312 done
7313 IFS="$ac_save_IFS"
7315 esac
7317 valgrind_path="$ac_cv_path_valgrind_path"
7318 if test -n "$valgrind_path"; then
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7320 $as_echo "$valgrind_path" >&6; }
7321 else
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323 $as_echo "no" >&6; }
7326 if test "x$valgrind_path" = "x" \
7327 || (test $have_valgrind_h = no \
7328 && test $gcc_cv_header_memcheck_h = no \
7329 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7330 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7332 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7333 valgrind_command="$valgrind_path -q"
7335 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7341 # Enable code coverage collection
7342 # Check whether --enable-coverage was given.
7343 if test "${enable_coverage+set}" = set; then :
7344 enableval=$enable_coverage; case "${enableval}" in
7345 yes|noopt)
7346 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7348 opt)
7349 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7352 # a.k.a. --disable-coverage
7353 coverage_flags=""
7356 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7358 esac
7359 else
7360 coverage_flags=""
7365 # Check whether --enable-gather-detailed-mem-stats was given.
7366 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7367 enableval=$enable_gather_detailed_mem_stats;
7368 else
7369 enable_gather_detailed_mem_stats=no
7372 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7374 cat >>confdefs.h <<_ACEOF
7375 #define GATHER_STATISTICS $gather_stats
7376 _ACEOF
7379 # Check whether --enable-valgrind-annotations was given.
7380 if test "${enable_valgrind_annotations+set}" = set; then :
7381 enableval=$enable_valgrind_annotations;
7382 else
7383 enable_valgrind_annotations=no
7386 if test x$enable_valgrind_annotations != xno \
7387 || test x$ac_valgrind_checking != x; then
7388 if (test $have_valgrind_h = no \
7389 && test $gcc_cv_header_memcheck_h = no \
7390 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7391 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7394 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7398 # -------------------------------
7399 # Miscenalleous configure options
7400 # -------------------------------
7402 # With stabs
7404 # Check whether --with-stabs was given.
7405 if test "${with_stabs+set}" = set; then :
7406 withval=$with_stabs; stabs="$with_stabs"
7407 else
7408 stabs=no
7412 # Determine whether or not multilibs are enabled.
7413 # Check whether --enable-multilib was given.
7414 if test "${enable_multilib+set}" = set; then :
7415 enableval=$enable_multilib;
7416 else
7417 enable_multilib=yes
7422 # Determine whether or not multiarch is enabled.
7423 # Check whether --enable-multiarch was given.
7424 if test "${enable_multiarch+set}" = set; then :
7425 enableval=$enable_multiarch; case "${enableval}" in
7426 yes|no|auto) enable_multiarch=$enableval;;
7427 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7428 esac
7429 else
7430 enable_multiarch=auto
7433 if test x${enable_multiarch} = xauto; then
7434 if test x${with_native_system_header_dir} != x; then
7435 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7436 enable_multiarch=no
7438 if test x$host != x$target && test "x$with_sysroot" = x; then
7439 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7440 enable_multiarch=no
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7444 $as_echo_n "checking for multiarch configuration... " >&6; }
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7447 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7449 # needed for setting the multiarch name for soft-float/hard-float ABIs
7453 # default stack clash protection guard size as power of twos in bytes.
7454 # Please keep these in sync with params.def.
7455 stk_clash_min=12
7456 stk_clash_max=30
7458 # Keep the default value when the option is not used to 0, this allows us to
7459 # distinguish between the cases where the user specifially set a value via
7460 # configure and when the normal default value is used.
7462 # Check whether --with-stack-clash-protection-guard-size was given.
7463 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7464 withval=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE="$with_stack_clash_protection_guard_size"
7465 else
7466 DEFAULT_STK_CLASH_GUARD_SIZE=0
7469 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7470 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7471 || test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7472 as_fn_error "Invalid value $DEFAULT_STK_CLASH_GUARD_SIZE for --with-stack-clash-protection-guard-size. Must be between $stk_clash_min and $stk_clash_max." "$LINENO" 5
7476 cat >>confdefs.h <<_ACEOF
7477 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7478 _ACEOF
7481 # Enable __cxa_atexit for C++.
7482 # Check whether --enable-__cxa_atexit was given.
7483 if test "${enable___cxa_atexit+set}" = set; then :
7484 enableval=$enable___cxa_atexit;
7488 # Enable C extension for decimal float if target supports it.
7490 # Check whether --enable-decimal-float was given.
7491 if test "${enable_decimal_float+set}" = set; then :
7492 enableval=$enable_decimal_float;
7493 case $enable_decimal_float in
7494 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7495 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7496 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7497 esac
7499 else
7501 case $target in
7502 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7503 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
7504 i?86*-*-mingw* | x86_64*-*-mingw* | \
7505 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7506 enable_decimal_float=yes
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7510 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7511 enable_decimal_float=no
7513 esac
7518 # x86's use BID format instead of DPD
7519 case x$enable_decimal_float in
7520 xyes)
7521 case $target in
7522 i?86*-*-* | x86_64*-*-*)
7523 enable_decimal_float=bid
7526 enable_decimal_float=dpd
7528 esac
7529 default_decimal_float=$enable_decimal_float
7531 xno)
7532 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7533 # dependency on libdecnumber.
7534 default_decimal_float=dpd
7536 esac
7541 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7543 cat >>confdefs.h <<_ACEOF
7544 #define ENABLE_DECIMAL_FLOAT $dfp
7545 _ACEOF
7548 # Use default_decimal_float for dependency.
7549 enable_decimal_float=$default_decimal_float
7551 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7553 cat >>confdefs.h <<_ACEOF
7554 #define ENABLE_DECIMAL_BID_FORMAT $bid
7555 _ACEOF
7558 # Enable C extension for fixed-point arithmetic.
7559 # Check whether --enable-fixed-point was given.
7560 if test "${enable_fixed_point+set}" = set; then :
7561 enableval=$enable_fixed_point;
7562 else
7564 case $target in
7565 arm*)
7566 enable_fixed_point=yes
7569 mips*-*-*)
7570 enable_fixed_point=yes
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7574 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7575 enable_fixed_point=no
7577 esac
7583 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7585 cat >>confdefs.h <<_ACEOF
7586 #define ENABLE_FIXED_POINT $fixedpoint
7587 _ACEOF
7590 # Enable threads
7591 # Pass with no value to take the default
7592 # Pass with a value to specify a thread package
7593 # Check whether --enable-threads was given.
7594 if test "${enable_threads+set}" = set; then :
7595 enableval=$enable_threads;
7596 else
7597 enable_threads=''
7601 # Check whether --enable-tls was given.
7602 if test "${enable_tls+set}" = set; then :
7603 enableval=$enable_tls;
7604 case $enable_tls in
7605 yes | no) ;;
7606 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7607 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7608 esac
7610 else
7611 enable_tls=''
7615 # Check whether --enable-vtable-verify was given.
7616 if test "${enable_vtable_verify+set}" = set; then :
7617 enableval=$enable_vtable_verify;
7618 else
7619 enable_vtable_verify=no
7622 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7624 cat >>confdefs.h <<_ACEOF
7625 #define ENABLE_VTABLE_VERIFY $vtable_verify
7626 _ACEOF
7629 # Check whether --enable-objc-gc was given.
7630 if test "${enable_objc_gc+set}" = set; then :
7631 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7632 objc_boehm_gc=''
7633 else
7634 objc_boehm_gc=1
7636 else
7637 objc_boehm_gc=''
7642 # Check whether --with-dwarf2 was given.
7643 if test "${with_dwarf2+set}" = set; then :
7644 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7645 else
7646 dwarf2=no
7650 # Check whether --enable-shared was given.
7651 if test "${enable_shared+set}" = set; then :
7652 enableval=$enable_shared;
7653 case $enable_shared in
7654 yes | no) ;;
7656 enable_shared=no
7657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7658 for pkg in $enableval; do
7659 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7660 enable_shared=yes
7662 done
7663 IFS="$ac_save_ifs"
7665 esac
7667 else
7668 enable_shared=yes
7673 # Check whether --enable-gcov was given.
7674 if test "${enable_gcov+set}" = set; then :
7675 enableval=$enable_gcov;
7676 else
7677 enable_gcov=yes
7683 # Check whether --with-specs was given.
7684 if test "${with_specs+set}" = set; then :
7685 withval=$with_specs; CONFIGURE_SPECS=$withval
7686 else
7687 CONFIGURE_SPECS=
7695 # Check whether --with-pkgversion was given.
7696 if test "${with_pkgversion+set}" = set; then :
7697 withval=$with_pkgversion; case "$withval" in
7698 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7699 no) PKGVERSION= ;;
7700 *) PKGVERSION="($withval) " ;;
7701 esac
7702 else
7703 PKGVERSION="(GCC) "
7711 # Check whether --with-bugurl was given.
7712 if test "${with_bugurl+set}" = set; then :
7713 withval=$with_bugurl; case "$withval" in
7714 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7715 no) BUGURL=
7717 *) BUGURL="$withval"
7719 esac
7720 else
7721 BUGURL="https://gcc.gnu.org/bugs/"
7725 case ${BUGURL} in
7727 REPORT_BUGS_TO=
7728 REPORT_BUGS_TEXI=
7731 REPORT_BUGS_TO="<$BUGURL>"
7732 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7734 esac;
7739 # Sanity check enable_languages in case someone does not run the toplevel
7740 # configure # script.
7741 # Check whether --enable-languages was given.
7742 if test "${enable_languages+set}" = set; then :
7743 enableval=$enable_languages; case ,${enable_languages}, in
7744 ,,|,yes,)
7745 # go safe -- we cannot be much sure without the toplevel
7746 # configure's
7747 # analysis of which target libs are present and usable
7748 enable_languages=c
7750 *,all,*)
7751 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7753 *,c,*)
7756 enable_languages=c,${enable_languages}
7758 esac
7759 else
7760 enable_languages=c
7764 if test x"$enable_as_accelerator_for" != x; then
7766 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7768 enable_as_accelerator=yes
7769 case "${target}" in
7770 *-intelmicemul-*)
7771 # In this case we expect offload compiler to be built as native, so we
7772 # need to rename the driver to avoid clashes with host's drivers.
7773 program_transform_name="s&^&${target}-&" ;;
7774 esac
7775 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7776 program_transform_name=`echo $program_transform_name | sed $sedscript`
7777 accel_dir_suffix=/accel/${target_noncanonical}
7778 real_target_noncanonical=${enable_as_accelerator_for}
7784 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7785 tgt=`echo $tgt | sed 's/=.*//'`
7787 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7788 enable_hsa=1
7789 else
7790 enable_offloading=1
7793 if test x"$offload_targets" = x; then
7794 offload_targets=$tgt
7795 else
7796 offload_targets="$offload_targets,$tgt"
7798 done
7800 cat >>confdefs.h <<_ACEOF
7801 #define OFFLOAD_TARGETS "$offload_targets"
7802 _ACEOF
7804 if test x"$enable_offloading" != x; then
7806 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7808 else
7810 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7814 if test x"$enable_hsa" = x1 ; then
7816 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7821 # Check whether --with-multilib-list was given.
7822 if test "${with_multilib_list+set}" = set; then :
7823 withval=$with_multilib_list; :
7824 else
7825 with_multilib_list=default
7829 # -------------------------
7830 # Checks for other programs
7831 # -------------------------
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7834 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7835 set x ${MAKE-make}
7836 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7837 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7838 $as_echo_n "(cached) " >&6
7839 else
7840 cat >conftest.make <<\_ACEOF
7841 SHELL = /bin/sh
7842 all:
7843 @echo '@@@%%%=$(MAKE)=@@@%%%'
7844 _ACEOF
7845 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7846 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7847 *@@@%%%=?*=@@@%%%*)
7848 eval ac_cv_prog_make_${ac_make}_set=yes;;
7850 eval ac_cv_prog_make_${ac_make}_set=no;;
7851 esac
7852 rm -f conftest.make
7854 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7856 $as_echo "yes" >&6; }
7857 SET_MAKE=
7858 else
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860 $as_echo "no" >&6; }
7861 SET_MAKE="MAKE=${MAKE-make}"
7865 # Find some useful tools
7866 for ac_prog in gawk mawk nawk awk
7868 # Extract the first word of "$ac_prog", so it can be a program name with args.
7869 set dummy $ac_prog; ac_word=$2
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7871 $as_echo_n "checking for $ac_word... " >&6; }
7872 if test "${ac_cv_prog_AWK+set}" = set; then :
7873 $as_echo_n "(cached) " >&6
7874 else
7875 if test -n "$AWK"; then
7876 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7877 else
7878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879 for as_dir in $PATH
7881 IFS=$as_save_IFS
7882 test -z "$as_dir" && as_dir=.
7883 for ac_exec_ext in '' $ac_executable_extensions; do
7884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7885 ac_cv_prog_AWK="$ac_prog"
7886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7887 break 2
7889 done
7890 done
7891 IFS=$as_save_IFS
7895 AWK=$ac_cv_prog_AWK
7896 if test -n "$AWK"; then
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7898 $as_echo "$AWK" >&6; }
7899 else
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7901 $as_echo "no" >&6; }
7905 test -n "$AWK" && break
7906 done
7908 # We need awk to create options.c and options.h.
7909 # Bail out if it's missing.
7910 case ${AWK} in
7911 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7912 esac
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7915 $as_echo_n "checking whether ln -s works... " >&6; }
7916 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7917 $as_echo_n "(cached) " >&6
7918 else
7919 rm -f conftestdata_t
7920 echo >conftestdata_f
7921 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7922 then
7923 gcc_cv_prog_LN_S="ln -s"
7924 else
7925 if ln conftestdata_f conftestdata_t 2>/dev/null
7926 then
7927 gcc_cv_prog_LN_S=ln
7928 else
7929 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7930 then
7931 gcc_cv_prog_LN_S="cp -p"
7932 else
7933 gcc_cv_prog_LN_S=cp
7937 rm -f conftestdata_f conftestdata_t
7940 LN_S="$gcc_cv_prog_LN_S"
7941 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7943 $as_echo "yes" >&6; }
7944 else
7945 if test "$gcc_cv_prog_LN_S" = "ln"; then
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7947 $as_echo "no, using ln" >&6; }
7948 else
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7950 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7955 $as_echo_n "checking whether ln works... " >&6; }
7956 if test "${acx_cv_prog_LN+set}" = set; then :
7957 $as_echo_n "(cached) " >&6
7958 else
7959 rm -f conftestdata_t
7960 echo >conftestdata_f
7961 if ln conftestdata_f conftestdata_t 2>/dev/null
7962 then
7963 acx_cv_prog_LN=ln
7964 else
7965 acx_cv_prog_LN=no
7967 rm -f conftestdata_f conftestdata_t
7970 if test $acx_cv_prog_LN = no; then
7971 LN="$LN_S"
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7973 $as_echo "no, using $LN" >&6; }
7974 else
7975 LN="$acx_cv_prog_LN"
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7977 $as_echo "yes" >&6; }
7980 if test -n "$ac_tool_prefix"; then
7981 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7982 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984 $as_echo_n "checking for $ac_word... " >&6; }
7985 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7986 $as_echo_n "(cached) " >&6
7987 else
7988 if test -n "$RANLIB"; then
7989 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7990 else
7991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992 for as_dir in $PATH
7994 IFS=$as_save_IFS
7995 test -z "$as_dir" && as_dir=.
7996 for ac_exec_ext in '' $ac_executable_extensions; do
7997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7998 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8000 break 2
8002 done
8003 done
8004 IFS=$as_save_IFS
8008 RANLIB=$ac_cv_prog_RANLIB
8009 if test -n "$RANLIB"; then
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8011 $as_echo "$RANLIB" >&6; }
8012 else
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014 $as_echo "no" >&6; }
8019 if test -z "$ac_cv_prog_RANLIB"; then
8020 ac_ct_RANLIB=$RANLIB
8021 # Extract the first word of "ranlib", so it can be a program name with args.
8022 set dummy ranlib; ac_word=$2
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024 $as_echo_n "checking for $ac_word... " >&6; }
8025 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8026 $as_echo_n "(cached) " >&6
8027 else
8028 if test -n "$ac_ct_RANLIB"; then
8029 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8030 else
8031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032 for as_dir in $PATH
8034 IFS=$as_save_IFS
8035 test -z "$as_dir" && as_dir=.
8036 for ac_exec_ext in '' $ac_executable_extensions; do
8037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8038 ac_cv_prog_ac_ct_RANLIB="ranlib"
8039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8040 break 2
8042 done
8043 done
8044 IFS=$as_save_IFS
8048 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8049 if test -n "$ac_ct_RANLIB"; then
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8051 $as_echo "$ac_ct_RANLIB" >&6; }
8052 else
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054 $as_echo "no" >&6; }
8057 if test "x$ac_ct_RANLIB" = x; then
8058 RANLIB=":"
8059 else
8060 case $cross_compiling:$ac_tool_warned in
8061 yes:)
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8064 ac_tool_warned=yes ;;
8065 esac
8066 RANLIB=$ac_ct_RANLIB
8068 else
8069 RANLIB="$ac_cv_prog_RANLIB"
8072 ranlib_flags=""
8075 # Find a good install program. We prefer a C program (faster),
8076 # so one script is as good as another. But avoid the broken or
8077 # incompatible versions:
8078 # SysV /etc/install, /usr/sbin/install
8079 # SunOS /usr/etc/install
8080 # IRIX /sbin/install
8081 # AIX /bin/install
8082 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8083 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8084 # ./install, which can be erroneously created by make from ./install.sh.
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8086 $as_echo_n "checking for a BSD compatible install... " >&6; }
8087 if test -z "$INSTALL"; then
8088 if test "${ac_cv_path_install+set}" = set; then :
8089 $as_echo_n "(cached) " >&6
8090 else
8091 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8092 for ac_dir in $PATH; do
8093 # Account for people who put trailing slashes in PATH elements.
8094 case "$ac_dir/" in
8095 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8097 # OSF1 and SCO ODT 3.0 have their own names for install.
8098 for ac_prog in ginstall scoinst install; do
8099 if test -f $ac_dir/$ac_prog; then
8100 if test $ac_prog = install &&
8101 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8102 # AIX install. It has an incompatible calling convention.
8103 # OSF/1 installbsd also uses dspmsg, but is usable.
8105 else
8106 ac_cv_path_install="$ac_dir/$ac_prog -c"
8107 break 2
8110 done
8112 esac
8113 done
8114 IFS="$ac_save_IFS"
8117 if test "${ac_cv_path_install+set}" = set; then
8118 INSTALL="$ac_cv_path_install"
8119 else
8120 # As a last resort, use the slow shell script. We don't cache a
8121 # path for INSTALL within a source directory, because that will
8122 # break other packages using the cache if that directory is
8123 # removed, or if the path is relative.
8124 INSTALL="$ac_install_sh"
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8128 $as_echo "$INSTALL" >&6; }
8130 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8131 # It thinks the first close brace ends the variable substitution.
8132 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8134 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8137 # See if cmp has --ignore-initial.
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8139 $as_echo_n "checking for cmp's capabilities... " >&6; }
8140 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8141 $as_echo_n "(cached) " >&6
8142 else
8143 echo abfoo >t1
8144 echo cdfoo >t2
8145 gcc_cv_prog_cmp_skip=slowcompare
8146 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8147 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8149 else
8150 gcc_cv_prog_cmp_skip=gnucompare
8153 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8154 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8155 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8157 else
8158 gcc_cv_prog_cmp_skip=fastcompare
8162 rm t1 t2
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8166 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8167 make_compare_target=$gcc_cv_prog_cmp_skip
8171 # See if we have the mktemp command.
8172 # Extract the first word of "mktemp", so it can be a program name with args.
8173 set dummy mktemp; ac_word=$2
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175 $as_echo_n "checking for $ac_word... " >&6; }
8176 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8177 $as_echo_n "(cached) " >&6
8178 else
8179 if test -n "$have_mktemp_command"; then
8180 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8181 else
8182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183 for as_dir in $PATH
8185 IFS=$as_save_IFS
8186 test -z "$as_dir" && as_dir=.
8187 for ac_exec_ext in '' $ac_executable_extensions; do
8188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8189 ac_cv_prog_have_mktemp_command="yes"
8190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8191 break 2
8193 done
8194 done
8195 IFS=$as_save_IFS
8197 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8200 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8201 if test -n "$have_mktemp_command"; then
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8203 $as_echo "$have_mktemp_command" >&6; }
8204 else
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206 $as_echo "no" >&6; }
8211 # See if makeinfo has been installed and is modern enough
8212 # that we can use it.
8214 # Extract the first word of "makeinfo", so it can be a program name with args.
8215 set dummy makeinfo; ac_word=$2
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8217 $as_echo_n "checking for $ac_word... " >&6; }
8218 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8219 $as_echo_n "(cached) " >&6
8220 else
8221 if test -n "$MAKEINFO"; then
8222 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8223 else
8224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225 for as_dir in $PATH
8227 IFS=$as_save_IFS
8228 test -z "$as_dir" && as_dir=.
8229 for ac_exec_ext in '' $ac_executable_extensions; do
8230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8231 ac_cv_prog_MAKEINFO="makeinfo"
8232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8233 break 2
8235 done
8236 done
8237 IFS=$as_save_IFS
8241 MAKEINFO=$ac_cv_prog_MAKEINFO
8242 if test -n "$MAKEINFO"; then
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8244 $as_echo "$MAKEINFO" >&6; }
8245 else
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8247 $as_echo "no" >&6; }
8251 if test -n "$MAKEINFO"; then
8252 # Found it, now check the version.
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8254 $as_echo_n "checking for modern makeinfo... " >&6; }
8255 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8256 $as_echo_n "(cached) " >&6
8257 else
8258 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8259 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8261 case $ac_prog_version in
8262 '') gcc_cv_prog_makeinfo_modern=no;;
8263 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8264 *) gcc_cv_prog_makeinfo_modern=no;;
8265 esac
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8269 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8270 else
8271 gcc_cv_prog_makeinfo_modern=no
8273 if test $gcc_cv_prog_makeinfo_modern = no; then
8274 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8277 if test $gcc_cv_prog_makeinfo_modern = no; then
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8279 *** Makeinfo is missing or too old.
8280 *** Info documentation will not be built." >&5
8281 $as_echo "$as_me: WARNING:
8282 *** Makeinfo is missing or too old.
8283 *** Info documentation will not be built." >&2;}
8284 BUILD_INFO=
8285 else
8286 BUILD_INFO=info
8290 # Is pod2man recent enough to regenerate manpages?
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8292 $as_echo_n "checking for recent Pod::Man... " >&6; }
8293 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8295 $as_echo "yes" >&6; }
8296 GENERATED_MANPAGES=generated-manpages
8297 else
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8299 $as_echo "no" >&6; }
8300 GENERATED_MANPAGES=
8304 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8306 # How about lex?
8307 for ac_prog in flex
8309 # Extract the first word of "$ac_prog", so it can be a program name with args.
8310 set dummy $ac_prog; ac_word=$2
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8312 $as_echo_n "checking for $ac_word... " >&6; }
8313 if test "${ac_cv_prog_FLEX+set}" = set; then :
8314 $as_echo_n "(cached) " >&6
8315 else
8316 if test -n "$FLEX"; then
8317 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8318 else
8319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320 for as_dir in $PATH
8322 IFS=$as_save_IFS
8323 test -z "$as_dir" && as_dir=.
8324 for ac_exec_ext in '' $ac_executable_extensions; do
8325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8326 ac_cv_prog_FLEX="$ac_prog"
8327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8328 break 2
8330 done
8331 done
8332 IFS=$as_save_IFS
8336 FLEX=$ac_cv_prog_FLEX
8337 if test -n "$FLEX"; then
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8339 $as_echo "$FLEX" >&6; }
8340 else
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342 $as_echo "no" >&6; }
8346 test -n "$FLEX" && break
8347 done
8348 test -n "$FLEX" || FLEX="$MISSING flex"
8351 # Bison?
8352 for ac_prog in bison
8354 # Extract the first word of "$ac_prog", so it can be a program name with args.
8355 set dummy $ac_prog; ac_word=$2
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357 $as_echo_n "checking for $ac_word... " >&6; }
8358 if test "${ac_cv_prog_BISON+set}" = set; then :
8359 $as_echo_n "(cached) " >&6
8360 else
8361 if test -n "$BISON"; then
8362 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8363 else
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 for as_dir in $PATH
8367 IFS=$as_save_IFS
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8371 ac_cv_prog_BISON="$ac_prog"
8372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8373 break 2
8375 done
8376 done
8377 IFS=$as_save_IFS
8381 BISON=$ac_cv_prog_BISON
8382 if test -n "$BISON"; then
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8384 $as_echo "$BISON" >&6; }
8385 else
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387 $as_echo "no" >&6; }
8391 test -n "$BISON" && break
8392 done
8393 test -n "$BISON" || BISON="$MISSING bison"
8396 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8397 # check for build == host before using them.
8399 # NM
8400 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8401 && test -d ../binutils ; then
8402 NM='${objdir}/../binutils/nm-new'
8403 else
8404 # Extract the first word of "nm", so it can be a program name with args.
8405 set dummy nm; ac_word=$2
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8407 $as_echo_n "checking for $ac_word... " >&6; }
8408 if test "${ac_cv_prog_NM+set}" = set; then :
8409 $as_echo_n "(cached) " >&6
8410 else
8411 if test -n "$NM"; then
8412 ac_cv_prog_NM="$NM" # Let the user override the test.
8413 else
8414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415 for as_dir in $PATH
8417 IFS=$as_save_IFS
8418 test -z "$as_dir" && as_dir=.
8419 for ac_exec_ext in '' $ac_executable_extensions; do
8420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8421 ac_cv_prog_NM="nm"
8422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8423 break 2
8425 done
8426 done
8427 IFS=$as_save_IFS
8429 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8432 NM=$ac_cv_prog_NM
8433 if test -n "$NM"; then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8435 $as_echo "$NM" >&6; }
8436 else
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438 $as_echo "no" >&6; }
8444 # AR
8445 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8446 && test -d ../binutils ; then
8447 AR='${objdir}/../binutils/ar'
8448 else
8449 # Extract the first word of "ar", so it can be a program name with args.
8450 set dummy ar; ac_word=$2
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8452 $as_echo_n "checking for $ac_word... " >&6; }
8453 if test "${ac_cv_prog_AR+set}" = set; then :
8454 $as_echo_n "(cached) " >&6
8455 else
8456 if test -n "$AR"; then
8457 ac_cv_prog_AR="$AR" # Let the user override the test.
8458 else
8459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460 for as_dir in $PATH
8462 IFS=$as_save_IFS
8463 test -z "$as_dir" && as_dir=.
8464 for ac_exec_ext in '' $ac_executable_extensions; do
8465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8466 ac_cv_prog_AR="ar"
8467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8468 break 2
8470 done
8471 done
8472 IFS=$as_save_IFS
8474 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8477 AR=$ac_cv_prog_AR
8478 if test -n "$AR"; then
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8480 $as_echo "$AR" >&6; }
8481 else
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483 $as_echo "no" >&6; }
8489 # The jit documentation looks better if built with sphinx, but can be
8490 # built with texinfo if sphinx is not available.
8491 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8492 # Extract the first word of "sphinx-build", so it can be a program name with args.
8493 set dummy sphinx-build; ac_word=$2
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8495 $as_echo_n "checking for $ac_word... " >&6; }
8496 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8497 $as_echo_n "(cached) " >&6
8498 else
8499 if test -n "$doc_build_sys"; then
8500 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8501 else
8502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8503 for as_dir in $PATH
8505 IFS=$as_save_IFS
8506 test -z "$as_dir" && as_dir=.
8507 for ac_exec_ext in '' $ac_executable_extensions; do
8508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8509 ac_cv_prog_doc_build_sys="sphinx"
8510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8511 break 2
8513 done
8514 done
8515 IFS=$as_save_IFS
8517 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8520 doc_build_sys=$ac_cv_prog_doc_build_sys
8521 if test -n "$doc_build_sys"; then
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8523 $as_echo "$doc_build_sys" >&6; }
8524 else
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526 $as_echo "no" >&6; }
8531 # --------------------
8532 # Checks for C headers
8533 # --------------------
8535 # Need to reject headers which give warnings, so that the -Werror bootstrap
8536 # works later. *sigh* This needs to come before all header checks.
8538 ac_c_preproc_warn_flag=yes
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8541 $as_echo_n "checking for ANSI C header files... " >&6; }
8542 if test "${ac_cv_header_stdc+set}" = set; then :
8543 $as_echo_n "(cached) " >&6
8544 else
8545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8546 /* end confdefs.h. */
8547 #include <stdlib.h>
8548 #include <stdarg.h>
8549 #include <string.h>
8550 #include <float.h>
8553 main ()
8557 return 0;
8559 _ACEOF
8560 if ac_fn_cxx_try_compile "$LINENO"; then :
8561 ac_cv_header_stdc=yes
8562 else
8563 ac_cv_header_stdc=no
8565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8567 if test $ac_cv_header_stdc = yes; then
8568 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570 /* end confdefs.h. */
8571 #include <string.h>
8573 _ACEOF
8574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8575 $EGREP "memchr" >/dev/null 2>&1; then :
8577 else
8578 ac_cv_header_stdc=no
8580 rm -f conftest*
8584 if test $ac_cv_header_stdc = yes; then
8585 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8587 /* end confdefs.h. */
8588 #include <stdlib.h>
8590 _ACEOF
8591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8592 $EGREP "free" >/dev/null 2>&1; then :
8594 else
8595 ac_cv_header_stdc=no
8597 rm -f conftest*
8601 if test $ac_cv_header_stdc = yes; then
8602 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8603 if test "$cross_compiling" = yes; then :
8605 else
8606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8607 /* end confdefs.h. */
8608 #include <ctype.h>
8609 #include <stdlib.h>
8610 #if ((' ' & 0x0FF) == 0x020)
8611 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8612 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8613 #else
8614 # define ISLOWER(c) \
8615 (('a' <= (c) && (c) <= 'i') \
8616 || ('j' <= (c) && (c) <= 'r') \
8617 || ('s' <= (c) && (c) <= 'z'))
8618 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8619 #endif
8621 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8623 main ()
8625 int i;
8626 for (i = 0; i < 256; i++)
8627 if (XOR (islower (i), ISLOWER (i))
8628 || toupper (i) != TOUPPER (i))
8629 return 2;
8630 return 0;
8632 _ACEOF
8633 if ac_fn_cxx_try_run "$LINENO"; then :
8635 else
8636 ac_cv_header_stdc=no
8638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8639 conftest.$ac_objext conftest.beam conftest.$ac_ext
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8645 $as_echo "$ac_cv_header_stdc" >&6; }
8646 if test $ac_cv_header_stdc = yes; then
8648 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8653 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8654 if test "${ac_cv_header_time+set}" = set; then :
8655 $as_echo_n "(cached) " >&6
8656 else
8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658 /* end confdefs.h. */
8659 #include <sys/types.h>
8660 #include <sys/time.h>
8661 #include <time.h>
8664 main ()
8666 if ((struct tm *) 0)
8667 return 0;
8669 return 0;
8671 _ACEOF
8672 if ac_fn_cxx_try_compile "$LINENO"; then :
8673 ac_cv_header_time=yes
8674 else
8675 ac_cv_header_time=no
8677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8680 $as_echo "$ac_cv_header_time" >&6; }
8681 if test $ac_cv_header_time = yes; then
8683 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8688 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8689 if test "${gcc_cv_header_string+set}" = set; then :
8690 $as_echo_n "(cached) " >&6
8691 else
8692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8693 /* end confdefs.h. */
8694 #include <string.h>
8695 #include <strings.h>
8697 main ()
8701 return 0;
8703 _ACEOF
8704 if ac_fn_cxx_try_compile "$LINENO"; then :
8705 gcc_cv_header_string=yes
8706 else
8707 gcc_cv_header_string=no
8709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8712 $as_echo "$gcc_cv_header_string" >&6; }
8713 if test $gcc_cv_header_string = yes; then
8715 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8720 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8721 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8722 $as_echo_n "(cached) " >&6
8723 else
8724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8725 /* end confdefs.h. */
8726 #include <sys/types.h>
8727 #include <sys/wait.h>
8728 #ifndef WEXITSTATUS
8729 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8730 #endif
8731 #ifndef WIFEXITED
8732 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8733 #endif
8736 main ()
8738 int s;
8739 wait (&s);
8740 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8742 return 0;
8744 _ACEOF
8745 if ac_fn_cxx_try_compile "$LINENO"; then :
8746 ac_cv_header_sys_wait_h=yes
8747 else
8748 ac_cv_header_sys_wait_h=no
8750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8753 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8754 if test $ac_cv_header_sys_wait_h = yes; then
8756 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8761 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8762 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8763 $as_echo_n "(cached) " >&6
8764 else
8765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8766 /* end confdefs.h. */
8767 #include <sys/types.h>
8768 #include <termios.h>
8769 #ifdef TIOCGWINSZ
8771 #endif
8773 _ACEOF
8774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8775 $EGREP "yes" >/dev/null 2>&1; then :
8776 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8777 else
8778 ac_cv_sys_tiocgwinsz_in_termios_h=no
8780 rm -f conftest*
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8784 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8786 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8788 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8789 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8790 $as_echo_n "(cached) " >&6
8791 else
8792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793 /* end confdefs.h. */
8794 #include <sys/types.h>
8795 #include <sys/ioctl.h>
8796 #ifdef TIOCGWINSZ
8798 #endif
8800 _ACEOF
8801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8802 $EGREP "yes" >/dev/null 2>&1; then :
8803 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8804 else
8805 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8807 rm -f conftest*
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8811 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8813 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8815 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8820 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8821 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8822 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8823 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8824 do :
8825 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8826 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8827 eval as_val=\$$as_ac_Header
8828 if test "x$as_val" = x""yes; then :
8829 cat >>confdefs.h <<_ACEOF
8830 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8831 _ACEOF
8834 done
8837 # Check for thread headers.
8838 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8839 if test "x$ac_cv_header_thread_h" = x""yes; then :
8840 have_thread_h=yes
8841 else
8842 have_thread_h=
8845 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8846 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8847 have_pthread_h=yes
8848 else
8849 have_pthread_h=
8853 # These tests can't be done till we know if we have limits.h.
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8855 $as_echo_n "checking for CHAR_BIT... " >&6; }
8856 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8857 $as_echo_n "(cached) " >&6
8858 else
8859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h. */
8861 #ifdef HAVE_LIMITS_H
8862 #include <limits.h>
8863 #endif
8864 #ifdef CHAR_BIT
8865 found
8866 #endif
8867 _ACEOF
8868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8869 $EGREP "found" >/dev/null 2>&1; then :
8870 gcc_cv_decl_char_bit=yes
8871 else
8872 gcc_cv_decl_char_bit=no
8874 rm -f conftest*
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8879 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8880 if test $gcc_cv_decl_char_bit = no; then
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8882 $as_echo_n "checking number of bits in a byte... " >&6; }
8883 if test "${gcc_cv_c_nbby+set}" = set; then :
8884 $as_echo_n "(cached) " >&6
8885 else
8887 gcc_cv_c_nbby=
8888 while test $i -lt 65; do
8889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890 /* end confdefs.h. */
8893 main ()
8895 switch(0) {
8896 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8897 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8900 return 0;
8902 _ACEOF
8903 if ac_fn_cxx_try_compile "$LINENO"; then :
8904 gcc_cv_c_nbby=$i; break
8906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8907 i=`expr $i + 1`
8908 done
8909 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8913 $as_echo "$gcc_cv_c_nbby" >&6; }
8914 if test $gcc_cv_c_nbby = failed; then
8915 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8916 else
8918 cat >>confdefs.h <<_ACEOF
8919 #define CHAR_BIT $gcc_cv_c_nbby
8920 _ACEOF
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8925 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8926 if test "${ac_cv_c_bigendian+set}" = set; then :
8927 $as_echo_n "(cached) " >&6
8928 else
8929 ac_cv_c_bigendian=unknown
8930 # See if we're dealing with a universal compiler.
8931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932 /* end confdefs.h. */
8933 #ifndef __APPLE_CC__
8934 not a universal capable compiler
8935 #endif
8936 typedef int dummy;
8938 _ACEOF
8939 if ac_fn_cxx_try_compile "$LINENO"; then :
8941 # Check for potential -arch flags. It is not universal unless
8942 # there are at least two -arch flags with different values.
8943 ac_arch=
8944 ac_prev=
8945 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8946 if test -n "$ac_prev"; then
8947 case $ac_word in
8948 i?86 | x86_64 | ppc | ppc64)
8949 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8950 ac_arch=$ac_word
8951 else
8952 ac_cv_c_bigendian=universal
8953 break
8956 esac
8957 ac_prev=
8958 elif test "x$ac_word" = "x-arch"; then
8959 ac_prev=arch
8961 done
8963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8964 if test $ac_cv_c_bigendian = unknown; then
8965 # See if sys/param.h defines the BYTE_ORDER macro.
8966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8967 /* end confdefs.h. */
8968 #include <sys/types.h>
8969 #include <sys/param.h>
8972 main ()
8974 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8975 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8976 && LITTLE_ENDIAN)
8977 bogus endian macros
8978 #endif
8981 return 0;
8983 _ACEOF
8984 if ac_fn_cxx_try_compile "$LINENO"; then :
8985 # It does; now see whether it defined to BIG_ENDIAN or not.
8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987 /* end confdefs.h. */
8988 #include <sys/types.h>
8989 #include <sys/param.h>
8992 main ()
8994 #if BYTE_ORDER != BIG_ENDIAN
8995 not big endian
8996 #endif
8999 return 0;
9001 _ACEOF
9002 if ac_fn_cxx_try_compile "$LINENO"; then :
9003 ac_cv_c_bigendian=yes
9004 else
9005 ac_cv_c_bigendian=no
9007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9011 if test $ac_cv_c_bigendian = unknown; then
9012 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9014 /* end confdefs.h. */
9015 #include <limits.h>
9018 main ()
9020 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9021 bogus endian macros
9022 #endif
9025 return 0;
9027 _ACEOF
9028 if ac_fn_cxx_try_compile "$LINENO"; then :
9029 # It does; now see whether it defined to _BIG_ENDIAN or not.
9030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h. */
9032 #include <limits.h>
9035 main ()
9037 #ifndef _BIG_ENDIAN
9038 not big endian
9039 #endif
9042 return 0;
9044 _ACEOF
9045 if ac_fn_cxx_try_compile "$LINENO"; then :
9046 ac_cv_c_bigendian=yes
9047 else
9048 ac_cv_c_bigendian=no
9050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9054 if test $ac_cv_c_bigendian = unknown; then
9055 # Compile a test program.
9056 if test "$cross_compiling" = yes; then :
9057 # Try to guess by grepping values from an object file.
9058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059 /* end confdefs.h. */
9060 short int ascii_mm[] =
9061 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9062 short int ascii_ii[] =
9063 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9064 int use_ascii (int i) {
9065 return ascii_mm[i] + ascii_ii[i];
9067 short int ebcdic_ii[] =
9068 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9069 short int ebcdic_mm[] =
9070 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9071 int use_ebcdic (int i) {
9072 return ebcdic_mm[i] + ebcdic_ii[i];
9074 extern int foo;
9077 main ()
9079 return use_ascii (foo) == use_ebcdic (foo);
9081 return 0;
9083 _ACEOF
9084 if ac_fn_cxx_try_compile "$LINENO"; then :
9085 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9086 ac_cv_c_bigendian=yes
9088 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9089 if test "$ac_cv_c_bigendian" = unknown; then
9090 ac_cv_c_bigendian=no
9091 else
9092 # finding both strings is unlikely to happen, but who knows?
9093 ac_cv_c_bigendian=unknown
9097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9098 else
9099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9100 /* end confdefs.h. */
9101 $ac_includes_default
9103 main ()
9106 /* Are we little or big endian? From Harbison&Steele. */
9107 union
9109 long int l;
9110 char c[sizeof (long int)];
9111 } u;
9112 u.l = 1;
9113 return u.c[sizeof (long int) - 1] == 1;
9116 return 0;
9118 _ACEOF
9119 if ac_fn_cxx_try_run "$LINENO"; then :
9120 ac_cv_c_bigendian=no
9121 else
9122 ac_cv_c_bigendian=yes
9124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9125 conftest.$ac_objext conftest.beam conftest.$ac_ext
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9131 $as_echo "$ac_cv_c_bigendian" >&6; }
9132 case $ac_cv_c_bigendian in #(
9133 yes)
9134 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9135 ;; #(
9137 ;; #(
9138 universal)
9140 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9142 ;; #(
9144 as_fn_error "unknown endianness
9145 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9146 esac
9149 # ----------------------
9150 # Checks for C++ headers
9151 # ----------------------
9153 ac_ext=cpp
9154 ac_cpp='$CXXCPP $CPPFLAGS'
9155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9159 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9160 if test -z "$CXXCPP"; then
9161 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9162 $as_echo_n "(cached) " >&6
9163 else
9164 # Double quotes because CXXCPP needs to be expanded
9165 for CXXCPP in "$CXX -E" "/lib/cpp"
9167 ac_preproc_ok=false
9168 for ac_cxx_preproc_warn_flag in '' yes
9170 # Use a header file that comes with gcc, so configuring glibc
9171 # with a fresh cross-compiler works.
9172 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9173 # <limits.h> exists even on freestanding compilers.
9174 # On the NeXT, cc -E runs the code through the compiler's parser,
9175 # not just through cpp. "Syntax error" is here to catch this case.
9176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9177 /* end confdefs.h. */
9178 #ifdef __STDC__
9179 # include <limits.h>
9180 #else
9181 # include <assert.h>
9182 #endif
9183 Syntax error
9184 _ACEOF
9185 if ac_fn_cxx_try_cpp "$LINENO"; then :
9187 else
9188 # Broken: fails on valid input.
9189 continue
9191 rm -f conftest.err conftest.$ac_ext
9193 # OK, works on sane cases. Now check whether nonexistent headers
9194 # can be detected and how.
9195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196 /* end confdefs.h. */
9197 #include <ac_nonexistent.h>
9198 _ACEOF
9199 if ac_fn_cxx_try_cpp "$LINENO"; then :
9200 # Broken: success on invalid input.
9201 continue
9202 else
9203 # Passes both tests.
9204 ac_preproc_ok=:
9205 break
9207 rm -f conftest.err conftest.$ac_ext
9209 done
9210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9211 rm -f conftest.err conftest.$ac_ext
9212 if $ac_preproc_ok; then :
9213 break
9216 done
9217 ac_cv_prog_CXXCPP=$CXXCPP
9220 CXXCPP=$ac_cv_prog_CXXCPP
9221 else
9222 ac_cv_prog_CXXCPP=$CXXCPP
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9225 $as_echo "$CXXCPP" >&6; }
9226 ac_preproc_ok=false
9227 for ac_cxx_preproc_warn_flag in '' yes
9229 # Use a header file that comes with gcc, so configuring glibc
9230 # with a fresh cross-compiler works.
9231 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9232 # <limits.h> exists even on freestanding compilers.
9233 # On the NeXT, cc -E runs the code through the compiler's parser,
9234 # not just through cpp. "Syntax error" is here to catch this case.
9235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9236 /* end confdefs.h. */
9237 #ifdef __STDC__
9238 # include <limits.h>
9239 #else
9240 # include <assert.h>
9241 #endif
9242 Syntax error
9243 _ACEOF
9244 if ac_fn_cxx_try_cpp "$LINENO"; then :
9246 else
9247 # Broken: fails on valid input.
9248 continue
9250 rm -f conftest.err conftest.$ac_ext
9252 # OK, works on sane cases. Now check whether nonexistent headers
9253 # can be detected and how.
9254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9255 /* end confdefs.h. */
9256 #include <ac_nonexistent.h>
9257 _ACEOF
9258 if ac_fn_cxx_try_cpp "$LINENO"; then :
9259 # Broken: success on invalid input.
9260 continue
9261 else
9262 # Passes both tests.
9263 ac_preproc_ok=:
9264 break
9266 rm -f conftest.err conftest.$ac_ext
9268 done
9269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9270 rm -f conftest.err conftest.$ac_ext
9271 if $ac_preproc_ok; then :
9273 else
9274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9277 See \`config.log' for more details." >&5
9278 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9279 See \`config.log' for more details." >&2;}; }
9282 ac_ext=cpp
9283 ac_cpp='$CXXCPP $CPPFLAGS'
9284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9289 for ac_header in unordered_map
9290 do :
9291 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9292 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9293 cat >>confdefs.h <<_ACEOF
9294 #define HAVE_UNORDERED_MAP 1
9295 _ACEOF
9298 done
9300 for ac_header in tr1/unordered_map
9301 do :
9302 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9303 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9304 cat >>confdefs.h <<_ACEOF
9305 #define HAVE_TR1_UNORDERED_MAP 1
9306 _ACEOF
9309 done
9311 for ac_header in ext/hash_map
9312 do :
9313 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9314 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9315 cat >>confdefs.h <<_ACEOF
9316 #define HAVE_EXT_HASH_MAP 1
9317 _ACEOF
9320 done
9323 # --------
9324 # Dependency checking.
9325 # --------
9327 rm -rf .tst 2>/dev/null
9328 mkdir .tst 2>/dev/null
9329 if test -d .tst; then
9330 am__leading_dot=.
9331 else
9332 am__leading_dot=_
9334 rmdir .tst 2>/dev/null
9336 DEPDIR="${am__leading_dot}deps"
9338 ac_config_commands="$ac_config_commands depdir"
9341 ac_config_commands="$ac_config_commands gccdepdir"
9344 depcc="$CXX" am_compiler_list=
9346 am_depcomp=$ac_aux_dir/depcomp
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9348 $as_echo_n "checking dependency style of $depcc... " >&6; }
9349 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9350 $as_echo_n "(cached) " >&6
9351 else
9352 if test -f "$am_depcomp"; then
9353 # We make a subdir and do the tests there. Otherwise we can end up
9354 # making bogus files that we don't know about and never remove. For
9355 # instance it was reported that on HP-UX the gcc test will end up
9356 # making a dummy file named `D' -- because `-MD' means `put the output
9357 # in D'.
9358 mkdir conftest.dir
9359 # Copy depcomp to subdir because otherwise we won't find it if we're
9360 # using a relative directory.
9361 cp "$am_depcomp" conftest.dir
9362 cd conftest.dir
9363 # We will build objects and dependencies in a subdirectory because
9364 # it helps to detect inapplicable dependency modes. For instance
9365 # both Tru64's cc and ICC support -MD to output dependencies as a
9366 # side effect of compilation, but ICC will put the dependencies in
9367 # the current directory while Tru64 will put them in the object
9368 # directory.
9369 mkdir sub
9371 am_cv_CXX_dependencies_compiler_type=none
9372 if test "$am_compiler_list" = ""; then
9373 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9375 for depmode in $am_compiler_list; do
9376 if test $depmode = none; then break; fi
9378 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9379 # Setup a source with many dependencies, because some compilers
9380 # like to wrap large dependency lists on column 80 (with \), and
9381 # we should not choose a depcomp mode which is confused by this.
9383 # We need to recreate these files for each test, as the compiler may
9384 # overwrite some of them when testing with obscure command lines.
9385 # This happens at least with the AIX C compiler.
9386 : > sub/conftest.c
9387 for i in 1 2 3 4 5 6; do
9388 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9389 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9390 # Solaris 8's {/usr,}/bin/sh.
9391 touch sub/conftst$i.h
9392 done
9393 echo "include sub/conftest.Po" > confmf
9395 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9396 # mode. It turns out that the SunPro C++ compiler does not properly
9397 # handle `-M -o', and we need to detect this.
9398 depcmd="depmode=$depmode \
9399 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9400 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9401 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9402 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9403 if env $depcmd > conftest.err 2>&1 &&
9404 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9405 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9406 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9407 # icc doesn't choke on unknown options, it will just issue warnings
9408 # or remarks (even with -Werror). So we grep stderr for any message
9409 # that says an option was ignored or not supported.
9410 # When given -MP, icc 7.0 and 7.1 complain thusly:
9411 # icc: Command line warning: ignoring option '-M'; no argument required
9412 # The diagnosis changed in icc 8.0:
9413 # icc: Command line remark: option '-MP' not supported
9414 if (grep 'ignoring option' conftest.err ||
9415 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9416 am_cv_CXX_dependencies_compiler_type=$depmode
9417 $as_echo "$as_me:$LINENO: success" >&5
9418 break
9421 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9422 sed -e 's/^/| /' < conftest.err >&5
9423 done
9425 cd ..
9426 rm -rf conftest.dir
9427 else
9428 am_cv_CXX_dependencies_compiler_type=none
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9433 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9434 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9435 then as_fn_error "no usable dependency style found" "$LINENO" 5
9436 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9441 # --------
9442 # UNSORTED
9443 # --------
9446 # These libraries may be used by collect2.
9447 # We may need a special search path to get them linked.
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9449 $as_echo_n "checking for collect2 libraries... " >&6; }
9450 if test "${gcc_cv_collect2_libs+set}" = set; then :
9451 $as_echo_n "(cached) " >&6
9452 else
9453 save_LIBS="$LIBS"
9454 for libs in '' -lld -lmld \
9455 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9456 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9458 LIBS="$libs"
9459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9460 /* end confdefs.h. */
9462 /* Override any GCC internal prototype to avoid an error.
9463 Use char because int might match the return type of a GCC
9464 builtin and then its argument prototype would still apply. */
9465 #ifdef __cplusplus
9466 extern "C"
9467 #endif
9468 char ldopen ();
9470 main ()
9472 return ldopen ();
9474 return 0;
9476 _ACEOF
9477 if ac_fn_cxx_try_link "$LINENO"; then :
9478 gcc_cv_collect2_libs="$libs"; break
9480 rm -f core conftest.err conftest.$ac_objext \
9481 conftest$ac_exeext conftest.$ac_ext
9482 done
9483 LIBS="$save_LIBS"
9484 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9487 $as_echo "$gcc_cv_collect2_libs" >&6; }
9488 case $gcc_cv_collect2_libs in
9489 "none required") ;;
9490 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9491 esac
9494 # When building Ada code on Alpha, we need exc_resume which is usually in
9495 # -lexc. So test for it.
9496 save_LIBS="$LIBS"
9497 LIBS=
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9499 $as_echo_n "checking for library containing exc_resume... " >&6; }
9500 if test "${ac_cv_search_exc_resume+set}" = set; then :
9501 $as_echo_n "(cached) " >&6
9502 else
9503 ac_func_search_save_LIBS=$LIBS
9504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9505 /* end confdefs.h. */
9507 /* Override any GCC internal prototype to avoid an error.
9508 Use char because int might match the return type of a GCC
9509 builtin and then its argument prototype would still apply. */
9510 #ifdef __cplusplus
9511 extern "C"
9512 #endif
9513 char exc_resume ();
9515 main ()
9517 return exc_resume ();
9519 return 0;
9521 _ACEOF
9522 for ac_lib in '' exc; do
9523 if test -z "$ac_lib"; then
9524 ac_res="none required"
9525 else
9526 ac_res=-l$ac_lib
9527 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9529 if ac_fn_cxx_try_link "$LINENO"; then :
9530 ac_cv_search_exc_resume=$ac_res
9532 rm -f core conftest.err conftest.$ac_objext \
9533 conftest$ac_exeext
9534 if test "${ac_cv_search_exc_resume+set}" = set; then :
9535 break
9537 done
9538 if test "${ac_cv_search_exc_resume+set}" = set; then :
9540 else
9541 ac_cv_search_exc_resume=no
9543 rm conftest.$ac_ext
9544 LIBS=$ac_func_search_save_LIBS
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9547 $as_echo "$ac_cv_search_exc_resume" >&6; }
9548 ac_res=$ac_cv_search_exc_resume
9549 if test "$ac_res" != no; then :
9550 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9554 GNAT_LIBEXC="$LIBS"
9555 LIBS="$save_LIBS"
9558 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9559 save_LIBS="$LIBS"
9560 LIBS=
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9562 $as_echo_n "checking for library containing kstat_open... " >&6; }
9563 if test "${ac_cv_search_kstat_open+set}" = set; then :
9564 $as_echo_n "(cached) " >&6
9565 else
9566 ac_func_search_save_LIBS=$LIBS
9567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9568 /* end confdefs.h. */
9570 /* Override any GCC internal prototype to avoid an error.
9571 Use char because int might match the return type of a GCC
9572 builtin and then its argument prototype would still apply. */
9573 #ifdef __cplusplus
9574 extern "C"
9575 #endif
9576 char kstat_open ();
9578 main ()
9580 return kstat_open ();
9582 return 0;
9584 _ACEOF
9585 for ac_lib in '' kstat; do
9586 if test -z "$ac_lib"; then
9587 ac_res="none required"
9588 else
9589 ac_res=-l$ac_lib
9590 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9592 if ac_fn_cxx_try_link "$LINENO"; then :
9593 ac_cv_search_kstat_open=$ac_res
9595 rm -f core conftest.err conftest.$ac_objext \
9596 conftest$ac_exeext
9597 if test "${ac_cv_search_kstat_open+set}" = set; then :
9598 break
9600 done
9601 if test "${ac_cv_search_kstat_open+set}" = set; then :
9603 else
9604 ac_cv_search_kstat_open=no
9606 rm conftest.$ac_ext
9607 LIBS=$ac_func_search_save_LIBS
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9610 $as_echo "$ac_cv_search_kstat_open" >&6; }
9611 ac_res=$ac_cv_search_kstat_open
9612 if test "$ac_res" != no; then :
9613 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9617 EXTRA_GCC_LIBS="$LIBS"
9618 LIBS="$save_LIBS"
9621 # Some systems put ldexp and frexp in libm instead of libc; assume
9622 # they're both in the same place. jcf-dump needs them.
9623 save_LIBS="$LIBS"
9624 LIBS=
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9626 $as_echo_n "checking for library containing ldexp... " >&6; }
9627 if test "${ac_cv_search_ldexp+set}" = set; then :
9628 $as_echo_n "(cached) " >&6
9629 else
9630 ac_func_search_save_LIBS=$LIBS
9631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9632 /* end confdefs.h. */
9634 /* Override any GCC internal prototype to avoid an error.
9635 Use char because int might match the return type of a GCC
9636 builtin and then its argument prototype would still apply. */
9637 #ifdef __cplusplus
9638 extern "C"
9639 #endif
9640 char ldexp ();
9642 main ()
9644 return ldexp ();
9646 return 0;
9648 _ACEOF
9649 for ac_lib in '' m; do
9650 if test -z "$ac_lib"; then
9651 ac_res="none required"
9652 else
9653 ac_res=-l$ac_lib
9654 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9656 if ac_fn_cxx_try_link "$LINENO"; then :
9657 ac_cv_search_ldexp=$ac_res
9659 rm -f core conftest.err conftest.$ac_objext \
9660 conftest$ac_exeext
9661 if test "${ac_cv_search_ldexp+set}" = set; then :
9662 break
9664 done
9665 if test "${ac_cv_search_ldexp+set}" = set; then :
9667 else
9668 ac_cv_search_ldexp=no
9670 rm conftest.$ac_ext
9671 LIBS=$ac_func_search_save_LIBS
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9674 $as_echo "$ac_cv_search_ldexp" >&6; }
9675 ac_res=$ac_cv_search_ldexp
9676 if test "$ac_res" != no; then :
9677 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9681 LDEXP_LIB="$LIBS"
9682 LIBS="$save_LIBS"
9685 # Use <inttypes.h> only if it exists,
9686 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9687 # PRId64
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9689 $as_echo_n "checking for inttypes.h... " >&6; }
9690 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9691 $as_echo_n "(cached) " >&6
9692 else
9693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9694 /* end confdefs.h. */
9695 #define __STDC_FORMAT_MACROS
9696 #include <sys/types.h>
9697 #include <inttypes.h>
9699 main ()
9701 intmax_t i = -1;
9702 #ifndef PRId64
9703 choke me
9704 #endif
9706 return 0;
9708 _ACEOF
9709 if ac_fn_cxx_try_compile "$LINENO"; then :
9710 gcc_cv_header_inttypes_h=yes
9711 else
9712 gcc_cv_header_inttypes_h=no
9714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9718 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9719 if test $gcc_cv_header_inttypes_h = yes; then
9721 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9727 for ac_func in times clock kill getrlimit setrlimit atoq \
9728 popen sysconf strsignal getrusage nl_langinfo \
9729 gettimeofday mbstowcs wcswidth mmap setlocale \
9730 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
9731 do :
9732 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9733 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9734 eval as_val=\$$as_ac_var
9735 if test "x$as_val" = x""yes; then :
9736 cat >>confdefs.h <<_ACEOF
9737 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9738 _ACEOF
9741 done
9744 if test x$ac_cv_func_mbstowcs = xyes; then
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9746 $as_echo_n "checking whether mbstowcs works... " >&6; }
9747 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9748 $as_echo_n "(cached) " >&6
9749 else
9750 if test "$cross_compiling" = yes; then :
9751 gcc_cv_func_mbstowcs_works=yes
9752 else
9753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754 /* end confdefs.h. */
9755 #include <stdlib.h>
9756 int main()
9758 mbstowcs(0, "", 0);
9759 return 0;
9761 _ACEOF
9762 if ac_fn_cxx_try_run "$LINENO"; then :
9763 gcc_cv_func_mbstowcs_works=yes
9764 else
9765 gcc_cv_func_mbstowcs_works=no
9767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9768 conftest.$ac_objext conftest.beam conftest.$ac_ext
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9773 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9774 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9776 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9781 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9782 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9784 else
9786 cat >>confdefs.h <<_ACEOF
9787 #define ssize_t int
9788 _ACEOF
9792 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9793 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9795 else
9797 cat >>confdefs.h <<_ACEOF
9798 #define caddr_t char *
9799 _ACEOF
9805 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9806 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9807 gcc_header_sys_mman_h=yes
9808 else
9809 gcc_header_sys_mman_h=no
9812 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9813 if test "x$ac_cv_func_mmap" = x""yes; then :
9814 gcc_func_mmap=yes
9815 else
9816 gcc_func_mmap=no
9819 if test "$gcc_header_sys_mman_h" != yes \
9820 || test "$gcc_func_mmap" != yes; then
9821 gcc_cv_func_mmap_file=no
9822 gcc_cv_func_mmap_dev_zero=no
9823 gcc_cv_func_mmap_anon=no
9824 else
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9826 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9827 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9828 $as_echo_n "(cached) " >&6
9829 else
9830 # Add a system to this blacklist if
9831 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9832 # memory area containing the same data that you'd get if you applied
9833 # read() to the same fd. The only system known to have a problem here
9834 # is VMS, where text files have record structure.
9835 case "$host_os" in
9836 *vms* | ultrix*)
9837 gcc_cv_func_mmap_file=no ;;
9839 gcc_cv_func_mmap_file=yes;;
9840 esac
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9843 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9845 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9846 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9847 $as_echo_n "(cached) " >&6
9848 else
9849 # Add a system to this blacklist if it has mmap() but /dev/zero
9850 # does not exist, or if mmapping /dev/zero does not give anonymous
9851 # zeroed pages with both the following properties:
9852 # 1. If you map N consecutive pages in with one call, and then
9853 # unmap any subset of those pages, the pages that were not
9854 # explicitly unmapped remain accessible.
9855 # 2. If you map two adjacent blocks of memory and then unmap them
9856 # both at once, they must both go away.
9857 # Systems known to be in this category are Windows (all variants),
9858 # VMS, and Darwin.
9859 case "$host_os" in
9860 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9861 gcc_cv_func_mmap_dev_zero=no ;;
9863 gcc_cv_func_mmap_dev_zero=yes;;
9864 esac
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9867 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9869 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9871 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9872 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9873 $as_echo_n "(cached) " >&6
9874 else
9875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9876 /* end confdefs.h. */
9877 #include <sys/types.h>
9878 #include <sys/mman.h>
9879 #include <unistd.h>
9881 #ifndef MAP_ANONYMOUS
9882 #define MAP_ANONYMOUS MAP_ANON
9883 #endif
9886 main ()
9888 int n = MAP_ANONYMOUS;
9890 return 0;
9892 _ACEOF
9893 if ac_fn_cxx_try_compile "$LINENO"; then :
9894 gcc_cv_decl_map_anon=yes
9895 else
9896 gcc_cv_decl_map_anon=no
9898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9901 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9903 if test $gcc_cv_decl_map_anon = no; then
9904 gcc_cv_func_mmap_anon=no
9905 else
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9907 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9908 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9909 $as_echo_n "(cached) " >&6
9910 else
9911 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9912 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9913 # doesn't give anonymous zeroed pages with the same properties listed
9914 # above for use of /dev/zero.
9915 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9916 case "$host_os" in
9917 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9918 gcc_cv_func_mmap_anon=no ;;
9920 gcc_cv_func_mmap_anon=yes;;
9921 esac
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9924 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9928 if test $gcc_cv_func_mmap_file = yes; then
9930 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9933 if test $gcc_cv_func_mmap_dev_zero = yes; then
9935 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9938 if test $gcc_cv_func_mmap_anon = yes; then
9940 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9945 case "${host}" in
9946 *-*-*vms*)
9947 # Under VMS, vfork works very differently than on Unix. The standard test
9948 # won't work, and it isn't easily adaptable. It makes more sense to
9949 # just force it.
9950 ac_cv_func_vfork_works=yes
9952 esac
9953 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9954 if test "x$ac_cv_type_pid_t" = x""yes; then :
9956 else
9958 cat >>confdefs.h <<_ACEOF
9959 #define pid_t int
9960 _ACEOF
9964 for ac_header in vfork.h
9965 do :
9966 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9967 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9968 cat >>confdefs.h <<_ACEOF
9969 #define HAVE_VFORK_H 1
9970 _ACEOF
9973 done
9975 for ac_func in fork vfork
9976 do :
9977 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9978 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9979 eval as_val=\$$as_ac_var
9980 if test "x$as_val" = x""yes; then :
9981 cat >>confdefs.h <<_ACEOF
9982 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9983 _ACEOF
9986 done
9988 if test "x$ac_cv_func_fork" = xyes; then
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9990 $as_echo_n "checking for working fork... " >&6; }
9991 if test "${ac_cv_func_fork_works+set}" = set; then :
9992 $as_echo_n "(cached) " >&6
9993 else
9994 if test "$cross_compiling" = yes; then :
9995 ac_cv_func_fork_works=cross
9996 else
9997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9998 /* end confdefs.h. */
9999 $ac_includes_default
10001 main ()
10004 /* By Ruediger Kuhlmann. */
10005 return fork () < 0;
10008 return 0;
10010 _ACEOF
10011 if ac_fn_cxx_try_run "$LINENO"; then :
10012 ac_cv_func_fork_works=yes
10013 else
10014 ac_cv_func_fork_works=no
10016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10017 conftest.$ac_objext conftest.beam conftest.$ac_ext
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10022 $as_echo "$ac_cv_func_fork_works" >&6; }
10024 else
10025 ac_cv_func_fork_works=$ac_cv_func_fork
10027 if test "x$ac_cv_func_fork_works" = xcross; then
10028 case $host in
10029 *-*-amigaos* | *-*-msdosdjgpp*)
10030 # Override, as these systems have only a dummy fork() stub
10031 ac_cv_func_fork_works=no
10034 ac_cv_func_fork_works=yes
10036 esac
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10038 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10040 ac_cv_func_vfork_works=$ac_cv_func_vfork
10041 if test "x$ac_cv_func_vfork" = xyes; then
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10043 $as_echo_n "checking for working vfork... " >&6; }
10044 if test "${ac_cv_func_vfork_works+set}" = set; then :
10045 $as_echo_n "(cached) " >&6
10046 else
10047 if test "$cross_compiling" = yes; then :
10048 ac_cv_func_vfork_works=cross
10049 else
10050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10051 /* end confdefs.h. */
10052 /* Thanks to Paul Eggert for this test. */
10053 $ac_includes_default
10054 #include <sys/wait.h>
10055 #ifdef HAVE_VFORK_H
10056 # include <vfork.h>
10057 #endif
10058 /* On some sparc systems, changes by the child to local and incoming
10059 argument registers are propagated back to the parent. The compiler
10060 is told about this with #include <vfork.h>, but some compilers
10061 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10062 static variable whose address is put into a register that is
10063 clobbered by the vfork. */
10064 static void
10065 #ifdef __cplusplus
10066 sparc_address_test (int arg)
10067 # else
10068 sparc_address_test (arg) int arg;
10069 #endif
10071 static pid_t child;
10072 if (!child) {
10073 child = vfork ();
10074 if (child < 0) {
10075 perror ("vfork");
10076 _exit(2);
10078 if (!child) {
10079 arg = getpid();
10080 write(-1, "", 0);
10081 _exit (arg);
10087 main ()
10089 pid_t parent = getpid ();
10090 pid_t child;
10092 sparc_address_test (0);
10094 child = vfork ();
10096 if (child == 0) {
10097 /* Here is another test for sparc vfork register problems. This
10098 test uses lots of local variables, at least as many local
10099 variables as main has allocated so far including compiler
10100 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10101 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10102 reuse the register of parent for one of the local variables,
10103 since it will think that parent can't possibly be used any more
10104 in this routine. Assigning to the local variable will thus
10105 munge parent in the parent process. */
10106 pid_t
10107 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10108 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10109 /* Convince the compiler that p..p7 are live; otherwise, it might
10110 use the same hardware register for all 8 local variables. */
10111 if (p != p1 || p != p2 || p != p3 || p != p4
10112 || p != p5 || p != p6 || p != p7)
10113 _exit(1);
10115 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10116 from child file descriptors. If the child closes a descriptor
10117 before it execs or exits, this munges the parent's descriptor
10118 as well. Test for this by closing stdout in the child. */
10119 _exit(close(fileno(stdout)) != 0);
10120 } else {
10121 int status;
10122 struct stat st;
10124 while (wait(&status) != child)
10126 return (
10127 /* Was there some problem with vforking? */
10128 child < 0
10130 /* Did the child fail? (This shouldn't happen.) */
10131 || status
10133 /* Did the vfork/compiler bug occur? */
10134 || parent != getpid()
10136 /* Did the file descriptor bug occur? */
10137 || fstat(fileno(stdout), &st) != 0
10141 _ACEOF
10142 if ac_fn_cxx_try_run "$LINENO"; then :
10143 ac_cv_func_vfork_works=yes
10144 else
10145 ac_cv_func_vfork_works=no
10147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10148 conftest.$ac_objext conftest.beam conftest.$ac_ext
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10153 $as_echo "$ac_cv_func_vfork_works" >&6; }
10156 if test "x$ac_cv_func_fork_works" = xcross; then
10157 ac_cv_func_vfork_works=$ac_cv_func_vfork
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10159 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10162 if test "x$ac_cv_func_vfork_works" = xyes; then
10164 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10166 else
10168 $as_echo "#define vfork fork" >>confdefs.h
10171 if test "x$ac_cv_func_fork_works" = xyes; then
10173 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10179 if test "X$prefix" = "XNONE"; then
10180 acl_final_prefix="$ac_default_prefix"
10181 else
10182 acl_final_prefix="$prefix"
10184 if test "X$exec_prefix" = "XNONE"; then
10185 acl_final_exec_prefix='${prefix}'
10186 else
10187 acl_final_exec_prefix="$exec_prefix"
10189 acl_save_prefix="$prefix"
10190 prefix="$acl_final_prefix"
10191 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10192 prefix="$acl_save_prefix"
10195 # Check whether --with-gnu-ld was given.
10196 if test "${with_gnu_ld+set}" = set; then :
10197 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10198 else
10199 with_gnu_ld=no
10202 # Prepare PATH_SEPARATOR.
10203 # The user is always right.
10204 if test "${PATH_SEPARATOR+set}" != set; then
10205 echo "#! /bin/sh" >conf$$.sh
10206 echo "exit 0" >>conf$$.sh
10207 chmod +x conf$$.sh
10208 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10209 PATH_SEPARATOR=';'
10210 else
10211 PATH_SEPARATOR=:
10213 rm -f conf$$.sh
10215 ac_prog=ld
10216 if test "$GCC" = yes; then
10217 # Check if gcc -print-prog-name=ld gives a path.
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10219 $as_echo_n "checking for ld used by GCC... " >&6; }
10220 case $host in
10221 *-*-mingw*)
10222 # gcc leaves a trailing carriage return which upsets mingw
10223 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10225 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10226 esac
10227 case $ac_prog in
10228 # Accept absolute paths.
10229 [\\/]* | [A-Za-z]:[\\/]*)
10230 re_direlt='/[^/][^/]*/\.\./'
10231 # Canonicalize the path of ld
10232 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10233 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10234 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10235 done
10236 test -z "$LD" && LD="$ac_prog"
10239 # If it fails, then pretend we aren't using GCC.
10240 ac_prog=ld
10243 # If it is relative, then search for the first ld in PATH.
10244 with_gnu_ld=unknown
10246 esac
10247 elif test "$with_gnu_ld" = yes; then
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10249 $as_echo_n "checking for GNU ld... " >&6; }
10250 else
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10252 $as_echo_n "checking for non-GNU ld... " >&6; }
10254 if test "${acl_cv_path_LD+set}" = set; then :
10255 $as_echo_n "(cached) " >&6
10256 else
10257 if test -z "$LD"; then
10258 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10259 for ac_dir in $PATH; do
10260 test -z "$ac_dir" && ac_dir=.
10261 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10262 acl_cv_path_LD="$ac_dir/$ac_prog"
10263 # Check to see if the program is GNU ld. I'd rather use --version,
10264 # but apparently some GNU ld's only accept -v.
10265 # Break only if it was the GNU/non-GNU ld that we prefer.
10266 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10267 test "$with_gnu_ld" != no && break
10268 else
10269 test "$with_gnu_ld" != yes && break
10272 done
10273 IFS="$ac_save_ifs"
10274 else
10275 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10279 LD="$acl_cv_path_LD"
10280 if test -n "$LD"; then
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10282 $as_echo "$LD" >&6; }
10283 else
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10285 $as_echo "no" >&6; }
10287 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10289 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10290 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10291 $as_echo_n "(cached) " >&6
10292 else
10293 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10294 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10295 acl_cv_prog_gnu_ld=yes
10296 else
10297 acl_cv_prog_gnu_ld=no
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10301 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10302 with_gnu_ld=$acl_cv_prog_gnu_ld
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10307 $as_echo_n "checking for shared library run path origin... " >&6; }
10308 if test "${acl_cv_rpath+set}" = set; then :
10309 $as_echo_n "(cached) " >&6
10310 else
10312 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10313 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10314 . ./conftest.sh
10315 rm -f ./conftest.sh
10316 acl_cv_rpath=done
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10320 $as_echo "$acl_cv_rpath" >&6; }
10321 wl="$acl_cv_wl"
10322 libext="$acl_cv_libext"
10323 shlibext="$acl_cv_shlibext"
10324 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10325 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10326 hardcode_direct="$acl_cv_hardcode_direct"
10327 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10328 # Check whether --enable-rpath was given.
10329 if test "${enable_rpath+set}" = set; then :
10330 enableval=$enable_rpath; :
10331 else
10332 enable_rpath=yes
10342 use_additional=yes
10344 acl_save_prefix="$prefix"
10345 prefix="$acl_final_prefix"
10346 acl_save_exec_prefix="$exec_prefix"
10347 exec_prefix="$acl_final_exec_prefix"
10349 eval additional_includedir=\"$includedir\"
10350 eval additional_libdir=\"$libdir\"
10352 exec_prefix="$acl_save_exec_prefix"
10353 prefix="$acl_save_prefix"
10356 # Check whether --with-libiconv-prefix was given.
10357 if test "${with_libiconv_prefix+set}" = set; then :
10358 withval=$with_libiconv_prefix;
10359 if test "X$withval" = "Xno"; then
10360 use_additional=no
10361 else
10362 if test "X$withval" = "X"; then
10364 acl_save_prefix="$prefix"
10365 prefix="$acl_final_prefix"
10366 acl_save_exec_prefix="$exec_prefix"
10367 exec_prefix="$acl_final_exec_prefix"
10369 eval additional_includedir=\"$includedir\"
10370 eval additional_libdir=\"$libdir\"
10372 exec_prefix="$acl_save_exec_prefix"
10373 prefix="$acl_save_prefix"
10375 else
10376 additional_includedir="$withval/include"
10377 additional_libdir="$withval/lib"
10383 LIBICONV=
10384 LTLIBICONV=
10385 INCICONV=
10386 rpathdirs=
10387 ltrpathdirs=
10388 names_already_handled=
10389 names_next_round='iconv '
10390 while test -n "$names_next_round"; do
10391 names_this_round="$names_next_round"
10392 names_next_round=
10393 for name in $names_this_round; do
10394 already_handled=
10395 for n in $names_already_handled; do
10396 if test "$n" = "$name"; then
10397 already_handled=yes
10398 break
10400 done
10401 if test -z "$already_handled"; then
10402 names_already_handled="$names_already_handled $name"
10403 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10404 eval value=\"\$HAVE_LIB$uppername\"
10405 if test -n "$value"; then
10406 if test "$value" = yes; then
10407 eval value=\"\$LIB$uppername\"
10408 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10409 eval value=\"\$LTLIB$uppername\"
10410 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10411 else
10414 else
10415 found_dir=
10416 found_la=
10417 found_so=
10418 found_a=
10419 if test $use_additional = yes; then
10420 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10421 found_dir="$additional_libdir"
10422 found_so="$additional_libdir/lib$name.$shlibext"
10423 if test -f "$additional_libdir/lib$name.la"; then
10424 found_la="$additional_libdir/lib$name.la"
10426 else
10427 if test -f "$additional_libdir/lib$name.$libext"; then
10428 found_dir="$additional_libdir"
10429 found_a="$additional_libdir/lib$name.$libext"
10430 if test -f "$additional_libdir/lib$name.la"; then
10431 found_la="$additional_libdir/lib$name.la"
10436 if test "X$found_dir" = "X"; then
10437 for x in $LDFLAGS $LTLIBICONV; do
10439 acl_save_prefix="$prefix"
10440 prefix="$acl_final_prefix"
10441 acl_save_exec_prefix="$exec_prefix"
10442 exec_prefix="$acl_final_exec_prefix"
10443 eval x=\"$x\"
10444 exec_prefix="$acl_save_exec_prefix"
10445 prefix="$acl_save_prefix"
10447 case "$x" in
10448 -L*)
10449 dir=`echo "X$x" | sed -e 's/^X-L//'`
10450 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10451 found_dir="$dir"
10452 found_so="$dir/lib$name.$shlibext"
10453 if test -f "$dir/lib$name.la"; then
10454 found_la="$dir/lib$name.la"
10456 else
10457 if test -f "$dir/lib$name.$libext"; then
10458 found_dir="$dir"
10459 found_a="$dir/lib$name.$libext"
10460 if test -f "$dir/lib$name.la"; then
10461 found_la="$dir/lib$name.la"
10466 esac
10467 if test "X$found_dir" != "X"; then
10468 break
10470 done
10472 if test "X$found_dir" != "X"; then
10473 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10474 if test "X$found_so" != "X"; then
10475 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10476 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10477 else
10478 haveit=
10479 for x in $ltrpathdirs; do
10480 if test "X$x" = "X$found_dir"; then
10481 haveit=yes
10482 break
10484 done
10485 if test -z "$haveit"; then
10486 ltrpathdirs="$ltrpathdirs $found_dir"
10488 if test "$hardcode_direct" = yes; then
10489 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10490 else
10491 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10492 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10493 haveit=
10494 for x in $rpathdirs; do
10495 if test "X$x" = "X$found_dir"; then
10496 haveit=yes
10497 break
10499 done
10500 if test -z "$haveit"; then
10501 rpathdirs="$rpathdirs $found_dir"
10503 else
10504 haveit=
10505 for x in $LDFLAGS $LIBICONV; do
10507 acl_save_prefix="$prefix"
10508 prefix="$acl_final_prefix"
10509 acl_save_exec_prefix="$exec_prefix"
10510 exec_prefix="$acl_final_exec_prefix"
10511 eval x=\"$x\"
10512 exec_prefix="$acl_save_exec_prefix"
10513 prefix="$acl_save_prefix"
10515 if test "X$x" = "X-L$found_dir"; then
10516 haveit=yes
10517 break
10519 done
10520 if test -z "$haveit"; then
10521 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10523 if test "$hardcode_minus_L" != no; then
10524 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10525 else
10526 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10531 else
10532 if test "X$found_a" != "X"; then
10533 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10534 else
10535 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10538 additional_includedir=
10539 case "$found_dir" in
10540 */lib | */lib/)
10541 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10542 additional_includedir="$basedir/include"
10544 esac
10545 if test "X$additional_includedir" != "X"; then
10546 if test "X$additional_includedir" != "X/usr/include"; then
10547 haveit=
10548 if test "X$additional_includedir" = "X/usr/local/include"; then
10549 if test -n "$GCC"; then
10550 case $host_os in
10551 linux*) haveit=yes;;
10552 esac
10555 if test -z "$haveit"; then
10556 for x in $CPPFLAGS $INCICONV; do
10558 acl_save_prefix="$prefix"
10559 prefix="$acl_final_prefix"
10560 acl_save_exec_prefix="$exec_prefix"
10561 exec_prefix="$acl_final_exec_prefix"
10562 eval x=\"$x\"
10563 exec_prefix="$acl_save_exec_prefix"
10564 prefix="$acl_save_prefix"
10566 if test "X$x" = "X-I$additional_includedir"; then
10567 haveit=yes
10568 break
10570 done
10571 if test -z "$haveit"; then
10572 if test -d "$additional_includedir"; then
10573 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10579 if test -n "$found_la"; then
10580 save_libdir="$libdir"
10581 case "$found_la" in
10582 */* | *\\*) . "$found_la" ;;
10583 *) . "./$found_la" ;;
10584 esac
10585 libdir="$save_libdir"
10586 for dep in $dependency_libs; do
10587 case "$dep" in
10588 -L*)
10589 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10590 if test "X$additional_libdir" != "X/usr/lib"; then
10591 haveit=
10592 if test "X$additional_libdir" = "X/usr/local/lib"; then
10593 if test -n "$GCC"; then
10594 case $host_os in
10595 linux*) haveit=yes;;
10596 esac
10599 if test -z "$haveit"; then
10600 haveit=
10601 for x in $LDFLAGS $LIBICONV; do
10603 acl_save_prefix="$prefix"
10604 prefix="$acl_final_prefix"
10605 acl_save_exec_prefix="$exec_prefix"
10606 exec_prefix="$acl_final_exec_prefix"
10607 eval x=\"$x\"
10608 exec_prefix="$acl_save_exec_prefix"
10609 prefix="$acl_save_prefix"
10611 if test "X$x" = "X-L$additional_libdir"; then
10612 haveit=yes
10613 break
10615 done
10616 if test -z "$haveit"; then
10617 if test -d "$additional_libdir"; then
10618 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10621 haveit=
10622 for x in $LDFLAGS $LTLIBICONV; do
10624 acl_save_prefix="$prefix"
10625 prefix="$acl_final_prefix"
10626 acl_save_exec_prefix="$exec_prefix"
10627 exec_prefix="$acl_final_exec_prefix"
10628 eval x=\"$x\"
10629 exec_prefix="$acl_save_exec_prefix"
10630 prefix="$acl_save_prefix"
10632 if test "X$x" = "X-L$additional_libdir"; then
10633 haveit=yes
10634 break
10636 done
10637 if test -z "$haveit"; then
10638 if test -d "$additional_libdir"; then
10639 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10645 -R*)
10646 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10647 if test "$enable_rpath" != no; then
10648 haveit=
10649 for x in $rpathdirs; do
10650 if test "X$x" = "X$dir"; then
10651 haveit=yes
10652 break
10654 done
10655 if test -z "$haveit"; then
10656 rpathdirs="$rpathdirs $dir"
10658 haveit=
10659 for x in $ltrpathdirs; do
10660 if test "X$x" = "X$dir"; then
10661 haveit=yes
10662 break
10664 done
10665 if test -z "$haveit"; then
10666 ltrpathdirs="$ltrpathdirs $dir"
10670 -l*)
10671 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10673 *.la)
10674 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10677 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10678 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10680 esac
10681 done
10683 else
10684 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10685 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10689 done
10690 done
10691 if test "X$rpathdirs" != "X"; then
10692 if test -n "$hardcode_libdir_separator"; then
10693 alldirs=
10694 for found_dir in $rpathdirs; do
10695 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10696 done
10697 acl_save_libdir="$libdir"
10698 libdir="$alldirs"
10699 eval flag=\"$hardcode_libdir_flag_spec\"
10700 libdir="$acl_save_libdir"
10701 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10702 else
10703 for found_dir in $rpathdirs; do
10704 acl_save_libdir="$libdir"
10705 libdir="$found_dir"
10706 eval flag=\"$hardcode_libdir_flag_spec\"
10707 libdir="$acl_save_libdir"
10708 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10709 done
10712 if test "X$ltrpathdirs" != "X"; then
10713 for found_dir in $ltrpathdirs; do
10714 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10715 done
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10725 $as_echo_n "checking for iconv... " >&6; }
10726 if test "${am_cv_func_iconv+set}" = set; then :
10727 $as_echo_n "(cached) " >&6
10728 else
10730 am_cv_func_iconv="no, consider installing GNU libiconv"
10731 am_cv_lib_iconv=no
10732 am_save_CPPFLAGS="$CPPFLAGS"
10733 CPPFLAGS="$CPPFLAGS $INCICONV"
10734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10735 /* end confdefs.h. */
10736 #include <stdlib.h>
10737 #include <iconv.h>
10739 main ()
10741 iconv_t cd = iconv_open("","");
10742 iconv(cd,NULL,NULL,NULL,NULL);
10743 iconv_close(cd);
10745 return 0;
10747 _ACEOF
10748 if ac_fn_cxx_try_link "$LINENO"; then :
10749 am_cv_func_iconv=yes
10751 rm -f core conftest.err conftest.$ac_objext \
10752 conftest$ac_exeext conftest.$ac_ext
10753 CPPFLAGS="$am_save_CPPFLAGS"
10755 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10756 for _libs in .libs _libs; do
10757 am_save_CPPFLAGS="$CPPFLAGS"
10758 am_save_LIBS="$LIBS"
10759 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10760 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10762 /* end confdefs.h. */
10763 #include <stdlib.h>
10764 #include <iconv.h>
10766 main ()
10768 iconv_t cd = iconv_open("","");
10769 iconv(cd,NULL,NULL,NULL,NULL);
10770 iconv_close(cd);
10772 return 0;
10774 _ACEOF
10775 if ac_fn_cxx_try_link "$LINENO"; then :
10776 INCICONV="-I../libiconv/include"
10777 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10778 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10779 am_cv_lib_iconv=yes
10780 am_cv_func_iconv=yes
10782 rm -f core conftest.err conftest.$ac_objext \
10783 conftest$ac_exeext conftest.$ac_ext
10784 CPPFLAGS="$am_save_CPPFLAGS"
10785 LIBS="$am_save_LIBS"
10786 if test "$am_cv_func_iconv" = "yes"; then
10787 break
10789 done
10792 if test "$am_cv_func_iconv" != yes; then
10793 am_save_CPPFLAGS="$CPPFLAGS"
10794 am_save_LIBS="$LIBS"
10795 CPPFLAGS="$LIBS $INCICONV"
10796 LIBS="$LIBS $LIBICONV"
10797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10798 /* end confdefs.h. */
10799 #include <stdlib.h>
10800 #include <iconv.h>
10802 main ()
10804 iconv_t cd = iconv_open("","");
10805 iconv(cd,NULL,NULL,NULL,NULL);
10806 iconv_close(cd);
10808 return 0;
10810 _ACEOF
10811 if ac_fn_cxx_try_link "$LINENO"; then :
10812 am_cv_lib_iconv=yes
10813 am_cv_func_iconv=yes
10815 rm -f core conftest.err conftest.$ac_objext \
10816 conftest$ac_exeext conftest.$ac_ext
10817 CPPFLAGS="$am_save_CPPFLAGS"
10818 LIBS="$am_save_LIBS"
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10823 $as_echo "$am_cv_func_iconv" >&6; }
10824 if test "$am_cv_func_iconv" = yes; then
10826 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10829 if test "$am_cv_lib_iconv" = yes; then
10831 for element in $INCICONV; do
10832 haveit=
10833 for x in $CPPFLAGS; do
10835 acl_save_prefix="$prefix"
10836 prefix="$acl_final_prefix"
10837 acl_save_exec_prefix="$exec_prefix"
10838 exec_prefix="$acl_final_exec_prefix"
10839 eval x=\"$x\"
10840 exec_prefix="$acl_save_exec_prefix"
10841 prefix="$acl_save_prefix"
10843 if test "X$x" = "X$element"; then
10844 haveit=yes
10845 break
10847 done
10848 if test -z "$haveit"; then
10849 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10851 done
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10854 $as_echo_n "checking how to link with libiconv... " >&6; }
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10856 $as_echo "$LIBICONV" >&6; }
10857 else
10858 LIBICONV=
10859 LTLIBICONV=
10864 if test "$am_cv_func_iconv" = yes; then
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10866 $as_echo_n "checking for iconv declaration... " >&6; }
10867 if test "${am_cv_proto_iconv+set}" = set; then :
10868 $as_echo_n "(cached) " >&6
10869 else
10871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10872 /* end confdefs.h. */
10874 #include <stdlib.h>
10875 #include <iconv.h>
10876 extern
10877 #ifdef __cplusplus
10879 #endif
10880 #if defined(__STDC__) || defined(__cplusplus)
10881 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10882 #else
10883 size_t iconv();
10884 #endif
10887 main ()
10891 return 0;
10893 _ACEOF
10894 if ac_fn_cxx_try_compile "$LINENO"; then :
10895 am_cv_proto_iconv_arg1=""
10896 else
10897 am_cv_proto_iconv_arg1="const"
10899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10900 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);"
10903 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10905 }$am_cv_proto_iconv" >&5
10906 $as_echo "${ac_t:-
10907 }$am_cv_proto_iconv" >&6; }
10909 cat >>confdefs.h <<_ACEOF
10910 #define ICONV_CONST $am_cv_proto_iconv_arg1
10911 _ACEOF
10916 # Until we have in-tree GNU iconv:
10917 LIBICONV_DEP=
10918 if test -f "$LTLIBICONV"; then
10919 LIBICONV_DEP=$LTLIBICONV
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10925 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10926 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10927 $as_echo_n "(cached) " >&6
10928 else
10929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10930 /* end confdefs.h. */
10931 #include <locale.h>
10933 main ()
10935 return LC_MESSAGES
10937 return 0;
10939 _ACEOF
10940 if ac_fn_cxx_try_link "$LINENO"; then :
10941 am_cv_val_LC_MESSAGES=yes
10942 else
10943 am_cv_val_LC_MESSAGES=no
10945 rm -f core conftest.err conftest.$ac_objext \
10946 conftest$ac_exeext conftest.$ac_ext
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10949 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10950 if test $am_cv_val_LC_MESSAGES = yes; then
10952 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10959 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10960 if test "${am_cv_langinfo_codeset+set}" = set; then :
10961 $as_echo_n "(cached) " >&6
10962 else
10963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10964 /* end confdefs.h. */
10965 #include <langinfo.h>
10967 main ()
10969 char* cs = nl_langinfo(CODESET);
10971 return 0;
10973 _ACEOF
10974 if ac_fn_cxx_try_link "$LINENO"; then :
10975 am_cv_langinfo_codeset=yes
10976 else
10977 am_cv_langinfo_codeset=no
10979 rm -f core conftest.err conftest.$ac_objext \
10980 conftest$ac_exeext conftest.$ac_ext
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10984 $as_echo "$am_cv_langinfo_codeset" >&6; }
10985 if test $am_cv_langinfo_codeset = yes; then
10987 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10992 # We will need to find libiberty.h and ansidecl.h
10993 saved_CFLAGS="$CFLAGS"
10994 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10995 saved_CXXFLAGS="$CXXFLAGS"
10996 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10998 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10999 # normal autoconf function for these. But force definition of
11000 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11001 # basename handling in libiberty.h.
11002 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
11003 #undef HAVE_DECL_BASENAME
11004 #define HAVE_DECL_BASENAME 1
11005 #include \"ansidecl.h\"
11006 #include \"system.h\"
11008 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
11009 ac_have_decl=1
11010 else
11011 ac_have_decl=0
11014 cat >>confdefs.h <<_ACEOF
11015 #define HAVE_DECL_BASENAME $ac_have_decl
11016 _ACEOF
11017 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
11018 #undef HAVE_DECL_BASENAME
11019 #define HAVE_DECL_BASENAME 1
11020 #include \"ansidecl.h\"
11021 #include \"system.h\"
11023 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
11024 ac_have_decl=1
11025 else
11026 ac_have_decl=0
11029 cat >>confdefs.h <<_ACEOF
11030 #define HAVE_DECL_STRSTR $ac_have_decl
11031 _ACEOF
11034 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11035 madvise stpcpy strnlen strsignal strverscmp \
11036 strtol strtoul strtoll strtoull setenv unsetenv \
11037 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11038 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
11040 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11042 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11043 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11044 $as_echo_n "(cached) " >&6
11045 else
11046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11047 /* end confdefs.h. */
11048 #undef $ac_tr_decl
11049 #define $ac_tr_decl 1
11051 #include "ansidecl.h"
11052 #include "system.h"
11055 main ()
11057 #ifndef $ac_func
11058 char *(*pfn) = (char *(*)) $ac_func ;
11059 #endif
11061 return 0;
11063 _ACEOF
11064 if ac_fn_cxx_try_compile "$LINENO"; then :
11065 eval "gcc_cv_have_decl_$ac_func=yes"
11066 else
11067 eval "gcc_cv_have_decl_$ac_func=no"
11069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11072 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11074 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11075 #define $ac_tr_decl 1
11076 _ACEOF
11078 else
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11081 #define $ac_tr_decl 0
11082 _ACEOF
11086 done
11089 for ac_func in getrlimit setrlimit getrusage
11091 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11093 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11094 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11095 $as_echo_n "(cached) " >&6
11096 else
11097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11098 /* end confdefs.h. */
11099 #undef $ac_tr_decl
11100 #define $ac_tr_decl 1
11102 #include "ansidecl.h"
11103 #include "system.h"
11104 #ifdef HAVE_SYS_RESOURCE_H
11105 #include <sys/resource.h>
11106 #endif
11110 main ()
11112 #ifndef $ac_func
11113 char *(*pfn) = (char *(*)) $ac_func ;
11114 #endif
11116 return 0;
11118 _ACEOF
11119 if ac_fn_cxx_try_compile "$LINENO"; then :
11120 eval "gcc_cv_have_decl_$ac_func=yes"
11121 else
11122 eval "gcc_cv_have_decl_$ac_func=no"
11124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11127 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11129 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11130 #define $ac_tr_decl 1
11131 _ACEOF
11133 else
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11135 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11136 #define $ac_tr_decl 0
11137 _ACEOF
11141 done
11144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11147 #include "ansidecl.h"
11148 #include "system.h"
11149 #ifdef HAVE_SYS_RESOURCE_H
11150 #include <sys/resource.h>
11151 #endif
11154 main ()
11156 rlim_t l = 0;
11158 return 0;
11160 _ACEOF
11161 if ac_fn_cxx_try_compile "$LINENO"; then :
11163 else
11165 $as_echo "#define rlim_t long" >>confdefs.h
11168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11170 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11171 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11172 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11173 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11174 for ac_func in ldgetname
11176 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11178 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11179 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11180 $as_echo_n "(cached) " >&6
11181 else
11182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11183 /* end confdefs.h. */
11184 #undef $ac_tr_decl
11185 #define $ac_tr_decl 1
11187 #include "ansidecl.h"
11188 #include "system.h"
11189 #ifdef HAVE_LDFCN_H
11190 #undef FREAD
11191 #undef FWRITE
11192 #include <ldfcn.h>
11193 #endif
11197 main ()
11199 #ifndef $ac_func
11200 char *(*pfn) = (char *(*)) $ac_func ;
11201 #endif
11203 return 0;
11205 _ACEOF
11206 if ac_fn_cxx_try_compile "$LINENO"; then :
11207 eval "gcc_cv_have_decl_$ac_func=yes"
11208 else
11209 eval "gcc_cv_have_decl_$ac_func=no"
11211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11214 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11216 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11217 #define $ac_tr_decl 1
11218 _ACEOF
11220 else
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11222 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11223 #define $ac_tr_decl 0
11224 _ACEOF
11228 done
11231 for ac_func in times
11233 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11235 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11236 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11237 $as_echo_n "(cached) " >&6
11238 else
11239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11240 /* end confdefs.h. */
11241 #undef $ac_tr_decl
11242 #define $ac_tr_decl 1
11244 #include "ansidecl.h"
11245 #include "system.h"
11246 #ifdef HAVE_SYS_TIMES_H
11247 #include <sys/times.h>
11248 #endif
11252 main ()
11254 #ifndef $ac_func
11255 char *(*pfn) = (char *(*)) $ac_func ;
11256 #endif
11258 return 0;
11260 _ACEOF
11261 if ac_fn_cxx_try_compile "$LINENO"; then :
11262 eval "gcc_cv_have_decl_$ac_func=yes"
11263 else
11264 eval "gcc_cv_have_decl_$ac_func=no"
11266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11269 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11271 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11272 #define $ac_tr_decl 1
11273 _ACEOF
11275 else
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11277 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11278 #define $ac_tr_decl 0
11279 _ACEOF
11283 done
11286 for ac_func in sigaltstack
11288 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11290 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11291 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11292 $as_echo_n "(cached) " >&6
11293 else
11294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11295 /* end confdefs.h. */
11296 #undef $ac_tr_decl
11297 #define $ac_tr_decl 1
11299 #include "ansidecl.h"
11300 #include "system.h"
11301 #include <signal.h>
11305 main ()
11307 #ifndef $ac_func
11308 char *(*pfn) = (char *(*)) $ac_func ;
11309 #endif
11311 return 0;
11313 _ACEOF
11314 if ac_fn_cxx_try_compile "$LINENO"; then :
11315 eval "gcc_cv_have_decl_$ac_func=yes"
11316 else
11317 eval "gcc_cv_have_decl_$ac_func=no"
11319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11322 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11324 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11325 #define $ac_tr_decl 1
11326 _ACEOF
11328 else
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11330 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11331 #define $ac_tr_decl 0
11332 _ACEOF
11336 done
11339 # More time-related stuff.
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11341 $as_echo_n "checking for struct tms... " >&6; }
11342 if test "${ac_cv_struct_tms+set}" = set; then :
11343 $as_echo_n "(cached) " >&6
11344 else
11346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11347 /* end confdefs.h. */
11349 #include "ansidecl.h"
11350 #include "system.h"
11351 #ifdef HAVE_SYS_TIMES_H
11352 #include <sys/times.h>
11353 #endif
11356 main ()
11358 struct tms tms;
11360 return 0;
11362 _ACEOF
11363 if ac_fn_cxx_try_compile "$LINENO"; then :
11364 ac_cv_struct_tms=yes
11365 else
11366 ac_cv_struct_tms=no
11368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11371 $as_echo "$ac_cv_struct_tms" >&6; }
11372 if test $ac_cv_struct_tms = yes; then
11374 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11378 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11379 # revisit after autoconf 2.50.
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11381 $as_echo_n "checking for clock_t... " >&6; }
11382 if test "${gcc_cv_type_clock_t+set}" = set; then :
11383 $as_echo_n "(cached) " >&6
11384 else
11386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11387 /* end confdefs.h. */
11389 #include "ansidecl.h"
11390 #include "system.h"
11393 main ()
11395 clock_t x;
11397 return 0;
11399 _ACEOF
11400 if ac_fn_cxx_try_compile "$LINENO"; then :
11401 gcc_cv_type_clock_t=yes
11402 else
11403 gcc_cv_type_clock_t=no
11405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11408 $as_echo "$gcc_cv_type_clock_t" >&6; }
11409 if test $gcc_cv_type_clock_t = yes; then
11411 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11415 # Check if F_SETLKW is supported by fcntl.
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11417 $as_echo_n "checking for F_SETLKW... " >&6; }
11418 if test "${ac_cv_f_setlkw+set}" = set; then :
11419 $as_echo_n "(cached) " >&6
11420 else
11422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11423 /* end confdefs.h. */
11425 #include <fcntl.h>
11427 main ()
11430 struct flock fl;
11431 fl.l_whence = 0;
11432 fl.l_start = 0;
11433 fl.l_len = 0;
11434 fl.l_pid = 0;
11435 return fcntl (1, F_SETLKW, &fl);
11437 return 0;
11439 _ACEOF
11440 if ac_fn_cxx_try_compile "$LINENO"; then :
11441 ac_cv_f_setlkw=yes
11442 else
11443 ac_cv_f_setlkw=no
11445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11448 $as_echo "$ac_cv_f_setlkw" >&6; }
11449 if test $ac_cv_f_setlkw = yes; then
11451 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11455 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11456 CFLAGS="$saved_CFLAGS"
11457 CXXFLAGS="$saved_CXXFLAGS"
11459 # mkdir takes a single argument on some systems.
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11461 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11462 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11463 $as_echo_n "(cached) " >&6
11464 else
11465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11466 /* end confdefs.h. */
11468 #include <sys/types.h>
11469 #ifdef HAVE_SYS_STAT_H
11470 # include <sys/stat.h>
11471 #endif
11472 #ifdef HAVE_UNISTD_H
11473 # include <unistd.h>
11474 #endif
11475 #ifdef HAVE_DIRECT_H
11476 # include <direct.h>
11477 #endif
11479 main ()
11481 mkdir ("foo", 0);
11483 return 0;
11485 _ACEOF
11486 if ac_fn_cxx_try_compile "$LINENO"; then :
11487 gcc_cv_mkdir_takes_one_arg=no
11488 else
11489 gcc_cv_mkdir_takes_one_arg=yes
11491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11494 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11495 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11497 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11502 # File extensions
11503 manext='.1'
11504 objext='.o'
11508 # With Setjmp/Longjmp based exception handling.
11509 # Check whether --enable-sjlj-exceptions was given.
11510 if test "${enable_sjlj_exceptions+set}" = set; then :
11511 enableval=$enable_sjlj_exceptions; case $target in
11512 *-*-hpux10*)
11513 if test $enableval != yes; then
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11515 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11516 enableval=yes
11519 esac
11520 force_sjlj_exceptions=yes
11521 else
11522 case $target in
11523 *-*-hpux10*)
11524 force_sjlj_exceptions=yes
11525 enableval=yes
11527 lm32*-*-*)
11528 force_sjlj_exceptions=yes
11529 enableval=yes
11532 force_sjlj_exceptions=no
11534 esac
11537 if test $force_sjlj_exceptions = yes; then
11538 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11540 cat >>confdefs.h <<_ACEOF
11541 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11542 _ACEOF
11546 # --------------------------------------------------------
11547 # Build, host, and target specific configuration fragments
11548 # --------------------------------------------------------
11550 # Collect build-machine-specific information.
11551 . ${srcdir}/config.build || exit 1
11553 # Collect host-machine-specific information.
11554 . ${srcdir}/config.host || exit 1
11556 target_gtfiles=
11558 # Collect target-machine-specific information.
11559 . ${srcdir}/config.gcc || exit 1
11561 extra_objs="${host_extra_objs} ${extra_objs}"
11562 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11564 # Default the target-machine variables that were not explicitly set.
11565 if test x"$tm_file" = x
11566 then tm_file=$cpu_type/$cpu_type.h; fi
11568 if test x"$extra_headers" = x
11569 then extra_headers=; fi
11571 if test x$md_file = x
11572 then md_file=$cpu_type/$cpu_type.md; fi
11574 if test x$out_file = x
11575 then out_file=$cpu_type/$cpu_type.c; fi
11577 if test x"$tmake_file" = x
11578 then tmake_file=$cpu_type/t-$cpu_type
11581 # Support --enable-initfini-array.
11582 if test x$enable_initfini_array != xno; then
11583 tm_file="${tm_file} initfini-array.h"
11586 if test x"$dwarf2" = xyes
11587 then tm_file="$tm_file tm-dwarf2.h"
11590 # Say what files are being used for the output code and MD file.
11591 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11592 echo "Using \`$srcdir/config/$md_file' as machine description file."
11594 # If any of the xm_file variables contain nonexistent files, warn
11595 # about them and drop them.
11598 for x in $build_xm_file; do
11599 if test -f $srcdir/config/$x
11600 then bx="$bx $x"
11601 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11602 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11604 done
11605 build_xm_file="$bx"
11608 for x in $host_xm_file; do
11609 if test -f $srcdir/config/$x
11610 then hx="$hx $x"
11611 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11612 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11614 done
11615 host_xm_file="$hx"
11618 for x in $xm_file; do
11619 if test -f $srcdir/config/$x
11620 then tx="$tx $x"
11621 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11622 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11624 done
11625 xm_file="$tx"
11627 count=a
11628 for f in $tm_file; do
11629 count=${count}x
11630 done
11631 if test $count = ax; then
11632 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11633 else
11634 echo "Using the following target machine macro files:"
11635 for f in $tm_file; do
11636 echo " $srcdir/config/$f"
11637 done
11640 if test x$use_long_long_for_widest_fast_int = xyes; then
11642 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11646 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11648 cat >>confdefs.h <<_ACEOF
11649 #define HAVE_GNU_LD $gnu_ld_bool
11650 _ACEOF
11653 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11655 cat >>confdefs.h <<_ACEOF
11656 #define HAVE_GNU_AS $gnu_as_bool
11657 _ACEOF
11660 count=a
11661 for f in $host_xm_file; do
11662 count=${count}x
11663 done
11664 if test $count = a; then
11666 elif test $count = ax; then
11667 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11668 else
11669 echo "Using the following host machine macro files:"
11670 for f in $host_xm_file; do
11671 echo " $srcdir/config/$f"
11672 done
11674 echo "Using ${out_host_hook_obj} for host machine hooks."
11676 if test "$host_xm_file" != "$build_xm_file"; then
11677 count=a
11678 for f in $build_xm_file; do
11679 count=${count}x
11680 done
11681 if test $count = a; then
11683 elif test $count = ax; then
11684 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11685 else
11686 echo "Using the following build machine macro files:"
11687 for f in $build_xm_file; do
11688 echo " $srcdir/config/$f"
11689 done
11693 if test -n "$configured_native_system_header_dir"; then
11694 native_system_header_dir=$configured_native_system_header_dir
11696 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11699 case ${host} in
11700 powerpc*-*-darwin*)
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11702 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11703 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11704 $as_echo_n "(cached) " >&6
11705 else
11706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11707 /* end confdefs.h. */
11709 #include <sys/cdefs.h>
11710 #include <sys/signal.h>
11711 #include <ucontext.h>
11712 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11714 _ACEOF
11715 if ac_fn_cxx_try_compile "$LINENO"; then :
11716 gcc_cv_mcontext_underscores=no
11717 else
11718 gcc_cv_mcontext_underscores=yes
11720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11723 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11724 if test $gcc_cv_mcontext_underscores = yes; then
11726 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11730 esac
11732 # ---------
11733 # Threading
11734 # ---------
11736 # Check if a valid thread package
11737 case ${enable_threads} in
11738 "" | no)
11739 # No threads
11740 target_thread_file='single'
11742 yes)
11743 # default
11744 target_thread_file='single'
11746 aix | dce | lynx | mipssde | posix | rtems | \
11747 single | tpf | vxworks | win32)
11748 target_thread_file=${enable_threads}
11751 echo "${enable_threads} is an unknown thread package" 1>&2
11752 exit 1
11754 esac
11756 if test x${thread_file} = x; then
11757 # No thread file set by target-specific clauses in config.gcc,
11758 # so use file chosen by default logic above
11759 thread_file=${target_thread_file}
11762 # --------
11763 # UNSORTED
11764 # --------
11766 use_cxa_atexit=no
11767 if test x$enable___cxa_atexit = xyes || \
11768 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11769 if test x$host = x$target; then
11770 case $host in
11771 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11772 # keyed to flag_use_cxa_atexit
11773 *-*-mingw32*)
11774 use_cxa_atexit=yes
11776 powerpc-ibm-aix*)
11777 use_cxa_atexit=yes
11780 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11781 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11782 use_cxa_atexit=yes
11783 else
11784 echo "__cxa_atexit can't be enabled on this target"
11788 esac
11789 else
11790 # We can't check for __cxa_atexit when building a cross, so assume
11791 # it is available
11792 use_cxa_atexit=yes
11794 if test x$use_cxa_atexit = xyes; then
11796 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11801 # Look for a file containing extra machine modes.
11802 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11803 extra_modes_file='$(srcdir)'/config/${extra_modes}
11806 cat >>confdefs.h <<_ACEOF
11807 #define EXTRA_MODES_FILE "config/$extra_modes"
11808 _ACEOF
11812 # Convert extra_options into a form suitable for Makefile use.
11813 extra_opt_files=
11814 all_opt_files=
11815 for f in $extra_options; do
11816 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11817 all_opt_files="$all_opt_files $srcdir/config/$f"
11818 done
11821 # auto-host.h is the file containing items generated by autoconf and is
11822 # the first file included by config.h.
11823 # If host=build, it is correct to have bconfig include auto-host.h
11824 # as well. If host!=build, we are in error and need to do more
11825 # work to find out the build config parameters.
11826 if test x$host = x$build
11827 then
11828 build_auto=auto-host.h
11829 else
11830 # We create a subdir, then run autoconf in the subdir.
11831 # To prevent recursion we set host and build for the new
11832 # invocation of configure to the build for this invocation
11833 # of configure.
11834 tempdir=build.$$
11835 rm -rf $tempdir
11836 mkdir $tempdir
11837 cd $tempdir
11838 case ${srcdir} in
11839 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11840 *) realsrcdir=../${srcdir};;
11841 esac
11842 # Clearing GMPINC is necessary to prevent host headers being
11843 # used by the build compiler. Defining GENERATOR_FILE stops
11844 # system.h from including gmp.h.
11845 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11846 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11847 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11848 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11849 ${realsrcdir}/configure \
11850 --enable-languages=${enable_languages-all} \
11851 --target=$target_alias --host=$build_alias --build=$build_alias
11853 # We just finished tests for the build machine, so rename
11854 # the file auto-build.h in the gcc directory.
11855 mv auto-host.h ../auto-build.h
11856 cd ..
11857 rm -rf $tempdir
11858 build_auto=auto-build.h
11862 tm_file="${tm_file} defaults.h"
11863 tm_p_file="${tm_p_file} tm-preds.h"
11864 tm_d_file="${tm_d_file} defaults.h"
11865 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11866 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11867 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11868 # put this back in temporarily.
11869 xm_file="auto-host.h ansidecl.h ${xm_file}"
11871 # --------
11872 # UNSORTED
11873 # --------
11875 # Compile in configure arguments.
11876 if test -f configargs.h ; then
11877 # Being re-configured.
11878 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11879 gcc_reconf_arguments=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
11880 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
11881 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11883 else
11884 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11887 # Double all backslashes and backslash all quotes to turn
11888 # gcc_config_arguments into a C string.
11889 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11890 $gcc_config_arguments
11892 gcc_config_arguments_str=`cat conftest.out`
11893 rm -f conftest.out
11895 cat > configargs.h <<EOF
11896 /* Generated automatically. */
11897 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11898 static const char thread_model[] = "$thread_file";
11900 static const struct {
11901 const char *name, *value;
11902 } configure_default_options[] = $configure_default_options;
11905 gcc_BASEVER=`cat $srcdir/BASE-VER`
11906 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11907 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11908 if test -f $srcdir/REVISION ; then
11909 gcc_REVISION=`cat $srcdir/REVISION`
11910 else
11911 gcc_REVISION=""
11913 cat > plugin-version.h <<EOF
11914 #include "configargs.h"
11916 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11917 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11918 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11919 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11921 static char basever[] = "$gcc_BASEVER";
11922 static char datestamp[] = "$gcc_DATESTAMP";
11923 static char devphase[] = "$gcc_DEVPHASE";
11924 static char revision[] = "$gcc_REVISION";
11926 /* FIXME plugins: We should make the version information more precise.
11927 One way to do is to add a checksum. */
11929 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11930 devphase, revision,
11931 configuration_arguments};
11934 # Determine what GCC version number to use in filesystem paths.
11936 get_gcc_base_ver="cat"
11938 # Check whether --with-gcc-major-version-only was given.
11939 if test "${with_gcc_major_version_only+set}" = set; then :
11940 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
11941 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
11949 # Internationalization
11950 # If we haven't got the data from the intl directory,
11951 # assume NLS is disabled.
11952 USE_NLS=no
11953 LIBINTL=
11954 LIBINTL_DEP=
11955 INCINTL=
11956 XGETTEXT=
11957 GMSGFMT=
11958 POSUB=
11960 if test -f ../intl/config.intl; then
11961 . ../intl/config.intl
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11964 $as_echo_n "checking whether NLS is requested... " >&6; }
11965 if test x"$USE_NLS" != xyes; then
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11967 $as_echo "no" >&6; }
11968 else
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11970 $as_echo "yes" >&6; }
11972 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11976 $as_echo_n "checking for catalogs to be installed... " >&6; }
11977 # Look for .po and .gmo files in the source directory.
11978 CATALOGS=
11979 XLINGUAS=
11980 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11981 # If there aren't any .gmo files the shell will give us the
11982 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11983 # weeded out.
11984 case "$cat" in *\**)
11985 continue;;
11986 esac
11987 # The quadruple backslash is collapsed to a double backslash
11988 # by the backticks, then collapsed again by the double quotes,
11989 # leaving us with one backslash in the sed expression (right
11990 # before the dot that mustn't act as a wildcard).
11991 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11992 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11993 # The user is allowed to set LINGUAS to a list of languages to
11994 # install catalogs for. If it's empty that means "all of them."
11995 if test "x$LINGUAS" = x; then
11996 CATALOGS="$CATALOGS $cat"
11997 XLINGUAS="$XLINGUAS $lang"
11998 else
11999 case "$LINGUAS" in *$lang*)
12000 CATALOGS="$CATALOGS $cat"
12001 XLINGUAS="$XLINGUAS $lang"
12003 esac
12005 done
12006 LINGUAS="$XLINGUAS"
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12008 $as_echo "$LINGUAS" >&6; }
12011 DATADIRNAME=share
12013 INSTOBJEXT=.mo
12015 GENCAT=gencat
12017 CATOBJEXT=.gmo
12021 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12022 # -liconv on the link line twice.
12023 case "$LIBINTL" in *$LIBICONV*)
12024 LIBICONV= ;;
12025 esac
12027 # Check whether --enable-secureplt was given.
12028 if test "${enable_secureplt+set}" = set; then :
12029 enableval=$enable_secureplt;
12033 # Check whether --enable-mingw-wildcard was given.
12034 if test "${enable_mingw_wildcard+set}" = set; then :
12035 enableval=$enable_mingw_wildcard;
12036 else
12037 enable_mingw_wildcard=platform
12040 if test x"$enable_mingw_wildcard" != xplatform ; then :
12042 cat >>confdefs.h <<_ACEOF
12043 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12044 _ACEOF
12048 # Check whether --enable-large-address-aware was given.
12049 if test "${enable_large_address_aware+set}" = set; then :
12050 enableval=$enable_large_address_aware;
12053 if test x"$enable_large_address_aware" = xyes; then :
12055 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12059 # Check whether --enable-leading-mingw64-underscores was given.
12060 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12061 enableval=$enable_leading_mingw64_underscores;
12064 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12066 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12070 # Check whether --enable-cld was given.
12071 if test "${enable_cld+set}" = set; then :
12072 enableval=$enable_cld;
12073 else
12074 enable_cld=no
12078 # Check whether --enable-frame-pointer was given.
12079 if test "${enable_frame_pointer+set}" = set; then :
12080 enableval=$enable_frame_pointer;
12081 else
12083 case $target_os in
12084 linux* | darwin[8912]*)
12085 # Enable -fomit-frame-pointer by default for Linux and Darwin with
12086 # DWARF2.
12087 enable_frame_pointer=no
12090 enable_frame_pointer=yes
12092 esac
12097 # Windows32 Registry support for specifying GCC installation paths.
12098 # Check whether --enable-win32-registry was given.
12099 if test "${enable_win32_registry+set}" = set; then :
12100 enableval=$enable_win32_registry;
12104 case $host_os in
12105 win32 | pe | cygwin* | mingw32*)
12106 if test "x$enable_win32_registry" != xno; then
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12108 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12109 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12110 $as_echo_n "(cached) " >&6
12111 else
12112 ac_func_search_save_LIBS=$LIBS
12113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114 /* end confdefs.h. */
12116 /* Override any GCC internal prototype to avoid an error.
12117 Use char because int might match the return type of a GCC
12118 builtin and then its argument prototype would still apply. */
12119 #ifdef __cplusplus
12120 extern "C"
12121 #endif
12122 char RegOpenKeyExA ();
12124 main ()
12126 return RegOpenKeyExA ();
12128 return 0;
12130 _ACEOF
12131 for ac_lib in '' advapi32; do
12132 if test -z "$ac_lib"; then
12133 ac_res="none required"
12134 else
12135 ac_res=-l$ac_lib
12136 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12138 if ac_fn_cxx_try_link "$LINENO"; then :
12139 ac_cv_search_RegOpenKeyExA=$ac_res
12141 rm -f core conftest.err conftest.$ac_objext \
12142 conftest$ac_exeext
12143 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12144 break
12146 done
12147 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12149 else
12150 ac_cv_search_RegOpenKeyExA=no
12152 rm conftest.$ac_ext
12153 LIBS=$ac_func_search_save_LIBS
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12156 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12157 ac_res=$ac_cv_search_RegOpenKeyExA
12158 if test "$ac_res" != no; then :
12159 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12161 else
12162 enable_win32_registry=no
12167 if test "x$enable_win32_registry" != xno; then
12169 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12172 if test "x$enable_win32_registry" != xyes \
12173 && test "x$enable_win32_registry" != x; then
12175 cat >>confdefs.h <<_ACEOF
12176 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12177 _ACEOF
12182 esac
12184 # Get an absolute path to the GCC top-level source directory
12185 holddir=`${PWDCMD-pwd}`
12186 cd $srcdir
12187 topdir=`${PWDCMD-pwd}`
12188 cd $holddir
12190 # Conditionalize the makefile for this host machine.
12191 xmake_file=
12192 for f in ${host_xmake_file}
12194 if test -f ${srcdir}/config/$f
12195 then
12196 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12198 done
12200 # Conditionalize the makefile for this target machine.
12201 tmake_file_=
12202 for f in ${tmake_file}
12204 if test -f ${srcdir}/config/$f
12205 then
12206 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12208 done
12209 tmake_file="${tmake_file_}"
12211 out_object_file=`basename $out_file .c`.o
12212 common_out_object_file=`basename $common_out_file .c`.o
12214 tm_file_list="options.h"
12215 tm_include_list="options.h insn-constants.h"
12216 for f in $tm_file; do
12217 case $f in
12218 ./* )
12219 f=`echo $f | sed 's/^..//'`
12220 tm_file_list="${tm_file_list} $f"
12221 tm_include_list="${tm_include_list} $f"
12223 defaults.h )
12224 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12225 tm_include_list="${tm_include_list} $f"
12228 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12229 tm_include_list="${tm_include_list} config/$f"
12231 esac
12232 done
12234 tm_p_file_list=
12235 tm_p_include_list=
12236 for f in $tm_p_file; do
12237 case $f in
12238 tm-preds.h )
12239 tm_p_file_list="${tm_p_file_list} $f"
12240 tm_p_include_list="${tm_p_include_list} $f"
12243 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12244 tm_p_include_list="${tm_p_include_list} config/$f"
12245 esac
12246 done
12248 tm_d_file_list=
12249 tm_d_include_list="options.h insn-constants.h"
12250 for f in $tm_d_file; do
12251 case $f in
12252 defaults.h )
12253 tm_d_file_list="${tm_d_file_list} \$(srcdir)/$f"
12254 tm_d_include_list="${tm_d_include_list} $f"
12257 tm_d_file_list="${tm_d_file_list} \$(srcdir)/config/$f"
12258 tm_d_include_list="${tm_d_include_list} config/$f"
12260 esac
12261 done
12263 xm_file_list=
12264 xm_include_list=
12265 for f in $xm_file; do
12266 case $f in
12267 ansidecl.h )
12268 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12269 xm_include_list="${xm_include_list} $f"
12271 auto-host.h )
12272 xm_file_list="${xm_file_list} $f"
12273 xm_include_list="${xm_include_list} $f"
12276 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12277 xm_include_list="${xm_include_list} config/$f"
12279 esac
12280 done
12282 host_xm_file_list=
12283 host_xm_include_list=
12284 for f in $host_xm_file; do
12285 case $f in
12286 ansidecl.h )
12287 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12288 host_xm_include_list="${host_xm_include_list} $f"
12290 auto-host.h )
12291 host_xm_file_list="${host_xm_file_list} $f"
12292 host_xm_include_list="${host_xm_include_list} $f"
12295 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12296 host_xm_include_list="${host_xm_include_list} config/$f"
12298 esac
12299 done
12301 build_xm_file_list=
12302 for f in $build_xm_file; do
12303 case $f in
12304 ansidecl.h )
12305 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12306 build_xm_include_list="${build_xm_include_list} $f"
12308 auto-build.h | auto-host.h )
12309 build_xm_file_list="${build_xm_file_list} $f"
12310 build_xm_include_list="${build_xm_include_list} $f"
12313 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12314 build_xm_include_list="${build_xm_include_list} config/$f"
12316 esac
12317 done
12319 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12320 # cross-compiler which does not use the native headers and libraries.
12321 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12322 CROSS=
12323 ALL=all.internal
12324 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12325 BUILD_SYSTEM_HEADER_DIR=$SYSTEM_HEADER_DIR
12327 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x ||
12328 test x$build != x$host || test "x$with_build_sysroot" != x; then
12329 if test "x$with_build_sysroot" != x; then
12330 BUILD_SYSTEM_HEADER_DIR=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12331 else
12332 BUILD_SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12335 if test x$host != x$target
12336 then
12337 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12338 ALL=all.cross
12339 SYSTEM_HEADER_DIR=$BUILD_SYSTEM_HEADER_DIR
12340 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12341 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
12344 if test "x$with_build_sysroot" != "x"; then
12345 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12346 elif test "x$with_sysroot" = x; then
12347 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12348 elif test "x$with_sysroot" = xyes; then
12349 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12350 else
12351 target_header_dir="${with_sysroot}${native_system_header_dir}"
12353 else
12354 target_header_dir=${native_system_header_dir}
12357 # If this is a cross-compiler that does not
12358 # have its own set of headers then define
12359 # inhibit_libc
12361 # If this is using newlib, without having the headers available now,
12362 # then define inhibit_libc in LIBGCC2_CFLAGS.
12363 # This prevents libgcc2 from containing any code which requires libc
12364 # support.
12365 : ${inhibit_libc=false}
12366 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12367 test x$with_newlib = xyes ; } &&
12368 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12369 inhibit_libc=true
12373 # When building gcc with a cross-compiler, we need to adjust things so
12374 # that the generator programs are still built with the native compiler.
12375 # Also, we cannot run fixincludes.
12377 # These are the normal (build=host) settings:
12378 CC_FOR_BUILD='$(CC)'
12379 CXX_FOR_BUILD='$(CXX)'
12380 BUILD_CFLAGS='$(ALL_CFLAGS)'
12381 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12382 BUILD_LDFLAGS='$(LDFLAGS)'
12383 STMP_FIXINC=stmp-fixinc
12385 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12386 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12388 # And these apply if build != host, or we are generating coverage data
12389 if test x$build != x$host || test "x$coverage_flags" != x
12390 then
12391 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12392 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12393 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12395 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12396 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12397 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12398 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12403 # Expand extra_headers to include complete path.
12404 # This substitutes for lots of t-* files.
12405 extra_headers_list=
12406 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12407 for file in ${extra_headers} ; do
12408 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12409 done
12411 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12412 if test x"$use_gcc_tgmath" = xyes
12413 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12416 # Define collect2 in Makefile.
12417 case $host_can_use_collect2 in
12418 no) collect2= ;;
12419 *) collect2='collect2$(exeext)' ;;
12420 esac
12423 # Add a definition of USE_COLLECT2 if system wants one.
12424 case $use_collect2 in
12425 no) use_collect2= ;;
12426 "") ;;
12428 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12429 xm_defines="${xm_defines} USE_COLLECT2"
12430 case $host_can_use_collect2 in
12432 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12434 esac
12436 esac
12439 cat >>confdefs.h <<_ACEOF
12440 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12441 _ACEOF
12444 # ---------------------------
12445 # Assembler & linker features
12446 # ---------------------------
12448 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12449 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12450 # However when ld-new is first executed from the build tree, libtool will
12451 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12452 # to the build tree. While doing this we need to use the previous-stage
12453 # linker, or we have an infinite loop. The presence of a shell script as
12454 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12455 # the gcc/collect-ld script. So we need to know how libtool works, or
12456 # exec-tool will fail.
12459 case `pwd` in
12460 *\ * | *\ *)
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12462 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12463 esac
12467 macro_version='2.2.7a'
12468 macro_revision='1.3134'
12482 ltmain="$ac_aux_dir/ltmain.sh"
12484 # Backslashify metacharacters that are still active within
12485 # double-quoted strings.
12486 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12488 # Same as above, but do not quote variable references.
12489 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12491 # Sed substitution to delay expansion of an escaped shell variable in a
12492 # double_quote_subst'ed string.
12493 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12495 # Sed substitution to delay expansion of an escaped single quote.
12496 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12498 # Sed substitution to avoid accidental globbing in evaled expressions
12499 no_glob_subst='s/\*/\\\*/g'
12501 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12502 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12503 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12506 $as_echo_n "checking how to print strings... " >&6; }
12507 # Test print first, because it will be a builtin if present.
12508 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12509 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12510 ECHO='print -r --'
12511 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12512 ECHO='printf %s\n'
12513 else
12514 # Use this function as a fallback that always works.
12515 func_fallback_echo ()
12517 eval 'cat <<_LTECHO_EOF
12519 _LTECHO_EOF'
12521 ECHO='func_fallback_echo'
12524 # func_echo_all arg...
12525 # Invoke $ECHO with all args, space-separated.
12526 func_echo_all ()
12528 $ECHO ""
12531 case "$ECHO" in
12532 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12533 $as_echo "printf" >&6; } ;;
12534 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12535 $as_echo "print -r" >&6; } ;;
12536 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12537 $as_echo "cat" >&6; } ;;
12538 esac
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12554 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12555 if test "${ac_cv_path_SED+set}" = set; then :
12556 $as_echo_n "(cached) " >&6
12557 else
12558 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12559 for ac_i in 1 2 3 4 5 6 7; do
12560 ac_script="$ac_script$as_nl$ac_script"
12561 done
12562 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12563 { ac_script=; unset ac_script;}
12564 if test -z "$SED"; then
12565 ac_path_SED_found=false
12566 # Loop through the user's path and test for each of PROGNAME-LIST
12567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12568 for as_dir in $PATH
12570 IFS=$as_save_IFS
12571 test -z "$as_dir" && as_dir=.
12572 for ac_prog in sed gsed; do
12573 for ac_exec_ext in '' $ac_executable_extensions; do
12574 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12575 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12576 # Check for GNU ac_path_SED and select it if it is found.
12577 # Check for GNU $ac_path_SED
12578 case `"$ac_path_SED" --version 2>&1` in
12579 *GNU*)
12580 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12582 ac_count=0
12583 $as_echo_n 0123456789 >"conftest.in"
12584 while :
12586 cat "conftest.in" "conftest.in" >"conftest.tmp"
12587 mv "conftest.tmp" "conftest.in"
12588 cp "conftest.in" "conftest.nl"
12589 $as_echo '' >> "conftest.nl"
12590 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12591 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12592 as_fn_arith $ac_count + 1 && ac_count=$as_val
12593 if test $ac_count -gt ${ac_path_SED_max-0}; then
12594 # Best one so far, save it but keep looking for a better one
12595 ac_cv_path_SED="$ac_path_SED"
12596 ac_path_SED_max=$ac_count
12598 # 10*(2^10) chars as input seems more than enough
12599 test $ac_count -gt 10 && break
12600 done
12601 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12602 esac
12604 $ac_path_SED_found && break 3
12605 done
12606 done
12607 done
12608 IFS=$as_save_IFS
12609 if test -z "$ac_cv_path_SED"; then
12610 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12612 else
12613 ac_cv_path_SED=$SED
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12618 $as_echo "$ac_cv_path_SED" >&6; }
12619 SED="$ac_cv_path_SED"
12620 rm -f conftest.sed
12622 test -z "$SED" && SED=sed
12623 Xsed="$SED -e 1s/^X//"
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12636 $as_echo_n "checking for fgrep... " >&6; }
12637 if test "${ac_cv_path_FGREP+set}" = set; then :
12638 $as_echo_n "(cached) " >&6
12639 else
12640 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12641 then ac_cv_path_FGREP="$GREP -F"
12642 else
12643 if test -z "$FGREP"; then
12644 ac_path_FGREP_found=false
12645 # Loop through the user's path and test for each of PROGNAME-LIST
12646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12647 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12649 IFS=$as_save_IFS
12650 test -z "$as_dir" && as_dir=.
12651 for ac_prog in fgrep; do
12652 for ac_exec_ext in '' $ac_executable_extensions; do
12653 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12654 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12655 # Check for GNU ac_path_FGREP and select it if it is found.
12656 # Check for GNU $ac_path_FGREP
12657 case `"$ac_path_FGREP" --version 2>&1` in
12658 *GNU*)
12659 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12661 ac_count=0
12662 $as_echo_n 0123456789 >"conftest.in"
12663 while :
12665 cat "conftest.in" "conftest.in" >"conftest.tmp"
12666 mv "conftest.tmp" "conftest.in"
12667 cp "conftest.in" "conftest.nl"
12668 $as_echo 'FGREP' >> "conftest.nl"
12669 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12670 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12671 as_fn_arith $ac_count + 1 && ac_count=$as_val
12672 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12673 # Best one so far, save it but keep looking for a better one
12674 ac_cv_path_FGREP="$ac_path_FGREP"
12675 ac_path_FGREP_max=$ac_count
12677 # 10*(2^10) chars as input seems more than enough
12678 test $ac_count -gt 10 && break
12679 done
12680 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12681 esac
12683 $ac_path_FGREP_found && break 3
12684 done
12685 done
12686 done
12687 IFS=$as_save_IFS
12688 if test -z "$ac_cv_path_FGREP"; then
12689 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12691 else
12692 ac_cv_path_FGREP=$FGREP
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12698 $as_echo "$ac_cv_path_FGREP" >&6; }
12699 FGREP="$ac_cv_path_FGREP"
12702 test -z "$GREP" && GREP=grep
12722 # Check whether --with-gnu-ld was given.
12723 if test "${with_gnu_ld+set}" = set; then :
12724 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12725 else
12726 with_gnu_ld=no
12729 ac_prog=ld
12730 if test "$GCC" = yes; then
12731 # Check if gcc -print-prog-name=ld gives a path.
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12733 $as_echo_n "checking for ld used by $CC... " >&6; }
12734 case $host in
12735 *-*-mingw*)
12736 # gcc leaves a trailing carriage return which upsets mingw
12737 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12739 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12740 esac
12741 case $ac_prog in
12742 # Accept absolute paths.
12743 [\\/]* | ?:[\\/]*)
12744 re_direlt='/[^/][^/]*/\.\./'
12745 # Canonicalize the pathname of ld
12746 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12747 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12748 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12749 done
12750 test -z "$LD" && LD="$ac_prog"
12753 # If it fails, then pretend we aren't using GCC.
12754 ac_prog=ld
12757 # If it is relative, then search for the first ld in PATH.
12758 with_gnu_ld=unknown
12760 esac
12761 elif test "$with_gnu_ld" = yes; then
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12763 $as_echo_n "checking for GNU ld... " >&6; }
12764 else
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12766 $as_echo_n "checking for non-GNU ld... " >&6; }
12768 if test "${lt_cv_path_LD+set}" = set; then :
12769 $as_echo_n "(cached) " >&6
12770 else
12771 if test -z "$LD"; then
12772 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12773 for ac_dir in $PATH; do
12774 IFS="$lt_save_ifs"
12775 test -z "$ac_dir" && ac_dir=.
12776 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12777 lt_cv_path_LD="$ac_dir/$ac_prog"
12778 # Check to see if the program is GNU ld. I'd rather use --version,
12779 # but apparently some variants of GNU ld only accept -v.
12780 # Break only if it was the GNU/non-GNU ld that we prefer.
12781 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12782 *GNU* | *'with BFD'*)
12783 test "$with_gnu_ld" != no && break
12786 test "$with_gnu_ld" != yes && break
12788 esac
12790 done
12791 IFS="$lt_save_ifs"
12792 else
12793 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12797 LD="$lt_cv_path_LD"
12798 if test -n "$LD"; then
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12800 $as_echo "$LD" >&6; }
12801 else
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12803 $as_echo "no" >&6; }
12805 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12807 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12808 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12809 $as_echo_n "(cached) " >&6
12810 else
12811 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12812 case `$LD -v 2>&1 </dev/null` in
12813 *GNU* | *'with BFD'*)
12814 lt_cv_prog_gnu_ld=yes
12817 lt_cv_prog_gnu_ld=no
12819 esac
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12822 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12823 with_gnu_ld=$lt_cv_prog_gnu_ld
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12834 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12835 if test "${lt_cv_path_NM+set}" = set; then :
12836 $as_echo_n "(cached) " >&6
12837 else
12838 if test -n "$NM"; then
12839 # Let the user override the test.
12840 lt_cv_path_NM="$NM"
12841 else
12842 lt_nm_to_check="${ac_tool_prefix}nm"
12843 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12844 lt_nm_to_check="$lt_nm_to_check nm"
12846 for lt_tmp_nm in $lt_nm_to_check; do
12847 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12848 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12849 IFS="$lt_save_ifs"
12850 test -z "$ac_dir" && ac_dir=.
12851 tmp_nm="$ac_dir/$lt_tmp_nm"
12852 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12853 # Check to see if the nm accepts a BSD-compat flag.
12854 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12855 # nm: unknown option "B" ignored
12856 # Tru64's nm complains that /dev/null is an invalid object file
12857 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12858 */dev/null* | *'Invalid file or object type'*)
12859 lt_cv_path_NM="$tmp_nm -B"
12860 break
12863 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12864 */dev/null*)
12865 lt_cv_path_NM="$tmp_nm -p"
12866 break
12869 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12870 continue # so that we can try to find one that supports BSD flags
12872 esac
12874 esac
12876 done
12877 IFS="$lt_save_ifs"
12878 done
12879 : ${lt_cv_path_NM=no}
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12883 $as_echo "$lt_cv_path_NM" >&6; }
12884 if test "$lt_cv_path_NM" != "no"; then
12885 NM="$lt_cv_path_NM"
12886 else
12887 # Didn't find any BSD compatible name lister, look for dumpbin.
12888 if test -n "$DUMPBIN"; then :
12889 # Let the user override the test.
12890 else
12891 if test -n "$ac_tool_prefix"; then
12892 for ac_prog in dumpbin "link -dump"
12894 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12895 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12897 $as_echo_n "checking for $ac_word... " >&6; }
12898 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12899 $as_echo_n "(cached) " >&6
12900 else
12901 if test -n "$DUMPBIN"; then
12902 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12903 else
12904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12905 for as_dir in $PATH
12907 IFS=$as_save_IFS
12908 test -z "$as_dir" && as_dir=.
12909 for ac_exec_ext in '' $ac_executable_extensions; do
12910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12911 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12913 break 2
12915 done
12916 done
12917 IFS=$as_save_IFS
12921 DUMPBIN=$ac_cv_prog_DUMPBIN
12922 if test -n "$DUMPBIN"; then
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12924 $as_echo "$DUMPBIN" >&6; }
12925 else
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12927 $as_echo "no" >&6; }
12931 test -n "$DUMPBIN" && break
12932 done
12934 if test -z "$DUMPBIN"; then
12935 ac_ct_DUMPBIN=$DUMPBIN
12936 for ac_prog in dumpbin "link -dump"
12938 # Extract the first word of "$ac_prog", so it can be a program name with args.
12939 set dummy $ac_prog; ac_word=$2
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12941 $as_echo_n "checking for $ac_word... " >&6; }
12942 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12943 $as_echo_n "(cached) " >&6
12944 else
12945 if test -n "$ac_ct_DUMPBIN"; then
12946 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12947 else
12948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12949 for as_dir in $PATH
12951 IFS=$as_save_IFS
12952 test -z "$as_dir" && as_dir=.
12953 for ac_exec_ext in '' $ac_executable_extensions; do
12954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12955 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12957 break 2
12959 done
12960 done
12961 IFS=$as_save_IFS
12965 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12966 if test -n "$ac_ct_DUMPBIN"; then
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12968 $as_echo "$ac_ct_DUMPBIN" >&6; }
12969 else
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12971 $as_echo "no" >&6; }
12975 test -n "$ac_ct_DUMPBIN" && break
12976 done
12978 if test "x$ac_ct_DUMPBIN" = x; then
12979 DUMPBIN=":"
12980 else
12981 case $cross_compiling:$ac_tool_warned in
12982 yes:)
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12985 ac_tool_warned=yes ;;
12986 esac
12987 DUMPBIN=$ac_ct_DUMPBIN
12991 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12992 *COFF*)
12993 DUMPBIN="$DUMPBIN -symbols"
12996 DUMPBIN=:
12998 esac
13001 if test "$DUMPBIN" != ":"; then
13002 NM="$DUMPBIN"
13005 test -z "$NM" && NM=nm
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13013 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13014 if test "${lt_cv_nm_interface+set}" = set; then :
13015 $as_echo_n "(cached) " >&6
13016 else
13017 lt_cv_nm_interface="BSD nm"
13018 echo "int some_variable = 0;" > conftest.$ac_ext
13019 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13020 (eval "$ac_compile" 2>conftest.err)
13021 cat conftest.err >&5
13022 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13023 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13024 cat conftest.err >&5
13025 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13026 cat conftest.out >&5
13027 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13028 lt_cv_nm_interface="MS dumpbin"
13030 rm -f conftest*
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13033 $as_echo "$lt_cv_nm_interface" >&6; }
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13036 $as_echo_n "checking whether ln -s works... " >&6; }
13037 LN_S=$as_ln_s
13038 if test "$LN_S" = "ln -s"; then
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13040 $as_echo "yes" >&6; }
13041 else
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13043 $as_echo "no, using $LN_S" >&6; }
13046 # find the maximum length of command line arguments
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13048 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13049 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
13050 $as_echo_n "(cached) " >&6
13051 else
13053 teststring="ABCD"
13055 case $build_os in
13056 msdosdjgpp*)
13057 # On DJGPP, this test can blow up pretty badly due to problems in libc
13058 # (any single argument exceeding 2000 bytes causes a buffer overrun
13059 # during glob expansion). Even if it were fixed, the result of this
13060 # check would be larger than it should be.
13061 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13064 gnu*)
13065 # Under GNU Hurd, this test is not required because there is
13066 # no limit to the length of command line arguments.
13067 # Libtool will interpret -1 as no limit whatsoever
13068 lt_cv_sys_max_cmd_len=-1;
13071 cygwin* | mingw* | cegcc*)
13072 # On Win9x/ME, this test blows up -- it succeeds, but takes
13073 # about 5 minutes as the teststring grows exponentially.
13074 # Worse, since 9x/ME are not pre-emptively multitasking,
13075 # you end up with a "frozen" computer, even though with patience
13076 # the test eventually succeeds (with a max line length of 256k).
13077 # Instead, let's just punt: use the minimum linelength reported by
13078 # all of the supported platforms: 8192 (on NT/2K/XP).
13079 lt_cv_sys_max_cmd_len=8192;
13082 mint*)
13083 # On MiNT this can take a long time and run out of memory.
13084 lt_cv_sys_max_cmd_len=8192;
13087 amigaos*)
13088 # On AmigaOS with pdksh, this test takes hours, literally.
13089 # So we just punt and use a minimum line length of 8192.
13090 lt_cv_sys_max_cmd_len=8192;
13093 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13094 # This has been around since 386BSD, at least. Likely further.
13095 if test -x /sbin/sysctl; then
13096 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13097 elif test -x /usr/sbin/sysctl; then
13098 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13099 else
13100 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13102 # And add a safety zone
13103 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13104 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13107 interix*)
13108 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13109 lt_cv_sys_max_cmd_len=196608
13112 osf*)
13113 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13114 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13115 # nice to cause kernel panics so lets avoid the loop below.
13116 # First set a reasonable default.
13117 lt_cv_sys_max_cmd_len=16384
13119 if test -x /sbin/sysconfig; then
13120 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13121 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13122 esac
13125 sco3.2v5*)
13126 lt_cv_sys_max_cmd_len=102400
13128 sysv5* | sco5v6* | sysv4.2uw2*)
13129 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13130 if test -n "$kargmax"; then
13131 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13132 else
13133 lt_cv_sys_max_cmd_len=32768
13137 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13138 if test -n "$lt_cv_sys_max_cmd_len"; then
13139 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13140 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13141 else
13142 # Make teststring a little bigger before we do anything with it.
13143 # a 1K string should be a reasonable start.
13144 for i in 1 2 3 4 5 6 7 8 ; do
13145 teststring=$teststring$teststring
13146 done
13147 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13148 # If test is not a shell built-in, we'll probably end up computing a
13149 # maximum length that is only half of the actual maximum length, but
13150 # we can't tell.
13151 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13152 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13153 test $i != 17 # 1/2 MB should be enough
13155 i=`expr $i + 1`
13156 teststring=$teststring$teststring
13157 done
13158 # Only check the string length outside the loop.
13159 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13160 teststring=
13161 # Add a significant safety factor because C++ compilers can tack on
13162 # massive amounts of additional arguments before passing them to the
13163 # linker. It appears as though 1/2 is a usable value.
13164 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13167 esac
13171 if test -n $lt_cv_sys_max_cmd_len ; then
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13173 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13174 else
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13176 $as_echo "none" >&6; }
13178 max_cmd_len=$lt_cv_sys_max_cmd_len
13185 : ${CP="cp -f"}
13186 : ${MV="mv -f"}
13187 : ${RM="rm -f"}
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13190 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13191 # Try some XSI features
13192 xsi_shell=no
13193 ( _lt_dummy="a/b/c"
13194 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13195 = c,a/b,, \
13196 && eval 'test $(( 1 + 1 )) -eq 2 \
13197 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13198 && xsi_shell=yes
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13200 $as_echo "$xsi_shell" >&6; }
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13204 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13205 lt_shell_append=no
13206 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13207 >/dev/null 2>&1 \
13208 && lt_shell_append=yes
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13210 $as_echo "$lt_shell_append" >&6; }
13213 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13214 lt_unset=unset
13215 else
13216 lt_unset=false
13223 # test EBCDIC or ASCII
13224 case `echo X|tr X '\101'` in
13225 A) # ASCII based system
13226 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13227 lt_SP2NL='tr \040 \012'
13228 lt_NL2SP='tr \015\012 \040\040'
13230 *) # EBCDIC based system
13231 lt_SP2NL='tr \100 \n'
13232 lt_NL2SP='tr \r\n \100\100'
13234 esac
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13245 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13246 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13247 $as_echo_n "(cached) " >&6
13248 else
13249 lt_cv_ld_reload_flag='-r'
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13252 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13253 reload_flag=$lt_cv_ld_reload_flag
13254 case $reload_flag in
13255 "" | " "*) ;;
13256 *) reload_flag=" $reload_flag" ;;
13257 esac
13258 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13259 case $host_os in
13260 darwin*)
13261 if test "$GCC" = yes; then
13262 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13263 else
13264 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13267 esac
13277 if test -n "$ac_tool_prefix"; then
13278 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13279 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13281 $as_echo_n "checking for $ac_word... " >&6; }
13282 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13283 $as_echo_n "(cached) " >&6
13284 else
13285 if test -n "$OBJDUMP"; then
13286 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13287 else
13288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13289 for as_dir in $PATH
13291 IFS=$as_save_IFS
13292 test -z "$as_dir" && as_dir=.
13293 for ac_exec_ext in '' $ac_executable_extensions; do
13294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13295 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13297 break 2
13299 done
13300 done
13301 IFS=$as_save_IFS
13305 OBJDUMP=$ac_cv_prog_OBJDUMP
13306 if test -n "$OBJDUMP"; then
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13308 $as_echo "$OBJDUMP" >&6; }
13309 else
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13311 $as_echo "no" >&6; }
13316 if test -z "$ac_cv_prog_OBJDUMP"; then
13317 ac_ct_OBJDUMP=$OBJDUMP
13318 # Extract the first word of "objdump", so it can be a program name with args.
13319 set dummy objdump; ac_word=$2
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13321 $as_echo_n "checking for $ac_word... " >&6; }
13322 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13323 $as_echo_n "(cached) " >&6
13324 else
13325 if test -n "$ac_ct_OBJDUMP"; then
13326 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13327 else
13328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13329 for as_dir in $PATH
13331 IFS=$as_save_IFS
13332 test -z "$as_dir" && as_dir=.
13333 for ac_exec_ext in '' $ac_executable_extensions; do
13334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13335 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13337 break 2
13339 done
13340 done
13341 IFS=$as_save_IFS
13345 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13346 if test -n "$ac_ct_OBJDUMP"; then
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13348 $as_echo "$ac_ct_OBJDUMP" >&6; }
13349 else
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13351 $as_echo "no" >&6; }
13354 if test "x$ac_ct_OBJDUMP" = x; then
13355 OBJDUMP="false"
13356 else
13357 case $cross_compiling:$ac_tool_warned in
13358 yes:)
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13361 ac_tool_warned=yes ;;
13362 esac
13363 OBJDUMP=$ac_ct_OBJDUMP
13365 else
13366 OBJDUMP="$ac_cv_prog_OBJDUMP"
13369 test -z "$OBJDUMP" && OBJDUMP=objdump
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13380 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13381 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13382 $as_echo_n "(cached) " >&6
13383 else
13384 lt_cv_file_magic_cmd='$MAGIC_CMD'
13385 lt_cv_file_magic_test_file=
13386 lt_cv_deplibs_check_method='unknown'
13387 # Need to set the preceding variable on all platforms that support
13388 # interlibrary dependencies.
13389 # 'none' -- dependencies not supported.
13390 # `unknown' -- same as none, but documents that we really don't know.
13391 # 'pass_all' -- all dependencies passed with no checks.
13392 # 'test_compile' -- check by making test program.
13393 # 'file_magic [[regex]]' -- check by looking for files in library path
13394 # which responds to the $file_magic_cmd with a given extended regex.
13395 # If you have `file' or equivalent on your system and you're not sure
13396 # whether `pass_all' will *always* work, you probably want this one.
13398 case $host_os in
13399 aix[4-9]*)
13400 lt_cv_deplibs_check_method=pass_all
13403 beos*)
13404 lt_cv_deplibs_check_method=pass_all
13407 bsdi[45]*)
13408 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13409 lt_cv_file_magic_cmd='/usr/bin/file -L'
13410 lt_cv_file_magic_test_file=/shlib/libc.so
13413 cygwin*)
13414 # func_win32_libid is a shell function defined in ltmain.sh
13415 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13416 lt_cv_file_magic_cmd='func_win32_libid'
13419 mingw* | pw32*)
13420 # Base MSYS/MinGW do not provide the 'file' command needed by
13421 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13422 # unless we find 'file', for example because we are cross-compiling.
13423 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13424 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13425 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13426 lt_cv_file_magic_cmd='func_win32_libid'
13427 else
13428 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13429 lt_cv_file_magic_cmd='$OBJDUMP -f'
13433 cegcc*)
13434 # use the weaker test based on 'objdump'. See mingw*.
13435 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13436 lt_cv_file_magic_cmd='$OBJDUMP -f'
13439 darwin* | rhapsody*)
13440 lt_cv_deplibs_check_method=pass_all
13443 freebsd* | dragonfly*)
13444 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13445 case $host_cpu in
13446 i*86 )
13447 # Not sure whether the presence of OpenBSD here was a mistake.
13448 # Let's accept both of them until this is cleared up.
13449 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13450 lt_cv_file_magic_cmd=/usr/bin/file
13451 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13453 esac
13454 else
13455 lt_cv_deplibs_check_method=pass_all
13459 gnu*)
13460 lt_cv_deplibs_check_method=pass_all
13463 haiku*)
13464 lt_cv_deplibs_check_method=pass_all
13467 hpux10.20* | hpux11*)
13468 lt_cv_file_magic_cmd=/usr/bin/file
13469 case $host_cpu in
13470 ia64*)
13471 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13472 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13474 hppa*64*)
13475 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]'
13476 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13479 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13480 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13482 esac
13485 interix[3-9]*)
13486 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13487 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13490 irix5* | irix6* | nonstopux*)
13491 case $LD in
13492 *-32|*"-32 ") libmagic=32-bit;;
13493 *-n32|*"-n32 ") libmagic=N32;;
13494 *-64|*"-64 ") libmagic=64-bit;;
13495 *) libmagic=never-match;;
13496 esac
13497 lt_cv_deplibs_check_method=pass_all
13500 # This must be Linux ELF.
13501 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13502 lt_cv_deplibs_check_method=pass_all
13505 netbsd*)
13506 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13507 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13508 else
13509 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13513 newos6*)
13514 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13515 lt_cv_file_magic_cmd=/usr/bin/file
13516 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13519 *nto* | *qnx*)
13520 lt_cv_deplibs_check_method=pass_all
13523 openbsd*)
13524 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13525 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13526 else
13527 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13531 osf3* | osf4* | osf5*)
13532 lt_cv_deplibs_check_method=pass_all
13535 rdos*)
13536 lt_cv_deplibs_check_method=pass_all
13539 solaris*)
13540 lt_cv_deplibs_check_method=pass_all
13543 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13544 lt_cv_deplibs_check_method=pass_all
13547 sysv4 | sysv4.3*)
13548 case $host_vendor in
13549 motorola)
13550 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]'
13551 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13553 ncr)
13554 lt_cv_deplibs_check_method=pass_all
13556 sequent)
13557 lt_cv_file_magic_cmd='/bin/file'
13558 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13560 sni)
13561 lt_cv_file_magic_cmd='/bin/file'
13562 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13563 lt_cv_file_magic_test_file=/lib/libc.so
13565 siemens)
13566 lt_cv_deplibs_check_method=pass_all
13569 lt_cv_deplibs_check_method=pass_all
13571 esac
13574 tpf*)
13575 lt_cv_deplibs_check_method=pass_all
13577 esac
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13581 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13582 file_magic_cmd=$lt_cv_file_magic_cmd
13583 deplibs_check_method=$lt_cv_deplibs_check_method
13584 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13597 if test -n "$ac_tool_prefix"; then
13598 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13599 set dummy ${ac_tool_prefix}ar; ac_word=$2
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13601 $as_echo_n "checking for $ac_word... " >&6; }
13602 if test "${ac_cv_prog_AR+set}" = set; then :
13603 $as_echo_n "(cached) " >&6
13604 else
13605 if test -n "$AR"; then
13606 ac_cv_prog_AR="$AR" # Let the user override the test.
13607 else
13608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13609 for as_dir in $PATH
13611 IFS=$as_save_IFS
13612 test -z "$as_dir" && as_dir=.
13613 for ac_exec_ext in '' $ac_executable_extensions; do
13614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13615 ac_cv_prog_AR="${ac_tool_prefix}ar"
13616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13617 break 2
13619 done
13620 done
13621 IFS=$as_save_IFS
13625 AR=$ac_cv_prog_AR
13626 if test -n "$AR"; then
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13628 $as_echo "$AR" >&6; }
13629 else
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13631 $as_echo "no" >&6; }
13636 if test -z "$ac_cv_prog_AR"; then
13637 ac_ct_AR=$AR
13638 # Extract the first word of "ar", so it can be a program name with args.
13639 set dummy ar; ac_word=$2
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13641 $as_echo_n "checking for $ac_word... " >&6; }
13642 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13643 $as_echo_n "(cached) " >&6
13644 else
13645 if test -n "$ac_ct_AR"; then
13646 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13647 else
13648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13649 for as_dir in $PATH
13651 IFS=$as_save_IFS
13652 test -z "$as_dir" && as_dir=.
13653 for ac_exec_ext in '' $ac_executable_extensions; do
13654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13655 ac_cv_prog_ac_ct_AR="ar"
13656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13657 break 2
13659 done
13660 done
13661 IFS=$as_save_IFS
13665 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13666 if test -n "$ac_ct_AR"; then
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13668 $as_echo "$ac_ct_AR" >&6; }
13669 else
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13671 $as_echo "no" >&6; }
13674 if test "x$ac_ct_AR" = x; then
13675 AR="false"
13676 else
13677 case $cross_compiling:$ac_tool_warned in
13678 yes:)
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13681 ac_tool_warned=yes ;;
13682 esac
13683 AR=$ac_ct_AR
13685 else
13686 AR="$ac_cv_prog_AR"
13689 test -z "$AR" && AR=ar
13690 test -z "$AR_FLAGS" && AR_FLAGS=cru
13702 if test -n "$ac_tool_prefix"; then
13703 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13704 set dummy ${ac_tool_prefix}strip; ac_word=$2
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13706 $as_echo_n "checking for $ac_word... " >&6; }
13707 if test "${ac_cv_prog_STRIP+set}" = set; then :
13708 $as_echo_n "(cached) " >&6
13709 else
13710 if test -n "$STRIP"; then
13711 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13712 else
13713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13714 for as_dir in $PATH
13716 IFS=$as_save_IFS
13717 test -z "$as_dir" && as_dir=.
13718 for ac_exec_ext in '' $ac_executable_extensions; do
13719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13720 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13722 break 2
13724 done
13725 done
13726 IFS=$as_save_IFS
13730 STRIP=$ac_cv_prog_STRIP
13731 if test -n "$STRIP"; then
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13733 $as_echo "$STRIP" >&6; }
13734 else
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13736 $as_echo "no" >&6; }
13741 if test -z "$ac_cv_prog_STRIP"; then
13742 ac_ct_STRIP=$STRIP
13743 # Extract the first word of "strip", so it can be a program name with args.
13744 set dummy strip; ac_word=$2
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13746 $as_echo_n "checking for $ac_word... " >&6; }
13747 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13748 $as_echo_n "(cached) " >&6
13749 else
13750 if test -n "$ac_ct_STRIP"; then
13751 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13752 else
13753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13754 for as_dir in $PATH
13756 IFS=$as_save_IFS
13757 test -z "$as_dir" && as_dir=.
13758 for ac_exec_ext in '' $ac_executable_extensions; do
13759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13760 ac_cv_prog_ac_ct_STRIP="strip"
13761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13762 break 2
13764 done
13765 done
13766 IFS=$as_save_IFS
13770 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13771 if test -n "$ac_ct_STRIP"; then
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13773 $as_echo "$ac_ct_STRIP" >&6; }
13774 else
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13776 $as_echo "no" >&6; }
13779 if test "x$ac_ct_STRIP" = x; then
13780 STRIP=":"
13781 else
13782 case $cross_compiling:$ac_tool_warned in
13783 yes:)
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13786 ac_tool_warned=yes ;;
13787 esac
13788 STRIP=$ac_ct_STRIP
13790 else
13791 STRIP="$ac_cv_prog_STRIP"
13794 test -z "$STRIP" && STRIP=:
13801 if test -n "$ac_tool_prefix"; then
13802 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13803 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13805 $as_echo_n "checking for $ac_word... " >&6; }
13806 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13807 $as_echo_n "(cached) " >&6
13808 else
13809 if test -n "$RANLIB"; then
13810 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13811 else
13812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13813 for as_dir in $PATH
13815 IFS=$as_save_IFS
13816 test -z "$as_dir" && as_dir=.
13817 for ac_exec_ext in '' $ac_executable_extensions; do
13818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13819 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13821 break 2
13823 done
13824 done
13825 IFS=$as_save_IFS
13829 RANLIB=$ac_cv_prog_RANLIB
13830 if test -n "$RANLIB"; then
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13832 $as_echo "$RANLIB" >&6; }
13833 else
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13835 $as_echo "no" >&6; }
13840 if test -z "$ac_cv_prog_RANLIB"; then
13841 ac_ct_RANLIB=$RANLIB
13842 # Extract the first word of "ranlib", so it can be a program name with args.
13843 set dummy ranlib; ac_word=$2
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13845 $as_echo_n "checking for $ac_word... " >&6; }
13846 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13847 $as_echo_n "(cached) " >&6
13848 else
13849 if test -n "$ac_ct_RANLIB"; then
13850 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13851 else
13852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13853 for as_dir in $PATH
13855 IFS=$as_save_IFS
13856 test -z "$as_dir" && as_dir=.
13857 for ac_exec_ext in '' $ac_executable_extensions; do
13858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13859 ac_cv_prog_ac_ct_RANLIB="ranlib"
13860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13861 break 2
13863 done
13864 done
13865 IFS=$as_save_IFS
13869 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13870 if test -n "$ac_ct_RANLIB"; then
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13872 $as_echo "$ac_ct_RANLIB" >&6; }
13873 else
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13875 $as_echo "no" >&6; }
13878 if test "x$ac_ct_RANLIB" = x; then
13879 RANLIB=":"
13880 else
13881 case $cross_compiling:$ac_tool_warned in
13882 yes:)
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13885 ac_tool_warned=yes ;;
13886 esac
13887 RANLIB=$ac_ct_RANLIB
13889 else
13890 RANLIB="$ac_cv_prog_RANLIB"
13893 test -z "$RANLIB" && RANLIB=:
13900 # Determine commands to create old-style static archives.
13901 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13902 old_postinstall_cmds='chmod 644 $oldlib'
13903 old_postuninstall_cmds=
13905 if test -n "$RANLIB"; then
13906 case $host_os in
13907 openbsd*)
13908 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13911 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13913 esac
13914 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13917 case $host_os in
13918 darwin*)
13919 lock_old_archive_extraction=yes ;;
13921 lock_old_archive_extraction=no ;;
13922 esac
13962 # If no C compiler was specified, use CC.
13963 LTCC=${LTCC-"$CC"}
13965 # If no C compiler flags were specified, use CFLAGS.
13966 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13968 # Allow CC to be a program name with arguments.
13969 compiler=$CC
13972 # Check for command to grab the raw symbol name followed by C symbol from nm.
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13974 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13975 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13976 $as_echo_n "(cached) " >&6
13977 else
13979 # These are sane defaults that work on at least a few old systems.
13980 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13982 # Character class describing NM global symbol codes.
13983 symcode='[BCDEGRST]'
13985 # Regexp to match symbols that can be accessed directly from C.
13986 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13988 # Define system-specific variables.
13989 case $host_os in
13990 aix*)
13991 symcode='[BCDT]'
13993 cygwin* | mingw* | pw32* | cegcc*)
13994 symcode='[ABCDGISTW]'
13996 hpux*)
13997 if test "$host_cpu" = ia64; then
13998 symcode='[ABCDEGRST]'
14001 irix* | nonstopux*)
14002 symcode='[BCDEGRST]'
14004 osf*)
14005 symcode='[BCDEGQRST]'
14007 solaris*)
14008 symcode='[BDRT]'
14010 sco3.2v5*)
14011 symcode='[DT]'
14013 sysv4.2uw2*)
14014 symcode='[DT]'
14016 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14017 symcode='[ABDT]'
14019 sysv4)
14020 symcode='[DFNSTU]'
14022 esac
14024 # If we're using GNU nm, then use its standard symbol codes.
14025 case `$NM -V 2>&1` in
14026 *GNU* | *'with BFD'*)
14027 symcode='[ABCDGIRSTW]' ;;
14028 esac
14030 # Transform an extracted symbol line into a proper C declaration.
14031 # Some systems (esp. on ia64) link data and code symbols differently,
14032 # so use this general approach.
14033 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14035 # Transform an extracted symbol line into symbol name and symbol address
14036 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14037 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'"
14039 # Handle CRLF in mingw tool chain
14040 opt_cr=
14041 case $build_os in
14042 mingw*)
14043 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14045 esac
14047 # Try without a prefix underscore, then with it.
14048 for ac_symprfx in "" "_"; do
14050 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14051 symxfrm="\\1 $ac_symprfx\\2 \\2"
14053 # Write the raw and C identifiers.
14054 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14055 # Fake it for dumpbin and say T for any non-static function
14056 # and D for any global variable.
14057 # Also find C++ and __fastcall symbols from MSVC++,
14058 # which start with @ or ?.
14059 lt_cv_sys_global_symbol_pipe="$AWK '"\
14060 " {last_section=section; section=\$ 3};"\
14061 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14062 " \$ 0!~/External *\|/{next};"\
14063 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14064 " {if(hide[section]) next};"\
14065 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14066 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14067 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14068 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14069 " ' prfx=^$ac_symprfx"
14070 else
14071 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14074 # Check to see that the pipe works correctly.
14075 pipe_works=no
14077 rm -f conftest*
14078 cat > conftest.$ac_ext <<_LT_EOF
14079 #ifdef __cplusplus
14080 extern "C" {
14081 #endif
14082 char nm_test_var;
14083 void nm_test_func(void);
14084 void nm_test_func(void){}
14085 #ifdef __cplusplus
14087 #endif
14088 int main(){nm_test_var='a';nm_test_func();return(0);}
14089 _LT_EOF
14091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14092 (eval $ac_compile) 2>&5
14093 ac_status=$?
14094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14095 test $ac_status = 0; }; then
14096 # Now try to grab the symbols.
14097 nlist=conftest.nm
14098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14099 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14100 ac_status=$?
14101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14102 test $ac_status = 0; } && test -s "$nlist"; then
14103 # Try sorting and uniquifying the output.
14104 if sort "$nlist" | uniq > "$nlist"T; then
14105 mv -f "$nlist"T "$nlist"
14106 else
14107 rm -f "$nlist"T
14110 # Make sure that we snagged all the symbols we need.
14111 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14112 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14113 cat <<_LT_EOF > conftest.$ac_ext
14114 #ifdef __cplusplus
14115 extern "C" {
14116 #endif
14118 _LT_EOF
14119 # Now generate the symbol file.
14120 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14122 cat <<_LT_EOF >> conftest.$ac_ext
14124 /* The mapping between symbol names and symbols. */
14125 const struct {
14126 const char *name;
14127 void *address;
14129 lt__PROGRAM__LTX_preloaded_symbols[] =
14131 { "@PROGRAM@", (void *) 0 },
14132 _LT_EOF
14133 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14134 cat <<\_LT_EOF >> conftest.$ac_ext
14135 {0, (void *) 0}
14138 /* This works around a problem in FreeBSD linker */
14139 #ifdef FREEBSD_WORKAROUND
14140 static const void *lt_preloaded_setup() {
14141 return lt__PROGRAM__LTX_preloaded_symbols;
14143 #endif
14145 #ifdef __cplusplus
14147 #endif
14148 _LT_EOF
14149 # Now try linking the two files.
14150 mv conftest.$ac_objext conftstm.$ac_objext
14151 lt_save_LIBS="$LIBS"
14152 lt_save_CFLAGS="$CFLAGS"
14153 LIBS="conftstm.$ac_objext"
14154 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14156 (eval $ac_link) 2>&5
14157 ac_status=$?
14158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14159 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14160 pipe_works=yes
14162 LIBS="$lt_save_LIBS"
14163 CFLAGS="$lt_save_CFLAGS"
14164 else
14165 echo "cannot find nm_test_func in $nlist" >&5
14167 else
14168 echo "cannot find nm_test_var in $nlist" >&5
14170 else
14171 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14173 else
14174 echo "$progname: failed program was:" >&5
14175 cat conftest.$ac_ext >&5
14177 rm -rf conftest* conftst*
14179 # Do not use the global_symbol_pipe unless it works.
14180 if test "$pipe_works" = yes; then
14181 break
14182 else
14183 lt_cv_sys_global_symbol_pipe=
14185 done
14189 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14190 lt_cv_sys_global_symbol_to_cdecl=
14192 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14194 $as_echo "failed" >&6; }
14195 else
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14197 $as_echo "ok" >&6; }
14221 # Check whether --enable-libtool-lock was given.
14222 if test "${enable_libtool_lock+set}" = set; then :
14223 enableval=$enable_libtool_lock;
14226 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14228 # Some flags need to be propagated to the compiler or linker for good
14229 # libtool support.
14230 case $host in
14231 ia64-*-hpux*)
14232 # Find out which ABI we are using.
14233 echo 'int i;' > conftest.$ac_ext
14234 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14235 (eval $ac_compile) 2>&5
14236 ac_status=$?
14237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14238 test $ac_status = 0; }; then
14239 case `/usr/bin/file conftest.$ac_objext` in
14240 *ELF-32*)
14241 HPUX_IA64_MODE="32"
14243 *ELF-64*)
14244 HPUX_IA64_MODE="64"
14246 esac
14248 rm -rf conftest*
14250 *-*-irix6*)
14251 # Find out which ABI we are using.
14252 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14254 (eval $ac_compile) 2>&5
14255 ac_status=$?
14256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14257 test $ac_status = 0; }; then
14258 if test "$lt_cv_prog_gnu_ld" = yes; then
14259 case `/usr/bin/file conftest.$ac_objext` in
14260 *32-bit*)
14261 LD="${LD-ld} -melf32bsmip"
14263 *N32*)
14264 LD="${LD-ld} -melf32bmipn32"
14266 *64-bit*)
14267 LD="${LD-ld} -melf64bmip"
14269 esac
14270 else
14271 case `/usr/bin/file conftest.$ac_objext` in
14272 *32-bit*)
14273 LD="${LD-ld} -32"
14275 *N32*)
14276 LD="${LD-ld} -n32"
14278 *64-bit*)
14279 LD="${LD-ld} -64"
14281 esac
14284 rm -rf conftest*
14287 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14288 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14289 # Find out which ABI we are using.
14290 echo 'int i;' > conftest.$ac_ext
14291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14292 (eval $ac_compile) 2>&5
14293 ac_status=$?
14294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14295 test $ac_status = 0; }; then
14296 case `/usr/bin/file conftest.o` in
14297 *32-bit*)
14298 case $host in
14299 x86_64-*kfreebsd*-gnu)
14300 LD="${LD-ld} -m elf_i386_fbsd"
14302 x86_64-*linux*)
14303 case `/usr/bin/file conftest.o` in
14304 *x86-64*)
14305 LD="${LD-ld} -m elf32_x86_64"
14308 LD="${LD-ld} -m elf_i386"
14310 esac
14312 powerpc64le-*linux*)
14313 LD="${LD-ld} -m elf32lppclinux"
14315 powerpc64-*linux*)
14316 LD="${LD-ld} -m elf32ppclinux"
14318 s390x-*linux*)
14319 LD="${LD-ld} -m elf_s390"
14321 sparc64-*linux*)
14322 LD="${LD-ld} -m elf32_sparc"
14324 esac
14326 *64-bit*)
14327 case $host in
14328 x86_64-*kfreebsd*-gnu)
14329 LD="${LD-ld} -m elf_x86_64_fbsd"
14331 x86_64-*linux*)
14332 LD="${LD-ld} -m elf_x86_64"
14334 powerpcle-*linux*)
14335 LD="${LD-ld} -m elf64lppc"
14337 powerpc-*linux*)
14338 LD="${LD-ld} -m elf64ppc"
14340 s390*-*linux*|s390*-*tpf*)
14341 LD="${LD-ld} -m elf64_s390"
14343 sparc*-*linux*)
14344 LD="${LD-ld} -m elf64_sparc"
14346 esac
14348 esac
14350 rm -rf conftest*
14353 *-*-sco3.2v5*)
14354 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14355 SAVE_CFLAGS="$CFLAGS"
14356 CFLAGS="$CFLAGS -belf"
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14358 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14359 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14360 $as_echo_n "(cached) " >&6
14361 else
14362 ac_ext=c
14363 ac_cpp='$CPP $CPPFLAGS'
14364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14369 /* end confdefs.h. */
14372 main ()
14376 return 0;
14378 _ACEOF
14379 if ac_fn_c_try_link "$LINENO"; then :
14380 lt_cv_cc_needs_belf=yes
14381 else
14382 lt_cv_cc_needs_belf=no
14384 rm -f core conftest.err conftest.$ac_objext \
14385 conftest$ac_exeext conftest.$ac_ext
14386 ac_ext=c
14387 ac_cpp='$CPP $CPPFLAGS'
14388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14394 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14395 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14396 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14397 CFLAGS="$SAVE_CFLAGS"
14400 sparc*-*solaris*)
14401 # Find out which ABI we are using.
14402 echo 'int i;' > conftest.$ac_ext
14403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14404 (eval $ac_compile) 2>&5
14405 ac_status=$?
14406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14407 test $ac_status = 0; }; then
14408 case `/usr/bin/file conftest.o` in
14409 *64-bit*)
14410 case $lt_cv_prog_gnu_ld in
14411 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14413 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14414 LD="${LD-ld} -64"
14417 esac
14419 esac
14421 rm -rf conftest*
14423 esac
14425 need_locks="$enable_libtool_lock"
14428 case $host_os in
14429 rhapsody* | darwin*)
14430 if test -n "$ac_tool_prefix"; then
14431 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14432 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14434 $as_echo_n "checking for $ac_word... " >&6; }
14435 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14436 $as_echo_n "(cached) " >&6
14437 else
14438 if test -n "$DSYMUTIL"; then
14439 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14440 else
14441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14442 for as_dir in $PATH
14444 IFS=$as_save_IFS
14445 test -z "$as_dir" && as_dir=.
14446 for ac_exec_ext in '' $ac_executable_extensions; do
14447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14448 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14450 break 2
14452 done
14453 done
14454 IFS=$as_save_IFS
14458 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14459 if test -n "$DSYMUTIL"; then
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14461 $as_echo "$DSYMUTIL" >&6; }
14462 else
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14464 $as_echo "no" >&6; }
14469 if test -z "$ac_cv_prog_DSYMUTIL"; then
14470 ac_ct_DSYMUTIL=$DSYMUTIL
14471 # Extract the first word of "dsymutil", so it can be a program name with args.
14472 set dummy dsymutil; ac_word=$2
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14474 $as_echo_n "checking for $ac_word... " >&6; }
14475 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14476 $as_echo_n "(cached) " >&6
14477 else
14478 if test -n "$ac_ct_DSYMUTIL"; then
14479 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14480 else
14481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14482 for as_dir in $PATH
14484 IFS=$as_save_IFS
14485 test -z "$as_dir" && as_dir=.
14486 for ac_exec_ext in '' $ac_executable_extensions; do
14487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14488 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14490 break 2
14492 done
14493 done
14494 IFS=$as_save_IFS
14498 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14499 if test -n "$ac_ct_DSYMUTIL"; then
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14501 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14502 else
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14504 $as_echo "no" >&6; }
14507 if test "x$ac_ct_DSYMUTIL" = x; then
14508 DSYMUTIL=":"
14509 else
14510 case $cross_compiling:$ac_tool_warned in
14511 yes:)
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14514 ac_tool_warned=yes ;;
14515 esac
14516 DSYMUTIL=$ac_ct_DSYMUTIL
14518 else
14519 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14522 if test -n "$ac_tool_prefix"; then
14523 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14524 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14526 $as_echo_n "checking for $ac_word... " >&6; }
14527 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14528 $as_echo_n "(cached) " >&6
14529 else
14530 if test -n "$NMEDIT"; then
14531 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14532 else
14533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14534 for as_dir in $PATH
14536 IFS=$as_save_IFS
14537 test -z "$as_dir" && as_dir=.
14538 for ac_exec_ext in '' $ac_executable_extensions; do
14539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14540 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14542 break 2
14544 done
14545 done
14546 IFS=$as_save_IFS
14550 NMEDIT=$ac_cv_prog_NMEDIT
14551 if test -n "$NMEDIT"; then
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14553 $as_echo "$NMEDIT" >&6; }
14554 else
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14556 $as_echo "no" >&6; }
14561 if test -z "$ac_cv_prog_NMEDIT"; then
14562 ac_ct_NMEDIT=$NMEDIT
14563 # Extract the first word of "nmedit", so it can be a program name with args.
14564 set dummy nmedit; ac_word=$2
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14566 $as_echo_n "checking for $ac_word... " >&6; }
14567 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14568 $as_echo_n "(cached) " >&6
14569 else
14570 if test -n "$ac_ct_NMEDIT"; then
14571 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14572 else
14573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14574 for as_dir in $PATH
14576 IFS=$as_save_IFS
14577 test -z "$as_dir" && as_dir=.
14578 for ac_exec_ext in '' $ac_executable_extensions; do
14579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14580 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14582 break 2
14584 done
14585 done
14586 IFS=$as_save_IFS
14590 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14591 if test -n "$ac_ct_NMEDIT"; then
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14593 $as_echo "$ac_ct_NMEDIT" >&6; }
14594 else
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14596 $as_echo "no" >&6; }
14599 if test "x$ac_ct_NMEDIT" = x; then
14600 NMEDIT=":"
14601 else
14602 case $cross_compiling:$ac_tool_warned in
14603 yes:)
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14606 ac_tool_warned=yes ;;
14607 esac
14608 NMEDIT=$ac_ct_NMEDIT
14610 else
14611 NMEDIT="$ac_cv_prog_NMEDIT"
14614 if test -n "$ac_tool_prefix"; then
14615 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14616 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14618 $as_echo_n "checking for $ac_word... " >&6; }
14619 if test "${ac_cv_prog_LIPO+set}" = set; then :
14620 $as_echo_n "(cached) " >&6
14621 else
14622 if test -n "$LIPO"; then
14623 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14624 else
14625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14626 for as_dir in $PATH
14628 IFS=$as_save_IFS
14629 test -z "$as_dir" && as_dir=.
14630 for ac_exec_ext in '' $ac_executable_extensions; do
14631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14632 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14634 break 2
14636 done
14637 done
14638 IFS=$as_save_IFS
14642 LIPO=$ac_cv_prog_LIPO
14643 if test -n "$LIPO"; then
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14645 $as_echo "$LIPO" >&6; }
14646 else
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14648 $as_echo "no" >&6; }
14653 if test -z "$ac_cv_prog_LIPO"; then
14654 ac_ct_LIPO=$LIPO
14655 # Extract the first word of "lipo", so it can be a program name with args.
14656 set dummy lipo; ac_word=$2
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14658 $as_echo_n "checking for $ac_word... " >&6; }
14659 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14660 $as_echo_n "(cached) " >&6
14661 else
14662 if test -n "$ac_ct_LIPO"; then
14663 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14664 else
14665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14666 for as_dir in $PATH
14668 IFS=$as_save_IFS
14669 test -z "$as_dir" && as_dir=.
14670 for ac_exec_ext in '' $ac_executable_extensions; do
14671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14672 ac_cv_prog_ac_ct_LIPO="lipo"
14673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14674 break 2
14676 done
14677 done
14678 IFS=$as_save_IFS
14682 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14683 if test -n "$ac_ct_LIPO"; then
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14685 $as_echo "$ac_ct_LIPO" >&6; }
14686 else
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14688 $as_echo "no" >&6; }
14691 if test "x$ac_ct_LIPO" = x; then
14692 LIPO=":"
14693 else
14694 case $cross_compiling:$ac_tool_warned in
14695 yes:)
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14698 ac_tool_warned=yes ;;
14699 esac
14700 LIPO=$ac_ct_LIPO
14702 else
14703 LIPO="$ac_cv_prog_LIPO"
14706 if test -n "$ac_tool_prefix"; then
14707 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14708 set dummy ${ac_tool_prefix}otool; ac_word=$2
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14710 $as_echo_n "checking for $ac_word... " >&6; }
14711 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14712 $as_echo_n "(cached) " >&6
14713 else
14714 if test -n "$OTOOL"; then
14715 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14716 else
14717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14718 for as_dir in $PATH
14720 IFS=$as_save_IFS
14721 test -z "$as_dir" && as_dir=.
14722 for ac_exec_ext in '' $ac_executable_extensions; do
14723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14724 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14726 break 2
14728 done
14729 done
14730 IFS=$as_save_IFS
14734 OTOOL=$ac_cv_prog_OTOOL
14735 if test -n "$OTOOL"; then
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14737 $as_echo "$OTOOL" >&6; }
14738 else
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14740 $as_echo "no" >&6; }
14745 if test -z "$ac_cv_prog_OTOOL"; then
14746 ac_ct_OTOOL=$OTOOL
14747 # Extract the first word of "otool", so it can be a program name with args.
14748 set dummy otool; ac_word=$2
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14750 $as_echo_n "checking for $ac_word... " >&6; }
14751 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14752 $as_echo_n "(cached) " >&6
14753 else
14754 if test -n "$ac_ct_OTOOL"; then
14755 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14756 else
14757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14758 for as_dir in $PATH
14760 IFS=$as_save_IFS
14761 test -z "$as_dir" && as_dir=.
14762 for ac_exec_ext in '' $ac_executable_extensions; do
14763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14764 ac_cv_prog_ac_ct_OTOOL="otool"
14765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14766 break 2
14768 done
14769 done
14770 IFS=$as_save_IFS
14774 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14775 if test -n "$ac_ct_OTOOL"; then
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14777 $as_echo "$ac_ct_OTOOL" >&6; }
14778 else
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14780 $as_echo "no" >&6; }
14783 if test "x$ac_ct_OTOOL" = x; then
14784 OTOOL=":"
14785 else
14786 case $cross_compiling:$ac_tool_warned in
14787 yes:)
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14790 ac_tool_warned=yes ;;
14791 esac
14792 OTOOL=$ac_ct_OTOOL
14794 else
14795 OTOOL="$ac_cv_prog_OTOOL"
14798 if test -n "$ac_tool_prefix"; then
14799 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14800 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14802 $as_echo_n "checking for $ac_word... " >&6; }
14803 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14804 $as_echo_n "(cached) " >&6
14805 else
14806 if test -n "$OTOOL64"; then
14807 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14808 else
14809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14810 for as_dir in $PATH
14812 IFS=$as_save_IFS
14813 test -z "$as_dir" && as_dir=.
14814 for ac_exec_ext in '' $ac_executable_extensions; do
14815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14816 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14818 break 2
14820 done
14821 done
14822 IFS=$as_save_IFS
14826 OTOOL64=$ac_cv_prog_OTOOL64
14827 if test -n "$OTOOL64"; then
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14829 $as_echo "$OTOOL64" >&6; }
14830 else
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14832 $as_echo "no" >&6; }
14837 if test -z "$ac_cv_prog_OTOOL64"; then
14838 ac_ct_OTOOL64=$OTOOL64
14839 # Extract the first word of "otool64", so it can be a program name with args.
14840 set dummy otool64; ac_word=$2
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14842 $as_echo_n "checking for $ac_word... " >&6; }
14843 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14844 $as_echo_n "(cached) " >&6
14845 else
14846 if test -n "$ac_ct_OTOOL64"; then
14847 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14848 else
14849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14850 for as_dir in $PATH
14852 IFS=$as_save_IFS
14853 test -z "$as_dir" && as_dir=.
14854 for ac_exec_ext in '' $ac_executable_extensions; do
14855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14856 ac_cv_prog_ac_ct_OTOOL64="otool64"
14857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14858 break 2
14860 done
14861 done
14862 IFS=$as_save_IFS
14866 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14867 if test -n "$ac_ct_OTOOL64"; then
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14869 $as_echo "$ac_ct_OTOOL64" >&6; }
14870 else
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14872 $as_echo "no" >&6; }
14875 if test "x$ac_ct_OTOOL64" = x; then
14876 OTOOL64=":"
14877 else
14878 case $cross_compiling:$ac_tool_warned in
14879 yes:)
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14882 ac_tool_warned=yes ;;
14883 esac
14884 OTOOL64=$ac_ct_OTOOL64
14886 else
14887 OTOOL64="$ac_cv_prog_OTOOL64"
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14917 $as_echo_n "checking for -single_module linker flag... " >&6; }
14918 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14919 $as_echo_n "(cached) " >&6
14920 else
14921 lt_cv_apple_cc_single_mod=no
14922 if test -z "${LT_MULTI_MODULE}"; then
14923 # By default we will add the -single_module flag. You can override
14924 # by either setting the environment variable LT_MULTI_MODULE
14925 # non-empty at configure time, or by adding -multi_module to the
14926 # link flags.
14927 rm -rf libconftest.dylib*
14928 echo "int foo(void){return 1;}" > conftest.c
14929 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14930 -dynamiclib -Wl,-single_module conftest.c" >&5
14931 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14932 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14933 _lt_result=$?
14934 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14935 lt_cv_apple_cc_single_mod=yes
14936 else
14937 cat conftest.err >&5
14939 rm -rf libconftest.dylib*
14940 rm -f conftest.*
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14944 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14946 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14947 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14948 $as_echo_n "(cached) " >&6
14949 else
14950 lt_cv_ld_exported_symbols_list=no
14951 save_LDFLAGS=$LDFLAGS
14952 echo "_main" > conftest.sym
14953 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14955 /* end confdefs.h. */
14958 main ()
14962 return 0;
14964 _ACEOF
14965 if ac_fn_c_try_link "$LINENO"; then :
14966 lt_cv_ld_exported_symbols_list=yes
14967 else
14968 lt_cv_ld_exported_symbols_list=no
14970 rm -f core conftest.err conftest.$ac_objext \
14971 conftest$ac_exeext conftest.$ac_ext
14972 LDFLAGS="$save_LDFLAGS"
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14976 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14978 $as_echo_n "checking for -force_load linker flag... " >&6; }
14979 if test "${lt_cv_ld_force_load+set}" = set; then :
14980 $as_echo_n "(cached) " >&6
14981 else
14982 lt_cv_ld_force_load=no
14983 cat > conftest.c << _LT_EOF
14984 int forced_loaded() { return 2;}
14985 _LT_EOF
14986 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14987 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14988 echo "$AR cru libconftest.a conftest.o" >&5
14989 $AR cru libconftest.a conftest.o 2>&5
14990 cat > conftest.c << _LT_EOF
14991 int main() { return 0;}
14992 _LT_EOF
14993 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14994 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14995 _lt_result=$?
14996 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14997 lt_cv_ld_force_load=yes
14998 else
14999 cat conftest.err >&5
15001 rm -f conftest.err libconftest.a conftest conftest.c
15002 rm -rf conftest.dSYM
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15006 $as_echo "$lt_cv_ld_force_load" >&6; }
15007 case $host_os in
15008 rhapsody* | darwin1.[012])
15009 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15010 darwin1.*)
15011 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15012 darwin*) # darwin 5.x on
15013 # if running on 10.5 or later, the deployment target defaults
15014 # to the OS version, if on x86, and 10.4, the deployment
15015 # target defaults to 10.4. Don't you love it?
15016 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15017 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15018 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15019 10.[012][,.]*)
15020 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15021 10.*)
15022 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15023 esac
15025 esac
15026 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15027 _lt_dar_single_mod='$single_module'
15029 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15030 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15031 else
15032 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15034 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
15035 _lt_dsymutil='~$DSYMUTIL $lib || :'
15036 else
15037 _lt_dsymutil=
15040 esac
15043 for ac_header in dlfcn.h
15044 do :
15045 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
15046 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
15047 cat >>confdefs.h <<_ACEOF
15048 #define HAVE_DLFCN_H 1
15049 _ACEOF
15052 done
15058 # Set options
15062 enable_dlopen=no
15065 enable_win32_dll=no
15068 # Check whether --enable-shared was given.
15069 if test "${enable_shared+set}" = set; then :
15070 enableval=$enable_shared; p=${PACKAGE-default}
15071 case $enableval in
15072 yes) enable_shared=yes ;;
15073 no) enable_shared=no ;;
15075 enable_shared=no
15076 # Look at the argument we got. We use all the common list separators.
15077 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15078 for pkg in $enableval; do
15079 IFS="$lt_save_ifs"
15080 if test "X$pkg" = "X$p"; then
15081 enable_shared=yes
15083 done
15084 IFS="$lt_save_ifs"
15086 esac
15087 else
15088 enable_shared=yes
15099 # Check whether --enable-static was given.
15100 if test "${enable_static+set}" = set; then :
15101 enableval=$enable_static; p=${PACKAGE-default}
15102 case $enableval in
15103 yes) enable_static=yes ;;
15104 no) enable_static=no ;;
15106 enable_static=no
15107 # Look at the argument we got. We use all the common list separators.
15108 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15109 for pkg in $enableval; do
15110 IFS="$lt_save_ifs"
15111 if test "X$pkg" = "X$p"; then
15112 enable_static=yes
15114 done
15115 IFS="$lt_save_ifs"
15117 esac
15118 else
15119 enable_static=yes
15131 # Check whether --with-pic was given.
15132 if test "${with_pic+set}" = set; then :
15133 withval=$with_pic; pic_mode="$withval"
15134 else
15135 pic_mode=default
15139 test -z "$pic_mode" && pic_mode=default
15147 # Check whether --enable-fast-install was given.
15148 if test "${enable_fast_install+set}" = set; then :
15149 enableval=$enable_fast_install; p=${PACKAGE-default}
15150 case $enableval in
15151 yes) enable_fast_install=yes ;;
15152 no) enable_fast_install=no ;;
15154 enable_fast_install=no
15155 # Look at the argument we got. We use all the common list separators.
15156 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15157 for pkg in $enableval; do
15158 IFS="$lt_save_ifs"
15159 if test "X$pkg" = "X$p"; then
15160 enable_fast_install=yes
15162 done
15163 IFS="$lt_save_ifs"
15165 esac
15166 else
15167 enable_fast_install=yes
15180 # This can be used to rebuild libtool when needed
15181 LIBTOOL_DEPS="$ltmain"
15183 # Always use our own libtool.
15184 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15211 test -z "$LN_S" && LN_S="ln -s"
15226 if test -n "${ZSH_VERSION+set}" ; then
15227 setopt NO_GLOB_SUBST
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15231 $as_echo_n "checking for objdir... " >&6; }
15232 if test "${lt_cv_objdir+set}" = set; then :
15233 $as_echo_n "(cached) " >&6
15234 else
15235 rm -f .libs 2>/dev/null
15236 mkdir .libs 2>/dev/null
15237 if test -d .libs; then
15238 lt_cv_objdir=.libs
15239 else
15240 # MS-DOS does not allow filenames that begin with a dot.
15241 lt_cv_objdir=_libs
15243 rmdir .libs 2>/dev/null
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15246 $as_echo "$lt_cv_objdir" >&6; }
15247 objdir=$lt_cv_objdir
15253 cat >>confdefs.h <<_ACEOF
15254 #define LT_OBJDIR "$lt_cv_objdir/"
15255 _ACEOF
15260 case $host_os in
15261 aix3*)
15262 # AIX sometimes has problems with the GCC collect2 program. For some
15263 # reason, if we set the COLLECT_NAMES environment variable, the problems
15264 # vanish in a puff of smoke.
15265 if test "X${COLLECT_NAMES+set}" != Xset; then
15266 COLLECT_NAMES=
15267 export COLLECT_NAMES
15270 esac
15272 # Global variables:
15273 ofile=libtool
15274 can_build_shared=yes
15276 # All known linkers require a `.a' archive for static linking (except MSVC,
15277 # which needs '.lib').
15278 libext=a
15280 with_gnu_ld="$lt_cv_prog_gnu_ld"
15282 old_CC="$CC"
15283 old_CFLAGS="$CFLAGS"
15285 # Set sane defaults for various variables
15286 test -z "$CC" && CC=cc
15287 test -z "$LTCC" && LTCC=$CC
15288 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15289 test -z "$LD" && LD=ld
15290 test -z "$ac_objext" && ac_objext=o
15292 for cc_temp in $compiler""; do
15293 case $cc_temp in
15294 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15295 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15296 \-*) ;;
15297 *) break;;
15298 esac
15299 done
15300 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15303 # Only perform the check for file, if the check method requires it
15304 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15305 case $deplibs_check_method in
15306 file_magic*)
15307 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15309 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15310 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15311 $as_echo_n "(cached) " >&6
15312 else
15313 case $MAGIC_CMD in
15314 [\\/*] | ?:[\\/]*)
15315 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15318 lt_save_MAGIC_CMD="$MAGIC_CMD"
15319 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15320 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15321 for ac_dir in $ac_dummy; do
15322 IFS="$lt_save_ifs"
15323 test -z "$ac_dir" && ac_dir=.
15324 if test -f $ac_dir/${ac_tool_prefix}file; then
15325 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15326 if test -n "$file_magic_test_file"; then
15327 case $deplibs_check_method in
15328 "file_magic "*)
15329 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15330 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15331 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15332 $EGREP "$file_magic_regex" > /dev/null; then
15334 else
15335 cat <<_LT_EOF 1>&2
15337 *** Warning: the command libtool uses to detect shared libraries,
15338 *** $file_magic_cmd, produces output that libtool cannot recognize.
15339 *** The result is that libtool may fail to recognize shared libraries
15340 *** as such. This will affect the creation of libtool libraries that
15341 *** depend on shared libraries, but programs linked with such libtool
15342 *** libraries will work regardless of this problem. Nevertheless, you
15343 *** may want to report the problem to your system manager and/or to
15344 *** bug-libtool@gnu.org
15346 _LT_EOF
15347 fi ;;
15348 esac
15350 break
15352 done
15353 IFS="$lt_save_ifs"
15354 MAGIC_CMD="$lt_save_MAGIC_CMD"
15356 esac
15359 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15360 if test -n "$MAGIC_CMD"; then
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15362 $as_echo "$MAGIC_CMD" >&6; }
15363 else
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15365 $as_echo "no" >&6; }
15372 if test -z "$lt_cv_path_MAGIC_CMD"; then
15373 if test -n "$ac_tool_prefix"; then
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15375 $as_echo_n "checking for file... " >&6; }
15376 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15377 $as_echo_n "(cached) " >&6
15378 else
15379 case $MAGIC_CMD in
15380 [\\/*] | ?:[\\/]*)
15381 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15384 lt_save_MAGIC_CMD="$MAGIC_CMD"
15385 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15386 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15387 for ac_dir in $ac_dummy; do
15388 IFS="$lt_save_ifs"
15389 test -z "$ac_dir" && ac_dir=.
15390 if test -f $ac_dir/file; then
15391 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15392 if test -n "$file_magic_test_file"; then
15393 case $deplibs_check_method in
15394 "file_magic "*)
15395 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15396 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15397 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15398 $EGREP "$file_magic_regex" > /dev/null; then
15400 else
15401 cat <<_LT_EOF 1>&2
15403 *** Warning: the command libtool uses to detect shared libraries,
15404 *** $file_magic_cmd, produces output that libtool cannot recognize.
15405 *** The result is that libtool may fail to recognize shared libraries
15406 *** as such. This will affect the creation of libtool libraries that
15407 *** depend on shared libraries, but programs linked with such libtool
15408 *** libraries will work regardless of this problem. Nevertheless, you
15409 *** may want to report the problem to your system manager and/or to
15410 *** bug-libtool@gnu.org
15412 _LT_EOF
15413 fi ;;
15414 esac
15416 break
15418 done
15419 IFS="$lt_save_ifs"
15420 MAGIC_CMD="$lt_save_MAGIC_CMD"
15422 esac
15425 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15426 if test -n "$MAGIC_CMD"; then
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15428 $as_echo "$MAGIC_CMD" >&6; }
15429 else
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15431 $as_echo "no" >&6; }
15435 else
15436 MAGIC_CMD=:
15442 esac
15444 # Use C for the default configuration in the libtool script
15446 lt_save_CC="$CC"
15447 ac_ext=c
15448 ac_cpp='$CPP $CPPFLAGS'
15449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15454 # Source file extension for C test sources.
15455 ac_ext=c
15457 # Object file extension for compiled C test sources.
15458 objext=o
15459 objext=$objext
15461 # Code to be used in simple compile tests
15462 lt_simple_compile_test_code="int some_variable = 0;"
15464 # Code to be used in simple link tests
15465 lt_simple_link_test_code='int main(){return(0);}'
15473 # If no C compiler was specified, use CC.
15474 LTCC=${LTCC-"$CC"}
15476 # If no C compiler flags were specified, use CFLAGS.
15477 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15479 # Allow CC to be a program name with arguments.
15480 compiler=$CC
15482 # Save the default compiler, since it gets overwritten when the other
15483 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15484 compiler_DEFAULT=$CC
15486 # save warnings/boilerplate of simple test code
15487 ac_outfile=conftest.$ac_objext
15488 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15489 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15490 _lt_compiler_boilerplate=`cat conftest.err`
15491 $RM conftest*
15493 ac_outfile=conftest.$ac_objext
15494 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15495 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15496 _lt_linker_boilerplate=`cat conftest.err`
15497 $RM -r conftest*
15500 ## CAVEAT EMPTOR:
15501 ## There is no encapsulation within the following macros, do not change
15502 ## the running order or otherwise move them around unless you know exactly
15503 ## what you are doing...
15504 if test -n "$compiler"; then
15506 lt_prog_compiler_no_builtin_flag=
15508 if test "$GCC" = yes; then
15509 case $cc_basename in
15510 nvcc*)
15511 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15513 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15514 esac
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15517 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15518 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15519 $as_echo_n "(cached) " >&6
15520 else
15521 lt_cv_prog_compiler_rtti_exceptions=no
15522 ac_outfile=conftest.$ac_objext
15523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15524 lt_compiler_flag="-fno-rtti -fno-exceptions"
15525 # Insert the option either (1) after the last *FLAGS variable, or
15526 # (2) before a word containing "conftest.", or (3) at the end.
15527 # Note that $ac_compile itself does not contain backslashes and begins
15528 # with a dollar sign (not a hyphen), so the echo should work correctly.
15529 # The option is referenced via a variable to avoid confusing sed.
15530 lt_compile=`echo "$ac_compile" | $SED \
15531 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15533 -e 's:$: $lt_compiler_flag:'`
15534 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15535 (eval "$lt_compile" 2>conftest.err)
15536 ac_status=$?
15537 cat conftest.err >&5
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 if (exit $ac_status) && test -s "$ac_outfile"; then
15540 # The compiler can only warn and ignore the option if not recognized
15541 # So say no if there are warnings other than the usual output.
15542 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15543 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15544 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15545 lt_cv_prog_compiler_rtti_exceptions=yes
15548 $RM conftest*
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15552 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15554 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15555 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15556 else
15567 lt_prog_compiler_wl=
15568 lt_prog_compiler_pic=
15569 lt_prog_compiler_static=
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15572 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15574 if test "$GCC" = yes; then
15575 lt_prog_compiler_wl='-Wl,'
15576 lt_prog_compiler_static='-static'
15578 case $host_os in
15579 aix*)
15580 # All AIX code is PIC.
15581 if test "$host_cpu" = ia64; then
15582 # AIX 5 now supports IA64 processor
15583 lt_prog_compiler_static='-Bstatic'
15585 lt_prog_compiler_pic='-fPIC'
15588 amigaos*)
15589 case $host_cpu in
15590 powerpc)
15591 # see comment about AmigaOS4 .so support
15592 lt_prog_compiler_pic='-fPIC'
15594 m68k)
15595 # FIXME: we need at least 68020 code to build shared libraries, but
15596 # adding the `-m68020' flag to GCC prevents building anything better,
15597 # like `-m68040'.
15598 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15600 esac
15603 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15604 # PIC is the default for these OSes.
15607 mingw* | cygwin* | pw32* | os2* | cegcc*)
15608 # This hack is so that the source file can tell whether it is being
15609 # built for inclusion in a dll (and should export symbols for example).
15610 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15611 # (--disable-auto-import) libraries
15612 lt_prog_compiler_pic='-DDLL_EXPORT'
15615 darwin* | rhapsody*)
15616 # PIC is the default on this platform
15617 # Common symbols not allowed in MH_DYLIB files
15618 lt_prog_compiler_pic='-fno-common'
15621 haiku*)
15622 # PIC is the default for Haiku.
15623 # The "-static" flag exists, but is broken.
15624 lt_prog_compiler_static=
15627 hpux*)
15628 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15629 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15630 # sets the default TLS model and affects inlining.
15631 case $host_cpu in
15632 hppa*64*)
15633 # +Z the default
15636 lt_prog_compiler_pic='-fPIC'
15638 esac
15641 interix[3-9]*)
15642 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15643 # Instead, we relocate shared libraries at runtime.
15646 msdosdjgpp*)
15647 # Just because we use GCC doesn't mean we suddenly get shared libraries
15648 # on systems that don't support them.
15649 lt_prog_compiler_can_build_shared=no
15650 enable_shared=no
15653 *nto* | *qnx*)
15654 # QNX uses GNU C++, but need to define -shared option too, otherwise
15655 # it will coredump.
15656 lt_prog_compiler_pic='-fPIC -shared'
15659 sysv4*MP*)
15660 if test -d /usr/nec; then
15661 lt_prog_compiler_pic=-Kconform_pic
15666 lt_prog_compiler_pic='-fPIC'
15668 esac
15670 case $cc_basename in
15671 nvcc*) # Cuda Compiler Driver 2.2
15672 lt_prog_compiler_wl='-Xlinker '
15673 lt_prog_compiler_pic='-Xcompiler -fPIC'
15675 esac
15676 else
15677 # PORTME Check for flag to pass linker flags through the system compiler.
15678 case $host_os in
15679 aix*)
15680 lt_prog_compiler_wl='-Wl,'
15681 if test "$host_cpu" = ia64; then
15682 # AIX 5 now supports IA64 processor
15683 lt_prog_compiler_static='-Bstatic'
15684 else
15685 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15689 mingw* | cygwin* | pw32* | os2* | cegcc*)
15690 # This hack is so that the source file can tell whether it is being
15691 # built for inclusion in a dll (and should export symbols for example).
15692 lt_prog_compiler_pic='-DDLL_EXPORT'
15695 hpux9* | hpux10* | hpux11*)
15696 lt_prog_compiler_wl='-Wl,'
15697 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15698 # not for PA HP-UX.
15699 case $host_cpu in
15700 hppa*64*|ia64*)
15701 # +Z the default
15704 lt_prog_compiler_pic='+Z'
15706 esac
15707 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15708 lt_prog_compiler_static='${wl}-a ${wl}archive'
15711 irix5* | irix6* | nonstopux*)
15712 lt_prog_compiler_wl='-Wl,'
15713 # PIC (with -KPIC) is the default.
15714 lt_prog_compiler_static='-non_shared'
15717 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15718 case $cc_basename in
15719 # old Intel for x86_64 which still supported -KPIC.
15720 ecc*)
15721 lt_prog_compiler_wl='-Wl,'
15722 lt_prog_compiler_pic='-KPIC'
15723 lt_prog_compiler_static='-static'
15725 # icc used to be incompatible with GCC.
15726 # ICC 10 doesn't accept -KPIC any more.
15727 icc* | ifort*)
15728 lt_prog_compiler_wl='-Wl,'
15729 lt_prog_compiler_pic='-fPIC'
15730 lt_prog_compiler_static='-static'
15732 # Lahey Fortran 8.1.
15733 lf95*)
15734 lt_prog_compiler_wl='-Wl,'
15735 lt_prog_compiler_pic='--shared'
15736 lt_prog_compiler_static='--static'
15738 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15739 # Portland Group compilers (*not* the Pentium gcc compiler,
15740 # which looks to be a dead project)
15741 lt_prog_compiler_wl='-Wl,'
15742 lt_prog_compiler_pic='-fpic'
15743 lt_prog_compiler_static='-Bstatic'
15745 ccc*)
15746 lt_prog_compiler_wl='-Wl,'
15747 # All Alpha code is PIC.
15748 lt_prog_compiler_static='-non_shared'
15750 xl* | bgxl* | bgf* | mpixl*)
15751 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15752 lt_prog_compiler_wl='-Wl,'
15753 lt_prog_compiler_pic='-qpic'
15754 lt_prog_compiler_static='-qstaticlink'
15757 case `$CC -V 2>&1 | sed 5q` in
15758 *Sun\ F* | *Sun*Fortran*)
15759 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15760 lt_prog_compiler_pic='-KPIC'
15761 lt_prog_compiler_static='-Bstatic'
15762 lt_prog_compiler_wl=''
15764 *Sun\ C*)
15765 # Sun C 5.9
15766 lt_prog_compiler_pic='-KPIC'
15767 lt_prog_compiler_static='-Bstatic'
15768 lt_prog_compiler_wl='-Wl,'
15770 esac
15772 esac
15775 newsos6)
15776 lt_prog_compiler_pic='-KPIC'
15777 lt_prog_compiler_static='-Bstatic'
15780 *nto* | *qnx*)
15781 # QNX uses GNU C++, but need to define -shared option too, otherwise
15782 # it will coredump.
15783 lt_prog_compiler_pic='-fPIC -shared'
15786 osf3* | osf4* | osf5*)
15787 lt_prog_compiler_wl='-Wl,'
15788 # All OSF/1 code is PIC.
15789 lt_prog_compiler_static='-non_shared'
15792 rdos*)
15793 lt_prog_compiler_static='-non_shared'
15796 solaris*)
15797 lt_prog_compiler_pic='-KPIC'
15798 lt_prog_compiler_static='-Bstatic'
15799 case $cc_basename in
15800 f77* | f90* | f95*)
15801 lt_prog_compiler_wl='-Qoption ld ';;
15803 lt_prog_compiler_wl='-Wl,';;
15804 esac
15807 sunos4*)
15808 lt_prog_compiler_wl='-Qoption ld '
15809 lt_prog_compiler_pic='-PIC'
15810 lt_prog_compiler_static='-Bstatic'
15813 sysv4 | sysv4.2uw2* | sysv4.3*)
15814 lt_prog_compiler_wl='-Wl,'
15815 lt_prog_compiler_pic='-KPIC'
15816 lt_prog_compiler_static='-Bstatic'
15819 sysv4*MP*)
15820 if test -d /usr/nec ;then
15821 lt_prog_compiler_pic='-Kconform_pic'
15822 lt_prog_compiler_static='-Bstatic'
15826 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15827 lt_prog_compiler_wl='-Wl,'
15828 lt_prog_compiler_pic='-KPIC'
15829 lt_prog_compiler_static='-Bstatic'
15832 unicos*)
15833 lt_prog_compiler_wl='-Wl,'
15834 lt_prog_compiler_can_build_shared=no
15837 uts4*)
15838 lt_prog_compiler_pic='-pic'
15839 lt_prog_compiler_static='-Bstatic'
15843 lt_prog_compiler_can_build_shared=no
15845 esac
15848 case $host_os in
15849 # For platforms which do not support PIC, -DPIC is meaningless:
15850 *djgpp*)
15851 lt_prog_compiler_pic=
15854 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15856 esac
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15858 $as_echo "$lt_prog_compiler_pic" >&6; }
15866 # Check to make sure the PIC flag actually works.
15868 if test -n "$lt_prog_compiler_pic"; then
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15870 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15871 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15872 $as_echo_n "(cached) " >&6
15873 else
15874 lt_cv_prog_compiler_pic_works=no
15875 ac_outfile=conftest.$ac_objext
15876 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15877 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15878 # Insert the option either (1) after the last *FLAGS variable, or
15879 # (2) before a word containing "conftest.", or (3) at the end.
15880 # Note that $ac_compile itself does not contain backslashes and begins
15881 # with a dollar sign (not a hyphen), so the echo should work correctly.
15882 # The option is referenced via a variable to avoid confusing sed.
15883 lt_compile=`echo "$ac_compile" | $SED \
15884 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15886 -e 's:$: $lt_compiler_flag:'`
15887 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15888 (eval "$lt_compile" 2>conftest.err)
15889 ac_status=$?
15890 cat conftest.err >&5
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 if (exit $ac_status) && test -s "$ac_outfile"; then
15893 # The compiler can only warn and ignore the option if not recognized
15894 # So say no if there are warnings other than the usual output.
15895 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15896 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15897 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15898 lt_cv_prog_compiler_pic_works=yes
15901 $RM conftest*
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15905 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15907 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15908 case $lt_prog_compiler_pic in
15909 "" | " "*) ;;
15910 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15911 esac
15912 else
15913 lt_prog_compiler_pic=
15914 lt_prog_compiler_can_build_shared=no
15925 # Check to make sure the static flag actually works.
15927 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15929 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15930 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15931 $as_echo_n "(cached) " >&6
15932 else
15933 lt_cv_prog_compiler_static_works=no
15934 save_LDFLAGS="$LDFLAGS"
15935 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15936 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15937 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15938 # The linker can only warn and ignore the option if not recognized
15939 # So say no if there are warnings
15940 if test -s conftest.err; then
15941 # Append any errors to the config.log.
15942 cat conftest.err 1>&5
15943 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15945 if diff conftest.exp conftest.er2 >/dev/null; then
15946 lt_cv_prog_compiler_static_works=yes
15948 else
15949 lt_cv_prog_compiler_static_works=yes
15952 $RM -r conftest*
15953 LDFLAGS="$save_LDFLAGS"
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15957 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15959 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15961 else
15962 lt_prog_compiler_static=
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15972 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15973 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15974 $as_echo_n "(cached) " >&6
15975 else
15976 lt_cv_prog_compiler_c_o=no
15977 $RM -r conftest 2>/dev/null
15978 mkdir conftest
15979 cd conftest
15980 mkdir out
15981 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15983 lt_compiler_flag="-o out/conftest2.$ac_objext"
15984 # Insert the option either (1) after the last *FLAGS variable, or
15985 # (2) before a word containing "conftest.", or (3) at the end.
15986 # Note that $ac_compile itself does not contain backslashes and begins
15987 # with a dollar sign (not a hyphen), so the echo should work correctly.
15988 lt_compile=`echo "$ac_compile" | $SED \
15989 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15990 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15991 -e 's:$: $lt_compiler_flag:'`
15992 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15993 (eval "$lt_compile" 2>out/conftest.err)
15994 ac_status=$?
15995 cat out/conftest.err >&5
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15998 then
15999 # The compiler can only warn and ignore the option if not recognized
16000 # So say no if there are warnings
16001 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16002 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16003 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16004 lt_cv_prog_compiler_c_o=yes
16007 chmod u+w . 2>&5
16008 $RM conftest*
16009 # SGI C++ compiler will create directory out/ii_files/ for
16010 # template instantiation
16011 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16012 $RM out/* && rmdir out
16013 cd ..
16014 $RM -r conftest
16015 $RM conftest*
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16019 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16027 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16028 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
16029 $as_echo_n "(cached) " >&6
16030 else
16031 lt_cv_prog_compiler_c_o=no
16032 $RM -r conftest 2>/dev/null
16033 mkdir conftest
16034 cd conftest
16035 mkdir out
16036 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16038 lt_compiler_flag="-o out/conftest2.$ac_objext"
16039 # Insert the option either (1) after the last *FLAGS variable, or
16040 # (2) before a word containing "conftest.", or (3) at the end.
16041 # Note that $ac_compile itself does not contain backslashes and begins
16042 # with a dollar sign (not a hyphen), so the echo should work correctly.
16043 lt_compile=`echo "$ac_compile" | $SED \
16044 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16045 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16046 -e 's:$: $lt_compiler_flag:'`
16047 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16048 (eval "$lt_compile" 2>out/conftest.err)
16049 ac_status=$?
16050 cat out/conftest.err >&5
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16053 then
16054 # The compiler can only warn and ignore the option if not recognized
16055 # So say no if there are warnings
16056 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16057 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16058 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16059 lt_cv_prog_compiler_c_o=yes
16062 chmod u+w . 2>&5
16063 $RM conftest*
16064 # SGI C++ compiler will create directory out/ii_files/ for
16065 # template instantiation
16066 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16067 $RM out/* && rmdir out
16068 cd ..
16069 $RM -r conftest
16070 $RM conftest*
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16074 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16079 hard_links="nottested"
16080 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16081 # do not overwrite the value of need_locks provided by the user
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16083 $as_echo_n "checking if we can lock with hard links... " >&6; }
16084 hard_links=yes
16085 $RM conftest*
16086 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16087 touch conftest.a
16088 ln conftest.a conftest.b 2>&5 || hard_links=no
16089 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16091 $as_echo "$hard_links" >&6; }
16092 if test "$hard_links" = no; then
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16094 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16095 need_locks=warn
16097 else
16098 need_locks=no
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16107 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16109 runpath_var=
16110 allow_undefined_flag=
16111 always_export_symbols=no
16112 archive_cmds=
16113 archive_expsym_cmds=
16114 compiler_needs_object=no
16115 enable_shared_with_static_runtimes=no
16116 export_dynamic_flag_spec=
16117 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16118 hardcode_automatic=no
16119 hardcode_direct=no
16120 hardcode_direct_absolute=no
16121 hardcode_libdir_flag_spec=
16122 hardcode_libdir_flag_spec_ld=
16123 hardcode_libdir_separator=
16124 hardcode_minus_L=no
16125 hardcode_shlibpath_var=unsupported
16126 inherit_rpath=no
16127 link_all_deplibs=unknown
16128 module_cmds=
16129 module_expsym_cmds=
16130 old_archive_from_new_cmds=
16131 old_archive_from_expsyms_cmds=
16132 thread_safe_flag_spec=
16133 whole_archive_flag_spec=
16134 # include_expsyms should be a list of space-separated symbols to be *always*
16135 # included in the symbol list
16136 include_expsyms=
16137 # exclude_expsyms can be an extended regexp of symbols to exclude
16138 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16139 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16140 # as well as any symbol that contains `d'.
16141 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16142 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16143 # platforms (ab)use it in PIC code, but their linkers get confused if
16144 # the symbol is explicitly referenced. Since portable code cannot
16145 # rely on this symbol name, it's probably fine to never include it in
16146 # preloaded symbol tables.
16147 # Exclude shared library initialization/finalization symbols.
16148 extract_expsyms_cmds=
16150 case $host_os in
16151 cygwin* | mingw* | pw32* | cegcc*)
16152 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16153 # When not using gcc, we currently assume that we are using
16154 # Microsoft Visual C++.
16155 if test "$GCC" != yes; then
16156 with_gnu_ld=no
16159 interix*)
16160 # we just hope/assume this is gcc and not c89 (= MSVC++)
16161 with_gnu_ld=yes
16163 openbsd*)
16164 with_gnu_ld=no
16166 esac
16168 ld_shlibs=yes
16170 # On some targets, GNU ld is compatible enough with the native linker
16171 # that we're better off using the native interface for both.
16172 lt_use_gnu_ld_interface=no
16173 if test "$with_gnu_ld" = yes; then
16174 case $host_os in
16175 aix*)
16176 # The AIX port of GNU ld has always aspired to compatibility
16177 # with the native linker. However, as the warning in the GNU ld
16178 # block says, versions before 2.19.5* couldn't really create working
16179 # shared libraries, regardless of the interface used.
16180 case `$LD -v 2>&1` in
16181 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16182 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16183 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16185 lt_use_gnu_ld_interface=yes
16187 esac
16190 lt_use_gnu_ld_interface=yes
16192 esac
16195 if test "$lt_use_gnu_ld_interface" = yes; then
16196 # If archive_cmds runs LD, not CC, wlarc should be empty
16197 wlarc='${wl}'
16199 # Set some defaults for GNU ld with shared library support. These
16200 # are reset later if shared libraries are not supported. Putting them
16201 # here allows them to be overridden if necessary.
16202 runpath_var=LD_RUN_PATH
16203 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16204 export_dynamic_flag_spec='${wl}--export-dynamic'
16205 # ancient GNU ld didn't support --whole-archive et. al.
16206 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16207 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16208 else
16209 whole_archive_flag_spec=
16211 supports_anon_versioning=no
16212 case `$LD -v 2>&1` in
16213 *GNU\ gold*) supports_anon_versioning=yes ;;
16214 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16215 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16216 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16217 *\ 2.11.*) ;; # other 2.11 versions
16218 *) supports_anon_versioning=yes ;;
16219 esac
16221 # See if GNU ld supports shared libraries.
16222 case $host_os in
16223 aix[3-9]*)
16224 # On AIX/PPC, the GNU linker is very broken
16225 if test "$host_cpu" != ia64; then
16226 ld_shlibs=no
16227 cat <<_LT_EOF 1>&2
16229 *** Warning: the GNU linker, at least up to release 2.19, is reported
16230 *** to be unable to reliably create shared libraries on AIX.
16231 *** Therefore, libtool is disabling shared libraries support. If you
16232 *** really care for shared libraries, you may want to install binutils
16233 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16234 *** You will then need to restart the configuration process.
16236 _LT_EOF
16240 amigaos*)
16241 case $host_cpu in
16242 powerpc)
16243 # see comment about AmigaOS4 .so support
16244 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16245 archive_expsym_cmds=''
16247 m68k)
16248 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)'
16249 hardcode_libdir_flag_spec='-L$libdir'
16250 hardcode_minus_L=yes
16252 esac
16255 beos*)
16256 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16257 allow_undefined_flag=unsupported
16258 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16259 # support --undefined. This deserves some investigation. FIXME
16260 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16261 else
16262 ld_shlibs=no
16266 cygwin* | mingw* | pw32* | cegcc*)
16267 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16268 # as there is no search path for DLLs.
16269 hardcode_libdir_flag_spec='-L$libdir'
16270 export_dynamic_flag_spec='${wl}--export-all-symbols'
16271 allow_undefined_flag=unsupported
16272 always_export_symbols=no
16273 enable_shared_with_static_runtimes=yes
16274 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16276 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16277 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16278 # If the export-symbols file already is a .def file (1st line
16279 # is EXPORTS), use it as is; otherwise, prepend...
16280 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16281 cp $export_symbols $output_objdir/$soname.def;
16282 else
16283 echo EXPORTS > $output_objdir/$soname.def;
16284 cat $export_symbols >> $output_objdir/$soname.def;
16286 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16287 else
16288 ld_shlibs=no
16292 haiku*)
16293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16294 link_all_deplibs=yes
16297 interix[3-9]*)
16298 hardcode_direct=no
16299 hardcode_shlibpath_var=no
16300 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16301 export_dynamic_flag_spec='${wl}-E'
16302 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16303 # Instead, shared libraries are loaded at an image base (0x10000000 by
16304 # default) and relocated if they conflict, which is a slow very memory
16305 # consuming and fragmenting process. To avoid this, we pick a random,
16306 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16307 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16308 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16309 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'
16312 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16313 tmp_diet=no
16314 if test "$host_os" = linux-dietlibc; then
16315 case $cc_basename in
16316 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16317 esac
16319 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16320 && test "$tmp_diet" = no
16321 then
16322 tmp_addflag=' $pic_flag'
16323 tmp_sharedflag='-shared'
16324 case $cc_basename,$host_cpu in
16325 pgcc*) # Portland Group C compiler
16326 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'
16327 tmp_addflag=' $pic_flag'
16329 pgf77* | pgf90* | pgf95* | pgfortran*)
16330 # Portland Group f77 and f90 compilers
16331 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'
16332 tmp_addflag=' $pic_flag -Mnomain' ;;
16333 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16334 tmp_addflag=' -i_dynamic' ;;
16335 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16336 tmp_addflag=' -i_dynamic -nofor_main' ;;
16337 ifc* | ifort*) # Intel Fortran compiler
16338 tmp_addflag=' -nofor_main' ;;
16339 lf95*) # Lahey Fortran 8.1
16340 whole_archive_flag_spec=
16341 tmp_sharedflag='--shared' ;;
16342 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16343 tmp_sharedflag='-qmkshrobj'
16344 tmp_addflag= ;;
16345 nvcc*) # Cuda Compiler Driver 2.2
16346 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'
16347 compiler_needs_object=yes
16349 esac
16350 case `$CC -V 2>&1 | sed 5q` in
16351 *Sun\ C*) # Sun C 5.9
16352 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'
16353 compiler_needs_object=yes
16354 tmp_sharedflag='-G' ;;
16355 *Sun\ F*) # Sun Fortran 8.3
16356 tmp_sharedflag='-G' ;;
16357 esac
16358 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16360 if test "x$supports_anon_versioning" = xyes; then
16361 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16362 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16363 echo "local: *; };" >> $output_objdir/$libname.ver~
16364 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16367 case $cc_basename in
16368 xlf* | bgf* | bgxlf* | mpixlf*)
16369 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16370 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16371 hardcode_libdir_flag_spec=
16372 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16373 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16374 if test "x$supports_anon_versioning" = xyes; then
16375 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16376 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16377 echo "local: *; };" >> $output_objdir/$libname.ver~
16378 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16381 esac
16382 else
16383 ld_shlibs=no
16387 netbsd*)
16388 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16389 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16390 wlarc=
16391 else
16392 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16393 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16397 solaris*)
16398 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16399 ld_shlibs=no
16400 cat <<_LT_EOF 1>&2
16402 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16403 *** create shared libraries on Solaris systems. Therefore, libtool
16404 *** is disabling shared libraries support. We urge you to upgrade GNU
16405 *** binutils to release 2.9.1 or newer. Another option is to modify
16406 *** your PATH or compiler configuration so that the native linker is
16407 *** used, and then restart.
16409 _LT_EOF
16410 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16411 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16412 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16413 else
16414 ld_shlibs=no
16418 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16419 case `$LD -v 2>&1` in
16420 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16421 ld_shlibs=no
16422 cat <<_LT_EOF 1>&2
16424 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16425 *** reliably create shared libraries on SCO systems. Therefore, libtool
16426 *** is disabling shared libraries support. We urge you to upgrade GNU
16427 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16428 *** your PATH or compiler configuration so that the native linker is
16429 *** used, and then restart.
16431 _LT_EOF
16434 # For security reasons, it is highly recommended that you always
16435 # use absolute paths for naming shared libraries, and exclude the
16436 # DT_RUNPATH tag from executables and libraries. But doing so
16437 # requires that you compile everything twice, which is a pain.
16438 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16439 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16440 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16441 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16442 else
16443 ld_shlibs=no
16446 esac
16449 sunos4*)
16450 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16451 wlarc=
16452 hardcode_direct=yes
16453 hardcode_shlibpath_var=no
16457 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16458 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16459 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16460 else
16461 ld_shlibs=no
16464 esac
16466 if test "$ld_shlibs" = no; then
16467 runpath_var=
16468 hardcode_libdir_flag_spec=
16469 export_dynamic_flag_spec=
16470 whole_archive_flag_spec=
16472 else
16473 # PORTME fill in a description of your system's linker (not GNU ld)
16474 case $host_os in
16475 aix3*)
16476 allow_undefined_flag=unsupported
16477 always_export_symbols=yes
16478 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'
16479 # Note: this linker hardcodes the directories in LIBPATH if there
16480 # are no directories specified by -L.
16481 hardcode_minus_L=yes
16482 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16483 # Neither direct hardcoding nor static linking is supported with a
16484 # broken collect2.
16485 hardcode_direct=unsupported
16489 aix[4-9]*)
16490 if test "$host_cpu" = ia64; then
16491 # On IA64, the linker does run time linking by default, so we don't
16492 # have to do anything special.
16493 aix_use_runtimelinking=no
16494 exp_sym_flag='-Bexport'
16495 no_entry_flag=""
16496 else
16497 # If we're using GNU nm, then we don't want the "-C" option.
16498 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16499 # Also, AIX nm treats weak defined symbols like other global
16500 # defined symbols, whereas GNU nm marks them as "W".
16501 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16502 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'
16503 else
16504 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16506 aix_use_runtimelinking=no
16508 # Test if we are trying to use run time linking or normal
16509 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16510 # need to do runtime linking.
16511 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16512 for ld_flag in $LDFLAGS; do
16513 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16514 aix_use_runtimelinking=yes
16515 break
16517 done
16519 esac
16521 exp_sym_flag='-bexport'
16522 no_entry_flag='-bnoentry'
16525 # When large executables or shared objects are built, AIX ld can
16526 # have problems creating the table of contents. If linking a library
16527 # or program results in "error TOC overflow" add -mminimal-toc to
16528 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16529 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16531 archive_cmds=''
16532 hardcode_direct=yes
16533 hardcode_direct_absolute=yes
16534 hardcode_libdir_separator=':'
16535 link_all_deplibs=yes
16536 file_list_spec='${wl}-f,'
16538 if test "$GCC" = yes; then
16539 case $host_os in aix4.[012]|aix4.[012].*)
16540 # We only want to do this on AIX 4.2 and lower, the check
16541 # below for broken collect2 doesn't work under 4.3+
16542 collect2name=`${CC} -print-prog-name=collect2`
16543 if test -f "$collect2name" &&
16544 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16545 then
16546 # We have reworked collect2
16548 else
16549 # We have old collect2
16550 hardcode_direct=unsupported
16551 # It fails to find uninstalled libraries when the uninstalled
16552 # path is not listed in the libpath. Setting hardcode_minus_L
16553 # to unsupported forces relinking
16554 hardcode_minus_L=yes
16555 hardcode_libdir_flag_spec='-L$libdir'
16556 hardcode_libdir_separator=
16559 esac
16560 shared_flag='-shared'
16561 if test "$aix_use_runtimelinking" = yes; then
16562 shared_flag="$shared_flag "'${wl}-G'
16564 else
16565 # not using gcc
16566 if test "$host_cpu" = ia64; then
16567 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16568 # chokes on -Wl,-G. The following line is correct:
16569 shared_flag='-G'
16570 else
16571 if test "$aix_use_runtimelinking" = yes; then
16572 shared_flag='${wl}-G'
16573 else
16574 shared_flag='${wl}-bM:SRE'
16579 export_dynamic_flag_spec='${wl}-bexpall'
16580 # It seems that -bexpall does not export symbols beginning with
16581 # underscore (_), so it is better to generate a list of symbols to export.
16582 always_export_symbols=yes
16583 if test "$aix_use_runtimelinking" = yes; then
16584 # Warning - without using the other runtime loading flags (-brtl),
16585 # -berok will link without error, but may produce a broken library.
16586 allow_undefined_flag='-berok'
16587 # Determine the default libpath from the value encoded in an
16588 # empty executable.
16589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16590 /* end confdefs.h. */
16593 main ()
16597 return 0;
16599 _ACEOF
16600 if ac_fn_c_try_link "$LINENO"; then :
16602 lt_aix_libpath_sed='
16603 /Import File Strings/,/^$/ {
16604 /^0/ {
16605 s/^0 *\(.*\)$/\1/
16609 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16610 # Check for a 64-bit object if we didn't find anything.
16611 if test -z "$aix_libpath"; then
16612 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16615 rm -f core conftest.err conftest.$ac_objext \
16616 conftest$ac_exeext conftest.$ac_ext
16617 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16619 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16620 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"
16621 else
16622 if test "$host_cpu" = ia64; then
16623 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16624 allow_undefined_flag="-z nodefs"
16625 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"
16626 else
16627 # Determine the default libpath from the value encoded in an
16628 # empty executable.
16629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16630 /* end confdefs.h. */
16633 main ()
16637 return 0;
16639 _ACEOF
16640 if ac_fn_c_try_link "$LINENO"; then :
16642 lt_aix_libpath_sed='
16643 /Import File Strings/,/^$/ {
16644 /^0/ {
16645 s/^0 *\(.*\)$/\1/
16649 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16650 # Check for a 64-bit object if we didn't find anything.
16651 if test -z "$aix_libpath"; then
16652 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16655 rm -f core conftest.err conftest.$ac_objext \
16656 conftest$ac_exeext conftest.$ac_ext
16657 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16659 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16660 # Warning - without using the other run time loading flags,
16661 # -berok will link without error, but may produce a broken library.
16662 no_undefined_flag=' ${wl}-bernotok'
16663 allow_undefined_flag=' ${wl}-berok'
16664 if test "$with_gnu_ld" = yes; then
16665 # We only use this code for GNU lds that support --whole-archive.
16666 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16667 else
16668 # Exported symbols can be pulled into shared objects from archives
16669 whole_archive_flag_spec='$convenience'
16671 archive_cmds_need_lc=yes
16672 # This is similar to how AIX traditionally builds its shared libraries.
16673 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'
16678 amigaos*)
16679 case $host_cpu in
16680 powerpc)
16681 # see comment about AmigaOS4 .so support
16682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16683 archive_expsym_cmds=''
16685 m68k)
16686 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)'
16687 hardcode_libdir_flag_spec='-L$libdir'
16688 hardcode_minus_L=yes
16690 esac
16693 bsdi[45]*)
16694 export_dynamic_flag_spec=-rdynamic
16697 cygwin* | mingw* | pw32* | cegcc*)
16698 # When not using gcc, we currently assume that we are using
16699 # Microsoft Visual C++.
16700 # hardcode_libdir_flag_spec is actually meaningless, as there is
16701 # no search path for DLLs.
16702 hardcode_libdir_flag_spec=' '
16703 allow_undefined_flag=unsupported
16704 # Tell ltmain to make .lib files, not .a files.
16705 libext=lib
16706 # Tell ltmain to make .dll files, not .so files.
16707 shrext_cmds=".dll"
16708 # FIXME: Setting linknames here is a bad hack.
16709 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16710 # The linker will automatically build a .lib file if we build a DLL.
16711 old_archive_from_new_cmds='true'
16712 # FIXME: Should let the user specify the lib program.
16713 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16714 fix_srcfile_path='`cygpath -w "$srcfile"`'
16715 enable_shared_with_static_runtimes=yes
16718 darwin* | rhapsody*)
16721 archive_cmds_need_lc=no
16722 hardcode_direct=no
16723 hardcode_automatic=yes
16724 hardcode_shlibpath_var=unsupported
16725 if test "$lt_cv_ld_force_load" = "yes"; then
16726 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\"`'
16727 else
16728 whole_archive_flag_spec=''
16730 link_all_deplibs=yes
16731 allow_undefined_flag="$_lt_dar_allow_undefined"
16732 case $cc_basename in
16733 ifort*) _lt_dar_can_shared=yes ;;
16734 *) _lt_dar_can_shared=$GCC ;;
16735 esac
16736 if test "$_lt_dar_can_shared" = "yes"; then
16737 output_verbose_link_cmd=func_echo_all
16738 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16739 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16740 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}"
16741 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}"
16743 else
16744 ld_shlibs=no
16749 dgux*)
16750 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16751 hardcode_libdir_flag_spec='-L$libdir'
16752 hardcode_shlibpath_var=no
16755 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16756 # support. Future versions do this automatically, but an explicit c++rt0.o
16757 # does not break anything, and helps significantly (at the cost of a little
16758 # extra space).
16759 freebsd2.2*)
16760 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16761 hardcode_libdir_flag_spec='-R$libdir'
16762 hardcode_direct=yes
16763 hardcode_shlibpath_var=no
16766 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16767 freebsd2.*)
16768 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16769 hardcode_direct=yes
16770 hardcode_minus_L=yes
16771 hardcode_shlibpath_var=no
16774 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16775 freebsd* | dragonfly*)
16776 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16777 hardcode_libdir_flag_spec='-R$libdir'
16778 hardcode_direct=yes
16779 hardcode_shlibpath_var=no
16782 hpux9*)
16783 if test "$GCC" = yes; then
16784 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'
16785 else
16786 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'
16788 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16789 hardcode_libdir_separator=:
16790 hardcode_direct=yes
16792 # hardcode_minus_L: Not really in the search PATH,
16793 # but as the default location of the library.
16794 hardcode_minus_L=yes
16795 export_dynamic_flag_spec='${wl}-E'
16798 hpux10*)
16799 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16800 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16801 else
16802 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16804 if test "$with_gnu_ld" = no; then
16805 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16806 hardcode_libdir_flag_spec_ld='+b $libdir'
16807 hardcode_libdir_separator=:
16808 hardcode_direct=yes
16809 hardcode_direct_absolute=yes
16810 export_dynamic_flag_spec='${wl}-E'
16811 # hardcode_minus_L: Not really in the search PATH,
16812 # but as the default location of the library.
16813 hardcode_minus_L=yes
16817 hpux11*)
16818 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16819 case $host_cpu in
16820 hppa*64*)
16821 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16823 ia64*)
16824 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16827 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16829 esac
16830 else
16831 case $host_cpu in
16832 hppa*64*)
16833 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16835 ia64*)
16836 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16840 # Older versions of the 11.00 compiler do not understand -b yet
16841 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16843 $as_echo_n "checking if $CC understands -b... " >&6; }
16844 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16845 $as_echo_n "(cached) " >&6
16846 else
16847 lt_cv_prog_compiler__b=no
16848 save_LDFLAGS="$LDFLAGS"
16849 LDFLAGS="$LDFLAGS -b"
16850 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16851 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16852 # The linker can only warn and ignore the option if not recognized
16853 # So say no if there are warnings
16854 if test -s conftest.err; then
16855 # Append any errors to the config.log.
16856 cat conftest.err 1>&5
16857 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16858 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16859 if diff conftest.exp conftest.er2 >/dev/null; then
16860 lt_cv_prog_compiler__b=yes
16862 else
16863 lt_cv_prog_compiler__b=yes
16866 $RM -r conftest*
16867 LDFLAGS="$save_LDFLAGS"
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16871 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16873 if test x"$lt_cv_prog_compiler__b" = xyes; then
16874 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16875 else
16876 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16880 esac
16882 if test "$with_gnu_ld" = no; then
16883 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16884 hardcode_libdir_separator=:
16886 case $host_cpu in
16887 hppa*64*|ia64*)
16888 hardcode_direct=no
16889 hardcode_shlibpath_var=no
16892 hardcode_direct=yes
16893 hardcode_direct_absolute=yes
16894 export_dynamic_flag_spec='${wl}-E'
16896 # hardcode_minus_L: Not really in the search PATH,
16897 # but as the default location of the library.
16898 hardcode_minus_L=yes
16900 esac
16904 irix5* | irix6* | nonstopux*)
16905 if test "$GCC" = yes; then
16906 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'
16907 # Try to use the -exported_symbol ld option, if it does not
16908 # work, assume that -exports_file does not work either and
16909 # implicitly export all symbols.
16910 save_LDFLAGS="$LDFLAGS"
16911 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16913 /* end confdefs.h. */
16914 int foo(void) {}
16915 _ACEOF
16916 if ac_fn_c_try_link "$LINENO"; then :
16917 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'
16920 rm -f core conftest.err conftest.$ac_objext \
16921 conftest$ac_exeext conftest.$ac_ext
16922 LDFLAGS="$save_LDFLAGS"
16923 else
16924 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'
16925 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'
16927 archive_cmds_need_lc='no'
16928 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16929 hardcode_libdir_separator=:
16930 inherit_rpath=yes
16931 link_all_deplibs=yes
16934 netbsd*)
16935 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16936 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16937 else
16938 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16940 hardcode_libdir_flag_spec='-R$libdir'
16941 hardcode_direct=yes
16942 hardcode_shlibpath_var=no
16945 newsos6)
16946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16947 hardcode_direct=yes
16948 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16949 hardcode_libdir_separator=:
16950 hardcode_shlibpath_var=no
16953 *nto* | *qnx*)
16956 openbsd*)
16957 if test -f /usr/libexec/ld.so; then
16958 hardcode_direct=yes
16959 hardcode_shlibpath_var=no
16960 hardcode_direct_absolute=yes
16961 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16962 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16963 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16964 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16965 export_dynamic_flag_spec='${wl}-E'
16966 else
16967 case $host_os in
16968 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16969 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16970 hardcode_libdir_flag_spec='-R$libdir'
16973 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16974 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16976 esac
16978 else
16979 ld_shlibs=no
16983 os2*)
16984 hardcode_libdir_flag_spec='-L$libdir'
16985 hardcode_minus_L=yes
16986 allow_undefined_flag=unsupported
16987 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'
16988 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16991 osf3*)
16992 if test "$GCC" = yes; then
16993 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16994 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'
16995 else
16996 allow_undefined_flag=' -expect_unresolved \*'
16997 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'
16999 archive_cmds_need_lc='no'
17000 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17001 hardcode_libdir_separator=:
17004 osf4* | osf5*) # as osf3* with the addition of -msym flag
17005 if test "$GCC" = yes; then
17006 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
17007 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'
17008 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
17009 else
17010 allow_undefined_flag=' -expect_unresolved \*'
17011 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'
17012 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~
17013 $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'
17015 # Both c and cxx compiler support -rpath directly
17016 hardcode_libdir_flag_spec='-rpath $libdir'
17018 archive_cmds_need_lc='no'
17019 hardcode_libdir_separator=:
17022 solaris*)
17023 no_undefined_flag=' -z defs'
17024 if test "$GCC" = yes; then
17025 wlarc='${wl}'
17026 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17027 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17028 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17029 else
17030 case `$CC -V 2>&1` in
17031 *"Compilers 5.0"*)
17032 wlarc=''
17033 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17034 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17035 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17038 wlarc='${wl}'
17039 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17040 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17041 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17043 esac
17045 hardcode_libdir_flag_spec='-R$libdir'
17046 hardcode_shlibpath_var=no
17047 case $host_os in
17048 solaris2.[0-5] | solaris2.[0-5].*) ;;
17050 # The compiler driver will combine and reorder linker options,
17051 # but understands `-z linker_flag'. GCC discards it without `$wl',
17052 # but is careful enough not to reorder.
17053 # Supported since Solaris 2.6 (maybe 2.5.1?)
17054 if test "$GCC" = yes; then
17055 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17056 else
17057 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17060 esac
17061 link_all_deplibs=yes
17064 sunos4*)
17065 if test "x$host_vendor" = xsequent; then
17066 # Use $CC to link under sequent, because it throws in some extra .o
17067 # files that make .init and .fini sections work.
17068 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17069 else
17070 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17072 hardcode_libdir_flag_spec='-L$libdir'
17073 hardcode_direct=yes
17074 hardcode_minus_L=yes
17075 hardcode_shlibpath_var=no
17078 sysv4)
17079 case $host_vendor in
17080 sni)
17081 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17082 hardcode_direct=yes # is this really true???
17084 siemens)
17085 ## LD is ld it makes a PLAMLIB
17086 ## CC just makes a GrossModule.
17087 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17088 reload_cmds='$CC -r -o $output$reload_objs'
17089 hardcode_direct=no
17091 motorola)
17092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17093 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17095 esac
17096 runpath_var='LD_RUN_PATH'
17097 hardcode_shlibpath_var=no
17100 sysv4.3*)
17101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17102 hardcode_shlibpath_var=no
17103 export_dynamic_flag_spec='-Bexport'
17106 sysv4*MP*)
17107 if test -d /usr/nec; then
17108 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17109 hardcode_shlibpath_var=no
17110 runpath_var=LD_RUN_PATH
17111 hardcode_runpath_var=yes
17112 ld_shlibs=yes
17116 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17117 no_undefined_flag='${wl}-z,text'
17118 archive_cmds_need_lc=no
17119 hardcode_shlibpath_var=no
17120 runpath_var='LD_RUN_PATH'
17122 if test "$GCC" = yes; then
17123 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17124 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17125 else
17126 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17127 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17131 sysv5* | sco3.2v5* | sco5v6*)
17132 # Note: We can NOT use -z defs as we might desire, because we do not
17133 # link with -lc, and that would cause any symbols used from libc to
17134 # always be unresolved, which means just about no library would
17135 # ever link correctly. If we're not using GNU ld we use -z text
17136 # though, which does catch some bad symbols but isn't as heavy-handed
17137 # as -z defs.
17138 no_undefined_flag='${wl}-z,text'
17139 allow_undefined_flag='${wl}-z,nodefs'
17140 archive_cmds_need_lc=no
17141 hardcode_shlibpath_var=no
17142 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17143 hardcode_libdir_separator=':'
17144 link_all_deplibs=yes
17145 export_dynamic_flag_spec='${wl}-Bexport'
17146 runpath_var='LD_RUN_PATH'
17148 if test "$GCC" = yes; then
17149 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17150 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17151 else
17152 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17153 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17157 uts4*)
17158 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17159 hardcode_libdir_flag_spec='-L$libdir'
17160 hardcode_shlibpath_var=no
17164 ld_shlibs=no
17166 esac
17168 if test x$host_vendor = xsni; then
17169 case $host in
17170 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17171 export_dynamic_flag_spec='${wl}-Blargedynsym'
17173 esac
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17178 $as_echo "$ld_shlibs" >&6; }
17179 test "$ld_shlibs" = no && can_build_shared=no
17181 with_gnu_ld=$with_gnu_ld
17198 # Do we need to explicitly link libc?
17200 case "x$archive_cmds_need_lc" in
17201 x|xyes)
17202 # Assume -lc should be added
17203 archive_cmds_need_lc=yes
17205 if test "$enable_shared" = yes && test "$GCC" = yes; then
17206 case $archive_cmds in
17207 *'~'*)
17208 # FIXME: we may have to deal with multi-command sequences.
17210 '$CC '*)
17211 # Test whether the compiler implicitly links with -lc since on some
17212 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17213 # to ld, don't add -lc before -lgcc.
17214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17215 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17216 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17217 $as_echo_n "(cached) " >&6
17218 else
17219 $RM conftest*
17220 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17223 (eval $ac_compile) 2>&5
17224 ac_status=$?
17225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17226 test $ac_status = 0; } 2>conftest.err; then
17227 soname=conftest
17228 lib=conftest
17229 libobjs=conftest.$ac_objext
17230 deplibs=
17231 wl=$lt_prog_compiler_wl
17232 pic_flag=$lt_prog_compiler_pic
17233 compiler_flags=-v
17234 linker_flags=-v
17235 verstring=
17236 output_objdir=.
17237 libname=conftest
17238 lt_save_allow_undefined_flag=$allow_undefined_flag
17239 allow_undefined_flag=
17240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17241 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17242 ac_status=$?
17243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17244 test $ac_status = 0; }
17245 then
17246 lt_cv_archive_cmds_need_lc=no
17247 else
17248 lt_cv_archive_cmds_need_lc=yes
17250 allow_undefined_flag=$lt_save_allow_undefined_flag
17251 else
17252 cat conftest.err 1>&5
17254 $RM conftest*
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17258 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17259 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17261 esac
17264 esac
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17423 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17425 if test "$GCC" = yes; then
17426 case $host_os in
17427 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17428 *) lt_awk_arg="/^libraries:/" ;;
17429 esac
17430 case $host_os in
17431 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17432 *) lt_sed_strip_eq="s,=/,/,g" ;;
17433 esac
17434 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17435 case $lt_search_path_spec in
17436 *\;*)
17437 # if the path contains ";" then we assume it to be the separator
17438 # otherwise default to the standard path separator (i.e. ":") - it is
17439 # assumed that no part of a normal pathname contains ";" but that should
17440 # okay in the real world where ";" in dirpaths is itself problematic.
17441 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17444 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17446 esac
17447 # Ok, now we have the path, separated by spaces, we can step through it
17448 # and add multilib dir if necessary.
17449 lt_tmp_lt_search_path_spec=
17450 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17451 for lt_sys_path in $lt_search_path_spec; do
17452 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17453 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17454 else
17455 test -d "$lt_sys_path" && \
17456 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17458 done
17459 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17460 BEGIN {RS=" "; FS="/|\n";} {
17461 lt_foo="";
17462 lt_count=0;
17463 for (lt_i = NF; lt_i > 0; lt_i--) {
17464 if ($lt_i != "" && $lt_i != ".") {
17465 if ($lt_i == "..") {
17466 lt_count++;
17467 } else {
17468 if (lt_count == 0) {
17469 lt_foo="/" $lt_i lt_foo;
17470 } else {
17471 lt_count--;
17476 if (lt_foo != "") { lt_freq[lt_foo]++; }
17477 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17479 # AWK program above erroneously prepends '/' to C:/dos/paths
17480 # for these hosts.
17481 case $host_os in
17482 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17483 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17484 esac
17485 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17486 else
17487 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17489 library_names_spec=
17490 libname_spec='lib$name'
17491 soname_spec=
17492 shrext_cmds=".so"
17493 postinstall_cmds=
17494 postuninstall_cmds=
17495 finish_cmds=
17496 finish_eval=
17497 shlibpath_var=
17498 shlibpath_overrides_runpath=unknown
17499 version_type=none
17500 dynamic_linker="$host_os ld.so"
17501 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17502 need_lib_prefix=unknown
17503 hardcode_into_libs=no
17505 # when you set need_version to no, make sure it does not cause -set_version
17506 # flags to be left without arguments
17507 need_version=unknown
17509 case $host_os in
17510 aix3*)
17511 version_type=linux
17512 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17513 shlibpath_var=LIBPATH
17515 # AIX 3 has no versioning support, so we append a major version to the name.
17516 soname_spec='${libname}${release}${shared_ext}$major'
17519 aix[4-9]*)
17520 version_type=linux
17521 need_lib_prefix=no
17522 need_version=no
17523 hardcode_into_libs=yes
17524 if test "$host_cpu" = ia64; then
17525 # AIX 5 supports IA64
17526 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17527 shlibpath_var=LD_LIBRARY_PATH
17528 else
17529 # With GCC up to 2.95.x, collect2 would create an import file
17530 # for dependence libraries. The import file would start with
17531 # the line `#! .'. This would cause the generated library to
17532 # depend on `.', always an invalid library. This was fixed in
17533 # development snapshots of GCC prior to 3.0.
17534 case $host_os in
17535 aix4 | aix4.[01] | aix4.[01].*)
17536 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17537 echo ' yes '
17538 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17540 else
17541 can_build_shared=no
17544 esac
17545 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17546 # soname into executable. Probably we can add versioning support to
17547 # collect2, so additional links can be useful in future.
17548 if test "$aix_use_runtimelinking" = yes; then
17549 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17550 # instead of lib<name>.a to let people know that these are not
17551 # typical AIX shared libraries.
17552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17553 else
17554 # We preserve .a as extension for shared libraries through AIX4.2
17555 # and later when we are not doing run time linking.
17556 library_names_spec='${libname}${release}.a $libname.a'
17557 soname_spec='${libname}${release}${shared_ext}$major'
17559 shlibpath_var=LIBPATH
17563 amigaos*)
17564 case $host_cpu in
17565 powerpc)
17566 # Since July 2007 AmigaOS4 officially supports .so libraries.
17567 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17570 m68k)
17571 library_names_spec='$libname.ixlibrary $libname.a'
17572 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17573 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'
17575 esac
17578 beos*)
17579 library_names_spec='${libname}${shared_ext}'
17580 dynamic_linker="$host_os ld.so"
17581 shlibpath_var=LIBRARY_PATH
17584 bsdi[45]*)
17585 version_type=linux
17586 need_version=no
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'
17589 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17590 shlibpath_var=LD_LIBRARY_PATH
17591 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17592 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17593 # the default ld.so.conf also contains /usr/contrib/lib and
17594 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17595 # libtool to hard-code these into programs
17598 cygwin* | mingw* | pw32* | cegcc*)
17599 version_type=windows
17600 shrext_cmds=".dll"
17601 need_version=no
17602 need_lib_prefix=no
17604 case $GCC,$host_os in
17605 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17606 library_names_spec='$libname.dll.a'
17607 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17608 postinstall_cmds='base_file=`basename \${file}`~
17609 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17610 dldir=$destdir/`dirname \$dlpath`~
17611 test -d \$dldir || mkdir -p \$dldir~
17612 $install_prog $dir/$dlname \$dldir/$dlname~
17613 chmod a+x \$dldir/$dlname~
17614 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17615 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17617 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17618 dlpath=$dir/\$dldll~
17619 $RM \$dlpath'
17620 shlibpath_overrides_runpath=yes
17622 case $host_os in
17623 cygwin*)
17624 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17625 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17627 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17629 mingw* | cegcc*)
17630 # MinGW DLLs use traditional 'lib' prefix
17631 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17633 pw32*)
17634 # pw32 DLLs use 'pw' prefix rather than 'lib'
17635 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17637 esac
17641 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17643 esac
17644 dynamic_linker='Win32 ld.exe'
17645 # FIXME: first we should search . and the directory the executable is in
17646 shlibpath_var=PATH
17649 darwin* | rhapsody*)
17650 dynamic_linker="$host_os dyld"
17651 version_type=darwin
17652 need_lib_prefix=no
17653 need_version=no
17654 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17655 soname_spec='${libname}${release}${major}$shared_ext'
17656 shlibpath_overrides_runpath=yes
17657 shlibpath_var=DYLD_LIBRARY_PATH
17658 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17660 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17661 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17664 dgux*)
17665 version_type=linux
17666 need_lib_prefix=no
17667 need_version=no
17668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17669 soname_spec='${libname}${release}${shared_ext}$major'
17670 shlibpath_var=LD_LIBRARY_PATH
17673 freebsd* | dragonfly*)
17674 # DragonFly does not have aout. When/if they implement a new
17675 # versioning mechanism, adjust this.
17676 if test -x /usr/bin/objformat; then
17677 objformat=`/usr/bin/objformat`
17678 else
17679 case $host_os in
17680 freebsd[23].*) objformat=aout ;;
17681 *) objformat=elf ;;
17682 esac
17684 version_type=freebsd-$objformat
17685 case $version_type in
17686 freebsd-elf*)
17687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17688 need_version=no
17689 need_lib_prefix=no
17691 freebsd-*)
17692 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17693 need_version=yes
17695 esac
17696 shlibpath_var=LD_LIBRARY_PATH
17697 case $host_os in
17698 freebsd2.*)
17699 shlibpath_overrides_runpath=yes
17701 freebsd3.[01]* | freebsdelf3.[01]*)
17702 shlibpath_overrides_runpath=yes
17703 hardcode_into_libs=yes
17705 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17706 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17707 shlibpath_overrides_runpath=no
17708 hardcode_into_libs=yes
17710 *) # from 4.6 on, and DragonFly
17711 shlibpath_overrides_runpath=yes
17712 hardcode_into_libs=yes
17714 esac
17717 gnu*)
17718 version_type=linux
17719 need_lib_prefix=no
17720 need_version=no
17721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17722 soname_spec='${libname}${release}${shared_ext}$major'
17723 shlibpath_var=LD_LIBRARY_PATH
17724 hardcode_into_libs=yes
17727 haiku*)
17728 version_type=linux
17729 need_lib_prefix=no
17730 need_version=no
17731 dynamic_linker="$host_os runtime_loader"
17732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17733 soname_spec='${libname}${release}${shared_ext}$major'
17734 shlibpath_var=LIBRARY_PATH
17735 shlibpath_overrides_runpath=yes
17736 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17737 hardcode_into_libs=yes
17740 hpux9* | hpux10* | hpux11*)
17741 # Give a soname corresponding to the major version so that dld.sl refuses to
17742 # link against other versions.
17743 version_type=sunos
17744 need_lib_prefix=no
17745 need_version=no
17746 case $host_cpu in
17747 ia64*)
17748 shrext_cmds='.so'
17749 hardcode_into_libs=yes
17750 dynamic_linker="$host_os dld.so"
17751 shlibpath_var=LD_LIBRARY_PATH
17752 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17754 soname_spec='${libname}${release}${shared_ext}$major'
17755 if test "X$HPUX_IA64_MODE" = X32; then
17756 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17757 else
17758 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17760 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17762 hppa*64*)
17763 shrext_cmds='.sl'
17764 hardcode_into_libs=yes
17765 dynamic_linker="$host_os dld.sl"
17766 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17767 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17769 soname_spec='${libname}${release}${shared_ext}$major'
17770 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17771 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17774 shrext_cmds='.sl'
17775 dynamic_linker="$host_os dld.sl"
17776 shlibpath_var=SHLIB_PATH
17777 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17779 soname_spec='${libname}${release}${shared_ext}$major'
17781 esac
17782 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17783 postinstall_cmds='chmod 555 $lib'
17784 # or fails outright, so override atomically:
17785 install_override_mode=555
17788 interix[3-9]*)
17789 version_type=linux
17790 need_lib_prefix=no
17791 need_version=no
17792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17793 soname_spec='${libname}${release}${shared_ext}$major'
17794 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17795 shlibpath_var=LD_LIBRARY_PATH
17796 shlibpath_overrides_runpath=no
17797 hardcode_into_libs=yes
17800 irix5* | irix6* | nonstopux*)
17801 case $host_os in
17802 nonstopux*) version_type=nonstopux ;;
17804 if test "$lt_cv_prog_gnu_ld" = yes; then
17805 version_type=linux
17806 else
17807 version_type=irix
17808 fi ;;
17809 esac
17810 need_lib_prefix=no
17811 need_version=no
17812 soname_spec='${libname}${release}${shared_ext}$major'
17813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17814 case $host_os in
17815 irix5* | nonstopux*)
17816 libsuff= shlibsuff=
17819 case $LD in # libtool.m4 will add one of these switches to LD
17820 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17821 libsuff= shlibsuff= libmagic=32-bit;;
17822 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17823 libsuff=32 shlibsuff=N32 libmagic=N32;;
17824 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17825 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17826 *) libsuff= shlibsuff= libmagic=never-match;;
17827 esac
17829 esac
17830 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17831 shlibpath_overrides_runpath=no
17832 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17833 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17834 hardcode_into_libs=yes
17837 # No shared lib support for Linux oldld, aout, or coff.
17838 linux*oldld* | linux*aout* | linux*coff*)
17839 dynamic_linker=no
17842 # This must be Linux ELF.
17843 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17844 version_type=linux
17845 need_lib_prefix=no
17846 need_version=no
17847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17848 soname_spec='${libname}${release}${shared_ext}$major'
17849 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17850 shlibpath_var=LD_LIBRARY_PATH
17851 shlibpath_overrides_runpath=no
17853 # Some binutils ld are patched to set DT_RUNPATH
17854 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17855 $as_echo_n "(cached) " >&6
17856 else
17857 lt_cv_shlibpath_overrides_runpath=no
17858 save_LDFLAGS=$LDFLAGS
17859 save_libdir=$libdir
17860 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17861 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17863 /* end confdefs.h. */
17866 main ()
17870 return 0;
17872 _ACEOF
17873 if ac_fn_c_try_link "$LINENO"; then :
17874 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17875 lt_cv_shlibpath_overrides_runpath=yes
17878 rm -f core conftest.err conftest.$ac_objext \
17879 conftest$ac_exeext conftest.$ac_ext
17880 LDFLAGS=$save_LDFLAGS
17881 libdir=$save_libdir
17885 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17887 # This implies no fast_install, which is unacceptable.
17888 # Some rework will be needed to allow for fast_install
17889 # before this can be enabled.
17890 hardcode_into_libs=yes
17892 # Append ld.so.conf contents to the search path
17893 if test -f /etc/ld.so.conf; then
17894 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' ' '`
17895 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17898 # We used to test for /lib/ld.so.1 and disable shared libraries on
17899 # powerpc, because MkLinux only supported shared libraries with the
17900 # GNU dynamic linker. Since this was broken with cross compilers,
17901 # most powerpc-linux boxes support dynamic linking these days and
17902 # people can always --disable-shared, the test was removed, and we
17903 # assume the GNU/Linux dynamic linker is in use.
17904 dynamic_linker='GNU/Linux ld.so'
17907 netbsd*)
17908 version_type=sunos
17909 need_lib_prefix=no
17910 need_version=no
17911 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17913 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17914 dynamic_linker='NetBSD (a.out) ld.so'
17915 else
17916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17917 soname_spec='${libname}${release}${shared_ext}$major'
17918 dynamic_linker='NetBSD ld.elf_so'
17920 shlibpath_var=LD_LIBRARY_PATH
17921 shlibpath_overrides_runpath=yes
17922 hardcode_into_libs=yes
17925 newsos6)
17926 version_type=linux
17927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17928 shlibpath_var=LD_LIBRARY_PATH
17929 shlibpath_overrides_runpath=yes
17932 *nto* | *qnx*)
17933 version_type=qnx
17934 need_lib_prefix=no
17935 need_version=no
17936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17937 soname_spec='${libname}${release}${shared_ext}$major'
17938 shlibpath_var=LD_LIBRARY_PATH
17939 shlibpath_overrides_runpath=no
17940 hardcode_into_libs=yes
17941 dynamic_linker='ldqnx.so'
17944 openbsd*)
17945 version_type=sunos
17946 sys_lib_dlsearch_path_spec="/usr/lib"
17947 need_lib_prefix=no
17948 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17949 case $host_os in
17950 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17951 *) need_version=no ;;
17952 esac
17953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17954 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17955 shlibpath_var=LD_LIBRARY_PATH
17956 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17957 case $host_os in
17958 openbsd2.[89] | openbsd2.[89].*)
17959 shlibpath_overrides_runpath=no
17962 shlibpath_overrides_runpath=yes
17964 esac
17965 else
17966 shlibpath_overrides_runpath=yes
17970 os2*)
17971 libname_spec='$name'
17972 shrext_cmds=".dll"
17973 need_lib_prefix=no
17974 library_names_spec='$libname${shared_ext} $libname.a'
17975 dynamic_linker='OS/2 ld.exe'
17976 shlibpath_var=LIBPATH
17979 osf3* | osf4* | osf5*)
17980 version_type=osf
17981 need_lib_prefix=no
17982 need_version=no
17983 soname_spec='${libname}${release}${shared_ext}$major'
17984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17985 shlibpath_var=LD_LIBRARY_PATH
17986 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17987 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17990 rdos*)
17991 dynamic_linker=no
17994 solaris*)
17995 version_type=linux
17996 need_lib_prefix=no
17997 need_version=no
17998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17999 soname_spec='${libname}${release}${shared_ext}$major'
18000 shlibpath_var=LD_LIBRARY_PATH
18001 shlibpath_overrides_runpath=yes
18002 hardcode_into_libs=yes
18003 # ldd complains unless libraries are executable
18004 postinstall_cmds='chmod +x $lib'
18007 sunos4*)
18008 version_type=sunos
18009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18010 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18011 shlibpath_var=LD_LIBRARY_PATH
18012 shlibpath_overrides_runpath=yes
18013 if test "$with_gnu_ld" = yes; then
18014 need_lib_prefix=no
18016 need_version=yes
18019 sysv4 | sysv4.3*)
18020 version_type=linux
18021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18022 soname_spec='${libname}${release}${shared_ext}$major'
18023 shlibpath_var=LD_LIBRARY_PATH
18024 case $host_vendor in
18025 sni)
18026 shlibpath_overrides_runpath=no
18027 need_lib_prefix=no
18028 runpath_var=LD_RUN_PATH
18030 siemens)
18031 need_lib_prefix=no
18033 motorola)
18034 need_lib_prefix=no
18035 need_version=no
18036 shlibpath_overrides_runpath=no
18037 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18039 esac
18042 sysv4*MP*)
18043 if test -d /usr/nec ;then
18044 version_type=linux
18045 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18046 soname_spec='$libname${shared_ext}.$major'
18047 shlibpath_var=LD_LIBRARY_PATH
18051 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18052 version_type=freebsd-elf
18053 need_lib_prefix=no
18054 need_version=no
18055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18056 soname_spec='${libname}${release}${shared_ext}$major'
18057 shlibpath_var=LD_LIBRARY_PATH
18058 shlibpath_overrides_runpath=yes
18059 hardcode_into_libs=yes
18060 if test "$with_gnu_ld" = yes; then
18061 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18062 else
18063 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18064 case $host_os in
18065 sco3.2v5*)
18066 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18068 esac
18070 sys_lib_dlsearch_path_spec='/usr/lib'
18073 tpf*)
18074 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18075 version_type=linux
18076 need_lib_prefix=no
18077 need_version=no
18078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18079 shlibpath_var=LD_LIBRARY_PATH
18080 shlibpath_overrides_runpath=no
18081 hardcode_into_libs=yes
18084 uts4*)
18085 version_type=linux
18086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18087 soname_spec='${libname}${release}${shared_ext}$major'
18088 shlibpath_var=LD_LIBRARY_PATH
18092 dynamic_linker=no
18094 esac
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18096 $as_echo "$dynamic_linker" >&6; }
18097 test "$dynamic_linker" = no && can_build_shared=no
18099 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18100 if test "$GCC" = yes; then
18101 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18104 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18105 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18107 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18108 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18203 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18204 hardcode_action=
18205 if test -n "$hardcode_libdir_flag_spec" ||
18206 test -n "$runpath_var" ||
18207 test "X$hardcode_automatic" = "Xyes" ; then
18209 # We can hardcode non-existent directories.
18210 if test "$hardcode_direct" != no &&
18211 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18212 # have to relink, otherwise we might link with an installed library
18213 # when we should be linking with a yet-to-be-installed one
18214 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18215 test "$hardcode_minus_L" != no; then
18216 # Linking always hardcodes the temporary library directory.
18217 hardcode_action=relink
18218 else
18219 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18220 hardcode_action=immediate
18222 else
18223 # We cannot hardcode anything, or else we can only hardcode existing
18224 # directories.
18225 hardcode_action=unsupported
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18228 $as_echo "$hardcode_action" >&6; }
18230 if test "$hardcode_action" = relink ||
18231 test "$inherit_rpath" = yes; then
18232 # Fast installation is not supported
18233 enable_fast_install=no
18234 elif test "$shlibpath_overrides_runpath" = yes ||
18235 test "$enable_shared" = no; then
18236 # Fast installation is not necessary
18237 enable_fast_install=needless
18245 if test "x$enable_dlopen" != xyes; then
18246 enable_dlopen=unknown
18247 enable_dlopen_self=unknown
18248 enable_dlopen_self_static=unknown
18249 else
18250 lt_cv_dlopen=no
18251 lt_cv_dlopen_libs=
18253 case $host_os in
18254 beos*)
18255 lt_cv_dlopen="load_add_on"
18256 lt_cv_dlopen_libs=
18257 lt_cv_dlopen_self=yes
18260 mingw* | pw32* | cegcc*)
18261 lt_cv_dlopen="LoadLibrary"
18262 lt_cv_dlopen_libs=
18265 cygwin*)
18266 lt_cv_dlopen="dlopen"
18267 lt_cv_dlopen_libs=
18270 darwin*)
18271 # if libdl is installed we need to link against it
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18273 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18274 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18275 $as_echo_n "(cached) " >&6
18276 else
18277 ac_check_lib_save_LIBS=$LIBS
18278 LIBS="-ldl $LIBS"
18279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18280 /* end confdefs.h. */
18282 /* Override any GCC internal prototype to avoid an error.
18283 Use char because int might match the return type of a GCC
18284 builtin and then its argument prototype would still apply. */
18285 #ifdef __cplusplus
18286 extern "C"
18287 #endif
18288 char dlopen ();
18290 main ()
18292 return dlopen ();
18294 return 0;
18296 _ACEOF
18297 if ac_fn_c_try_link "$LINENO"; then :
18298 ac_cv_lib_dl_dlopen=yes
18299 else
18300 ac_cv_lib_dl_dlopen=no
18302 rm -f core conftest.err conftest.$ac_objext \
18303 conftest$ac_exeext conftest.$ac_ext
18304 LIBS=$ac_check_lib_save_LIBS
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18307 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18308 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18309 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18310 else
18312 lt_cv_dlopen="dyld"
18313 lt_cv_dlopen_libs=
18314 lt_cv_dlopen_self=yes
18321 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18322 if test "x$ac_cv_func_shl_load" = x""yes; then :
18323 lt_cv_dlopen="shl_load"
18324 else
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18326 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18327 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18328 $as_echo_n "(cached) " >&6
18329 else
18330 ac_check_lib_save_LIBS=$LIBS
18331 LIBS="-ldld $LIBS"
18332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18333 /* end confdefs.h. */
18335 /* Override any GCC internal prototype to avoid an error.
18336 Use char because int might match the return type of a GCC
18337 builtin and then its argument prototype would still apply. */
18338 #ifdef __cplusplus
18339 extern "C"
18340 #endif
18341 char shl_load ();
18343 main ()
18345 return shl_load ();
18347 return 0;
18349 _ACEOF
18350 if ac_fn_c_try_link "$LINENO"; then :
18351 ac_cv_lib_dld_shl_load=yes
18352 else
18353 ac_cv_lib_dld_shl_load=no
18355 rm -f core conftest.err conftest.$ac_objext \
18356 conftest$ac_exeext conftest.$ac_ext
18357 LIBS=$ac_check_lib_save_LIBS
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18360 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18361 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18362 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18363 else
18364 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18365 if test "x$ac_cv_func_dlopen" = x""yes; then :
18366 lt_cv_dlopen="dlopen"
18367 else
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18369 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18370 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18371 $as_echo_n "(cached) " >&6
18372 else
18373 ac_check_lib_save_LIBS=$LIBS
18374 LIBS="-ldl $LIBS"
18375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18376 /* end confdefs.h. */
18378 /* Override any GCC internal prototype to avoid an error.
18379 Use char because int might match the return type of a GCC
18380 builtin and then its argument prototype would still apply. */
18381 #ifdef __cplusplus
18382 extern "C"
18383 #endif
18384 char dlopen ();
18386 main ()
18388 return dlopen ();
18390 return 0;
18392 _ACEOF
18393 if ac_fn_c_try_link "$LINENO"; then :
18394 ac_cv_lib_dl_dlopen=yes
18395 else
18396 ac_cv_lib_dl_dlopen=no
18398 rm -f core conftest.err conftest.$ac_objext \
18399 conftest$ac_exeext conftest.$ac_ext
18400 LIBS=$ac_check_lib_save_LIBS
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18403 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18404 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18405 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18406 else
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18408 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18409 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18410 $as_echo_n "(cached) " >&6
18411 else
18412 ac_check_lib_save_LIBS=$LIBS
18413 LIBS="-lsvld $LIBS"
18414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18415 /* end confdefs.h. */
18417 /* Override any GCC internal prototype to avoid an error.
18418 Use char because int might match the return type of a GCC
18419 builtin and then its argument prototype would still apply. */
18420 #ifdef __cplusplus
18421 extern "C"
18422 #endif
18423 char dlopen ();
18425 main ()
18427 return dlopen ();
18429 return 0;
18431 _ACEOF
18432 if ac_fn_c_try_link "$LINENO"; then :
18433 ac_cv_lib_svld_dlopen=yes
18434 else
18435 ac_cv_lib_svld_dlopen=no
18437 rm -f core conftest.err conftest.$ac_objext \
18438 conftest$ac_exeext conftest.$ac_ext
18439 LIBS=$ac_check_lib_save_LIBS
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18442 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18443 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18444 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18445 else
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18447 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18448 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18449 $as_echo_n "(cached) " >&6
18450 else
18451 ac_check_lib_save_LIBS=$LIBS
18452 LIBS="-ldld $LIBS"
18453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18454 /* end confdefs.h. */
18456 /* Override any GCC internal prototype to avoid an error.
18457 Use char because int might match the return type of a GCC
18458 builtin and then its argument prototype would still apply. */
18459 #ifdef __cplusplus
18460 extern "C"
18461 #endif
18462 char dld_link ();
18464 main ()
18466 return dld_link ();
18468 return 0;
18470 _ACEOF
18471 if ac_fn_c_try_link "$LINENO"; then :
18472 ac_cv_lib_dld_dld_link=yes
18473 else
18474 ac_cv_lib_dld_dld_link=no
18476 rm -f core conftest.err conftest.$ac_objext \
18477 conftest$ac_exeext conftest.$ac_ext
18478 LIBS=$ac_check_lib_save_LIBS
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18481 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18482 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18483 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18502 esac
18504 if test "x$lt_cv_dlopen" != xno; then
18505 enable_dlopen=yes
18506 else
18507 enable_dlopen=no
18510 case $lt_cv_dlopen in
18511 dlopen)
18512 save_CPPFLAGS="$CPPFLAGS"
18513 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18515 save_LDFLAGS="$LDFLAGS"
18516 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18518 save_LIBS="$LIBS"
18519 LIBS="$lt_cv_dlopen_libs $LIBS"
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18522 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18523 if test "${lt_cv_dlopen_self+set}" = set; then :
18524 $as_echo_n "(cached) " >&6
18525 else
18526 if test "$cross_compiling" = yes; then :
18527 lt_cv_dlopen_self=cross
18528 else
18529 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18530 lt_status=$lt_dlunknown
18531 cat > conftest.$ac_ext <<_LT_EOF
18532 #line 18532 "configure"
18533 #include "confdefs.h"
18535 #if HAVE_DLFCN_H
18536 #include <dlfcn.h>
18537 #endif
18539 #include <stdio.h>
18541 #ifdef RTLD_GLOBAL
18542 # define LT_DLGLOBAL RTLD_GLOBAL
18543 #else
18544 # ifdef DL_GLOBAL
18545 # define LT_DLGLOBAL DL_GLOBAL
18546 # else
18547 # define LT_DLGLOBAL 0
18548 # endif
18549 #endif
18551 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18552 find out it does not work in some platform. */
18553 #ifndef LT_DLLAZY_OR_NOW
18554 # ifdef RTLD_LAZY
18555 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18556 # else
18557 # ifdef DL_LAZY
18558 # define LT_DLLAZY_OR_NOW DL_LAZY
18559 # else
18560 # ifdef RTLD_NOW
18561 # define LT_DLLAZY_OR_NOW RTLD_NOW
18562 # else
18563 # ifdef DL_NOW
18564 # define LT_DLLAZY_OR_NOW DL_NOW
18565 # else
18566 # define LT_DLLAZY_OR_NOW 0
18567 # endif
18568 # endif
18569 # endif
18570 # endif
18571 #endif
18573 /* When -fvisbility=hidden is used, assume the code has been annotated
18574 correspondingly for the symbols needed. */
18575 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18576 void fnord () __attribute__((visibility("default")));
18577 #endif
18579 void fnord () { int i=42; }
18580 int main ()
18582 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18583 int status = $lt_dlunknown;
18585 if (self)
18587 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18588 else
18590 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18591 else puts (dlerror ());
18593 /* dlclose (self); */
18595 else
18596 puts (dlerror ());
18598 return status;
18600 _LT_EOF
18601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18602 (eval $ac_link) 2>&5
18603 ac_status=$?
18604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18605 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18606 (./conftest; exit; ) >&5 2>/dev/null
18607 lt_status=$?
18608 case x$lt_status in
18609 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18610 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18611 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18612 esac
18613 else :
18614 # compilation failed
18615 lt_cv_dlopen_self=no
18618 rm -fr conftest*
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18623 $as_echo "$lt_cv_dlopen_self" >&6; }
18625 if test "x$lt_cv_dlopen_self" = xyes; then
18626 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18628 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18629 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18630 $as_echo_n "(cached) " >&6
18631 else
18632 if test "$cross_compiling" = yes; then :
18633 lt_cv_dlopen_self_static=cross
18634 else
18635 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18636 lt_status=$lt_dlunknown
18637 cat > conftest.$ac_ext <<_LT_EOF
18638 #line 18638 "configure"
18639 #include "confdefs.h"
18641 #if HAVE_DLFCN_H
18642 #include <dlfcn.h>
18643 #endif
18645 #include <stdio.h>
18647 #ifdef RTLD_GLOBAL
18648 # define LT_DLGLOBAL RTLD_GLOBAL
18649 #else
18650 # ifdef DL_GLOBAL
18651 # define LT_DLGLOBAL DL_GLOBAL
18652 # else
18653 # define LT_DLGLOBAL 0
18654 # endif
18655 #endif
18657 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18658 find out it does not work in some platform. */
18659 #ifndef LT_DLLAZY_OR_NOW
18660 # ifdef RTLD_LAZY
18661 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18662 # else
18663 # ifdef DL_LAZY
18664 # define LT_DLLAZY_OR_NOW DL_LAZY
18665 # else
18666 # ifdef RTLD_NOW
18667 # define LT_DLLAZY_OR_NOW RTLD_NOW
18668 # else
18669 # ifdef DL_NOW
18670 # define LT_DLLAZY_OR_NOW DL_NOW
18671 # else
18672 # define LT_DLLAZY_OR_NOW 0
18673 # endif
18674 # endif
18675 # endif
18676 # endif
18677 #endif
18679 /* When -fvisbility=hidden is used, assume the code has been annotated
18680 correspondingly for the symbols needed. */
18681 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18682 void fnord () __attribute__((visibility("default")));
18683 #endif
18685 void fnord () { int i=42; }
18686 int main ()
18688 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18689 int status = $lt_dlunknown;
18691 if (self)
18693 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18694 else
18696 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18697 else puts (dlerror ());
18699 /* dlclose (self); */
18701 else
18702 puts (dlerror ());
18704 return status;
18706 _LT_EOF
18707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18708 (eval $ac_link) 2>&5
18709 ac_status=$?
18710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18711 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18712 (./conftest; exit; ) >&5 2>/dev/null
18713 lt_status=$?
18714 case x$lt_status in
18715 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18716 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18717 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18718 esac
18719 else :
18720 # compilation failed
18721 lt_cv_dlopen_self_static=no
18724 rm -fr conftest*
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18729 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18732 CPPFLAGS="$save_CPPFLAGS"
18733 LDFLAGS="$save_LDFLAGS"
18734 LIBS="$save_LIBS"
18736 esac
18738 case $lt_cv_dlopen_self in
18739 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18740 *) enable_dlopen_self=unknown ;;
18741 esac
18743 case $lt_cv_dlopen_self_static in
18744 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18745 *) enable_dlopen_self_static=unknown ;;
18746 esac
18765 striplib=
18766 old_striplib=
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18768 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18769 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18770 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18771 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18773 $as_echo "yes" >&6; }
18774 else
18775 # FIXME - insert some real tests, host_os isn't really good enough
18776 case $host_os in
18777 darwin*)
18778 if test -n "$STRIP" ; then
18779 striplib="$STRIP -x"
18780 old_striplib="$STRIP -S"
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18782 $as_echo "yes" >&6; }
18783 else
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18785 $as_echo "no" >&6; }
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18790 $as_echo "no" >&6; }
18792 esac
18806 # Report which library types will actually be built
18807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18808 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18810 $as_echo "$can_build_shared" >&6; }
18812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18813 $as_echo_n "checking whether to build shared libraries... " >&6; }
18814 test "$can_build_shared" = "no" && enable_shared=no
18816 # On AIX, shared libraries and static libraries use the same namespace, and
18817 # are all built from PIC.
18818 case $host_os in
18819 aix3*)
18820 test "$enable_shared" = yes && enable_static=no
18821 if test -n "$RANLIB"; then
18822 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18823 postinstall_cmds='$RANLIB $lib'
18827 aix[4-9]*)
18828 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18829 test "$enable_shared" = yes && enable_static=no
18832 esac
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18834 $as_echo "$enable_shared" >&6; }
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18837 $as_echo_n "checking whether to build static libraries... " >&6; }
18838 # Make sure either enable_shared or enable_static is yes.
18839 test "$enable_shared" = yes || enable_static=yes
18840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18841 $as_echo "$enable_static" >&6; }
18847 ac_ext=cpp
18848 ac_cpp='$CXXCPP $CPPFLAGS'
18849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18853 CC="$lt_save_CC"
18855 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18856 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18857 (test "X$CXX" != "Xg++"))) ; then
18858 ac_ext=cpp
18859 ac_cpp='$CXXCPP $CPPFLAGS'
18860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18864 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18865 if test -z "$CXXCPP"; then
18866 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18867 $as_echo_n "(cached) " >&6
18868 else
18869 # Double quotes because CXXCPP needs to be expanded
18870 for CXXCPP in "$CXX -E" "/lib/cpp"
18872 ac_preproc_ok=false
18873 for ac_cxx_preproc_warn_flag in '' yes
18875 # Use a header file that comes with gcc, so configuring glibc
18876 # with a fresh cross-compiler works.
18877 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18878 # <limits.h> exists even on freestanding compilers.
18879 # On the NeXT, cc -E runs the code through the compiler's parser,
18880 # not just through cpp. "Syntax error" is here to catch this case.
18881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18882 /* end confdefs.h. */
18883 #ifdef __STDC__
18884 # include <limits.h>
18885 #else
18886 # include <assert.h>
18887 #endif
18888 Syntax error
18889 _ACEOF
18890 if ac_fn_cxx_try_cpp "$LINENO"; then :
18892 else
18893 # Broken: fails on valid input.
18894 continue
18896 rm -f conftest.err conftest.$ac_ext
18898 # OK, works on sane cases. Now check whether nonexistent headers
18899 # can be detected and how.
18900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18901 /* end confdefs.h. */
18902 #include <ac_nonexistent.h>
18903 _ACEOF
18904 if ac_fn_cxx_try_cpp "$LINENO"; then :
18905 # Broken: success on invalid input.
18906 continue
18907 else
18908 # Passes both tests.
18909 ac_preproc_ok=:
18910 break
18912 rm -f conftest.err conftest.$ac_ext
18914 done
18915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18916 rm -f conftest.err conftest.$ac_ext
18917 if $ac_preproc_ok; then :
18918 break
18921 done
18922 ac_cv_prog_CXXCPP=$CXXCPP
18925 CXXCPP=$ac_cv_prog_CXXCPP
18926 else
18927 ac_cv_prog_CXXCPP=$CXXCPP
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18930 $as_echo "$CXXCPP" >&6; }
18931 ac_preproc_ok=false
18932 for ac_cxx_preproc_warn_flag in '' yes
18934 # Use a header file that comes with gcc, so configuring glibc
18935 # with a fresh cross-compiler works.
18936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18937 # <limits.h> exists even on freestanding compilers.
18938 # On the NeXT, cc -E runs the code through the compiler's parser,
18939 # not just through cpp. "Syntax error" is here to catch this case.
18940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18941 /* end confdefs.h. */
18942 #ifdef __STDC__
18943 # include <limits.h>
18944 #else
18945 # include <assert.h>
18946 #endif
18947 Syntax error
18948 _ACEOF
18949 if ac_fn_cxx_try_cpp "$LINENO"; then :
18951 else
18952 # Broken: fails on valid input.
18953 continue
18955 rm -f conftest.err conftest.$ac_ext
18957 # OK, works on sane cases. Now check whether nonexistent headers
18958 # can be detected and how.
18959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18960 /* end confdefs.h. */
18961 #include <ac_nonexistent.h>
18962 _ACEOF
18963 if ac_fn_cxx_try_cpp "$LINENO"; then :
18964 # Broken: success on invalid input.
18965 continue
18966 else
18967 # Passes both tests.
18968 ac_preproc_ok=:
18969 break
18971 rm -f conftest.err conftest.$ac_ext
18973 done
18974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18975 rm -f conftest.err conftest.$ac_ext
18976 if $ac_preproc_ok; then :
18978 else
18979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18981 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18982 See \`config.log' for more details." "$LINENO" 5; }
18985 ac_ext=cpp
18986 ac_cpp='$CXXCPP $CPPFLAGS'
18987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18991 else
18992 _lt_caught_CXX_error=yes
18995 ac_ext=cpp
18996 ac_cpp='$CXXCPP $CPPFLAGS'
18997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19001 archive_cmds_need_lc_CXX=no
19002 allow_undefined_flag_CXX=
19003 always_export_symbols_CXX=no
19004 archive_expsym_cmds_CXX=
19005 compiler_needs_object_CXX=no
19006 export_dynamic_flag_spec_CXX=
19007 hardcode_direct_CXX=no
19008 hardcode_direct_absolute_CXX=no
19009 hardcode_libdir_flag_spec_CXX=
19010 hardcode_libdir_flag_spec_ld_CXX=
19011 hardcode_libdir_separator_CXX=
19012 hardcode_minus_L_CXX=no
19013 hardcode_shlibpath_var_CXX=unsupported
19014 hardcode_automatic_CXX=no
19015 inherit_rpath_CXX=no
19016 module_cmds_CXX=
19017 module_expsym_cmds_CXX=
19018 link_all_deplibs_CXX=unknown
19019 old_archive_cmds_CXX=$old_archive_cmds
19020 reload_flag_CXX=$reload_flag
19021 reload_cmds_CXX=$reload_cmds
19022 no_undefined_flag_CXX=
19023 whole_archive_flag_spec_CXX=
19024 enable_shared_with_static_runtimes_CXX=no
19026 # Source file extension for C++ test sources.
19027 ac_ext=cpp
19029 # Object file extension for compiled C++ test sources.
19030 objext=o
19031 objext_CXX=$objext
19033 # No sense in running all these tests if we already determined that
19034 # the CXX compiler isn't working. Some variables (like enable_shared)
19035 # are currently assumed to apply to all compilers on this platform,
19036 # and will be corrupted by setting them based on a non-working compiler.
19037 if test "$_lt_caught_CXX_error" != yes; then
19038 # Code to be used in simple compile tests
19039 lt_simple_compile_test_code="int some_variable = 0;"
19041 # Code to be used in simple link tests
19042 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19044 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19051 # If no C compiler was specified, use CC.
19052 LTCC=${LTCC-"$CC"}
19054 # If no C compiler flags were specified, use CFLAGS.
19055 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19057 # Allow CC to be a program name with arguments.
19058 compiler=$CC
19061 # save warnings/boilerplate of simple test code
19062 ac_outfile=conftest.$ac_objext
19063 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19064 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19065 _lt_compiler_boilerplate=`cat conftest.err`
19066 $RM conftest*
19068 ac_outfile=conftest.$ac_objext
19069 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19070 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19071 _lt_linker_boilerplate=`cat conftest.err`
19072 $RM -r conftest*
19075 # Allow CC to be a program name with arguments.
19076 lt_save_CC=$CC
19077 lt_save_LD=$LD
19078 lt_save_GCC=$GCC
19079 GCC=$GXX
19080 lt_save_with_gnu_ld=$with_gnu_ld
19081 lt_save_path_LD=$lt_cv_path_LD
19082 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19083 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19084 else
19085 $as_unset lt_cv_prog_gnu_ld
19087 if test -n "${lt_cv_path_LDCXX+set}"; then
19088 lt_cv_path_LD=$lt_cv_path_LDCXX
19089 else
19090 $as_unset lt_cv_path_LD
19092 test -z "${LDCXX+set}" || LD=$LDCXX
19093 CC=${CXX-"c++"}
19094 compiler=$CC
19095 compiler_CXX=$CC
19096 for cc_temp in $compiler""; do
19097 case $cc_temp in
19098 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19099 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19100 \-*) ;;
19101 *) break;;
19102 esac
19103 done
19104 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19107 if test -n "$compiler"; then
19108 # We don't want -fno-exception when compiling C++ code, so set the
19109 # no_builtin_flag separately
19110 if test "$GXX" = yes; then
19111 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19112 else
19113 lt_prog_compiler_no_builtin_flag_CXX=
19116 if test "$GXX" = yes; then
19117 # Set up default GNU C++ configuration
19121 # Check whether --with-gnu-ld was given.
19122 if test "${with_gnu_ld+set}" = set; then :
19123 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19124 else
19125 with_gnu_ld=no
19128 ac_prog=ld
19129 if test "$GCC" = yes; then
19130 # Check if gcc -print-prog-name=ld gives a path.
19131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19132 $as_echo_n "checking for ld used by $CC... " >&6; }
19133 case $host in
19134 *-*-mingw*)
19135 # gcc leaves a trailing carriage return which upsets mingw
19136 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19138 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19139 esac
19140 case $ac_prog in
19141 # Accept absolute paths.
19142 [\\/]* | ?:[\\/]*)
19143 re_direlt='/[^/][^/]*/\.\./'
19144 # Canonicalize the pathname of ld
19145 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19146 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19147 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19148 done
19149 test -z "$LD" && LD="$ac_prog"
19152 # If it fails, then pretend we aren't using GCC.
19153 ac_prog=ld
19156 # If it is relative, then search for the first ld in PATH.
19157 with_gnu_ld=unknown
19159 esac
19160 elif test "$with_gnu_ld" = yes; then
19161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19162 $as_echo_n "checking for GNU ld... " >&6; }
19163 else
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19165 $as_echo_n "checking for non-GNU ld... " >&6; }
19167 if test "${lt_cv_path_LD+set}" = set; then :
19168 $as_echo_n "(cached) " >&6
19169 else
19170 if test -z "$LD"; then
19171 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19172 for ac_dir in $PATH; do
19173 IFS="$lt_save_ifs"
19174 test -z "$ac_dir" && ac_dir=.
19175 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19176 lt_cv_path_LD="$ac_dir/$ac_prog"
19177 # Check to see if the program is GNU ld. I'd rather use --version,
19178 # but apparently some variants of GNU ld only accept -v.
19179 # Break only if it was the GNU/non-GNU ld that we prefer.
19180 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19181 *GNU* | *'with BFD'*)
19182 test "$with_gnu_ld" != no && break
19185 test "$with_gnu_ld" != yes && break
19187 esac
19189 done
19190 IFS="$lt_save_ifs"
19191 else
19192 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19196 LD="$lt_cv_path_LD"
19197 if test -n "$LD"; then
19198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19199 $as_echo "$LD" >&6; }
19200 else
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19202 $as_echo "no" >&6; }
19204 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19206 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19207 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19208 $as_echo_n "(cached) " >&6
19209 else
19210 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19211 case `$LD -v 2>&1 </dev/null` in
19212 *GNU* | *'with BFD'*)
19213 lt_cv_prog_gnu_ld=yes
19216 lt_cv_prog_gnu_ld=no
19218 esac
19220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19221 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19222 with_gnu_ld=$lt_cv_prog_gnu_ld
19230 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19231 # archiving commands below assume that GNU ld is being used.
19232 if test "$with_gnu_ld" = yes; then
19233 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19234 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'
19236 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19237 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19239 # If archive_cmds runs LD, not CC, wlarc should be empty
19240 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19241 # investigate it a little bit more. (MM)
19242 wlarc='${wl}'
19244 # ancient GNU ld didn't support --whole-archive et. al.
19245 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19246 $GREP 'no-whole-archive' > /dev/null; then
19247 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19248 else
19249 whole_archive_flag_spec_CXX=
19251 else
19252 with_gnu_ld=no
19253 wlarc=
19255 # A generic and very simple default shared library creation
19256 # command for GNU C++ for the case where it uses the native
19257 # linker, instead of GNU ld. If possible, this setting should
19258 # overridden to take advantage of the native linker features on
19259 # the platform it is being used on.
19260 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19263 # Commands to make compiler produce verbose output that lists
19264 # what "hidden" libraries, object files and flags are used when
19265 # linking a shared library.
19266 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19268 else
19269 GXX=no
19270 with_gnu_ld=no
19271 wlarc=
19274 # PORTME: fill in a description of your system's C++ link characteristics
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19276 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19277 ld_shlibs_CXX=yes
19278 case $host_os in
19279 aix3*)
19280 # FIXME: insert proper C++ library support
19281 ld_shlibs_CXX=no
19283 aix[4-9]*)
19284 if test "$host_cpu" = ia64; then
19285 # On IA64, the linker does run time linking by default, so we don't
19286 # have to do anything special.
19287 aix_use_runtimelinking=no
19288 exp_sym_flag='-Bexport'
19289 no_entry_flag=""
19290 else
19291 aix_use_runtimelinking=no
19293 # Test if we are trying to use run time linking or normal
19294 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19295 # need to do runtime linking.
19296 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19297 for ld_flag in $LDFLAGS; do
19298 case $ld_flag in
19299 *-brtl*)
19300 aix_use_runtimelinking=yes
19301 break
19303 esac
19304 done
19306 esac
19308 exp_sym_flag='-bexport'
19309 no_entry_flag='-bnoentry'
19312 # When large executables or shared objects are built, AIX ld can
19313 # have problems creating the table of contents. If linking a library
19314 # or program results in "error TOC overflow" add -mminimal-toc to
19315 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19316 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19318 archive_cmds_CXX=''
19319 hardcode_direct_CXX=yes
19320 hardcode_direct_absolute_CXX=yes
19321 hardcode_libdir_separator_CXX=':'
19322 link_all_deplibs_CXX=yes
19323 file_list_spec_CXX='${wl}-f,'
19325 if test "$GXX" = yes; then
19326 case $host_os in aix4.[012]|aix4.[012].*)
19327 # We only want to do this on AIX 4.2 and lower, the check
19328 # below for broken collect2 doesn't work under 4.3+
19329 collect2name=`${CC} -print-prog-name=collect2`
19330 if test -f "$collect2name" &&
19331 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19332 then
19333 # We have reworked collect2
19335 else
19336 # We have old collect2
19337 hardcode_direct_CXX=unsupported
19338 # It fails to find uninstalled libraries when the uninstalled
19339 # path is not listed in the libpath. Setting hardcode_minus_L
19340 # to unsupported forces relinking
19341 hardcode_minus_L_CXX=yes
19342 hardcode_libdir_flag_spec_CXX='-L$libdir'
19343 hardcode_libdir_separator_CXX=
19345 esac
19346 shared_flag='-shared'
19347 if test "$aix_use_runtimelinking" = yes; then
19348 shared_flag="$shared_flag "'${wl}-G'
19350 else
19351 # not using gcc
19352 if test "$host_cpu" = ia64; then
19353 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19354 # chokes on -Wl,-G. The following line is correct:
19355 shared_flag='-G'
19356 else
19357 if test "$aix_use_runtimelinking" = yes; then
19358 shared_flag='${wl}-G'
19359 else
19360 shared_flag='${wl}-bM:SRE'
19365 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19366 # It seems that -bexpall does not export symbols beginning with
19367 # underscore (_), so it is better to generate a list of symbols to
19368 # export.
19369 always_export_symbols_CXX=yes
19370 if test "$aix_use_runtimelinking" = yes; then
19371 # Warning - without using the other runtime loading flags (-brtl),
19372 # -berok will link without error, but may produce a broken library.
19373 allow_undefined_flag_CXX='-berok'
19374 # Determine the default libpath from the value encoded in an empty
19375 # executable.
19376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19377 /* end confdefs.h. */
19380 main ()
19384 return 0;
19386 _ACEOF
19387 if ac_fn_cxx_try_link "$LINENO"; then :
19389 lt_aix_libpath_sed='
19390 /Import File Strings/,/^$/ {
19391 /^0/ {
19392 s/^0 *\(.*\)$/\1/
19396 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19397 # Check for a 64-bit object if we didn't find anything.
19398 if test -z "$aix_libpath"; then
19399 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19402 rm -f core conftest.err conftest.$ac_objext \
19403 conftest$ac_exeext conftest.$ac_ext
19404 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19406 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19408 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"
19409 else
19410 if test "$host_cpu" = ia64; then
19411 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19412 allow_undefined_flag_CXX="-z nodefs"
19413 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"
19414 else
19415 # Determine the default libpath from the value encoded in an
19416 # empty executable.
19417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19418 /* end confdefs.h. */
19421 main ()
19425 return 0;
19427 _ACEOF
19428 if ac_fn_cxx_try_link "$LINENO"; then :
19430 lt_aix_libpath_sed='
19431 /Import File Strings/,/^$/ {
19432 /^0/ {
19433 s/^0 *\(.*\)$/\1/
19437 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19438 # Check for a 64-bit object if we didn't find anything.
19439 if test -z "$aix_libpath"; then
19440 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19443 rm -f core conftest.err conftest.$ac_objext \
19444 conftest$ac_exeext conftest.$ac_ext
19445 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19447 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19448 # Warning - without using the other run time loading flags,
19449 # -berok will link without error, but may produce a broken library.
19450 no_undefined_flag_CXX=' ${wl}-bernotok'
19451 allow_undefined_flag_CXX=' ${wl}-berok'
19452 if test "$with_gnu_ld" = yes; then
19453 # We only use this code for GNU lds that support --whole-archive.
19454 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19455 else
19456 # Exported symbols can be pulled into shared objects from archives
19457 whole_archive_flag_spec_CXX='$convenience'
19459 archive_cmds_need_lc_CXX=yes
19460 # This is similar to how AIX traditionally builds its shared
19461 # libraries.
19462 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'
19467 beos*)
19468 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19469 allow_undefined_flag_CXX=unsupported
19470 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19471 # support --undefined. This deserves some investigation. FIXME
19472 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19473 else
19474 ld_shlibs_CXX=no
19478 chorus*)
19479 case $cc_basename in
19481 # FIXME: insert proper C++ library support
19482 ld_shlibs_CXX=no
19484 esac
19487 cygwin* | mingw* | pw32* | cegcc*)
19488 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19489 # as there is no search path for DLLs.
19490 hardcode_libdir_flag_spec_CXX='-L$libdir'
19491 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19492 allow_undefined_flag_CXX=unsupported
19493 always_export_symbols_CXX=no
19494 enable_shared_with_static_runtimes_CXX=yes
19496 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19497 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'
19498 # If the export-symbols file already is a .def file (1st line
19499 # is EXPORTS), use it as is; otherwise, prepend...
19500 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19501 cp $export_symbols $output_objdir/$soname.def;
19502 else
19503 echo EXPORTS > $output_objdir/$soname.def;
19504 cat $export_symbols >> $output_objdir/$soname.def;
19506 $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'
19507 else
19508 ld_shlibs_CXX=no
19511 darwin* | rhapsody*)
19514 archive_cmds_need_lc_CXX=no
19515 hardcode_direct_CXX=no
19516 hardcode_automatic_CXX=yes
19517 hardcode_shlibpath_var_CXX=unsupported
19518 if test "$lt_cv_ld_force_load" = "yes"; then
19519 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\"`'
19520 else
19521 whole_archive_flag_spec_CXX=''
19523 link_all_deplibs_CXX=yes
19524 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19525 case $cc_basename in
19526 ifort*) _lt_dar_can_shared=yes ;;
19527 *) _lt_dar_can_shared=$GCC ;;
19528 esac
19529 if test "$_lt_dar_can_shared" = "yes"; then
19530 output_verbose_link_cmd=func_echo_all
19531 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}"
19532 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19533 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}"
19534 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}"
19535 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19536 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}"
19537 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}"
19540 else
19541 ld_shlibs_CXX=no
19546 dgux*)
19547 case $cc_basename in
19548 ec++*)
19549 # FIXME: insert proper C++ library support
19550 ld_shlibs_CXX=no
19552 ghcx*)
19553 # Green Hills C++ Compiler
19554 # FIXME: insert proper C++ library support
19555 ld_shlibs_CXX=no
19558 # FIXME: insert proper C++ library support
19559 ld_shlibs_CXX=no
19561 esac
19564 freebsd2.*)
19565 # C++ shared libraries reported to be fairly broken before
19566 # switch to ELF
19567 ld_shlibs_CXX=no
19570 freebsd-elf*)
19571 archive_cmds_need_lc_CXX=no
19574 freebsd* | dragonfly*)
19575 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19576 # conventions
19577 ld_shlibs_CXX=yes
19580 gnu*)
19583 haiku*)
19584 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19585 link_all_deplibs_CXX=yes
19588 hpux9*)
19589 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19590 hardcode_libdir_separator_CXX=:
19591 export_dynamic_flag_spec_CXX='${wl}-E'
19592 hardcode_direct_CXX=yes
19593 hardcode_minus_L_CXX=yes # Not in the search PATH,
19594 # but as the default
19595 # location of the library.
19597 case $cc_basename in
19598 CC*)
19599 # FIXME: insert proper C++ library support
19600 ld_shlibs_CXX=no
19602 aCC*)
19603 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'
19604 # Commands to make compiler produce verbose output that lists
19605 # what "hidden" libraries, object files and flags are used when
19606 # linking a shared library.
19608 # There doesn't appear to be a way to prevent this compiler from
19609 # explicitly linking system object files so we need to strip them
19610 # from the output so that they don't get included in the library
19611 # dependencies.
19612 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"'
19615 if test "$GXX" = yes; then
19616 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'
19617 else
19618 # FIXME: insert proper C++ library support
19619 ld_shlibs_CXX=no
19622 esac
19625 hpux10*|hpux11*)
19626 if test $with_gnu_ld = no; then
19627 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19628 hardcode_libdir_separator_CXX=:
19630 case $host_cpu in
19631 hppa*64*|ia64*)
19634 export_dynamic_flag_spec_CXX='${wl}-E'
19636 esac
19638 case $host_cpu in
19639 hppa*64*|ia64*)
19640 hardcode_direct_CXX=no
19641 hardcode_shlibpath_var_CXX=no
19644 hardcode_direct_CXX=yes
19645 hardcode_direct_absolute_CXX=yes
19646 hardcode_minus_L_CXX=yes # Not in the search PATH,
19647 # but as the default
19648 # location of the library.
19650 esac
19652 case $cc_basename in
19653 CC*)
19654 # FIXME: insert proper C++ library support
19655 ld_shlibs_CXX=no
19657 aCC*)
19658 case $host_cpu in
19659 hppa*64*)
19660 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19662 ia64*)
19663 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19666 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19668 esac
19669 # Commands to make compiler produce verbose output that lists
19670 # what "hidden" libraries, object files and flags are used when
19671 # linking a shared library.
19673 # There doesn't appear to be a way to prevent this compiler from
19674 # explicitly linking system object files so we need to strip them
19675 # from the output so that they don't get included in the library
19676 # dependencies.
19677 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"'
19680 if test "$GXX" = yes; then
19681 if test $with_gnu_ld = no; then
19682 case $host_cpu in
19683 hppa*64*)
19684 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19686 ia64*)
19687 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19690 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'
19692 esac
19694 else
19695 # FIXME: insert proper C++ library support
19696 ld_shlibs_CXX=no
19699 esac
19702 interix[3-9]*)
19703 hardcode_direct_CXX=no
19704 hardcode_shlibpath_var_CXX=no
19705 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19706 export_dynamic_flag_spec_CXX='${wl}-E'
19707 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19708 # Instead, shared libraries are loaded at an image base (0x10000000 by
19709 # default) and relocated if they conflict, which is a slow very memory
19710 # consuming and fragmenting process. To avoid this, we pick a random,
19711 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19712 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19713 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'
19714 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'
19716 irix5* | irix6*)
19717 case $cc_basename in
19718 CC*)
19719 # SGI C++
19720 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'
19722 # Archives containing C++ object files must be created using
19723 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19724 # necessary to make sure instantiated templates are included
19725 # in the archive.
19726 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19729 if test "$GXX" = yes; then
19730 if test "$with_gnu_ld" = no; then
19731 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'
19732 else
19733 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'
19736 link_all_deplibs_CXX=yes
19738 esac
19739 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19740 hardcode_libdir_separator_CXX=:
19741 inherit_rpath_CXX=yes
19744 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19745 case $cc_basename in
19746 KCC*)
19747 # Kuck and Associates, Inc. (KAI) C++ Compiler
19749 # KCC will only create a shared library if the output file
19750 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19751 # to its proper name (with version) after linking.
19752 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'
19753 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'
19754 # Commands to make compiler produce verbose output that lists
19755 # what "hidden" libraries, object files and flags are used when
19756 # linking a shared library.
19758 # There doesn't appear to be a way to prevent this compiler from
19759 # explicitly linking system object files so we need to strip them
19760 # from the output so that they don't get included in the library
19761 # dependencies.
19762 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"'
19764 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19765 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19767 # Archives containing C++ object files must be created using
19768 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19769 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19771 icpc* | ecpc* )
19772 # Intel C++
19773 with_gnu_ld=yes
19774 # version 8.0 and above of icpc choke on multiply defined symbols
19775 # if we add $predep_objects and $postdep_objects, however 7.1 and
19776 # earlier do not add the objects themselves.
19777 case `$CC -V 2>&1` in
19778 *"Version 7."*)
19779 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19780 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'
19782 *) # Version 8.0 or newer
19783 tmp_idyn=
19784 case $host_cpu in
19785 ia64*) tmp_idyn=' -i_dynamic';;
19786 esac
19787 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19788 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'
19790 esac
19791 archive_cmds_need_lc_CXX=no
19792 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19793 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19794 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19796 pgCC* | pgcpp*)
19797 # Portland Group C++ compiler
19798 case `$CC -V` in
19799 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19800 prelink_cmds_CXX='tpldir=Template.dir~
19801 rm -rf $tpldir~
19802 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19803 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
19804 old_archive_cmds_CXX='tpldir=Template.dir~
19805 rm -rf $tpldir~
19806 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19807 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
19808 $RANLIB $oldlib'
19809 archive_cmds_CXX='tpldir=Template.dir~
19810 rm -rf $tpldir~
19811 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19812 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19813 archive_expsym_cmds_CXX='tpldir=Template.dir~
19814 rm -rf $tpldir~
19815 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19816 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19818 *) # Version 6 and above use weak symbols
19819 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19820 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'
19822 esac
19824 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19825 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19826 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'
19828 cxx*)
19829 # Compaq C++
19830 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19831 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'
19833 runpath_var=LD_RUN_PATH
19834 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19835 hardcode_libdir_separator_CXX=:
19837 # Commands to make compiler produce verbose output that lists
19838 # what "hidden" libraries, object files and flags are used when
19839 # linking a shared library.
19841 # There doesn't appear to be a way to prevent this compiler from
19842 # explicitly linking system object files so we need to strip them
19843 # from the output so that they don't get included in the library
19844 # dependencies.
19845 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'
19847 xl* | mpixl* | bgxl*)
19848 # IBM XL 8.0 on PPC, with GNU ld
19849 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19850 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19851 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19852 if test "x$supports_anon_versioning" = xyes; then
19853 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19854 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19855 echo "local: *; };" >> $output_objdir/$libname.ver~
19856 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19860 case `$CC -V 2>&1 | sed 5q` in
19861 *Sun\ C*)
19862 # Sun C++ 5.9
19863 no_undefined_flag_CXX=' -zdefs'
19864 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19865 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'
19866 hardcode_libdir_flag_spec_CXX='-R$libdir'
19867 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'
19868 compiler_needs_object_CXX=yes
19870 # Not sure whether something based on
19871 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19872 # would be better.
19873 output_verbose_link_cmd='func_echo_all'
19875 # Archives containing C++ object files must be created using
19876 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19877 # necessary to make sure instantiated templates are included
19878 # in the archive.
19879 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19881 esac
19883 esac
19886 lynxos*)
19887 # FIXME: insert proper C++ library support
19888 ld_shlibs_CXX=no
19891 m88k*)
19892 # FIXME: insert proper C++ library support
19893 ld_shlibs_CXX=no
19896 mvs*)
19897 case $cc_basename in
19898 cxx*)
19899 # FIXME: insert proper C++ library support
19900 ld_shlibs_CXX=no
19903 # FIXME: insert proper C++ library support
19904 ld_shlibs_CXX=no
19906 esac
19909 netbsd*)
19910 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19911 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19912 wlarc=
19913 hardcode_libdir_flag_spec_CXX='-R$libdir'
19914 hardcode_direct_CXX=yes
19915 hardcode_shlibpath_var_CXX=no
19917 # Workaround some broken pre-1.5 toolchains
19918 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19921 *nto* | *qnx*)
19922 ld_shlibs_CXX=yes
19925 openbsd2*)
19926 # C++ shared libraries are fairly broken
19927 ld_shlibs_CXX=no
19930 openbsd*)
19931 if test -f /usr/libexec/ld.so; then
19932 hardcode_direct_CXX=yes
19933 hardcode_shlibpath_var_CXX=no
19934 hardcode_direct_absolute_CXX=yes
19935 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19936 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19937 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19938 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19939 export_dynamic_flag_spec_CXX='${wl}-E'
19940 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19942 output_verbose_link_cmd=func_echo_all
19943 else
19944 ld_shlibs_CXX=no
19948 osf3* | osf4* | osf5*)
19949 case $cc_basename in
19950 KCC*)
19951 # Kuck and Associates, Inc. (KAI) C++ Compiler
19953 # KCC will only create a shared library if the output file
19954 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19955 # to its proper name (with version) after linking.
19956 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'
19958 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19959 hardcode_libdir_separator_CXX=:
19961 # Archives containing C++ object files must be created using
19962 # the KAI C++ compiler.
19963 case $host in
19964 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19965 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19966 esac
19968 RCC*)
19969 # Rational C++ 2.4.1
19970 # FIXME: insert proper C++ library support
19971 ld_shlibs_CXX=no
19973 cxx*)
19974 case $host in
19975 osf3*)
19976 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19977 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'
19978 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19981 allow_undefined_flag_CXX=' -expect_unresolved \*'
19982 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'
19983 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19984 echo "-hidden">> $lib.exp~
19985 $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~
19986 $RM $lib.exp'
19987 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19989 esac
19991 hardcode_libdir_separator_CXX=:
19993 # Commands to make compiler produce verbose output that lists
19994 # what "hidden" libraries, object files and flags are used when
19995 # linking a shared library.
19997 # There doesn't appear to be a way to prevent this compiler from
19998 # explicitly linking system object files so we need to strip them
19999 # from the output so that they don't get included in the library
20000 # dependencies.
20001 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"'
20004 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20005 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
20006 case $host in
20007 osf3*)
20008 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'
20011 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'
20013 esac
20015 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
20016 hardcode_libdir_separator_CXX=:
20018 # Commands to make compiler produce verbose output that lists
20019 # what "hidden" libraries, object files and flags are used when
20020 # linking a shared library.
20021 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20023 else
20024 # FIXME: insert proper C++ library support
20025 ld_shlibs_CXX=no
20028 esac
20031 psos*)
20032 # FIXME: insert proper C++ library support
20033 ld_shlibs_CXX=no
20036 sunos4*)
20037 case $cc_basename in
20038 CC*)
20039 # Sun C++ 4.x
20040 # FIXME: insert proper C++ library support
20041 ld_shlibs_CXX=no
20043 lcc*)
20044 # Lucid
20045 # FIXME: insert proper C++ library support
20046 ld_shlibs_CXX=no
20049 # FIXME: insert proper C++ library support
20050 ld_shlibs_CXX=no
20052 esac
20055 solaris*)
20056 case $cc_basename in
20057 CC*)
20058 # Sun C++ 4.2, 5.x and Centerline C++
20059 archive_cmds_need_lc_CXX=yes
20060 no_undefined_flag_CXX=' -zdefs'
20061 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20062 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20063 $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'
20065 hardcode_libdir_flag_spec_CXX='-R$libdir'
20066 hardcode_shlibpath_var_CXX=no
20067 case $host_os in
20068 solaris2.[0-5] | solaris2.[0-5].*) ;;
20070 # The compiler driver will combine and reorder linker options,
20071 # but understands `-z linker_flag'.
20072 # Supported since Solaris 2.6 (maybe 2.5.1?)
20073 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20075 esac
20076 link_all_deplibs_CXX=yes
20078 output_verbose_link_cmd='func_echo_all'
20080 # Archives containing C++ object files must be created using
20081 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20082 # necessary to make sure instantiated templates are included
20083 # in the archive.
20084 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20086 gcx*)
20087 # Green Hills C++ Compiler
20088 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20090 # The C++ compiler must be used to create the archive.
20091 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20094 # GNU C++ compiler with Solaris linker
20095 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20096 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20097 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20098 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20099 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20100 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20102 # Commands to make compiler produce verbose output that lists
20103 # what "hidden" libraries, object files and flags are used when
20104 # linking a shared library.
20105 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20106 else
20107 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20108 # platform.
20109 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20110 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20111 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20113 # Commands to make compiler produce verbose output that lists
20114 # what "hidden" libraries, object files and flags are used when
20115 # linking a shared library.
20116 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20119 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20120 case $host_os in
20121 solaris2.[0-5] | solaris2.[0-5].*) ;;
20123 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20125 esac
20128 esac
20131 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20132 no_undefined_flag_CXX='${wl}-z,text'
20133 archive_cmds_need_lc_CXX=no
20134 hardcode_shlibpath_var_CXX=no
20135 runpath_var='LD_RUN_PATH'
20137 case $cc_basename in
20138 CC*)
20139 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20140 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20143 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20144 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20146 esac
20149 sysv5* | sco3.2v5* | sco5v6*)
20150 # Note: We can NOT use -z defs as we might desire, because we do not
20151 # link with -lc, and that would cause any symbols used from libc to
20152 # always be unresolved, which means just about no library would
20153 # ever link correctly. If we're not using GNU ld we use -z text
20154 # though, which does catch some bad symbols but isn't as heavy-handed
20155 # as -z defs.
20156 no_undefined_flag_CXX='${wl}-z,text'
20157 allow_undefined_flag_CXX='${wl}-z,nodefs'
20158 archive_cmds_need_lc_CXX=no
20159 hardcode_shlibpath_var_CXX=no
20160 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20161 hardcode_libdir_separator_CXX=':'
20162 link_all_deplibs_CXX=yes
20163 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20164 runpath_var='LD_RUN_PATH'
20166 case $cc_basename in
20167 CC*)
20168 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20169 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20170 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20171 '"$old_archive_cmds_CXX"
20172 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20173 '"$reload_cmds_CXX"
20176 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20177 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20179 esac
20182 tandem*)
20183 case $cc_basename in
20184 NCC*)
20185 # NonStop-UX NCC 3.20
20186 # FIXME: insert proper C++ library support
20187 ld_shlibs_CXX=no
20190 # FIXME: insert proper C++ library support
20191 ld_shlibs_CXX=no
20193 esac
20196 vxworks*)
20197 # FIXME: insert proper C++ library support
20198 ld_shlibs_CXX=no
20202 # FIXME: insert proper C++ library support
20203 ld_shlibs_CXX=no
20205 esac
20207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20208 $as_echo "$ld_shlibs_CXX" >&6; }
20209 test "$ld_shlibs_CXX" = no && can_build_shared=no
20211 GCC_CXX="$GXX"
20212 LD_CXX="$LD"
20214 ## CAVEAT EMPTOR:
20215 ## There is no encapsulation within the following macros, do not change
20216 ## the running order or otherwise move them around unless you know exactly
20217 ## what you are doing...
20218 # Dependencies to place before and after the object being linked:
20219 predep_objects_CXX=
20220 postdep_objects_CXX=
20221 predeps_CXX=
20222 postdeps_CXX=
20223 compiler_lib_search_path_CXX=
20225 cat > conftest.$ac_ext <<_LT_EOF
20226 class Foo
20228 public:
20229 Foo (void) { a = 0; }
20230 private:
20231 int a;
20233 _LT_EOF
20235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20236 (eval $ac_compile) 2>&5
20237 ac_status=$?
20238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20239 test $ac_status = 0; }; then
20240 # Parse the compiler output and extract the necessary
20241 # objects, libraries and library flags.
20243 # Sentinel used to keep track of whether or not we are before
20244 # the conftest object file.
20245 pre_test_object_deps_done=no
20247 for p in `eval "$output_verbose_link_cmd"`; do
20248 case $p in
20250 -L* | -R* | -l*)
20251 # Some compilers place space between "-{L,R}" and the path.
20252 # Remove the space.
20253 if test $p = "-L" ||
20254 test $p = "-R"; then
20255 prev=$p
20256 continue
20257 else
20258 prev=
20261 if test "$pre_test_object_deps_done" = no; then
20262 case $p in
20263 -L* | -R*)
20264 # Internal compiler library paths should come after those
20265 # provided the user. The postdeps already come after the
20266 # user supplied libs so there is no need to process them.
20267 if test -z "$compiler_lib_search_path_CXX"; then
20268 compiler_lib_search_path_CXX="${prev}${p}"
20269 else
20270 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20273 # The "-l" case would never come before the object being
20274 # linked, so don't bother handling this case.
20275 esac
20276 else
20277 if test -z "$postdeps_CXX"; then
20278 postdeps_CXX="${prev}${p}"
20279 else
20280 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20285 *.$objext)
20286 # This assumes that the test object file only shows up
20287 # once in the compiler output.
20288 if test "$p" = "conftest.$objext"; then
20289 pre_test_object_deps_done=yes
20290 continue
20293 if test "$pre_test_object_deps_done" = no; then
20294 if test -z "$predep_objects_CXX"; then
20295 predep_objects_CXX="$p"
20296 else
20297 predep_objects_CXX="$predep_objects_CXX $p"
20299 else
20300 if test -z "$postdep_objects_CXX"; then
20301 postdep_objects_CXX="$p"
20302 else
20303 postdep_objects_CXX="$postdep_objects_CXX $p"
20308 *) ;; # Ignore the rest.
20310 esac
20311 done
20313 # Clean up.
20314 rm -f a.out a.exe
20315 else
20316 echo "libtool.m4: error: problem compiling CXX test program"
20319 $RM -f confest.$objext
20321 # PORTME: override above test on systems where it is broken
20322 case $host_os in
20323 interix[3-9]*)
20324 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20325 # hack all around it, let's just trust "g++" to DTRT.
20326 predep_objects_CXX=
20327 postdep_objects_CXX=
20328 postdeps_CXX=
20331 linux*)
20332 case `$CC -V 2>&1 | sed 5q` in
20333 *Sun\ C*)
20334 # Sun C++ 5.9
20336 # The more standards-conforming stlport4 library is
20337 # incompatible with the Cstd library. Avoid specifying
20338 # it if it's in CXXFLAGS. Ignore libCrun as
20339 # -library=stlport4 depends on it.
20340 case " $CXX $CXXFLAGS " in
20341 *" -library=stlport4 "*)
20342 solaris_use_stlport4=yes
20344 esac
20346 if test "$solaris_use_stlport4" != yes; then
20347 postdeps_CXX='-library=Cstd -library=Crun'
20350 esac
20353 solaris*)
20354 case $cc_basename in
20355 CC*)
20356 # The more standards-conforming stlport4 library is
20357 # incompatible with the Cstd library. Avoid specifying
20358 # it if it's in CXXFLAGS. Ignore libCrun as
20359 # -library=stlport4 depends on it.
20360 case " $CXX $CXXFLAGS " in
20361 *" -library=stlport4 "*)
20362 solaris_use_stlport4=yes
20364 esac
20366 # Adding this requires a known-good setup of shared libraries for
20367 # Sun compiler versions before 5.6, else PIC objects from an old
20368 # archive will be linked into the output, leading to subtle bugs.
20369 if test "$solaris_use_stlport4" != yes; then
20370 postdeps_CXX='-library=Cstd -library=Crun'
20373 esac
20375 esac
20378 case " $postdeps_CXX " in
20379 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20380 esac
20381 compiler_lib_search_dirs_CXX=
20382 if test -n "${compiler_lib_search_path_CXX}"; then
20383 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20416 lt_prog_compiler_wl_CXX=
20417 lt_prog_compiler_pic_CXX=
20418 lt_prog_compiler_static_CXX=
20420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20421 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20423 # C++ specific cases for pic, static, wl, etc.
20424 if test "$GXX" = yes; then
20425 lt_prog_compiler_wl_CXX='-Wl,'
20426 lt_prog_compiler_static_CXX='-static'
20428 case $host_os in
20429 aix*)
20430 # All AIX code is PIC.
20431 if test "$host_cpu" = ia64; then
20432 # AIX 5 now supports IA64 processor
20433 lt_prog_compiler_static_CXX='-Bstatic'
20435 lt_prog_compiler_pic_CXX='-fPIC'
20438 amigaos*)
20439 case $host_cpu in
20440 powerpc)
20441 # see comment about AmigaOS4 .so support
20442 lt_prog_compiler_pic_CXX='-fPIC'
20444 m68k)
20445 # FIXME: we need at least 68020 code to build shared libraries, but
20446 # adding the `-m68020' flag to GCC prevents building anything better,
20447 # like `-m68040'.
20448 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20450 esac
20453 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20454 # PIC is the default for these OSes.
20456 mingw* | cygwin* | os2* | pw32* | cegcc*)
20457 # This hack is so that the source file can tell whether it is being
20458 # built for inclusion in a dll (and should export symbols for example).
20459 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20460 # (--disable-auto-import) libraries
20461 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20463 darwin* | rhapsody*)
20464 # PIC is the default on this platform
20465 # Common symbols not allowed in MH_DYLIB files
20466 lt_prog_compiler_pic_CXX='-fno-common'
20468 *djgpp*)
20469 # DJGPP does not support shared libraries at all
20470 lt_prog_compiler_pic_CXX=
20472 haiku*)
20473 # PIC is the default for Haiku.
20474 # The "-static" flag exists, but is broken.
20475 lt_prog_compiler_static_CXX=
20477 interix[3-9]*)
20478 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20479 # Instead, we relocate shared libraries at runtime.
20481 sysv4*MP*)
20482 if test -d /usr/nec; then
20483 lt_prog_compiler_pic_CXX=-Kconform_pic
20486 hpux*)
20487 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20488 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20489 # sets the default TLS model and affects inlining.
20490 case $host_cpu in
20491 hppa*64*)
20494 lt_prog_compiler_pic_CXX='-fPIC'
20496 esac
20498 *qnx* | *nto*)
20499 # QNX uses GNU C++, but need to define -shared option too, otherwise
20500 # it will coredump.
20501 lt_prog_compiler_pic_CXX='-fPIC -shared'
20504 lt_prog_compiler_pic_CXX='-fPIC'
20506 esac
20507 else
20508 case $host_os in
20509 aix[4-9]*)
20510 # All AIX code is PIC.
20511 if test "$host_cpu" = ia64; then
20512 # AIX 5 now supports IA64 processor
20513 lt_prog_compiler_static_CXX='-Bstatic'
20514 else
20515 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20518 chorus*)
20519 case $cc_basename in
20520 cxch68*)
20521 # Green Hills C++ Compiler
20522 # _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"
20524 esac
20526 dgux*)
20527 case $cc_basename in
20528 ec++*)
20529 lt_prog_compiler_pic_CXX='-KPIC'
20531 ghcx*)
20532 # Green Hills C++ Compiler
20533 lt_prog_compiler_pic_CXX='-pic'
20537 esac
20539 freebsd* | dragonfly*)
20540 # FreeBSD uses GNU C++
20542 hpux9* | hpux10* | hpux11*)
20543 case $cc_basename in
20544 CC*)
20545 lt_prog_compiler_wl_CXX='-Wl,'
20546 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20547 if test "$host_cpu" != ia64; then
20548 lt_prog_compiler_pic_CXX='+Z'
20551 aCC*)
20552 lt_prog_compiler_wl_CXX='-Wl,'
20553 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20554 case $host_cpu in
20555 hppa*64*|ia64*)
20556 # +Z the default
20559 lt_prog_compiler_pic_CXX='+Z'
20561 esac
20565 esac
20567 interix*)
20568 # This is c89, which is MS Visual C++ (no shared libs)
20569 # Anyone wants to do a port?
20571 irix5* | irix6* | nonstopux*)
20572 case $cc_basename in
20573 CC*)
20574 lt_prog_compiler_wl_CXX='-Wl,'
20575 lt_prog_compiler_static_CXX='-non_shared'
20576 # CC pic flag -KPIC is the default.
20580 esac
20582 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20583 case $cc_basename in
20584 KCC*)
20585 # KAI C++ Compiler
20586 lt_prog_compiler_wl_CXX='--backend -Wl,'
20587 lt_prog_compiler_pic_CXX='-fPIC'
20589 ecpc* )
20590 # old Intel C++ for x86_64 which still supported -KPIC.
20591 lt_prog_compiler_wl_CXX='-Wl,'
20592 lt_prog_compiler_pic_CXX='-KPIC'
20593 lt_prog_compiler_static_CXX='-static'
20595 icpc* )
20596 # Intel C++, used to be incompatible with GCC.
20597 # ICC 10 doesn't accept -KPIC any more.
20598 lt_prog_compiler_wl_CXX='-Wl,'
20599 lt_prog_compiler_pic_CXX='-fPIC'
20600 lt_prog_compiler_static_CXX='-static'
20602 pgCC* | pgcpp*)
20603 # Portland Group C++ compiler
20604 lt_prog_compiler_wl_CXX='-Wl,'
20605 lt_prog_compiler_pic_CXX='-fpic'
20606 lt_prog_compiler_static_CXX='-Bstatic'
20608 cxx*)
20609 # Compaq C++
20610 # Make sure the PIC flag is empty. It appears that all Alpha
20611 # Linux and Compaq Tru64 Unix objects are PIC.
20612 lt_prog_compiler_pic_CXX=
20613 lt_prog_compiler_static_CXX='-non_shared'
20615 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20616 # IBM XL 8.0, 9.0 on PPC and BlueGene
20617 lt_prog_compiler_wl_CXX='-Wl,'
20618 lt_prog_compiler_pic_CXX='-qpic'
20619 lt_prog_compiler_static_CXX='-qstaticlink'
20622 case `$CC -V 2>&1 | sed 5q` in
20623 *Sun\ C*)
20624 # Sun C++ 5.9
20625 lt_prog_compiler_pic_CXX='-KPIC'
20626 lt_prog_compiler_static_CXX='-Bstatic'
20627 lt_prog_compiler_wl_CXX='-Qoption ld '
20629 esac
20631 esac
20633 lynxos*)
20635 m88k*)
20637 mvs*)
20638 case $cc_basename in
20639 cxx*)
20640 lt_prog_compiler_pic_CXX='-W c,exportall'
20644 esac
20646 netbsd*)
20648 *qnx* | *nto*)
20649 # QNX uses GNU C++, but need to define -shared option too, otherwise
20650 # it will coredump.
20651 lt_prog_compiler_pic_CXX='-fPIC -shared'
20653 osf3* | osf4* | osf5*)
20654 case $cc_basename in
20655 KCC*)
20656 lt_prog_compiler_wl_CXX='--backend -Wl,'
20658 RCC*)
20659 # Rational C++ 2.4.1
20660 lt_prog_compiler_pic_CXX='-pic'
20662 cxx*)
20663 # Digital/Compaq C++
20664 lt_prog_compiler_wl_CXX='-Wl,'
20665 # Make sure the PIC flag is empty. It appears that all Alpha
20666 # Linux and Compaq Tru64 Unix objects are PIC.
20667 lt_prog_compiler_pic_CXX=
20668 lt_prog_compiler_static_CXX='-non_shared'
20672 esac
20674 psos*)
20676 solaris*)
20677 case $cc_basename in
20678 CC*)
20679 # Sun C++ 4.2, 5.x and Centerline C++
20680 lt_prog_compiler_pic_CXX='-KPIC'
20681 lt_prog_compiler_static_CXX='-Bstatic'
20682 lt_prog_compiler_wl_CXX='-Qoption ld '
20684 gcx*)
20685 # Green Hills C++ Compiler
20686 lt_prog_compiler_pic_CXX='-PIC'
20690 esac
20692 sunos4*)
20693 case $cc_basename in
20694 CC*)
20695 # Sun C++ 4.x
20696 lt_prog_compiler_pic_CXX='-pic'
20697 lt_prog_compiler_static_CXX='-Bstatic'
20699 lcc*)
20700 # Lucid
20701 lt_prog_compiler_pic_CXX='-pic'
20705 esac
20707 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20708 case $cc_basename in
20709 CC*)
20710 lt_prog_compiler_wl_CXX='-Wl,'
20711 lt_prog_compiler_pic_CXX='-KPIC'
20712 lt_prog_compiler_static_CXX='-Bstatic'
20714 esac
20716 tandem*)
20717 case $cc_basename in
20718 NCC*)
20719 # NonStop-UX NCC 3.20
20720 lt_prog_compiler_pic_CXX='-KPIC'
20724 esac
20726 vxworks*)
20729 lt_prog_compiler_can_build_shared_CXX=no
20731 esac
20734 case $host_os in
20735 # For platforms which do not support PIC, -DPIC is meaningless:
20736 *djgpp*)
20737 lt_prog_compiler_pic_CXX=
20740 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20742 esac
20743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20744 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20749 # Check to make sure the PIC flag actually works.
20751 if test -n "$lt_prog_compiler_pic_CXX"; then
20752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20753 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20754 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20755 $as_echo_n "(cached) " >&6
20756 else
20757 lt_cv_prog_compiler_pic_works_CXX=no
20758 ac_outfile=conftest.$ac_objext
20759 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20760 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20761 # Insert the option either (1) after the last *FLAGS variable, or
20762 # (2) before a word containing "conftest.", or (3) at the end.
20763 # Note that $ac_compile itself does not contain backslashes and begins
20764 # with a dollar sign (not a hyphen), so the echo should work correctly.
20765 # The option is referenced via a variable to avoid confusing sed.
20766 lt_compile=`echo "$ac_compile" | $SED \
20767 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20768 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20769 -e 's:$: $lt_compiler_flag:'`
20770 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20771 (eval "$lt_compile" 2>conftest.err)
20772 ac_status=$?
20773 cat conftest.err >&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 if (exit $ac_status) && test -s "$ac_outfile"; then
20776 # The compiler can only warn and ignore the option if not recognized
20777 # So say no if there are warnings other than the usual output.
20778 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20779 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20780 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20781 lt_cv_prog_compiler_pic_works_CXX=yes
20784 $RM conftest*
20787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20788 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20790 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20791 case $lt_prog_compiler_pic_CXX in
20792 "" | " "*) ;;
20793 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20794 esac
20795 else
20796 lt_prog_compiler_pic_CXX=
20797 lt_prog_compiler_can_build_shared_CXX=no
20805 # Check to make sure the static flag actually works.
20807 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20809 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20810 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20811 $as_echo_n "(cached) " >&6
20812 else
20813 lt_cv_prog_compiler_static_works_CXX=no
20814 save_LDFLAGS="$LDFLAGS"
20815 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20816 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20817 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20818 # The linker can only warn and ignore the option if not recognized
20819 # So say no if there are warnings
20820 if test -s conftest.err; then
20821 # Append any errors to the config.log.
20822 cat conftest.err 1>&5
20823 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20825 if diff conftest.exp conftest.er2 >/dev/null; then
20826 lt_cv_prog_compiler_static_works_CXX=yes
20828 else
20829 lt_cv_prog_compiler_static_works_CXX=yes
20832 $RM -r conftest*
20833 LDFLAGS="$save_LDFLAGS"
20836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20837 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20839 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20841 else
20842 lt_prog_compiler_static_CXX=
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20849 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20850 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20851 $as_echo_n "(cached) " >&6
20852 else
20853 lt_cv_prog_compiler_c_o_CXX=no
20854 $RM -r conftest 2>/dev/null
20855 mkdir conftest
20856 cd conftest
20857 mkdir out
20858 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20860 lt_compiler_flag="-o out/conftest2.$ac_objext"
20861 # Insert the option either (1) after the last *FLAGS variable, or
20862 # (2) before a word containing "conftest.", or (3) at the end.
20863 # Note that $ac_compile itself does not contain backslashes and begins
20864 # with a dollar sign (not a hyphen), so the echo should work correctly.
20865 lt_compile=`echo "$ac_compile" | $SED \
20866 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20868 -e 's:$: $lt_compiler_flag:'`
20869 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20870 (eval "$lt_compile" 2>out/conftest.err)
20871 ac_status=$?
20872 cat out/conftest.err >&5
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20875 then
20876 # The compiler can only warn and ignore the option if not recognized
20877 # So say no if there are warnings
20878 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20879 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20880 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20881 lt_cv_prog_compiler_c_o_CXX=yes
20884 chmod u+w . 2>&5
20885 $RM conftest*
20886 # SGI C++ compiler will create directory out/ii_files/ for
20887 # template instantiation
20888 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20889 $RM out/* && rmdir out
20890 cd ..
20891 $RM -r conftest
20892 $RM conftest*
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20896 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20901 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20902 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20903 $as_echo_n "(cached) " >&6
20904 else
20905 lt_cv_prog_compiler_c_o_CXX=no
20906 $RM -r conftest 2>/dev/null
20907 mkdir conftest
20908 cd conftest
20909 mkdir out
20910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20912 lt_compiler_flag="-o out/conftest2.$ac_objext"
20913 # Insert the option either (1) after the last *FLAGS variable, or
20914 # (2) before a word containing "conftest.", or (3) at the end.
20915 # Note that $ac_compile itself does not contain backslashes and begins
20916 # with a dollar sign (not a hyphen), so the echo should work correctly.
20917 lt_compile=`echo "$ac_compile" | $SED \
20918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20920 -e 's:$: $lt_compiler_flag:'`
20921 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20922 (eval "$lt_compile" 2>out/conftest.err)
20923 ac_status=$?
20924 cat out/conftest.err >&5
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20927 then
20928 # The compiler can only warn and ignore the option if not recognized
20929 # So say no if there are warnings
20930 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20931 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20932 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20933 lt_cv_prog_compiler_c_o_CXX=yes
20936 chmod u+w . 2>&5
20937 $RM conftest*
20938 # SGI C++ compiler will create directory out/ii_files/ for
20939 # template instantiation
20940 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20941 $RM out/* && rmdir out
20942 cd ..
20943 $RM -r conftest
20944 $RM conftest*
20947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20948 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20953 hard_links="nottested"
20954 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20955 # do not overwrite the value of need_locks provided by the user
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20957 $as_echo_n "checking if we can lock with hard links... " >&6; }
20958 hard_links=yes
20959 $RM conftest*
20960 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20961 touch conftest.a
20962 ln conftest.a conftest.b 2>&5 || hard_links=no
20963 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20965 $as_echo "$hard_links" >&6; }
20966 if test "$hard_links" = no; then
20967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20968 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20969 need_locks=warn
20971 else
20972 need_locks=no
20977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20978 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20980 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20981 case $host_os in
20982 aix[4-9]*)
20983 # If we're using GNU nm, then we don't want the "-C" option.
20984 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20985 # Also, AIX nm treats weak defined symbols like other global defined
20986 # symbols, whereas GNU nm marks them as "W".
20987 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20988 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'
20989 else
20990 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20993 pw32*)
20994 export_symbols_cmds_CXX="$ltdll_cmds"
20996 cygwin* | mingw* | cegcc*)
20997 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'
21000 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21002 esac
21003 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21006 $as_echo "$ld_shlibs_CXX" >&6; }
21007 test "$ld_shlibs_CXX" = no && can_build_shared=no
21009 with_gnu_ld_CXX=$with_gnu_ld
21017 # Do we need to explicitly link libc?
21019 case "x$archive_cmds_need_lc_CXX" in
21020 x|xyes)
21021 # Assume -lc should be added
21022 archive_cmds_need_lc_CXX=yes
21024 if test "$enable_shared" = yes && test "$GCC" = yes; then
21025 case $archive_cmds_CXX in
21026 *'~'*)
21027 # FIXME: we may have to deal with multi-command sequences.
21029 '$CC '*)
21030 # Test whether the compiler implicitly links with -lc since on some
21031 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21032 # to ld, don't add -lc before -lgcc.
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21034 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21035 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
21036 $as_echo_n "(cached) " >&6
21037 else
21038 $RM conftest*
21039 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21042 (eval $ac_compile) 2>&5
21043 ac_status=$?
21044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21045 test $ac_status = 0; } 2>conftest.err; then
21046 soname=conftest
21047 lib=conftest
21048 libobjs=conftest.$ac_objext
21049 deplibs=
21050 wl=$lt_prog_compiler_wl_CXX
21051 pic_flag=$lt_prog_compiler_pic_CXX
21052 compiler_flags=-v
21053 linker_flags=-v
21054 verstring=
21055 output_objdir=.
21056 libname=conftest
21057 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21058 allow_undefined_flag_CXX=
21059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21060 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21061 ac_status=$?
21062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21063 test $ac_status = 0; }
21064 then
21065 lt_cv_archive_cmds_need_lc_CXX=no
21066 else
21067 lt_cv_archive_cmds_need_lc_CXX=yes
21069 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21070 else
21071 cat conftest.err 1>&5
21073 $RM conftest*
21076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21077 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21078 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21080 esac
21083 esac
21148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21149 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21151 library_names_spec=
21152 libname_spec='lib$name'
21153 soname_spec=
21154 shrext_cmds=".so"
21155 postinstall_cmds=
21156 postuninstall_cmds=
21157 finish_cmds=
21158 finish_eval=
21159 shlibpath_var=
21160 shlibpath_overrides_runpath=unknown
21161 version_type=none
21162 dynamic_linker="$host_os ld.so"
21163 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21164 need_lib_prefix=unknown
21165 hardcode_into_libs=no
21167 # when you set need_version to no, make sure it does not cause -set_version
21168 # flags to be left without arguments
21169 need_version=unknown
21171 case $host_os in
21172 aix3*)
21173 version_type=linux
21174 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21175 shlibpath_var=LIBPATH
21177 # AIX 3 has no versioning support, so we append a major version to the name.
21178 soname_spec='${libname}${release}${shared_ext}$major'
21181 aix[4-9]*)
21182 version_type=linux
21183 need_lib_prefix=no
21184 need_version=no
21185 hardcode_into_libs=yes
21186 if test "$host_cpu" = ia64; then
21187 # AIX 5 supports IA64
21188 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21189 shlibpath_var=LD_LIBRARY_PATH
21190 else
21191 # With GCC up to 2.95.x, collect2 would create an import file
21192 # for dependence libraries. The import file would start with
21193 # the line `#! .'. This would cause the generated library to
21194 # depend on `.', always an invalid library. This was fixed in
21195 # development snapshots of GCC prior to 3.0.
21196 case $host_os in
21197 aix4 | aix4.[01] | aix4.[01].*)
21198 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21199 echo ' yes '
21200 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21202 else
21203 can_build_shared=no
21206 esac
21207 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21208 # soname into executable. Probably we can add versioning support to
21209 # collect2, so additional links can be useful in future.
21210 if test "$aix_use_runtimelinking" = yes; then
21211 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21212 # instead of lib<name>.a to let people know that these are not
21213 # typical AIX shared libraries.
21214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21215 else
21216 # We preserve .a as extension for shared libraries through AIX4.2
21217 # and later when we are not doing run time linking.
21218 library_names_spec='${libname}${release}.a $libname.a'
21219 soname_spec='${libname}${release}${shared_ext}$major'
21221 shlibpath_var=LIBPATH
21225 amigaos*)
21226 case $host_cpu in
21227 powerpc)
21228 # Since July 2007 AmigaOS4 officially supports .so libraries.
21229 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21232 m68k)
21233 library_names_spec='$libname.ixlibrary $libname.a'
21234 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21235 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'
21237 esac
21240 beos*)
21241 library_names_spec='${libname}${shared_ext}'
21242 dynamic_linker="$host_os ld.so"
21243 shlibpath_var=LIBRARY_PATH
21246 bsdi[45]*)
21247 version_type=linux
21248 need_version=no
21249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21250 soname_spec='${libname}${release}${shared_ext}$major'
21251 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21252 shlibpath_var=LD_LIBRARY_PATH
21253 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21254 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21255 # the default ld.so.conf also contains /usr/contrib/lib and
21256 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21257 # libtool to hard-code these into programs
21260 cygwin* | mingw* | pw32* | cegcc*)
21261 version_type=windows
21262 shrext_cmds=".dll"
21263 need_version=no
21264 need_lib_prefix=no
21266 case $GCC,$host_os in
21267 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21268 library_names_spec='$libname.dll.a'
21269 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21270 postinstall_cmds='base_file=`basename \${file}`~
21271 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21272 dldir=$destdir/`dirname \$dlpath`~
21273 test -d \$dldir || mkdir -p \$dldir~
21274 $install_prog $dir/$dlname \$dldir/$dlname~
21275 chmod a+x \$dldir/$dlname~
21276 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21277 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21279 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21280 dlpath=$dir/\$dldll~
21281 $RM \$dlpath'
21282 shlibpath_overrides_runpath=yes
21284 case $host_os in
21285 cygwin*)
21286 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21287 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21290 mingw* | cegcc*)
21291 # MinGW DLLs use traditional 'lib' prefix
21292 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21294 pw32*)
21295 # pw32 DLLs use 'pw' prefix rather than 'lib'
21296 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21298 esac
21302 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21304 esac
21305 dynamic_linker='Win32 ld.exe'
21306 # FIXME: first we should search . and the directory the executable is in
21307 shlibpath_var=PATH
21310 darwin* | rhapsody*)
21311 dynamic_linker="$host_os dyld"
21312 version_type=darwin
21313 need_lib_prefix=no
21314 need_version=no
21315 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21316 soname_spec='${libname}${release}${major}$shared_ext'
21317 shlibpath_overrides_runpath=yes
21318 shlibpath_var=DYLD_LIBRARY_PATH
21319 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21321 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21324 dgux*)
21325 version_type=linux
21326 need_lib_prefix=no
21327 need_version=no
21328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21329 soname_spec='${libname}${release}${shared_ext}$major'
21330 shlibpath_var=LD_LIBRARY_PATH
21333 freebsd* | dragonfly*)
21334 # DragonFly does not have aout. When/if they implement a new
21335 # versioning mechanism, adjust this.
21336 if test -x /usr/bin/objformat; then
21337 objformat=`/usr/bin/objformat`
21338 else
21339 case $host_os in
21340 freebsd[23].*) objformat=aout ;;
21341 *) objformat=elf ;;
21342 esac
21344 version_type=freebsd-$objformat
21345 case $version_type in
21346 freebsd-elf*)
21347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21348 need_version=no
21349 need_lib_prefix=no
21351 freebsd-*)
21352 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21353 need_version=yes
21355 esac
21356 shlibpath_var=LD_LIBRARY_PATH
21357 case $host_os in
21358 freebsd2.*)
21359 shlibpath_overrides_runpath=yes
21361 freebsd3.[01]* | freebsdelf3.[01]*)
21362 shlibpath_overrides_runpath=yes
21363 hardcode_into_libs=yes
21365 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21366 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21367 shlibpath_overrides_runpath=no
21368 hardcode_into_libs=yes
21370 *) # from 4.6 on, and DragonFly
21371 shlibpath_overrides_runpath=yes
21372 hardcode_into_libs=yes
21374 esac
21377 gnu*)
21378 version_type=linux
21379 need_lib_prefix=no
21380 need_version=no
21381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21382 soname_spec='${libname}${release}${shared_ext}$major'
21383 shlibpath_var=LD_LIBRARY_PATH
21384 hardcode_into_libs=yes
21387 haiku*)
21388 version_type=linux
21389 need_lib_prefix=no
21390 need_version=no
21391 dynamic_linker="$host_os runtime_loader"
21392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21393 soname_spec='${libname}${release}${shared_ext}$major'
21394 shlibpath_var=LIBRARY_PATH
21395 shlibpath_overrides_runpath=yes
21396 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21397 hardcode_into_libs=yes
21400 hpux9* | hpux10* | hpux11*)
21401 # Give a soname corresponding to the major version so that dld.sl refuses to
21402 # link against other versions.
21403 version_type=sunos
21404 need_lib_prefix=no
21405 need_version=no
21406 case $host_cpu in
21407 ia64*)
21408 shrext_cmds='.so'
21409 hardcode_into_libs=yes
21410 dynamic_linker="$host_os dld.so"
21411 shlibpath_var=LD_LIBRARY_PATH
21412 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21414 soname_spec='${libname}${release}${shared_ext}$major'
21415 if test "X$HPUX_IA64_MODE" = X32; then
21416 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21417 else
21418 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21420 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21422 hppa*64*)
21423 shrext_cmds='.sl'
21424 hardcode_into_libs=yes
21425 dynamic_linker="$host_os dld.sl"
21426 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21427 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21429 soname_spec='${libname}${release}${shared_ext}$major'
21430 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21431 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21434 shrext_cmds='.sl'
21435 dynamic_linker="$host_os dld.sl"
21436 shlibpath_var=SHLIB_PATH
21437 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21439 soname_spec='${libname}${release}${shared_ext}$major'
21441 esac
21442 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21443 postinstall_cmds='chmod 555 $lib'
21444 # or fails outright, so override atomically:
21445 install_override_mode=555
21448 interix[3-9]*)
21449 version_type=linux
21450 need_lib_prefix=no
21451 need_version=no
21452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21453 soname_spec='${libname}${release}${shared_ext}$major'
21454 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21455 shlibpath_var=LD_LIBRARY_PATH
21456 shlibpath_overrides_runpath=no
21457 hardcode_into_libs=yes
21460 irix5* | irix6* | nonstopux*)
21461 case $host_os in
21462 nonstopux*) version_type=nonstopux ;;
21464 if test "$lt_cv_prog_gnu_ld" = yes; then
21465 version_type=linux
21466 else
21467 version_type=irix
21468 fi ;;
21469 esac
21470 need_lib_prefix=no
21471 need_version=no
21472 soname_spec='${libname}${release}${shared_ext}$major'
21473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21474 case $host_os in
21475 irix5* | nonstopux*)
21476 libsuff= shlibsuff=
21479 case $LD in # libtool.m4 will add one of these switches to LD
21480 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21481 libsuff= shlibsuff= libmagic=32-bit;;
21482 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21483 libsuff=32 shlibsuff=N32 libmagic=N32;;
21484 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21485 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21486 *) libsuff= shlibsuff= libmagic=never-match;;
21487 esac
21489 esac
21490 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21491 shlibpath_overrides_runpath=no
21492 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21493 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21494 hardcode_into_libs=yes
21497 # No shared lib support for Linux oldld, aout, or coff.
21498 linux*oldld* | linux*aout* | linux*coff*)
21499 dynamic_linker=no
21502 # This must be Linux ELF.
21503 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21504 version_type=linux
21505 need_lib_prefix=no
21506 need_version=no
21507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21508 soname_spec='${libname}${release}${shared_ext}$major'
21509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21510 shlibpath_var=LD_LIBRARY_PATH
21511 shlibpath_overrides_runpath=no
21513 # Some binutils ld are patched to set DT_RUNPATH
21514 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21515 $as_echo_n "(cached) " >&6
21516 else
21517 lt_cv_shlibpath_overrides_runpath=no
21518 save_LDFLAGS=$LDFLAGS
21519 save_libdir=$libdir
21520 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21521 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21523 /* end confdefs.h. */
21526 main ()
21530 return 0;
21532 _ACEOF
21533 if ac_fn_cxx_try_link "$LINENO"; then :
21534 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21535 lt_cv_shlibpath_overrides_runpath=yes
21538 rm -f core conftest.err conftest.$ac_objext \
21539 conftest$ac_exeext conftest.$ac_ext
21540 LDFLAGS=$save_LDFLAGS
21541 libdir=$save_libdir
21545 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21547 # This implies no fast_install, which is unacceptable.
21548 # Some rework will be needed to allow for fast_install
21549 # before this can be enabled.
21550 hardcode_into_libs=yes
21552 # Append ld.so.conf contents to the search path
21553 if test -f /etc/ld.so.conf; then
21554 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' ' '`
21555 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21558 # We used to test for /lib/ld.so.1 and disable shared libraries on
21559 # powerpc, because MkLinux only supported shared libraries with the
21560 # GNU dynamic linker. Since this was broken with cross compilers,
21561 # most powerpc-linux boxes support dynamic linking these days and
21562 # people can always --disable-shared, the test was removed, and we
21563 # assume the GNU/Linux dynamic linker is in use.
21564 dynamic_linker='GNU/Linux ld.so'
21567 netbsd*)
21568 version_type=sunos
21569 need_lib_prefix=no
21570 need_version=no
21571 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21574 dynamic_linker='NetBSD (a.out) ld.so'
21575 else
21576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21577 soname_spec='${libname}${release}${shared_ext}$major'
21578 dynamic_linker='NetBSD ld.elf_so'
21580 shlibpath_var=LD_LIBRARY_PATH
21581 shlibpath_overrides_runpath=yes
21582 hardcode_into_libs=yes
21585 newsos6)
21586 version_type=linux
21587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21588 shlibpath_var=LD_LIBRARY_PATH
21589 shlibpath_overrides_runpath=yes
21592 *nto* | *qnx*)
21593 version_type=qnx
21594 need_lib_prefix=no
21595 need_version=no
21596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21597 soname_spec='${libname}${release}${shared_ext}$major'
21598 shlibpath_var=LD_LIBRARY_PATH
21599 shlibpath_overrides_runpath=no
21600 hardcode_into_libs=yes
21601 dynamic_linker='ldqnx.so'
21604 openbsd*)
21605 version_type=sunos
21606 sys_lib_dlsearch_path_spec="/usr/lib"
21607 need_lib_prefix=no
21608 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21609 case $host_os in
21610 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21611 *) need_version=no ;;
21612 esac
21613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21615 shlibpath_var=LD_LIBRARY_PATH
21616 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21617 case $host_os in
21618 openbsd2.[89] | openbsd2.[89].*)
21619 shlibpath_overrides_runpath=no
21622 shlibpath_overrides_runpath=yes
21624 esac
21625 else
21626 shlibpath_overrides_runpath=yes
21630 os2*)
21631 libname_spec='$name'
21632 shrext_cmds=".dll"
21633 need_lib_prefix=no
21634 library_names_spec='$libname${shared_ext} $libname.a'
21635 dynamic_linker='OS/2 ld.exe'
21636 shlibpath_var=LIBPATH
21639 osf3* | osf4* | osf5*)
21640 version_type=osf
21641 need_lib_prefix=no
21642 need_version=no
21643 soname_spec='${libname}${release}${shared_ext}$major'
21644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21645 shlibpath_var=LD_LIBRARY_PATH
21646 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21647 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21650 rdos*)
21651 dynamic_linker=no
21654 solaris*)
21655 version_type=linux
21656 need_lib_prefix=no
21657 need_version=no
21658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21659 soname_spec='${libname}${release}${shared_ext}$major'
21660 shlibpath_var=LD_LIBRARY_PATH
21661 shlibpath_overrides_runpath=yes
21662 hardcode_into_libs=yes
21663 # ldd complains unless libraries are executable
21664 postinstall_cmds='chmod +x $lib'
21667 sunos4*)
21668 version_type=sunos
21669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21670 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21671 shlibpath_var=LD_LIBRARY_PATH
21672 shlibpath_overrides_runpath=yes
21673 if test "$with_gnu_ld" = yes; then
21674 need_lib_prefix=no
21676 need_version=yes
21679 sysv4 | sysv4.3*)
21680 version_type=linux
21681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21682 soname_spec='${libname}${release}${shared_ext}$major'
21683 shlibpath_var=LD_LIBRARY_PATH
21684 case $host_vendor in
21685 sni)
21686 shlibpath_overrides_runpath=no
21687 need_lib_prefix=no
21688 runpath_var=LD_RUN_PATH
21690 siemens)
21691 need_lib_prefix=no
21693 motorola)
21694 need_lib_prefix=no
21695 need_version=no
21696 shlibpath_overrides_runpath=no
21697 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21699 esac
21702 sysv4*MP*)
21703 if test -d /usr/nec ;then
21704 version_type=linux
21705 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21706 soname_spec='$libname${shared_ext}.$major'
21707 shlibpath_var=LD_LIBRARY_PATH
21711 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21712 version_type=freebsd-elf
21713 need_lib_prefix=no
21714 need_version=no
21715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21716 soname_spec='${libname}${release}${shared_ext}$major'
21717 shlibpath_var=LD_LIBRARY_PATH
21718 shlibpath_overrides_runpath=yes
21719 hardcode_into_libs=yes
21720 if test "$with_gnu_ld" = yes; then
21721 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21722 else
21723 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21724 case $host_os in
21725 sco3.2v5*)
21726 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21728 esac
21730 sys_lib_dlsearch_path_spec='/usr/lib'
21733 tpf*)
21734 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21735 version_type=linux
21736 need_lib_prefix=no
21737 need_version=no
21738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21739 shlibpath_var=LD_LIBRARY_PATH
21740 shlibpath_overrides_runpath=no
21741 hardcode_into_libs=yes
21744 uts4*)
21745 version_type=linux
21746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21747 soname_spec='${libname}${release}${shared_ext}$major'
21748 shlibpath_var=LD_LIBRARY_PATH
21752 dynamic_linker=no
21754 esac
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21756 $as_echo "$dynamic_linker" >&6; }
21757 test "$dynamic_linker" = no && can_build_shared=no
21759 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21760 if test "$GCC" = yes; then
21761 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21764 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21765 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21767 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21768 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21809 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21810 hardcode_action_CXX=
21811 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21812 test -n "$runpath_var_CXX" ||
21813 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21815 # We can hardcode non-existent directories.
21816 if test "$hardcode_direct_CXX" != no &&
21817 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21818 # have to relink, otherwise we might link with an installed library
21819 # when we should be linking with a yet-to-be-installed one
21820 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21821 test "$hardcode_minus_L_CXX" != no; then
21822 # Linking always hardcodes the temporary library directory.
21823 hardcode_action_CXX=relink
21824 else
21825 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21826 hardcode_action_CXX=immediate
21828 else
21829 # We cannot hardcode anything, or else we can only hardcode existing
21830 # directories.
21831 hardcode_action_CXX=unsupported
21833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21834 $as_echo "$hardcode_action_CXX" >&6; }
21836 if test "$hardcode_action_CXX" = relink ||
21837 test "$inherit_rpath_CXX" = yes; then
21838 # Fast installation is not supported
21839 enable_fast_install=no
21840 elif test "$shlibpath_overrides_runpath" = yes ||
21841 test "$enable_shared" = no; then
21842 # Fast installation is not necessary
21843 enable_fast_install=needless
21852 fi # test -n "$compiler"
21854 CC=$lt_save_CC
21855 LDCXX=$LD
21856 LD=$lt_save_LD
21857 GCC=$lt_save_GCC
21858 with_gnu_ld=$lt_save_with_gnu_ld
21859 lt_cv_path_LDCXX=$lt_cv_path_LD
21860 lt_cv_path_LD=$lt_save_path_LD
21861 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21862 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21863 fi # test "$_lt_caught_CXX_error" != yes
21865 ac_ext=cpp
21866 ac_cpp='$CXXCPP $CPPFLAGS'
21867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21868 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21886 # Only expand once:
21892 # Identify the assembler which will work hand-in-glove with the newly
21893 # built GCC, so that we can examine its features. This is the assembler
21894 # which will be driven by the driver program.
21896 # If build != host, and we aren't building gas in-tree, we identify a
21897 # build->target assembler and hope that it will have the same features
21898 # as the host->target assembler we'll be using.
21899 gcc_cv_gas_major_version=
21900 gcc_cv_gas_minor_version=
21901 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21903 if test "${gcc_cv_as+set}" = set; then :
21905 else
21907 if test -x "$DEFAULT_ASSEMBLER"; then
21908 gcc_cv_as="$DEFAULT_ASSEMBLER"
21909 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21910 && test -f ../gas/Makefile \
21911 && test x$build = x$host; then
21912 gcc_cv_as=../gas/as-new$build_exeext
21913 elif test -x as$build_exeext; then
21914 # Build using assembler in the current directory.
21915 gcc_cv_as=./as$build_exeext
21916 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21917 gcc_cv_as="$AS_FOR_TARGET"
21918 else
21919 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21920 set dummy $AS_FOR_TARGET; ac_word=$2
21921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21922 $as_echo_n "checking for $ac_word... " >&6; }
21923 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21924 $as_echo_n "(cached) " >&6
21925 else
21926 case $gcc_cv_as in
21927 [\\/]* | ?:[\\/]*)
21928 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21932 for as_dir in $PATH
21934 IFS=$as_save_IFS
21935 test -z "$as_dir" && as_dir=.
21936 for ac_exec_ext in '' $ac_executable_extensions; do
21937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21938 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21940 break 2
21942 done
21943 done
21944 IFS=$as_save_IFS
21947 esac
21949 gcc_cv_as=$ac_cv_path_gcc_cv_as
21950 if test -n "$gcc_cv_as"; then
21951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21952 $as_echo "$gcc_cv_as" >&6; }
21953 else
21954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21955 $as_echo "no" >&6; }
21962 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21964 case "$ORIGINAL_AS_FOR_TARGET" in
21965 ./as | ./as$build_exeext) ;;
21966 *) ac_config_files="$ac_config_files as:exec-tool.in"
21968 esac
21970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21971 $as_echo_n "checking what assembler to use... " >&6; }
21972 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21973 # Single tree build which includes gas. We want to prefer it
21974 # over whatever linker top-level may have detected, since
21975 # we'll use what we're building after installation anyway.
21976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21977 $as_echo "newly built gas" >&6; }
21978 in_tree_gas=yes
21979 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21980 for f in $gcc_cv_as_bfd_srcdir/configure \
21981 $gcc_cv_as_gas_srcdir/configure \
21982 $gcc_cv_as_gas_srcdir/configure.ac \
21983 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21984 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21985 if test x$gcc_cv_gas_version != x; then
21986 break
21988 done
21989 case $gcc_cv_gas_version in
21990 VERSION=[0-9]*) ;;
21991 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21992 esac
21993 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21994 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21995 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21996 case $gcc_cv_gas_patch_version in
21997 "") gcc_cv_gas_patch_version="0" ;;
21998 esac
21999 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22000 + $gcc_cv_gas_minor_version \) \* 1000 \
22001 + $gcc_cv_gas_patch_version`
22003 in_tree_gas_is_elf=no
22004 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
22005 || (grep 'obj_format = multi' ../gas/Makefile \
22006 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
22007 then
22008 in_tree_gas_is_elf=yes
22010 else
22011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22012 $as_echo "$gcc_cv_as" >&6; }
22013 in_tree_gas=no
22016 default_ld=
22017 # Check whether --enable-ld was given.
22018 if test "${enable_ld+set}" = set; then :
22019 enableval=$enable_ld; case "${enableval}" in
22021 default_ld=ld.gold
22023 esac
22027 install_gold_as_default=no
22028 # Check whether --enable-gold was given.
22029 if test "${enable_gold+set}" = set; then :
22030 enableval=$enable_gold; case "${enableval}" in
22031 default)
22032 install_gold_as_default=yes
22034 yes)
22035 if test x${default_ld} != x; then
22036 install_gold_as_default=yes
22042 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
22044 esac
22048 # Identify the linker which will work hand-in-glove with the newly
22049 # built GCC, so that we can examine its features. This is the linker
22050 # which will be driven by the driver program.
22052 # If build != host, and we aren't building gas in-tree, we identify a
22053 # build->target linker and hope that it will have the same features
22054 # as the host->target linker we'll be using.
22055 gcc_cv_gld_major_version=
22056 gcc_cv_gld_minor_version=
22057 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22058 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22059 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22061 if test "${gcc_cv_ld+set}" = set; then :
22063 else
22065 if test -x "$DEFAULT_LINKER"; then
22066 gcc_cv_ld="$DEFAULT_LINKER"
22067 elif test $install_gold_as_default = yes \
22068 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22069 && test -f ../gold/Makefile \
22070 && test x$build = x$host; then
22071 gcc_cv_ld=../gold/ld-new$build_exeext
22072 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22073 && test -f ../ld/Makefile \
22074 && test x$build = x$host; then
22075 gcc_cv_ld=../ld/ld-new$build_exeext
22076 elif test -x collect-ld$build_exeext; then
22077 # Build using linker in the current directory.
22078 gcc_cv_ld=./collect-ld$build_exeext
22079 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22080 gcc_cv_ld="$LD_FOR_TARGET"
22081 else
22082 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22083 set dummy $LD_FOR_TARGET; ac_word=$2
22084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22085 $as_echo_n "checking for $ac_word... " >&6; }
22086 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
22087 $as_echo_n "(cached) " >&6
22088 else
22089 case $gcc_cv_ld in
22090 [\\/]* | ?:[\\/]*)
22091 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22095 for as_dir in $PATH
22097 IFS=$as_save_IFS
22098 test -z "$as_dir" && as_dir=.
22099 for ac_exec_ext in '' $ac_executable_extensions; do
22100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22101 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22103 break 2
22105 done
22106 done
22107 IFS=$as_save_IFS
22110 esac
22112 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22113 if test -n "$gcc_cv_ld"; then
22114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22115 $as_echo "$gcc_cv_ld" >&6; }
22116 else
22117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22118 $as_echo "no" >&6; }
22125 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22126 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22127 # if the PLUGIN_LD is set ld-new, just have it as ld
22128 # as that is the installed named.
22129 if test x$PLUGIN_LD_SUFFIX = xld-new \
22130 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22131 PLUGIN_LD_SUFFIX=ld
22134 # Check whether --with-plugin-ld was given.
22135 if test "${with_plugin_ld+set}" = set; then :
22136 withval=$with_plugin_ld; if test x"$withval" != x; then
22137 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22138 PLUGIN_LD_SUFFIX="$withval"
22144 cat >>confdefs.h <<_ACEOF
22145 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22146 _ACEOF
22149 # Check to see if we are using gold instead of ld
22150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22151 $as_echo_n "checking whether we are using gold... " >&6; }
22152 ld_is_gold=no
22153 if test x$gcc_cv_ld != x; then
22154 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22155 | grep "GNU gold" > /dev/null; then
22156 ld_is_gold=yes
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22160 $as_echo "$ld_is_gold" >&6; }
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22163 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22164 # Check to see if default ld is not gold, but gold is
22165 # available and has support for split stack. If gcc was configured
22166 # with gold then no checking is done.
22168 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22170 # For platforms other than powerpc64*, enable as appropriate.
22172 gold_non_default=no
22173 ld_gold=`which ${gcc_cv_ld}.gold`
22174 # Make sure this gold has minimal split stack support
22175 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22176 ld_vers=`$ld_gold --version | sed 1q`
22177 gold_vers=`echo $ld_vers | sed -n \
22178 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22179 case $target in
22180 # check that the gold version contains the complete split stack support
22181 # on powerpc64 big and little endian
22182 powerpc64*-*-*)
22183 case "$gold_vers" in
22184 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22186 *) gold_non_default=no
22188 esac
22190 esac
22192 if test $gold_non_default = yes; then
22194 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22199 $as_echo "$gold_non_default" >&6; }
22201 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22203 case "$ORIGINAL_LD_FOR_TARGET" in
22204 ./collect-ld | ./collect-ld$build_exeext) ;;
22205 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22207 esac
22209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22210 $as_echo_n "checking what linker to use... " >&6; }
22211 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22212 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22213 # Single tree build which includes ld. We want to prefer it
22214 # over whatever linker top-level may have detected, since
22215 # we'll use what we're building after installation anyway.
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22217 $as_echo "newly built ld" >&6; }
22218 in_tree_ld=yes
22219 in_tree_ld_is_elf=no
22220 if (grep 'EMUL = .*elf' ../ld/Makefile \
22221 || grep 'EMUL = .*linux' ../ld/Makefile \
22222 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22223 in_tree_ld_is_elf=yes
22224 elif test "$ld_is_gold" = yes; then
22225 in_tree_ld_is_elf=yes
22227 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
22229 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22230 if test x$gcc_cv_gld_version != x; then
22231 break
22233 done
22234 case $gcc_cv_gld_version in
22235 VERSION=[0-9]*) ;;
22236 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22237 esac
22238 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22239 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22240 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22241 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22242 else
22243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22244 $as_echo "$gcc_cv_ld" >&6; }
22245 in_tree_ld=no
22246 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22247 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22248 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22254 # Figure out what nm we will be using.
22255 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22256 if test "${gcc_cv_nm+set}" = set; then :
22258 else
22260 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22261 && test -f ../binutils/Makefile \
22262 && test x$build = x$host; then
22263 gcc_cv_nm=../binutils/nm-new$build_exeext
22264 elif test -x nm$build_exeext; then
22265 gcc_cv_nm=./nm$build_exeext
22266 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22267 gcc_cv_nm="$NM_FOR_TARGET"
22268 else
22269 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22270 set dummy $NM_FOR_TARGET; ac_word=$2
22271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22272 $as_echo_n "checking for $ac_word... " >&6; }
22273 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22274 $as_echo_n "(cached) " >&6
22275 else
22276 case $gcc_cv_nm in
22277 [\\/]* | ?:[\\/]*)
22278 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22282 for as_dir in $PATH
22284 IFS=$as_save_IFS
22285 test -z "$as_dir" && as_dir=.
22286 for ac_exec_ext in '' $ac_executable_extensions; do
22287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22288 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22290 break 2
22292 done
22293 done
22294 IFS=$as_save_IFS
22297 esac
22299 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22300 if test -n "$gcc_cv_nm"; then
22301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22302 $as_echo "$gcc_cv_nm" >&6; }
22303 else
22304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22305 $as_echo "no" >&6; }
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22313 $as_echo_n "checking what nm to use... " >&6; }
22314 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22315 # Single tree build which includes binutils.
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22317 $as_echo "newly built nm" >&6; }
22318 in_tree_nm=yes
22319 else
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22321 $as_echo "$gcc_cv_nm" >&6; }
22322 in_tree_nm=no
22325 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22327 case "$ORIGINAL_NM_FOR_TARGET" in
22328 ./nm | ./nm$build_exeext) ;;
22329 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22331 esac
22334 # Figure out what objdump we will be using.
22335 if test "${gcc_cv_objdump+set}" = set; then :
22337 else
22339 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22340 && test -f ../binutils/Makefile \
22341 && test x$build = x$host; then
22342 # Single tree build which includes binutils.
22343 gcc_cv_objdump=../binutils/objdump$build_exeext
22344 elif test -x objdump$build_exeext; then
22345 gcc_cv_objdump=./objdump$build_exeext
22346 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22347 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22348 else
22349 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22350 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22352 $as_echo_n "checking for $ac_word... " >&6; }
22353 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22354 $as_echo_n "(cached) " >&6
22355 else
22356 case $gcc_cv_objdump in
22357 [\\/]* | ?:[\\/]*)
22358 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22362 for as_dir in $PATH
22364 IFS=$as_save_IFS
22365 test -z "$as_dir" && as_dir=.
22366 for ac_exec_ext in '' $ac_executable_extensions; do
22367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22368 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22370 break 2
22372 done
22373 done
22374 IFS=$as_save_IFS
22377 esac
22379 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22380 if test -n "$gcc_cv_objdump"; then
22381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22382 $as_echo "$gcc_cv_objdump" >&6; }
22383 else
22384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22385 $as_echo "no" >&6; }
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22393 $as_echo_n "checking what objdump to use... " >&6; }
22394 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22395 # Single tree build which includes binutils.
22396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22397 $as_echo "newly built objdump" >&6; }
22398 elif test x$gcc_cv_objdump = x; then
22399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22400 $as_echo "not found" >&6; }
22401 else
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22403 $as_echo "$gcc_cv_objdump" >&6; }
22406 # Figure out what readelf we will be using.
22407 if test "${gcc_cv_readelf+set}" = set; then :
22409 else
22411 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22412 && test -f ../binutils/Makefile \
22413 && test x$build = x$host; then
22414 # Single tree build which includes binutils.
22415 gcc_cv_readelf=../binutils/readelf$build_exeext
22416 elif test -x readelf$build_exeext; then
22417 gcc_cv_readelf=./readelf$build_exeext
22418 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22419 gcc_cv_readelf="$READELF_FOR_TARGET"
22420 else
22421 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22422 set dummy $READELF_FOR_TARGET; ac_word=$2
22423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22424 $as_echo_n "checking for $ac_word... " >&6; }
22425 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22426 $as_echo_n "(cached) " >&6
22427 else
22428 case $gcc_cv_readelf in
22429 [\\/]* | ?:[\\/]*)
22430 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22434 for as_dir in $PATH
22436 IFS=$as_save_IFS
22437 test -z "$as_dir" && as_dir=.
22438 for ac_exec_ext in '' $ac_executable_extensions; do
22439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22440 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22442 break 2
22444 done
22445 done
22446 IFS=$as_save_IFS
22449 esac
22451 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22452 if test -n "$gcc_cv_readelf"; then
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22454 $as_echo "$gcc_cv_readelf" >&6; }
22455 else
22456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22457 $as_echo "no" >&6; }
22464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22465 $as_echo_n "checking what readelf to use... " >&6; }
22466 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22467 # Single tree build which includes binutils.
22468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22469 $as_echo "newly built readelf" >&6; }
22470 elif test x$gcc_cv_readelf = x; then
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22472 $as_echo "not found" >&6; }
22473 else
22474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22475 $as_echo "$gcc_cv_readelf" >&6; }
22478 # Figure out what assembler alignment features are present.
22479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22480 $as_echo_n "checking assembler flags... " >&6; }
22481 if test "${gcc_cv_as_flags+set}" = set; then :
22482 $as_echo_n "(cached) " >&6
22483 else
22484 case "$target" in
22485 i[34567]86-*-linux*)
22486 gcc_cv_as_flags=--32
22488 x86_64-*-linux-gnux32)
22489 gcc_cv_as_flags=--x32
22491 x86_64-*-linux*)
22492 gcc_cv_as_flags=--64
22494 powerpc*-*-darwin*)
22495 gcc_cv_as_flags="-arch ppc"
22498 gcc_cv_as_flags=" "
22500 esac
22502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22503 $as_echo "$gcc_cv_as_flags" >&6; }
22505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22506 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22507 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22508 $as_echo_n "(cached) " >&6
22509 else
22510 gcc_cv_as_balign_and_p2align=no
22511 if test $in_tree_gas = yes; then
22512 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22513 then gcc_cv_as_balign_and_p2align=yes
22515 elif test x$gcc_cv_as != x; then
22516 $as_echo '.balign 4
22517 .p2align 2' > conftest.s
22518 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22520 (eval $ac_try) 2>&5
22521 ac_status=$?
22522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22523 test $ac_status = 0; }; }
22524 then
22525 gcc_cv_as_balign_and_p2align=yes
22526 else
22527 echo "configure: failed program was" >&5
22528 cat conftest.s >&5
22530 rm -f conftest.o conftest.s
22533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22534 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22535 if test $gcc_cv_as_balign_and_p2align = yes; then
22537 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22543 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22544 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22545 $as_echo_n "(cached) " >&6
22546 else
22547 gcc_cv_as_max_skip_p2align=no
22548 if test $in_tree_gas = yes; then
22549 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22550 then gcc_cv_as_max_skip_p2align=yes
22552 elif test x$gcc_cv_as != x; then
22553 $as_echo '.p2align 4,,7' > conftest.s
22554 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22556 (eval $ac_try) 2>&5
22557 ac_status=$?
22558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22559 test $ac_status = 0; }; }
22560 then
22561 gcc_cv_as_max_skip_p2align=yes
22562 else
22563 echo "configure: failed program was" >&5
22564 cat conftest.s >&5
22566 rm -f conftest.o conftest.s
22569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22570 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22571 if test $gcc_cv_as_max_skip_p2align = yes; then
22573 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22579 $as_echo_n "checking assembler for .literal16... " >&6; }
22580 if test "${gcc_cv_as_literal16+set}" = set; then :
22581 $as_echo_n "(cached) " >&6
22582 else
22583 gcc_cv_as_literal16=no
22584 if test $in_tree_gas = yes; then
22585 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22586 then gcc_cv_as_literal16=yes
22588 elif test x$gcc_cv_as != x; then
22589 $as_echo '.literal16' > conftest.s
22590 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22592 (eval $ac_try) 2>&5
22593 ac_status=$?
22594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22595 test $ac_status = 0; }; }
22596 then
22597 gcc_cv_as_literal16=yes
22598 else
22599 echo "configure: failed program was" >&5
22600 cat conftest.s >&5
22602 rm -f conftest.o conftest.s
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22606 $as_echo "$gcc_cv_as_literal16" >&6; }
22607 if test $gcc_cv_as_literal16 = yes; then
22609 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22615 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22616 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22617 $as_echo_n "(cached) " >&6
22618 else
22619 gcc_cv_as_subsection_m1=no
22620 if test $in_tree_gas = yes; then
22621 if test $in_tree_gas_is_elf = yes \
22622 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22623 then gcc_cv_as_subsection_m1=yes
22625 elif test x$gcc_cv_as != x; then
22626 $as_echo 'conftest_label1: .word 0
22627 .subsection -1
22628 conftest_label2: .word 0
22629 .previous' > conftest.s
22630 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22632 (eval $ac_try) 2>&5
22633 ac_status=$?
22634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22635 test $ac_status = 0; }; }
22636 then
22637 if test x$gcc_cv_nm != x; then
22638 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22639 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22640 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22641 then :
22642 else gcc_cv_as_subsection_m1=yes
22644 rm -f conftest.nm1 conftest.nm2
22646 else
22647 echo "configure: failed program was" >&5
22648 cat conftest.s >&5
22650 rm -f conftest.o conftest.s
22653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22654 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22655 if test $gcc_cv_as_subsection_m1 = yes; then
22657 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22663 $as_echo_n "checking assembler for .weak... " >&6; }
22664 if test "${gcc_cv_as_weak+set}" = set; then :
22665 $as_echo_n "(cached) " >&6
22666 else
22667 gcc_cv_as_weak=no
22668 if test $in_tree_gas = yes; then
22669 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22670 then gcc_cv_as_weak=yes
22672 elif test x$gcc_cv_as != x; then
22673 $as_echo ' .weak foobar' > conftest.s
22674 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22676 (eval $ac_try) 2>&5
22677 ac_status=$?
22678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22679 test $ac_status = 0; }; }
22680 then
22681 gcc_cv_as_weak=yes
22682 else
22683 echo "configure: failed program was" >&5
22684 cat conftest.s >&5
22686 rm -f conftest.o conftest.s
22689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22690 $as_echo "$gcc_cv_as_weak" >&6; }
22691 if test $gcc_cv_as_weak = yes; then
22693 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22699 $as_echo_n "checking assembler for .weakref... " >&6; }
22700 if test "${gcc_cv_as_weakref+set}" = set; then :
22701 $as_echo_n "(cached) " >&6
22702 else
22703 gcc_cv_as_weakref=no
22704 if test $in_tree_gas = yes; then
22705 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22706 then gcc_cv_as_weakref=yes
22708 elif test x$gcc_cv_as != x; then
22709 $as_echo ' .weakref foobar, barfnot' > conftest.s
22710 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22712 (eval $ac_try) 2>&5
22713 ac_status=$?
22714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22715 test $ac_status = 0; }; }
22716 then
22717 gcc_cv_as_weakref=yes
22718 else
22719 echo "configure: failed program was" >&5
22720 cat conftest.s >&5
22722 rm -f conftest.o conftest.s
22725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22726 $as_echo "$gcc_cv_as_weakref" >&6; }
22727 if test $gcc_cv_as_weakref = yes; then
22729 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22735 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22736 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22737 $as_echo_n "(cached) " >&6
22738 else
22739 gcc_cv_as_nsubspa_comdat=no
22740 if test $in_tree_gas = yes; then
22741 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22742 then gcc_cv_as_nsubspa_comdat=yes
22744 elif test x$gcc_cv_as != x; then
22745 $as_echo ' .SPACE $TEXT$
22746 .NSUBSPA $CODE$,COMDAT' > conftest.s
22747 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22749 (eval $ac_try) 2>&5
22750 ac_status=$?
22751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22752 test $ac_status = 0; }; }
22753 then
22754 gcc_cv_as_nsubspa_comdat=yes
22755 else
22756 echo "configure: failed program was" >&5
22757 cat conftest.s >&5
22759 rm -f conftest.o conftest.s
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22763 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22764 if test $gcc_cv_as_nsubspa_comdat = yes; then
22766 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22771 # .hidden needs to be supported in both the assembler and the linker,
22772 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22773 # This is irritatingly difficult to feature test for; we have to check the
22774 # date string after the version number. If we've got an in-tree
22775 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22776 # to be safe.
22777 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22778 case "${target}" in
22779 *-*-aix*)
22780 conftest_s=' .globl foobar,hidden'
22783 conftest_s=' .hidden foobar
22784 foobar:'
22786 esac
22787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22788 $as_echo_n "checking assembler for .hidden... " >&6; }
22789 if test "${gcc_cv_as_hidden+set}" = set; then :
22790 $as_echo_n "(cached) " >&6
22791 else
22792 gcc_cv_as_hidden=no
22793 if test $in_tree_gas = yes; then
22794 if test $in_tree_gas_is_elf = yes \
22795 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22796 then gcc_cv_as_hidden=yes
22798 elif test x$gcc_cv_as != x; then
22799 $as_echo "$conftest_s" > conftest.s
22800 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22802 (eval $ac_try) 2>&5
22803 ac_status=$?
22804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22805 test $ac_status = 0; }; }
22806 then
22807 gcc_cv_as_hidden=yes
22808 else
22809 echo "configure: failed program was" >&5
22810 cat conftest.s >&5
22812 rm -f conftest.o conftest.s
22815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22816 $as_echo "$gcc_cv_as_hidden" >&6; }
22819 case "${target}" in
22820 *-*-darwin*)
22821 # Darwin as has some visibility support, though with a different syntax.
22822 gcc_cv_as_hidden=yes
22824 esac
22826 # gnu_indirect_function type is an extension proposed at
22827 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22828 # selection of function implementation
22829 # Check whether --enable-gnu-indirect-function was given.
22830 if test "${enable_gnu_indirect_function+set}" = set; then :
22831 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22832 yes | no) ;;
22833 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22834 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22835 esac
22836 else
22837 enable_gnu_indirect_function="$default_gnu_indirect_function"
22841 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22843 cat >>confdefs.h <<_ACEOF
22844 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22845 _ACEOF
22849 if test $in_tree_ld != yes ; then
22850 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22851 if echo "$ld_ver" | grep GNU > /dev/null; then
22852 if test x"$ld_is_gold" = xyes; then
22853 # GNU gold --version looks like this:
22855 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22857 # We extract the binutils version which is more familiar and specific
22858 # than the gold version.
22859 ld_vers=`echo $ld_ver | sed -n \
22860 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22861 else
22862 # GNU ld --version looks like this:
22864 # GNU ld (GNU Binutils) 2.21.51.20110225
22865 ld_vers=`echo $ld_ver | sed -n \
22866 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22868 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'`
22869 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22870 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22871 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22872 else
22873 case "${target}" in
22874 *-*-solaris2*)
22875 # Solaris 2 ld -V output looks like this for a regular version:
22877 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22879 # but test versions add stuff at the end:
22881 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22883 # In Solaris 11.4, this was changed to
22885 # ld: Solaris ELF Utilities: 11.4-1.3123
22887 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
22888 # numbers can be used in ld.so.1 feature checks even if a different
22889 # linker is configured.
22890 ld_ver=`$gcc_cv_ld -V 2>&1`
22891 if echo "$ld_ver" | $EGREP 'Solaris Link Editors|Solaris ELF Utilities' > /dev/null; then
22892 ld_vers=`echo $ld_ver | sed -n \
22893 -e 's,^.*: \(5\|1[0-9]\)\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\2,p'`
22894 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22895 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22898 esac
22902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22903 $as_echo_n "checking linker for .hidden support... " >&6; }
22904 if test "${gcc_cv_ld_hidden+set}" = set; then :
22905 $as_echo_n "(cached) " >&6
22906 else
22907 if test $in_tree_ld = yes ; then
22908 gcc_cv_ld_hidden=no
22909 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 \
22910 && test $in_tree_ld_is_elf = yes; then
22911 gcc_cv_ld_hidden=yes
22913 else
22914 gcc_cv_ld_hidden=yes
22915 if test x"$ld_is_gold" = xyes; then
22917 elif echo "$ld_ver" | grep GNU > /dev/null; then
22918 case "${target}" in
22919 mmix-knuth-mmixware)
22920 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22921 gcc_cv_ld_hidden=no
22923 esac
22924 if test 0"$ld_date" -lt 20020404; then
22925 if test -n "$ld_date"; then
22926 # If there was date string, but was earlier than 2002-04-04, fail
22927 gcc_cv_ld_hidden=no
22928 elif test -z "$ld_vers"; then
22929 # If there was no date string nor ld version number, something is wrong
22930 gcc_cv_ld_hidden=no
22931 else
22932 test -z "$ld_vers_patch" && ld_vers_patch=0
22933 if test "$ld_vers_major" -lt 2; then
22934 gcc_cv_ld_hidden=no
22935 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22936 gcc_cv_ld_hidden="no"
22937 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22938 gcc_cv_ld_hidden=no
22942 else
22943 case "${target}" in
22944 *-*-aix[789]*)
22945 gcc_cv_ld_hidden=yes
22947 *-*-darwin*)
22948 # Darwin ld has some visibility support.
22949 gcc_cv_ld_hidden=yes
22951 hppa64*-*-hpux* | ia64*-*-hpux*)
22952 gcc_cv_ld_hidden=yes
22954 *-*-solaris2.1[0-9]*)
22955 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22956 # .symbolic was only added in Solaris 9 12/02.
22957 gcc_cv_ld_hidden=yes
22960 gcc_cv_ld_hidden=no
22962 esac
22966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22967 $as_echo "$gcc_cv_ld_hidden" >&6; }
22968 libgcc_visibility=no
22971 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22972 libgcc_visibility=yes
22974 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22979 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22980 gcc_cv_ld_ro_rw_mix=unknown
22981 if test $in_tree_ld = yes ; then
22982 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 \
22983 && test $in_tree_ld_is_elf = yes; then
22984 gcc_cv_ld_ro_rw_mix=read-write
22986 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22987 echo '.section myfoosect, "a"' > conftest1.s
22988 echo '.section myfoosect, "aw"' > conftest2.s
22989 echo '.byte 1' >> conftest2.s
22990 echo '.section myfoosect, "a"' > conftest3.s
22991 echo '.byte 0' >> conftest3.s
22992 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22993 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22994 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22995 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22996 conftest2.o conftest3.o > /dev/null 2>&1; then
22997 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22998 | sed -e '/myfoosect/!d' -e N`
22999 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
23000 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
23001 gcc_cv_ld_ro_rw_mix=read-only
23002 else
23003 gcc_cv_ld_ro_rw_mix=read-write
23007 rm -f conftest.* conftest[123].*
23009 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
23011 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23015 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23017 # Check whether --enable-initfini-array was given.
23018 if test "${enable_initfini_array+set}" = set; then :
23019 enableval=$enable_initfini_array;
23020 else
23022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23023 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23024 if test "${gcc_cv_initfini_array+set}" = set; then :
23025 $as_echo_n "(cached) " >&6
23026 else
23027 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23028 case "${target}" in
23029 ia64-*)
23030 if test "$cross_compiling" = yes; then :
23031 gcc_cv_initfini_array=no
23032 else
23033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23034 /* end confdefs.h. */
23036 #ifndef __ELF__
23037 #error Not an ELF OS
23038 #endif
23039 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23040 if it can be used. */
23041 static int x = -1;
23042 int main (void) { return x; }
23043 int foo (void) { x = 0; }
23044 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23046 _ACEOF
23047 if ac_fn_cxx_try_run "$LINENO"; then :
23048 gcc_cv_initfini_array=yes
23049 else
23050 gcc_cv_initfini_array=no
23052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23053 conftest.$ac_objext conftest.beam conftest.$ac_ext
23057 gcc_cv_initfini_array=no
23058 if test $in_tree_ld = yes ; then
23059 if test "$gcc_cv_gld_major_version" -eq 2 \
23060 -a "$gcc_cv_gld_minor_version" -ge 22 \
23061 -o "$gcc_cv_gld_major_version" -gt 2 \
23062 && test $in_tree_ld_is_elf = yes; then
23063 gcc_cv_initfini_array=yes
23065 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23066 case $target:$gas in
23067 *:yes)
23068 sh_flags='"a"'
23069 sh_type='%progbits'
23071 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23072 sh_flags='"a"'
23073 sh_type='@progbits'
23075 sparc*-*-solaris2*:no)
23076 sh_flags='#alloc'
23077 sh_type='#progbits'
23078 sh_quote='"'
23080 esac
23081 case "$target:$gnu_ld" in
23082 *:yes)
23083 cat > conftest.s <<EOF
23084 .section .dtors,$sh_flags,$sh_type
23085 .balign 4
23086 .byte 'A', 'A', 'A', 'A'
23087 .section .ctors,$sh_flags,$sh_type
23088 .balign 4
23089 .byte 'B', 'B', 'B', 'B'
23090 .section .fini_array.65530,$sh_flags,$sh_type
23091 .balign 4
23092 .byte 'C', 'C', 'C', 'C'
23093 .section .init_array.65530,$sh_flags,$sh_type
23094 .balign 4
23095 .byte 'D', 'D', 'D', 'D'
23096 .section .dtors.64528,$sh_flags,$sh_type
23097 .balign 4
23098 .byte 'E', 'E', 'E', 'E'
23099 .section .ctors.64528,$sh_flags,$sh_type
23100 .balign 4
23101 .byte 'F', 'F', 'F', 'F'
23102 .section .fini_array.01005,$sh_flags,$sh_type
23103 .balign 4
23104 .byte 'G', 'G', 'G', 'G'
23105 .section .init_array.01005,$sh_flags,$sh_type
23106 .balign 4
23107 .byte 'H', 'H', 'H', 'H'
23108 .text
23109 .globl _start
23110 _start:
23112 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23113 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23114 && $gcc_cv_objdump -s -j .init_array conftest \
23115 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23116 && $gcc_cv_objdump -s -j .fini_array conftest \
23117 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23118 gcc_cv_initfini_array=yes
23121 *-*-solaris2*:no)
23122 # When Solaris ld added constructor priority support, it was
23123 # decided to only handle .init_array.N/.fini_array.N since
23124 # there was no need for backwards compatibility with
23125 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23126 # sections with correct execution order resp. to
23127 # .init_array/.fini_array, while gld merges them into
23128 # .init_array/.fini_array.
23129 cat > conftest.s <<EOF
23130 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23131 .align 4
23132 .byte 'C', 'C', 'C', 'C'
23133 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23134 .align 4
23135 .byte 'D', 'D', 'D', 'D'
23136 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23137 .align 4
23138 .byte 'G', 'G', 'G', 'G'
23139 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23140 .align 4
23141 .byte 'H', 'H', 'H', 'H'
23142 .text
23143 .globl _start
23144 _start:
23146 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23147 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23148 && $gcc_cv_objdump -s -j .init_array conftest \
23149 | grep HHHHDDDD > /dev/null 2>&1 \
23150 && $gcc_cv_objdump -s -j .fini_array conftest \
23151 | grep GGGGCCCC > /dev/null 2>&1; then
23152 gcc_cv_initfini_array=yes
23155 esac
23156 rm -f conftest conftest.*
23158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23159 /* end confdefs.h. */
23161 #ifndef __ELF__
23162 # error Not an ELF OS
23163 #endif
23164 #include <stdlib.h>
23165 #if defined __GLIBC_PREREQ
23166 # if __GLIBC_PREREQ (2, 4)
23167 # else
23168 # error GLIBC 2.4 required
23169 # endif
23170 #else
23171 # if defined __sun__ && defined __svr4__
23172 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23173 # else
23174 # error The C library not known to support .init_array/.fini_array
23175 # endif
23176 #endif
23178 _ACEOF
23179 if ac_fn_cxx_try_cpp "$LINENO"; then :
23181 else
23182 gcc_cv_initfini_array=no
23184 rm -f conftest.err conftest.$ac_ext;;
23185 esac
23186 else
23187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23188 $as_echo_n "checking cross compile... guessing... " >&6; }
23189 gcc_cv_initfini_array=no
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23193 $as_echo "$gcc_cv_initfini_array" >&6; }
23194 enable_initfini_array=$gcc_cv_initfini_array
23199 cat >>confdefs.h <<_ACEOF
23200 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23201 _ACEOF
23205 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23207 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23208 if test "${gcc_cv_as_leb128+set}" = set; then :
23209 $as_echo_n "(cached) " >&6
23210 else
23211 gcc_cv_as_leb128=no
23212 if test $in_tree_gas = yes; then
23213 if test $in_tree_gas_is_elf = yes \
23214 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23215 then gcc_cv_as_leb128=yes
23217 elif test x$gcc_cv_as != x; then
23218 $as_echo ' .data
23219 .uleb128 L2 - L1
23221 .uleb128 1280
23222 .sleb128 -1010
23223 L2:' > conftest.s
23224 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23226 (eval $ac_try) 2>&5
23227 ac_status=$?
23228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23229 test $ac_status = 0; }; }
23230 then
23231 # GAS versions before 2.11 do not support uleb128,
23232 # despite appearing to.
23233 # ??? There exists an elf-specific test that will crash
23234 # the assembler. Perhaps it's better to figure out whether
23235 # arbitrary sections are supported and try the test.
23236 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23237 if echo "$as_ver" | grep GNU > /dev/null; then
23238 as_vers=`echo $as_ver | sed -n \
23239 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23240 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23241 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23242 if test $as_major -eq 2 && test $as_minor -lt 11
23243 then :
23244 else gcc_cv_as_leb128=yes
23247 else
23248 echo "configure: failed program was" >&5
23249 cat conftest.s >&5
23251 rm -f conftest.o conftest.s
23254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23255 $as_echo "$gcc_cv_as_leb128" >&6; }
23256 if test $gcc_cv_as_leb128 = yes; then
23258 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23261 if test $gcc_cv_as_leb128 != yes; then
23263 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23267 # Determine if an .eh_frame section is read-only.
23268 gcc_fn_eh_frame_ro () {
23269 $gcc_cv_as $1 -o conftest.o conftest.s > /dev/null 2>&1 && \
23270 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23271 sed -e '/.eh_frame/!d' -e N | grep READONLY > /dev/null
23274 # Check if we have assembler support for unwind directives.
23275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23276 $as_echo_n "checking assembler for cfi directives... " >&6; }
23277 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23278 $as_echo_n "(cached) " >&6
23279 else
23280 gcc_cv_as_cfi_directive=no
23281 if test x$gcc_cv_as != x; then
23282 $as_echo ' .text
23283 .cfi_startproc
23284 .cfi_offset 0, 0
23285 .cfi_same_value 1
23286 .cfi_def_cfa 1, 2
23287 .cfi_escape 1, 2, 3, 4, 5
23288 .cfi_endproc' > conftest.s
23289 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23291 (eval $ac_try) 2>&5
23292 ac_status=$?
23293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23294 test $ac_status = 0; }; }
23295 then
23296 case "$target" in
23297 *-*-solaris*)
23298 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23299 # read-only and read-write sections, we need to make sure that the
23300 # assembler used emits read-write .eh_frame sections.
23301 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write; then
23302 gcc_cv_as_cfi_directive=yes
23303 elif test "x$gcc_cv_objdump" = x; then
23304 # No objdump, err on the side of caution.
23305 gcc_cv_as_cfi_directive=no
23306 else
23307 if test x$gas = xyes; then
23308 as_32_opt="--32"
23309 as_64_opt="--64"
23310 else
23311 as_32_opt="-m32"
23312 as_64_opt="-m64"
23314 case "$target" in
23315 sparc*-*-solaris2.*)
23316 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23317 if gcc_fn_eh_frame_ro $as_32_opt \
23318 || gcc_fn_eh_frame_ro $as_64_opt; then
23319 gcc_cv_as_cfi_directive=no
23320 else
23321 gcc_cv_as_cfi_directive=yes
23324 i?86-*-solaris2.* | x86_64-*-solaris2.*)
23325 # On Solaris/x86, make sure that GCC and assembler agree on using
23326 # read-only .eh_frame sections for 64-bit.
23327 if gcc_fn_eh_frame_ro $as_32_opt; then
23328 gcc_cv_as_cfi_directive=no
23329 elif gcc_fn_eh_frame_ro $as_64_opt; then
23330 gcc_cv_as_cfi_directive=yes
23331 else
23332 gcc_cv_as_cfi_directive=no
23335 esac
23338 *-*-*)
23339 gcc_cv_as_cfi_directive=yes
23341 esac
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_cfi_directive" >&5
23350 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23353 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23355 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23356 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23357 $as_echo_n "(cached) " >&6
23358 else
23359 gcc_cv_as_cfi_advance_working=no
23360 if test x$gcc_cv_as != x; then
23361 $as_echo ' .text
23362 .cfi_startproc
23363 .cfi_adjust_cfa_offset 64
23364 .skip 75040, 0
23365 .cfi_adjust_cfa_offset 128
23366 .cfi_endproc' > conftest.s
23367 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23369 (eval $ac_try) 2>&5
23370 ac_status=$?
23371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23372 test $ac_status = 0; }; }
23373 then
23375 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23376 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23377 gcc_cv_as_cfi_advance_working=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_cfi_advance_working" >&5
23388 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23391 else
23392 # no objdump, err on the side of caution
23393 gcc_cv_as_cfi_advance_working=no
23397 cat >>confdefs.h <<_ACEOF
23398 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23399 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23400 _ACEOF
23404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23405 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23406 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23407 $as_echo_n "(cached) " >&6
23408 else
23409 gcc_cv_as_cfi_personality_directive=no
23410 if test x$gcc_cv_as != x; then
23411 $as_echo ' .text
23412 .cfi_startproc
23413 .cfi_personality 0, symbol
23414 .cfi_endproc' > conftest.s
23415 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23417 (eval $ac_try) 2>&5
23418 ac_status=$?
23419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23420 test $ac_status = 0; }; }
23421 then
23422 gcc_cv_as_cfi_personality_directive=yes
23423 else
23424 echo "configure: failed program was" >&5
23425 cat conftest.s >&5
23427 rm -f conftest.o conftest.s
23430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23431 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23435 cat >>confdefs.h <<_ACEOF
23436 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23437 then echo 1; else echo 0; fi`
23438 _ACEOF
23441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23442 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23443 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23444 $as_echo_n "(cached) " >&6
23445 else
23446 gcc_cv_as_cfi_sections_directive=no
23447 if test x$gcc_cv_as != x; then
23448 $as_echo ' .text
23449 .cfi_sections .debug_frame, .eh_frame
23450 .cfi_startproc
23451 .cfi_endproc' > conftest.s
23452 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23454 (eval $ac_try) 2>&5
23455 ac_status=$?
23456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23457 test $ac_status = 0; }; }
23458 then
23459 case $target_os in
23460 win32 | pe | cygwin* | mingw32*)
23461 # Need to check that we generated the correct relocation for the
23462 # .debug_frame section. This was fixed for binutils 2.21.
23463 gcc_cv_as_cfi_sections_directive=no
23464 if test "x$gcc_cv_objdump" != x; then
23465 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23466 grep secrel > /dev/null; then
23467 gcc_cv_as_cfi_sections_directive=yes
23472 gcc_cv_as_cfi_sections_directive=yes
23474 esac
23475 else
23476 echo "configure: failed program was" >&5
23477 cat conftest.s >&5
23479 rm -f conftest.o conftest.s
23482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23483 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23488 cat >>confdefs.h <<_ACEOF
23489 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23490 then echo 1; else echo 0; fi`
23491 _ACEOF
23494 # GAS versions up to and including 2.11.0 may mis-optimize
23495 # .eh_frame data.
23496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23497 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23498 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23499 $as_echo_n "(cached) " >&6
23500 else
23501 gcc_cv_as_eh_frame=no
23502 if test $in_tree_gas = yes; then
23503 if test $in_tree_gas_is_elf = yes \
23504 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23505 then gcc_cv_as_eh_frame=yes
23507 elif test x$gcc_cv_as != x; then
23508 $as_echo ' .text
23509 .LFB1:
23510 .4byte 0
23511 .L1:
23512 .4byte 0
23513 .LFE1:
23514 .section .eh_frame,"aw",@progbits
23515 __FRAME_BEGIN__:
23516 .4byte .LECIE1-.LSCIE1
23517 .LSCIE1:
23518 .4byte 0x0
23519 .byte 0x1
23520 .ascii "z\0"
23521 .byte 0x1
23522 .byte 0x78
23523 .byte 0x1a
23524 .byte 0x0
23525 .byte 0x4
23526 .4byte 1
23527 .p2align 1
23528 .LECIE1:
23529 .LSFDE1:
23530 .4byte .LEFDE1-.LASFDE1
23531 .LASFDE1:
23532 .4byte .LASFDE1-__FRAME_BEGIN__
23533 .4byte .LFB1
23534 .4byte .LFE1-.LFB1
23535 .byte 0x4
23536 .4byte .LFE1-.LFB1
23537 .byte 0x4
23538 .4byte .L1-.LFB1
23539 .LEFDE1:' > conftest.s
23540 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23542 (eval $ac_try) 2>&5
23543 ac_status=$?
23544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23545 test $ac_status = 0; }; }
23546 then
23547 cat > conftest.lit <<EOF
23548 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23549 0010 01000000 12000000 18000000 00000000 ................
23550 0020 08000000 04080000 0044 .........D
23552 cat > conftest.big <<EOF
23553 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23554 0010 00000001 00000012 00000018 00000000 ................
23555 0020 00000008 04000000 0844 .........D
23557 # If the assembler didn't choke, and we can objdump,
23558 # and we got the correct data, then succeed.
23559 # The text in the here-document typically retains its unix-style line
23560 # endings, while the output of objdump will use host line endings.
23561 # Therefore, use diff -b for the comparisons.
23562 if test x$gcc_cv_objdump != x \
23563 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23564 | tail -3 > conftest.got \
23565 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23566 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23567 then
23568 gcc_cv_as_eh_frame=yes
23569 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23571 (eval $ac_try) 2>&5
23572 ac_status=$?
23573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23574 test $ac_status = 0; }; }; then
23575 gcc_cv_as_eh_frame=buggy
23576 else
23577 # Uh oh, what do we do now?
23578 gcc_cv_as_eh_frame=no
23580 else
23581 echo "configure: failed program was" >&5
23582 cat conftest.s >&5
23584 rm -f conftest.o conftest.s
23587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23588 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23592 if test $gcc_cv_as_eh_frame = buggy; then
23594 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23598 # Test if the assembler supports the section flag 'e' or #exclude for
23599 # specifying an excluded section.
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23601 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23602 if test "${gcc_cv_as_section_exclude_e+set}" = set; then :
23603 $as_echo_n "(cached) " >&6
23604 else
23605 gcc_cv_as_section_exclude_e=no
23606 if test $in_tree_gas = yes; then
23607 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
23608 then gcc_cv_as_section_exclude_e=yes
23610 elif test x$gcc_cv_as != x; then
23611 $as_echo '.section foo1,"e"
23612 .byte 0,0,0,0' > conftest.s
23613 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23615 (eval $ac_try) 2>&5
23616 ac_status=$?
23617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23618 test $ac_status = 0; }; }
23619 then
23620 gcc_cv_as_section_exclude_e=yes
23621 else
23622 echo "configure: failed program was" >&5
23623 cat conftest.s >&5
23625 rm -f conftest.o conftest.s
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
23629 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
23632 if test $gcc_cv_as_section_exclude_e = no; then
23633 case "${target}" in
23634 # Solaris as uses #exclude instead.
23635 *-*-solaris2*)
23636 case "${target}" in
23637 sparc*-*-solaris2*)
23638 conftest_s='.section "foo1", #exclude'
23640 i?86-*-solaris2* | x86_64-*-solaris2*)
23641 conftest_s='.section foo1, #exclude'
23643 esac
23645 esac
23646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23647 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23648 if test "${gcc_cv_as_section_exclude_hash+set}" = set; then :
23649 $as_echo_n "(cached) " >&6
23650 else
23651 gcc_cv_as_section_exclude_hash=no
23652 if test x$gcc_cv_as != x; then
23653 $as_echo "$conftest_s
23654 .byte 0,0,0,0" > conftest.s
23655 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23657 (eval $ac_try) 2>&5
23658 ac_status=$?
23659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23660 test $ac_status = 0; }; }
23661 then
23662 gcc_cv_as_section_exclude_hash=yes
23663 else
23664 echo "configure: failed program was" >&5
23665 cat conftest.s >&5
23667 rm -f conftest.o conftest.s
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
23671 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
23676 cat >>confdefs.h <<_ACEOF
23677 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_exclude_e = yes || test $gcc_cv_as_section_exclude_hash = yes; then echo 1; else echo 0; fi`
23678 _ACEOF
23681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23682 $as_echo_n "checking assembler for section merging support... " >&6; }
23683 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23684 $as_echo_n "(cached) " >&6
23685 else
23686 gcc_cv_as_shf_merge=no
23687 if test $in_tree_gas = yes; then
23688 if test $in_tree_gas_is_elf = yes \
23689 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23690 then gcc_cv_as_shf_merge=yes
23692 elif test x$gcc_cv_as != x; then
23693 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23694 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23696 (eval $ac_try) 2>&5
23697 ac_status=$?
23698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23699 test $ac_status = 0; }; }
23700 then
23701 gcc_cv_as_shf_merge=yes
23702 else
23703 echo "configure: failed program was" >&5
23704 cat conftest.s >&5
23706 rm -f conftest.o conftest.s
23709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23710 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23713 if test $gcc_cv_as_shf_merge = no; then
23714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23715 $as_echo_n "checking assembler for section merging support... " >&6; }
23716 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23717 $as_echo_n "(cached) " >&6
23718 else
23719 gcc_cv_as_shf_merge=no
23720 if test $in_tree_gas = yes; then
23721 if test $in_tree_gas_is_elf = yes \
23722 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23723 then gcc_cv_as_shf_merge=yes
23725 elif test x$gcc_cv_as != x; then
23726 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23727 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23729 (eval $ac_try) 2>&5
23730 ac_status=$?
23731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23732 test $ac_status = 0; }; }
23733 then
23734 gcc_cv_as_shf_merge=yes
23735 else
23736 echo "configure: failed program was" >&5
23737 cat conftest.s >&5
23739 rm -f conftest.o conftest.s
23742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23743 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23747 case "$target" in
23748 i?86-*-solaris2.10* | x86_64-*-solaris2.10*)
23749 # SHF_MERGE support in Solaris 10/x86 ld is broken.
23750 if test x"$gnu_ld" = xno; then
23751 gcc_cv_as_shf_merge=no
23754 esac
23756 cat >>confdefs.h <<_ACEOF
23757 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23758 _ACEOF
23761 gcc_cv_ld_aligned_shf_merge=yes
23762 case "$target" in
23763 # While Solaris 10/SPARC ld isn't affected, disable to avoid problems
23764 # relinking on Solaris 11 < 11.4.
23765 sparc*-*-solaris2.10*)
23766 if test x"$gnu_ld" = xno; then
23767 gcc_cv_ld_aligned_shf_merge=no
23770 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
23771 # alignment > 1.
23772 sparc*-*-solaris2.11*)
23773 if test x"$gnu_ld" = xno \
23774 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
23775 gcc_cv_ld_aligned_shf_merge=no
23778 esac
23780 cat >>confdefs.h <<_ACEOF
23781 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
23782 _ACEOF
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23786 $as_echo_n "checking assembler for stabs directive... " >&6; }
23787 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23788 $as_echo_n "(cached) " >&6
23789 else
23790 gcc_cv_as_stabs_directive=no
23791 if test x$gcc_cv_as != x; then
23792 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23793 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23795 (eval $ac_try) 2>&5
23796 ac_status=$?
23797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23798 test $ac_status = 0; }; }
23799 then
23800 gcc_cv_as_stabs_directive=yes
23801 else
23802 echo "configure: failed program was" >&5
23803 cat conftest.s >&5
23805 rm -f conftest.o conftest.s
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23809 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23810 if test $gcc_cv_as_stabs_directive = yes; then
23812 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23818 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23819 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23820 $as_echo_n "(cached) " >&6
23821 else
23822 gcc_cv_as_comdat_group=no
23823 if test $in_tree_gas = yes; then
23824 if test $in_tree_gas_is_elf = yes \
23825 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23826 then gcc_cv_as_comdat_group=yes
23828 elif test x$gcc_cv_as != x; then
23829 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23830 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23832 (eval $ac_try) 2>&5
23833 ac_status=$?
23834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23835 test $ac_status = 0; }; }
23836 then
23837 gcc_cv_as_comdat_group=yes
23838 else
23839 echo "configure: failed program was" >&5
23840 cat conftest.s >&5
23842 rm -f conftest.o conftest.s
23845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23846 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23849 if test $gcc_cv_as_comdat_group = yes; then
23850 gcc_cv_as_comdat_group_percent=no
23851 gcc_cv_as_comdat_group_group=no
23852 else
23853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23854 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23855 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23856 $as_echo_n "(cached) " >&6
23857 else
23858 gcc_cv_as_comdat_group_percent=no
23859 if test $in_tree_gas = yes; then
23860 if test $in_tree_gas_is_elf = yes \
23861 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23862 then gcc_cv_as_comdat_group_percent=yes
23864 elif test x$gcc_cv_as != x; then
23865 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23866 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23868 (eval $ac_try) 2>&5
23869 ac_status=$?
23870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23871 test $ac_status = 0; }; }
23872 then
23873 gcc_cv_as_comdat_group_percent=yes
23874 else
23875 echo "configure: failed program was" >&5
23876 cat conftest.s >&5
23878 rm -f conftest.o conftest.s
23881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23882 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23885 if test $gcc_cv_as_comdat_group_percent = yes; then
23886 gcc_cv_as_comdat_group_group=no
23887 else
23888 case "${target}" in
23889 # Sun as uses a completely different syntax.
23890 *-*-solaris2*)
23891 case "${target}" in
23892 sparc*-*-solaris2*)
23893 conftest_s='
23894 .group foo,".text%foo",#comdat
23895 .section ".text%foo", #alloc,#execinstr,#progbits
23896 .globl foo
23897 foo:
23900 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23901 conftest_s='
23902 .group foo,.text%foo,#comdat
23903 .section .text%foo, "ax", @progbits
23904 .globl foo
23905 foo:
23908 esac
23909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23910 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23911 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23912 $as_echo_n "(cached) " >&6
23913 else
23914 gcc_cv_as_comdat_group_group=no
23915 if test x$gcc_cv_as != x; then
23916 $as_echo "$conftest_s" > conftest.s
23917 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23919 (eval $ac_try) 2>&5
23920 ac_status=$?
23921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23922 test $ac_status = 0; }; }
23923 then
23924 gcc_cv_as_comdat_group_group=yes
23925 else
23926 echo "configure: failed program was" >&5
23927 cat conftest.s >&5
23929 rm -f conftest.o conftest.s
23932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23933 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23937 esac
23938 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23939 gcc_cv_as_comdat_group_group=no
23943 if test x"$ld_is_gold" = xyes; then
23944 comdat_group=yes
23945 elif test $in_tree_ld = yes ; then
23946 comdat_group=no
23947 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 \
23948 && test $in_tree_ld_is_elf = yes; then
23949 comdat_group=yes
23951 elif echo "$ld_ver" | grep GNU > /dev/null; then
23952 comdat_group=yes
23953 if test 0"$ld_date" -lt 20050308; then
23954 if test -n "$ld_date"; then
23955 # If there was date string, but was earlier than 2005-03-08, fail
23956 comdat_group=no
23957 elif test "$ld_vers_major" -lt 2; then
23958 comdat_group=no
23959 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23960 comdat_group=no
23963 else
23964 case "${target}" in
23965 *-*-solaris2.1[1-9]*)
23966 comdat_group=no
23967 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23968 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23969 # version 1.688.
23971 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23972 # least ld version 1.2267.
23973 if test "$ld_vers_major" -gt 1; then
23974 comdat_group=yes
23975 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23976 comdat_group=yes
23977 elif test "$ld_vers_minor" -ge 2267; then
23978 comdat_group=yes
23982 # Assume linkers other than GNU ld don't support COMDAT group.
23983 comdat_group=no
23985 esac
23987 # Allow overriding the automatic COMDAT group tests above.
23988 # Check whether --enable-comdat was given.
23989 if test "${enable_comdat+set}" = set; then :
23990 enableval=$enable_comdat; comdat_group="$enable_comdat"
23993 if test $comdat_group = no; then
23994 gcc_cv_as_comdat_group=no
23995 gcc_cv_as_comdat_group_percent=no
23996 gcc_cv_as_comdat_group_group=no
23999 cat >>confdefs.h <<_ACEOF
24000 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24001 || test $gcc_cv_as_comdat_group_percent = yes \
24002 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24003 _ACEOF
24006 # Restrict this test to Solaris/x86: other targets define this statically.
24007 case "${target}" in
24008 i?86-*-solaris2* | x86_64-*-solaris2*)
24009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24010 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24011 if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then
24012 hidden_linkonce=yes
24013 else
24014 case "${target}" in
24015 # Full support for hidden thunks in linkonce sections only appeared in
24016 # Solaris 11/OpenSolaris.
24017 *-*-solaris2.1[1-9]*)
24018 hidden_linkonce=yes
24021 hidden_linkonce=no
24023 esac
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24026 $as_echo "$hidden_linkonce" >&6; }
24028 cat >>confdefs.h <<_ACEOF
24029 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24030 _ACEOF
24033 esac
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24036 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24037 if test "${gcc_cv_as_is_stmt+set}" = set; then :
24038 $as_echo_n "(cached) " >&6
24039 else
24040 gcc_cv_as_is_stmt=no
24041 if test $in_tree_gas = yes; then
24042 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24043 then gcc_cv_as_is_stmt=yes
24045 elif test x$gcc_cv_as != x; then
24046 $as_echo ' .text
24047 .file 1 "conf.c"
24048 .loc 1 1 0 is_stmt 1' > conftest.s
24049 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24051 (eval $ac_try) 2>&5
24052 ac_status=$?
24053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24054 test $ac_status = 0; }; }
24055 then
24056 gcc_cv_as_is_stmt=yes
24057 else
24058 echo "configure: failed program was" >&5
24059 cat conftest.s >&5
24061 rm -f conftest.o conftest.s
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24065 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24066 if test $gcc_cv_as_is_stmt = yes; then
24068 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24074 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24075 if test "${gcc_cv_as_discriminator+set}" = set; then :
24076 $as_echo_n "(cached) " >&6
24077 else
24078 gcc_cv_as_discriminator=no
24079 if test $in_tree_gas = yes; then
24080 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24081 then gcc_cv_as_discriminator=yes
24083 elif test x$gcc_cv_as != x; then
24084 $as_echo ' .text
24085 .file 1 "conf.c"
24086 .loc 1 1 0 discriminator 1' > conftest.s
24087 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24089 (eval $ac_try) 2>&5
24090 ac_status=$?
24091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24092 test $ac_status = 0; }; }
24093 then
24094 gcc_cv_as_discriminator=yes
24095 else
24096 echo "configure: failed program was" >&5
24097 cat conftest.s >&5
24099 rm -f conftest.o conftest.s
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24103 $as_echo "$gcc_cv_as_discriminator" >&6; }
24104 if test $gcc_cv_as_discriminator = yes; then
24106 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24111 # Thread-local storage - the check is heavily parameterized.
24112 conftest_s=
24113 tls_first_major=
24114 tls_first_minor=
24115 tls_as_opt=
24116 case "$target" in
24117 alpha*-*-*)
24118 conftest_s='
24119 .section ".tdata","awT",@progbits
24120 foo: .long 25
24121 .text
24122 ldq $27,__tls_get_addr($29) !literal!1
24123 lda $16,foo($29) !tlsgd!1
24124 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24125 ldq $27,__tls_get_addr($29) !literal!2
24126 lda $16,foo($29) !tlsldm!2
24127 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24128 ldq $1,foo($29) !gotdtprel
24129 ldah $2,foo($29) !dtprelhi
24130 lda $3,foo($2) !dtprello
24131 lda $4,foo($29) !dtprel
24132 ldq $1,foo($29) !gottprel
24133 ldah $2,foo($29) !tprelhi
24134 lda $3,foo($2) !tprello
24135 lda $4,foo($29) !tprel'
24136 tls_first_major=2
24137 tls_first_minor=13
24138 tls_as_opt=--fatal-warnings
24140 arc*-*-*)
24141 conftest_s='
24142 add_s r0,r0, @foo@tpoff'
24143 tls_first_major=2
24144 tls_first_minor=23
24146 cris-*-*|crisv32-*-*)
24147 conftest_s='
24148 .section ".tdata","awT",@progbits
24149 x: .long 25
24150 .text
24151 move.d x:IE,$r10
24152 nop'
24153 tls_first_major=2
24154 tls_first_minor=20
24155 tls_as_opt=--fatal-warnings
24157 frv*-*-*)
24158 conftest_s='
24159 .section ".tdata","awT",@progbits
24160 x: .long 25
24161 .text
24162 call #gettlsoff(x)'
24163 tls_first_major=2
24164 tls_first_minor=14
24166 hppa*-*-linux*)
24167 conftest_s='
24168 t1: .reg %r20
24169 t2: .reg %r21
24170 gp: .reg %r19
24171 .section ".tdata","awT",@progbits
24172 foo: .long 25
24173 .text
24174 .align 4
24175 addil LT%foo-$tls_gdidx$,gp
24176 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24177 b __tls_get_addr
24179 addil LT%foo-$tls_ldidx$,gp
24180 b __tls_get_addr
24181 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24182 addil LR%foo-$tls_dtpoff$,%ret0
24183 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24184 mfctl %cr27,%t1
24185 addil LT%foo-$tls_ieoff$,gp
24186 ldw RT%foo-$tls_ieoff$(%r1),%t2
24187 add %t1,%t2,%t3
24188 mfctl %cr27,%t1
24189 addil LR%foo-$tls_leoff$,%t1
24190 ldo RR%foo-$tls_leoff$(%r1),%t2'
24191 tls_first_major=2
24192 tls_first_minor=15
24193 tls_as_opt=--fatal-warnings
24195 arm*-*-*)
24196 conftest_s='
24197 .section ".tdata","awT",%progbits
24198 foo: .long 25
24199 .text
24200 .word foo(gottpoff)
24201 .word foo(tpoff)
24202 .word foo(tlsgd)
24203 .word foo(tlsldm)
24204 .word foo(tlsldo)'
24205 tls_first_major=2
24206 tls_first_minor=17
24208 i[34567]86-*-* | x86_64-*-*)
24209 case "$target" in
24210 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
24211 on_solaris=yes
24214 on_solaris=no
24216 esac
24217 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24218 conftest_s='
24219 .section .tdata,"awt",@progbits'
24220 tls_first_major=0
24221 tls_first_minor=0
24222 tls_section_flag=t
24224 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24226 else
24227 conftest_s='
24228 .section ".tdata","awT",@progbits'
24229 tls_first_major=2
24230 tls_first_minor=14
24231 tls_section_flag=T
24232 tls_as_opt="--fatal-warnings"
24234 case "$target" in
24235 i[34567]86-*-*)
24236 conftest_s="$conftest_s
24237 foo: .long 25
24238 .text
24239 movl %gs:0, %eax
24240 leal foo@tlsgd(,%ebx,1), %eax
24241 leal foo@tlsldm(%ebx), %eax
24242 leal foo@dtpoff(%eax), %edx
24243 movl foo@gottpoff(%ebx), %eax
24244 subl foo@gottpoff(%ebx), %eax
24245 addl foo@gotntpoff(%ebx), %eax
24246 movl foo@indntpoff, %eax
24247 movl \$foo@tpoff, %eax
24248 subl \$foo@tpoff, %eax
24249 leal foo@ntpoff(%ecx), %eax"
24251 x86_64-*-*)
24252 if test x$on_solaris = xyes; then
24253 case $gas_flag in
24254 yes) tls_as_opt="$tls_as_opt --64" ;;
24255 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
24256 esac
24258 conftest_s="$conftest_s
24259 foo: .long 25
24260 .text
24261 movq %fs:0, %rax
24262 leaq foo@tlsgd(%rip), %rdi
24263 leaq foo@tlsld(%rip), %rdi
24264 leaq foo@dtpoff(%rax), %rdx
24265 movq foo@gottpoff(%rip), %rax
24266 movq \$foo@tpoff, %rax"
24268 esac
24270 ia64-*-*)
24271 conftest_s='
24272 .section ".tdata","awT",@progbits
24273 foo: data8 25
24274 .text
24275 addl r16 = @ltoff(@dtpmod(foo#)), gp
24276 addl r17 = @ltoff(@dtprel(foo#)), gp
24277 addl r18 = @ltoff(@tprel(foo#)), gp
24278 addl r19 = @dtprel(foo#), gp
24279 adds r21 = @dtprel(foo#), r13
24280 movl r23 = @dtprel(foo#)
24281 addl r20 = @tprel(foo#), gp
24282 adds r22 = @tprel(foo#), r13
24283 movl r24 = @tprel(foo#)'
24284 tls_first_major=2
24285 tls_first_minor=13
24286 tls_as_opt=--fatal-warnings
24288 microblaze*-*-*)
24289 conftest_s='
24290 .section .tdata,"awT",@progbits
24292 .word 2
24293 .text
24294 addik r5,r20,x@TLSGD
24295 addik r5,r20,x@TLSLDM'
24296 tls_first_major=2
24297 tls_first_minor=20
24298 tls_as_opt='--fatal-warnings'
24300 mips*-*-*)
24301 conftest_s='
24302 .section .tdata,"awT",@progbits
24304 .word 2
24305 .text
24306 addiu $4, $28, %tlsgd(x)
24307 addiu $4, $28, %tlsldm(x)
24308 lui $4, %dtprel_hi(x)
24309 addiu $4, $4, %dtprel_lo(x)
24310 lw $4, %gottprel(x)($28)
24311 lui $4, %tprel_hi(x)
24312 addiu $4, $4, %tprel_lo(x)'
24313 tls_first_major=2
24314 tls_first_minor=16
24315 tls_as_opt='-32 --fatal-warnings'
24317 m68k-*-*)
24318 conftest_s='
24319 .section .tdata,"awT",@progbits
24321 .word 2
24322 .text
24323 foo:
24324 move.l x@TLSGD(%a5),%a0
24325 move.l x@TLSLDM(%a5),%a0
24326 move.l x@TLSLDO(%a5),%a0
24327 move.l x@TLSIE(%a5),%a0
24328 move.l x@TLSLE(%a5),%a0'
24329 tls_first_major=2
24330 tls_first_minor=19
24331 tls_as_opt='--fatal-warnings'
24333 nios2-*-*)
24334 conftest_s='
24335 .section ".tdata","awT",@progbits'
24336 tls_first_major=2
24337 tls_first_minor=23
24338 tls_as_opt="--fatal-warnings"
24340 aarch64*-*-*)
24341 conftest_s='
24342 .section ".tdata","awT",%progbits
24343 foo: .long 25
24344 .text
24345 adrp x0, :tlsgd:x
24346 add x0, x0, #:tlsgd_lo12:x
24347 bl __tls_get_addr
24348 nop'
24349 tls_first_major=2
24350 tls_first_minor=20
24351 tls_as_opt='--fatal-warnings'
24353 powerpc-ibm-aix*)
24354 conftest_s='
24355 .extern __get_tpointer
24356 .toc
24357 LC..1:
24358 .tc a[TC],a[TL]@le
24359 .csect .text[PR]
24360 .tlstest:
24361 lwz 9,LC..1(2)
24362 bla __get_tpointer
24363 lwzx 3,9,3
24364 .globl a
24365 .csect a[TL],4
24367 .space 4'
24368 tls_first_major=0
24369 tls_first_minor=0
24371 powerpc64*-*-*)
24372 conftest_s='
24373 .section ".tdata","awT",@progbits
24374 .align 3
24375 ld0: .space 8
24376 ld1: .space 8
24377 x1: .space 8
24378 x2: .space 8
24379 x3: .space 8
24380 .text
24381 addi 3,2,ld0@got@tlsgd
24382 bl .__tls_get_addr
24384 addi 3,2,ld1@toc
24385 bl .__tls_get_addr
24387 addi 3,2,x1@got@tlsld
24388 bl .__tls_get_addr
24390 addi 9,3,x1@dtprel
24391 bl .__tls_get_addr
24393 addis 9,3,x2@dtprel@ha
24394 addi 9,9,x2@dtprel@l
24395 bl .__tls_get_addr
24397 ld 9,x3@got@dtprel(2)
24398 add 9,9,3
24399 bl .__tls_get_addr
24400 nop'
24401 tls_first_major=2
24402 tls_first_minor=14
24403 tls_as_opt="-a64 --fatal-warnings"
24405 powerpc*-*-*)
24406 conftest_s='
24407 .section ".tdata","awT",@progbits
24408 .align 2
24409 ld0: .space 4
24410 ld1: .space 4
24411 x1: .space 4
24412 x2: .space 4
24413 x3: .space 4
24414 .text
24415 addi 3,31,ld0@got@tlsgd
24416 bl __tls_get_addr
24417 addi 3,31,x1@got@tlsld
24418 bl __tls_get_addr
24419 addi 9,3,x1@dtprel
24420 addis 9,3,x2@dtprel@ha
24421 addi 9,9,x2@dtprel@l
24422 lwz 9,x3@got@tprel(31)
24423 add 9,9,x@tls
24424 addi 9,2,x1@tprel
24425 addis 9,2,x2@tprel@ha
24426 addi 9,9,x2@tprel@l'
24427 tls_first_major=2
24428 tls_first_minor=14
24429 tls_as_opt="-a32 --fatal-warnings"
24431 riscv*-*-*)
24432 conftest_s='
24433 .section .tdata,"awT",@progbits
24434 x: .word 2
24435 .text
24436 la.tls.gd a0,x
24437 call __tls_get_addr'
24438 tls_first_major=2
24439 tls_first_minor=21
24440 tls_as_opt='--fatal-warnings'
24442 s390-*-*)
24443 conftest_s='
24444 .section ".tdata","awT",@progbits
24445 foo: .long 25
24446 .text
24447 .long foo@TLSGD
24448 .long foo@TLSLDM
24449 .long foo@DTPOFF
24450 .long foo@NTPOFF
24451 .long foo@GOTNTPOFF
24452 .long foo@INDNTPOFF
24453 l %r1,foo@GOTNTPOFF(%r12)
24454 l %r1,0(%r1):tls_load:foo
24455 bas %r14,0(%r1,%r13):tls_gdcall:foo
24456 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24457 tls_first_major=2
24458 tls_first_minor=14
24459 tls_as_opt="-m31 --fatal-warnings"
24461 s390x-*-*)
24462 conftest_s='
24463 .section ".tdata","awT",@progbits
24464 foo: .long 25
24465 .text
24466 .quad foo@TLSGD
24467 .quad foo@TLSLDM
24468 .quad foo@DTPOFF
24469 .quad foo@NTPOFF
24470 .quad foo@GOTNTPOFF
24471 lg %r1,foo@GOTNTPOFF(%r12)
24472 larl %r1,foo@INDNTPOFF
24473 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24474 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24475 tls_first_major=2
24476 tls_first_minor=14
24477 tls_as_opt="-m64 -Aesame --fatal-warnings"
24479 sh-*-* | sh[123456789lbe]*-*-*)
24480 conftest_s='
24481 .section ".tdata","awT",@progbits
24482 foo: .long 25
24483 .text
24484 .long foo@TLSGD
24485 .long foo@TLSLDM
24486 .long foo@DTPOFF
24487 .long foo@GOTTPOFF
24488 .long foo@TPOFF'
24489 tls_first_major=2
24490 tls_first_minor=13
24491 tls_as_opt=--fatal-warnings
24493 sparc*-*-*)
24494 case "$target" in
24495 sparc*-sun-solaris2.*)
24496 on_solaris=yes
24499 on_solaris=no
24501 esac
24502 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24503 conftest_s='
24504 .section ".tdata",#alloc,#write,#tls'
24505 tls_first_major=0
24506 tls_first_minor=0
24507 else
24508 conftest_s='
24509 .section ".tdata","awT",@progbits'
24510 tls_first_major=2
24511 tls_first_minor=14
24512 tls_as_opt="-32 --fatal-warnings"
24514 conftest_s="$conftest_s
24515 foo: .long 25
24516 .text
24517 sethi %tgd_hi22(foo), %o0
24518 add %o0, %tgd_lo10(foo), %o1
24519 add %l7, %o1, %o0, %tgd_add(foo)
24520 call __tls_get_addr, %tgd_call(foo)
24521 sethi %tldm_hi22(foo), %l1
24522 add %l1, %tldm_lo10(foo), %l2
24523 add %l7, %l2, %o0, %tldm_add(foo)
24524 call __tls_get_addr, %tldm_call(foo)
24525 sethi %tldo_hix22(foo), %l3
24526 xor %l3, %tldo_lox10(foo), %l4
24527 add %o0, %l4, %l5, %tldo_add(foo)
24528 sethi %tie_hi22(foo), %o3
24529 add %o3, %tie_lo10(foo), %o3
24530 ld [%l7 + %o3], %o2, %tie_ld(foo)
24531 add %g7, %o2, %o4, %tie_add(foo)
24532 sethi %tle_hix22(foo), %l1
24533 xor %l1, %tle_lox10(foo), %o5
24534 ld [%g7 + %o5], %o1"
24536 tilepro*-*-*)
24537 conftest_s='
24538 .section ".tdata","awT",@progbits
24539 foo: .long 25
24540 .text
24541 addli r0, zero, tls_gd(foo)
24542 auli r0, zero, tls_gd_ha16(foo)
24543 addli r0, r0, tls_gd_lo16(foo)
24544 jal __tls_get_addr
24545 addli r0, zero, tls_ie(foo)
24546 auli r0, r0, tls_ie_ha16(foo)
24547 addli r0, r0, tls_ie_lo16(foo)'
24548 tls_first_major=2
24549 tls_first_minor=22
24550 tls_as_opt="--fatal-warnings"
24552 tilegx*-*-*)
24553 conftest_s='
24554 .section ".tdata","awT",@progbits
24555 foo: .long 25
24556 .text
24557 shl16insli r0, zero, hw0_last_tls_gd(foo)
24558 shl16insli r0, zero, hw1_last_tls_gd(foo)
24559 shl16insli r0, r0, hw0_tls_gd(foo)
24560 jal __tls_get_addr
24561 shl16insli r0, zero, hw1_last_tls_ie(foo)
24562 shl16insli r0, r0, hw0_tls_ie(foo)'
24563 tls_first_major=2
24564 tls_first_minor=22
24565 tls_as_opt="--fatal-warnings"
24567 xtensa*-*-*)
24568 conftest_s='
24569 .section ".tdata","awT",@progbits
24570 foo: .long 25
24571 .text
24572 movi a8, foo@TLSFUNC
24573 movi a10, foo@TLSARG
24574 callx8.tls a8, foo@TLSCALL'
24575 tls_first_major=2
24576 tls_first_minor=19
24578 esac
24579 set_have_as_tls=no
24580 if test "x$enable_tls" = xno ; then
24581 : # TLS explicitly disabled.
24582 elif test "x$enable_tls" = xyes ; then
24583 set_have_as_tls=yes # TLS explicitly enabled.
24584 elif test -z "$tls_first_major"; then
24585 : # If we don't have a check, assume no support.
24586 else
24587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24588 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24589 if test "${gcc_cv_as_tls+set}" = set; then :
24590 $as_echo_n "(cached) " >&6
24591 else
24592 gcc_cv_as_tls=no
24593 if test $in_tree_gas = yes; then
24594 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24595 then gcc_cv_as_tls=yes
24597 elif test x$gcc_cv_as != x; then
24598 $as_echo "$conftest_s" > conftest.s
24599 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24601 (eval $ac_try) 2>&5
24602 ac_status=$?
24603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24604 test $ac_status = 0; }; }
24605 then
24606 gcc_cv_as_tls=yes
24607 else
24608 echo "configure: failed program was" >&5
24609 cat conftest.s >&5
24611 rm -f conftest.o conftest.s
24614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24615 $as_echo "$gcc_cv_as_tls" >&6; }
24616 if test $gcc_cv_as_tls = yes; then
24617 set_have_as_tls=yes
24621 if test $set_have_as_tls = yes ; then
24623 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24627 # Target-specific assembler checks.
24629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24630 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24631 gcc_cv_ld_static_dynamic=no
24632 gcc_cv_ld_static_option='-Bstatic'
24633 gcc_cv_ld_dynamic_option='-Bdynamic'
24634 if test $in_tree_ld = yes ; then
24635 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
24636 gcc_cv_ld_static_dynamic=yes
24638 elif test x$gcc_cv_ld != x; then
24639 # Check if linker supports -Bstatic/-Bdynamic option
24640 if $gcc_cv_ld --help 2>&1 | grep -- -Bstatic > /dev/null \
24641 && $gcc_cv_ld --help 2>&1 | grep -- -Bdynamic > /dev/null; then
24642 gcc_cv_ld_static_dynamic=yes
24643 else
24644 case "$target" in
24645 # AIX ld uses -b flags
24646 *-*-aix4.[23]* | *-*-aix[5-9]*)
24647 gcc_cv_ld_static_dynamic=yes
24648 gcc_cv_ld_static_option="-bstatic"
24649 gcc_cv_ld_dynamic_option="-bdynamic"
24651 # HP-UX ld uses -a flags to select between shared and archive.
24652 *-*-hpux*)
24653 if test x"$gnu_ld" = xno; then
24654 gcc_cv_ld_static_dynamic=yes
24655 gcc_cv_ld_static_option="-aarchive_shared"
24656 gcc_cv_ld_dynamic_option="-adefault"
24659 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24660 *-*-solaris2*)
24661 gcc_cv_ld_static_dynamic=yes
24663 esac
24666 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24668 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24671 cat >>confdefs.h <<_ACEOF
24672 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24673 _ACEOF
24676 cat >>confdefs.h <<_ACEOF
24677 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24678 _ACEOF
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24682 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
24685 $as_echo_n "checking linker --version-script option... " >&6; }
24686 gcc_cv_ld_version_script=no
24687 ld_version_script_option=''
24688 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
24689 gcc_cv_ld_version_script=yes
24690 ld_version_script_option='--version-script'
24691 elif test x$gcc_cv_ld != x; then
24692 case "$target" in
24693 # Solaris 2 ld always supports -M. It also supports a subset of
24694 # --version-script since Solaris 11.4, but requires
24695 # -z gnu-version-script-compat to activate.
24696 *-*-solaris2*)
24697 gcc_cv_ld_version_script=yes
24698 ld_version_script_option='-M'
24700 esac
24702 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
24704 $as_echo "$gcc_cv_ld_version_script" >&6; }
24707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
24708 $as_echo_n "checking linker soname option... " >&6; }
24709 gcc_cv_ld_soname=no
24710 if test $in_tree_ld = yes || test x"$gnu_ld" = xyes; then
24711 gcc_cv_ld_soname=yes
24712 ld_soname_option='-soname'
24713 elif test x$gcc_cv_ld != x; then
24714 case "$target" in
24715 *-*-darwin*)
24716 gcc_cv_ld_soname=yes
24717 ld_soname_option='-install_name'
24719 # Solaris 2 ld always supports -h. It also supports --soname for GNU
24720 # ld compatiblity since some Solaris 10 update.
24721 *-*-solaris2*)
24722 gcc_cv_ld_soname=yes
24723 ld_soname_option='-h'
24725 esac
24727 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
24729 $as_echo "$gcc_cv_ld_soname" >&6; }
24732 if test x"$demangler_in_ld" = xyes; then
24733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24734 $as_echo_n "checking linker --demangle support... " >&6; }
24735 gcc_cv_ld_demangle=no
24736 if test $in_tree_ld = yes; then
24737 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 \
24738 gcc_cv_ld_demangle=yes
24740 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24741 # Check if the GNU linker supports --demangle option
24742 if $gcc_cv_ld --help 2>&1 | grep no-demangle > /dev/null; then
24743 gcc_cv_ld_demangle=yes
24746 if test x"$gcc_cv_ld_demangle" = xyes; then
24748 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24752 $as_echo "$gcc_cv_ld_demangle" >&6; }
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24756 $as_echo_n "checking linker plugin support... " >&6; }
24757 gcc_cv_lto_plugin=0
24758 if test -f liblto_plugin.la; then
24759 save_ld_ver="$ld_ver"
24760 save_ld_vers_major="$ld_vers_major"
24761 save_ld_vers_minor="$ld_vers_minor"
24762 save_ld_is_gold="$ld_is_gold"
24764 ld_is_gold=no
24766 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24767 ld_ver="GNU ld"
24768 # FIXME: ld_is_gold?
24769 ld_vers_major="$gcc_cv_gld_major_version"
24770 ld_vers_minor="$gcc_cv_gld_minor_version"
24771 else
24772 # Determine plugin linker version.
24773 # FIXME: Partial duplicate from above, generalize.
24774 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24775 if echo "$ld_ver" | grep GNU > /dev/null; then
24776 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24777 ld_is_gold=yes
24778 ld_vers=`echo $ld_ver | sed -n \
24779 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24780 else
24781 ld_vers=`echo $ld_ver | sed -n \
24782 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24784 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24785 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24789 # Determine plugin support.
24790 if echo "$ld_ver" | grep GNU > /dev/null; then
24791 # Require GNU ld or gold 2.21+ for plugin support by default.
24792 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24793 gcc_cv_lto_plugin=2
24794 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24795 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24796 gcc_cv_lto_plugin=1
24800 ld_ver="$save_ld_ver"
24801 ld_vers_major="$save_ld_vers_major"
24802 ld_vers_minor="$save_ld_vers_minor"
24803 ld_is_gold="$save_ld_is_gold"
24806 cat >>confdefs.h <<_ACEOF
24807 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24808 _ACEOF
24810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24811 $as_echo "$gcc_cv_lto_plugin" >&6; }
24813 # Target OS-specific assembler checks.
24815 case "$target_os" in
24816 darwin*)
24817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24818 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24819 if test "${gcc_cv_as_mmacosx_version_min+set}" = set; then :
24820 $as_echo_n "(cached) " >&6
24821 else
24822 gcc_cv_as_mmacosx_version_min=no
24823 if test x$gcc_cv_as != x; then
24824 $as_echo '.text' > conftest.s
24825 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
24826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24827 (eval $ac_try) 2>&5
24828 ac_status=$?
24829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24830 test $ac_status = 0; }; }
24831 then
24832 gcc_cv_as_mmacosx_version_min=yes
24833 else
24834 echo "configure: failed program was" >&5
24835 cat conftest.s >&5
24837 rm -f conftest.o conftest.s
24840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
24841 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24842 if test $gcc_cv_as_mmacosx_version_min = yes; then
24844 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24849 esac
24851 # Target CPU-specific assembler checks.
24853 case "$target" in
24854 aarch64*-*-*)
24855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24856 $as_echo_n "checking assembler for -mabi option... " >&6; }
24857 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24858 $as_echo_n "(cached) " >&6
24859 else
24860 gcc_cv_as_aarch64_mabi=no
24861 if test x$gcc_cv_as != x; then
24862 $as_echo '.text' > conftest.s
24863 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24865 (eval $ac_try) 2>&5
24866 ac_status=$?
24867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24868 test $ac_status = 0; }; }
24869 then
24870 gcc_cv_as_aarch64_mabi=yes
24871 else
24872 echo "configure: failed program was" >&5
24873 cat conftest.s >&5
24875 rm -f conftest.o conftest.s
24878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24879 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24882 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24884 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24886 else
24887 if test x$with_abi = xilp32; then
24888 as_fn_error "Assembler does not support -mabi=ilp32.\
24889 Upgrade the Assembler." "$LINENO" 5
24891 if test x"$with_multilib_list" = xdefault; then
24892 TM_MULTILIB_CONFIG=lp64
24893 else
24894 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24895 for aarch64_multilib in ${aarch64_multilibs}; do
24896 case ${aarch64_multilib} in
24897 ilp32)
24898 as_fn_error "Assembler does not support -mabi=ilp32.\
24899 Upgrade the Assembler." "$LINENO" 5
24903 esac
24904 done
24907 # Check if we have binutils support for relocations types needed by -fpic
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24909 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24910 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24911 $as_echo_n "(cached) " >&6
24912 else
24913 gcc_cv_as_aarch64_picreloc=no
24914 if test x$gcc_cv_as != x; then
24915 $as_echo '
24916 .text
24917 ldr x0, [x2, #:gotpage_lo15:globalsym]
24918 ' > conftest.s
24919 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24921 (eval $ac_try) 2>&5
24922 ac_status=$?
24923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24924 test $ac_status = 0; }; }
24925 then
24926 gcc_cv_as_aarch64_picreloc=yes
24927 else
24928 echo "configure: failed program was" >&5
24929 cat conftest.s >&5
24931 rm -f conftest.o conftest.s
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24935 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24936 if test $gcc_cv_as_aarch64_picreloc = yes; then
24938 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24942 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24943 # Check whether --enable-fix-cortex-a53-835769 was given.
24944 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24945 enableval=$enable_fix_cortex_a53_835769;
24946 case $enableval in
24947 yes)
24948 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24953 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24954 Valid choices are 'yes' and 'no'." "$LINENO" 5
24957 esac
24961 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24962 # Check whether --enable-fix-cortex-a53-843419 was given.
24963 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24964 enableval=$enable_fix_cortex_a53_843419;
24965 case $enableval in
24966 yes)
24967 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24972 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24973 Valid choices are 'yes' and 'no'." "$LINENO" 5
24976 esac
24982 # All TARGET_ABI_OSF targets.
24983 alpha*-*-linux* | alpha*-*-*bsd*)
24984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24985 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24986 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24987 $as_echo_n "(cached) " >&6
24988 else
24989 gcc_cv_as_alpha_explicit_relocs=no
24990 if test $in_tree_gas = yes; then
24991 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24992 then gcc_cv_as_alpha_explicit_relocs=yes
24994 elif test x$gcc_cv_as != x; then
24995 $as_echo ' .set nomacro
24996 .text
24997 extbl $3, $2, $3 !lituse_bytoff!1
24998 ldq $2, a($29) !literal!1
24999 ldq $4, b($29) !literal!2
25000 ldq_u $3, 0($2) !lituse_base!1
25001 ldq $27, f($29) !literal!5
25002 jsr $26, ($27), f !lituse_jsr!5
25003 ldah $29, 0($26) !gpdisp!3
25004 lda $0, c($29) !gprel
25005 ldah $1, d($29) !gprelhigh
25006 lda $1, d($1) !gprellow
25007 lda $29, 0($29) !gpdisp!3' > 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 gcc_cv_as_alpha_explicit_relocs=yes
25016 else
25017 echo "configure: failed program was" >&5
25018 cat conftest.s >&5
25020 rm -f conftest.o conftest.s
25023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25024 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25025 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25027 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25032 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25033 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
25034 $as_echo_n "(cached) " >&6
25035 else
25036 gcc_cv_as_alpha_jsrdirect_relocs=no
25037 if test $in_tree_gas = yes; then
25038 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25039 then gcc_cv_as_alpha_jsrdirect_relocs=yes
25041 elif test x$gcc_cv_as != x; then
25042 $as_echo ' .set nomacro
25043 .text
25044 ldq $27, a($29) !literal!1
25045 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25046 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25048 (eval $ac_try) 2>&5
25049 ac_status=$?
25050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25051 test $ac_status = 0; }; }
25052 then
25053 gcc_cv_as_alpha_jsrdirect_relocs=yes
25054 else
25055 echo "configure: failed program was" >&5
25056 cat conftest.s >&5
25058 rm -f conftest.o conftest.s
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25062 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25063 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25065 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25071 avr-*-*)
25072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25073 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25074 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
25075 $as_echo_n "(cached) " >&6
25076 else
25077 gcc_cv_as_avr_mlink_relax=no
25078 if test x$gcc_cv_as != x; then
25079 $as_echo '.text' > conftest.s
25080 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25082 (eval $ac_try) 2>&5
25083 ac_status=$?
25084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25085 test $ac_status = 0; }; }
25086 then
25087 gcc_cv_as_avr_mlink_relax=yes
25088 else
25089 echo "configure: failed program was" >&5
25090 cat conftest.s >&5
25092 rm -f conftest.o conftest.s
25095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25096 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25097 if test $gcc_cv_as_avr_mlink_relax = yes; then
25099 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25105 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25106 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
25107 $as_echo_n "(cached) " >&6
25108 else
25109 gcc_cv_as_avr_mrmw=no
25110 if test x$gcc_cv_as != x; then
25111 $as_echo '.text' > conftest.s
25112 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25114 (eval $ac_try) 2>&5
25115 ac_status=$?
25116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25117 test $ac_status = 0; }; }
25118 then
25119 gcc_cv_as_avr_mrmw=yes
25120 else
25121 echo "configure: failed program was" >&5
25122 cat conftest.s >&5
25124 rm -f conftest.o conftest.s
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25128 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25129 if test $gcc_cv_as_avr_mrmw = yes; then
25131 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25137 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25138 if test "${gcc_cv_as_avr_mgccisr+set}" = set; then :
25139 $as_echo_n "(cached) " >&6
25140 else
25141 gcc_cv_as_avr_mgccisr=no
25142 if test x$gcc_cv_as != x; then
25143 $as_echo '.text
25144 __gcc_isr 1
25145 __gcc_isr 2
25146 __gcc_isr 0,r24
25147 ' > conftest.s
25148 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25150 (eval $ac_try) 2>&5
25151 ac_status=$?
25152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25153 test $ac_status = 0; }; }
25154 then
25155 gcc_cv_as_avr_mgccisr=yes
25156 else
25157 echo "configure: failed program was" >&5
25158 cat conftest.s >&5
25160 rm -f conftest.o conftest.s
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25164 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25165 if test $gcc_cv_as_avr_mgccisr = yes; then
25167 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25172 # Check how default linker description file implements .rodata for
25173 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25174 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25176 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25177 cat > conftest.s <<EOF
25178 .section .rodata,"a",@progbits
25179 .global xxvaryy
25180 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25181 xxvaryy:
25182 .word 1
25184 rm -f conftest.nm
25185 { ac_try='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25187 (eval $ac_try) 2>&5
25188 ac_status=$?
25189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25190 test $ac_status = 0; }; }
25191 { ac_try='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25193 (eval $ac_try) 2>&5
25194 ac_status=$?
25195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25196 test $ac_status = 0; }; }
25197 { ac_try='$gcc_cv_nm conftest.elf > conftest.nm'
25198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25199 (eval $ac_try) 2>&5
25200 ac_status=$?
25201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25202 test $ac_status = 0; }; }
25203 if test -s conftest.nm
25204 then
25205 if grep ' R xxvaryy' conftest.nm > /dev/null; then
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25207 $as_echo "yes" >&6; }
25209 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25211 else
25212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25213 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25214 echo "$as_me: nm output was" >&5
25215 cat conftest.nm >&5
25216 avr_ld_ver="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&5
25218 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25220 else
25221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25222 $as_echo "test failed" >&6; }
25223 echo "$as_me: failed program was" >&5
25224 cat conftest.s >&5
25225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25226 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25228 rm -f conftest.s conftest.o conftest.elf conftest.nm
25231 cris-*-*)
25232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25233 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25234 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
25235 $as_echo_n "(cached) " >&6
25236 else
25237 gcc_cv_as_cris_no_mul_bug=no
25238 if test $in_tree_gas = yes; then
25239 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25240 then gcc_cv_as_cris_no_mul_bug=yes
25242 elif test x$gcc_cv_as != x; then
25243 $as_echo '.text' > conftest.s
25244 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25246 (eval $ac_try) 2>&5
25247 ac_status=$?
25248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25249 test $ac_status = 0; }; }
25250 then
25251 gcc_cv_as_cris_no_mul_bug=yes
25252 else
25253 echo "configure: failed program was" >&5
25254 cat conftest.s >&5
25256 rm -f conftest.o conftest.s
25259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25260 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25261 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25263 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25269 sparc*-*-*)
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
25271 $as_echo_n "checking assembler for .register... " >&6; }
25272 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
25273 $as_echo_n "(cached) " >&6
25274 else
25275 gcc_cv_as_sparc_register_op=no
25276 if test x$gcc_cv_as != x; then
25277 $as_echo '.register %g2, #scratch' > conftest.s
25278 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25280 (eval $ac_try) 2>&5
25281 ac_status=$?
25282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25283 test $ac_status = 0; }; }
25284 then
25285 gcc_cv_as_sparc_register_op=yes
25286 else
25287 echo "configure: failed program was" >&5
25288 cat conftest.s >&5
25290 rm -f conftest.o conftest.s
25293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
25294 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
25295 if test $gcc_cv_as_sparc_register_op = yes; then
25297 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
25302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25303 $as_echo_n "checking assembler for -relax option... " >&6; }
25304 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
25305 $as_echo_n "(cached) " >&6
25306 else
25307 gcc_cv_as_sparc_relax=no
25308 if test x$gcc_cv_as != x; then
25309 $as_echo '.text' > conftest.s
25310 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25312 (eval $ac_try) 2>&5
25313 ac_status=$?
25314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25315 test $ac_status = 0; }; }
25316 then
25317 gcc_cv_as_sparc_relax=yes
25318 else
25319 echo "configure: failed program was" >&5
25320 cat conftest.s >&5
25322 rm -f conftest.o conftest.s
25325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25326 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25327 if test $gcc_cv_as_sparc_relax = yes; then
25329 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25335 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25336 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
25337 $as_echo_n "(cached) " >&6
25338 else
25339 gcc_cv_as_sparc_gotdata_op=no
25340 if test x$gcc_cv_as != x; then
25341 $as_echo '.text
25342 .align 4
25343 foo:
25345 bar:
25346 sethi %gdop_hix22(foo), %g1
25347 xor %g1, %gdop_lox10(foo), %g1
25348 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25349 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25351 (eval $ac_try) 2>&5
25352 ac_status=$?
25353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25354 test $ac_status = 0; }; }
25355 then
25356 if test x$gcc_cv_ld != x \
25357 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25358 if test x$gcc_cv_objdump != x; then
25359 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
25360 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
25361 gcc_cv_as_sparc_gotdata_op=no
25362 else
25363 gcc_cv_as_sparc_gotdata_op=yes
25367 rm -f conftest
25368 else
25369 echo "configure: failed program was" >&5
25370 cat conftest.s >&5
25372 rm -f conftest.o conftest.s
25375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25376 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25377 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25379 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25385 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25386 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
25387 $as_echo_n "(cached) " >&6
25388 else
25389 gcc_cv_as_sparc_ua_pcrel=no
25390 if test x$gcc_cv_as != x; then
25391 $as_echo '.text
25392 foo:
25394 .data
25395 .align 4
25396 .byte 0
25397 .uaword %r_disp32(foo)' > conftest.s
25398 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25400 (eval $ac_try) 2>&5
25401 ac_status=$?
25402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25403 test $ac_status = 0; }; }
25404 then
25405 if test x$gcc_cv_ld != x \
25406 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25407 gcc_cv_as_sparc_ua_pcrel=yes
25409 rm -f conftest
25410 else
25411 echo "configure: failed program was" >&5
25412 cat conftest.s >&5
25414 rm -f conftest.o conftest.s
25417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25418 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25419 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25421 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25425 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25426 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
25427 $as_echo_n "(cached) " >&6
25428 else
25429 gcc_cv_as_sparc_ua_pcrel_hidden=no
25430 if test x$gcc_cv_as != x; then
25431 $as_echo '.data
25432 .align 4
25433 .byte 0x31
25434 .uaword %r_disp32(foo)
25435 .byte 0x32, 0x33, 0x34
25436 .global foo
25437 .hidden foo
25438 foo:
25439 .skip 4' > conftest.s
25440 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25442 (eval $ac_try) 2>&5
25443 ac_status=$?
25444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25445 test $ac_status = 0; }; }
25446 then
25447 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25448 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25449 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25450 | grep ' 31000000 07323334' > /dev/null 2>&1; then
25451 if $gcc_cv_objdump -R conftest 2> /dev/null \
25452 | grep 'DISP32' > /dev/null 2>&1; then
25454 else
25455 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25458 rm -f conftest
25459 else
25460 echo "configure: failed program was" >&5
25461 cat conftest.s >&5
25463 rm -f conftest.o conftest.s
25466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25467 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25468 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25470 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25476 # unaligned pcrel relocs
25478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25479 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25480 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25481 $as_echo_n "(cached) " >&6
25482 else
25483 gcc_cv_as_sparc_offsetable_lo10=no
25484 if test x$gcc_cv_as != x; then
25485 $as_echo '.text
25486 or %g1, %lo(ab) + 12, %g1
25487 or %g1, %lo(ab + 12), %g1' > conftest.s
25488 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25490 (eval $ac_try) 2>&5
25491 ac_status=$?
25492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25493 test $ac_status = 0; }; }
25494 then
25495 if test x$gcc_cv_objdump != x \
25496 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25497 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25498 gcc_cv_as_sparc_offsetable_lo10=yes
25500 else
25501 echo "configure: failed program was" >&5
25502 cat conftest.s >&5
25504 rm -f conftest.o conftest.s
25507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25508 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25509 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25511 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25517 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25518 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25519 $as_echo_n "(cached) " >&6
25520 else
25521 gcc_cv_as_sparc_fmaf=no
25522 if test x$gcc_cv_as != x; then
25523 $as_echo '.text
25524 .register %g2, #scratch
25525 .register %g3, #scratch
25526 .align 4
25527 fmaddd %f0, %f2, %f4, %f6
25528 addxccc %g1, %g2, %g3
25529 fsrl32 %f2, %f4, %f8
25530 fnaddd %f10, %f12, %f14' > conftest.s
25531 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25533 (eval $ac_try) 2>&5
25534 ac_status=$?
25535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25536 test $ac_status = 0; }; }
25537 then
25538 gcc_cv_as_sparc_fmaf=yes
25539 else
25540 echo "configure: failed program was" >&5
25541 cat conftest.s >&5
25543 rm -f conftest.o conftest.s
25546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25547 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25548 if test $gcc_cv_as_sparc_fmaf = yes; then
25550 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25556 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25557 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25558 $as_echo_n "(cached) " >&6
25559 else
25560 gcc_cv_as_sparc_sparc4=no
25561 if test x$gcc_cv_as != x; then
25562 $as_echo '.text
25563 .register %g2, #scratch
25564 .register %g3, #scratch
25565 .align 4
25566 cxbe %g2, %g3, 1f
25567 1: cwbneg %g2, %g3, 1f
25568 1: sha1
25570 aes_kexpand0 %f4, %f6, %f8
25571 des_round %f38, %f40, %f42, %f44
25572 camellia_f %f54, %f56, %f58, %f60
25573 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25574 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25575 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25576 (eval $ac_try) 2>&5
25577 ac_status=$?
25578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25579 test $ac_status = 0; }; }
25580 then
25581 gcc_cv_as_sparc_sparc4=yes
25582 else
25583 echo "configure: failed program was" >&5
25584 cat conftest.s >&5
25586 rm -f conftest.o conftest.s
25589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25590 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25591 if test $gcc_cv_as_sparc_sparc4 = yes; then
25593 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25599 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25600 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25601 $as_echo_n "(cached) " >&6
25602 else
25603 gcc_cv_as_sparc_sparc5=no
25604 if test x$gcc_cv_as != x; then
25605 $as_echo '.text
25606 .register %g2, #scratch
25607 .register %g3, #scratch
25608 .align 4
25609 subxc %g1, %g2, %g3
25610 fpadd8 %f0, %f2, %f4' > conftest.s
25611 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25613 (eval $ac_try) 2>&5
25614 ac_status=$?
25615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25616 test $ac_status = 0; }; }
25617 then
25618 gcc_cv_as_sparc_sparc5=yes
25619 else
25620 echo "configure: failed program was" >&5
25621 cat conftest.s >&5
25623 rm -f conftest.o conftest.s
25626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25627 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25628 if test $gcc_cv_as_sparc_sparc5 = yes; then
25630 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
25636 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
25637 if test "${gcc_cv_as_sparc_sparc6+set}" = set; then :
25638 $as_echo_n "(cached) " >&6
25639 else
25640 gcc_cv_as_sparc_sparc6=no
25641 if test x$gcc_cv_as != x; then
25642 $as_echo '.text
25643 .register %g2, #scratch
25644 .register %g3, #scratch
25645 .align 4
25646 rd %entropy, %g1
25647 fpsll64x %f0, %f2, %f4' > conftest.s
25648 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
25649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25650 (eval $ac_try) 2>&5
25651 ac_status=$?
25652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25653 test $ac_status = 0; }; }
25654 then
25655 gcc_cv_as_sparc_sparc6=yes
25656 else
25657 echo "configure: failed program was" >&5
25658 cat conftest.s >&5
25660 rm -f conftest.o conftest.s
25663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
25664 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
25665 if test $gcc_cv_as_sparc_sparc6 = yes; then
25667 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25673 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25674 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25675 $as_echo_n "(cached) " >&6
25676 else
25677 gcc_cv_as_sparc_leon=no
25678 if test x$gcc_cv_as != x; then
25679 $as_echo '.text
25680 .register %g2, #scratch
25681 .register %g3, #scratch
25682 .align 4
25683 smac %g2, %g3, %g1
25684 umac %g2, %g3, %g1
25685 casa [%g2] 0xb, %g3, %g1' > conftest.s
25686 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25688 (eval $ac_try) 2>&5
25689 ac_status=$?
25690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25691 test $ac_status = 0; }; }
25692 then
25693 gcc_cv_as_sparc_leon=yes
25694 else
25695 echo "configure: failed program was" >&5
25696 cat conftest.s >&5
25698 rm -f conftest.o conftest.s
25701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25702 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25703 if test $gcc_cv_as_sparc_leon = yes; then
25705 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25711 i[34567]86-*-* | x86_64-*-*)
25712 case $target_os in
25713 cygwin*)
25714 # Full C++ conformance when using a shared libstdc++-v3 requires some
25715 # support from the Cygwin DLL, which in more recent versions exports
25716 # wrappers to aid in interposing and redirecting operators new, delete,
25717 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25718 # are configuring for a version of Cygwin that exports the wrappers.
25719 if test x$host = x$target && test x$host_cpu = xi686; then
25720 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25721 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25722 gcc_ac_cygwin_dll_wrappers=yes
25723 else
25724 gcc_ac_cygwin_dll_wrappers=no
25727 else
25728 # Can't check presence of libc functions during cross-compile, so
25729 # we just have to assume we're building for an up-to-date target.
25730 gcc_ac_cygwin_dll_wrappers=yes
25733 cat >>confdefs.h <<_ACEOF
25734 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25735 _ACEOF
25737 esac
25738 case $target_os in
25739 cygwin* | pe | mingw32*)
25740 # Recent binutils allows the three-operand form of ".comm" on PE. This
25741 # definition is used unconditionally to initialise the default state of
25742 # the target option variable that governs usage of the feature.
25743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25744 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25745 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25746 $as_echo_n "(cached) " >&6
25747 else
25748 gcc_cv_as_comm_has_align=no
25749 if test $in_tree_gas = yes; then
25750 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25751 then gcc_cv_as_comm_has_align=yes
25753 elif test x$gcc_cv_as != x; then
25754 $as_echo '.comm foo,1,32' > conftest.s
25755 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25757 (eval $ac_try) 2>&5
25758 ac_status=$?
25759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25760 test $ac_status = 0; }; }
25761 then
25762 gcc_cv_as_comm_has_align=yes
25763 else
25764 echo "configure: failed program was" >&5
25765 cat conftest.s >&5
25767 rm -f conftest.o conftest.s
25770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25771 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25775 cat >>confdefs.h <<_ACEOF
25776 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25777 _ACEOF
25779 # Used for DWARF 2 in PE
25780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25781 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25782 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25783 $as_echo_n "(cached) " >&6
25784 else
25785 gcc_cv_as_ix86_pe_secrel32=no
25786 if test $in_tree_gas = yes; then
25787 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25788 then gcc_cv_as_ix86_pe_secrel32=yes
25790 elif test x$gcc_cv_as != x; then
25791 $as_echo '.text
25792 foo: nop
25793 .data
25794 .secrel32 foo' > conftest.s
25795 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25797 (eval $ac_try) 2>&5
25798 ac_status=$?
25799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25800 test $ac_status = 0; }; }
25801 then
25802 if test x$gcc_cv_ld != x \
25803 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25804 gcc_cv_as_ix86_pe_secrel32=yes
25806 rm -f conftest
25807 else
25808 echo "configure: failed program was" >&5
25809 cat conftest.s >&5
25811 rm -f conftest.o conftest.s
25814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25815 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25816 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25818 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25822 # Test if the assembler supports the extended form of the .section
25823 # directive that specifies section alignment. LTO support uses this,
25824 # but normally only after installation, so we warn but don't fail the
25825 # configure if LTO is enabled but the assembler does not support it.
25826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25827 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25828 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25829 $as_echo_n "(cached) " >&6
25830 else
25831 gcc_cv_as_section_has_align=no
25832 if test $in_tree_gas = yes; then
25833 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25834 then gcc_cv_as_section_has_align=yes
25836 elif test x$gcc_cv_as != x; then
25837 $as_echo '.section lto_test,"dr0"' > conftest.s
25838 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25840 (eval $ac_try) 2>&5
25841 ac_status=$?
25842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25843 test $ac_status = 0; }; }
25844 then
25845 gcc_cv_as_section_has_align=yes
25846 else
25847 echo "configure: failed program was" >&5
25848 cat conftest.s >&5
25850 rm -f conftest.o conftest.s
25853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25854 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25857 if test x$gcc_cv_as_section_has_align != xyes; then
25858 case ",$enable_languages," in
25859 *,lto,*)
25860 { $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
25861 $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;}
25863 esac
25866 esac
25868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
25869 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
25870 if test "${gcc_cv_as_ix86_xbrace_comment+set}" = set; then :
25871 $as_echo_n "(cached) " >&6
25872 else
25873 gcc_cv_as_ix86_xbrace_comment=no
25874 if test x$gcc_cv_as != x; then
25875 $as_echo '.text' > conftest.s
25876 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -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_ix86_xbrace_comment=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_ix86_xbrace_comment" >&5
25892 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
25893 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
25895 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
25900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25901 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25902 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25903 $as_echo_n "(cached) " >&6
25904 else
25905 gcc_cv_as_ix86_filds=no
25906 if test x$gcc_cv_as != x; then
25907 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25908 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25910 (eval $ac_try) 2>&5
25911 ac_status=$?
25912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25913 test $ac_status = 0; }; }
25914 then
25915 gcc_cv_as_ix86_filds=yes
25916 else
25917 echo "configure: failed program was" >&5
25918 cat conftest.s >&5
25920 rm -f conftest.o conftest.s
25923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25924 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25925 if test $gcc_cv_as_ix86_filds = yes; then
25927 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25933 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25934 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25935 $as_echo_n "(cached) " >&6
25936 else
25937 gcc_cv_as_ix86_fildq=no
25938 if test x$gcc_cv_as != x; then
25939 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25940 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25942 (eval $ac_try) 2>&5
25943 ac_status=$?
25944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25945 test $ac_status = 0; }; }
25946 then
25947 gcc_cv_as_ix86_fildq=yes
25948 else
25949 echo "configure: failed program was" >&5
25950 cat conftest.s >&5
25952 rm -f conftest.o conftest.s
25955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25956 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25957 if test $gcc_cv_as_ix86_fildq = yes; then
25959 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25965 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25966 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25967 $as_echo_n "(cached) " >&6
25968 else
25969 gcc_cv_as_ix86_cmov_sun_syntax=no
25970 if test x$gcc_cv_as != x; then
25971 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25972 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25974 (eval $ac_try) 2>&5
25975 ac_status=$?
25976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25977 test $ac_status = 0; }; }
25978 then
25979 gcc_cv_as_ix86_cmov_sun_syntax=yes
25980 else
25981 echo "configure: failed program was" >&5
25982 cat conftest.s >&5
25984 rm -f conftest.o conftest.s
25987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25988 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25989 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25991 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25997 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25998 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25999 $as_echo_n "(cached) " >&6
26000 else
26001 gcc_cv_as_ix86_ffreep=no
26002 if test x$gcc_cv_as != x; then
26003 $as_echo 'ffreep %st(1)' > conftest.s
26004 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26006 (eval $ac_try) 2>&5
26007 ac_status=$?
26008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26009 test $ac_status = 0; }; }
26010 then
26011 gcc_cv_as_ix86_ffreep=yes
26012 else
26013 echo "configure: failed program was" >&5
26014 cat conftest.s >&5
26016 rm -f conftest.o conftest.s
26019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26020 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26021 if test $gcc_cv_as_ix86_ffreep = yes; then
26023 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26029 $as_echo_n "checking assembler for .quad directive... " >&6; }
26030 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
26031 $as_echo_n "(cached) " >&6
26032 else
26033 gcc_cv_as_ix86_quad=no
26034 if test x$gcc_cv_as != x; then
26035 $as_echo '.quad 0' > conftest.s
26036 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26038 (eval $ac_try) 2>&5
26039 ac_status=$?
26040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26041 test $ac_status = 0; }; }
26042 then
26043 gcc_cv_as_ix86_quad=yes
26044 else
26045 echo "configure: failed program was" >&5
26046 cat conftest.s >&5
26048 rm -f conftest.o conftest.s
26051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26052 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26053 if test $gcc_cv_as_ix86_quad = yes; then
26055 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26061 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26062 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
26063 $as_echo_n "(cached) " >&6
26064 else
26065 gcc_cv_as_ix86_sahf=no
26066 if test x$gcc_cv_as != x; then
26067 $as_echo '.code64
26068 sahf' > conftest.s
26069 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26071 (eval $ac_try) 2>&5
26072 ac_status=$?
26073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26074 test $ac_status = 0; }; }
26075 then
26076 gcc_cv_as_ix86_sahf=yes
26077 else
26078 echo "configure: failed program was" >&5
26079 cat conftest.s >&5
26081 rm -f conftest.o conftest.s
26084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26085 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26086 if test $gcc_cv_as_ix86_sahf = yes; then
26088 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26094 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26095 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
26096 $as_echo_n "(cached) " >&6
26097 else
26098 gcc_cv_as_ix86_interunit_movq=no
26099 if test x$gcc_cv_as != x; then
26100 $as_echo '.code64
26101 movq %mm0, %rax
26102 movq %rax, %xmm0' > conftest.s
26103 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26105 (eval $ac_try) 2>&5
26106 ac_status=$?
26107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26108 test $ac_status = 0; }; }
26109 then
26110 gcc_cv_as_ix86_interunit_movq=yes
26111 else
26112 echo "configure: failed program was" >&5
26113 cat conftest.s >&5
26115 rm -f conftest.o conftest.s
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26119 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26123 cat >>confdefs.h <<_ACEOF
26124 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26125 _ACEOF
26128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26129 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26130 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
26131 $as_echo_n "(cached) " >&6
26132 else
26133 gcc_cv_as_ix86_hle=no
26134 if test x$gcc_cv_as != x; then
26135 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26136 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26138 (eval $ac_try) 2>&5
26139 ac_status=$?
26140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26141 test $ac_status = 0; }; }
26142 then
26143 gcc_cv_as_ix86_hle=yes
26144 else
26145 echo "configure: failed program was" >&5
26146 cat conftest.s >&5
26148 rm -f conftest.o conftest.s
26151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26152 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26153 if test $gcc_cv_as_ix86_hle = yes; then
26155 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26161 $as_echo_n "checking assembler for swap suffix... " >&6; }
26162 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
26163 $as_echo_n "(cached) " >&6
26164 else
26165 gcc_cv_as_ix86_swap=no
26166 if test x$gcc_cv_as != x; then
26167 $as_echo 'movl.s %esp, %ebp' > conftest.s
26168 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26170 (eval $ac_try) 2>&5
26171 ac_status=$?
26172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26173 test $ac_status = 0; }; }
26174 then
26175 gcc_cv_as_ix86_swap=yes
26176 else
26177 echo "configure: failed program was" >&5
26178 cat conftest.s >&5
26180 rm -f conftest.o conftest.s
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26184 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26185 if test $gcc_cv_as_ix86_swap = yes; then
26187 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26193 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26194 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
26195 $as_echo_n "(cached) " >&6
26196 else
26197 gcc_cv_as_ix86_diff_sect_delta=no
26198 if test x$gcc_cv_as != x; then
26199 $as_echo '.section .rodata
26200 .L1:
26201 .long .L2-.L1
26202 .long .L3-.L1
26203 .text
26204 .L3: nop
26205 .L2: nop' > conftest.s
26206 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26208 (eval $ac_try) 2>&5
26209 ac_status=$?
26210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26211 test $ac_status = 0; }; }
26212 then
26213 gcc_cv_as_ix86_diff_sect_delta=yes
26214 else
26215 echo "configure: failed program was" >&5
26216 cat conftest.s >&5
26218 rm -f conftest.o conftest.s
26221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26222 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26223 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26225 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26231 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26232 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
26233 $as_echo_n "(cached) " >&6
26234 else
26235 gcc_cv_as_ix86_rep_lock_prefix=no
26236 if test x$gcc_cv_as != x; then
26237 $as_echo 'rep movsl
26238 rep ret
26239 rep nop
26240 rep bsf %ecx, %eax
26241 rep bsr %ecx, %eax
26242 lock addl %edi, (%eax,%esi)
26243 lock orl $0, (%esp)' > conftest.s
26244 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26246 (eval $ac_try) 2>&5
26247 ac_status=$?
26248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26249 test $ac_status = 0; }; }
26250 then
26251 gcc_cv_as_ix86_rep_lock_prefix=yes
26252 else
26253 echo "configure: failed program was" >&5
26254 cat conftest.s >&5
26256 rm -f conftest.o conftest.s
26259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26260 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26261 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26263 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26269 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26270 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
26271 $as_echo_n "(cached) " >&6
26272 else
26273 gcc_cv_as_ix86_ud2=no
26274 if test x$gcc_cv_as != x; then
26275 $as_echo 'ud2' > conftest.s
26276 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26278 (eval $ac_try) 2>&5
26279 ac_status=$?
26280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26281 test $ac_status = 0; }; }
26282 then
26283 gcc_cv_as_ix86_ud2=yes
26284 else
26285 echo "configure: failed program was" >&5
26286 cat conftest.s >&5
26288 rm -f conftest.o conftest.s
26291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26292 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26293 if test $gcc_cv_as_ix86_ud2 = yes; then
26295 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26300 # Enforce 32-bit output with gas and gld.
26301 if test x$gas = xyes; then
26302 as_ix86_gas_32_opt="--32"
26304 if echo "$ld_ver" | grep GNU > /dev/null; then
26305 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
26306 ld_ix86_gld_32_opt="-melf_i386_sol2"
26307 else
26308 ld_ix86_gld_32_opt="-melf_i386"
26312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26313 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26314 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
26315 $as_echo_n "(cached) " >&6
26316 else
26317 gcc_cv_as_ix86_tlsgdplt=no
26318 if test x$gcc_cv_as != x; then
26319 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26320 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26322 (eval $ac_try) 2>&5
26323 ac_status=$?
26324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26325 test $ac_status = 0; }; }
26326 then
26327 if test x$gcc_cv_ld != x \
26328 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26329 gcc_cv_as_ix86_tlsgdplt=yes
26331 rm -f conftest
26332 else
26333 echo "configure: failed program was" >&5
26334 cat conftest.s >&5
26336 rm -f conftest.o conftest.s
26339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26340 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26341 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26343 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26348 conftest_s='
26349 .section .tdata,"aw'$tls_section_flag'",@progbits
26350 tls_ld:
26351 .section .text,"ax",@progbits
26352 call tls_ld@tlsldmplt'
26354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26355 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26356 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
26357 $as_echo_n "(cached) " >&6
26358 else
26359 gcc_cv_as_ix86_tlsldmplt=no
26360 if test x$gcc_cv_as != x; then
26361 $as_echo "$conftest_s" > conftest.s
26362 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26364 (eval $ac_try) 2>&5
26365 ac_status=$?
26366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26367 test $ac_status = 0; }; }
26368 then
26369 if test x$gcc_cv_ld != x \
26370 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
26371 gcc_cv_as_ix86_tlsldmplt=yes
26373 rm -f conftest
26374 else
26375 echo "configure: failed program was" >&5
26376 cat conftest.s >&5
26378 rm -f conftest.o conftest.s
26381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26382 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26386 cat >>confdefs.h <<_ACEOF
26387 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26388 _ACEOF
26391 conftest_s='
26392 .section .text,"ax",@progbits
26393 .globl _start
26394 .type _start, @function
26395 _start:
26396 leal value@tlsldm(%ebx), %eax
26397 call ___tls_get_addr@plt
26399 .section .tdata,"aw'$tls_section_flag'",@progbits
26400 .type value, @object
26401 value:'
26402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26403 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26404 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
26405 $as_echo_n "(cached) " >&6
26406 else
26407 gcc_cv_as_ix86_tlsldm=no
26408 if test x$gcc_cv_as != x; then
26409 $as_echo "$conftest_s" > conftest.s
26410 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26412 (eval $ac_try) 2>&5
26413 ac_status=$?
26414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26415 test $ac_status = 0; }; }
26416 then
26417 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26418 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
26419 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
26420 || dis conftest 2>/dev/null | grep nop > /dev/null; then
26421 gcc_cv_as_ix86_tlsldm=yes
26424 rm -f conftest
26425 else
26426 echo "configure: failed program was" >&5
26427 cat conftest.s >&5
26429 rm -f conftest.o conftest.s
26432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26433 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26437 cat >>confdefs.h <<_ACEOF
26438 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26439 _ACEOF
26442 conftest_s='
26443 .data
26444 bar:
26445 .byte 1
26446 .text
26447 .global _start
26448 _start:
26449 cmpl $0, bar@GOT
26450 jmp *_start@GOT'
26451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26452 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26453 if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
26454 $as_echo_n "(cached) " >&6
26455 else
26456 gcc_cv_as_ix86_got32x=no
26457 if test x$gcc_cv_as != x; then
26458 $as_echo "$conftest_s" > conftest.s
26459 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26461 (eval $ac_try) 2>&5
26462 ac_status=$?
26463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26464 test $ac_status = 0; }; }
26465 then
26466 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26467 && test x$gcc_cv_readelf != x \
26468 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
26469 | grep R_386_GOT32X > /dev/null 2>&1 \
26470 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26471 if $gcc_cv_objdump -dw conftest 2>&1 \
26472 | grep 0xffffff > /dev/null 2>&1; then
26473 gcc_cv_as_ix86_got32x=no
26474 else
26475 gcc_cv_as_ix86_got32x=yes
26478 rm -f conftest
26479 else
26480 echo "configure: failed program was" >&5
26481 cat conftest.s >&5
26483 rm -f conftest.o conftest.s
26486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26487 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26491 cat >>confdefs.h <<_ACEOF
26492 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26493 _ACEOF
26496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26497 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26498 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
26499 $as_echo_n "(cached) " >&6
26500 else
26501 gcc_cv_as_ix86_gotoff_in_data=no
26502 if test $in_tree_gas = yes; then
26503 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26504 then gcc_cv_as_ix86_gotoff_in_data=yes
26506 elif test x$gcc_cv_as != x; then
26507 $as_echo ' .text
26508 .L0:
26510 .data
26511 .long .L0@GOTOFF' > conftest.s
26512 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26514 (eval $ac_try) 2>&5
26515 ac_status=$?
26516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26517 test $ac_status = 0; }; }
26518 then
26519 gcc_cv_as_ix86_gotoff_in_data=yes
26520 else
26521 echo "configure: failed program was" >&5
26522 cat conftest.s >&5
26524 rm -f conftest.o conftest.s
26527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26528 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26532 cat >>confdefs.h <<_ACEOF
26533 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26534 _ACEOF
26537 conftest_s='
26538 .section .text,"ax",@progbits
26539 .globl _start
26540 .type _start, @function
26541 _start:
26542 leal ld@tlsldm(%ecx), %eax
26543 call *___tls_get_addr@GOT(%ecx)
26544 leal gd@tlsgd(%ecx), %eax
26545 call *___tls_get_addr@GOT(%ecx)
26547 .section .tdata,"aw'$tls_section_flag'",@progbits
26548 .type ld, @object
26550 .byte 0
26551 .globl gd
26552 .type gd, @object
26554 .byte 0'
26555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26556 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26557 if test "${gcc_cv_as_ix86_tls_get_addr_via_got+set}" = set; then :
26558 $as_echo_n "(cached) " >&6
26559 else
26560 gcc_cv_as_ix86_tls_get_addr_via_got=no
26561 if test x$gcc_cv_as != x; then
26562 $as_echo "$conftest_s" > conftest.s
26563 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26565 (eval $ac_try) 2>&5
26566 ac_status=$?
26567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26568 test $ac_status = 0; }; }
26569 then
26570 if test x$gcc_cv_ld != x \
26571 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26572 gcc_cv_as_ix86_tls_get_addr_via_got=yes
26574 rm -f conftest
26575 else
26576 echo "configure: failed program was" >&5
26577 cat conftest.s >&5
26579 rm -f conftest.o conftest.s
26582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26583 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26587 cat >>confdefs.h <<_ACEOF
26588 #define HAVE_AS_IX86_TLS_GET_ADDR_GOT `if test x"$gcc_cv_as_ix86_tls_get_addr_via_got" = xyes; then echo 1; else echo 0; fi`
26589 _ACEOF
26593 ia64*-*-*)
26594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26595 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26596 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26597 $as_echo_n "(cached) " >&6
26598 else
26599 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
26600 if test $in_tree_gas = yes; then
26601 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26602 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26604 elif test x$gcc_cv_as != x; then
26605 $as_echo ' .text
26606 addl r15 = @ltoffx(x#), gp
26608 ld8.mov r16 = [r15], x#' > conftest.s
26609 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26611 (eval $ac_try) 2>&5
26612 ac_status=$?
26613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26614 test $ac_status = 0; }; }
26615 then
26616 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26617 else
26618 echo "configure: failed program was" >&5
26619 cat conftest.s >&5
26621 rm -f conftest.o conftest.s
26624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26625 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26626 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26628 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26635 powerpc*-*-*)
26637 case $target in
26638 *-*-darwin*)
26639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26640 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26641 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26642 $as_echo_n "(cached) " >&6
26643 else
26644 gcc_cv_as_machine_directive=no
26645 if test x$gcc_cv_as != x; then
26646 $as_echo ' .machine ppc7400' > conftest.s
26647 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26649 (eval $ac_try) 2>&5
26650 ac_status=$?
26651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26652 test $ac_status = 0; }; }
26653 then
26654 gcc_cv_as_machine_directive=yes
26655 else
26656 echo "configure: failed program was" >&5
26657 cat conftest.s >&5
26659 rm -f conftest.o conftest.s
26662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26663 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26666 if test x$gcc_cv_as_machine_directive != xyes; then
26667 echo "*** This target requires an assembler supporting \".machine\"" >&2
26668 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26669 test x$build = x$target && exit 1
26672 esac
26674 case $target in
26675 *-*-aix*) conftest_s=' .machine "pwr5"
26676 .csect .text[PR]
26677 mfcr 3,128';;
26678 *-*-darwin*) conftest_s=' .text
26679 mfcr r3,128';;
26680 *) conftest_s=' .machine power4
26681 .text
26682 mfcr 3,128';;
26683 esac
26685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26686 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26687 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26688 $as_echo_n "(cached) " >&6
26689 else
26690 gcc_cv_as_powerpc_mfcrf=no
26691 if test $in_tree_gas = yes; then
26692 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26693 then gcc_cv_as_powerpc_mfcrf=yes
26695 elif test x$gcc_cv_as != x; then
26696 $as_echo "$conftest_s" > conftest.s
26697 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26699 (eval $ac_try) 2>&5
26700 ac_status=$?
26701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26702 test $ac_status = 0; }; }
26703 then
26704 gcc_cv_as_powerpc_mfcrf=yes
26705 else
26706 echo "configure: failed program was" >&5
26707 cat conftest.s >&5
26709 rm -f conftest.o conftest.s
26712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26713 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26714 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26716 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26721 case $target in
26722 *-*-aix*) conftest_s=' .csect .text[PR]
26723 LCF..0:
26724 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26725 *-*-darwin*)
26726 conftest_s=' .text
26727 LCF0:
26728 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26729 *) conftest_s=' .text
26730 .LCF0:
26731 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26732 esac
26734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26735 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26736 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26737 $as_echo_n "(cached) " >&6
26738 else
26739 gcc_cv_as_powerpc_rel16=no
26740 if test $in_tree_gas = yes; then
26741 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26742 then gcc_cv_as_powerpc_rel16=yes
26744 elif test x$gcc_cv_as != x; then
26745 $as_echo "$conftest_s" > conftest.s
26746 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26748 (eval $ac_try) 2>&5
26749 ac_status=$?
26750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26751 test $ac_status = 0; }; }
26752 then
26753 gcc_cv_as_powerpc_rel16=yes
26754 else
26755 echo "configure: failed program was" >&5
26756 cat conftest.s >&5
26758 rm -f conftest.o conftest.s
26761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26762 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26763 if test $gcc_cv_as_powerpc_rel16 = yes; then
26765 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26770 case $target in
26771 *-*-aix*) conftest_s=' .machine "pwr7"
26772 .csect .text[PR]
26773 lxvd2x 1,2,3';;
26774 *) conftest_s=' .machine power7
26775 .text
26776 lxvd2x 1,2,3';;
26777 esac
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26780 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26781 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26782 $as_echo_n "(cached) " >&6
26783 else
26784 gcc_cv_as_powerpc_vsx=no
26785 if test $in_tree_gas = yes; then
26786 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26787 then gcc_cv_as_powerpc_vsx=yes
26789 elif test x$gcc_cv_as != x; then
26790 $as_echo "$conftest_s" > conftest.s
26791 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26793 (eval $ac_try) 2>&5
26794 ac_status=$?
26795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26796 test $ac_status = 0; }; }
26797 then
26798 gcc_cv_as_powerpc_vsx=yes
26799 else
26800 echo "configure: failed program was" >&5
26801 cat conftest.s >&5
26803 rm -f conftest.o conftest.s
26806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26807 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26808 if test $gcc_cv_as_powerpc_vsx = yes; then
26810 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26816 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26817 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26818 $as_echo_n "(cached) " >&6
26819 else
26820 gcc_cv_as_powerpc_gnu_attribute=no
26821 if test $in_tree_gas = yes; then
26822 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26823 then gcc_cv_as_powerpc_gnu_attribute=yes
26825 elif test x$gcc_cv_as != x; then
26826 $as_echo '.gnu_attribute 4,1' > conftest.s
26827 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26829 (eval $ac_try) 2>&5
26830 ac_status=$?
26831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26832 test $ac_status = 0; }; }
26833 then
26834 gcc_cv_as_powerpc_gnu_attribute=yes
26835 else
26836 echo "configure: failed program was" >&5
26837 cat conftest.s >&5
26839 rm -f conftest.o conftest.s
26842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26843 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26844 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26846 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26852 $as_echo_n "checking assembler for tls marker support... " >&6; }
26853 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26854 $as_echo_n "(cached) " >&6
26855 else
26856 gcc_cv_as_powerpc_tls_markers=no
26857 if test $in_tree_gas = yes; then
26858 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26859 then gcc_cv_as_powerpc_tls_markers=yes
26861 elif test x$gcc_cv_as != x; then
26862 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26863 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26865 (eval $ac_try) 2>&5
26866 ac_status=$?
26867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26868 test $ac_status = 0; }; }
26869 then
26870 gcc_cv_as_powerpc_tls_markers=yes
26871 else
26872 echo "configure: failed program was" >&5
26873 cat conftest.s >&5
26875 rm -f conftest.o conftest.s
26878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26879 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26880 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26882 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26888 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26889 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26890 $as_echo_n "(cached) " >&6
26891 else
26892 gcc_cv_as_powerpc_entry_markers=no
26893 if test $in_tree_gas = yes; then
26894 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26895 then gcc_cv_as_powerpc_entry_markers=yes
26897 elif test x$gcc_cv_as != x; then
26898 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26899 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26901 (eval $ac_try) 2>&5
26902 ac_status=$?
26903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26904 test $ac_status = 0; }; }
26905 then
26906 gcc_cv_as_powerpc_entry_markers=yes
26907 else
26908 echo "configure: failed program was" >&5
26909 cat conftest.s >&5
26911 rm -f conftest.o conftest.s
26914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26915 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26916 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26918 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26923 case $target in
26924 *-*-aix*)
26925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26926 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26927 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26928 $as_echo_n "(cached) " >&6
26929 else
26930 gcc_cv_as_aix_ref=no
26931 if test $in_tree_gas = yes; then
26932 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26933 then gcc_cv_as_aix_ref=yes
26935 elif test x$gcc_cv_as != x; then
26936 $as_echo ' .csect stuff[rw]
26937 stuff:
26938 .long 1
26939 .extern sym
26940 .ref sym
26941 ' > conftest.s
26942 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26944 (eval $ac_try) 2>&5
26945 ac_status=$?
26946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26947 test $ac_status = 0; }; }
26948 then
26949 gcc_cv_as_aix_ref=yes
26950 else
26951 echo "configure: failed program was" >&5
26952 cat conftest.s >&5
26954 rm -f conftest.o conftest.s
26957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26958 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26959 if test $gcc_cv_as_aix_ref = yes; then
26961 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26967 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26968 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26969 $as_echo_n "(cached) " >&6
26970 else
26971 gcc_cv_as_aix_dwloc=no
26972 if test $in_tree_gas = yes; then
26973 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26974 then gcc_cv_as_aix_dwloc=yes
26976 elif test x$gcc_cv_as != x; then
26977 $as_echo ' .dwsect 0xA0000
26978 Lframe..0:
26979 .vbyte 4,Lframe..0
26980 ' > conftest.s
26981 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26983 (eval $ac_try) 2>&5
26984 ac_status=$?
26985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26986 test $ac_status = 0; }; }
26987 then
26988 gcc_cv_as_aix_dwloc=yes
26989 else
26990 echo "configure: failed program was" >&5
26991 cat conftest.s >&5
26993 rm -f conftest.o conftest.s
26996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26997 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26998 if test $gcc_cv_as_aix_dwloc = yes; then
27000 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27005 esac
27008 mips*-*-*)
27009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27010 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27011 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
27012 $as_echo_n "(cached) " >&6
27013 else
27014 gcc_cv_as_mips_explicit_relocs=no
27015 if test $in_tree_gas = yes; then
27016 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27017 then gcc_cv_as_mips_explicit_relocs=yes
27019 elif test x$gcc_cv_as != x; then
27020 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27021 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27023 (eval $ac_try) 2>&5
27024 ac_status=$?
27025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27026 test $ac_status = 0; }; }
27027 then
27028 gcc_cv_as_mips_explicit_relocs=yes
27029 else
27030 echo "configure: failed program was" >&5
27031 cat conftest.s >&5
27033 rm -f conftest.o conftest.s
27036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27037 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27038 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27039 if test x$target_cpu_default = x
27040 then target_cpu_default=MASK_EXPLICIT_RELOCS
27041 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27047 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27048 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
27049 $as_echo_n "(cached) " >&6
27050 else
27051 gcc_cv_as_mips_no_shared=no
27052 if test $in_tree_gas = yes; then
27053 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27054 then gcc_cv_as_mips_no_shared=yes
27056 elif test x$gcc_cv_as != x; then
27057 $as_echo 'nop' > conftest.s
27058 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27060 (eval $ac_try) 2>&5
27061 ac_status=$?
27062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27063 test $ac_status = 0; }; }
27064 then
27065 gcc_cv_as_mips_no_shared=yes
27066 else
27067 echo "configure: failed program was" >&5
27068 cat conftest.s >&5
27070 rm -f conftest.o conftest.s
27073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27074 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27075 if test $gcc_cv_as_mips_no_shared = yes; then
27077 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27083 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27084 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
27085 $as_echo_n "(cached) " >&6
27086 else
27087 gcc_cv_as_mips_gnu_attribute=no
27088 if test $in_tree_gas = yes; then
27089 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27090 then gcc_cv_as_mips_gnu_attribute=yes
27092 elif test x$gcc_cv_as != x; then
27093 $as_echo '.gnu_attribute 4,1' > conftest.s
27094 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27096 (eval $ac_try) 2>&5
27097 ac_status=$?
27098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27099 test $ac_status = 0; }; }
27100 then
27101 gcc_cv_as_mips_gnu_attribute=yes
27102 else
27103 echo "configure: failed program was" >&5
27104 cat conftest.s >&5
27106 rm -f conftest.o conftest.s
27109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27110 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27111 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27113 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27119 $as_echo_n "checking assembler for .module support... " >&6; }
27120 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
27121 $as_echo_n "(cached) " >&6
27122 else
27123 gcc_cv_as_mips_dot_module=no
27124 if test x$gcc_cv_as != x; then
27125 $as_echo '.module mips2
27126 .module fp=xx' > conftest.s
27127 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27129 (eval $ac_try) 2>&5
27130 ac_status=$?
27131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27132 test $ac_status = 0; }; }
27133 then
27134 gcc_cv_as_mips_dot_module=yes
27135 else
27136 echo "configure: failed program was" >&5
27137 cat conftest.s >&5
27139 rm -f conftest.o conftest.s
27142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27143 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27144 if test $gcc_cv_as_mips_dot_module = yes; then
27146 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27150 if test x$gcc_cv_as_mips_dot_module = xno \
27151 && test x$with_fp_32 != x; then
27152 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27156 $as_echo_n "checking assembler for .micromips support... " >&6; }
27157 if test "${gcc_cv_as_micromips_support+set}" = set; then :
27158 $as_echo_n "(cached) " >&6
27159 else
27160 gcc_cv_as_micromips_support=no
27161 if test x$gcc_cv_as != x; then
27162 $as_echo '.set micromips' > conftest.s
27163 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27165 (eval $ac_try) 2>&5
27166 ac_status=$?
27167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27168 test $ac_status = 0; }; }
27169 then
27170 gcc_cv_as_micromips_support=yes
27171 else
27172 echo "configure: failed program was" >&5
27173 cat conftest.s >&5
27175 rm -f conftest.o conftest.s
27178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27179 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27180 if test $gcc_cv_as_micromips_support = yes; then
27182 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27188 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27189 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27190 $as_echo_n "(cached) " >&6
27191 else
27192 gcc_cv_as_mips_dtprelword=no
27193 if test $in_tree_gas = yes; then
27194 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27195 then gcc_cv_as_mips_dtprelword=yes
27197 elif test x$gcc_cv_as != x; then
27198 $as_echo '.section .tdata,"awT",@progbits
27200 .word 2
27201 .text
27202 .dtprelword x+0x8000' > 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_mips_dtprelword=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_mips_dtprelword" >&5
27219 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27220 if test $gcc_cv_as_mips_dtprelword = yes; then
27222 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27228 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27229 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27230 $as_echo_n "(cached) " >&6
27231 else
27232 gcc_cv_as_mips_dspr1_mult=no
27233 if test x$gcc_cv_as != x; then
27234 $as_echo ' .set mips32r2
27235 .set nodspr2
27236 .set dsp
27237 madd $ac3,$4,$5
27238 maddu $ac3,$4,$5
27239 msub $ac3,$4,$5
27240 msubu $ac3,$4,$5
27241 mult $ac3,$4,$5
27242 multu $ac3,$4,$5' > conftest.s
27243 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27245 (eval $ac_try) 2>&5
27246 ac_status=$?
27247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27248 test $ac_status = 0; }; }
27249 then
27250 gcc_cv_as_mips_dspr1_mult=yes
27251 else
27252 echo "configure: failed program was" >&5
27253 cat conftest.s >&5
27255 rm -f conftest.o conftest.s
27258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27259 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27260 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27262 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27268 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27269 gcc_cv_as_ld_jalr_reloc=no
27270 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27271 if test $in_tree_ld = yes ; then
27272 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 \
27273 && test $in_tree_ld_is_elf = yes; then
27274 gcc_cv_as_ld_jalr_reloc=yes
27276 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27277 echo ' .ent x' > conftest.s
27278 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27279 echo ' lw $25,%call16(y)($28)' >> conftest.s
27280 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27281 echo '1: jalr $25' >> conftest.s
27282 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27283 echo '1: jalr $25' >> conftest.s
27284 echo ' .end x' >> conftest.s
27285 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27286 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27287 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27288 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27289 gcc_cv_as_ld_jalr_reloc=yes
27292 rm -f conftest.*
27295 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27296 if test x$target_cpu_default = x; then
27297 target_cpu_default=MASK_RELAX_PIC_CALLS
27298 else
27299 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27303 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27306 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27307 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27308 $as_echo_n "(cached) " >&6
27309 else
27310 gcc_cv_ld_mips_personality_relaxation=no
27311 if test $in_tree_ld = yes ; then
27312 if test "$gcc_cv_gld_major_version" -eq 2 \
27313 -a "$gcc_cv_gld_minor_version" -ge 21 \
27314 -o "$gcc_cv_gld_major_version" -gt 2; then
27315 gcc_cv_ld_mips_personality_relaxation=yes
27317 elif test x$gcc_cv_as != x \
27318 -a x$gcc_cv_ld != x \
27319 -a x$gcc_cv_readelf != x ; then
27320 cat > conftest.s <<EOF
27321 .cfi_startproc
27322 .cfi_personality 0x80,indirect_ptr
27323 .ent test
27324 test:
27326 .end test
27327 .cfi_endproc
27329 .section .data,"aw",@progbits
27330 indirect_ptr:
27331 .dc.a personality
27333 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27334 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27335 if $gcc_cv_readelf -d conftest 2>&1 \
27336 | grep TEXTREL > /dev/null 2>&1; then
27338 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27339 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27341 else
27342 gcc_cv_ld_mips_personality_relaxation=yes
27346 rm -f conftest.s conftest.o conftest
27348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27349 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27350 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27352 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27357 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27358 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27359 $as_echo_n "(cached) " >&6
27360 else
27361 gcc_cv_as_mips_nan=no
27362 if test x$gcc_cv_as != x; then
27363 $as_echo '' > conftest.s
27364 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27366 (eval $ac_try) 2>&5
27367 ac_status=$?
27368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27369 test $ac_status = 0; }; }
27370 then
27371 gcc_cv_as_mips_nan=yes
27372 else
27373 echo "configure: failed program was" >&5
27374 cat conftest.s >&5
27376 rm -f conftest.o conftest.s
27379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27380 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27381 if test $gcc_cv_as_mips_nan = yes; then
27383 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27387 if test x$gcc_cv_as_mips_nan = xno \
27388 && test x$with_nan != x; then
27389 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27392 s390*-*-*)
27393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27394 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27395 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27396 $as_echo_n "(cached) " >&6
27397 else
27398 gcc_cv_as_s390_gnu_attribute=no
27399 if test $in_tree_gas = yes; then
27400 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27401 then gcc_cv_as_s390_gnu_attribute=yes
27403 elif test x$gcc_cv_as != x; then
27404 $as_echo '.gnu_attribute 8,1' > conftest.s
27405 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27407 (eval $ac_try) 2>&5
27408 ac_status=$?
27409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27410 test $ac_status = 0; }; }
27411 then
27412 gcc_cv_as_s390_gnu_attribute=yes
27413 else
27414 echo "configure: failed program was" >&5
27415 cat conftest.s >&5
27417 rm -f conftest.o conftest.s
27420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27421 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27422 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27424 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27429 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27430 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27431 $as_echo_n "(cached) " >&6
27432 else
27433 gcc_cv_as_s390_machine_machinemode=no
27434 if test $in_tree_gas = yes; then
27435 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27436 then gcc_cv_as_s390_machine_machinemode=yes
27438 elif test x$gcc_cv_as != x; then
27439 $as_echo ' .machinemode push
27440 .machinemode pop
27441 .machine push
27442 .machine pop' > conftest.s
27443 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27445 (eval $ac_try) 2>&5
27446 ac_status=$?
27447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27448 test $ac_status = 0; }; }
27449 then
27450 gcc_cv_as_s390_machine_machinemode=yes
27451 else
27452 echo "configure: failed program was" >&5
27453 cat conftest.s >&5
27455 rm -f conftest.o conftest.s
27458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27459 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27460 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27462 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27467 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27468 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27469 $as_echo_n "(cached) " >&6
27470 else
27471 gcc_cv_as_s390_architecture_modifiers=no
27472 if test $in_tree_gas = yes; then
27473 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27474 then gcc_cv_as_s390_architecture_modifiers=yes
27476 elif test x$gcc_cv_as != x; then
27477 $as_echo ' .machine z13+vx ' > conftest.s
27478 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27480 (eval $ac_try) 2>&5
27481 ac_status=$?
27482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27483 test $ac_status = 0; }; }
27484 then
27485 gcc_cv_as_s390_architecture_modifiers=yes
27486 else
27487 echo "configure: failed program was" >&5
27488 cat conftest.s >&5
27490 rm -f conftest.o conftest.s
27493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27494 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27495 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27497 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27502 esac
27504 # Mips and HP-UX need the GNU assembler.
27505 # Linux on IA64 might be able to use the Intel assembler.
27507 case "$target" in
27508 mips*-*-* | *-*-hpux* )
27509 if test x$gas_flag = xyes \
27510 || test x"$host" != x"$build" \
27511 || test ! -x "$gcc_cv_as" \
27512 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27514 else
27515 echo "*** This configuration requires the GNU assembler" >&2
27516 exit 1
27519 esac
27521 # ??? Not all targets support dwarf2 debug_line, even within a version
27522 # of gas. Moreover, we need to emit a valid instruction to trigger any
27523 # info to the output file. So, as supported targets are added to gas 2.11,
27524 # add some instruction here to (also) show we expect this might work.
27525 # ??? Once 2.11 is released, probably need to add first known working
27526 # version to the per-target configury.
27527 case "$cpu_type" in
27528 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
27529 | microblaze | mips | nios2 | pa | riscv | rs6000 | score | sparc | spu \
27530 | tilegx | tilepro | visium | xstormy16 | xtensa)
27531 insn="nop"
27533 ia64 | s390)
27534 insn="nop 0"
27536 mmix)
27537 insn="swym 0"
27539 esac
27540 if test x"$insn" != x; then
27541 conftest_s="\
27542 .file 1 \"conftest.s\"
27543 .loc 1 3 0
27544 $insn"
27545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27546 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27547 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27548 $as_echo_n "(cached) " >&6
27549 else
27550 gcc_cv_as_dwarf2_debug_line=no
27551 if test $in_tree_gas = yes; then
27552 if test $in_tree_gas_is_elf = yes \
27553 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27554 then gcc_cv_as_dwarf2_debug_line=yes
27556 elif test x$gcc_cv_as != x; then
27557 $as_echo "$conftest_s" > conftest.s
27558 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27560 (eval $ac_try) 2>&5
27561 ac_status=$?
27562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27563 test $ac_status = 0; }; }
27564 then
27565 if test x$gcc_cv_objdump != x \
27566 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27567 | grep debug_line > /dev/null 2>&1; then
27568 gcc_cv_as_dwarf2_debug_line=yes
27570 else
27571 echo "configure: failed program was" >&5
27572 cat conftest.s >&5
27574 rm -f conftest.o conftest.s
27577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27578 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27582 # The .debug_line file table must be in the exact order that
27583 # we specified the files, since these indices are also used
27584 # by DW_AT_decl_file. Approximate this test by testing if
27585 # the assembler bitches if the same index is assigned twice.
27586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27587 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27588 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27589 $as_echo_n "(cached) " >&6
27590 else
27591 gcc_cv_as_dwarf2_file_buggy=no
27592 if test x$gcc_cv_as != x; then
27593 $as_echo ' .file 1 "foo.s"
27594 .file 1 "bar.s"' > conftest.s
27595 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27597 (eval $ac_try) 2>&5
27598 ac_status=$?
27599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27600 test $ac_status = 0; }; }
27601 then
27602 gcc_cv_as_dwarf2_file_buggy=yes
27603 else
27604 echo "configure: failed program was" >&5
27605 cat conftest.s >&5
27607 rm -f conftest.o conftest.s
27610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27611 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27615 if test $gcc_cv_as_dwarf2_debug_line = yes \
27616 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27618 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27621 if test $gcc_cv_as_leb128 = yes; then
27622 conftest_s="\
27623 .file 1 \"conftest.s\"
27624 .loc 1 3 0 view .LVU1
27625 $insn
27626 .data
27627 .uleb128 .LVU1
27628 .uleb128 .LVU1
27630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
27631 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
27632 if test "${gcc_cv_as_dwarf2_debug_view+set}" = set; then :
27633 $as_echo_n "(cached) " >&6
27634 else
27635 gcc_cv_as_dwarf2_debug_view=no
27636 if test $in_tree_gas = yes; then
27637 if test $in_tree_gas_is_elf = yes \
27638 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
27639 then gcc_cv_as_dwarf2_debug_view=yes
27641 elif test x$gcc_cv_as != x; then
27642 $as_echo "$conftest_s" > conftest.s
27643 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27644 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27645 (eval $ac_try) 2>&5
27646 ac_status=$?
27647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27648 test $ac_status = 0; }; }
27649 then
27650 gcc_cv_as_dwarf2_debug_view=yes
27651 else
27652 echo "configure: failed program was" >&5
27653 cat conftest.s >&5
27655 rm -f conftest.o conftest.s
27658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
27659 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
27660 if test $gcc_cv_as_dwarf2_debug_view = yes; then
27662 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
27669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27670 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27671 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27672 $as_echo_n "(cached) " >&6
27673 else
27674 gcc_cv_as_gdwarf2_flag=no
27675 if test $in_tree_gas = yes; then
27676 if test $in_tree_gas_is_elf = yes \
27677 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27678 then gcc_cv_as_gdwarf2_flag=yes
27680 elif test x$gcc_cv_as != x; then
27681 $as_echo "$insn" > conftest.s
27682 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27684 (eval $ac_try) 2>&5
27685 ac_status=$?
27686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27687 test $ac_status = 0; }; }
27688 then
27689 gcc_cv_as_gdwarf2_flag=yes
27690 else
27691 echo "configure: failed program was" >&5
27692 cat conftest.s >&5
27694 rm -f conftest.o conftest.s
27697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27698 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27699 if test $gcc_cv_as_gdwarf2_flag = yes; then
27701 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27707 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27708 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27709 $as_echo_n "(cached) " >&6
27710 else
27711 gcc_cv_as_gstabs_flag=no
27712 if test $in_tree_gas = yes; then
27713 if test $in_tree_gas_is_elf = yes \
27714 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27715 then gcc_cv_as_gstabs_flag=yes
27717 elif test x$gcc_cv_as != x; then
27718 $as_echo "$insn" > conftest.s
27719 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27721 (eval $ac_try) 2>&5
27722 ac_status=$?
27723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27724 test $ac_status = 0; }; }
27725 then
27726 gcc_cv_as_gstabs_flag=yes
27727 else
27728 echo "configure: failed program was" >&5
27729 cat conftest.s >&5
27731 rm -f conftest.o conftest.s
27734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27735 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27736 if test $gcc_cv_as_gstabs_flag = yes; then
27738 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27744 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27745 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27746 $as_echo_n "(cached) " >&6
27747 else
27748 gcc_cv_as_debug_prefix_map_flag=no
27749 if test $in_tree_gas = yes; then
27750 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27751 then gcc_cv_as_debug_prefix_map_flag=yes
27753 elif test x$gcc_cv_as != x; then
27754 $as_echo "$insn" > conftest.s
27755 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27757 (eval $ac_try) 2>&5
27758 ac_status=$?
27759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27760 test $ac_status = 0; }; }
27761 then
27762 gcc_cv_as_debug_prefix_map_flag=yes
27763 else
27764 echo "configure: failed program was" >&5
27765 cat conftest.s >&5
27767 rm -f conftest.o conftest.s
27770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27771 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27772 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27774 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27781 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27782 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27783 $as_echo_n "(cached) " >&6
27784 else
27785 gcc_cv_as_compress_debug=no
27786 if test x$gcc_cv_as != x; then
27787 $as_echo '' > conftest.s
27788 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27790 (eval $ac_try) 2>&5
27791 ac_status=$?
27792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27793 test $ac_status = 0; }; }
27794 then
27795 # gas compiled without zlib cannot compress debug sections and warns
27796 # about it, but still exits successfully. So check for this, too.
27797 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27798 then
27799 gcc_cv_as_compress_debug=0
27800 # Since binutils 2.26, gas supports --compress-debug-sections=type,
27801 # defaulting to the ELF gABI format.
27802 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
27803 then
27804 gcc_cv_as_compress_debug=2
27805 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27806 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27807 # Before binutils 2.26, gas only supported --compress-debug-options and
27808 # emitted the traditional GNU format.
27809 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27810 then
27811 gcc_cv_as_compress_debug=1
27812 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27813 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27814 else
27815 gcc_cv_as_compress_debug=0
27817 else
27818 echo "configure: failed program was" >&5
27819 cat conftest.s >&5
27821 rm -f conftest.o conftest.s
27824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27825 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27829 cat >>confdefs.h <<_ACEOF
27830 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27831 _ACEOF
27834 cat >>confdefs.h <<_ACEOF
27835 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27836 _ACEOF
27839 cat >>confdefs.h <<_ACEOF
27840 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27841 _ACEOF
27844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27845 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27846 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27847 $as_echo_n "(cached) " >&6
27848 else
27849 gcc_cv_as_lcomm_with_alignment=no
27850 if test x$gcc_cv_as != x; then
27851 $as_echo '.lcomm bar,4,16' > conftest.s
27852 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27854 (eval $ac_try) 2>&5
27855 ac_status=$?
27856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27857 test $ac_status = 0; }; }
27858 then
27859 gcc_cv_as_lcomm_with_alignment=yes
27860 else
27861 echo "configure: failed program was" >&5
27862 cat conftest.s >&5
27864 rm -f conftest.o conftest.s
27867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27868 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27869 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27871 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27876 if test x$with_sysroot = x && test x$host = x$target \
27877 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27878 && test "$prefix" != "NONE"; then
27880 cat >>confdefs.h <<_ACEOF
27881 #define PREFIX_INCLUDE_DIR "$prefix/include"
27882 _ACEOF
27886 # Determine the version of glibc, if any, used on the target.
27887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27888 $as_echo_n "checking for target glibc version... " >&6; }
27890 # Check whether --with-glibc-version was given.
27891 if test "${with_glibc_version+set}" = set; then :
27892 withval=$with_glibc_version;
27893 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27894 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27895 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27896 else
27897 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27899 else
27901 glibc_version_major=0
27902 glibc_version_minor=0
27903 if test -f $target_header_dir/features.h \
27904 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27905 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27906 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27907 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27912 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27914 cat >>confdefs.h <<_ACEOF
27915 #define TARGET_GLIBC_MAJOR $glibc_version_major
27916 _ACEOF
27919 cat >>confdefs.h <<_ACEOF
27920 #define TARGET_GLIBC_MINOR $glibc_version_minor
27921 _ACEOF
27924 # Check whether --enable-gnu-unique-object was given.
27925 if test "${enable_gnu_unique_object+set}" = set; then :
27926 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27927 yes | no) ;;
27928 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27929 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27930 esac
27931 else
27932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27933 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27934 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27935 $as_echo_n "(cached) " >&6
27936 else
27937 gcc_cv_as_gnu_unique_object=no
27938 if test $in_tree_gas = yes; then
27939 if test $in_tree_gas_is_elf = yes \
27940 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27941 then gcc_cv_as_gnu_unique_object=yes
27943 elif test x$gcc_cv_as != x; then
27944 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27945 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27947 (eval $ac_try) 2>&5
27948 ac_status=$?
27949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27950 test $ac_status = 0; }; }
27951 then
27952 gcc_cv_as_gnu_unique_object=yes
27953 else
27954 echo "configure: failed program was" >&5
27955 cat conftest.s >&5
27957 rm -f conftest.o conftest.s
27960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27961 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27962 if test $gcc_cv_as_gnu_unique_object = yes; then
27963 # We need to unquote above to to use the definition from config.gcc.
27964 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27966 if test $glibc_version_major -gt 2 \
27967 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27968 enable_gnu_unique_object=yes
27975 if test x$enable_gnu_unique_object = xyes; then
27977 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27982 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27983 if test "${gcc_cv_as_line_zero+set}" = set; then :
27984 $as_echo_n "(cached) " >&6
27985 else
27986 gcc_cv_as_line_zero=no
27987 if test $in_tree_gas = yes; then
27988 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27989 then gcc_cv_as_line_zero=yes
27991 elif test "x$gcc_cv_as" != x; then
27992 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27993 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27995 (eval $ac_try) 2>&5
27996 ac_status=$?
27997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27998 test $ac_status = 0; }; } &&
27999 test "x`cat conftest.out`" = x
28000 then
28001 gcc_cv_as_line_zero=yes
28002 else
28003 echo "configure: failed program was" >&5
28004 cat conftest.s >&5
28005 echo "configure: error output was" >&5
28006 cat conftest.out >&5
28008 rm -f conftest.o conftest.s conftest.out
28011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28012 $as_echo "$gcc_cv_as_line_zero" >&6; }
28013 if test "x$gcc_cv_as_line_zero" = xyes; then
28015 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28020 $as_echo_n "checking support for thin archives... " >&6; }
28021 thin_archive_support=no
28022 echo 'int main (void) { return 0; }' > conftest.c
28023 if ($AR --version | sed 1q | grep "GNU ar" \
28024 && $CC $CFLAGS -c conftest.c \
28025 && $AR rcT conftest.a conftest.o \
28026 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
28027 thin_archive_support=yes
28029 rm -f conftest.c conftest.o conftest.a conftest
28030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28031 $as_echo "$thin_archive_support" >&6; }
28034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28035 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28036 gcc_cv_ld_eh_frame_hdr=no
28037 if test $in_tree_ld = yes ; then
28038 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 \
28039 && test $in_tree_ld_is_elf = yes; then
28040 gcc_cv_ld_eh_frame_hdr=yes
28042 elif test x$gcc_cv_ld != x; then
28043 if echo "$ld_ver" | grep GNU > /dev/null; then
28044 # Check if linker supports --eh-frame-hdr option
28045 if $gcc_cv_ld --help 2>&1 | grep eh-frame-hdr > /dev/null; then
28046 gcc_cv_ld_eh_frame_hdr=yes
28048 else
28049 case "$target" in
28050 *-*-solaris2*)
28051 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28052 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28053 gcc_cv_ld_eh_frame_hdr=yes
28056 esac
28060 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28062 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28066 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28069 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28070 gcc_cv_ld_eh_frame_ciev3=no
28071 if test $in_tree_ld = yes ; then
28072 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 \
28073 && test $in_tree_ld_is_elf = yes; then
28074 gcc_cv_ld_eh_frame_ciev3=yes
28076 elif test x$gcc_cv_ld != x; then
28077 if echo "$ld_ver" | grep GNU > /dev/null; then
28078 gcc_cv_ld_eh_frame_ciev3=yes
28079 if test 0"$ld_date" -lt 20040513; then
28080 if test -n "$ld_date"; then
28081 # If there was date string, but was earlier than 2004-05-13, fail
28082 gcc_cv_ld_eh_frame_ciev3=no
28083 elif test "$ld_vers_major" -lt 2; then
28084 gcc_cv_ld_eh_frame_ciev3=no
28085 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28086 gcc_cv_ld_eh_frame_ciev3=no
28089 else
28090 case "$target" in
28091 *-*-solaris2*)
28092 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28093 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28094 gcc_cv_ld_eh_frame_ciev3=yes
28097 esac
28101 cat >>confdefs.h <<_ACEOF
28102 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28103 _ACEOF
28105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28106 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28109 $as_echo_n "checking linker position independent executable support... " >&6; }
28110 gcc_cv_ld_pie=no
28111 if test $in_tree_ld = yes ; then
28112 case "$target" in
28113 # Full PIE support on Solaris was only introduced in gld 2.26.
28114 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
28115 *) gcc_gld_pie_min_version=15 ;;
28116 esac
28117 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge "$gcc_gld_pie_min_version" -o "$gcc_cv_gld_major_version" -gt 2 \
28118 && test $in_tree_ld_is_elf = yes; then
28119 gcc_cv_ld_pie=yes
28121 elif test x$gcc_cv_ld != x; then
28122 # Check if linker supports -pie option
28123 if $gcc_cv_ld --help 2>&1 | grep -- -pie > /dev/null; then
28124 gcc_cv_ld_pie=yes
28125 case "$target" in
28126 *-*-solaris2*)
28127 if echo "$ld_ver" | grep GNU > /dev/null \
28128 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28129 gcc_cv_ld_pie=no
28132 esac
28133 else
28134 case "$target" in
28135 *-*-solaris2.1[1-9]*)
28136 # Solaris 11.3 added PIE support.
28137 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28138 gcc_cv_ld_pie=yes
28141 esac
28144 if test x"$gcc_cv_ld_pie" = xyes; then
28146 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28150 $as_echo "$gcc_cv_ld_pie" >&6; }
28152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28153 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28154 gcc_cv_ld_pie_copyreloc=no
28155 if test $gcc_cv_ld_pie = yes ; then
28156 if test $in_tree_ld = yes ; then
28157 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
28158 gcc_cv_ld_pie_copyreloc=yes
28160 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28161 # Check if linker supports -pie option with copy reloc
28162 case "$target" in
28163 i?86-*-linux* | x86_64-*-linux*)
28164 cat > conftest1.s <<EOF
28165 .globl a_glob
28166 .data
28167 .type a_glob, @object
28168 .size a_glob, 4
28169 a_glob:
28170 .long 2
28172 cat > conftest2.s <<EOF
28173 .text
28174 .globl main
28175 .type main, @function
28176 main:
28177 movl %eax, a_glob(%rip)
28178 .size main, .-main
28179 .globl ptr
28180 .section .data.rel,"aw",@progbits
28181 .type ptr, @object
28182 ptr:
28183 .quad a_glob
28185 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28186 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28187 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28188 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28189 gcc_cv_ld_pie_copyreloc=yes
28191 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28193 esac
28197 cat >>confdefs.h <<_ACEOF
28198 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28199 _ACEOF
28201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28202 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28205 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28206 gcc_cv_ld_eh_gc_sections=no
28207 if test $in_tree_ld = yes ; then
28208 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 \
28209 && test $in_tree_ld_is_elf = yes; then
28210 gcc_cv_ld_eh_gc_sections=yes
28212 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28213 cat > conftest.s <<EOF
28214 .section .text
28215 .globl _start
28216 .type _start, @function
28217 _start:
28218 .long foo
28219 .size _start, .-_start
28220 .section .text.foo,"ax",@progbits
28221 .type foo, @function
28222 foo:
28223 .long 0
28224 .size foo, .-foo
28225 .section .gcc_except_table.foo,"a",@progbits
28226 .L0:
28227 .long 0
28228 .section .eh_frame,"a",@progbits
28229 .long .L0
28231 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28232 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28233 | grep "gc-sections option ignored" > /dev/null; then
28234 gcc_cv_ld_eh_gc_sections=no
28235 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28236 | grep gcc_except_table > /dev/null; then
28237 gcc_cv_ld_eh_gc_sections=yes
28238 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28239 if test x$gcc_cv_as_comdat_group != xyes; then
28240 gcc_cv_ld_eh_gc_sections=no
28241 cat > conftest.s <<EOF
28242 .section .text
28243 .globl _start
28244 .type _start, @function
28245 _start:
28246 .long foo
28247 .size _start, .-_start
28248 .section .gnu.linkonce.t.foo,"ax",@progbits
28249 .type foo, @function
28250 foo:
28251 .long 0
28252 .size foo, .-foo
28253 .section .gcc_except_table.foo,"a",@progbits
28254 .L0:
28255 .long 0
28256 .section .eh_frame,"a",@progbits
28257 .long .L0
28259 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28260 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28261 | grep "gc-sections option ignored" > /dev/null; then
28262 gcc_cv_ld_eh_gc_sections=no
28263 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28264 | grep gcc_except_table > /dev/null; then
28265 gcc_cv_ld_eh_gc_sections=yes
28271 rm -f conftest.s conftest.o conftest
28273 case "$target" in
28274 hppa*-*-linux*)
28275 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28276 gcc_cv_ld_eh_gc_sections=no
28278 esac
28279 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28281 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28285 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28288 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28289 gcc_cv_ld_eh_gc_sections_bug=no
28290 if test $in_tree_ld = yes ; then
28291 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 \
28292 && test $in_tree_ld_is_elf = yes; then
28293 gcc_cv_ld_eh_gc_sections_bug=yes
28295 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
28296 gcc_cv_ld_eh_gc_sections_bug=yes
28297 cat > conftest.s <<EOF
28298 .section .text
28299 .globl _start
28300 .type _start, @function
28301 _start:
28302 .long foo
28303 .size _start, .-_start
28304 .section .text.startup.foo,"ax",@progbits
28305 .type foo, @function
28306 foo:
28307 .long 0
28308 .size foo, .-foo
28309 .section .gcc_except_table.foo,"a",@progbits
28310 .L0:
28311 .long 0
28312 .section .eh_frame,"a",@progbits
28313 .long .L0
28315 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28316 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28317 | grep "gc-sections option ignored" > /dev/null; then
28319 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28320 | grep gcc_except_table > /dev/null; then
28321 gcc_cv_ld_eh_gc_sections_bug=no
28324 rm -f conftest.s conftest.o conftest
28326 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28328 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28332 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28335 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28336 # gold/gld support compressed debug sections since binutils 2.19/2.21
28337 # In binutils 2.26, gld gained support for the ELF gABI format.
28338 if test $in_tree_ld = yes ; then
28339 gcc_cv_ld_compress_debug=0
28340 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 \
28341 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28342 gcc_cv_ld_compress_debug=2
28343 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28344 elif test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 26 -o "$gcc_cv_gld_major_version" -gt 2 \
28345 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28346 gcc_cv_ld_compress_debug=3
28347 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28348 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 \
28349 && test $in_tree_ld_is_elf = yes; then
28350 gcc_cv_ld_compress_debug=1
28352 elif echo "$ld_ver" | grep GNU > /dev/null; then
28353 if test "$ld_vers_major" -lt 2 \
28354 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28355 gcc_cv_ld_compress_debug=0
28356 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28357 gcc_cv_ld_compress_debug=1
28358 else
28359 gcc_cv_ld_compress_debug=3
28360 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28362 if test $ld_is_gold = yes; then
28363 gcc_cv_ld_compress_debug=2
28364 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28366 else
28367 case "${target}" in
28368 *-*-solaris2*)
28369 # Introduced in Solaris 11.2.
28370 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28371 gcc_cv_ld_compress_debug=3
28372 gcc_cv_ld_compress_debug_option="-z compress-sections"
28373 else
28374 gcc_cv_ld_compress_debug=0
28378 # Assume linkers other than GNU ld don't support compessed debug
28379 # sections.
28380 gcc_cv_ld_compress_debug=0
28382 esac
28385 cat >>confdefs.h <<_ACEOF
28386 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28387 _ACEOF
28390 cat >>confdefs.h <<_ACEOF
28391 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28392 _ACEOF
28394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28395 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28397 if test x"$ld64_flag" = x"yes"; then
28399 # Set defaults for possibly untestable items.
28400 gcc_cv_ld64_export_dynamic=0
28402 if test "$build" = "$host"; then
28403 darwin_try_test=1
28404 else
28405 darwin_try_test=0
28408 # On Darwin, because of FAT library support, it is often possible to execute
28409 # exes from compatible archs even when the host differs from the build system.
28410 case "$build","$host" in
28411 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
28412 darwin_try_test=1;;
28413 *) ;;
28414 esac
28416 # If the configurer specified a minimum ld64 version to be supported, then use
28417 # that to determine feature support.
28418 if test x"${gcc_cv_ld64_version}" != x; then
28419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28420 $as_echo_n "checking ld64 specified version... " >&6; }
28421 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28423 $as_echo "$gcc_cv_ld64_major" >&6; }
28424 if test "$gcc_cv_ld64_major" -ge 236; then
28425 gcc_cv_ld64_export_dynamic=1
28427 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28428 # If the version was not specified, try to find it.
28429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28430 $as_echo_n "checking linker version... " >&6; }
28431 if test x"${gcc_cv_ld64_version}" = x; then
28432 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28435 $as_echo "$gcc_cv_ld64_version" >&6; }
28437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28438 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28439 gcc_cv_ld64_export_dynamic=1
28440 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
28441 gcc_cv_ld64_export_dynamic=0
28443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28444 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28447 if test x"${gcc_cv_ld64_version}" != x; then
28449 cat >>confdefs.h <<_ACEOF
28450 #define LD64_VERSION "${gcc_cv_ld64_version}"
28451 _ACEOF
28456 cat >>confdefs.h <<_ACEOF
28457 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28458 _ACEOF
28462 # --------
28463 # UNSORTED
28464 # --------
28466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28467 $as_echo_n "checking linker --as-needed support... " >&6; }
28468 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28469 $as_echo_n "(cached) " >&6
28470 else
28471 gcc_cv_ld_as_needed=no
28472 gcc_cv_ld_as_needed_option='--as-needed'
28473 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28474 if test $in_tree_ld = yes ; then
28475 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 \
28476 && test $in_tree_ld_is_elf = yes; then
28477 gcc_cv_ld_as_needed=yes
28478 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
28479 gcc_cv_ld_as_needed_option='--push-state --as-needed'
28480 gcc_cv_ld_no_as_needed_option='--pop-state'
28483 elif test x$gcc_cv_ld != x; then
28484 # Check if linker supports --as-needed and --no-as-needed options
28485 if $gcc_cv_ld --help 2>&1 | grep as-needed > /dev/null; then
28486 gcc_cv_ld_as_needed=yes
28487 if $gcc_cv_ld --help 2>&1 | grep push-state > /dev/null \
28488 && $gcc_cv_ld --help 2>&1 | grep pop-state > /dev/null \
28489 && echo "$ld_ver" | grep GNU > /dev/null \
28490 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
28491 # Use these options only when both ld.bfd and ld.gold support
28492 # --push-state/--pop-state, which unfortunately wasn't added
28493 # at the same time.
28494 gcc_cv_ld_as_needed_option='--push-state --as-needed'
28495 gcc_cv_ld_no_as_needed_option='--pop-state'
28498 case "$target:$gnu_ld" in
28499 *-*-solaris2*:no)
28500 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
28501 # forms.
28502 gcc_cv_ld_as_needed=yes
28503 gcc_cv_ld_as_needed_option="-z ignore"
28504 gcc_cv_ld_no_as_needed_option="-z record"
28506 esac
28508 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28509 # dl_iterate_phdr, i.e. since Solaris 11.
28510 case "$target" in
28511 *-*-solaris2.1[1-9]*)
28512 case "$target" in
28513 i?86-*-* | x86_64-*-*)
28514 if echo "$ld_ver" | grep GNU > /dev/null; then
28515 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28516 gcc_cv_ld_as_needed=no
28519 esac
28521 *-*-solaris2*)
28522 gcc_cv_ld_as_needed=no
28524 esac
28527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28528 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28529 if test x"$gcc_cv_ld_as_needed" = xyes; then
28531 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28534 cat >>confdefs.h <<_ACEOF
28535 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28536 _ACEOF
28539 cat >>confdefs.h <<_ACEOF
28540 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28541 _ACEOF
28545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28546 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28547 saved_LDFLAGS="$LDFLAGS"
28548 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28549 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28551 /* end confdefs.h. */
28552 int main(void) {return 0;}
28553 _ACEOF
28554 if ac_fn_cxx_try_link "$LINENO"; then :
28555 gcc_cv_ld_clearcap=yes; break
28556 else
28557 gcc_cv_ld_clearcap=no
28559 rm -f core conftest.err conftest.$ac_objext \
28560 conftest$ac_exeext conftest.$ac_ext
28561 done
28562 LDFLAGS="$saved_LDFLAGS"
28563 if test "x$gcc_cv_ld_clearcap" = xyes; then
28565 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28567 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28571 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28573 case "$target" in
28574 powerpc*-*-*)
28575 case "$target" in
28576 *le-*-linux*)
28577 emul_name="-melf32lppc"
28580 emul_name="-melf32ppc"
28582 esac
28583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28584 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28585 if test "${gcc_cv_ld_ppc_attr+set}" = set; then :
28586 $as_echo_n "(cached) " >&6
28587 else
28588 gcc_cv_ld_ppc_attr=no
28589 if test x"$ld_is_gold" = xyes; then
28590 gcc_cv_ld_ppc_attr=yes
28591 elif test $in_tree_ld = yes ; then
28592 if test "$gcc_cv_gld_major_version" -eq 2 \
28593 -a "$gcc_cv_gld_minor_version" -ge 28 \
28594 -o "$gcc_cv_gld_major_version" -gt 2; then
28595 gcc_cv_ld_ppc_attr=yes
28597 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28598 # check that merging the long double .gnu_attribute doesn't warn
28599 cat > conftest1.s <<EOF
28600 .gnu_attribute 4,1
28602 cat > conftest2.s <<EOF
28603 .gnu_attribute 4,9
28605 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28606 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28607 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
28608 && test ! -s conftest.err; then
28609 gcc_cv_ld_ppc_attr=yes
28611 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28616 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28617 if test x$gcc_cv_ld_ppc_attr = xyes; then
28619 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28623 esac
28625 case "$target:$tm_file" in
28626 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28627 case "$target" in
28628 *le-*-linux*)
28629 emul_name="-melf64lppc"
28631 *-*-linux*)
28632 emul_name="-melf64ppc"
28634 *-*-freebsd*)
28635 emul_name="-melf64ppc_fbsd"
28637 esac
28638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28639 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28640 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28641 $as_echo_n "(cached) " >&6
28642 else
28643 gcc_cv_ld_no_dot_syms=no
28644 if test x"$ld_is_gold" = xyes; then
28645 gcc_cv_ld_no_dot_syms=yes
28646 elif test $in_tree_ld = yes ; then
28647 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
28648 gcc_cv_ld_no_dot_syms=yes
28650 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28651 cat > conftest1.s <<EOF
28652 .text
28653 bl .foo
28655 cat > conftest2.s <<EOF
28656 .section ".opd","aw"
28657 .align 3
28658 .globl foo
28659 .type foo,@function
28660 foo:
28661 .quad .LEfoo,.TOC.@tocbase,0
28662 .text
28663 .LEfoo:
28665 .size foo,.-.LEfoo
28667 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28668 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28669 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28670 gcc_cv_ld_no_dot_syms=yes
28672 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28677 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28678 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28680 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28685 $as_echo_n "checking linker large toc support... " >&6; }
28686 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28687 $as_echo_n "(cached) " >&6
28688 else
28689 gcc_cv_ld_large_toc=no
28690 if test x"$ld_is_gold" = xyes; then
28691 gcc_cv_ld_large_toc=yes
28692 elif test $in_tree_ld = yes ; then
28693 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
28694 gcc_cv_ld_large_toc=yes
28696 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28697 cat > conftest.s <<EOF
28698 .section ".tbss","awT",@nobits
28699 .align 3
28700 ie0: .space 8
28701 .global _start
28702 .text
28703 _start:
28704 addis 9,13,ie0@got@tprel@ha
28705 ld 9,ie0@got@tprel@l(9)
28707 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28708 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28709 gcc_cv_ld_large_toc=yes
28711 rm -f conftest conftest.o conftest.s
28715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28716 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28717 if test x"$gcc_cv_ld_large_toc" = xyes; then
28719 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28724 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28725 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28726 $as_echo_n "(cached) " >&6
28727 else
28728 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28729 cat > conftest.s <<EOF
28730 .global _start
28731 .text
28732 _start:
28733 addis 9,2,x@got@ha
28734 .section .data.rel.ro,"aw",@progbits
28735 .p2align 16
28736 .space 32768
28737 x: .quad .TOC.
28739 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28740 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28741 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)) }'`
28743 rm -f conftest conftest.o conftest.s
28747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28748 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28749 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28751 cat >>confdefs.h <<_ACEOF
28752 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28753 _ACEOF
28757 esac
28759 case "$target" in
28760 *-*-aix*)
28761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28762 $as_echo_n "checking linker large toc support... " >&6; }
28763 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28764 $as_echo_n "(cached) " >&6
28765 else
28766 gcc_cv_ld_large_toc=no
28767 if test x$gcc_cv_as != x ; then
28768 cat > conftest.s <<EOF
28769 .toc
28770 LC..1:
28771 .tc a[TC],a[RW]
28772 .extern a[RW]
28773 .csect .text[PR]
28774 .largetoctest:
28775 addis 9,LC..1@u(2)
28776 ld 3,LC..1@l(9)
28778 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28779 gcc_cv_ld_large_toc=yes
28781 rm -f conftest conftest.o conftest.s
28785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28786 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28787 if test x"$gcc_cv_ld_large_toc" = xyes; then
28789 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28793 esac
28795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28796 $as_echo_n "checking linker --build-id support... " >&6; }
28797 if test "${gcc_cv_ld_buildid+set}" = set; then :
28798 $as_echo_n "(cached) " >&6
28799 else
28800 gcc_cv_ld_buildid=no
28801 if test $in_tree_ld = yes ; then
28802 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28803 "$gcc_cv_gld_minor_version" -ge 18 -o \
28804 "$gcc_cv_gld_major_version" -gt 2 \
28805 && test $in_tree_ld_is_elf = yes; then
28806 gcc_cv_ld_buildid=yes
28808 elif test x$gcc_cv_ld != x; then
28809 if $gcc_cv_ld --help 2>&1 | grep build-id > /dev/null; then
28810 gcc_cv_ld_buildid=yes
28814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28815 $as_echo "$gcc_cv_ld_buildid" >&6; }
28816 if test x"$gcc_cv_ld_buildid" = xyes; then
28818 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28822 # Check whether --enable-linker-build-id was given.
28823 if test "${enable_linker_build_id+set}" = set; then :
28824 enableval=$enable_linker_build_id;
28825 else
28826 enable_linker_build_id=no
28830 if test x"$enable_linker_build_id" = xyes; then
28831 if test x"$gcc_cv_ld_buildid" = xyes; then
28833 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28835 else
28836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28837 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28841 # In binutils 2.21, GNU ld gained support for new emulations fully
28842 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28844 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28845 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28846 $as_echo_n "(cached) " >&6
28847 else
28848 gcc_cv_ld_sol2_emulation=no
28849 if test $in_tree_ld = yes ; then
28850 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28851 "$gcc_cv_gld_minor_version" -ge 21 -o \
28852 "$gcc_cv_gld_major_version" -gt 2 \
28853 && test $in_tree_ld_is_elf = yes; then
28854 gcc_cv_ld_sol2_emulation=yes
28856 elif test x$gcc_cv_ld != x; then
28857 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28858 grep _sol2 > /dev/null; then
28859 gcc_cv_ld_sol2_emulation=yes
28863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28864 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28865 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28867 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28872 $as_echo_n "checking linker --sysroot support... " >&6; }
28873 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28874 $as_echo_n "(cached) " >&6
28875 else
28876 gcc_cv_ld_sysroot=no
28877 if test $in_tree_ld = yes ; then
28878 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
28879 gcc_cv_ld_sysroot=yes
28881 elif test x$gcc_cv_ld != x; then
28882 if $gcc_cv_ld --help 2>&1 | grep sysroot > /dev/null; then
28883 gcc_cv_ld_sysroot=yes
28887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28888 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28889 if test x"$gcc_cv_ld_sysroot" = xyes; then
28891 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28895 case $target in
28896 *-*-solaris2*)
28897 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28899 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28900 if test "${gcc_cv_solaris_crts+set}" = set; then :
28901 $as_echo_n "(cached) " >&6
28902 else
28903 gcc_cv_solaris_crts=no
28904 if test x$host != x$target; then
28905 if test "x$with_sysroot" = xyes; then
28906 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
28907 else
28908 target_sysroot="${with_sysroot}"
28911 target_libdir="$target_sysroot/usr/lib"
28912 # At the time they were added, gcrt1.o became a symlink for backwards
28913 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28914 case $target in
28915 i?86-*-solaris2* | x86_64-*-solaris2*)
28916 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
28918 sparc*-*-solaris2*)
28919 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
28921 esac
28923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28924 $as_echo "$gcc_cv_solaris_crts" >&6; }
28926 esac
28927 if test x$gcc_cv_solaris_crts = xyes; then
28929 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28933 # Check whether --enable-libssp was given.
28934 if test "${enable_libssp+set}" = set; then :
28935 enableval=$enable_libssp; case "${enableval}" in
28936 yes|no)
28939 as_fn_error "unknown libssp setting $enableval" "$LINENO" 5
28941 esac
28945 # Test for stack protector support in target C library.
28946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28947 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28948 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28949 $as_echo_n "(cached) " >&6
28950 else
28951 gcc_cv_libc_provides_ssp=no
28952 if test "x$enable_libssp" = "xno"; then
28953 gcc_cv_libc_provides_ssp=yes
28954 elif test "x$enable_libssp" = "xyes"; then
28955 gcc_cv_libc_provides_ssp=no
28956 else
28957 case "$target" in
28958 *-*-musl*)
28959 # All versions of musl provide stack protector
28960 gcc_cv_libc_provides_ssp=yes;;
28961 *-*-linux* | *-*-kfreebsd*-gnu)
28962 # glibc 2.4 and later provides __stack_chk_fail and
28963 # either __stack_chk_guard, or TLS access to stack guard canary.
28965 if test $glibc_version_major -gt 2 \
28966 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28967 gcc_cv_libc_provides_ssp=yes
28968 else
28970 if test -f $target_header_dir/features.h \
28971 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28972 $target_header_dir/features.h > /dev/null; then
28973 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28974 $target_header_dir/features.h > /dev/null && \
28975 test -f $target_header_dir/bits/uClibc_config.h && \
28976 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28977 $target_header_dir/bits/uClibc_config.h > /dev/null; then
28978 gcc_cv_libc_provides_ssp=yes
28980 # all versions of Bionic support stack protector
28981 elif test -f $target_header_dir/sys/cdefs.h \
28982 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28983 $target_header_dir/sys/cdefs.h > /dev/null; then
28984 gcc_cv_libc_provides_ssp=yes
28988 *-*-gnu*)
28989 # Avoid complicated tests (see
28990 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28991 # simply assert that glibc does provide this, which is true for all
28992 # realistically usable GNU/Hurd configurations.
28993 # All supported versions of musl provide it as well
28994 gcc_cv_libc_provides_ssp=yes;;
28995 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
28996 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28997 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
28998 gcc_cv_libc_provides_ssp=yes
28999 else
29000 echo "no __stack_chk_fail on this target"
29004 *) gcc_cv_libc_provides_ssp=no ;;
29005 esac
29008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29009 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29011 if test x$gcc_cv_libc_provides_ssp = xyes; then
29013 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29017 # Check whether --enable-default-ssp was given.
29018 # Check whether --enable-default-ssp was given.
29019 if test "${enable_default_ssp+set}" = set; then :
29020 enableval=$enable_default_ssp;
29021 if test x$gcc_cv_libc_provides_ssp = xyes; then
29022 case "$target" in
29023 ia64*-*-*) enable_default_ssp=no ;;
29024 *) enable_default_ssp=$enableval ;;
29025 esac
29026 else
29027 enable_default_ssp=no
29029 else
29030 enable_default_ssp=no
29033 if test x$enable_default_ssp = xyes ; then
29035 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29040 # Test for <sys/sdt.h> on the target.
29042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29043 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29044 have_sys_sdt_h=no
29045 if test -f $target_header_dir/sys/sdt.h; then
29046 have_sys_sdt_h=yes
29048 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29052 $as_echo "$have_sys_sdt_h" >&6; }
29054 # Check if TFmode long double should be used by default or not.
29055 # Some glibc targets used DFmode long double, but with glibc 2.4
29056 # and later they can use TFmode.
29057 case "$target" in
29058 powerpc*-*-linux* | \
29059 sparc*-*-linux* | \
29060 s390*-*-linux* | \
29061 alpha*-*-linux*)
29063 # Check whether --with-long-double-128 was given.
29064 if test "${with_long_double_128+set}" = set; then :
29065 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
29066 else
29068 if test $glibc_version_major -gt 2 \
29069 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29070 gcc_cv_target_ldbl128=yes
29071 else
29073 gcc_cv_target_ldbl128=no
29074 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29075 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
29076 && gcc_cv_target_ldbl128=yes
29082 esac
29083 if test x$gcc_cv_target_ldbl128 = xyes; then
29085 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29089 # Check if TFmode long double target should use the IBM extended double or IEEE
29090 # 128-bit floating point formats if long doubles are 128-bits long. The long
29091 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29092 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29093 # libgcc.
29095 # Check whether --with-long-double-format was given.
29096 if test "${with_long_double_format+set}" = set; then :
29097 withval=$with_long_double_format;
29098 case "$target:$with_long_double_format" in
29099 powerpc64le-*-linux*:ieee | powerpc64le-*-linux*:ibm)
29102 powerpc64-*-linux*:ieee | powerpc64-*-linux*:ibm)
29103 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29104 case "$with_cpu" in
29105 power7 | power8 | power9 | power1*)
29109 as_fn_error "Configuration option --with-long-double-format is only \
29110 supported if the default cpu is power7 or newer" "$LINENO" 5
29111 with_long_double_format=""
29113 esac
29115 xpowerpc64*-*-linux*:*)
29116 as_fn_error "--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29117 with_long_double_format=""
29120 as_fn_error "Configure option --with-long-double-format is only supported \
29121 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29122 with_long_double_format=""
29124 esac
29128 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29129 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29130 gcc_cv_libc_provides_hwcap_in_tcb=no
29131 case "$target" in
29132 powerpc*-*-linux*)
29134 if test $glibc_version_major -gt 2 \
29135 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29136 gcc_cv_libc_provides_hwcap_in_tcb=yes
29139 esac
29140 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29142 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29147 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29148 gcc_cv_target_dl_iterate_phdr=unknown
29149 case "$target" in
29150 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
29151 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29152 # libdl there, both complicating its use and breaking compatibility
29153 # between Solaris 10 updates.
29154 *-*-solaris2.1[1-9]*)
29155 # <link.h> needs both a dl_iterate_phdr declaration and support for
29156 # compilation with largefile support.
29157 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29158 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29159 gcc_cv_target_dl_iterate_phdr=yes
29160 else
29161 gcc_cv_target_dl_iterate_phdr=no
29164 *-*-dragonfly* | *-*-freebsd*)
29165 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29166 gcc_cv_target_dl_iterate_phdr=yes
29167 else
29168 gcc_cv_target_dl_iterate_phdr=no
29171 *-linux-musl*)
29172 gcc_cv_target_dl_iterate_phdr=yes
29174 esac
29176 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29178 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29182 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29184 # We no longer support different GC mechanisms. Emit an error if
29185 # the user configures with --with-gc.
29187 # Check whether --with-gc was given.
29188 if test "${with_gc+set}" = set; then :
29189 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29193 # Libraries to use on the host. This will normally be set by the top
29194 # level Makefile. Here we simply capture the value for our Makefile.
29195 if test -z "${HOST_LIBS+set}"; then
29196 HOST_LIBS=
29200 # Use the system's zlib library.
29202 # Use the system's zlib library.
29203 zlibdir="-L\$(top_builddir)/../zlib"
29204 zlibinc="-I\$(top_srcdir)/../zlib"
29206 # Check whether --with-system-zlib was given.
29207 if test "${with_system_zlib+set}" = set; then :
29208 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29209 zlibdir=
29210 zlibinc=
29220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29221 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29222 # Check whether --enable-maintainer-mode was given.
29223 if test "${enable_maintainer_mode+set}" = set; then :
29224 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29225 else
29226 maintainer_mode=no
29230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29231 $as_echo "$maintainer_mode" >&6; }
29233 if test "$maintainer_mode" = "yes"; then
29234 MAINT=''
29235 else
29236 MAINT='#'
29240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29241 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29242 # Check whether --enable-link-mutex was given.
29243 if test "${enable_link_mutex+set}" = set; then :
29244 enableval=$enable_link_mutex; do_link_mutex=$enableval
29245 else
29246 do_link_mutex=no
29249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29250 $as_echo "$do_link_mutex" >&6; }
29252 if test "$do_link_mutex" = "yes"; then
29253 DO_LINK_MUTEX=true
29254 else
29255 DO_LINK_MUTEX=false
29259 # --------------
29260 # Language hooks
29261 # --------------
29263 # Make empty files to contain the specs and options for each language.
29264 # Then add #include lines to for a compiler that has specs and/or options.
29266 subdirs=
29267 lang_opt_files=
29268 lang_specs_files=
29269 lang_tree_files=
29270 # These (without "all_") are set in each config-lang.in.
29271 # `language' must be a single word so is spelled singularly.
29272 all_languages=
29273 all_compilers=
29274 all_outputs='Makefile'
29275 # List of language makefile fragments.
29276 all_lang_makefrags=
29277 # Additional files for gengtype
29278 all_gtfiles="$target_gtfiles"
29280 # These are the languages that are set in --enable-languages,
29281 # and are available in the GCC tree.
29282 all_selected_languages=
29284 # Add the language fragments.
29285 # Languages are added via two mechanisms. Some information must be
29286 # recorded in makefile variables, these are defined in config-lang.in.
29287 # We accumulate them and plug them into the main Makefile.
29288 # The other mechanism is a set of hooks for each of the main targets
29289 # like `clean', `install', etc.
29291 language_hooks="Make-hooks"
29293 for lang in ${srcdir}/*/config-lang.in
29295 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29297 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29298 if test "x$lang_alias" = x
29299 then
29300 echo "$lang doesn't set \$language." 1>&2
29301 exit 1
29303 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29304 subdirs="$subdirs $subdir"
29306 # $gcc_subdir is where the gcc integration files are to be found
29307 # for a language, both for internal compiler purposes (compiler
29308 # sources implementing front-end to GCC tree converters), and for
29309 # build infrastructure purposes (Make-lang.in, etc.)
29311 # This will be <subdir> (relative to $srcdir) if a line like
29312 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29313 # is found in <langdir>/config-lang.in, and will remain <langdir>
29314 # otherwise.
29316 # Except for the language alias (fetched above), the regular
29317 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29318 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29319 # only this and the language alias.
29321 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29322 if [ "$gcc_subdir" = "" ]; then
29323 gcc_subdir="$subdir"
29326 case ",$enable_languages," in
29327 *,$lang_alias,*)
29328 all_selected_languages="$all_selected_languages $lang_alias"
29329 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
29330 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29333 esac
29335 language=
29336 boot_language=
29337 compilers=
29338 outputs=
29339 gtfiles=
29340 subdir_requires=
29341 . ${srcdir}/$gcc_subdir/config-lang.in
29342 if test "x$language" = x
29343 then
29344 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29345 exit 1
29348 ok=:
29349 case ",$enable_languages," in
29350 *,$lang_alias,*) ;;
29352 for i in $subdir_requires; do
29353 test -f "${srcdir}/$i/config-lang.in" && continue
29354 ok=false
29355 break
29356 done
29358 esac
29359 $ok || continue
29361 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29362 if test -f $srcdir/$gcc_subdir/lang.opt; then
29363 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29364 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29366 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
29367 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29369 all_languages="$all_languages $language"
29370 all_compilers="$all_compilers $compilers"
29371 all_outputs="$all_outputs $outputs"
29372 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
29373 case ",$enable_languages," in
29374 *,lto,*)
29376 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29378 enable_lto=yes
29381 *) ;;
29382 esac
29383 done
29385 check_languages=
29386 for language in $all_selected_languages
29388 check_languages="$check_languages check-$language"
29389 done
29391 selftest_languages=
29392 for language in $all_selected_languages
29394 selftest_languages="$selftest_languages selftest-$language"
29395 done
29397 # We link each language in with a set of hooks, reached indirectly via
29398 # lang.${target}. Only do so for selected languages.
29400 rm -f Make-hooks
29401 touch Make-hooks
29402 target_list="all.cross start.encap rest.encap tags \
29403 install-common install-man install-info install-pdf install-html dvi \
29404 pdf html uninstall info man srcextra srcman srcinfo \
29405 mostlyclean clean distclean maintainer-clean install-plugin"
29407 for t in $target_list
29410 for lang in $all_selected_languages
29412 x="$x $lang.$t"
29413 done
29414 echo "lang.$t: $x" >> Make-hooks
29415 done
29417 # --------
29418 # Option include files
29419 # --------
29421 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29422 option_includes="option-includes.mk"
29425 # --------
29426 # UNSORTED
29427 # --------
29429 # Create .gdbinit.
29431 echo "dir ." > .gdbinit
29432 echo "dir ${srcdir}" >> .gdbinit
29433 if test x$gdb_needs_out_file_path = xyes
29434 then
29435 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29437 if test "x$subdirs" != x; then
29438 for s in $subdirs
29440 echo "dir ${srcdir}/$s" >> .gdbinit
29441 done
29443 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29444 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29446 # Put a breakpoint on __asan_report_error to help with debugging buffer
29447 # overflow.
29448 case "$CFLAGS" in
29449 *-fsanitize=address*)
29450 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29452 esac
29454 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29458 # Find a directory in which to install a shared libgcc.
29460 # Check whether --enable-version-specific-runtime-libs was given.
29461 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29462 enableval=$enable_version_specific_runtime_libs;
29466 # Substitute configuration variables
29533 # Echo link setup.
29534 if test x${build} = x${host} ; then
29535 if test x${host} = x${target} ; then
29536 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29537 else
29538 echo "Links are now set up to build a cross-compiler" 1>&2
29539 echo " from ${host} to ${target}." 1>&2
29541 else
29542 if test x${host} = x${target} ; then
29543 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29544 echo " for ${target}." 1>&2
29545 else
29546 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29547 echo " from ${host} to ${target}." 1>&2
29556 if test "x${ISLLIBS}" != "x" ; then
29558 $as_echo "#define HAVE_isl 1" >>confdefs.h
29562 # Check for plugin support
29563 # Check whether --enable-plugin was given.
29564 if test "${enable_plugin+set}" = set; then :
29565 enableval=$enable_plugin; enable_plugin=$enableval
29566 else
29567 enable_plugin=yes; default_plugin=yes
29571 pluginlibs=
29572 plugin_check=yes
29574 case "${host}" in
29575 *-*-mingw*)
29576 # Since plugin support under MinGW is not as straightforward as on
29577 # other platforms (e.g., we have to link import library, etc), we
29578 # only enable it if explicitly requested.
29579 if test x"$default_plugin" = x"yes"; then
29580 enable_plugin=no
29581 elif test x"$enable_plugin" = x"yes"; then
29582 # Use make's target variable to derive import library name.
29583 pluginlibs='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
29584 plugin_check=no
29587 *-*-darwin*)
29588 if test x$build = x$host; then
29589 export_sym_check="nm${exeext} -g"
29590 elif test x$host = x$target; then
29591 export_sym_check="$gcc_cv_nm -g"
29592 else
29593 export_sym_check=
29597 if test x$build = x$host; then
29598 export_sym_check="objdump${exeext} -T"
29599 elif test x$host = x$target; then
29600 export_sym_check="$gcc_cv_objdump -T"
29601 else
29602 export_sym_check=
29605 esac
29607 if test x"$enable_plugin" = x"yes" -a x"$plugin_check" = x"yes"; then
29609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29610 $as_echo_n "checking for exported symbols... " >&6; }
29611 if test "x$export_sym_check" != x; then
29612 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29613 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29614 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29615 : # No need to use a flag
29616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29617 $as_echo "yes" >&6; }
29618 else
29619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29620 $as_echo "yes" >&6; }
29621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29622 $as_echo_n "checking for -rdynamic... " >&6; }
29623 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29624 if $export_sym_check conftest$ac_exeext | grep foobar > /dev/null; then
29625 plugin_rdynamic=yes
29626 pluginlibs="-rdynamic"
29627 else
29628 plugin_rdynamic=no
29629 enable_plugin=no
29631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29632 $as_echo "$plugin_rdynamic" >&6; }
29634 else
29635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29636 $as_echo "unable to check" >&6; }
29639 # Check -ldl
29640 saved_LIBS="$LIBS"
29641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29642 $as_echo_n "checking for library containing dlopen... " >&6; }
29643 if test "${ac_cv_search_dlopen+set}" = set; then :
29644 $as_echo_n "(cached) " >&6
29645 else
29646 ac_func_search_save_LIBS=$LIBS
29647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29648 /* end confdefs.h. */
29650 /* Override any GCC internal prototype to avoid an error.
29651 Use char because int might match the return type of a GCC
29652 builtin and then its argument prototype would still apply. */
29653 #ifdef __cplusplus
29654 extern "C"
29655 #endif
29656 char dlopen ();
29658 main ()
29660 return dlopen ();
29662 return 0;
29664 _ACEOF
29665 for ac_lib in '' dl; do
29666 if test -z "$ac_lib"; then
29667 ac_res="none required"
29668 else
29669 ac_res=-l$ac_lib
29670 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29672 if ac_fn_cxx_try_link "$LINENO"; then :
29673 ac_cv_search_dlopen=$ac_res
29675 rm -f core conftest.err conftest.$ac_objext \
29676 conftest$ac_exeext
29677 if test "${ac_cv_search_dlopen+set}" = set; then :
29678 break
29680 done
29681 if test "${ac_cv_search_dlopen+set}" = set; then :
29683 else
29684 ac_cv_search_dlopen=no
29686 rm conftest.$ac_ext
29687 LIBS=$ac_func_search_save_LIBS
29689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29690 $as_echo "$ac_cv_search_dlopen" >&6; }
29691 ac_res=$ac_cv_search_dlopen
29692 if test "$ac_res" != no; then :
29693 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29697 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29698 pluginlibs="$pluginlibs -ldl"
29700 LIBS="$saved_LIBS"
29702 # Check that we can build shared objects with -fPIC -shared
29703 saved_LDFLAGS="$LDFLAGS"
29704 saved_CFLAGS="$CFLAGS"
29705 case "${host}" in
29706 *-*-darwin*)
29707 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29708 CFLAGS="$CFLAGS -fPIC"
29709 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29712 CFLAGS="$CFLAGS -fPIC"
29713 LDFLAGS="$LDFLAGS -fPIC -shared"
29715 esac
29716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29717 $as_echo_n "checking for -fPIC -shared... " >&6; }
29718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29719 /* end confdefs.h. */
29720 extern int X;
29722 main ()
29724 return X == 0;
29726 return 0;
29728 _ACEOF
29729 if ac_fn_cxx_try_link "$LINENO"; then :
29730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29731 $as_echo "yes" >&6; }; have_pic_shared=yes
29732 else
29733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29734 $as_echo "no" >&6; }; have_pic_shared=no
29736 rm -f core conftest.err conftest.$ac_objext \
29737 conftest$ac_exeext conftest.$ac_ext
29738 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29739 pluginlibs=
29740 enable_plugin=no
29742 LDFLAGS="$saved_LDFLAGS"
29743 CFLAGS="$saved_CFLAGS"
29745 # If plugin support had been requested but not available, fail.
29746 if test x"$enable_plugin" = x"no" ; then
29747 if test x"$default_plugin" != x"yes"; then
29748 as_fn_error "
29749 Building GCC with plugin support requires a host that supports
29750 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29757 if test x"$enable_plugin" = x"yes"; then
29759 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29764 # Enable --enable-host-shared
29765 # Check whether --enable-host-shared was given.
29766 if test "${enable_host_shared+set}" = set; then :
29767 enableval=$enable_host_shared; PICFLAG=-fPIC
29768 else
29769 PICFLAG=
29776 # Check whether --enable-libquadmath-support was given.
29777 if test "${enable_libquadmath_support+set}" = set; then :
29778 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29779 else
29780 ENABLE_LIBQUADMATH_SUPPORT=yes
29783 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29785 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29790 # Specify what hash style to use by default.
29792 # Check whether --with-linker-hash-style was given.
29793 if test "${with_linker_hash_style+set}" = set; then :
29794 withval=$with_linker_hash_style; case x"$withval" in
29795 xsysv)
29796 LINKER_HASH_STYLE=sysv
29798 xgnu)
29799 LINKER_HASH_STYLE=gnu
29801 xboth)
29802 LINKER_HASH_STYLE=both
29805 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29807 esac
29808 else
29809 LINKER_HASH_STYLE=''
29812 if test x"${LINKER_HASH_STYLE}" != x; then
29814 cat >>confdefs.h <<_ACEOF
29815 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29816 _ACEOF
29820 # Specify what should be the default of -fdiagnostics-color option.
29822 # Check whether --with-diagnostics-color was given.
29823 if test "${with_diagnostics_color+set}" = set; then :
29824 withval=$with_diagnostics_color; case x"$withval" in
29825 xnever)
29826 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29828 xauto)
29829 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29831 xauto-if-env)
29832 DIAGNOSTICS_COLOR_DEFAULT=-1
29834 xalways)
29835 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29838 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29840 esac
29841 else
29842 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29846 cat >>confdefs.h <<_ACEOF
29847 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29848 _ACEOF
29851 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29852 # of jit/jit-playback.c.
29853 gcc_driver_version=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
29854 echo "gcc_driver_version: ${gcc_driver_version}"
29855 cat > gcc-driver-name.h <<EOF
29856 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
29859 # Check whether --enable-default-pie was given.
29860 # Check whether --enable-default-pie was given.
29861 if test "${enable_default_pie+set}" = set; then :
29862 enableval=$enable_default_pie; enable_default_pie=$enableval
29863 else
29864 enable_default_pie=no
29867 if test x$enable_default_pie = xyes ; then
29869 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29874 # Check if -fno-PIE works.
29875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29876 $as_echo_n "checking for -fno-PIE option... " >&6; }
29877 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29878 $as_echo_n "(cached) " >&6
29879 else
29880 saved_CXXFLAGS="$CXXFLAGS"
29881 CXXFLAGS="$CXXFLAGS -fno-PIE"
29882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29883 /* end confdefs.h. */
29884 int main(void) {return 0;}
29885 _ACEOF
29886 if ac_fn_cxx_try_compile "$LINENO"; then :
29887 gcc_cv_c_no_fpie=yes
29888 else
29889 gcc_cv_c_no_fpie=no
29891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29892 CXXFLAGS="$saved_CXXFLAGS"
29894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29895 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29896 if test "$gcc_cv_c_no_fpie" = "yes"; then
29897 NO_PIE_CFLAGS="-fno-PIE"
29901 # Check if -no-pie works.
29902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29903 $as_echo_n "checking for -no-pie option... " >&6; }
29904 if test "${gcc_cv_no_pie+set}" = set; then :
29905 $as_echo_n "(cached) " >&6
29906 else
29907 saved_LDFLAGS="$LDFLAGS"
29908 LDFLAGS="$LDFLAGS -no-pie"
29909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29910 /* end confdefs.h. */
29911 int main(void) {return 0;}
29912 _ACEOF
29913 if ac_fn_cxx_try_link "$LINENO"; then :
29914 gcc_cv_no_pie=yes
29915 else
29916 gcc_cv_no_pie=no
29918 rm -f core conftest.err conftest.$ac_objext \
29919 conftest$ac_exeext conftest.$ac_ext
29920 LDFLAGS="$saved_LDFLAGS"
29922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29923 $as_echo "$gcc_cv_no_pie" >&6; }
29924 if test "$gcc_cv_no_pie" = "yes"; then
29925 NO_PIE_FLAG="-no-pie"
29929 # Check linker supports '-z bndplt'
29930 ld_bndplt_support=no
29931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29932 $as_echo_n "checking linker -z bndplt option... " >&6; }
29933 if test x"$ld_is_gold" = xno; then
29934 if test $in_tree_ld = yes ; then
29935 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
29936 ld_bndplt_support=yes
29938 elif test x$gcc_cv_ld != x; then
29939 # Check if linker supports -a bndplt option
29940 if $gcc_cv_ld --help 2>&1 | grep -- '-z bndplt' > /dev/null; then
29941 ld_bndplt_support=yes
29945 if test x"$ld_bndplt_support" = xyes; then
29947 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29951 $as_echo "$ld_bndplt_support" >&6; }
29953 # Check linker supports '--push-state'/'--pop-state'
29954 ld_pushpopstate_support=no
29955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
29956 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
29957 if test x"$ld_is_gold" = xno; then
29958 if test $in_tree_ld = yes ; then
29959 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
29960 ld_pushpopstate_support=yes
29962 elif test x$gcc_cv_ld != x; then
29963 # Check if linker supports --push-state/--pop-state options
29964 if $gcc_cv_ld --help 2>&1 | grep -- '--push-state' > /dev/null; then
29965 ld_pushpopstate_support=yes
29969 if test x"$ld_pushpopstate_support" = xyes; then
29971 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
29974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
29975 $as_echo "$ld_pushpopstate_support" >&6; }
29977 # Configure the subdirectories
29978 # AC_CONFIG_SUBDIRS($subdirs)
29980 # Create the Makefile
29981 # and configure language subdirectories
29982 ac_config_files="$ac_config_files $all_outputs"
29985 ac_config_commands="$ac_config_commands default"
29987 cat >confcache <<\_ACEOF
29988 # This file is a shell script that caches the results of configure
29989 # tests run on this system so they can be shared between configure
29990 # scripts and configure runs, see configure's option --config-cache.
29991 # It is not useful on other systems. If it contains results you don't
29992 # want to keep, you may remove or edit it.
29994 # config.status only pays attention to the cache file if you give it
29995 # the --recheck option to rerun configure.
29997 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29998 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29999 # following values.
30001 _ACEOF
30003 # The following way of writing the cache mishandles newlines in values,
30004 # but we know of no workaround that is simple, portable, and efficient.
30005 # So, we kill variables containing newlines.
30006 # Ultrix sh set writes to stderr and can't be redirected directly,
30007 # and sets the high bit in the cache file unless we assign to the vars.
30009 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30010 eval ac_val=\$$ac_var
30011 case $ac_val in #(
30012 *${as_nl}*)
30013 case $ac_var in #(
30014 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30015 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30016 esac
30017 case $ac_var in #(
30018 _ | IFS | as_nl) ;; #(
30019 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30020 *) { eval $ac_var=; unset $ac_var;} ;;
30021 esac ;;
30022 esac
30023 done
30025 (set) 2>&1 |
30026 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30027 *${as_nl}ac_space=\ *)
30028 # `set' does not quote correctly, so add quotes: double-quote
30029 # substitution turns \\\\ into \\, and sed turns \\ into \.
30030 sed -n \
30031 "s/'/'\\\\''/g;
30032 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30033 ;; #(
30035 # `set' quotes correctly as required by POSIX, so do not add quotes.
30036 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30038 esac |
30039 sort
30041 sed '
30042 /^ac_cv_env_/b end
30043 t clear
30044 :clear
30045 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30046 t end
30047 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30048 :end' >>confcache
30049 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30050 if test -w "$cache_file"; then
30051 test "x$cache_file" != "x/dev/null" &&
30052 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30053 $as_echo "$as_me: updating cache $cache_file" >&6;}
30054 cat confcache >$cache_file
30055 else
30056 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30057 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30060 rm -f confcache
30062 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30063 # Let make expand exec_prefix.
30064 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30066 DEFS=-DHAVE_CONFIG_H
30068 ac_libobjs=
30069 ac_ltlibobjs=
30070 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30071 # 1. Remove the extension, and $U if already installed.
30072 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30073 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30074 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30075 # will be set to the directory where LIBOBJS objects are built.
30076 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30077 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30078 done
30079 LIBOBJS=$ac_libobjs
30081 LTLIBOBJS=$ac_ltlibobjs
30086 : ${CONFIG_STATUS=./config.status}
30087 ac_write_fail=0
30088 ac_clean_files_save=$ac_clean_files
30089 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30090 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30091 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30092 as_write_fail=0
30093 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30094 #! $SHELL
30095 # Generated by $as_me.
30096 # Run this file to recreate the current configuration.
30097 # Compiler output produced by configure, useful for debugging
30098 # configure, is in config.log if it exists.
30100 debug=false
30101 ac_cs_recheck=false
30102 ac_cs_silent=false
30104 SHELL=\${CONFIG_SHELL-$SHELL}
30105 export SHELL
30106 _ASEOF
30107 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30108 ## -------------------- ##
30109 ## M4sh Initialization. ##
30110 ## -------------------- ##
30112 # Be more Bourne compatible
30113 DUALCASE=1; export DUALCASE # for MKS sh
30114 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30115 emulate sh
30116 NULLCMD=:
30117 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30118 # is contrary to our usage. Disable this feature.
30119 alias -g '${1+"$@"}'='"$@"'
30120 setopt NO_GLOB_SUBST
30121 else
30122 case `(set -o) 2>/dev/null` in #(
30123 *posix*) :
30124 set -o posix ;; #(
30125 *) :
30127 esac
30131 as_nl='
30133 export as_nl
30134 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30135 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30136 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30137 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30138 # Prefer a ksh shell builtin over an external printf program on Solaris,
30139 # but without wasting forks for bash or zsh.
30140 if test -z "$BASH_VERSION$ZSH_VERSION" \
30141 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30142 as_echo='print -r --'
30143 as_echo_n='print -rn --'
30144 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30145 as_echo='printf %s\n'
30146 as_echo_n='printf %s'
30147 else
30148 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30149 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30150 as_echo_n='/usr/ucb/echo -n'
30151 else
30152 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30153 as_echo_n_body='eval
30154 arg=$1;
30155 case $arg in #(
30156 *"$as_nl"*)
30157 expr "X$arg" : "X\\(.*\\)$as_nl";
30158 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30159 esac;
30160 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30162 export as_echo_n_body
30163 as_echo_n='sh -c $as_echo_n_body as_echo'
30165 export as_echo_body
30166 as_echo='sh -c $as_echo_body as_echo'
30169 # The user is always right.
30170 if test "${PATH_SEPARATOR+set}" != set; then
30171 PATH_SEPARATOR=:
30172 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30173 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30174 PATH_SEPARATOR=';'
30179 # IFS
30180 # We need space, tab and new line, in precisely that order. Quoting is
30181 # there to prevent editors from complaining about space-tab.
30182 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30183 # splitting by setting IFS to empty value.)
30184 IFS=" "" $as_nl"
30186 # Find who we are. Look in the path if we contain no directory separator.
30187 case $0 in #((
30188 *[\\/]* ) as_myself=$0 ;;
30189 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30190 for as_dir in $PATH
30192 IFS=$as_save_IFS
30193 test -z "$as_dir" && as_dir=.
30194 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30195 done
30196 IFS=$as_save_IFS
30199 esac
30200 # We did not find ourselves, most probably we were run as `sh COMMAND'
30201 # in which case we are not to be found in the path.
30202 if test "x$as_myself" = x; then
30203 as_myself=$0
30205 if test ! -f "$as_myself"; then
30206 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30207 exit 1
30210 # Unset variables that we do not need and which cause bugs (e.g. in
30211 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30212 # suppresses any "Segmentation fault" message there. '((' could
30213 # trigger a bug in pdksh 5.2.14.
30214 for as_var in BASH_ENV ENV MAIL MAILPATH
30215 do eval test x\${$as_var+set} = xset \
30216 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30217 done
30218 PS1='$ '
30219 PS2='> '
30220 PS4='+ '
30222 # NLS nuisances.
30223 LC_ALL=C
30224 export LC_ALL
30225 LANGUAGE=C
30226 export LANGUAGE
30228 # CDPATH.
30229 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30232 # as_fn_error ERROR [LINENO LOG_FD]
30233 # ---------------------------------
30234 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30235 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30236 # script with status $?, using 1 if that was 0.
30237 as_fn_error ()
30239 as_status=$?; test $as_status -eq 0 && as_status=1
30240 if test "$3"; then
30241 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30242 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30244 $as_echo "$as_me: error: $1" >&2
30245 as_fn_exit $as_status
30246 } # as_fn_error
30249 # as_fn_set_status STATUS
30250 # -----------------------
30251 # Set $? to STATUS, without forking.
30252 as_fn_set_status ()
30254 return $1
30255 } # as_fn_set_status
30257 # as_fn_exit STATUS
30258 # -----------------
30259 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30260 as_fn_exit ()
30262 set +e
30263 as_fn_set_status $1
30264 exit $1
30265 } # as_fn_exit
30267 # as_fn_unset VAR
30268 # ---------------
30269 # Portably unset VAR.
30270 as_fn_unset ()
30272 { eval $1=; unset $1;}
30274 as_unset=as_fn_unset
30275 # as_fn_append VAR VALUE
30276 # ----------------------
30277 # Append the text in VALUE to the end of the definition contained in VAR. Take
30278 # advantage of any shell optimizations that allow amortized linear growth over
30279 # repeated appends, instead of the typical quadratic growth present in naive
30280 # implementations.
30281 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30282 eval 'as_fn_append ()
30284 eval $1+=\$2
30286 else
30287 as_fn_append ()
30289 eval $1=\$$1\$2
30291 fi # as_fn_append
30293 # as_fn_arith ARG...
30294 # ------------------
30295 # Perform arithmetic evaluation on the ARGs, and store the result in the
30296 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30297 # must be portable across $(()) and expr.
30298 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30299 eval 'as_fn_arith ()
30301 as_val=$(( $* ))
30303 else
30304 as_fn_arith ()
30306 as_val=`expr "$@" || test $? -eq 1`
30308 fi # as_fn_arith
30311 if expr a : '\(a\)' >/dev/null 2>&1 &&
30312 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30313 as_expr=expr
30314 else
30315 as_expr=false
30318 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30319 as_basename=basename
30320 else
30321 as_basename=false
30324 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30325 as_dirname=dirname
30326 else
30327 as_dirname=false
30330 as_me=`$as_basename -- "$0" ||
30331 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30332 X"$0" : 'X\(//\)$' \| \
30333 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30334 $as_echo X/"$0" |
30335 sed '/^.*\/\([^/][^/]*\)\/*$/{
30336 s//\1/
30339 /^X\/\(\/\/\)$/{
30340 s//\1/
30343 /^X\/\(\/\).*/{
30344 s//\1/
30347 s/.*/./; q'`
30349 # Avoid depending upon Character Ranges.
30350 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30351 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30352 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30353 as_cr_digits='0123456789'
30354 as_cr_alnum=$as_cr_Letters$as_cr_digits
30356 ECHO_C= ECHO_N= ECHO_T=
30357 case `echo -n x` in #(((((
30358 -n*)
30359 case `echo 'xy\c'` in
30360 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30361 xy) ECHO_C='\c';;
30362 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30363 ECHO_T=' ';;
30364 esac;;
30366 ECHO_N='-n';;
30367 esac
30369 rm -f conf$$ conf$$.exe conf$$.file
30370 if test -d conf$$.dir; then
30371 rm -f conf$$.dir/conf$$.file
30372 else
30373 rm -f conf$$.dir
30374 mkdir conf$$.dir 2>/dev/null
30376 if (echo >conf$$.file) 2>/dev/null; then
30377 if ln -s conf$$.file conf$$ 2>/dev/null; then
30378 as_ln_s='ln -s'
30379 # ... but there are two gotchas:
30380 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30381 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30382 # In both cases, we have to default to `cp -p'.
30383 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30384 as_ln_s='cp -p'
30385 elif ln conf$$.file conf$$ 2>/dev/null; then
30386 as_ln_s=ln
30387 else
30388 as_ln_s='cp -p'
30390 else
30391 as_ln_s='cp -p'
30393 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30394 rmdir conf$$.dir 2>/dev/null
30397 # as_fn_mkdir_p
30398 # -------------
30399 # Create "$as_dir" as a directory, including parents if necessary.
30400 as_fn_mkdir_p ()
30403 case $as_dir in #(
30404 -*) as_dir=./$as_dir;;
30405 esac
30406 test -d "$as_dir" || eval $as_mkdir_p || {
30407 as_dirs=
30408 while :; do
30409 case $as_dir in #(
30410 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30411 *) as_qdir=$as_dir;;
30412 esac
30413 as_dirs="'$as_qdir' $as_dirs"
30414 as_dir=`$as_dirname -- "$as_dir" ||
30415 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30416 X"$as_dir" : 'X\(//\)[^/]' \| \
30417 X"$as_dir" : 'X\(//\)$' \| \
30418 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30419 $as_echo X"$as_dir" |
30420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30421 s//\1/
30424 /^X\(\/\/\)[^/].*/{
30425 s//\1/
30428 /^X\(\/\/\)$/{
30429 s//\1/
30432 /^X\(\/\).*/{
30433 s//\1/
30436 s/.*/./; q'`
30437 test -d "$as_dir" && break
30438 done
30439 test -z "$as_dirs" || eval "mkdir $as_dirs"
30440 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30443 } # as_fn_mkdir_p
30444 if mkdir -p . 2>/dev/null; then
30445 as_mkdir_p='mkdir -p "$as_dir"'
30446 else
30447 test -d ./-p && rmdir ./-p
30448 as_mkdir_p=false
30451 if test -x / >/dev/null 2>&1; then
30452 as_test_x='test -x'
30453 else
30454 if ls -dL / >/dev/null 2>&1; then
30455 as_ls_L_option=L
30456 else
30457 as_ls_L_option=
30459 as_test_x='
30460 eval sh -c '\''
30461 if test -d "$1"; then
30462 test -d "$1/.";
30463 else
30464 case $1 in #(
30465 -*)set "./$1";;
30466 esac;
30467 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30468 ???[sx]*):;;*)false;;esac;fi
30469 '\'' sh
30472 as_executable_p=$as_test_x
30474 # Sed expression to map a string onto a valid CPP name.
30475 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30477 # Sed expression to map a string onto a valid variable name.
30478 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30481 exec 6>&1
30482 ## ----------------------------------- ##
30483 ## Main body of $CONFIG_STATUS script. ##
30484 ## ----------------------------------- ##
30485 _ASEOF
30486 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30489 # Save the log message, to keep $0 and so on meaningful, and to
30490 # report actual input values of CONFIG_FILES etc. instead of their
30491 # values after options handling.
30492 ac_log="
30493 This file was extended by $as_me, which was
30494 generated by GNU Autoconf 2.64. Invocation command line was
30496 CONFIG_FILES = $CONFIG_FILES
30497 CONFIG_HEADERS = $CONFIG_HEADERS
30498 CONFIG_LINKS = $CONFIG_LINKS
30499 CONFIG_COMMANDS = $CONFIG_COMMANDS
30500 $ $0 $@
30502 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30505 _ACEOF
30507 case $ac_config_files in *"
30508 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30509 esac
30511 case $ac_config_headers in *"
30512 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30513 esac
30516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30517 # Files that config.status was made for.
30518 config_files="$ac_config_files"
30519 config_headers="$ac_config_headers"
30520 config_links="$ac_config_links"
30521 config_commands="$ac_config_commands"
30523 _ACEOF
30525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30526 ac_cs_usage="\
30527 \`$as_me' instantiates files and other configuration actions
30528 from templates according to the current configuration. Unless the files
30529 and actions are specified as TAGs, all are instantiated by default.
30531 Usage: $0 [OPTION]... [TAG]...
30533 -h, --help print this help, then exit
30534 -V, --version print version number and configuration settings, then exit
30535 -q, --quiet, --silent
30536 do not print progress messages
30537 -d, --debug don't remove temporary files
30538 --recheck update $as_me by reconfiguring in the same conditions
30539 --file=FILE[:TEMPLATE]
30540 instantiate the configuration file FILE
30541 --header=FILE[:TEMPLATE]
30542 instantiate the configuration header FILE
30544 Configuration files:
30545 $config_files
30547 Configuration headers:
30548 $config_headers
30550 Configuration links:
30551 $config_links
30553 Configuration commands:
30554 $config_commands
30556 Report bugs to the package provider."
30558 _ACEOF
30559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30560 ac_cs_version="\\
30561 config.status
30562 configured by $0, generated by GNU Autoconf 2.64,
30563 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30565 Copyright (C) 2009 Free Software Foundation, Inc.
30566 This config.status script is free software; the Free Software Foundation
30567 gives unlimited permission to copy, distribute and modify it."
30569 ac_pwd='$ac_pwd'
30570 srcdir='$srcdir'
30571 AWK='$AWK'
30572 test -n "\$AWK" || AWK=awk
30573 _ACEOF
30575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30576 # The default lists apply if the user does not specify any file.
30577 ac_need_defaults=:
30578 while test $# != 0
30580 case $1 in
30581 --*=*)
30582 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30583 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30584 ac_shift=:
30587 ac_option=$1
30588 ac_optarg=$2
30589 ac_shift=shift
30591 esac
30593 case $ac_option in
30594 # Handling of the options.
30595 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30596 ac_cs_recheck=: ;;
30597 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30598 $as_echo "$ac_cs_version"; exit ;;
30599 --debug | --debu | --deb | --de | --d | -d )
30600 debug=: ;;
30601 --file | --fil | --fi | --f )
30602 $ac_shift
30603 case $ac_optarg in
30604 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30605 esac
30606 as_fn_append CONFIG_FILES " '$ac_optarg'"
30607 ac_need_defaults=false;;
30608 --header | --heade | --head | --hea )
30609 $ac_shift
30610 case $ac_optarg in
30611 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30612 esac
30613 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30614 ac_need_defaults=false;;
30615 --he | --h)
30616 # Conflict between --help and --header
30617 as_fn_error "ambiguous option: \`$1'
30618 Try \`$0 --help' for more information.";;
30619 --help | --hel | -h )
30620 $as_echo "$ac_cs_usage"; exit ;;
30621 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30622 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30623 ac_cs_silent=: ;;
30625 # This is an error.
30626 -*) as_fn_error "unrecognized option: \`$1'
30627 Try \`$0 --help' for more information." ;;
30629 *) as_fn_append ac_config_targets " $1"
30630 ac_need_defaults=false ;;
30632 esac
30633 shift
30634 done
30636 ac_configure_extra_args=
30638 if $ac_cs_silent; then
30639 exec 6>/dev/null
30640 ac_configure_extra_args="$ac_configure_extra_args --silent"
30643 _ACEOF
30644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30645 if \$ac_cs_recheck; then
30646 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30647 shift
30648 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30649 CONFIG_SHELL='$SHELL'
30650 export CONFIG_SHELL
30651 exec "\$@"
30654 _ACEOF
30655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30656 exec 5>>config.log
30658 echo
30659 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30660 ## Running $as_me. ##
30661 _ASBOX
30662 $as_echo "$ac_log"
30663 } >&5
30665 _ACEOF
30666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30668 # INIT-COMMANDS
30670 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30671 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30672 subdirs='$subdirs'
30674 _ACEOF
30676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30678 # Handling of arguments.
30679 for ac_config_target in $ac_config_targets
30681 case $ac_config_target in
30682 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30683 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30684 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30685 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30686 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30687 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30688 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30689 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30690 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30692 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30693 esac
30694 done
30697 # If the user did not use the arguments to specify the items to instantiate,
30698 # then the envvar interface is used. Set only those that are not.
30699 # We use the long form for the default assignment because of an extremely
30700 # bizarre bug on SunOS 4.1.3.
30701 if $ac_need_defaults; then
30702 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30703 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30704 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30705 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30708 # Have a temporary directory for convenience. Make it in the build tree
30709 # simply because there is no reason against having it here, and in addition,
30710 # creating and moving files from /tmp can sometimes cause problems.
30711 # Hook for its removal unless debugging.
30712 # Note that there is a small window in which the directory will not be cleaned:
30713 # after its creation but before its name has been assigned to `$tmp'.
30714 $debug ||
30716 tmp=
30717 trap 'exit_status=$?
30718 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30720 trap 'as_fn_exit 1' 1 2 13 15
30722 # Create a (secure) tmp directory for tmp files.
30725 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30726 test -n "$tmp" && test -d "$tmp"
30727 } ||
30729 tmp=./conf$$-$RANDOM
30730 (umask 077 && mkdir "$tmp")
30731 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30733 # Set up the scripts for CONFIG_FILES section.
30734 # No need to generate them if there are no CONFIG_FILES.
30735 # This happens for instance with `./config.status config.h'.
30736 if test -n "$CONFIG_FILES"; then
30738 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30739 ac_cs_awk_getline=:
30740 ac_cs_awk_pipe_init=
30741 ac_cs_awk_read_file='
30742 while ((getline aline < (F[key])) > 0)
30743 print(aline)
30744 close(F[key])'
30745 ac_cs_awk_pipe_fini=
30746 else
30747 ac_cs_awk_getline=false
30748 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30749 ac_cs_awk_read_file='
30750 print "|#_!!_#|"
30751 print "cat " F[key] " &&"
30752 '$ac_cs_awk_pipe_init
30753 # The final `:' finishes the AND list.
30754 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30756 ac_cr=`echo X | tr X '\015'`
30757 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30758 # But we know of no other shell where ac_cr would be empty at this
30759 # point, so we can use a bashism as a fallback.
30760 if test "x$ac_cr" = x; then
30761 eval ac_cr=\$\'\\r\'
30763 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30764 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30765 ac_cs_awk_cr='\r'
30766 else
30767 ac_cs_awk_cr=$ac_cr
30770 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30771 _ACEOF
30773 # Create commands to substitute file output variables.
30775 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30776 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30777 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30778 echo "_ACAWK" &&
30779 echo "_ACEOF"
30780 } >conf$$files.sh &&
30781 . ./conf$$files.sh ||
30782 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30783 rm -f conf$$files.sh
30786 echo "cat >conf$$subs.awk <<_ACEOF" &&
30787 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30788 echo "_ACEOF"
30789 } >conf$$subs.sh ||
30790 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30791 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30792 ac_delim='%!_!# '
30793 for ac_last_try in false false false false false :; do
30794 . ./conf$$subs.sh ||
30795 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30797 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30798 if test $ac_delim_n = $ac_delim_num; then
30799 break
30800 elif $ac_last_try; then
30801 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30802 else
30803 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30805 done
30806 rm -f conf$$subs.sh
30808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30809 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30810 _ACEOF
30811 sed -n '
30813 s/^/S["/; s/!.*/"]=/
30816 s/^[^!]*!//
30817 :repl
30818 t repl
30819 s/'"$ac_delim"'$//
30820 t delim
30823 s/\(.\{148\}\).*/\1/
30824 t more1
30825 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30828 b repl
30829 :more1
30830 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30833 s/.\{148\}//
30834 t nl
30835 :delim
30837 s/\(.\{148\}\).*/\1/
30838 t more2
30839 s/["\\]/\\&/g; s/^/"/; s/$/"/
30842 :more2
30843 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30846 s/.\{148\}//
30847 t delim
30848 ' <conf$$subs.awk | sed '
30849 /^[^""]/{
30851 s/\n//
30853 ' >>$CONFIG_STATUS || ac_write_fail=1
30854 rm -f conf$$subs.awk
30855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30856 _ACAWK
30857 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30858 for (key in S) S_is_set[key] = 1
30859 FS = "\a"
30860 \$ac_cs_awk_pipe_init
30863 line = $ 0
30864 nfields = split(line, field, "@")
30865 substed = 0
30866 len = length(field[1])
30867 for (i = 2; i < nfields; i++) {
30868 key = field[i]
30869 keylen = length(key)
30870 if (S_is_set[key]) {
30871 value = S[key]
30872 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30873 len += length(value) + length(field[++i])
30874 substed = 1
30875 } else
30876 len += 1 + keylen
30878 if (nfields == 3 && !substed) {
30879 key = field[2]
30880 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30881 \$ac_cs_awk_read_file
30882 next
30885 print line
30887 \$ac_cs_awk_pipe_fini
30888 _ACAWK
30889 _ACEOF
30890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30891 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30892 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30893 else
30895 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30896 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30897 _ACEOF
30899 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30900 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30901 # trailing colons and then remove the whole line if VPATH becomes empty
30902 # (actually we leave an empty line to preserve line numbers).
30903 if test "x$srcdir" = x.; then
30904 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30905 s/:*\$(srcdir):*/:/
30906 s/:*\${srcdir}:*/:/
30907 s/:*@srcdir@:*/:/
30908 s/^\([^=]*=[ ]*\):*/\1/
30909 s/:*$//
30910 s/^[^=]*=[ ]*$//
30914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30915 fi # test -n "$CONFIG_FILES"
30917 # Set up the scripts for CONFIG_HEADERS section.
30918 # No need to generate them if there are no CONFIG_HEADERS.
30919 # This happens for instance with `./config.status Makefile'.
30920 if test -n "$CONFIG_HEADERS"; then
30921 cat >"$tmp/defines.awk" <<\_ACAWK ||
30922 BEGIN {
30923 _ACEOF
30925 # Transform confdefs.h into an awk script `defines.awk', embedded as
30926 # here-document in config.status, that substitutes the proper values into
30927 # config.h.in to produce config.h.
30929 # Create a delimiter string that does not exist in confdefs.h, to ease
30930 # handling of long lines.
30931 ac_delim='%!_!# '
30932 for ac_last_try in false false :; do
30933 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30934 if test -z "$ac_t"; then
30935 break
30936 elif $ac_last_try; then
30937 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30938 else
30939 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30941 done
30943 # For the awk script, D is an array of macro values keyed by name,
30944 # likewise P contains macro parameters if any. Preserve backslash
30945 # newline sequences.
30947 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30948 sed -n '
30949 s/.\{148\}/&'"$ac_delim"'/g
30950 t rset
30951 :rset
30952 s/^[ ]*#[ ]*define[ ][ ]*/ /
30953 t def
30955 :def
30956 s/\\$//
30957 t bsnl
30958 s/["\\]/\\&/g
30959 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30960 D["\1"]=" \3"/p
30961 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30963 :bsnl
30964 s/["\\]/\\&/g
30965 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30966 D["\1"]=" \3\\\\\\n"\\/p
30967 t cont
30968 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30969 t cont
30971 :cont
30973 s/.\{148\}/&'"$ac_delim"'/g
30974 t clear
30975 :clear
30976 s/\\$//
30977 t bsnlc
30978 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30980 :bsnlc
30981 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30982 b cont
30983 ' <confdefs.h | sed '
30984 s/'"$ac_delim"'/"\\\
30985 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30988 for (key in D) D_is_set[key] = 1
30989 FS = "\a"
30991 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30992 line = \$ 0
30993 split(line, arg, " ")
30994 if (arg[1] == "#") {
30995 defundef = arg[2]
30996 mac1 = arg[3]
30997 } else {
30998 defundef = substr(arg[1], 2)
30999 mac1 = arg[2]
31001 split(mac1, mac2, "(") #)
31002 macro = mac2[1]
31003 prefix = substr(line, 1, index(line, defundef) - 1)
31004 if (D_is_set[macro]) {
31005 # Preserve the white space surrounding the "#".
31006 print prefix "define", macro P[macro] D[macro]
31007 next
31008 } else {
31009 # Replace #undef with comments. This is necessary, for example,
31010 # in the case of _POSIX_SOURCE, which is predefined and required
31011 # on some systems where configure will not decide to define it.
31012 if (defundef == "undef") {
31013 print "/*", prefix defundef, macro, "*/"
31014 next
31018 { print }
31019 _ACAWK
31020 _ACEOF
31021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31022 as_fn_error "could not setup config headers machinery" "$LINENO" 5
31023 fi # test -n "$CONFIG_HEADERS"
31026 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31027 shift
31028 for ac_tag
31030 case $ac_tag in
31031 :[FHLC]) ac_mode=$ac_tag; continue;;
31032 esac
31033 case $ac_mode$ac_tag in
31034 :[FHL]*:*);;
31035 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
31036 :[FH]-) ac_tag=-:-;;
31037 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31038 esac
31039 ac_save_IFS=$IFS
31040 IFS=:
31041 set x $ac_tag
31042 IFS=$ac_save_IFS
31043 shift
31044 ac_file=$1
31045 shift
31047 case $ac_mode in
31048 :L) ac_source=$1;;
31049 :[FH])
31050 ac_file_inputs=
31051 for ac_f
31053 case $ac_f in
31054 -) ac_f="$tmp/stdin";;
31055 *) # Look for the file first in the build tree, then in the source tree
31056 # (if the path is not absolute). The absolute path cannot be DOS-style,
31057 # because $ac_f cannot contain `:'.
31058 test -f "$ac_f" ||
31059 case $ac_f in
31060 [\\/$]*) false;;
31061 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31062 esac ||
31063 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31064 esac
31065 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31066 as_fn_append ac_file_inputs " '$ac_f'"
31067 done
31069 # Let's still pretend it is `configure' which instantiates (i.e., don't
31070 # use $as_me), people would be surprised to read:
31071 # /* config.h. Generated by config.status. */
31072 configure_input='Generated from '`
31073 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31074 `' by configure.'
31075 if test x"$ac_file" != x-; then
31076 configure_input="$ac_file. $configure_input"
31077 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31078 $as_echo "$as_me: creating $ac_file" >&6;}
31080 # Neutralize special characters interpreted by sed in replacement strings.
31081 case $configure_input in #(
31082 *\&* | *\|* | *\\* )
31083 ac_sed_conf_input=`$as_echo "$configure_input" |
31084 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31085 *) ac_sed_conf_input=$configure_input;;
31086 esac
31088 case $ac_tag in
31089 *:-:* | *:-) cat >"$tmp/stdin" \
31090 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
31091 esac
31093 esac
31095 ac_dir=`$as_dirname -- "$ac_file" ||
31096 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31097 X"$ac_file" : 'X\(//\)[^/]' \| \
31098 X"$ac_file" : 'X\(//\)$' \| \
31099 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31100 $as_echo X"$ac_file" |
31101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31102 s//\1/
31105 /^X\(\/\/\)[^/].*/{
31106 s//\1/
31109 /^X\(\/\/\)$/{
31110 s//\1/
31113 /^X\(\/\).*/{
31114 s//\1/
31117 s/.*/./; q'`
31118 as_dir="$ac_dir"; as_fn_mkdir_p
31119 ac_builddir=.
31121 case "$ac_dir" in
31122 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31124 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31125 # A ".." for each directory in $ac_dir_suffix.
31126 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31127 case $ac_top_builddir_sub in
31128 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31129 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31130 esac ;;
31131 esac
31132 ac_abs_top_builddir=$ac_pwd
31133 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31134 # for backward compatibility:
31135 ac_top_builddir=$ac_top_build_prefix
31137 case $srcdir in
31138 .) # We are building in place.
31139 ac_srcdir=.
31140 ac_top_srcdir=$ac_top_builddir_sub
31141 ac_abs_top_srcdir=$ac_pwd ;;
31142 [\\/]* | ?:[\\/]* ) # Absolute name.
31143 ac_srcdir=$srcdir$ac_dir_suffix;
31144 ac_top_srcdir=$srcdir
31145 ac_abs_top_srcdir=$srcdir ;;
31146 *) # Relative name.
31147 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31148 ac_top_srcdir=$ac_top_build_prefix$srcdir
31149 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31150 esac
31151 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31154 case $ac_mode in
31157 # CONFIG_FILE
31160 _ACEOF
31162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31163 # If the template does not know about datarootdir, expand it.
31164 # FIXME: This hack should be removed a few years after 2.60.
31165 ac_datarootdir_hack=; ac_datarootdir_seen=
31166 ac_sed_dataroot='
31167 /datarootdir/ {
31171 /@datadir@/p
31172 /@docdir@/p
31173 /@infodir@/p
31174 /@localedir@/p
31175 /@mandir@/p'
31176 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31177 *datarootdir*) ac_datarootdir_seen=yes;;
31178 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31180 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31181 _ACEOF
31182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31183 ac_datarootdir_hack='
31184 s&@datadir@&$datadir&g
31185 s&@docdir@&$docdir&g
31186 s&@infodir@&$infodir&g
31187 s&@localedir@&$localedir&g
31188 s&@mandir@&$mandir&g
31189 s&\\\${datarootdir}&$datarootdir&g' ;;
31190 esac
31191 _ACEOF
31193 # Neutralize VPATH when `$srcdir' = `.'.
31194 # Shell code in configure.ac might set extrasub.
31195 # FIXME: do we really want to maintain this feature?
31196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31197 ac_sed_extra="$ac_vpsub
31198 $extrasub
31199 _ACEOF
31200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31202 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31203 s|@configure_input@|$ac_sed_conf_input|;t t
31204 s&@top_builddir@&$ac_top_builddir_sub&;t t
31205 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31206 s&@srcdir@&$ac_srcdir&;t t
31207 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31208 s&@top_srcdir@&$ac_top_srcdir&;t t
31209 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31210 s&@builddir@&$ac_builddir&;t t
31211 s&@abs_builddir@&$ac_abs_builddir&;t t
31212 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31213 $ac_datarootdir_hack
31215 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31216 if $ac_cs_awk_getline; then
31217 $AWK -f "$tmp/subs.awk"
31218 else
31219 $AWK -f "$tmp/subs.awk" | $SHELL
31220 fi >$tmp/out \
31221 || as_fn_error "could not create $ac_file" "$LINENO" 5
31223 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31224 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31225 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31227 which seems to be undefined. Please make sure it is defined." >&5
31228 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31229 which seems to be undefined. Please make sure it is defined." >&2;}
31231 rm -f "$tmp/stdin"
31232 case $ac_file in
31233 -) cat "$tmp/out" && rm -f "$tmp/out";;
31234 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31235 esac \
31236 || as_fn_error "could not create $ac_file" "$LINENO" 5
31240 # CONFIG_HEADER
31242 if test x"$ac_file" != x-; then
31244 $as_echo "/* $configure_input */" \
31245 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31246 } >"$tmp/config.h" \
31247 || as_fn_error "could not create $ac_file" "$LINENO" 5
31248 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31249 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31250 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31251 else
31252 rm -f "$ac_file"
31253 mv "$tmp/config.h" "$ac_file" \
31254 || as_fn_error "could not create $ac_file" "$LINENO" 5
31256 else
31257 $as_echo "/* $configure_input */" \
31258 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31259 || as_fn_error "could not create -" "$LINENO" 5
31264 # CONFIG_LINK
31267 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31269 else
31270 # Prefer the file from the source tree if names are identical.
31271 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31272 ac_source=$srcdir/$ac_source
31275 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31276 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31278 if test ! -r "$ac_source"; then
31279 as_fn_error "$ac_source: file not found" "$LINENO" 5
31281 rm -f "$ac_file"
31283 # Try a relative symlink, then a hard link, then a copy.
31284 case $srcdir in
31285 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31286 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31287 esac
31288 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31289 ln "$ac_source" "$ac_file" 2>/dev/null ||
31290 cp -p "$ac_source" "$ac_file" ||
31291 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31294 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31295 $as_echo "$as_me: executing $ac_file commands" >&6;}
31297 esac
31300 case $ac_file$ac_mode in
31301 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31302 "gccdepdir":C)
31303 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31304 for lang in $subdirs c-family common
31306 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31307 done ;;
31308 "as":F) chmod +x as ;;
31309 "collect-ld":F) chmod +x collect-ld ;;
31310 "nm":F) chmod +x nm ;;
31311 "default":C)
31312 case ${CONFIG_HEADERS} in
31313 *auto-host.h:config.in*)
31314 echo > cstamp-h ;;
31315 esac
31316 # Make sure all the subdirs exist.
31317 for d in $subdirs doc build common c-family
31319 test -d $d || mkdir $d
31320 done
31323 esac
31324 done # for ac_tag
31327 as_fn_exit 0
31328 _ACEOF
31329 ac_clean_files=$ac_clean_files_save
31331 test $ac_write_fail = 0 ||
31332 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31335 # configure is writing to config.log, and then calls config.status.
31336 # config.status does its own redirection, appending to config.log.
31337 # Unfortunately, on DOS this fails, as config.log is still kept open
31338 # by configure, so config.status won't be able to write to it; its
31339 # output is simply discarded. So we exec the FD to /dev/null,
31340 # effectively closing config.log, so it can be properly (re)opened and
31341 # appended to by config.status. When coming back to configure, we
31342 # need to make the FD available again.
31343 if test "$no_create" != yes; then
31344 ac_cs_success=:
31345 ac_config_status_args=
31346 test "$silent" = yes &&
31347 ac_config_status_args="$ac_config_status_args --quiet"
31348 exec 5>/dev/null
31349 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31350 exec 5>>config.log
31351 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31352 # would make configure fail if this is the last instruction.
31353 $ac_cs_success || as_fn_exit $?
31355 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31357 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}