Update ChangeLog and version files for release
[official-gcc.git] / gcc / configure
blobea73b151a4e1797983665a7f5437136dc8dcb46e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 NO_PIE_FLAG
604 NO_PIE_CFLAGS
605 enable_default_pie
606 PICFLAG
607 enable_host_shared
608 enable_plugin
609 pluginlibs
610 ISLINC
611 ISLLIBS
612 GMPINC
613 GMPLIBS
614 target_cpu_default
615 fortran_target_objs
616 cxx_target_objs
617 c_target_objs
618 use_gcc_stdint
619 xm_defines
620 xm_include_list
621 xm_file_list
622 tm_p_include_list
623 tm_p_file_list
624 tm_defines
625 tm_include_list
626 tm_file_list
627 common_out_object_file
628 common_out_file
629 out_object_file
630 out_file
631 objc_boehm_gc
632 md_file
633 local_prefix
634 lang_tree_files
635 lang_specs_files
636 lang_opt_files
637 install
638 out_host_hook_obj
639 host_xm_defines
640 host_xm_include_list
641 host_xm_file_list
642 host_exeext
643 gcc_gxx_include_dir_add_sysroot
644 gcc_gxx_include_dir
645 gcc_config_arguments
646 float_h_file
647 extra_programs
648 extra_objs
649 extra_headers_list
650 user_headers_inc_next_post
651 user_headers_inc_next_pre
652 extra_gcc_objs
653 TM_MULTILIB_EXCEPTIONS_CONFIG
654 TM_MULTILIB_CONFIG
655 TM_ENDIAN_CONFIG
656 tmake_file
657 xmake_file
658 cpp_install_dir
659 check_languages
660 build_file_translate
661 build_xm_defines
662 build_xm_include_list
663 build_xm_file_list
664 build_install_headers_dir
665 build_exeext
666 all_selected_languages
667 all_languages
668 all_lang_makefrags
669 all_gtfiles
670 all_compilers
671 srcdir
672 subdirs
673 dollar
674 gcc_tooldir
675 enable_lto
676 DO_LINK_MUTEX
677 MAINT
678 zlibinc
679 zlibdir
680 HOST_LIBS
681 enable_default_ssp
682 thin_archive_support
683 libgcc_visibility
684 gcc_cv_readelf
685 gcc_cv_objdump
686 ORIGINAL_NM_FOR_TARGET
687 gcc_cv_nm
688 ORIGINAL_LD_GOLD_FOR_TARGET
689 ORIGINAL_LD_BFD_FOR_TARGET
690 ORIGINAL_LD_FOR_TARGET
691 ORIGINAL_PLUGIN_LD_FOR_TARGET
692 gcc_cv_ld
693 ORIGINAL_AS_FOR_TARGET
694 gcc_cv_as
695 enable_fast_install
696 objdir
697 OTOOL64
698 OTOOL
699 LIPO
700 NMEDIT
701 DSYMUTIL
702 STRIP
703 OBJDUMP
704 ac_ct_DUMPBIN
705 DUMPBIN
707 FGREP
709 LIBTOOL
710 collect2
711 NO_PIE_FLAG_FOR_BUILD
712 NO_PIE_CFLAGS_FOR_BUILD
713 BUILD_NO_PIE_FLAG
714 BUILD_NO_PIE_CFLAGS
715 STMP_FIXINC
716 BUILD_LDFLAGS
717 BUILD_CXXFLAGS
718 BUILD_CFLAGS
719 CXX_FOR_BUILD
720 CC_FOR_BUILD
721 inhibit_libc
722 SYSTEM_HEADER_DIR
724 CROSS
725 CATOBJEXT
726 GENCAT
727 INSTOBJEXT
728 DATADIRNAME
729 CATALOGS
730 POSUB
731 GMSGFMT
732 XGETTEXT
733 INCINTL
734 LIBINTL_DEP
735 LIBINTL
736 USE_NLS
737 get_gcc_base_ver
738 extra_opt_files
739 extra_modes_file
740 NATIVE_SYSTEM_HEADER_DIR
741 objext
742 manext
743 LIBICONV_DEP
744 LTLIBICONV
745 LIBICONV
746 LDEXP_LIB
747 EXTRA_GCC_LIBS
748 GNAT_LIBEXC
749 COLLECT2_LIBS
750 CXXDEPMODE
751 DEPDIR
752 am__leading_dot
753 doc_build_sys
756 BISON
757 FLEX
758 GENERATED_MANPAGES
759 BUILD_INFO
760 MAKEINFO
761 have_mktemp_command
762 make_compare_target
763 INSTALL_DATA
764 INSTALL_PROGRAM
765 INSTALL
766 ranlib_flags
767 RANLIB
769 LN_S
771 SET_MAKE
772 accel_dir_suffix
773 real_target_noncanonical
774 enable_as_accelerator
775 REPORT_BUGS_TEXI
776 REPORT_BUGS_TO
777 PKGVERSION
778 CONFIGURE_SPECS
779 enable_shared
780 enable_fixed_point
781 enable_decimal_float
782 with_float
783 with_cpu
784 enable_multiarch
785 enable_multilib
786 coverage_flags
787 valgrind_command
788 valgrind_path_defines
789 valgrind_path
790 TREECHECKING
791 nocommon_flag
792 noexception_flags
793 warn_cxxflags
794 warn_cflags
795 c_strict_warn
796 strict_warn
797 c_loose_warn
798 loose_warn
799 aliasing_flags
801 EGREP
802 GREP
803 CXXCPP
804 PICFLAG_FOR_TARGET
805 GNATMAKE
806 GNATBIND
807 ac_ct_CXX
808 CXXFLAGS
810 OBJEXT
811 EXEEXT
812 ac_ct_CC
813 CPPFLAGS
814 LDFLAGS
815 CFLAGS
817 GENINSRC
818 CROSS_SYSTEM_HEADER_DIR
819 TARGET_SYSTEM_ROOT_DEFINE
820 TARGET_SYSTEM_ROOT
821 SYSROOT_CFLAGS_FOR_TARGET
822 target_subdir
823 host_subdir
824 build_subdir
825 build_libsubdir
826 target_noncanonical
827 host_noncanonical
828 target_os
829 target_vendor
830 target_cpu
831 target
832 host_os
833 host_vendor
834 host_cpu
835 host
836 build_os
837 build_vendor
838 build_cpu
839 build
840 target_alias
841 host_alias
842 build_alias
843 LIBS
844 ECHO_T
845 ECHO_N
846 ECHO_C
847 DEFS
848 mandir
849 localedir
850 libdir
851 psdir
852 pdfdir
853 dvidir
854 htmldir
855 infodir
856 docdir
857 oldincludedir
858 includedir
859 localstatedir
860 sharedstatedir
861 sysconfdir
862 datadir
863 datarootdir
864 libexecdir
865 sbindir
866 bindir
867 program_transform_name
868 prefix
869 exec_prefix
870 PACKAGE_URL
871 PACKAGE_BUGREPORT
872 PACKAGE_STRING
873 PACKAGE_VERSION
874 PACKAGE_TARNAME
875 PACKAGE_NAME
876 PATH_SEPARATOR
877 SHELL'
878 ac_subst_files='option_includes
879 language_hooks'
880 ac_user_opts='
881 enable_option_checking
882 with_build_libsubdir
883 with_local_prefix
884 with_native_system_header_dir
885 with_build_sysroot
886 with_sysroot
887 with_gxx_include_dir
888 with_cpp_install_dir
889 enable_generated_files_in_srcdir
890 with_gnu_ld
891 with_ld
892 with_demangler_in_ld
893 with_gnu_as
894 with_as
895 enable_largefile
896 enable_build_format_warnings
897 enable_werror_always
898 enable_checking
899 enable_coverage
900 enable_gather_detailed_mem_stats
901 enable_valgrind_annotations
902 with_stabs
903 enable_multilib
904 enable_multiarch
905 enable___cxa_atexit
906 enable_decimal_float
907 enable_fixed_point
908 enable_threads
909 enable_tls
910 enable_vtable_verify
911 enable_objc_gc
912 with_dwarf2
913 enable_shared
914 with_specs
915 with_pkgversion
916 with_bugurl
917 enable_languages
918 with_multilib_list
919 enable_rpath
920 with_libiconv_prefix
921 enable_sjlj_exceptions
922 with_gcc_major_version_only
923 enable_secureplt
924 enable_leading_mingw64_underscores
925 enable_cld
926 enable_frame_pointer
927 enable_win32_registry
928 enable_static
929 with_pic
930 enable_fast_install
931 enable_libtool_lock
932 enable_ld
933 enable_gold
934 with_plugin_ld
935 enable_gnu_indirect_function
936 enable_initfini_array
937 enable_comdat
938 enable_fix_cortex_a53_835769
939 enable_fix_cortex_a53_843419
940 with_glibc_version
941 enable_gnu_unique_object
942 enable_linker_build_id
943 enable_default_ssp
944 with_long_double_128
945 with_gc
946 with_system_zlib
947 enable_maintainer_mode
948 enable_link_mutex
949 enable_version_specific_runtime_libs
950 enable_plugin
951 enable_host_shared
952 enable_libquadmath_support
953 with_linker_hash_style
954 with_diagnostics_color
955 enable_default_pie
957 ac_precious_vars='build_alias
958 host_alias
959 target_alias
961 CFLAGS
962 LDFLAGS
963 LIBS
964 CPPFLAGS
966 CXXFLAGS
968 CXXCPP
970 GMPLIBS
971 GMPINC
972 ISLLIBS
973 ISLINC'
976 # Initialize some variables set by options.
977 ac_init_help=
978 ac_init_version=false
979 ac_unrecognized_opts=
980 ac_unrecognized_sep=
981 # The variables have the same names as the options, with
982 # dashes changed to underlines.
983 cache_file=/dev/null
984 exec_prefix=NONE
985 no_create=
986 no_recursion=
987 prefix=NONE
988 program_prefix=NONE
989 program_suffix=NONE
990 program_transform_name=s,x,x,
991 silent=
992 site=
993 srcdir=
994 verbose=
995 x_includes=NONE
996 x_libraries=NONE
998 # Installation directory options.
999 # These are left unexpanded so users can "make install exec_prefix=/foo"
1000 # and all the variables that are supposed to be based on exec_prefix
1001 # by default will actually change.
1002 # Use braces instead of parens because sh, perl, etc. also accept them.
1003 # (The list follows the same order as the GNU Coding Standards.)
1004 bindir='${exec_prefix}/bin'
1005 sbindir='${exec_prefix}/sbin'
1006 libexecdir='${exec_prefix}/libexec'
1007 datarootdir='${prefix}/share'
1008 datadir='${datarootdir}'
1009 sysconfdir='${prefix}/etc'
1010 sharedstatedir='${prefix}/com'
1011 localstatedir='${prefix}/var'
1012 includedir='${prefix}/include'
1013 oldincludedir='/usr/include'
1014 docdir='${datarootdir}/doc/${PACKAGE}'
1015 infodir='${datarootdir}/info'
1016 htmldir='${docdir}'
1017 dvidir='${docdir}'
1018 pdfdir='${docdir}'
1019 psdir='${docdir}'
1020 libdir='${exec_prefix}/lib'
1021 localedir='${datarootdir}/locale'
1022 mandir='${datarootdir}/man'
1024 ac_prev=
1025 ac_dashdash=
1026 for ac_option
1028 # If the previous option needs an argument, assign it.
1029 if test -n "$ac_prev"; then
1030 eval $ac_prev=\$ac_option
1031 ac_prev=
1032 continue
1035 case $ac_option in
1036 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1037 *) ac_optarg=yes ;;
1038 esac
1040 # Accept the important Cygnus configure options, so we can diagnose typos.
1042 case $ac_dashdash$ac_option in
1044 ac_dashdash=yes ;;
1046 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1047 ac_prev=bindir ;;
1048 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1049 bindir=$ac_optarg ;;
1051 -build | --build | --buil | --bui | --bu)
1052 ac_prev=build_alias ;;
1053 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1054 build_alias=$ac_optarg ;;
1056 -cache-file | --cache-file | --cache-fil | --cache-fi \
1057 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1058 ac_prev=cache_file ;;
1059 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1060 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1061 cache_file=$ac_optarg ;;
1063 --config-cache | -C)
1064 cache_file=config.cache ;;
1066 -datadir | --datadir | --datadi | --datad)
1067 ac_prev=datadir ;;
1068 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1069 datadir=$ac_optarg ;;
1071 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1072 | --dataroo | --dataro | --datar)
1073 ac_prev=datarootdir ;;
1074 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1075 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1076 datarootdir=$ac_optarg ;;
1078 -disable-* | --disable-*)
1079 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 as_fn_error "invalid feature name: $ac_useropt"
1083 ac_useropt_orig=$ac_useropt
1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1087 "enable_$ac_useropt"
1088 "*) ;;
1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1090 ac_unrecognized_sep=', ';;
1091 esac
1092 eval enable_$ac_useropt=no ;;
1094 -docdir | --docdir | --docdi | --doc | --do)
1095 ac_prev=docdir ;;
1096 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1097 docdir=$ac_optarg ;;
1099 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1100 ac_prev=dvidir ;;
1101 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1102 dvidir=$ac_optarg ;;
1104 -enable-* | --enable-*)
1105 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error "invalid feature name: $ac_useropt"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1113 "enable_$ac_useropt"
1114 "*) ;;
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1117 esac
1118 eval enable_$ac_useropt=\$ac_optarg ;;
1120 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1121 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1122 | --exec | --exe | --ex)
1123 ac_prev=exec_prefix ;;
1124 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1125 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1126 | --exec=* | --exe=* | --ex=*)
1127 exec_prefix=$ac_optarg ;;
1129 -gas | --gas | --ga | --g)
1130 # Obsolete; use --with-gas.
1131 with_gas=yes ;;
1133 -help | --help | --hel | --he | -h)
1134 ac_init_help=long ;;
1135 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1136 ac_init_help=recursive ;;
1137 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1138 ac_init_help=short ;;
1140 -host | --host | --hos | --ho)
1141 ac_prev=host_alias ;;
1142 -host=* | --host=* | --hos=* | --ho=*)
1143 host_alias=$ac_optarg ;;
1145 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1146 ac_prev=htmldir ;;
1147 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1148 | --ht=*)
1149 htmldir=$ac_optarg ;;
1151 -includedir | --includedir | --includedi | --included | --include \
1152 | --includ | --inclu | --incl | --inc)
1153 ac_prev=includedir ;;
1154 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1155 | --includ=* | --inclu=* | --incl=* | --inc=*)
1156 includedir=$ac_optarg ;;
1158 -infodir | --infodir | --infodi | --infod | --info | --inf)
1159 ac_prev=infodir ;;
1160 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1161 infodir=$ac_optarg ;;
1163 -libdir | --libdir | --libdi | --libd)
1164 ac_prev=libdir ;;
1165 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1166 libdir=$ac_optarg ;;
1168 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1169 | --libexe | --libex | --libe)
1170 ac_prev=libexecdir ;;
1171 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1172 | --libexe=* | --libex=* | --libe=*)
1173 libexecdir=$ac_optarg ;;
1175 -localedir | --localedir | --localedi | --localed | --locale)
1176 ac_prev=localedir ;;
1177 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1178 localedir=$ac_optarg ;;
1180 -localstatedir | --localstatedir | --localstatedi | --localstated \
1181 | --localstate | --localstat | --localsta | --localst | --locals)
1182 ac_prev=localstatedir ;;
1183 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1184 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1185 localstatedir=$ac_optarg ;;
1187 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1188 ac_prev=mandir ;;
1189 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1190 mandir=$ac_optarg ;;
1192 -nfp | --nfp | --nf)
1193 # Obsolete; use --without-fp.
1194 with_fp=no ;;
1196 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1197 | --no-cr | --no-c | -n)
1198 no_create=yes ;;
1200 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1201 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1202 no_recursion=yes ;;
1204 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1205 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1206 | --oldin | --oldi | --old | --ol | --o)
1207 ac_prev=oldincludedir ;;
1208 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1209 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1210 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1211 oldincludedir=$ac_optarg ;;
1213 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1214 ac_prev=prefix ;;
1215 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1216 prefix=$ac_optarg ;;
1218 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1219 | --program-pre | --program-pr | --program-p)
1220 ac_prev=program_prefix ;;
1221 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1222 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1223 program_prefix=$ac_optarg ;;
1225 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1226 | --program-suf | --program-su | --program-s)
1227 ac_prev=program_suffix ;;
1228 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1229 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1230 program_suffix=$ac_optarg ;;
1232 -program-transform-name | --program-transform-name \
1233 | --program-transform-nam | --program-transform-na \
1234 | --program-transform-n | --program-transform- \
1235 | --program-transform | --program-transfor \
1236 | --program-transfo | --program-transf \
1237 | --program-trans | --program-tran \
1238 | --progr-tra | --program-tr | --program-t)
1239 ac_prev=program_transform_name ;;
1240 -program-transform-name=* | --program-transform-name=* \
1241 | --program-transform-nam=* | --program-transform-na=* \
1242 | --program-transform-n=* | --program-transform-=* \
1243 | --program-transform=* | --program-transfor=* \
1244 | --program-transfo=* | --program-transf=* \
1245 | --program-trans=* | --program-tran=* \
1246 | --progr-tra=* | --program-tr=* | --program-t=*)
1247 program_transform_name=$ac_optarg ;;
1249 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1250 ac_prev=pdfdir ;;
1251 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1252 pdfdir=$ac_optarg ;;
1254 -psdir | --psdir | --psdi | --psd | --ps)
1255 ac_prev=psdir ;;
1256 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1257 psdir=$ac_optarg ;;
1259 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1260 | -silent | --silent | --silen | --sile | --sil)
1261 silent=yes ;;
1263 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1264 ac_prev=sbindir ;;
1265 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1266 | --sbi=* | --sb=*)
1267 sbindir=$ac_optarg ;;
1269 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1270 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1271 | --sharedst | --shareds | --shared | --share | --shar \
1272 | --sha | --sh)
1273 ac_prev=sharedstatedir ;;
1274 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1275 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1276 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1277 | --sha=* | --sh=*)
1278 sharedstatedir=$ac_optarg ;;
1280 -site | --site | --sit)
1281 ac_prev=site ;;
1282 -site=* | --site=* | --sit=*)
1283 site=$ac_optarg ;;
1285 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1286 ac_prev=srcdir ;;
1287 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1288 srcdir=$ac_optarg ;;
1290 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1291 | --syscon | --sysco | --sysc | --sys | --sy)
1292 ac_prev=sysconfdir ;;
1293 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1294 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1295 sysconfdir=$ac_optarg ;;
1297 -target | --target | --targe | --targ | --tar | --ta | --t)
1298 ac_prev=target_alias ;;
1299 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1300 target_alias=$ac_optarg ;;
1302 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1303 verbose=yes ;;
1305 -version | --version | --versio | --versi | --vers | -V)
1306 ac_init_version=: ;;
1308 -with-* | --with-*)
1309 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1310 # Reject names that are not valid shell variable names.
1311 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1312 as_fn_error "invalid package name: $ac_useropt"
1313 ac_useropt_orig=$ac_useropt
1314 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315 case $ac_user_opts in
1317 "with_$ac_useropt"
1318 "*) ;;
1319 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1320 ac_unrecognized_sep=', ';;
1321 esac
1322 eval with_$ac_useropt=\$ac_optarg ;;
1324 -without-* | --without-*)
1325 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1326 # Reject names that are not valid shell variable names.
1327 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1328 as_fn_error "invalid package name: $ac_useropt"
1329 ac_useropt_orig=$ac_useropt
1330 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1331 case $ac_user_opts in
1333 "with_$ac_useropt"
1334 "*) ;;
1335 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1336 ac_unrecognized_sep=', ';;
1337 esac
1338 eval with_$ac_useropt=no ;;
1340 --x)
1341 # Obsolete; use --with-x.
1342 with_x=yes ;;
1344 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1345 | --x-incl | --x-inc | --x-in | --x-i)
1346 ac_prev=x_includes ;;
1347 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1348 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1349 x_includes=$ac_optarg ;;
1351 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1352 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1353 ac_prev=x_libraries ;;
1354 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1355 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1356 x_libraries=$ac_optarg ;;
1358 -*) as_fn_error "unrecognized option: \`$ac_option'
1359 Try \`$0 --help' for more information."
1362 *=*)
1363 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1364 # Reject names that are not valid shell variable names.
1365 case $ac_envvar in #(
1366 '' | [0-9]* | *[!_$as_cr_alnum]* )
1367 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1368 esac
1369 eval $ac_envvar=\$ac_optarg
1370 export $ac_envvar ;;
1373 # FIXME: should be removed in autoconf 3.0.
1374 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1375 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1376 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1377 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1380 esac
1381 done
1383 if test -n "$ac_prev"; then
1384 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1385 as_fn_error "missing argument to $ac_option"
1388 if test -n "$ac_unrecognized_opts"; then
1389 case $enable_option_checking in
1390 no) ;;
1391 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1392 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1393 esac
1396 # Check all directory arguments for consistency.
1397 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1398 datadir sysconfdir sharedstatedir localstatedir includedir \
1399 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1400 libdir localedir mandir
1402 eval ac_val=\$$ac_var
1403 # Remove trailing slashes.
1404 case $ac_val in
1405 */ )
1406 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1407 eval $ac_var=\$ac_val;;
1408 esac
1409 # Be sure to have absolute directory names.
1410 case $ac_val in
1411 [\\/$]* | ?:[\\/]* ) continue;;
1412 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1413 esac
1414 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1415 done
1417 # There might be people who depend on the old broken behavior: `$host'
1418 # used to hold the argument of --host etc.
1419 # FIXME: To remove some day.
1420 build=$build_alias
1421 host=$host_alias
1422 target=$target_alias
1424 # FIXME: To remove some day.
1425 if test "x$host_alias" != x; then
1426 if test "x$build_alias" = x; then
1427 cross_compiling=maybe
1428 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1429 If a cross compiler is detected then cross compile mode will be used." >&2
1430 elif test "x$build_alias" != "x$host_alias"; then
1431 cross_compiling=yes
1435 ac_tool_prefix=
1436 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1438 test "$silent" = yes && exec 6>/dev/null
1441 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1442 ac_ls_di=`ls -di .` &&
1443 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1444 as_fn_error "working directory cannot be determined"
1445 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1446 as_fn_error "pwd does not report name of working directory"
1449 # Find the source files, if location was not specified.
1450 if test -z "$srcdir"; then
1451 ac_srcdir_defaulted=yes
1452 # Try the directory containing this script, then the parent directory.
1453 ac_confdir=`$as_dirname -- "$as_myself" ||
1454 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1455 X"$as_myself" : 'X\(//\)[^/]' \| \
1456 X"$as_myself" : 'X\(//\)$' \| \
1457 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1458 $as_echo X"$as_myself" |
1459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1460 s//\1/
1463 /^X\(\/\/\)[^/].*/{
1464 s//\1/
1467 /^X\(\/\/\)$/{
1468 s//\1/
1471 /^X\(\/\).*/{
1472 s//\1/
1475 s/.*/./; q'`
1476 srcdir=$ac_confdir
1477 if test ! -r "$srcdir/$ac_unique_file"; then
1478 srcdir=..
1480 else
1481 ac_srcdir_defaulted=no
1483 if test ! -r "$srcdir/$ac_unique_file"; then
1484 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1485 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1487 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1488 ac_abs_confdir=`(
1489 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1490 pwd)`
1491 # When building in place, set srcdir=.
1492 if test "$ac_abs_confdir" = "$ac_pwd"; then
1493 srcdir=.
1495 # Remove unnecessary trailing slashes from srcdir.
1496 # Double slashes in file names in object file debugging info
1497 # mess up M-x gdb in Emacs.
1498 case $srcdir in
1499 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1500 esac
1501 for ac_var in $ac_precious_vars; do
1502 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1503 eval ac_env_${ac_var}_value=\$${ac_var}
1504 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1505 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1506 done
1509 # Report the --help message.
1511 if test "$ac_init_help" = "long"; then
1512 # Omit some internal or obsolete options to make the list less imposing.
1513 # This message is too long to be a string in the A/UX 3.1 sh.
1514 cat <<_ACEOF
1515 \`configure' configures this package to adapt to many kinds of systems.
1517 Usage: $0 [OPTION]... [VAR=VALUE]...
1519 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1520 VAR=VALUE. See below for descriptions of some of the useful variables.
1522 Defaults for the options are specified in brackets.
1524 Configuration:
1525 -h, --help display this help and exit
1526 --help=short display options specific to this package
1527 --help=recursive display the short help of all the included packages
1528 -V, --version display version information and exit
1529 -q, --quiet, --silent do not print \`checking...' messages
1530 --cache-file=FILE cache test results in FILE [disabled]
1531 -C, --config-cache alias for \`--cache-file=config.cache'
1532 -n, --no-create do not create output files
1533 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1535 Installation directories:
1536 --prefix=PREFIX install architecture-independent files in PREFIX
1537 [$ac_default_prefix]
1538 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1539 [PREFIX]
1541 By default, \`make install' will install all the files in
1542 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1543 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1544 for instance \`--prefix=\$HOME'.
1546 For better control, use the options below.
1548 Fine tuning of the installation directories:
1549 --bindir=DIR user executables [EPREFIX/bin]
1550 --sbindir=DIR system admin executables [EPREFIX/sbin]
1551 --libexecdir=DIR program executables [EPREFIX/libexec]
1552 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1553 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1554 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1555 --libdir=DIR object code libraries [EPREFIX/lib]
1556 --includedir=DIR C header files [PREFIX/include]
1557 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1558 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1559 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1560 --infodir=DIR info documentation [DATAROOTDIR/info]
1561 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1562 --mandir=DIR man documentation [DATAROOTDIR/man]
1563 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1564 --htmldir=DIR html documentation [DOCDIR]
1565 --dvidir=DIR dvi documentation [DOCDIR]
1566 --pdfdir=DIR pdf documentation [DOCDIR]
1567 --psdir=DIR ps documentation [DOCDIR]
1568 _ACEOF
1570 cat <<\_ACEOF
1572 Program names:
1573 --program-prefix=PREFIX prepend PREFIX to installed program names
1574 --program-suffix=SUFFIX append SUFFIX to installed program names
1575 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1577 System types:
1578 --build=BUILD configure for building on BUILD [guessed]
1579 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1580 --target=TARGET configure for building compilers for TARGET [HOST]
1581 _ACEOF
1584 if test -n "$ac_init_help"; then
1586 cat <<\_ACEOF
1588 Optional Features:
1589 --disable-option-checking ignore unrecognized --enable/--with options
1590 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1591 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1592 --enable-generated-files-in-srcdir
1593 put copies of generated files in source dir intended
1594 for creating source tarballs for users without
1595 texinfo bison or flex
1596 --disable-largefile omit support for large files
1597 --disable-build-format-warnings
1598 don't use -Wformat while building GCC
1599 --enable-werror-always enable -Werror despite compiler version
1600 --enable-checking[=LIST]
1601 enable expensive run-time checks. With LIST, enable
1602 only specific categories of checks. Categories are:
1603 yes,no,all,none,release. Flags are:
1604 assert,df,extra,fold,gc,gcac,gimple,misc,
1605 rtlflag,rtl,runtime,tree,valgrind,types
1606 --enable-coverage[=LEVEL]
1607 enable compiler's code coverage collection. Use to
1608 measure compiler performance and locate unused parts
1609 of the compiler. With LEVEL, specify optimization.
1610 Values are opt, noopt, default is noopt
1611 --enable-gather-detailed-mem-stats
1612 enable detailed memory allocation stats gathering
1613 --enable-valgrind-annotations
1614 enable valgrind runtime interaction
1615 --enable-multilib enable library support for multiple ABIs
1616 --enable-multiarch enable support for multiarch paths
1617 --enable-__cxa_atexit enable __cxa_atexit for C++
1618 --enable-decimal-float={no,yes,bid,dpd}
1619 enable decimal float extension to C. Selecting 'bid'
1620 or 'dpd' choses which decimal floating point format
1621 to use
1622 --enable-fixed-point enable fixed-point arithmetic extension to C
1623 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1624 package
1625 --enable-tls enable or disable generation of tls code overriding
1626 the assembler check for tls support
1627 --enable-vtable-verify enable vtable verification feature
1628 --enable-objc-gc enable the use of Boehm's garbage collector with the
1629 GNU Objective-C runtime
1630 --disable-shared don't provide a shared libgcc
1631 --enable-languages=LIST specify which front-ends to build
1632 --disable-rpath do not hardcode runtime library paths
1633 --enable-sjlj-exceptions
1634 arrange to use setjmp/longjmp exception handling
1635 --enable-secureplt enable -msecure-plt by default for PowerPC
1636 --enable-leading-mingw64-underscores
1637 enable leading underscores on 64 bit mingw targets
1638 --enable-cld enable -mcld by default for 32bit x86
1639 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1641 --disable-win32-registry
1642 disable lookup of installation paths in the Registry
1643 on Windows hosts
1644 --enable-win32-registry enable registry lookup (default)
1645 --enable-win32-registry=KEY
1646 use KEY instead of GCC version as the last portion
1647 of the registry key
1648 --enable-shared[=PKGS] build shared libraries [default=yes]
1649 --enable-static[=PKGS] build static libraries [default=yes]
1650 --enable-fast-install[=PKGS]
1651 optimize for fast installation [default=yes]
1652 --disable-libtool-lock avoid locking (might break parallel builds)
1653 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1654 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1655 --enable-gnu-indirect-function
1656 enable the use of the @gnu_indirect_function to
1657 glibc systems
1658 --enable-initfini-array use .init_array/.fini_array sections
1659 --enable-comdat enable COMDAT group support
1661 --enable-fix-cortex-a53-835769
1662 enable workaround for AArch64 Cortex-A53 erratum
1663 835769 by default
1664 --disable-fix-cortex-a53-835769
1665 disable workaround for AArch64 Cortex-A53 erratum
1666 835769 by default
1669 --enable-fix-cortex-a53-843419
1670 enable workaround for AArch64 Cortex-A53 erratum
1671 843419 by default
1672 --disable-fix-cortex-a53-843419
1673 disable workaround for AArch64 Cortex-A53 erratum
1674 843419 by default
1676 --enable-gnu-unique-object
1677 enable the use of the @gnu_unique_object ELF
1678 extension on glibc systems
1679 --enable-linker-build-id
1680 compiler will always pass --build-id to linker
1681 --enable-default-ssp enable Stack Smashing Protection as default
1682 --enable-maintainer-mode
1683 enable make rules and dependencies not useful (and
1684 sometimes confusing) to the casual installer
1685 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1686 thrashing on the build machine
1687 --enable-version-specific-runtime-libs
1688 specify that runtime libraries should be installed
1689 in a compiler-specific directory
1690 --enable-plugin enable plugin support
1691 --enable-host-shared build host code as shared libraries
1692 --disable-libquadmath-support
1693 disable libquadmath support for Fortran
1694 --enable-default-pie enable Position Independent Executable as default
1696 Optional Packages:
1697 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1698 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1699 --with-build-libsubdir=DIR Directory where to find libraries for build system
1700 --with-local-prefix=DIR specifies directory to put local include
1701 --with-native-system-header-dir=dir
1702 use dir as the directory to look for standard
1703 system header files in. Defaults to /usr/include.
1704 --with-build-sysroot=sysroot
1705 use sysroot as the system root during the build
1706 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1707 --with-gxx-include-dir=DIR
1708 specifies directory to put g++ header files
1709 --with-cpp-install-dir=DIR
1710 install the user visible C preprocessor in DIR
1711 (relative to PREFIX) as well as PREFIX/bin
1712 --with-gnu-ld arrange to work with GNU ld
1713 --with-ld arrange to use the specified ld (full pathname)
1714 --with-demangler-in-ld try to use demangler in GNU ld
1715 --with-gnu-as arrange to work with GNU as
1716 --with-as arrange to use the specified as (full pathname)
1717 --with-stabs arrange to use stabs instead of host debug format
1718 --with-dwarf2 force the default debug format to be DWARF 2
1719 --with-specs=SPECS add SPECS to driver command-line processing
1720 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1721 --with-bugurl=URL Direct users to URL to report a bug
1722 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1723 --with-gnu-ld assume the C compiler uses GNU ld default=no
1724 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1725 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1726 --with-gcc-major-version-only
1727 use only GCC major number in filesystem paths
1728 --with-pic try to use only PIC/non-PIC objects [default=use
1729 both]
1730 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1731 --with-plugin-ld=[ARG] specify the plugin linker
1732 --with-glibc-version=M.N
1733 assume GCC used with glibc version M.N or later
1734 --with-long-double-128 use 128-bit long double by default
1735 --with-gc={page,zone} this option is not supported anymore. It used to
1736 choose the garbage collection mechanism to use with
1737 the compiler
1738 --with-system-zlib use installed libz
1739 --with-linker-hash-style={sysv,gnu,both}
1740 specify the linker hash style
1741 --with-diagnostics-color={never,auto,auto-if-env,always}
1742 specify the default of -fdiagnostics-color option
1743 auto-if-env stands for -fdiagnostics-color=auto if
1744 GCC_COLOR environment variable is present and
1745 -fdiagnostics-color=never otherwise
1747 Some influential environment variables:
1748 CC C compiler command
1749 CFLAGS C compiler flags
1750 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1751 nonstandard directory <lib dir>
1752 LIBS libraries to pass to the linker, e.g. -l<library>
1753 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1754 you have headers in a nonstandard directory <include dir>
1755 CXX C++ compiler command
1756 CXXFLAGS C++ compiler flags
1757 CXXCPP C++ preprocessor
1758 CPP C preprocessor
1759 GMPLIBS How to link GMP
1760 GMPINC How to find GMP include files
1761 ISLLIBS How to link isl
1762 ISLINC How to find isl include files
1764 Use these variables to override the choices made by `configure' or to help
1765 it to find libraries and programs with nonstandard names/locations.
1767 Report bugs to the package provider.
1768 _ACEOF
1769 ac_status=$?
1772 if test "$ac_init_help" = "recursive"; then
1773 # If there are subdirs, report their specific --help.
1774 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1775 test -d "$ac_dir" ||
1776 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1777 continue
1778 ac_builddir=.
1780 case "$ac_dir" in
1781 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1783 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1784 # A ".." for each directory in $ac_dir_suffix.
1785 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1786 case $ac_top_builddir_sub in
1787 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1788 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1789 esac ;;
1790 esac
1791 ac_abs_top_builddir=$ac_pwd
1792 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1793 # for backward compatibility:
1794 ac_top_builddir=$ac_top_build_prefix
1796 case $srcdir in
1797 .) # We are building in place.
1798 ac_srcdir=.
1799 ac_top_srcdir=$ac_top_builddir_sub
1800 ac_abs_top_srcdir=$ac_pwd ;;
1801 [\\/]* | ?:[\\/]* ) # Absolute name.
1802 ac_srcdir=$srcdir$ac_dir_suffix;
1803 ac_top_srcdir=$srcdir
1804 ac_abs_top_srcdir=$srcdir ;;
1805 *) # Relative name.
1806 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1807 ac_top_srcdir=$ac_top_build_prefix$srcdir
1808 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1809 esac
1810 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1812 cd "$ac_dir" || { ac_status=$?; continue; }
1813 # Check for guested configure.
1814 if test -f "$ac_srcdir/configure.gnu"; then
1815 echo &&
1816 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1817 elif test -f "$ac_srcdir/configure"; then
1818 echo &&
1819 $SHELL "$ac_srcdir/configure" --help=recursive
1820 else
1821 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1822 fi || ac_status=$?
1823 cd "$ac_pwd" || { ac_status=$?; break; }
1824 done
1827 test -n "$ac_init_help" && exit $ac_status
1828 if $ac_init_version; then
1829 cat <<\_ACEOF
1830 configure
1831 generated by GNU Autoconf 2.64
1833 Copyright (C) 2009 Free Software Foundation, Inc.
1834 This configure script is free software; the Free Software Foundation
1835 gives unlimited permission to copy, distribute and modify it.
1836 _ACEOF
1837 exit
1840 ## ------------------------ ##
1841 ## Autoconf initialization. ##
1842 ## ------------------------ ##
1844 # ac_fn_c_try_compile LINENO
1845 # --------------------------
1846 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1847 ac_fn_c_try_compile ()
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 rm -f conftest.$ac_objext
1851 if { { ac_try="$ac_compile"
1852 case "(($ac_try" in
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1855 esac
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_compile") 2>conftest.err
1859 ac_status=$?
1860 if test -s conftest.err; then
1861 grep -v '^ *+' conftest.err >conftest.er1
1862 cat conftest.er1 >&5
1863 mv -f conftest.er1 conftest.err
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } && {
1867 test -z "$ac_c_werror_flag" ||
1868 test ! -s conftest.err
1869 } && test -s conftest.$ac_objext; then :
1870 ac_retval=0
1871 else
1872 $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1875 ac_retval=1
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878 return $ac_retval
1880 } # ac_fn_c_try_compile
1882 # ac_fn_cxx_try_compile LINENO
1883 # ----------------------------
1884 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1885 ac_fn_cxx_try_compile ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 rm -f conftest.$ac_objext
1889 if { { ac_try="$ac_compile"
1890 case "(($ac_try" in
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1893 esac
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_compile") 2>conftest.err
1897 ac_status=$?
1898 if test -s conftest.err; then
1899 grep -v '^ *+' conftest.err >conftest.er1
1900 cat conftest.er1 >&5
1901 mv -f conftest.er1 conftest.err
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; } && {
1905 test -z "$ac_cxx_werror_flag" ||
1906 test ! -s conftest.err
1907 } && test -s conftest.$ac_objext; then :
1908 ac_retval=0
1909 else
1910 $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1913 ac_retval=1
1915 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1916 return $ac_retval
1918 } # ac_fn_cxx_try_compile
1920 # ac_fn_cxx_try_cpp LINENO
1921 # ------------------------
1922 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1923 ac_fn_cxx_try_cpp ()
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 if { { ac_try="$ac_cpp conftest.$ac_ext"
1927 case "(($ac_try" in
1928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1929 *) ac_try_echo=$ac_try;;
1930 esac
1931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1932 $as_echo "$ac_try_echo"; } >&5
1933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1934 ac_status=$?
1935 if test -s conftest.err; then
1936 grep -v '^ *+' conftest.err >conftest.er1
1937 cat conftest.er1 >&5
1938 mv -f conftest.er1 conftest.err
1940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1941 test $ac_status = 0; } >/dev/null && {
1942 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1943 test ! -s conftest.err
1944 }; then :
1945 ac_retval=0
1946 else
1947 $as_echo "$as_me: failed program was:" >&5
1948 sed 's/^/| /' conftest.$ac_ext >&5
1950 ac_retval=1
1952 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1953 return $ac_retval
1955 } # ac_fn_cxx_try_cpp
1957 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1958 # ---------------------------------------------------------
1959 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1960 # the include files in INCLUDES and setting the cache variable VAR
1961 # accordingly.
1962 ac_fn_cxx_check_header_mongrel ()
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1969 $as_echo_n "(cached) " >&6
1971 eval ac_res=\$$3
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973 $as_echo "$ac_res" >&6; }
1974 else
1975 # Is the header compilable?
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1977 $as_echo_n "checking $2 usability... " >&6; }
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1981 #include <$2>
1982 _ACEOF
1983 if ac_fn_cxx_try_compile "$LINENO"; then :
1984 ac_header_compiler=yes
1985 else
1986 ac_header_compiler=no
1988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1990 $as_echo "$ac_header_compiler" >&6; }
1992 # Is the header present?
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1994 $as_echo_n "checking $2 presence... " >&6; }
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h. */
1997 #include <$2>
1998 _ACEOF
1999 if ac_fn_cxx_try_cpp "$LINENO"; then :
2000 ac_header_preproc=yes
2001 else
2002 ac_header_preproc=no
2004 rm -f conftest.err conftest.$ac_ext
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2006 $as_echo "$ac_header_preproc" >&6; }
2008 # So? What about this header?
2009 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2010 yes:no: )
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2012 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2014 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2016 no:yes:* )
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2018 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2020 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2022 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2024 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2026 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2028 esac
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2030 $as_echo_n "checking for $2... " >&6; }
2031 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2032 $as_echo_n "(cached) " >&6
2033 else
2034 eval "$3=\$ac_header_compiler"
2036 eval ac_res=\$$3
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038 $as_echo "$ac_res" >&6; }
2040 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2042 } # ac_fn_cxx_check_header_mongrel
2044 # ac_fn_cxx_try_run LINENO
2045 # ------------------------
2046 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2047 # that executables *can* be run.
2048 ac_fn_cxx_try_run ()
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 if { { ac_try="$ac_link"
2052 case "(($ac_try" in
2053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054 *) ac_try_echo=$ac_try;;
2055 esac
2056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057 $as_echo "$ac_try_echo"; } >&5
2058 (eval "$ac_link") 2>&5
2059 ac_status=$?
2060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2061 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2062 { { case "(($ac_try" in
2063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2064 *) ac_try_echo=$ac_try;;
2065 esac
2066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2067 $as_echo "$ac_try_echo"; } >&5
2068 (eval "$ac_try") 2>&5
2069 ac_status=$?
2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071 test $ac_status = 0; }; }; then :
2072 ac_retval=0
2073 else
2074 $as_echo "$as_me: program exited with status $ac_status" >&5
2075 $as_echo "$as_me: failed program was:" >&5
2076 sed 's/^/| /' conftest.$ac_ext >&5
2078 ac_retval=$ac_status
2080 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2081 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2082 return $ac_retval
2084 } # ac_fn_cxx_try_run
2086 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2087 # ---------------------------------------------------------
2088 # Tests whether HEADER exists and can be compiled using the include files in
2089 # INCLUDES, setting the cache variable VAR accordingly.
2090 ac_fn_cxx_check_header_compile ()
2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2094 $as_echo_n "checking for $2... " >&6; }
2095 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2096 $as_echo_n "(cached) " >&6
2097 else
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2101 #include <$2>
2102 _ACEOF
2103 if ac_fn_cxx_try_compile "$LINENO"; then :
2104 eval "$3=yes"
2105 else
2106 eval "$3=no"
2108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110 eval ac_res=\$$3
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2112 $as_echo "$ac_res" >&6; }
2113 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2115 } # ac_fn_cxx_check_header_compile
2117 # ac_fn_c_try_cpp LINENO
2118 # ----------------------
2119 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2120 ac_fn_c_try_cpp ()
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 if { { ac_try="$ac_cpp conftest.$ac_ext"
2124 case "(($ac_try" in
2125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2126 *) ac_try_echo=$ac_try;;
2127 esac
2128 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2129 $as_echo "$ac_try_echo"; } >&5
2130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2131 ac_status=$?
2132 if test -s conftest.err; then
2133 grep -v '^ *+' conftest.err >conftest.er1
2134 cat conftest.er1 >&5
2135 mv -f conftest.er1 conftest.err
2137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2138 test $ac_status = 0; } >/dev/null && {
2139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2140 test ! -s conftest.err
2141 }; then :
2142 ac_retval=0
2143 else
2144 $as_echo "$as_me: failed program was:" >&5
2145 sed 's/^/| /' conftest.$ac_ext >&5
2147 ac_retval=1
2149 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2150 return $ac_retval
2152 } # ac_fn_c_try_cpp
2154 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2155 # ----------------------------------------------
2156 # Tries to find the compile-time value of EXPR in a program that includes
2157 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2158 # computed
2159 ac_fn_cxx_compute_int ()
2161 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2162 if test "$cross_compiling" = yes; then
2163 # Depending upon the size, compute the lo and hi bounds.
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2168 main ()
2170 static int test_array [1 - 2 * !(($2) >= 0)];
2171 test_array [0] = 0
2174 return 0;
2176 _ACEOF
2177 if ac_fn_cxx_try_compile "$LINENO"; then :
2178 ac_lo=0 ac_mid=0
2179 while :; do
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2184 main ()
2186 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2187 test_array [0] = 0
2190 return 0;
2192 _ACEOF
2193 if ac_fn_cxx_try_compile "$LINENO"; then :
2194 ac_hi=$ac_mid; break
2195 else
2196 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2197 if test $ac_lo -le $ac_mid; then
2198 ac_lo= ac_hi=
2199 break
2201 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204 done
2205 else
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h. */
2210 main ()
2212 static int test_array [1 - 2 * !(($2) < 0)];
2213 test_array [0] = 0
2216 return 0;
2218 _ACEOF
2219 if ac_fn_cxx_try_compile "$LINENO"; then :
2220 ac_hi=-1 ac_mid=-1
2221 while :; do
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2226 main ()
2228 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2229 test_array [0] = 0
2232 return 0;
2234 _ACEOF
2235 if ac_fn_cxx_try_compile "$LINENO"; then :
2236 ac_lo=$ac_mid; break
2237 else
2238 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2239 if test $ac_mid -le $ac_hi; then
2240 ac_lo= ac_hi=
2241 break
2243 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246 done
2247 else
2248 ac_lo= ac_hi=
2250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253 # Binary search between lo and hi bounds.
2254 while test "x$ac_lo" != "x$ac_hi"; do
2255 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2257 /* end confdefs.h. */
2260 main ()
2262 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2263 test_array [0] = 0
2266 return 0;
2268 _ACEOF
2269 if ac_fn_cxx_try_compile "$LINENO"; then :
2270 ac_hi=$ac_mid
2271 else
2272 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275 done
2276 case $ac_lo in #((
2277 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2278 '') ac_retval=1 ;;
2279 esac
2280 else
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2284 static long int longval () { return $2; }
2285 static unsigned long int ulongval () { return $2; }
2286 #include <stdio.h>
2287 #include <stdlib.h>
2289 main ()
2292 FILE *f = fopen ("conftest.val", "w");
2293 if (! f)
2294 return 1;
2295 if (($2) < 0)
2297 long int i = longval ();
2298 if (i != ($2))
2299 return 1;
2300 fprintf (f, "%ld", i);
2302 else
2304 unsigned long int i = ulongval ();
2305 if (i != ($2))
2306 return 1;
2307 fprintf (f, "%lu", i);
2309 /* Do not output a trailing newline, as this causes \r\n confusion
2310 on some platforms. */
2311 return ferror (f) || fclose (f) != 0;
2314 return 0;
2316 _ACEOF
2317 if ac_fn_cxx_try_run "$LINENO"; then :
2318 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2319 else
2320 ac_retval=1
2322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2323 conftest.$ac_objext conftest.beam conftest.$ac_ext
2324 rm -f conftest.val
2327 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2328 return $ac_retval
2330 } # ac_fn_cxx_compute_int
2332 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2333 # ---------------------------------------------
2334 # Tests whether TYPE exists after having included INCLUDES, setting cache
2335 # variable VAR accordingly.
2336 ac_fn_cxx_check_type ()
2338 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2340 $as_echo_n "checking for $2... " >&6; }
2341 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2342 $as_echo_n "(cached) " >&6
2343 else
2344 eval "$3=no"
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h. */
2349 main ()
2351 if (sizeof ($2))
2352 return 0;
2354 return 0;
2356 _ACEOF
2357 if ac_fn_cxx_try_compile "$LINENO"; then :
2358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2359 /* end confdefs.h. */
2362 main ()
2364 if (sizeof (($2)))
2365 return 0;
2367 return 0;
2369 _ACEOF
2370 if ac_fn_cxx_try_compile "$LINENO"; then :
2372 else
2373 eval "$3=yes"
2375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2379 eval ac_res=\$$3
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2381 $as_echo "$ac_res" >&6; }
2382 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2384 } # ac_fn_cxx_check_type
2386 # ac_fn_c_find_intX_t LINENO BITS VAR
2387 # -----------------------------------
2388 # Finds a signed integer type with width BITS, setting cache variable VAR
2389 # accordingly.
2390 ac_fn_c_find_intX_t ()
2392 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2394 $as_echo_n "checking for int$2_t... " >&6; }
2395 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2396 $as_echo_n "(cached) " >&6
2397 else
2398 eval "$3=no"
2399 for ac_type in int$2_t 'int' 'long int' \
2400 'long long int' 'short int' 'signed char'; do
2401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2402 /* end confdefs.h. */
2403 $ac_includes_default
2405 main ()
2407 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2408 test_array [0] = 0
2411 return 0;
2413 _ACEOF
2414 if ac_fn_cxx_try_compile "$LINENO"; then :
2415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2416 /* end confdefs.h. */
2417 $ac_includes_default
2419 main ()
2421 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2422 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2423 test_array [0] = 0
2426 return 0;
2428 _ACEOF
2429 if ac_fn_cxx_try_compile "$LINENO"; then :
2431 else
2432 case $ac_type in #(
2433 int$2_t) :
2434 eval "$3=yes" ;; #(
2435 *) :
2436 eval "$3=\$ac_type" ;;
2437 esac
2439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2442 eval as_val=\$$3
2443 if test "x$as_val" = x""no; then :
2445 else
2446 break
2448 done
2450 eval ac_res=\$$3
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2452 $as_echo "$ac_res" >&6; }
2453 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2455 } # ac_fn_c_find_intX_t
2457 # ac_fn_cxx_try_link LINENO
2458 # -------------------------
2459 # Try to link conftest.$ac_ext, and return whether this succeeded.
2460 ac_fn_cxx_try_link ()
2462 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2463 rm -f conftest.$ac_objext conftest$ac_exeext
2464 if { { ac_try="$ac_link"
2465 case "(($ac_try" in
2466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467 *) ac_try_echo=$ac_try;;
2468 esac
2469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2470 $as_echo "$ac_try_echo"; } >&5
2471 (eval "$ac_link") 2>conftest.err
2472 ac_status=$?
2473 if test -s conftest.err; then
2474 grep -v '^ *+' conftest.err >conftest.er1
2475 cat conftest.er1 >&5
2476 mv -f conftest.er1 conftest.err
2478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2479 test $ac_status = 0; } && {
2480 test -z "$ac_cxx_werror_flag" ||
2481 test ! -s conftest.err
2482 } && test -s conftest$ac_exeext && {
2483 test "$cross_compiling" = yes ||
2484 $as_test_x conftest$ac_exeext
2485 }; then :
2486 ac_retval=0
2487 else
2488 $as_echo "$as_me: failed program was:" >&5
2489 sed 's/^/| /' conftest.$ac_ext >&5
2491 ac_retval=1
2493 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2494 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2495 # interfere with the next link command; also delete a directory that is
2496 # left behind by Apple's compiler. We do this before executing the actions.
2497 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2498 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2499 return $ac_retval
2501 } # ac_fn_cxx_try_link
2503 # ac_fn_c_find_uintX_t LINENO BITS VAR
2504 # ------------------------------------
2505 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2506 # accordingly.
2507 ac_fn_c_find_uintX_t ()
2509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2511 $as_echo_n "checking for uint$2_t... " >&6; }
2512 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2513 $as_echo_n "(cached) " >&6
2514 else
2515 eval "$3=no"
2516 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2517 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2519 /* end confdefs.h. */
2520 $ac_includes_default
2522 main ()
2524 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2525 test_array [0] = 0
2528 return 0;
2530 _ACEOF
2531 if ac_fn_cxx_try_compile "$LINENO"; then :
2532 case $ac_type in #(
2533 uint$2_t) :
2534 eval "$3=yes" ;; #(
2535 *) :
2536 eval "$3=\$ac_type" ;;
2537 esac
2539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2540 eval as_val=\$$3
2541 if test "x$as_val" = x""no; then :
2543 else
2544 break
2546 done
2548 eval ac_res=\$$3
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2550 $as_echo "$ac_res" >&6; }
2551 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2553 } # ac_fn_c_find_uintX_t
2555 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2556 # ------------------------------------------------
2557 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2558 ac_fn_cxx_check_header_preproc ()
2560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2562 $as_echo_n "checking for $2... " >&6; }
2563 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2564 $as_echo_n "(cached) " >&6
2565 else
2566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2567 /* end confdefs.h. */
2568 #include <$2>
2569 _ACEOF
2570 if ac_fn_cxx_try_cpp "$LINENO"; then :
2571 eval "$3=yes"
2572 else
2573 eval "$3=no"
2575 rm -f conftest.err conftest.$ac_ext
2577 eval ac_res=\$$3
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2579 $as_echo "$ac_res" >&6; }
2580 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2582 } # ac_fn_cxx_check_header_preproc
2584 # ac_fn_cxx_check_func LINENO FUNC VAR
2585 # ------------------------------------
2586 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2587 ac_fn_cxx_check_func ()
2589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2591 $as_echo_n "checking for $2... " >&6; }
2592 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2593 $as_echo_n "(cached) " >&6
2594 else
2595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2596 /* end confdefs.h. */
2597 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2599 #define $2 innocuous_$2
2601 /* System header to define __stub macros and hopefully few prototypes,
2602 which can conflict with char $2 (); below.
2603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2604 <limits.h> exists even on freestanding compilers. */
2606 #ifdef __STDC__
2607 # include <limits.h>
2608 #else
2609 # include <assert.h>
2610 #endif
2612 #undef $2
2614 /* Override any GCC internal prototype to avoid an error.
2615 Use char because int might match the return type of a GCC
2616 builtin and then its argument prototype would still apply. */
2617 #ifdef __cplusplus
2618 extern "C"
2619 #endif
2620 char $2 ();
2621 /* The GNU C library defines this for functions which it implements
2622 to always fail with ENOSYS. Some functions are actually named
2623 something starting with __ and the normal name is an alias. */
2624 #if defined __stub_$2 || defined __stub___$2
2625 choke me
2626 #endif
2629 main ()
2631 return $2 ();
2633 return 0;
2635 _ACEOF
2636 if ac_fn_cxx_try_link "$LINENO"; then :
2637 eval "$3=yes"
2638 else
2639 eval "$3=no"
2641 rm -f core conftest.err conftest.$ac_objext \
2642 conftest$ac_exeext conftest.$ac_ext
2644 eval ac_res=\$$3
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2646 $as_echo "$ac_res" >&6; }
2647 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2649 } # ac_fn_cxx_check_func
2651 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2652 # --------------------------------------
2653 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2654 ac_fn_cxx_check_decl ()
2656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2657 as_decl_name=`echo $2|sed 's/ *(.*//'`
2658 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2660 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2661 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2662 $as_echo_n "(cached) " >&6
2663 else
2664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2665 /* end confdefs.h. */
2668 main ()
2670 #ifndef $as_decl_name
2671 #ifdef __cplusplus
2672 (void) $as_decl_use;
2673 #else
2674 (void) $as_decl_name;
2675 #endif
2676 #endif
2679 return 0;
2681 _ACEOF
2682 if ac_fn_cxx_try_compile "$LINENO"; then :
2683 eval "$3=yes"
2684 else
2685 eval "$3=no"
2687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2689 eval ac_res=\$$3
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2691 $as_echo "$ac_res" >&6; }
2692 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2694 } # ac_fn_cxx_check_decl
2696 # ac_fn_c_try_link LINENO
2697 # -----------------------
2698 # Try to link conftest.$ac_ext, and return whether this succeeded.
2699 ac_fn_c_try_link ()
2701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2702 rm -f conftest.$ac_objext conftest$ac_exeext
2703 if { { ac_try="$ac_link"
2704 case "(($ac_try" in
2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706 *) ac_try_echo=$ac_try;;
2707 esac
2708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2709 $as_echo "$ac_try_echo"; } >&5
2710 (eval "$ac_link") 2>conftest.err
2711 ac_status=$?
2712 if test -s conftest.err; then
2713 grep -v '^ *+' conftest.err >conftest.er1
2714 cat conftest.er1 >&5
2715 mv -f conftest.er1 conftest.err
2717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2718 test $ac_status = 0; } && {
2719 test -z "$ac_c_werror_flag" ||
2720 test ! -s conftest.err
2721 } && test -s conftest$ac_exeext && {
2722 test "$cross_compiling" = yes ||
2723 $as_test_x conftest$ac_exeext
2724 }; then :
2725 ac_retval=0
2726 else
2727 $as_echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2730 ac_retval=1
2732 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2733 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2734 # interfere with the next link command; also delete a directory that is
2735 # left behind by Apple's compiler. We do this before executing the actions.
2736 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2737 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2738 return $ac_retval
2740 } # ac_fn_c_try_link
2742 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2743 # ----------------------------------------------
2744 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2745 ac_fn_c_check_header_preproc ()
2747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2749 $as_echo_n "checking for $2... " >&6; }
2750 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2751 $as_echo_n "(cached) " >&6
2752 else
2753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2754 /* end confdefs.h. */
2755 #include <$2>
2756 _ACEOF
2757 if ac_fn_c_try_cpp "$LINENO"; then :
2758 eval "$3=yes"
2759 else
2760 eval "$3=no"
2762 rm -f conftest.err conftest.$ac_ext
2764 eval ac_res=\$$3
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2766 $as_echo "$ac_res" >&6; }
2767 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2769 } # ac_fn_c_check_header_preproc
2771 # ac_fn_c_check_func LINENO FUNC VAR
2772 # ----------------------------------
2773 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2774 ac_fn_c_check_func ()
2776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2778 $as_echo_n "checking for $2... " >&6; }
2779 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2780 $as_echo_n "(cached) " >&6
2781 else
2782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2783 /* end confdefs.h. */
2784 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2786 #define $2 innocuous_$2
2788 /* System header to define __stub macros and hopefully few prototypes,
2789 which can conflict with char $2 (); below.
2790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2791 <limits.h> exists even on freestanding compilers. */
2793 #ifdef __STDC__
2794 # include <limits.h>
2795 #else
2796 # include <assert.h>
2797 #endif
2799 #undef $2
2801 /* Override any GCC internal prototype to avoid an error.
2802 Use char because int might match the return type of a GCC
2803 builtin and then its argument prototype would still apply. */
2804 #ifdef __cplusplus
2805 extern "C"
2806 #endif
2807 char $2 ();
2808 /* The GNU C library defines this for functions which it implements
2809 to always fail with ENOSYS. Some functions are actually named
2810 something starting with __ and the normal name is an alias. */
2811 #if defined __stub_$2 || defined __stub___$2
2812 choke me
2813 #endif
2816 main ()
2818 return $2 ();
2820 return 0;
2822 _ACEOF
2823 if ac_fn_c_try_link "$LINENO"; then :
2824 eval "$3=yes"
2825 else
2826 eval "$3=no"
2828 rm -f core conftest.err conftest.$ac_objext \
2829 conftest$ac_exeext conftest.$ac_ext
2831 eval ac_res=\$$3
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2833 $as_echo "$ac_res" >&6; }
2834 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2836 } # ac_fn_c_check_func
2837 cat >config.log <<_ACEOF
2838 This file contains any messages produced by compilers while
2839 running configure, to aid debugging if configure makes a mistake.
2841 It was created by $as_me, which was
2842 generated by GNU Autoconf 2.64. Invocation command line was
2844 $ $0 $@
2846 _ACEOF
2847 exec 5>>config.log
2849 cat <<_ASUNAME
2850 ## --------- ##
2851 ## Platform. ##
2852 ## --------- ##
2854 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2855 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2856 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2857 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2858 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2860 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2861 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2863 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2864 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2865 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2866 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2867 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2868 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2869 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2871 _ASUNAME
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 $as_echo "PATH: $as_dir"
2879 done
2880 IFS=$as_save_IFS
2882 } >&5
2884 cat >&5 <<_ACEOF
2887 ## ----------- ##
2888 ## Core tests. ##
2889 ## ----------- ##
2891 _ACEOF
2894 # Keep a trace of the command line.
2895 # Strip out --no-create and --no-recursion so they do not pile up.
2896 # Strip out --silent because we don't want to record it for future runs.
2897 # Also quote any args containing shell meta-characters.
2898 # Make two passes to allow for proper duplicate-argument suppression.
2899 ac_configure_args=
2900 ac_configure_args0=
2901 ac_configure_args1=
2902 ac_must_keep_next=false
2903 for ac_pass in 1 2
2905 for ac_arg
2907 case $ac_arg in
2908 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2909 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2910 | -silent | --silent | --silen | --sile | --sil)
2911 continue ;;
2912 *\'*)
2913 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2914 esac
2915 case $ac_pass in
2916 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2918 as_fn_append ac_configure_args1 " '$ac_arg'"
2919 if test $ac_must_keep_next = true; then
2920 ac_must_keep_next=false # Got value, back to normal.
2921 else
2922 case $ac_arg in
2923 *=* | --config-cache | -C | -disable-* | --disable-* \
2924 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2925 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2926 | -with-* | --with-* | -without-* | --without-* | --x)
2927 case "$ac_configure_args0 " in
2928 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2929 esac
2931 -* ) ac_must_keep_next=true ;;
2932 esac
2934 as_fn_append ac_configure_args " '$ac_arg'"
2936 esac
2937 done
2938 done
2939 { ac_configure_args0=; unset ac_configure_args0;}
2940 { ac_configure_args1=; unset ac_configure_args1;}
2942 # When interrupted or exit'd, cleanup temporary files, and complete
2943 # config.log. We remove comments because anyway the quotes in there
2944 # would cause problems or look ugly.
2945 # WARNING: Use '\'' to represent an apostrophe within the trap.
2946 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2947 trap 'exit_status=$?
2948 # Save into config.log some information that might help in debugging.
2950 echo
2952 cat <<\_ASBOX
2953 ## ---------------- ##
2954 ## Cache variables. ##
2955 ## ---------------- ##
2956 _ASBOX
2957 echo
2958 # The following way of writing the cache mishandles newlines in values,
2960 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2961 eval ac_val=\$$ac_var
2962 case $ac_val in #(
2963 *${as_nl}*)
2964 case $ac_var in #(
2965 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2966 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2967 esac
2968 case $ac_var in #(
2969 _ | IFS | as_nl) ;; #(
2970 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2971 *) { eval $ac_var=; unset $ac_var;} ;;
2972 esac ;;
2973 esac
2974 done
2975 (set) 2>&1 |
2976 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2977 *${as_nl}ac_space=\ *)
2978 sed -n \
2979 "s/'\''/'\''\\\\'\'''\''/g;
2980 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2981 ;; #(
2983 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2985 esac |
2986 sort
2988 echo
2990 cat <<\_ASBOX
2991 ## ----------------- ##
2992 ## Output variables. ##
2993 ## ----------------- ##
2994 _ASBOX
2995 echo
2996 for ac_var in $ac_subst_vars
2998 eval ac_val=\$$ac_var
2999 case $ac_val in
3000 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3001 esac
3002 $as_echo "$ac_var='\''$ac_val'\''"
3003 done | sort
3004 echo
3006 if test -n "$ac_subst_files"; then
3007 cat <<\_ASBOX
3008 ## ------------------- ##
3009 ## File substitutions. ##
3010 ## ------------------- ##
3011 _ASBOX
3012 echo
3013 for ac_var in $ac_subst_files
3015 eval ac_val=\$$ac_var
3016 case $ac_val in
3017 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3018 esac
3019 $as_echo "$ac_var='\''$ac_val'\''"
3020 done | sort
3021 echo
3024 if test -s confdefs.h; then
3025 cat <<\_ASBOX
3026 ## ----------- ##
3027 ## confdefs.h. ##
3028 ## ----------- ##
3029 _ASBOX
3030 echo
3031 cat confdefs.h
3032 echo
3034 test "$ac_signal" != 0 &&
3035 $as_echo "$as_me: caught signal $ac_signal"
3036 $as_echo "$as_me: exit $exit_status"
3037 } >&5
3038 rm -f core *.core core.conftest.* &&
3039 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3040 exit $exit_status
3042 for ac_signal in 1 2 13 15; do
3043 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3044 done
3045 ac_signal=0
3047 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3048 rm -f -r conftest* confdefs.h
3050 $as_echo "/* confdefs.h */" > confdefs.h
3052 # Predefined preprocessor variables.
3054 cat >>confdefs.h <<_ACEOF
3055 #define PACKAGE_NAME "$PACKAGE_NAME"
3056 _ACEOF
3058 cat >>confdefs.h <<_ACEOF
3059 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3060 _ACEOF
3062 cat >>confdefs.h <<_ACEOF
3063 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3064 _ACEOF
3066 cat >>confdefs.h <<_ACEOF
3067 #define PACKAGE_STRING "$PACKAGE_STRING"
3068 _ACEOF
3070 cat >>confdefs.h <<_ACEOF
3071 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3072 _ACEOF
3074 cat >>confdefs.h <<_ACEOF
3075 #define PACKAGE_URL "$PACKAGE_URL"
3076 _ACEOF
3079 # Let the site file select an alternate cache file if it wants to.
3080 # Prefer an explicitly selected file to automatically selected ones.
3081 ac_site_file1=NONE
3082 ac_site_file2=NONE
3083 if test -n "$CONFIG_SITE"; then
3084 ac_site_file1=$CONFIG_SITE
3085 elif test "x$prefix" != xNONE; then
3086 ac_site_file1=$prefix/share/config.site
3087 ac_site_file2=$prefix/etc/config.site
3088 else
3089 ac_site_file1=$ac_default_prefix/share/config.site
3090 ac_site_file2=$ac_default_prefix/etc/config.site
3092 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3094 test "x$ac_site_file" = xNONE && continue
3095 if test -r "$ac_site_file"; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3097 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3098 sed 's/^/| /' "$ac_site_file" >&5
3099 . "$ac_site_file"
3101 done
3103 if test -r "$cache_file"; then
3104 # Some versions of bash will fail to source /dev/null (special
3105 # files actually), so we avoid doing that.
3106 if test -f "$cache_file"; then
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3108 $as_echo "$as_me: loading cache $cache_file" >&6;}
3109 case $cache_file in
3110 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3111 *) . "./$cache_file";;
3112 esac
3114 else
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3116 $as_echo "$as_me: creating cache $cache_file" >&6;}
3117 >$cache_file
3120 # Check that the precious variables saved in the cache have kept the same
3121 # value.
3122 ac_cache_corrupted=false
3123 for ac_var in $ac_precious_vars; do
3124 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3125 eval ac_new_set=\$ac_env_${ac_var}_set
3126 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3127 eval ac_new_val=\$ac_env_${ac_var}_value
3128 case $ac_old_set,$ac_new_set in
3129 set,)
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3131 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3132 ac_cache_corrupted=: ;;
3133 ,set)
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3135 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3136 ac_cache_corrupted=: ;;
3137 ,);;
3139 if test "x$ac_old_val" != "x$ac_new_val"; then
3140 # differences in whitespace do not lead to failure.
3141 ac_old_val_w=`echo x $ac_old_val`
3142 ac_new_val_w=`echo x $ac_new_val`
3143 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3145 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3146 ac_cache_corrupted=:
3147 else
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3149 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3150 eval $ac_var=\$ac_old_val
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3153 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3155 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3156 fi;;
3157 esac
3158 # Pass precious variables to config.status.
3159 if test "$ac_new_set" = set; then
3160 case $ac_new_val in
3161 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3162 *) ac_arg=$ac_var=$ac_new_val ;;
3163 esac
3164 case " $ac_configure_args " in
3165 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3166 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3167 esac
3169 done
3170 if $ac_cache_corrupted; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3174 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3175 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3177 ## -------------------- ##
3178 ## Main body of script. ##
3179 ## -------------------- ##
3181 ac_ext=c
3182 ac_cpp='$CPP $CPPFLAGS'
3183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3192 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3195 gcc_version=`cat $srcdir/BASE-VER`
3197 # Determine the host, build, and target systems
3198 ac_aux_dir=
3199 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3200 for ac_t in install-sh install.sh shtool; do
3201 if test -f "$ac_dir/$ac_t"; then
3202 ac_aux_dir=$ac_dir
3203 ac_install_sh="$ac_aux_dir/$ac_t -c"
3204 break 2
3206 done
3207 done
3208 if test -z "$ac_aux_dir"; then
3209 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3212 # These three variables are undocumented and unsupported,
3213 # and are intended to be withdrawn in a future Autoconf release.
3214 # They can cause serious problems if a builder's source tree is in a directory
3215 # whose full name contains unusual characters.
3216 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3217 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3218 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3221 # Make sure we can run config.sub.
3222 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3223 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3226 $as_echo_n "checking build system type... " >&6; }
3227 if test "${ac_cv_build+set}" = set; then :
3228 $as_echo_n "(cached) " >&6
3229 else
3230 ac_build_alias=$build_alias
3231 test "x$ac_build_alias" = x &&
3232 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3233 test "x$ac_build_alias" = x &&
3234 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3235 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3236 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3240 $as_echo "$ac_cv_build" >&6; }
3241 case $ac_cv_build in
3242 *-*-*) ;;
3243 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3244 esac
3245 build=$ac_cv_build
3246 ac_save_IFS=$IFS; IFS='-'
3247 set x $ac_cv_build
3248 shift
3249 build_cpu=$1
3250 build_vendor=$2
3251 shift; shift
3252 # Remember, the first character of IFS is used to create $*,
3253 # except with old shells:
3254 build_os=$*
3255 IFS=$ac_save_IFS
3256 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3260 $as_echo_n "checking host system type... " >&6; }
3261 if test "${ac_cv_host+set}" = set; then :
3262 $as_echo_n "(cached) " >&6
3263 else
3264 if test "x$host_alias" = x; then
3265 ac_cv_host=$ac_cv_build
3266 else
3267 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3268 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3273 $as_echo "$ac_cv_host" >&6; }
3274 case $ac_cv_host in
3275 *-*-*) ;;
3276 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3277 esac
3278 host=$ac_cv_host
3279 ac_save_IFS=$IFS; IFS='-'
3280 set x $ac_cv_host
3281 shift
3282 host_cpu=$1
3283 host_vendor=$2
3284 shift; shift
3285 # Remember, the first character of IFS is used to create $*,
3286 # except with old shells:
3287 host_os=$*
3288 IFS=$ac_save_IFS
3289 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3293 $as_echo_n "checking target system type... " >&6; }
3294 if test "${ac_cv_target+set}" = set; then :
3295 $as_echo_n "(cached) " >&6
3296 else
3297 if test "x$target_alias" = x; then
3298 ac_cv_target=$ac_cv_host
3299 else
3300 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3301 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3306 $as_echo "$ac_cv_target" >&6; }
3307 case $ac_cv_target in
3308 *-*-*) ;;
3309 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3310 esac
3311 target=$ac_cv_target
3312 ac_save_IFS=$IFS; IFS='-'
3313 set x $ac_cv_target
3314 shift
3315 target_cpu=$1
3316 target_vendor=$2
3317 shift; shift
3318 # Remember, the first character of IFS is used to create $*,
3319 # except with old shells:
3320 target_os=$*
3321 IFS=$ac_save_IFS
3322 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3325 # The aliases save the names the user supplied, while $host etc.
3326 # will get canonicalized.
3327 test -n "$target_alias" &&
3328 test "$program_prefix$program_suffix$program_transform_name" = \
3329 NONENONEs,x,x, &&
3330 program_prefix=${target_alias}-
3332 # Determine the noncanonical host name, for Ada.
3333 case ${build_alias} in
3334 "") build_noncanonical=${build} ;;
3335 *) build_noncanonical=${build_alias} ;;
3336 esac
3338 case ${host_alias} in
3339 "") host_noncanonical=${build_noncanonical} ;;
3340 *) host_noncanonical=${host_alias} ;;
3341 esac
3346 # Determine the noncanonical target name, for directory use.
3347 case ${target_alias} in
3348 "") target_noncanonical=${host_noncanonical} ;;
3349 *) target_noncanonical=${target_alias} ;;
3350 esac
3355 # Used for constructing correct paths for offload compilers.
3356 real_target_noncanonical=${target_noncanonical}
3357 accel_dir_suffix=
3359 # Determine the target- and build-specific subdirectories
3361 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3362 # have matching libraries, they should use host libraries: Makefile.tpl
3363 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3364 # However, they still use the build modules, because the corresponding
3365 # host modules (e.g. bison) are only built for the host when bootstrap
3366 # finishes. So:
3367 # - build_subdir is where we find build modules, and never changes.
3368 # - build_libsubdir is where we find build libraries, and can be overridden.
3370 # Prefix 'build-' so this never conflicts with target_subdir.
3371 build_subdir="build-${build_noncanonical}"
3373 # Check whether --with-build-libsubdir was given.
3374 if test "${with_build_libsubdir+set}" = set; then :
3375 withval=$with_build_libsubdir; build_libsubdir="$withval"
3376 else
3377 build_libsubdir="$build_subdir"
3380 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3381 if ( test $srcdir = . && test -d gcc ) \
3382 || test -d $srcdir/../host-${host_noncanonical}; then
3383 host_subdir="host-${host_noncanonical}"
3384 else
3385 host_subdir=.
3387 # No prefix.
3388 target_subdir=${target_noncanonical}
3391 # Set program_transform_name
3392 test "$program_prefix" != NONE &&
3393 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3394 # Use a double $ so make ignores it.
3395 test "$program_suffix" != NONE &&
3396 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3397 # Double any \ or $.
3398 # By default was `s,x,x', remove it if useless.
3399 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3400 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3403 # Check for bogus environment variables.
3404 # Test if LIBRARY_PATH contains the notation for the current directory
3405 # since this would lead to problems installing/building glibc.
3406 # LIBRARY_PATH contains the current directory if one of the following
3407 # is true:
3408 # - one of the terminals (":" and ";") is the first or last sign
3409 # - two terminals occur directly after each other
3410 # - the path contains an element with a dot in it
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3412 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3413 case ${LIBRARY_PATH} in
3414 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3415 library_path_setting="contains current directory"
3418 library_path_setting="ok"
3420 esac
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3422 $as_echo "$library_path_setting" >&6; }
3423 if test "$library_path_setting" != "ok"; then
3424 as_fn_error "
3425 *** LIBRARY_PATH shouldn't contain the current directory when
3426 *** building gcc. Please change the environment variable
3427 *** and run configure again." "$LINENO" 5
3430 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3431 # since this would lead to problems installing/building glibc.
3432 # GCC_EXEC_PREFIX 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 GCC_EXEC_PREFIX variable" >&5
3438 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3439 case ${GCC_EXEC_PREFIX} in
3440 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3441 gcc_exec_prefix_setting="contains current directory"
3444 gcc_exec_prefix_setting="ok"
3446 esac
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3448 $as_echo "$gcc_exec_prefix_setting" >&6; }
3449 if test "$gcc_exec_prefix_setting" != "ok"; then
3450 as_fn_error "
3451 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3452 *** building gcc. Please change the environment variable
3453 *** and run configure again." "$LINENO" 5
3456 # -----------
3457 # Directories
3458 # -----------
3460 # Specify the local prefix
3461 local_prefix=
3463 # Check whether --with-local-prefix was given.
3464 if test "${with_local_prefix+set}" = set; then :
3465 withval=$with_local_prefix; case "${withval}" in
3466 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3467 no) ;;
3468 *) local_prefix=$with_local_prefix ;;
3469 esac
3473 # Default local prefix if it is empty
3474 if test x$local_prefix = x; then
3475 local_prefix=/usr/local
3479 # Check whether --with-native-system-header-dir was given.
3480 if test "${with_native_system_header_dir+set}" = set; then :
3481 withval=$with_native_system_header_dir;
3482 case ${with_native_system_header_dir} in
3483 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3484 /* | [A-Za-z]:[\\/]*) ;;
3485 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3486 esac
3487 configured_native_system_header_dir="${withval}"
3489 else
3490 configured_native_system_header_dir=
3495 # Check whether --with-build-sysroot was given.
3496 if test "${with_build_sysroot+set}" = set; then :
3497 withval=$with_build_sysroot; if test x"$withval" != x ; then
3498 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3500 else
3501 SYSROOT_CFLAGS_FOR_TARGET=
3506 if test "x$prefix" = xNONE; then
3507 test_prefix=/usr/local
3508 else
3509 test_prefix=$prefix
3511 if test "x$exec_prefix" = xNONE; then
3512 test_exec_prefix=$test_prefix
3513 else
3514 test_exec_prefix=$exec_prefix
3518 # Check whether --with-sysroot was given.
3519 if test "${with_sysroot+set}" = set; then :
3520 withval=$with_sysroot;
3521 case ${with_sysroot} in
3522 /) ;;
3523 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3524 esac
3525 case ${with_sysroot} in
3526 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3527 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3528 esac
3530 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3531 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3533 case ${TARGET_SYSTEM_ROOT} in
3534 "${test_prefix}"|"${test_prefix}/"*|\
3535 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3536 '${prefix}'|'${prefix}/'*|\
3537 '${exec_prefix}'|'${exec_prefix}/'*)
3538 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3539 TARGET_SYSTEM_ROOT_DEFINE="$t"
3541 esac
3543 else
3545 TARGET_SYSTEM_ROOT=
3546 TARGET_SYSTEM_ROOT_DEFINE=
3547 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3555 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3556 # passed in by the toplevel make and thus we'd get different behavior
3557 # depending on where we built the sources.
3558 gcc_gxx_include_dir=
3559 # Specify the g++ header file directory
3561 # Check whether --with-gxx-include-dir was given.
3562 if test "${with_gxx_include_dir+set}" = set; then :
3563 withval=$with_gxx_include_dir; case "${withval}" in
3564 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3565 no) ;;
3566 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3567 esac
3571 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3572 if test x${gcc_gxx_include_dir} = x; then
3573 if test x${enable_version_specific_runtime_libs} = xyes; then
3574 gcc_gxx_include_dir='${libsubdir}/include/c++'
3575 else
3576 libstdcxx_incdir='include/c++/$(version)'
3577 if test x$host != x$target; then
3578 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3580 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3584 gcc_gxx_include_dir_add_sysroot=0
3585 if test "${with_sysroot+set}" = set; then
3586 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3587 if test "${gcc_gxx_without_sysroot}"; then
3588 if test x${with_sysroot} != x/; then
3589 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3591 gcc_gxx_include_dir_add_sysroot=1
3596 # Check whether --with-cpp_install_dir was given.
3597 if test "${with_cpp_install_dir+set}" = set; then :
3598 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3599 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3600 elif test x$withval != xno; then
3601 cpp_install_dir=$withval
3606 # We would like to our source tree to be readonly. However when releases or
3607 # pre-releases are generated, the flex/bison generated files as well as the
3608 # various formats of manuals need to be included along with the rest of the
3609 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3610 # just that.
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3613 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3614 # Check whether --enable-generated-files-in-srcdir was given.
3615 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3616 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3617 else
3618 generated_files_in_srcdir=no
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3623 $as_echo "$generated_files_in_srcdir" >&6; }
3625 if test "$generated_files_in_srcdir" = "yes"; then
3626 GENINSRC=''
3627 else
3628 GENINSRC='#'
3632 # -------------------
3633 # Find default linker
3634 # -------------------
3636 # With GNU ld
3638 # Check whether --with-gnu-ld was given.
3639 if test "${with_gnu_ld+set}" = set; then :
3640 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3641 else
3642 gnu_ld_flag=no
3646 case $target in
3647 *darwin*) ld64_flag=yes;; # Darwin can only use a ld64-compatible linker.
3648 *) ld64_flag=no;;
3649 esac
3651 # With pre-defined ld
3653 # Check whether --with-ld was given.
3654 if test "${with_ld+set}" = set; then :
3655 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3658 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3659 if test ! -x "$DEFAULT_LINKER"; then
3660 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3661 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3662 gnu_ld_flag=yes
3663 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep ld64- > /dev/null; then
3664 ld64_flag=yes
3667 cat >>confdefs.h <<_ACEOF
3668 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3669 _ACEOF
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3674 $as_echo_n "checking whether a default linker was specified... " >&6; }
3675 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3676 if test x"$gnu_ld_flag" = x"no"; then
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3678 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3679 else
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3681 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3683 else
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685 $as_echo "no" >&6; }
3688 # With demangler in GNU ld
3690 # Check whether --with-demangler-in-ld was given.
3691 if test "${with_demangler_in_ld+set}" = set; then :
3692 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3693 else
3694 demangler_in_ld=yes
3698 # ----------------------
3699 # Find default assembler
3700 # ----------------------
3702 # With GNU as
3704 # Check whether --with-gnu-as was given.
3705 if test "${with_gnu_as+set}" = set; then :
3706 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3707 else
3708 gas_flag=no
3713 # Check whether --with-as was given.
3714 if test "${with_as+set}" = set; then :
3715 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3718 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3719 if test ! -x "$DEFAULT_ASSEMBLER"; then
3720 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3721 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3722 gas_flag=yes
3725 cat >>confdefs.h <<_ACEOF
3726 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3727 _ACEOF
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3732 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3733 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3734 if test x"$gas_flag" = x"no"; then
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3736 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3737 else
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3739 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3741 else
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743 $as_echo "no" >&6; }
3746 # ---------------
3747 # Find C compiler
3748 # ---------------
3750 # If a non-executable a.out is present (e.g. created by GNU as above even if
3751 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3752 # file, even when creating an executable, so an execution test fails.
3753 # Remove possible default executable files to avoid this.
3755 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3756 # Autoconf includes it.
3757 rm -f a.out a.exe b.out
3759 # Find the native compiler
3760 ac_ext=c
3761 ac_cpp='$CPP $CPPFLAGS'
3762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3765 if test -n "$ac_tool_prefix"; then
3766 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3767 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3769 $as_echo_n "checking for $ac_word... " >&6; }
3770 if test "${ac_cv_prog_CC+set}" = set; then :
3771 $as_echo_n "(cached) " >&6
3772 else
3773 if test -n "$CC"; then
3774 ac_cv_prog_CC="$CC" # Let the user override the test.
3775 else
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 for as_dir in $PATH
3779 IFS=$as_save_IFS
3780 test -z "$as_dir" && as_dir=.
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3783 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3785 break 2
3787 done
3788 done
3789 IFS=$as_save_IFS
3793 CC=$ac_cv_prog_CC
3794 if test -n "$CC"; then
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3796 $as_echo "$CC" >&6; }
3797 else
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799 $as_echo "no" >&6; }
3804 if test -z "$ac_cv_prog_CC"; then
3805 ac_ct_CC=$CC
3806 # Extract the first word of "gcc", so it can be a program name with args.
3807 set dummy gcc; ac_word=$2
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3809 $as_echo_n "checking for $ac_word... " >&6; }
3810 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3811 $as_echo_n "(cached) " >&6
3812 else
3813 if test -n "$ac_ct_CC"; then
3814 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3815 else
3816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817 for as_dir in $PATH
3819 IFS=$as_save_IFS
3820 test -z "$as_dir" && as_dir=.
3821 for ac_exec_ext in '' $ac_executable_extensions; do
3822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3823 ac_cv_prog_ac_ct_CC="gcc"
3824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3825 break 2
3827 done
3828 done
3829 IFS=$as_save_IFS
3833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3834 if test -n "$ac_ct_CC"; then
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3836 $as_echo "$ac_ct_CC" >&6; }
3837 else
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3839 $as_echo "no" >&6; }
3842 if test "x$ac_ct_CC" = x; then
3843 CC=""
3844 else
3845 case $cross_compiling:$ac_tool_warned in
3846 yes:)
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3849 ac_tool_warned=yes ;;
3850 esac
3851 CC=$ac_ct_CC
3853 else
3854 CC="$ac_cv_prog_CC"
3857 if test -z "$CC"; then
3858 if test -n "$ac_tool_prefix"; then
3859 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3860 set dummy ${ac_tool_prefix}cc; ac_word=$2
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3862 $as_echo_n "checking for $ac_word... " >&6; }
3863 if test "${ac_cv_prog_CC+set}" = set; then :
3864 $as_echo_n "(cached) " >&6
3865 else
3866 if test -n "$CC"; then
3867 ac_cv_prog_CC="$CC" # Let the user override the test.
3868 else
3869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870 for as_dir in $PATH
3872 IFS=$as_save_IFS
3873 test -z "$as_dir" && as_dir=.
3874 for ac_exec_ext in '' $ac_executable_extensions; do
3875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3876 ac_cv_prog_CC="${ac_tool_prefix}cc"
3877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3878 break 2
3880 done
3881 done
3882 IFS=$as_save_IFS
3886 CC=$ac_cv_prog_CC
3887 if test -n "$CC"; then
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3889 $as_echo "$CC" >&6; }
3890 else
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3892 $as_echo "no" >&6; }
3898 if test -z "$CC"; then
3899 # Extract the first word of "cc", so it can be a program name with args.
3900 set dummy cc; ac_word=$2
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3902 $as_echo_n "checking for $ac_word... " >&6; }
3903 if test "${ac_cv_prog_CC+set}" = set; then :
3904 $as_echo_n "(cached) " >&6
3905 else
3906 if test -n "$CC"; then
3907 ac_cv_prog_CC="$CC" # Let the user override the test.
3908 else
3909 ac_prog_rejected=no
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 for as_dir in $PATH
3913 IFS=$as_save_IFS
3914 test -z "$as_dir" && as_dir=.
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3917 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3918 ac_prog_rejected=yes
3919 continue
3921 ac_cv_prog_CC="cc"
3922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3923 break 2
3925 done
3926 done
3927 IFS=$as_save_IFS
3929 if test $ac_prog_rejected = yes; then
3930 # We found a bogon in the path, so make sure we never use it.
3931 set dummy $ac_cv_prog_CC
3932 shift
3933 if test $# != 0; then
3934 # We chose a different compiler from the bogus one.
3935 # However, it has the same basename, so the bogon will be chosen
3936 # first if we set CC to just the basename; use the full file name.
3937 shift
3938 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3943 CC=$ac_cv_prog_CC
3944 if test -n "$CC"; then
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3946 $as_echo "$CC" >&6; }
3947 else
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3949 $as_echo "no" >&6; }
3954 if test -z "$CC"; then
3955 if test -n "$ac_tool_prefix"; then
3956 for ac_prog in cl.exe
3958 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3959 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3961 $as_echo_n "checking for $ac_word... " >&6; }
3962 if test "${ac_cv_prog_CC+set}" = set; then :
3963 $as_echo_n "(cached) " >&6
3964 else
3965 if test -n "$CC"; then
3966 ac_cv_prog_CC="$CC" # Let the user override the test.
3967 else
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 for as_dir in $PATH
3971 IFS=$as_save_IFS
3972 test -z "$as_dir" && as_dir=.
3973 for ac_exec_ext in '' $ac_executable_extensions; do
3974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3975 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3977 break 2
3979 done
3980 done
3981 IFS=$as_save_IFS
3985 CC=$ac_cv_prog_CC
3986 if test -n "$CC"; then
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3988 $as_echo "$CC" >&6; }
3989 else
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991 $as_echo "no" >&6; }
3995 test -n "$CC" && break
3996 done
3998 if test -z "$CC"; then
3999 ac_ct_CC=$CC
4000 for ac_prog in cl.exe
4002 # Extract the first word of "$ac_prog", so it can be a program name with args.
4003 set dummy $ac_prog; ac_word=$2
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4005 $as_echo_n "checking for $ac_word... " >&6; }
4006 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4007 $as_echo_n "(cached) " >&6
4008 else
4009 if test -n "$ac_ct_CC"; then
4010 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4011 else
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH
4015 IFS=$as_save_IFS
4016 test -z "$as_dir" && as_dir=.
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4019 ac_cv_prog_ac_ct_CC="$ac_prog"
4020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4021 break 2
4023 done
4024 done
4025 IFS=$as_save_IFS
4029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4030 if test -n "$ac_ct_CC"; then
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4032 $as_echo "$ac_ct_CC" >&6; }
4033 else
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4035 $as_echo "no" >&6; }
4039 test -n "$ac_ct_CC" && break
4040 done
4042 if test "x$ac_ct_CC" = x; then
4043 CC=""
4044 else
4045 case $cross_compiling:$ac_tool_warned in
4046 yes:)
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4049 ac_tool_warned=yes ;;
4050 esac
4051 CC=$ac_ct_CC
4058 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4060 as_fn_error "no acceptable C compiler found in \$PATH
4061 See \`config.log' for more details." "$LINENO" 5; }
4063 # Provide some information about the compiler.
4064 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4065 set X $ac_compile
4066 ac_compiler=$2
4067 for ac_option in --version -v -V -qversion; do
4068 { { ac_try="$ac_compiler $ac_option >&5"
4069 case "(($ac_try" in
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4072 esac
4073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4074 $as_echo "$ac_try_echo"; } >&5
4075 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4076 ac_status=$?
4077 if test -s conftest.err; then
4078 sed '10a\
4079 ... rest of stderr output deleted ...
4080 10q' conftest.err >conftest.er1
4081 cat conftest.er1 >&5
4082 rm -f conftest.er1 conftest.err
4084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4085 test $ac_status = 0; }
4086 done
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4092 main ()
4096 return 0;
4098 _ACEOF
4099 ac_clean_files_save=$ac_clean_files
4100 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4101 # Try to create an executable without -o first, disregard a.out.
4102 # It will help us diagnose broken compilers, and finding out an intuition
4103 # of exeext.
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4105 $as_echo_n "checking for C compiler default output file name... " >&6; }
4106 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4108 # The possible output files:
4109 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4111 ac_rmfiles=
4112 for ac_file in $ac_files
4114 case $ac_file in
4115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4116 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4117 esac
4118 done
4119 rm -f $ac_rmfiles
4121 if { { ac_try="$ac_link_default"
4122 case "(($ac_try" in
4123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4124 *) ac_try_echo=$ac_try;;
4125 esac
4126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4127 $as_echo "$ac_try_echo"; } >&5
4128 (eval "$ac_link_default") 2>&5
4129 ac_status=$?
4130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4131 test $ac_status = 0; }; then :
4132 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4133 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4134 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4135 # so that the user can short-circuit this test for compilers unknown to
4136 # Autoconf.
4137 for ac_file in $ac_files ''
4139 test -f "$ac_file" || continue
4140 case $ac_file in
4141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4143 [ab].out )
4144 # We found the default executable, but exeext='' is most
4145 # certainly right.
4146 break;;
4147 *.* )
4148 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4149 then :; else
4150 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4152 # We set ac_cv_exeext here because the later test for it is not
4153 # safe: cross compilers may not add the suffix if given an `-o'
4154 # argument, so we may need to know it at that point already.
4155 # Even if this section looks crufty: it has the advantage of
4156 # actually working.
4157 break;;
4159 break;;
4160 esac
4161 done
4162 test "$ac_cv_exeext" = no && ac_cv_exeext=
4164 else
4165 ac_file=''
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4168 $as_echo "$ac_file" >&6; }
4169 if test -z "$ac_file"; then :
4170 $as_echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4175 { as_fn_set_status 77
4176 as_fn_error "C compiler cannot create executables
4177 See \`config.log' for more details." "$LINENO" 5; }; }
4179 ac_exeext=$ac_cv_exeext
4181 # Check that the compiler produces executables we can run. If not, either
4182 # the compiler is broken, or we cross compile.
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4184 $as_echo_n "checking whether the C compiler works... " >&6; }
4185 # If not cross compiling, check that we can run a simple program.
4186 if test "$cross_compiling" != yes; then
4187 if { ac_try='./$ac_file'
4188 { { case "(($ac_try" in
4189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190 *) ac_try_echo=$ac_try;;
4191 esac
4192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4193 $as_echo "$ac_try_echo"; } >&5
4194 (eval "$ac_try") 2>&5
4195 ac_status=$?
4196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4197 test $ac_status = 0; }; }; then
4198 cross_compiling=no
4199 else
4200 if test "$cross_compiling" = maybe; then
4201 cross_compiling=yes
4202 else
4203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4205 as_fn_error "cannot run C compiled programs.
4206 If you meant to cross compile, use \`--host'.
4207 See \`config.log' for more details." "$LINENO" 5; }
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4212 $as_echo "yes" >&6; }
4214 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4215 ac_clean_files=$ac_clean_files_save
4216 # Check that the compiler produces executables we can run. If not, either
4217 # the compiler is broken, or we cross compile.
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4219 $as_echo_n "checking whether we are cross compiling... " >&6; }
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4221 $as_echo "$cross_compiling" >&6; }
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4224 $as_echo_n "checking for suffix of executables... " >&6; }
4225 if { { ac_try="$ac_link"
4226 case "(($ac_try" in
4227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228 *) ac_try_echo=$ac_try;;
4229 esac
4230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4231 $as_echo "$ac_try_echo"; } >&5
4232 (eval "$ac_link") 2>&5
4233 ac_status=$?
4234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4235 test $ac_status = 0; }; then :
4236 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4237 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4238 # work properly (i.e., refer to `conftest.exe'), while it won't with
4239 # `rm'.
4240 for ac_file in conftest.exe conftest conftest.*; do
4241 test -f "$ac_file" || continue
4242 case $ac_file in
4243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4244 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4245 break;;
4246 * ) break;;
4247 esac
4248 done
4249 else
4250 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4252 as_fn_error "cannot compute suffix of executables: cannot compile and link
4253 See \`config.log' for more details." "$LINENO" 5; }
4255 rm -f conftest$ac_cv_exeext
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4257 $as_echo "$ac_cv_exeext" >&6; }
4259 rm -f conftest.$ac_ext
4260 EXEEXT=$ac_cv_exeext
4261 ac_exeext=$EXEEXT
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4263 $as_echo_n "checking for suffix of object files... " >&6; }
4264 if test "${ac_cv_objext+set}" = set; then :
4265 $as_echo_n "(cached) " >&6
4266 else
4267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h. */
4271 main ()
4275 return 0;
4277 _ACEOF
4278 rm -f conftest.o conftest.obj
4279 if { { ac_try="$ac_compile"
4280 case "(($ac_try" in
4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4283 esac
4284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4285 $as_echo "$ac_try_echo"; } >&5
4286 (eval "$ac_compile") 2>&5
4287 ac_status=$?
4288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4289 test $ac_status = 0; }; then :
4290 for ac_file in conftest.o conftest.obj conftest.*; do
4291 test -f "$ac_file" || continue;
4292 case $ac_file in
4293 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4294 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4295 break;;
4296 esac
4297 done
4298 else
4299 $as_echo "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.$ac_ext >&5
4302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4304 as_fn_error "cannot compute suffix of object files: cannot compile
4305 See \`config.log' for more details." "$LINENO" 5; }
4307 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4310 $as_echo "$ac_cv_objext" >&6; }
4311 OBJEXT=$ac_cv_objext
4312 ac_objext=$OBJEXT
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4314 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4315 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4316 $as_echo_n "(cached) " >&6
4317 else
4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h. */
4322 main ()
4324 #ifndef __GNUC__
4325 choke me
4326 #endif
4329 return 0;
4331 _ACEOF
4332 if ac_fn_c_try_compile "$LINENO"; then :
4333 ac_compiler_gnu=yes
4334 else
4335 ac_compiler_gnu=no
4337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4338 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4342 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4343 if test $ac_compiler_gnu = yes; then
4344 GCC=yes
4345 else
4346 GCC=
4348 ac_test_CFLAGS=${CFLAGS+set}
4349 ac_save_CFLAGS=$CFLAGS
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4351 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4352 if test "${ac_cv_prog_cc_g+set}" = set; then :
4353 $as_echo_n "(cached) " >&6
4354 else
4355 ac_save_c_werror_flag=$ac_c_werror_flag
4356 ac_c_werror_flag=yes
4357 ac_cv_prog_cc_g=no
4358 CFLAGS="-g"
4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4363 main ()
4367 return 0;
4369 _ACEOF
4370 if ac_fn_c_try_compile "$LINENO"; then :
4371 ac_cv_prog_cc_g=yes
4372 else
4373 CFLAGS=""
4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h. */
4378 main ()
4382 return 0;
4384 _ACEOF
4385 if ac_fn_c_try_compile "$LINENO"; then :
4387 else
4388 ac_c_werror_flag=$ac_save_c_werror_flag
4389 CFLAGS="-g"
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4394 main ()
4398 return 0;
4400 _ACEOF
4401 if ac_fn_c_try_compile "$LINENO"; then :
4402 ac_cv_prog_cc_g=yes
4404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4409 ac_c_werror_flag=$ac_save_c_werror_flag
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4412 $as_echo "$ac_cv_prog_cc_g" >&6; }
4413 if test "$ac_test_CFLAGS" = set; then
4414 CFLAGS=$ac_save_CFLAGS
4415 elif test $ac_cv_prog_cc_g = yes; then
4416 if test "$GCC" = yes; then
4417 CFLAGS="-g -O2"
4418 else
4419 CFLAGS="-g"
4421 else
4422 if test "$GCC" = yes; then
4423 CFLAGS="-O2"
4424 else
4425 CFLAGS=
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4429 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4430 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4431 $as_echo_n "(cached) " >&6
4432 else
4433 ac_cv_prog_cc_c89=no
4434 ac_save_CC=$CC
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4437 #include <stdarg.h>
4438 #include <stdio.h>
4439 #include <sys/types.h>
4440 #include <sys/stat.h>
4441 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4442 struct buf { int x; };
4443 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4444 static char *e (p, i)
4445 char **p;
4446 int i;
4448 return p[i];
4450 static char *f (char * (*g) (char **, int), char **p, ...)
4452 char *s;
4453 va_list v;
4454 va_start (v,p);
4455 s = g (p, va_arg (v,int));
4456 va_end (v);
4457 return s;
4460 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4461 function prototypes and stuff, but not '\xHH' hex character constants.
4462 These don't provoke an error unfortunately, instead are silently treated
4463 as 'x'. The following induces an error, until -std is added to get
4464 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4465 array size at least. It's necessary to write '\x00'==0 to get something
4466 that's true only with -std. */
4467 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4469 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4470 inside strings and character constants. */
4471 #define FOO(x) 'x'
4472 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4474 int test (int i, double x);
4475 struct s1 {int (*f) (int a);};
4476 struct s2 {int (*f) (double a);};
4477 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4478 int argc;
4479 char **argv;
4481 main ()
4483 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4485 return 0;
4487 _ACEOF
4488 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4489 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4491 CC="$ac_save_CC $ac_arg"
4492 if ac_fn_c_try_compile "$LINENO"; then :
4493 ac_cv_prog_cc_c89=$ac_arg
4495 rm -f core conftest.err conftest.$ac_objext
4496 test "x$ac_cv_prog_cc_c89" != "xno" && break
4497 done
4498 rm -f conftest.$ac_ext
4499 CC=$ac_save_CC
4502 # AC_CACHE_VAL
4503 case "x$ac_cv_prog_cc_c89" in
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4506 $as_echo "none needed" >&6; } ;;
4507 xno)
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4509 $as_echo "unsupported" >&6; } ;;
4511 CC="$CC $ac_cv_prog_cc_c89"
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4513 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4514 esac
4515 if test "x$ac_cv_prog_cc_c89" != xno; then :
4519 ac_ext=c
4520 ac_cpp='$CPP $CPPFLAGS'
4521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4525 ac_ext=cpp
4526 ac_cpp='$CXXCPP $CPPFLAGS'
4527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4530 if test -z "$CXX"; then
4531 if test -n "$CCC"; then
4532 CXX=$CCC
4533 else
4534 if test -n "$ac_tool_prefix"; then
4535 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4537 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4538 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4540 $as_echo_n "checking for $ac_word... " >&6; }
4541 if test "${ac_cv_prog_CXX+set}" = set; then :
4542 $as_echo_n "(cached) " >&6
4543 else
4544 if test -n "$CXX"; then
4545 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4546 else
4547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 for as_dir in $PATH
4550 IFS=$as_save_IFS
4551 test -z "$as_dir" && as_dir=.
4552 for ac_exec_ext in '' $ac_executable_extensions; do
4553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4554 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4556 break 2
4558 done
4559 done
4560 IFS=$as_save_IFS
4564 CXX=$ac_cv_prog_CXX
4565 if test -n "$CXX"; then
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4567 $as_echo "$CXX" >&6; }
4568 else
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4570 $as_echo "no" >&6; }
4574 test -n "$CXX" && break
4575 done
4577 if test -z "$CXX"; then
4578 ac_ct_CXX=$CXX
4579 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4581 # Extract the first word of "$ac_prog", so it can be a program name with args.
4582 set dummy $ac_prog; ac_word=$2
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4584 $as_echo_n "checking for $ac_word... " >&6; }
4585 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4586 $as_echo_n "(cached) " >&6
4587 else
4588 if test -n "$ac_ct_CXX"; then
4589 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4590 else
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 for as_dir in $PATH
4594 IFS=$as_save_IFS
4595 test -z "$as_dir" && as_dir=.
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4598 ac_cv_prog_ac_ct_CXX="$ac_prog"
4599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4600 break 2
4602 done
4603 done
4604 IFS=$as_save_IFS
4608 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4609 if test -n "$ac_ct_CXX"; then
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4611 $as_echo "$ac_ct_CXX" >&6; }
4612 else
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4614 $as_echo "no" >&6; }
4618 test -n "$ac_ct_CXX" && break
4619 done
4621 if test "x$ac_ct_CXX" = x; then
4622 CXX="g++"
4623 else
4624 case $cross_compiling:$ac_tool_warned in
4625 yes:)
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4628 ac_tool_warned=yes ;;
4629 esac
4630 CXX=$ac_ct_CXX
4636 # Provide some information about the compiler.
4637 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4638 set X $ac_compile
4639 ac_compiler=$2
4640 for ac_option in --version -v -V -qversion; do
4641 { { ac_try="$ac_compiler $ac_option >&5"
4642 case "(($ac_try" in
4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4645 esac
4646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4647 $as_echo "$ac_try_echo"; } >&5
4648 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4649 ac_status=$?
4650 if test -s conftest.err; then
4651 sed '10a\
4652 ... rest of stderr output deleted ...
4653 10q' conftest.err >conftest.er1
4654 cat conftest.er1 >&5
4655 rm -f conftest.er1 conftest.err
4657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4658 test $ac_status = 0; }
4659 done
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4662 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4663 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4670 main ()
4672 #ifndef __GNUC__
4673 choke me
4674 #endif
4677 return 0;
4679 _ACEOF
4680 if ac_fn_cxx_try_compile "$LINENO"; then :
4681 ac_compiler_gnu=yes
4682 else
4683 ac_compiler_gnu=no
4685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4686 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4690 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4691 if test $ac_compiler_gnu = yes; then
4692 GXX=yes
4693 else
4694 GXX=
4696 ac_test_CXXFLAGS=${CXXFLAGS+set}
4697 ac_save_CXXFLAGS=$CXXFLAGS
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4699 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4700 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4701 $as_echo_n "(cached) " >&6
4702 else
4703 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4704 ac_cxx_werror_flag=yes
4705 ac_cv_prog_cxx_g=no
4706 CXXFLAGS="-g"
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4711 main ()
4715 return 0;
4717 _ACEOF
4718 if ac_fn_cxx_try_compile "$LINENO"; then :
4719 ac_cv_prog_cxx_g=yes
4720 else
4721 CXXFLAGS=""
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4726 main ()
4730 return 0;
4732 _ACEOF
4733 if ac_fn_cxx_try_compile "$LINENO"; then :
4735 else
4736 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4737 CXXFLAGS="-g"
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4742 main ()
4746 return 0;
4748 _ACEOF
4749 if ac_fn_cxx_try_compile "$LINENO"; then :
4750 ac_cv_prog_cxx_g=yes
4752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4760 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4761 if test "$ac_test_CXXFLAGS" = set; then
4762 CXXFLAGS=$ac_save_CXXFLAGS
4763 elif test $ac_cv_prog_cxx_g = yes; then
4764 if test "$GXX" = yes; then
4765 CXXFLAGS="-g -O2"
4766 else
4767 CXXFLAGS="-g"
4769 else
4770 if test "$GXX" = yes; then
4771 CXXFLAGS="-O2"
4772 else
4773 CXXFLAGS=
4776 ac_ext=c
4777 ac_cpp='$CPP $CPPFLAGS'
4778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4785 if test -n "$ac_tool_prefix"; then
4786 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4787 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789 $as_echo_n "checking for $ac_word... " >&6; }
4790 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4791 $as_echo_n "(cached) " >&6
4792 else
4793 if test -n "$GNATBIND"; then
4794 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4795 else
4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 for as_dir in $PATH
4799 IFS=$as_save_IFS
4800 test -z "$as_dir" && as_dir=.
4801 for ac_exec_ext in '' $ac_executable_extensions; do
4802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4803 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 break 2
4807 done
4808 done
4809 IFS=$as_save_IFS
4813 GNATBIND=$ac_cv_prog_GNATBIND
4814 if test -n "$GNATBIND"; then
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4816 $as_echo "$GNATBIND" >&6; }
4817 else
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819 $as_echo "no" >&6; }
4824 if test -z "$ac_cv_prog_GNATBIND"; then
4825 ac_ct_GNATBIND=$GNATBIND
4826 # Extract the first word of "gnatbind", so it can be a program name with args.
4827 set dummy gnatbind; ac_word=$2
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829 $as_echo_n "checking for $ac_word... " >&6; }
4830 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4831 $as_echo_n "(cached) " >&6
4832 else
4833 if test -n "$ac_ct_GNATBIND"; then
4834 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4835 else
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH
4839 IFS=$as_save_IFS
4840 test -z "$as_dir" && as_dir=.
4841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4843 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4845 break 2
4847 done
4848 done
4849 IFS=$as_save_IFS
4853 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4854 if test -n "$ac_ct_GNATBIND"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4856 $as_echo "$ac_ct_GNATBIND" >&6; }
4857 else
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4862 if test "x$ac_ct_GNATBIND" = x; then
4863 GNATBIND="no"
4864 else
4865 case $cross_compiling:$ac_tool_warned in
4866 yes:)
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4869 ac_tool_warned=yes ;;
4870 esac
4871 GNATBIND=$ac_ct_GNATBIND
4873 else
4874 GNATBIND="$ac_cv_prog_GNATBIND"
4877 if test -n "$ac_tool_prefix"; then
4878 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4879 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4881 $as_echo_n "checking for $ac_word... " >&6; }
4882 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4883 $as_echo_n "(cached) " >&6
4884 else
4885 if test -n "$GNATMAKE"; then
4886 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4887 else
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in $PATH
4891 IFS=$as_save_IFS
4892 test -z "$as_dir" && as_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4895 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 break 2
4899 done
4900 done
4901 IFS=$as_save_IFS
4905 GNATMAKE=$ac_cv_prog_GNATMAKE
4906 if test -n "$GNATMAKE"; then
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4908 $as_echo "$GNATMAKE" >&6; }
4909 else
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4911 $as_echo "no" >&6; }
4916 if test -z "$ac_cv_prog_GNATMAKE"; then
4917 ac_ct_GNATMAKE=$GNATMAKE
4918 # Extract the first word of "gnatmake", so it can be a program name with args.
4919 set dummy gnatmake; ac_word=$2
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4921 $as_echo_n "checking for $ac_word... " >&6; }
4922 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 if test -n "$ac_ct_GNATMAKE"; then
4926 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4927 else
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4935 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 break 2
4939 done
4940 done
4941 IFS=$as_save_IFS
4945 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4946 if test -n "$ac_ct_GNATMAKE"; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4948 $as_echo "$ac_ct_GNATMAKE" >&6; }
4949 else
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 $as_echo "no" >&6; }
4954 if test "x$ac_ct_GNATMAKE" = x; then
4955 GNATMAKE="no"
4956 else
4957 case $cross_compiling:$ac_tool_warned in
4958 yes:)
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4961 ac_tool_warned=yes ;;
4962 esac
4963 GNATMAKE=$ac_ct_GNATMAKE
4965 else
4966 GNATMAKE="$ac_cv_prog_GNATMAKE"
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4970 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4971 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4972 $as_echo_n "(cached) " >&6
4973 else
4974 cat >conftest.adb <<EOF
4975 procedure conftest is begin null; end conftest;
4977 acx_cv_cc_gcc_supports_ada=no
4978 # There is a bug in old released versions of GCC which causes the
4979 # driver to exit successfully when the appropriate language module
4980 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4981 # Therefore we must check for the error message as well as an
4982 # unsuccessful exit.
4983 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4984 # given a .adb file, but produce no object file. So we must check
4985 # if an object file was really produced to guard against this.
4986 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4987 if test x"$errors" = x && test -f conftest.$ac_objext; then
4988 acx_cv_cc_gcc_supports_ada=yes
4990 rm -f conftest.*
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4993 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4995 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4996 have_gnat=yes
4997 else
4998 have_gnat=no
5002 # Do configure tests with the C++ compiler, since that's what we build with.
5003 ac_ext=cpp
5004 ac_cpp='$CXXCPP $CPPFLAGS'
5005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5010 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5011 # optimizations to be activated explicitly by the toplevel.
5012 case "$CC" in
5013 */prev-gcc/xgcc*) ;;
5014 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5015 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5016 esac
5020 # Determine PICFLAG for target gnatlib.
5025 case "${target}" in
5026 # PIC is the default on some targets or must not be used.
5027 *-*-darwin*)
5028 # For darwin, common symbols are not allowed in MH_DYLIB files
5029 case "${CFLAGS}" in
5030 # If we are using a compiler supporting mdynamic-no-pic
5031 # and the option has been tested as safe to add, then cancel
5032 # it here, since the code generated is incompatible with shared
5033 # libs.
5034 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5035 *) PICFLAG_FOR_TARGET=-fno-common ;;
5036 esac
5038 alpha*-dec-osf5*)
5039 # PIC is the default.
5041 hppa*64*-*-hpux*)
5042 # PIC is the default for 64-bit PA HP-UX.
5044 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5046 i[34567]86-*-mingw* | x86_64-*-mingw*)
5048 i[34567]86-*-interix[3-9]*)
5049 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5050 # Instead, we relocate shared libraries at runtime.
5052 i[34567]86-*-nto-qnx*)
5053 # QNX uses GNU C++, but need to define -shared option too, otherwise
5054 # it will coredump.
5055 PICFLAG_FOR_TARGET='-fPIC -shared'
5057 i[34567]86-pc-msdosdjgpp*)
5058 # DJGPP does not support shared libraries at all.
5060 ia64*-*-hpux*)
5061 # On IA64 HP-UX, PIC is the default but the pic flag
5062 # sets the default TLS model and affects inlining.
5063 PICFLAG_FOR_TARGET=-fPIC
5065 mips-sgi-irix6*)
5066 # PIC is the default.
5068 rs6000-ibm-aix* | powerpc-ibm-aix*)
5069 # All AIX code is PIC.
5072 # Some targets support both -fPIC and -fpic, but prefer the latter.
5073 # FIXME: Why?
5074 i[34567]86-*-* | x86_64-*-*)
5075 PICFLAG_FOR_TARGET=-fpic
5077 # FIXME: Override -fPIC default in libgcc only?
5078 sh-*-linux* | sh[2346lbe]*-*-linux*)
5079 PICFLAG_FOR_TARGET=-fpic
5081 # FIXME: Simplify to sh*-*-netbsd*?
5082 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5083 sh64-*-netbsd* | sh64l*-*-netbsd*)
5084 PICFLAG_FOR_TARGET=-fpic
5086 # Default to -fPIC unless specified otherwise.
5088 PICFLAG_FOR_TARGET=-fPIC
5090 esac
5092 # If the user explicitly uses -fpic/-fPIC, keep that.
5093 case "${CFLAGS_FOR_TARGET}" in
5094 *-fpic*)
5095 PICFLAG_FOR_TARGET=-fpic
5097 *-fPIC*)
5098 PICFLAG_FOR_TARGET=-fPIC
5100 esac
5104 # -------------------------
5105 # Check C compiler features
5106 # -------------------------
5109 ac_ext=cpp
5110 ac_cpp='$CXXCPP $CPPFLAGS'
5111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5115 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5116 if test -z "$CXXCPP"; then
5117 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5118 $as_echo_n "(cached) " >&6
5119 else
5120 # Double quotes because CXXCPP needs to be expanded
5121 for CXXCPP in "$CXX -E" "/lib/cpp"
5123 ac_preproc_ok=false
5124 for ac_cxx_preproc_warn_flag in '' yes
5126 # Use a header file that comes with gcc, so configuring glibc
5127 # with a fresh cross-compiler works.
5128 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5129 # <limits.h> exists even on freestanding compilers.
5130 # On the NeXT, cc -E runs the code through the compiler's parser,
5131 # not just through cpp. "Syntax error" is here to catch this case.
5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h. */
5134 #ifdef __STDC__
5135 # include <limits.h>
5136 #else
5137 # include <assert.h>
5138 #endif
5139 Syntax error
5140 _ACEOF
5141 if ac_fn_cxx_try_cpp "$LINENO"; then :
5143 else
5144 # Broken: fails on valid input.
5145 continue
5147 rm -f conftest.err conftest.$ac_ext
5149 # OK, works on sane cases. Now check whether nonexistent headers
5150 # can be detected and how.
5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5153 #include <ac_nonexistent.h>
5154 _ACEOF
5155 if ac_fn_cxx_try_cpp "$LINENO"; then :
5156 # Broken: success on invalid input.
5157 continue
5158 else
5159 # Passes both tests.
5160 ac_preproc_ok=:
5161 break
5163 rm -f conftest.err conftest.$ac_ext
5165 done
5166 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5167 rm -f conftest.err conftest.$ac_ext
5168 if $ac_preproc_ok; then :
5169 break
5172 done
5173 ac_cv_prog_CXXCPP=$CXXCPP
5176 CXXCPP=$ac_cv_prog_CXXCPP
5177 else
5178 ac_cv_prog_CXXCPP=$CXXCPP
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5181 $as_echo "$CXXCPP" >&6; }
5182 ac_preproc_ok=false
5183 for ac_cxx_preproc_warn_flag in '' yes
5185 # Use a header file that comes with gcc, so configuring glibc
5186 # with a fresh cross-compiler works.
5187 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5188 # <limits.h> exists even on freestanding compilers.
5189 # On the NeXT, cc -E runs the code through the compiler's parser,
5190 # not just through cpp. "Syntax error" is here to catch this case.
5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h. */
5193 #ifdef __STDC__
5194 # include <limits.h>
5195 #else
5196 # include <assert.h>
5197 #endif
5198 Syntax error
5199 _ACEOF
5200 if ac_fn_cxx_try_cpp "$LINENO"; then :
5202 else
5203 # Broken: fails on valid input.
5204 continue
5206 rm -f conftest.err conftest.$ac_ext
5208 # OK, works on sane cases. Now check whether nonexistent headers
5209 # can be detected and how.
5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h. */
5212 #include <ac_nonexistent.h>
5213 _ACEOF
5214 if ac_fn_cxx_try_cpp "$LINENO"; then :
5215 # Broken: success on invalid input.
5216 continue
5217 else
5218 # Passes both tests.
5219 ac_preproc_ok=:
5220 break
5222 rm -f conftest.err conftest.$ac_ext
5224 done
5225 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5226 rm -f conftest.err conftest.$ac_ext
5227 if $ac_preproc_ok; then :
5229 else
5230 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5232 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5233 See \`config.log' for more details." "$LINENO" 5; }
5236 ac_ext=cpp
5237 ac_cpp='$CXXCPP $CPPFLAGS'
5238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5244 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5245 if test "${ac_cv_path_GREP+set}" = set; then :
5246 $as_echo_n "(cached) " >&6
5247 else
5248 if test -z "$GREP"; then
5249 ac_path_GREP_found=false
5250 # Loop through the user's path and test for each of PROGNAME-LIST
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5254 IFS=$as_save_IFS
5255 test -z "$as_dir" && as_dir=.
5256 for ac_prog in grep ggrep; do
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5259 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5260 # Check for GNU ac_path_GREP and select it if it is found.
5261 # Check for GNU $ac_path_GREP
5262 case `"$ac_path_GREP" --version 2>&1` in
5263 *GNU*)
5264 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5266 ac_count=0
5267 $as_echo_n 0123456789 >"conftest.in"
5268 while :
5270 cat "conftest.in" "conftest.in" >"conftest.tmp"
5271 mv "conftest.tmp" "conftest.in"
5272 cp "conftest.in" "conftest.nl"
5273 $as_echo 'GREP' >> "conftest.nl"
5274 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5275 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5276 as_fn_arith $ac_count + 1 && ac_count=$as_val
5277 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5278 # Best one so far, save it but keep looking for a better one
5279 ac_cv_path_GREP="$ac_path_GREP"
5280 ac_path_GREP_max=$ac_count
5282 # 10*(2^10) chars as input seems more than enough
5283 test $ac_count -gt 10 && break
5284 done
5285 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5286 esac
5288 $ac_path_GREP_found && break 3
5289 done
5290 done
5291 done
5292 IFS=$as_save_IFS
5293 if test -z "$ac_cv_path_GREP"; then
5294 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5296 else
5297 ac_cv_path_GREP=$GREP
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5302 $as_echo "$ac_cv_path_GREP" >&6; }
5303 GREP="$ac_cv_path_GREP"
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5307 $as_echo_n "checking for egrep... " >&6; }
5308 if test "${ac_cv_path_EGREP+set}" = set; then :
5309 $as_echo_n "(cached) " >&6
5310 else
5311 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5312 then ac_cv_path_EGREP="$GREP -E"
5313 else
5314 if test -z "$EGREP"; then
5315 ac_path_EGREP_found=false
5316 # Loop through the user's path and test for each of PROGNAME-LIST
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5320 IFS=$as_save_IFS
5321 test -z "$as_dir" && as_dir=.
5322 for ac_prog in egrep; do
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5325 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5326 # Check for GNU ac_path_EGREP and select it if it is found.
5327 # Check for GNU $ac_path_EGREP
5328 case `"$ac_path_EGREP" --version 2>&1` in
5329 *GNU*)
5330 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5332 ac_count=0
5333 $as_echo_n 0123456789 >"conftest.in"
5334 while :
5336 cat "conftest.in" "conftest.in" >"conftest.tmp"
5337 mv "conftest.tmp" "conftest.in"
5338 cp "conftest.in" "conftest.nl"
5339 $as_echo 'EGREP' >> "conftest.nl"
5340 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5341 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5342 as_fn_arith $ac_count + 1 && ac_count=$as_val
5343 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5344 # Best one so far, save it but keep looking for a better one
5345 ac_cv_path_EGREP="$ac_path_EGREP"
5346 ac_path_EGREP_max=$ac_count
5348 # 10*(2^10) chars as input seems more than enough
5349 test $ac_count -gt 10 && break
5350 done
5351 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5352 esac
5354 $ac_path_EGREP_found && break 3
5355 done
5356 done
5357 done
5358 IFS=$as_save_IFS
5359 if test -z "$ac_cv_path_EGREP"; then
5360 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5362 else
5363 ac_cv_path_EGREP=$EGREP
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5369 $as_echo "$ac_cv_path_EGREP" >&6; }
5370 EGREP="$ac_cv_path_EGREP"
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5374 $as_echo_n "checking for ANSI C header files... " >&6; }
5375 if test "${ac_cv_header_stdc+set}" = set; then :
5376 $as_echo_n "(cached) " >&6
5377 else
5378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379 /* end confdefs.h. */
5380 #include <stdlib.h>
5381 #include <stdarg.h>
5382 #include <string.h>
5383 #include <float.h>
5386 main ()
5390 return 0;
5392 _ACEOF
5393 if ac_fn_cxx_try_compile "$LINENO"; then :
5394 ac_cv_header_stdc=yes
5395 else
5396 ac_cv_header_stdc=no
5398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400 if test $ac_cv_header_stdc = yes; then
5401 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5404 #include <string.h>
5406 _ACEOF
5407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5408 $EGREP "memchr" >/dev/null 2>&1; then :
5410 else
5411 ac_cv_header_stdc=no
5413 rm -f conftest*
5417 if test $ac_cv_header_stdc = yes; then
5418 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5420 /* end confdefs.h. */
5421 #include <stdlib.h>
5423 _ACEOF
5424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5425 $EGREP "free" >/dev/null 2>&1; then :
5427 else
5428 ac_cv_header_stdc=no
5430 rm -f conftest*
5434 if test $ac_cv_header_stdc = yes; then
5435 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5436 if test "$cross_compiling" = yes; then :
5438 else
5439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440 /* end confdefs.h. */
5441 #include <ctype.h>
5442 #include <stdlib.h>
5443 #if ((' ' & 0x0FF) == 0x020)
5444 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5445 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5446 #else
5447 # define ISLOWER(c) \
5448 (('a' <= (c) && (c) <= 'i') \
5449 || ('j' <= (c) && (c) <= 'r') \
5450 || ('s' <= (c) && (c) <= 'z'))
5451 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5452 #endif
5454 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5456 main ()
5458 int i;
5459 for (i = 0; i < 256; i++)
5460 if (XOR (islower (i), ISLOWER (i))
5461 || toupper (i) != TOUPPER (i))
5462 return 2;
5463 return 0;
5465 _ACEOF
5466 if ac_fn_cxx_try_run "$LINENO"; then :
5468 else
5469 ac_cv_header_stdc=no
5471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5472 conftest.$ac_objext conftest.beam conftest.$ac_ext
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5478 $as_echo "$ac_cv_header_stdc" >&6; }
5479 if test $ac_cv_header_stdc = yes; then
5481 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5485 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5486 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5487 inttypes.h stdint.h unistd.h
5488 do :
5489 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5490 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5492 eval as_val=\$$as_ac_Header
5493 if test "x$as_val" = x""yes; then :
5494 cat >>confdefs.h <<_ACEOF
5495 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5496 _ACEOF
5500 done
5504 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5505 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5506 MINIX=yes
5507 else
5508 MINIX=
5512 if test "$MINIX" = yes; then
5514 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5517 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5520 $as_echo "#define _MINIX 1" >>confdefs.h
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5526 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5527 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5528 $as_echo_n "(cached) " >&6
5529 else
5530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5531 /* end confdefs.h. */
5533 # define __EXTENSIONS__ 1
5534 $ac_includes_default
5536 main ()
5540 return 0;
5542 _ACEOF
5543 if ac_fn_cxx_try_compile "$LINENO"; then :
5544 ac_cv_safe_to_define___extensions__=yes
5545 else
5546 ac_cv_safe_to_define___extensions__=no
5548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5551 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5552 test $ac_cv_safe_to_define___extensions__ = yes &&
5553 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5555 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5557 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5559 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5561 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5564 ac_ext=c
5565 ac_cpp='$CPP $CPPFLAGS'
5566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5570 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5571 # On Suns, sometimes $CPP names a directory.
5572 if test -n "$CPP" && test -d "$CPP"; then
5573 CPP=
5575 if test -z "$CPP"; then
5576 if test "${ac_cv_prog_CPP+set}" = set; then :
5577 $as_echo_n "(cached) " >&6
5578 else
5579 # Double quotes because CPP needs to be expanded
5580 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5582 ac_preproc_ok=false
5583 for ac_c_preproc_warn_flag in '' yes
5585 # Use a header file that comes with gcc, so configuring glibc
5586 # with a fresh cross-compiler works.
5587 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5588 # <limits.h> exists even on freestanding compilers.
5589 # On the NeXT, cc -E runs the code through the compiler's parser,
5590 # not just through cpp. "Syntax error" is here to catch this case.
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5593 #ifdef __STDC__
5594 # include <limits.h>
5595 #else
5596 # include <assert.h>
5597 #endif
5598 Syntax error
5599 _ACEOF
5600 if ac_fn_c_try_cpp "$LINENO"; then :
5602 else
5603 # Broken: fails on valid input.
5604 continue
5606 rm -f conftest.err conftest.$ac_ext
5608 # OK, works on sane cases. Now check whether nonexistent headers
5609 # can be detected and how.
5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h. */
5612 #include <ac_nonexistent.h>
5613 _ACEOF
5614 if ac_fn_c_try_cpp "$LINENO"; then :
5615 # Broken: success on invalid input.
5616 continue
5617 else
5618 # Passes both tests.
5619 ac_preproc_ok=:
5620 break
5622 rm -f conftest.err conftest.$ac_ext
5624 done
5625 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5626 rm -f conftest.err conftest.$ac_ext
5627 if $ac_preproc_ok; then :
5628 break
5631 done
5632 ac_cv_prog_CPP=$CPP
5635 CPP=$ac_cv_prog_CPP
5636 else
5637 ac_cv_prog_CPP=$CPP
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5640 $as_echo "$CPP" >&6; }
5641 ac_preproc_ok=false
5642 for ac_c_preproc_warn_flag in '' yes
5644 # Use a header file that comes with gcc, so configuring glibc
5645 # with a fresh cross-compiler works.
5646 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5647 # <limits.h> exists even on freestanding compilers.
5648 # On the NeXT, cc -E runs the code through the compiler's parser,
5649 # not just through cpp. "Syntax error" is here to catch this case.
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5652 #ifdef __STDC__
5653 # include <limits.h>
5654 #else
5655 # include <assert.h>
5656 #endif
5657 Syntax error
5658 _ACEOF
5659 if ac_fn_c_try_cpp "$LINENO"; then :
5661 else
5662 # Broken: fails on valid input.
5663 continue
5665 rm -f conftest.err conftest.$ac_ext
5667 # OK, works on sane cases. Now check whether nonexistent headers
5668 # can be detected and how.
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5671 #include <ac_nonexistent.h>
5672 _ACEOF
5673 if ac_fn_c_try_cpp "$LINENO"; then :
5674 # Broken: success on invalid input.
5675 continue
5676 else
5677 # Passes both tests.
5678 ac_preproc_ok=:
5679 break
5681 rm -f conftest.err conftest.$ac_ext
5683 done
5684 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5685 rm -f conftest.err conftest.$ac_ext
5686 if $ac_preproc_ok; then :
5688 else
5689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5691 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5692 See \`config.log' for more details." "$LINENO" 5; }
5695 ac_ext=cpp
5696 ac_cpp='$CXXCPP $CPPFLAGS'
5697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5702 $as_echo_n "checking for inline... " >&6; }
5703 if test "${ac_cv_c_inline+set}" = set; then :
5704 $as_echo_n "(cached) " >&6
5705 else
5706 ac_cv_c_inline=no
5707 for ac_kw in inline __inline__ __inline; do
5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5709 /* end confdefs.h. */
5710 #ifndef __cplusplus
5711 typedef int foo_t;
5712 static $ac_kw foo_t static_foo () {return 0; }
5713 $ac_kw foo_t foo () {return 0; }
5714 #endif
5716 _ACEOF
5717 if ac_fn_cxx_try_compile "$LINENO"; then :
5718 ac_cv_c_inline=$ac_kw
5720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5721 test "$ac_cv_c_inline" != no && break
5722 done
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5726 $as_echo "$ac_cv_c_inline" >&6; }
5728 case $ac_cv_c_inline in
5729 inline | yes) ;;
5731 case $ac_cv_c_inline in
5732 no) ac_val=;;
5733 *) ac_val=$ac_cv_c_inline;;
5734 esac
5735 cat >>confdefs.h <<_ACEOF
5736 #ifndef __cplusplus
5737 #define inline $ac_val
5738 #endif
5739 _ACEOF
5741 esac
5744 # Check whether --enable-largefile was given.
5745 if test "${enable_largefile+set}" = set; then :
5746 enableval=$enable_largefile;
5749 if test "$enable_largefile" != no; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5752 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5753 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5754 $as_echo_n "(cached) " >&6
5755 else
5756 ac_cv_sys_largefile_CC=no
5757 if test "$GCC" != yes; then
5758 ac_save_CC=$CC
5759 while :; do
5760 # IRIX 6.2 and later do not support large files by default,
5761 # so use the C compiler's -n32 option if that helps.
5762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5763 /* end confdefs.h. */
5764 #include <sys/types.h>
5765 /* Check that off_t can represent 2**63 - 1 correctly.
5766 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5767 since some C++ compilers masquerading as C compilers
5768 incorrectly reject 9223372036854775807. */
5769 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5770 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5771 && LARGE_OFF_T % 2147483647 == 1)
5772 ? 1 : -1];
5774 main ()
5778 return 0;
5780 _ACEOF
5781 if ac_fn_cxx_try_compile "$LINENO"; then :
5782 break
5784 rm -f core conftest.err conftest.$ac_objext
5785 CC="$CC -n32"
5786 if ac_fn_cxx_try_compile "$LINENO"; then :
5787 ac_cv_sys_largefile_CC=' -n32'; break
5789 rm -f core conftest.err conftest.$ac_objext
5790 break
5791 done
5792 CC=$ac_save_CC
5793 rm -f conftest.$ac_ext
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5797 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5798 if test "$ac_cv_sys_largefile_CC" != no; then
5799 CC=$CC$ac_cv_sys_largefile_CC
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5803 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5804 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5805 $as_echo_n "(cached) " >&6
5806 else
5807 while :; do
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5810 #include <sys/types.h>
5811 /* Check that off_t can represent 2**63 - 1 correctly.
5812 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5813 since some C++ compilers masquerading as C compilers
5814 incorrectly reject 9223372036854775807. */
5815 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5816 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5817 && LARGE_OFF_T % 2147483647 == 1)
5818 ? 1 : -1];
5820 main ()
5824 return 0;
5826 _ACEOF
5827 if ac_fn_cxx_try_compile "$LINENO"; then :
5828 ac_cv_sys_file_offset_bits=no; break
5830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832 /* end confdefs.h. */
5833 #define _FILE_OFFSET_BITS 64
5834 #include <sys/types.h>
5835 /* Check that off_t can represent 2**63 - 1 correctly.
5836 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5837 since some C++ compilers masquerading as C compilers
5838 incorrectly reject 9223372036854775807. */
5839 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5840 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5841 && LARGE_OFF_T % 2147483647 == 1)
5842 ? 1 : -1];
5844 main ()
5848 return 0;
5850 _ACEOF
5851 if ac_fn_cxx_try_compile "$LINENO"; then :
5852 ac_cv_sys_file_offset_bits=64; break
5854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855 ac_cv_sys_file_offset_bits=unknown
5856 break
5857 done
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5860 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5861 case $ac_cv_sys_file_offset_bits in #(
5862 no | unknown) ;;
5864 cat >>confdefs.h <<_ACEOF
5865 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5866 _ACEOF
5868 esac
5869 rm -rf conftest*
5870 if test $ac_cv_sys_file_offset_bits = unknown; then
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5872 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5873 if test "${ac_cv_sys_large_files+set}" = set; then :
5874 $as_echo_n "(cached) " >&6
5875 else
5876 while :; do
5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878 /* end confdefs.h. */
5879 #include <sys/types.h>
5880 /* Check that off_t can represent 2**63 - 1 correctly.
5881 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5882 since some C++ compilers masquerading as C compilers
5883 incorrectly reject 9223372036854775807. */
5884 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5885 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5886 && LARGE_OFF_T % 2147483647 == 1)
5887 ? 1 : -1];
5889 main ()
5893 return 0;
5895 _ACEOF
5896 if ac_fn_cxx_try_compile "$LINENO"; then :
5897 ac_cv_sys_large_files=no; break
5899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5901 /* end confdefs.h. */
5902 #define _LARGE_FILES 1
5903 #include <sys/types.h>
5904 /* Check that off_t can represent 2**63 - 1 correctly.
5905 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5906 since some C++ compilers masquerading as C compilers
5907 incorrectly reject 9223372036854775807. */
5908 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5909 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5910 && LARGE_OFF_T % 2147483647 == 1)
5911 ? 1 : -1];
5913 main ()
5917 return 0;
5919 _ACEOF
5920 if ac_fn_cxx_try_compile "$LINENO"; then :
5921 ac_cv_sys_large_files=1; break
5923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5924 ac_cv_sys_large_files=unknown
5925 break
5926 done
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5929 $as_echo "$ac_cv_sys_large_files" >&6; }
5930 case $ac_cv_sys_large_files in #(
5931 no | unknown) ;;
5933 cat >>confdefs.h <<_ACEOF
5934 #define _LARGE_FILES $ac_cv_sys_large_files
5935 _ACEOF
5937 esac
5938 rm -rf conftest*
5943 # sizeof(char) is 1 by definition.
5944 # The cast to long int works around a bug in the HP C Compiler
5945 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5946 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5947 # This bug is HP SR number 8606223364.
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5949 $as_echo_n "checking size of void *... " >&6; }
5950 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5951 $as_echo_n "(cached) " >&6
5952 else
5953 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5955 else
5956 if test "$ac_cv_type_void_p" = yes; then
5957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5959 { as_fn_set_status 77
5960 as_fn_error "cannot compute sizeof (void *)
5961 See \`config.log' for more details." "$LINENO" 5; }; }
5962 else
5963 ac_cv_sizeof_void_p=0
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5969 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5973 cat >>confdefs.h <<_ACEOF
5974 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5975 _ACEOF
5978 # The cast to long int works around a bug in the HP C Compiler
5979 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5980 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5981 # This bug is HP SR number 8606223364.
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5983 $as_echo_n "checking size of short... " >&6; }
5984 if test "${ac_cv_sizeof_short+set}" = set; then :
5985 $as_echo_n "(cached) " >&6
5986 else
5987 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5989 else
5990 if test "$ac_cv_type_short" = yes; then
5991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5993 { as_fn_set_status 77
5994 as_fn_error "cannot compute sizeof (short)
5995 See \`config.log' for more details." "$LINENO" 5; }; }
5996 else
5997 ac_cv_sizeof_short=0
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6003 $as_echo "$ac_cv_sizeof_short" >&6; }
6007 cat >>confdefs.h <<_ACEOF
6008 #define SIZEOF_SHORT $ac_cv_sizeof_short
6009 _ACEOF
6012 # The cast to long int works around a bug in the HP C Compiler
6013 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6014 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6015 # This bug is HP SR number 8606223364.
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6017 $as_echo_n "checking size of int... " >&6; }
6018 if test "${ac_cv_sizeof_int+set}" = set; then :
6019 $as_echo_n "(cached) " >&6
6020 else
6021 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6023 else
6024 if test "$ac_cv_type_int" = yes; then
6025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6027 { as_fn_set_status 77
6028 as_fn_error "cannot compute sizeof (int)
6029 See \`config.log' for more details." "$LINENO" 5; }; }
6030 else
6031 ac_cv_sizeof_int=0
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6037 $as_echo "$ac_cv_sizeof_int" >&6; }
6041 cat >>confdefs.h <<_ACEOF
6042 #define SIZEOF_INT $ac_cv_sizeof_int
6043 _ACEOF
6046 # The cast to long int works around a bug in the HP C Compiler
6047 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6048 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6049 # This bug is HP SR number 8606223364.
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6051 $as_echo_n "checking size of long... " >&6; }
6052 if test "${ac_cv_sizeof_long+set}" = set; then :
6053 $as_echo_n "(cached) " >&6
6054 else
6055 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6057 else
6058 if test "$ac_cv_type_long" = yes; then
6059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6061 { as_fn_set_status 77
6062 as_fn_error "cannot compute sizeof (long)
6063 See \`config.log' for more details." "$LINENO" 5; }; }
6064 else
6065 ac_cv_sizeof_long=0
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6071 $as_echo "$ac_cv_sizeof_long" >&6; }
6075 cat >>confdefs.h <<_ACEOF
6076 #define SIZEOF_LONG $ac_cv_sizeof_long
6077 _ACEOF
6080 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6081 if test "x$ac_cv_type_long_long" = x""yes; then :
6083 cat >>confdefs.h <<_ACEOF
6084 #define HAVE_LONG_LONG 1
6085 _ACEOF
6087 # The cast to long int works around a bug in the HP C Compiler
6088 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6089 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6090 # This bug is HP SR number 8606223364.
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6092 $as_echo_n "checking size of long long... " >&6; }
6093 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6094 $as_echo_n "(cached) " >&6
6095 else
6096 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6098 else
6099 if test "$ac_cv_type_long_long" = yes; then
6100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6102 { as_fn_set_status 77
6103 as_fn_error "cannot compute sizeof (long long)
6104 See \`config.log' for more details." "$LINENO" 5; }; }
6105 else
6106 ac_cv_sizeof_long_long=0
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6112 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6116 cat >>confdefs.h <<_ACEOF
6117 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6118 _ACEOF
6123 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6124 case $ac_cv_c_int8_t in #(
6125 no|yes) ;; #(
6128 cat >>confdefs.h <<_ACEOF
6129 #define int8_t $ac_cv_c_int8_t
6130 _ACEOF
6132 esac
6134 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6135 case $ac_cv_c_int16_t in #(
6136 no|yes) ;; #(
6139 cat >>confdefs.h <<_ACEOF
6140 #define int16_t $ac_cv_c_int16_t
6141 _ACEOF
6143 esac
6145 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6146 case $ac_cv_c_int32_t in #(
6147 no|yes) ;; #(
6150 cat >>confdefs.h <<_ACEOF
6151 #define int32_t $ac_cv_c_int32_t
6152 _ACEOF
6154 esac
6156 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6157 case $ac_cv_c_int64_t in #(
6158 no|yes) ;; #(
6161 cat >>confdefs.h <<_ACEOF
6162 #define int64_t $ac_cv_c_int64_t
6163 _ACEOF
6165 esac
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6169 $as_echo_n "checking for long long int... " >&6; }
6170 if test "${ac_cv_type_long_long_int+set}" = set; then :
6171 $as_echo_n "(cached) " >&6
6172 else
6173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174 /* end confdefs.h. */
6176 /* For now, do not test the preprocessor; as of 2007 there are too many
6177 implementations with broken preprocessors. Perhaps this can
6178 be revisited in 2012. In the meantime, code should not expect
6179 #if to work with literals wider than 32 bits. */
6180 /* Test literals. */
6181 long long int ll = 9223372036854775807ll;
6182 long long int nll = -9223372036854775807LL;
6183 unsigned long long int ull = 18446744073709551615ULL;
6184 /* Test constant expressions. */
6185 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6186 ? 1 : -1)];
6187 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6188 ? 1 : -1)];
6189 int i = 63;
6191 main ()
6193 /* Test availability of runtime routines for shift and division. */
6194 long long int llmax = 9223372036854775807ll;
6195 unsigned long long int ullmax = 18446744073709551615ull;
6196 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6197 | (llmax / ll) | (llmax % ll)
6198 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6199 | (ullmax / ull) | (ullmax % ull));
6201 return 0;
6204 _ACEOF
6205 if ac_fn_cxx_try_link "$LINENO"; then :
6206 if test "$cross_compiling" = yes; then :
6207 ac_cv_type_long_long_int=yes
6208 else
6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210 /* end confdefs.h. */
6211 #include <limits.h>
6212 #ifndef LLONG_MAX
6213 # define HALF \
6214 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6215 # define LLONG_MAX (HALF - 1 + HALF)
6216 #endif
6218 main ()
6220 long long int n = 1;
6221 int i;
6222 for (i = 0; ; i++)
6224 long long int m = n << i;
6225 if (m >> i != n)
6226 return 1;
6227 if (LLONG_MAX / 2 < m)
6228 break;
6230 return 0;
6232 return 0;
6234 _ACEOF
6235 if ac_fn_cxx_try_run "$LINENO"; then :
6236 ac_cv_type_long_long_int=yes
6237 else
6238 ac_cv_type_long_long_int=no
6240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6241 conftest.$ac_objext conftest.beam conftest.$ac_ext
6244 else
6245 ac_cv_type_long_long_int=no
6247 rm -f core conftest.err conftest.$ac_objext \
6248 conftest$ac_exeext conftest.$ac_ext
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6251 $as_echo "$ac_cv_type_long_long_int" >&6; }
6252 if test $ac_cv_type_long_long_int = yes; then
6254 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6260 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6261 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6263 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6265 else
6266 test $ac_cv_type_long_long_int = yes \
6267 && ac_type='long long int' \
6268 || ac_type='long int'
6270 cat >>confdefs.h <<_ACEOF
6271 #define intmax_t $ac_type
6272 _ACEOF
6278 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6279 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6281 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6283 else
6284 for ac_type in 'int' 'long int' 'long long int'; do
6285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h. */
6287 $ac_includes_default
6289 main ()
6291 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6292 test_array [0] = 0
6295 return 0;
6297 _ACEOF
6298 if ac_fn_cxx_try_compile "$LINENO"; then :
6300 cat >>confdefs.h <<_ACEOF
6301 #define intptr_t $ac_type
6302 _ACEOF
6304 ac_type=
6306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6307 test -z "$ac_type" && break
6308 done
6312 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6313 case $ac_cv_c_uint8_t in #(
6314 no|yes) ;; #(
6317 $as_echo "#define _UINT8_T 1" >>confdefs.h
6320 cat >>confdefs.h <<_ACEOF
6321 #define uint8_t $ac_cv_c_uint8_t
6322 _ACEOF
6324 esac
6326 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6327 case $ac_cv_c_uint16_t in #(
6328 no|yes) ;; #(
6332 cat >>confdefs.h <<_ACEOF
6333 #define uint16_t $ac_cv_c_uint16_t
6334 _ACEOF
6336 esac
6338 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6339 case $ac_cv_c_uint32_t in #(
6340 no|yes) ;; #(
6343 $as_echo "#define _UINT32_T 1" >>confdefs.h
6346 cat >>confdefs.h <<_ACEOF
6347 #define uint32_t $ac_cv_c_uint32_t
6348 _ACEOF
6350 esac
6352 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6353 case $ac_cv_c_uint64_t in #(
6354 no|yes) ;; #(
6357 $as_echo "#define _UINT64_T 1" >>confdefs.h
6360 cat >>confdefs.h <<_ACEOF
6361 #define uint64_t $ac_cv_c_uint64_t
6362 _ACEOF
6364 esac
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6368 $as_echo_n "checking for unsigned long long int... " >&6; }
6369 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6370 $as_echo_n "(cached) " >&6
6371 else
6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6373 /* end confdefs.h. */
6375 /* For now, do not test the preprocessor; as of 2007 there are too many
6376 implementations with broken preprocessors. Perhaps this can
6377 be revisited in 2012. In the meantime, code should not expect
6378 #if to work with literals wider than 32 bits. */
6379 /* Test literals. */
6380 long long int ll = 9223372036854775807ll;
6381 long long int nll = -9223372036854775807LL;
6382 unsigned long long int ull = 18446744073709551615ULL;
6383 /* Test constant expressions. */
6384 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6385 ? 1 : -1)];
6386 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6387 ? 1 : -1)];
6388 int i = 63;
6390 main ()
6392 /* Test availability of runtime routines for shift and division. */
6393 long long int llmax = 9223372036854775807ll;
6394 unsigned long long int ullmax = 18446744073709551615ull;
6395 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6396 | (llmax / ll) | (llmax % ll)
6397 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6398 | (ullmax / ull) | (ullmax % ull));
6400 return 0;
6403 _ACEOF
6404 if ac_fn_cxx_try_link "$LINENO"; then :
6405 ac_cv_type_unsigned_long_long_int=yes
6406 else
6407 ac_cv_type_unsigned_long_long_int=no
6409 rm -f core conftest.err conftest.$ac_objext \
6410 conftest$ac_exeext conftest.$ac_ext
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6413 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6414 if test $ac_cv_type_unsigned_long_long_int = yes; then
6416 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6422 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6423 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6425 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6427 else
6428 test $ac_cv_type_unsigned_long_long_int = yes \
6429 && ac_type='unsigned long long int' \
6430 || ac_type='unsigned long int'
6432 cat >>confdefs.h <<_ACEOF
6433 #define uintmax_t $ac_type
6434 _ACEOF
6440 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6441 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6443 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6445 else
6446 for ac_type in 'unsigned int' 'unsigned long int' \
6447 'unsigned long long int'; do
6448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6449 /* end confdefs.h. */
6450 $ac_includes_default
6452 main ()
6454 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6455 test_array [0] = 0
6458 return 0;
6460 _ACEOF
6461 if ac_fn_cxx_try_compile "$LINENO"; then :
6463 cat >>confdefs.h <<_ACEOF
6464 #define uintptr_t $ac_type
6465 _ACEOF
6467 ac_type=
6469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6470 test -z "$ac_type" && break
6471 done
6487 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6488 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6491 # check what underlying integer type int64_t uses
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6493 $as_echo_n "checking for int64_t underlying type... " >&6; }
6494 if test "${ac_cv_int64_t_type+set}" = set; then :
6495 $as_echo_n "(cached) " >&6
6496 else
6498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6499 /* end confdefs.h. */
6501 #ifdef HAVE_STDINT_H
6502 #include <stdint.h>
6503 #endif
6504 template <typename T> struct X { };
6505 template <>
6506 struct X<long> { typedef long t; };
6509 main ()
6511 X<int64_t>::t x;
6513 return 0;
6515 _ACEOF
6516 if ac_fn_cxx_try_compile "$LINENO"; then :
6517 ac_cv_int64_t_type=long
6518 else
6519 ac_cv_int64_t_type="long long"
6521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6524 $as_echo "$ac_cv_int64_t_type" >&6; }
6525 if test "$ac_cv_int64_t_type" = "long"; then
6527 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6529 else
6530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531 /* end confdefs.h. */
6533 #ifdef HAVE_STDINT_H
6534 #include <stdint.h>
6535 #endif
6536 template <typename T> struct X { };
6537 template <>
6538 struct X<long long> { typedef long long t; };
6541 main ()
6543 X<int64_t>::t x;
6545 return 0;
6547 _ACEOF
6548 if ac_fn_cxx_try_compile "$LINENO"; then :
6550 else
6551 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6557 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6558 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6559 $as_echo_n "(cached) " >&6
6560 else
6562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563 /* end confdefs.h. */
6565 #include <utility>
6568 main ()
6570 int a, b; std::swap(a,b);
6572 return 0;
6574 _ACEOF
6575 if ac_fn_cxx_try_compile "$LINENO"; then :
6576 ac_cv_std_swap_in_utility=yes
6577 else
6578 ac_cv_std_swap_in_utility=no
6580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6583 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6584 if test $ac_cv_std_swap_in_utility = yes; then
6586 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6590 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6591 # If the host compiler is affected by the bug, and we build with optimization
6592 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6593 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6594 # Since there is no reliable feature check for the presence of this bug,
6595 # we simply use a GCC version number check. (This should never trigger for
6596 # stages 2 or 3 of a native bootstrap.)
6597 aliasing_flags=
6598 if test "$GCC" = yes; then
6599 saved_CXXFLAGS="$CXXFLAGS"
6601 # The following test compilation will succeed if and only if $CXX accepts
6602 # -fno-strict-aliasing *and* is older than GCC 4.3.
6603 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6605 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h. */
6609 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6610 #error compiler not affected by placement new aliasing bug
6611 #endif
6613 _ACEOF
6614 if ac_fn_cxx_try_compile "$LINENO"; then :
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6616 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6617 else
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619 $as_echo "no" >&6; }
6621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6623 CXXFLAGS="$saved_CXXFLAGS"
6629 # ---------------------
6630 # Warnings and checking
6631 # ---------------------
6633 # Check $CC warning features (if it's GCC).
6634 # We want to use -pedantic, but we don't want warnings about
6635 # * 'long long'
6636 # * variadic macros
6637 # * overlong strings
6638 # * C++11 narrowing conversions in { }
6639 # So, we only use -pedantic if we can disable those warnings.
6641 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6642 # Check whether --enable-build-format-warnings was given.
6643 if test "${enable_build_format_warnings+set}" = set; then :
6644 enableval=$enable_build_format_warnings;
6645 else
6646 enable_build_format_warnings=yes
6649 if test $enable_build_format_warnings = no; then :
6650 wf_opt=-Wno-format
6651 else
6652 wf_opt=
6654 ac_ext=cpp
6655 ac_cpp='$CXXCPP $CPPFLAGS'
6656 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6657 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6660 loose_warn=
6661 save_CXXFLAGS="$CXXFLAGS"
6662 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6663 # Do the check with the no- prefix removed since gcc silently
6664 # accepts any -Wno-* option on purpose
6665 case $real_option in
6666 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6667 *) option=$real_option ;;
6668 esac
6669 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6672 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6673 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6674 $as_echo_n "(cached) " >&6
6675 else
6676 CXXFLAGS="$option"
6677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678 /* end confdefs.h. */
6681 main ()
6685 return 0;
6687 _ACEOF
6688 if ac_fn_cxx_try_compile "$LINENO"; then :
6689 eval "$as_acx_Woption=yes"
6690 else
6691 eval "$as_acx_Woption=no"
6693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6696 eval ac_res=\$$as_acx_Woption
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6698 $as_echo "$ac_res" >&6; }
6699 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6700 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6702 done
6703 CXXFLAGS="$save_CXXFLAGS"
6704 ac_ext=cpp
6705 ac_cpp='$CXXCPP $CPPFLAGS'
6706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6712 ac_ext=c
6713 ac_cpp='$CPP $CPPFLAGS'
6714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6718 c_loose_warn=
6719 save_CFLAGS="$CFLAGS"
6720 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6721 # Do the check with the no- prefix removed since gcc silently
6722 # accepts any -Wno-* option on purpose
6723 case $real_option in
6724 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6725 *) option=$real_option ;;
6726 esac
6727 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6730 $as_echo_n "checking whether $CC supports $option... " >&6; }
6731 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6732 $as_echo_n "(cached) " >&6
6733 else
6734 CFLAGS="$option"
6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h. */
6739 main ()
6743 return 0;
6745 _ACEOF
6746 if ac_fn_c_try_compile "$LINENO"; then :
6747 eval "$as_acx_Woption=yes"
6748 else
6749 eval "$as_acx_Woption=no"
6751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6754 eval ac_res=\$$as_acx_Woption
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6756 $as_echo "$ac_res" >&6; }
6757 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6758 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6760 done
6761 CFLAGS="$save_CFLAGS"
6762 ac_ext=cpp
6763 ac_cpp='$CXXCPP $CPPFLAGS'
6764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6769 ac_ext=cpp
6770 ac_cpp='$CXXCPP $CPPFLAGS'
6771 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6772 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6773 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6775 strict_warn=
6776 save_CXXFLAGS="$CXXFLAGS"
6777 for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do
6778 # Do the check with the no- prefix removed since gcc silently
6779 # accepts any -Wno-* option on purpose
6780 case $real_option in
6781 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6782 *) option=$real_option ;;
6783 esac
6784 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6787 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6788 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6789 $as_echo_n "(cached) " >&6
6790 else
6791 CXXFLAGS="$option"
6792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6793 /* end confdefs.h. */
6796 main ()
6800 return 0;
6802 _ACEOF
6803 if ac_fn_cxx_try_compile "$LINENO"; then :
6804 eval "$as_acx_Woption=yes"
6805 else
6806 eval "$as_acx_Woption=no"
6808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6811 eval ac_res=\$$as_acx_Woption
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6813 $as_echo "$ac_res" >&6; }
6814 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6815 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6817 done
6818 CXXFLAGS="$save_CXXFLAGS"
6819 ac_ext=cpp
6820 ac_cpp='$CXXCPP $CPPFLAGS'
6821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6826 ac_ext=c
6827 ac_cpp='$CPP $CPPFLAGS'
6828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6832 c_strict_warn=
6833 save_CFLAGS="$CFLAGS"
6834 for real_option in -Wold-style-definition -Wc++-compat; do
6835 # Do the check with the no- prefix removed since gcc silently
6836 # accepts any -Wno-* option on purpose
6837 case $real_option in
6838 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6839 *) option=$real_option ;;
6840 esac
6841 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6844 $as_echo_n "checking whether $CC supports $option... " >&6; }
6845 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6846 $as_echo_n "(cached) " >&6
6847 else
6848 CFLAGS="$option"
6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6853 main ()
6857 return 0;
6859 _ACEOF
6860 if ac_fn_c_try_compile "$LINENO"; then :
6861 eval "$as_acx_Woption=yes"
6862 else
6863 eval "$as_acx_Woption=no"
6865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6868 eval ac_res=\$$as_acx_Woption
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6870 $as_echo "$ac_res" >&6; }
6871 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6872 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6874 done
6875 CFLAGS="$save_CFLAGS"
6876 ac_ext=cpp
6877 ac_cpp='$CXXCPP $CPPFLAGS'
6878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6883 ac_ext=cpp
6884 ac_cpp='$CXXCPP $CPPFLAGS'
6885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6889 # Do the check with the no- prefix removed from the warning options
6890 # since gcc silently accepts any -Wno-* option on purpose
6891 if test "$GXX" = yes; then :
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6893 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6894 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6895 $as_echo_n "(cached) " >&6
6896 else
6897 save_CXXFLAGS="$CXXFLAGS"
6898 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900 /* end confdefs.h. */
6903 main ()
6907 return 0;
6909 _ACEOF
6910 if ac_fn_cxx_try_compile "$LINENO"; then :
6911 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6912 else
6913 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6916 CXXFLAGS="$save_CXXFLAGS"
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6919 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6920 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6921 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6925 ac_ext=cpp
6926 ac_cpp='$CXXCPP $CPPFLAGS'
6927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6932 ac_ext=cpp
6933 ac_cpp='$CXXCPP $CPPFLAGS'
6934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6938 # Check whether --enable-werror-always was given.
6939 if test "${enable_werror_always+set}" = set; then :
6940 enableval=$enable_werror_always;
6941 else
6942 enable_werror_always=no
6945 if test $enable_werror_always = yes; then :
6946 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6949 ac_ext=cpp
6950 ac_cpp='$CXXCPP $CPPFLAGS'
6951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6957 # The above macros do nothing if the compiler is not GCC. However, the
6958 # Makefile has more goo to add other flags, so these variables are used
6959 # to enable warnings only for GCC.
6960 warn_cflags=
6961 warn_cxxflags=
6962 if test "x$GCC" = "xyes"; then
6963 warn_cflags='$(GCC_WARN_CFLAGS)'
6964 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6969 # Disable exceptions and RTTI if building with g++
6970 ac_ext=c
6971 ac_cpp='$CPP $CPPFLAGS'
6972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6976 noexception_flags=
6977 save_CFLAGS="$CFLAGS"
6978 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6979 # Do the check with the no- prefix removed since gcc silently
6980 # accepts any -Wno-* option on purpose
6981 case $real_option in
6982 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6983 *) option=$real_option ;;
6984 esac
6985 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6988 $as_echo_n "checking whether $CC supports $option... " >&6; }
6989 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6990 $as_echo_n "(cached) " >&6
6991 else
6992 CFLAGS="$option"
6993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994 /* end confdefs.h. */
6997 main ()
7001 return 0;
7003 _ACEOF
7004 if ac_fn_c_try_compile "$LINENO"; then :
7005 eval "$as_acx_Woption=yes"
7006 else
7007 eval "$as_acx_Woption=no"
7009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7012 eval ac_res=\$$as_acx_Woption
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7014 $as_echo "$ac_res" >&6; }
7015 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7016 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7018 done
7019 CFLAGS="$save_CFLAGS"
7020 ac_ext=cpp
7021 ac_cpp='$CXXCPP $CPPFLAGS'
7022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7028 # Enable expensive internal checks
7029 is_release=
7030 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7031 is_release=yes
7034 # Check whether --enable-checking was given.
7035 if test "${enable_checking+set}" = set; then :
7036 enableval=$enable_checking; ac_checking_flags="${enableval}"
7037 else
7039 # Determine the default checks.
7040 if test x$is_release = x ; then
7041 ac_checking_flags=yes,extra
7042 else
7043 ac_checking_flags=release
7047 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7048 for check in release $ac_checking_flags
7050 case $check in
7051 # these set all the flags to specific states
7052 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7053 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7054 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7055 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7056 ac_tree_checking=1 ; ac_valgrind_checking= ;
7057 ac_types_checking=1 ;;
7058 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7059 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7060 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7061 ac_rtlflag_checking= ; ac_runtime_checking= ;
7062 ac_tree_checking= ; ac_valgrind_checking= ;
7063 ac_types_checking= ;;
7064 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7065 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7066 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7067 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7068 ac_tree_checking=1 ; ac_valgrind_checking= ;
7069 ac_types_checking=1 ;;
7070 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7071 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7072 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7073 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7074 ac_tree_checking= ; ac_valgrind_checking= ;
7075 ac_types_checking= ;;
7076 # these enable particular checks
7077 assert) ac_assert_checking=1 ;;
7078 df) ac_df_checking=1 ;;
7079 extra) ac_extra_checking=1 ;;
7080 fold) ac_fold_checking=1 ;;
7081 gc) ac_gc_checking=1 ;;
7082 gcac) ac_gc_always_collect=1 ;;
7083 gimple) ac_gimple_checking=1 ;;
7084 misc) ac_checking=1 ;;
7085 rtl) ac_rtl_checking=1 ;;
7086 rtlflag) ac_rtlflag_checking=1 ;;
7087 runtime) ac_runtime_checking=1 ;;
7088 tree) ac_tree_checking=1 ;;
7089 types) ac_types_checking=1 ;;
7090 valgrind) ac_valgrind_checking=1 ;;
7091 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7092 esac
7093 done
7094 IFS="$ac_save_IFS"
7096 nocommon_flag=""
7097 if test x$ac_checking != x ; then
7099 $as_echo "#define CHECKING_P 1" >>confdefs.h
7101 nocommon_flag=-fno-common
7102 else
7103 $as_echo "#define CHECKING_P 0" >>confdefs.h
7107 if test x$ac_extra_checking != x ; then
7109 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7111 else
7112 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7115 if test x$ac_df_checking != x ; then
7117 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7120 if test x$ac_assert_checking != x ; then
7122 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7125 if test x$ac_gimple_checking != x ; then
7127 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7131 if test x$ac_runtime_checking != x ; then
7133 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7136 if test x$ac_tree_checking != x ; then
7138 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7140 TREECHECKING=yes
7142 if test x$ac_types_checking != x ; then
7144 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7148 if test x$ac_rtl_checking != x ; then
7150 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7153 if test x$ac_rtlflag_checking != x ; then
7155 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7158 if test x$ac_gc_checking != x ; then
7160 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7163 if test x$ac_gc_always_collect != x ; then
7165 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7168 if test x$ac_fold_checking != x ; then
7170 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7173 valgrind_path_defines=
7174 valgrind_command=
7176 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7177 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7178 have_valgrind_h=yes
7179 else
7180 have_valgrind_h=no
7185 # It is certainly possible that there's valgrind but no valgrind.h.
7186 # GCC relies on making annotations so we must have both.
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7188 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7191 #include <valgrind/memcheck.h>
7192 #ifndef VALGRIND_DISCARD
7193 #error VALGRIND_DISCARD not defined
7194 #endif
7195 _ACEOF
7196 if ac_fn_cxx_try_cpp "$LINENO"; then :
7197 gcc_cv_header_valgrind_memcheck_h=yes
7198 else
7199 gcc_cv_header_valgrind_memcheck_h=no
7201 rm -f conftest.err conftest.$ac_ext
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7203 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7205 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7207 /* end confdefs.h. */
7208 #include <memcheck.h>
7209 #ifndef VALGRIND_DISCARD
7210 #error VALGRIND_DISCARD not defined
7211 #endif
7212 _ACEOF
7213 if ac_fn_cxx_try_cpp "$LINENO"; then :
7214 gcc_cv_header_memcheck_h=yes
7215 else
7216 gcc_cv_header_memcheck_h=no
7218 rm -f conftest.err conftest.$ac_ext
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7220 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7221 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7223 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7226 if test $gcc_cv_header_memcheck_h = yes; then
7228 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7232 if test x$ac_valgrind_checking != x ; then
7234 # Prepare PATH_SEPARATOR.
7235 # The user is always right.
7236 if test "${PATH_SEPARATOR+set}" != set; then
7237 echo "#! /bin/sh" >conf$$.sh
7238 echo "exit 0" >>conf$$.sh
7239 chmod +x conf$$.sh
7240 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7241 PATH_SEPARATOR=';'
7242 else
7243 PATH_SEPARATOR=:
7245 rm -f conf$$.sh
7248 # Find out how to test for executable files. Don't use a zero-byte file,
7249 # as systems may use methods other than mode bits to determine executability.
7250 cat >conf$$.file <<_ASEOF
7251 #! /bin/sh
7252 exit 0
7253 _ASEOF
7254 chmod +x conf$$.file
7255 if test -x conf$$.file >/dev/null 2>&1; then
7256 ac_executable_p="test -x"
7257 else
7258 ac_executable_p="test -f"
7260 rm -f conf$$.file
7262 # Extract the first word of "valgrind", so it can be a program name with args.
7263 set dummy valgrind; ac_word=$2
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7265 $as_echo_n "checking for $ac_word... " >&6; }
7266 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7267 $as_echo_n "(cached) " >&6
7268 else
7269 case "$valgrind_path" in
7270 [\\/]* | ?:[\\/]*)
7271 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7274 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7275 for ac_dir in $PATH; do
7276 IFS="$ac_save_IFS"
7277 test -z "$ac_dir" && ac_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7280 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7281 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7282 break 2
7285 done
7286 done
7287 IFS="$ac_save_IFS"
7289 esac
7291 valgrind_path="$ac_cv_path_valgrind_path"
7292 if test -n "$valgrind_path"; then
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7294 $as_echo "$valgrind_path" >&6; }
7295 else
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7297 $as_echo "no" >&6; }
7300 if test "x$valgrind_path" = "x" \
7301 || (test $have_valgrind_h = no \
7302 && test $gcc_cv_header_memcheck_h = no \
7303 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7304 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7306 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7307 valgrind_command="$valgrind_path -q"
7309 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7315 # Enable code coverage collection
7316 # Check whether --enable-coverage was given.
7317 if test "${enable_coverage+set}" = set; then :
7318 enableval=$enable_coverage; case "${enableval}" in
7319 yes|noopt)
7320 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7322 opt)
7323 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7326 # a.k.a. --disable-coverage
7327 coverage_flags=""
7330 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7332 esac
7333 else
7334 coverage_flags=""
7339 # Check whether --enable-gather-detailed-mem-stats was given.
7340 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7341 enableval=$enable_gather_detailed_mem_stats;
7342 else
7343 enable_gather_detailed_mem_stats=no
7346 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7348 cat >>confdefs.h <<_ACEOF
7349 #define GATHER_STATISTICS $gather_stats
7350 _ACEOF
7353 # Check whether --enable-valgrind-annotations was given.
7354 if test "${enable_valgrind_annotations+set}" = set; then :
7355 enableval=$enable_valgrind_annotations;
7356 else
7357 enable_valgrind_annotations=no
7360 if test x$enable_valgrind_annotations != xno \
7361 || test x$ac_valgrind_checking != x; then
7362 if (test $have_valgrind_h = no \
7363 && test $gcc_cv_header_memcheck_h = no \
7364 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7365 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7368 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7372 # -------------------------------
7373 # Miscenalleous configure options
7374 # -------------------------------
7376 # With stabs
7378 # Check whether --with-stabs was given.
7379 if test "${with_stabs+set}" = set; then :
7380 withval=$with_stabs; stabs="$with_stabs"
7381 else
7382 stabs=no
7386 # Determine whether or not multilibs are enabled.
7387 # Check whether --enable-multilib was given.
7388 if test "${enable_multilib+set}" = set; then :
7389 enableval=$enable_multilib;
7390 else
7391 enable_multilib=yes
7396 # Determine whether or not multiarch is enabled.
7397 # Check whether --enable-multiarch was given.
7398 if test "${enable_multiarch+set}" = set; then :
7399 enableval=$enable_multiarch; case "${enableval}" in
7400 yes|no|auto) enable_multiarch=$enableval;;
7401 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7402 esac
7403 else
7404 enable_multiarch=auto
7407 if test x${enable_multiarch} = xauto; then
7408 if test x${with_native_system_header_dir} != x; then
7409 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7410 enable_multiarch=no
7412 if test x$host != x$target && test "x$with_sysroot" = x; then
7413 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7414 enable_multiarch=no
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7418 $as_echo_n "checking for multiarch configuration... " >&6; }
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7421 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7423 # needed for setting the multiarch name for soft-float/hard-float ABIs
7427 # Enable __cxa_atexit for C++.
7428 # Check whether --enable-__cxa_atexit was given.
7429 if test "${enable___cxa_atexit+set}" = set; then :
7430 enableval=$enable___cxa_atexit;
7434 # Enable C extension for decimal float if target supports it.
7436 # Check whether --enable-decimal-float was given.
7437 if test "${enable_decimal_float+set}" = set; then :
7438 enableval=$enable_decimal_float;
7439 case $enable_decimal_float in
7440 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7441 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7442 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7443 esac
7445 else
7447 case $target in
7448 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7449 i?86*-*-elfiamcu | i?86*-*-gnu* | \
7450 i?86*-*-mingw* | x86_64*-*-mingw* | \
7451 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7452 enable_decimal_float=yes
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7456 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7457 enable_decimal_float=no
7459 esac
7464 # x86's use BID format instead of DPD
7465 case x$enable_decimal_float in
7466 xyes)
7467 case $target in
7468 i?86*-*-* | x86_64*-*-*)
7469 enable_decimal_float=bid
7472 enable_decimal_float=dpd
7474 esac
7475 default_decimal_float=$enable_decimal_float
7477 xno)
7478 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7479 # dependency on libdecnumber.
7480 default_decimal_float=dpd
7482 esac
7487 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7489 cat >>confdefs.h <<_ACEOF
7490 #define ENABLE_DECIMAL_FLOAT $dfp
7491 _ACEOF
7494 # Use default_decimal_float for dependency.
7495 enable_decimal_float=$default_decimal_float
7497 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7499 cat >>confdefs.h <<_ACEOF
7500 #define ENABLE_DECIMAL_BID_FORMAT $bid
7501 _ACEOF
7504 # Enable C extension for fixed-point arithmetic.
7505 # Check whether --enable-fixed-point was given.
7506 if test "${enable_fixed_point+set}" = set; then :
7507 enableval=$enable_fixed_point;
7508 else
7510 case $target in
7511 arm*)
7512 enable_fixed_point=yes
7515 mips*-*-*)
7516 enable_fixed_point=yes
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7520 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7521 enable_fixed_point=no
7523 esac
7529 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7531 cat >>confdefs.h <<_ACEOF
7532 #define ENABLE_FIXED_POINT $fixedpoint
7533 _ACEOF
7536 # Enable threads
7537 # Pass with no value to take the default
7538 # Pass with a value to specify a thread package
7539 # Check whether --enable-threads was given.
7540 if test "${enable_threads+set}" = set; then :
7541 enableval=$enable_threads;
7542 else
7543 enable_threads=''
7547 # Check whether --enable-tls was given.
7548 if test "${enable_tls+set}" = set; then :
7549 enableval=$enable_tls;
7550 case $enable_tls in
7551 yes | no) ;;
7552 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7553 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7554 esac
7556 else
7557 enable_tls=''
7561 # Check whether --enable-vtable-verify was given.
7562 if test "${enable_vtable_verify+set}" = set; then :
7563 enableval=$enable_vtable_verify;
7564 else
7565 enable_vtable_verify=no
7568 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7570 cat >>confdefs.h <<_ACEOF
7571 #define ENABLE_VTABLE_VERIFY $vtable_verify
7572 _ACEOF
7575 # Check whether --enable-objc-gc was given.
7576 if test "${enable_objc_gc+set}" = set; then :
7577 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7578 objc_boehm_gc=''
7579 else
7580 objc_boehm_gc=1
7582 else
7583 objc_boehm_gc=''
7588 # Check whether --with-dwarf2 was given.
7589 if test "${with_dwarf2+set}" = set; then :
7590 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7591 else
7592 dwarf2=no
7596 # Check whether --enable-shared was given.
7597 if test "${enable_shared+set}" = set; then :
7598 enableval=$enable_shared;
7599 case $enable_shared in
7600 yes | no) ;;
7602 enable_shared=no
7603 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7604 for pkg in $enableval; do
7605 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7606 enable_shared=yes
7608 done
7609 IFS="$ac_save_ifs"
7611 esac
7613 else
7614 enable_shared=yes
7620 # Check whether --with-specs was given.
7621 if test "${with_specs+set}" = set; then :
7622 withval=$with_specs; CONFIGURE_SPECS=$withval
7623 else
7624 CONFIGURE_SPECS=
7632 # Check whether --with-pkgversion was given.
7633 if test "${with_pkgversion+set}" = set; then :
7634 withval=$with_pkgversion; case "$withval" in
7635 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7636 no) PKGVERSION= ;;
7637 *) PKGVERSION="($withval) " ;;
7638 esac
7639 else
7640 PKGVERSION="(GCC) "
7648 # Check whether --with-bugurl was given.
7649 if test "${with_bugurl+set}" = set; then :
7650 withval=$with_bugurl; case "$withval" in
7651 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7652 no) BUGURL=
7654 *) BUGURL="$withval"
7656 esac
7657 else
7658 BUGURL="https://gcc.gnu.org/bugs/"
7662 case ${BUGURL} in
7664 REPORT_BUGS_TO=
7665 REPORT_BUGS_TEXI=
7668 REPORT_BUGS_TO="<$BUGURL>"
7669 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7671 esac;
7676 # Sanity check enable_languages in case someone does not run the toplevel
7677 # configure # script.
7678 # Check whether --enable-languages was given.
7679 if test "${enable_languages+set}" = set; then :
7680 enableval=$enable_languages; case ,${enable_languages}, in
7681 ,,|,yes,)
7682 # go safe -- we cannot be much sure without the toplevel
7683 # configure's
7684 # analysis of which target libs are present and usable
7685 enable_languages=c
7687 *,all,*)
7688 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7690 *,c,*)
7693 enable_languages=c,${enable_languages}
7695 esac
7696 else
7697 enable_languages=c
7701 if test x"$enable_as_accelerator_for" != x; then
7703 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7705 enable_as_accelerator=yes
7706 case "${target}" in
7707 *-intelmicemul-*)
7708 # In this case we expect offload compiler to be built as native, so we
7709 # need to rename the driver to avoid clashes with host's drivers.
7710 program_transform_name="s&^&${target}-&" ;;
7711 esac
7712 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7713 program_transform_name=`echo $program_transform_name | sed $sedscript`
7714 accel_dir_suffix=/accel/${target_noncanonical}
7715 real_target_noncanonical=${enable_as_accelerator_for}
7721 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7722 tgt=`echo $tgt | sed 's/=.*//'`
7724 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7725 enable_hsa=1
7726 else
7727 enable_offloading=1
7730 if test x"$offload_targets" = x; then
7731 offload_targets=$tgt
7732 else
7733 offload_targets="$offload_targets,$tgt"
7735 done
7737 cat >>confdefs.h <<_ACEOF
7738 #define OFFLOAD_TARGETS "$offload_targets"
7739 _ACEOF
7741 if test x"$enable_offloading" != x; then
7743 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7745 else
7747 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7751 if test x"$enable_hsa" = x1 ; then
7753 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7758 # Check whether --with-multilib-list was given.
7759 if test "${with_multilib_list+set}" = set; then :
7760 withval=$with_multilib_list; :
7761 else
7762 with_multilib_list=default
7766 # -------------------------
7767 # Checks for other programs
7768 # -------------------------
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7771 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7772 set x ${MAKE-make}
7773 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7774 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7775 $as_echo_n "(cached) " >&6
7776 else
7777 cat >conftest.make <<\_ACEOF
7778 SHELL = /bin/sh
7779 all:
7780 @echo '@@@%%%=$(MAKE)=@@@%%%'
7781 _ACEOF
7782 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7783 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7784 *@@@%%%=?*=@@@%%%*)
7785 eval ac_cv_prog_make_${ac_make}_set=yes;;
7787 eval ac_cv_prog_make_${ac_make}_set=no;;
7788 esac
7789 rm -f conftest.make
7791 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7793 $as_echo "yes" >&6; }
7794 SET_MAKE=
7795 else
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797 $as_echo "no" >&6; }
7798 SET_MAKE="MAKE=${MAKE-make}"
7802 # Find some useful tools
7803 for ac_prog in gawk mawk nawk awk
7805 # Extract the first word of "$ac_prog", so it can be a program name with args.
7806 set dummy $ac_prog; ac_word=$2
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808 $as_echo_n "checking for $ac_word... " >&6; }
7809 if test "${ac_cv_prog_AWK+set}" = set; then :
7810 $as_echo_n "(cached) " >&6
7811 else
7812 if test -n "$AWK"; then
7813 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7814 else
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 for as_dir in $PATH
7818 IFS=$as_save_IFS
7819 test -z "$as_dir" && as_dir=.
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7822 ac_cv_prog_AWK="$ac_prog"
7823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824 break 2
7826 done
7827 done
7828 IFS=$as_save_IFS
7832 AWK=$ac_cv_prog_AWK
7833 if test -n "$AWK"; then
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7835 $as_echo "$AWK" >&6; }
7836 else
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838 $as_echo "no" >&6; }
7842 test -n "$AWK" && break
7843 done
7845 # We need awk to create options.c and options.h.
7846 # Bail out if it's missing.
7847 case ${AWK} in
7848 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7849 esac
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7852 $as_echo_n "checking whether ln -s works... " >&6; }
7853 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7854 $as_echo_n "(cached) " >&6
7855 else
7856 rm -f conftestdata_t
7857 echo >conftestdata_f
7858 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7859 then
7860 gcc_cv_prog_LN_S="ln -s"
7861 else
7862 if ln conftestdata_f conftestdata_t 2>/dev/null
7863 then
7864 gcc_cv_prog_LN_S=ln
7865 else
7866 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7867 then
7868 gcc_cv_prog_LN_S="cp -p"
7869 else
7870 gcc_cv_prog_LN_S=cp
7874 rm -f conftestdata_f conftestdata_t
7877 LN_S="$gcc_cv_prog_LN_S"
7878 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7880 $as_echo "yes" >&6; }
7881 else
7882 if test "$gcc_cv_prog_LN_S" = "ln"; then
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7884 $as_echo "no, using ln" >&6; }
7885 else
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7887 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7892 $as_echo_n "checking whether ln works... " >&6; }
7893 if test "${acx_cv_prog_LN+set}" = set; then :
7894 $as_echo_n "(cached) " >&6
7895 else
7896 rm -f conftestdata_t
7897 echo >conftestdata_f
7898 if ln conftestdata_f conftestdata_t 2>/dev/null
7899 then
7900 acx_cv_prog_LN=ln
7901 else
7902 acx_cv_prog_LN=no
7904 rm -f conftestdata_f conftestdata_t
7907 if test $acx_cv_prog_LN = no; then
7908 LN="$LN_S"
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7910 $as_echo "no, using $LN" >&6; }
7911 else
7912 LN="$acx_cv_prog_LN"
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7914 $as_echo "yes" >&6; }
7917 if test -n "$ac_tool_prefix"; then
7918 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7919 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7921 $as_echo_n "checking for $ac_word... " >&6; }
7922 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7923 $as_echo_n "(cached) " >&6
7924 else
7925 if test -n "$RANLIB"; then
7926 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7927 else
7928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7929 for as_dir in $PATH
7931 IFS=$as_save_IFS
7932 test -z "$as_dir" && as_dir=.
7933 for ac_exec_ext in '' $ac_executable_extensions; do
7934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7935 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7937 break 2
7939 done
7940 done
7941 IFS=$as_save_IFS
7945 RANLIB=$ac_cv_prog_RANLIB
7946 if test -n "$RANLIB"; then
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7948 $as_echo "$RANLIB" >&6; }
7949 else
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7951 $as_echo "no" >&6; }
7956 if test -z "$ac_cv_prog_RANLIB"; then
7957 ac_ct_RANLIB=$RANLIB
7958 # Extract the first word of "ranlib", so it can be a program name with args.
7959 set dummy ranlib; ac_word=$2
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7961 $as_echo_n "checking for $ac_word... " >&6; }
7962 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7963 $as_echo_n "(cached) " >&6
7964 else
7965 if test -n "$ac_ct_RANLIB"; then
7966 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7967 else
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969 for as_dir in $PATH
7971 IFS=$as_save_IFS
7972 test -z "$as_dir" && as_dir=.
7973 for ac_exec_ext in '' $ac_executable_extensions; do
7974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7975 ac_cv_prog_ac_ct_RANLIB="ranlib"
7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7977 break 2
7979 done
7980 done
7981 IFS=$as_save_IFS
7985 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7986 if test -n "$ac_ct_RANLIB"; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7988 $as_echo "$ac_ct_RANLIB" >&6; }
7989 else
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7994 if test "x$ac_ct_RANLIB" = x; then
7995 RANLIB=":"
7996 else
7997 case $cross_compiling:$ac_tool_warned in
7998 yes:)
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8001 ac_tool_warned=yes ;;
8002 esac
8003 RANLIB=$ac_ct_RANLIB
8005 else
8006 RANLIB="$ac_cv_prog_RANLIB"
8009 ranlib_flags=""
8012 # Find a good install program. We prefer a C program (faster),
8013 # so one script is as good as another. But avoid the broken or
8014 # incompatible versions:
8015 # SysV /etc/install, /usr/sbin/install
8016 # SunOS /usr/etc/install
8017 # IRIX /sbin/install
8018 # AIX /bin/install
8019 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8020 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8021 # ./install, which can be erroneously created by make from ./install.sh.
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8023 $as_echo_n "checking for a BSD compatible install... " >&6; }
8024 if test -z "$INSTALL"; then
8025 if test "${ac_cv_path_install+set}" = set; then :
8026 $as_echo_n "(cached) " >&6
8027 else
8028 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8029 for ac_dir in $PATH; do
8030 # Account for people who put trailing slashes in PATH elements.
8031 case "$ac_dir/" in
8032 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8034 # OSF1 and SCO ODT 3.0 have their own names for install.
8035 for ac_prog in ginstall scoinst install; do
8036 if test -f $ac_dir/$ac_prog; then
8037 if test $ac_prog = install &&
8038 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8039 # AIX install. It has an incompatible calling convention.
8040 # OSF/1 installbsd also uses dspmsg, but is usable.
8042 else
8043 ac_cv_path_install="$ac_dir/$ac_prog -c"
8044 break 2
8047 done
8049 esac
8050 done
8051 IFS="$ac_save_IFS"
8054 if test "${ac_cv_path_install+set}" = set; then
8055 INSTALL="$ac_cv_path_install"
8056 else
8057 # As a last resort, use the slow shell script. We don't cache a
8058 # path for INSTALL within a source directory, because that will
8059 # break other packages using the cache if that directory is
8060 # removed, or if the path is relative.
8061 INSTALL="$ac_install_sh"
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8065 $as_echo "$INSTALL" >&6; }
8067 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8068 # It thinks the first close brace ends the variable substitution.
8069 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8071 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8074 # See if cmp has --ignore-initial.
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8076 $as_echo_n "checking for cmp's capabilities... " >&6; }
8077 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8078 $as_echo_n "(cached) " >&6
8079 else
8080 echo abfoo >t1
8081 echo cdfoo >t2
8082 gcc_cv_prog_cmp_skip=slowcompare
8083 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8084 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8086 else
8087 gcc_cv_prog_cmp_skip=gnucompare
8090 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8091 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8092 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8094 else
8095 gcc_cv_prog_cmp_skip=fastcompare
8099 rm t1 t2
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8103 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8104 make_compare_target=$gcc_cv_prog_cmp_skip
8108 # See if we have the mktemp command.
8109 # Extract the first word of "mktemp", so it can be a program name with args.
8110 set dummy mktemp; ac_word=$2
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8112 $as_echo_n "checking for $ac_word... " >&6; }
8113 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8114 $as_echo_n "(cached) " >&6
8115 else
8116 if test -n "$have_mktemp_command"; then
8117 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8118 else
8119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120 for as_dir in $PATH
8122 IFS=$as_save_IFS
8123 test -z "$as_dir" && as_dir=.
8124 for ac_exec_ext in '' $ac_executable_extensions; do
8125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8126 ac_cv_prog_have_mktemp_command="yes"
8127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8128 break 2
8130 done
8131 done
8132 IFS=$as_save_IFS
8134 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8137 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8138 if test -n "$have_mktemp_command"; then
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8140 $as_echo "$have_mktemp_command" >&6; }
8141 else
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8143 $as_echo "no" >&6; }
8148 # See if makeinfo has been installed and is modern enough
8149 # that we can use it.
8151 # Extract the first word of "makeinfo", so it can be a program name with args.
8152 set dummy makeinfo; ac_word=$2
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154 $as_echo_n "checking for $ac_word... " >&6; }
8155 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8156 $as_echo_n "(cached) " >&6
8157 else
8158 if test -n "$MAKEINFO"; then
8159 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8160 else
8161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162 for as_dir in $PATH
8164 IFS=$as_save_IFS
8165 test -z "$as_dir" && as_dir=.
8166 for ac_exec_ext in '' $ac_executable_extensions; do
8167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8168 ac_cv_prog_MAKEINFO="makeinfo"
8169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8170 break 2
8172 done
8173 done
8174 IFS=$as_save_IFS
8178 MAKEINFO=$ac_cv_prog_MAKEINFO
8179 if test -n "$MAKEINFO"; then
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8181 $as_echo "$MAKEINFO" >&6; }
8182 else
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8184 $as_echo "no" >&6; }
8188 if test -n "$MAKEINFO"; then
8189 # Found it, now check the version.
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8191 $as_echo_n "checking for modern makeinfo... " >&6; }
8192 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8193 $as_echo_n "(cached) " >&6
8194 else
8195 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8196 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8198 case $ac_prog_version in
8199 '') gcc_cv_prog_makeinfo_modern=no;;
8200 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8201 *) gcc_cv_prog_makeinfo_modern=no;;
8202 esac
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8206 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8207 else
8208 gcc_cv_prog_makeinfo_modern=no
8210 if test $gcc_cv_prog_makeinfo_modern = no; then
8211 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8214 if test $gcc_cv_prog_makeinfo_modern = no; then
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8216 *** Makeinfo is missing or too old.
8217 *** Info documentation will not be built." >&5
8218 $as_echo "$as_me: WARNING:
8219 *** Makeinfo is missing or too old.
8220 *** Info documentation will not be built." >&2;}
8221 BUILD_INFO=
8222 else
8223 BUILD_INFO=info
8227 # Is pod2man recent enough to regenerate manpages?
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8229 $as_echo_n "checking for recent Pod::Man... " >&6; }
8230 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8232 $as_echo "yes" >&6; }
8233 GENERATED_MANPAGES=generated-manpages
8234 else
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8236 $as_echo "no" >&6; }
8237 GENERATED_MANPAGES=
8241 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8243 # How about lex?
8244 for ac_prog in flex
8246 # Extract the first word of "$ac_prog", so it can be a program name with args.
8247 set dummy $ac_prog; ac_word=$2
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8249 $as_echo_n "checking for $ac_word... " >&6; }
8250 if test "${ac_cv_prog_FLEX+set}" = set; then :
8251 $as_echo_n "(cached) " >&6
8252 else
8253 if test -n "$FLEX"; then
8254 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8255 else
8256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257 for as_dir in $PATH
8259 IFS=$as_save_IFS
8260 test -z "$as_dir" && as_dir=.
8261 for ac_exec_ext in '' $ac_executable_extensions; do
8262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8263 ac_cv_prog_FLEX="$ac_prog"
8264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8265 break 2
8267 done
8268 done
8269 IFS=$as_save_IFS
8273 FLEX=$ac_cv_prog_FLEX
8274 if test -n "$FLEX"; then
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8276 $as_echo "$FLEX" >&6; }
8277 else
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279 $as_echo "no" >&6; }
8283 test -n "$FLEX" && break
8284 done
8285 test -n "$FLEX" || FLEX="$MISSING flex"
8288 # Bison?
8289 for ac_prog in bison
8291 # Extract the first word of "$ac_prog", so it can be a program name with args.
8292 set dummy $ac_prog; ac_word=$2
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8294 $as_echo_n "checking for $ac_word... " >&6; }
8295 if test "${ac_cv_prog_BISON+set}" = set; then :
8296 $as_echo_n "(cached) " >&6
8297 else
8298 if test -n "$BISON"; then
8299 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8300 else
8301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8302 for as_dir in $PATH
8304 IFS=$as_save_IFS
8305 test -z "$as_dir" && as_dir=.
8306 for ac_exec_ext in '' $ac_executable_extensions; do
8307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8308 ac_cv_prog_BISON="$ac_prog"
8309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8310 break 2
8312 done
8313 done
8314 IFS=$as_save_IFS
8318 BISON=$ac_cv_prog_BISON
8319 if test -n "$BISON"; then
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8321 $as_echo "$BISON" >&6; }
8322 else
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8324 $as_echo "no" >&6; }
8328 test -n "$BISON" && break
8329 done
8330 test -n "$BISON" || BISON="$MISSING bison"
8333 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8334 # check for build == host before using them.
8336 # NM
8337 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8338 && test -d ../binutils ; then
8339 NM='${objdir}/../binutils/nm-new'
8340 else
8341 # Extract the first word of "nm", so it can be a program name with args.
8342 set dummy nm; ac_word=$2
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8344 $as_echo_n "checking for $ac_word... " >&6; }
8345 if test "${ac_cv_prog_NM+set}" = set; then :
8346 $as_echo_n "(cached) " >&6
8347 else
8348 if test -n "$NM"; then
8349 ac_cv_prog_NM="$NM" # Let the user override the test.
8350 else
8351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8352 for as_dir in $PATH
8354 IFS=$as_save_IFS
8355 test -z "$as_dir" && as_dir=.
8356 for ac_exec_ext in '' $ac_executable_extensions; do
8357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8358 ac_cv_prog_NM="nm"
8359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8360 break 2
8362 done
8363 done
8364 IFS=$as_save_IFS
8366 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8369 NM=$ac_cv_prog_NM
8370 if test -n "$NM"; then
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8372 $as_echo "$NM" >&6; }
8373 else
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375 $as_echo "no" >&6; }
8381 # AR
8382 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8383 && test -d ../binutils ; then
8384 AR='${objdir}/../binutils/ar'
8385 else
8386 # Extract the first word of "ar", so it can be a program name with args.
8387 set dummy ar; ac_word=$2
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8389 $as_echo_n "checking for $ac_word... " >&6; }
8390 if test "${ac_cv_prog_AR+set}" = set; then :
8391 $as_echo_n "(cached) " >&6
8392 else
8393 if test -n "$AR"; then
8394 ac_cv_prog_AR="$AR" # Let the user override the test.
8395 else
8396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397 for as_dir in $PATH
8399 IFS=$as_save_IFS
8400 test -z "$as_dir" && as_dir=.
8401 for ac_exec_ext in '' $ac_executable_extensions; do
8402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8403 ac_cv_prog_AR="ar"
8404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8405 break 2
8407 done
8408 done
8409 IFS=$as_save_IFS
8411 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8414 AR=$ac_cv_prog_AR
8415 if test -n "$AR"; then
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8417 $as_echo "$AR" >&6; }
8418 else
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8420 $as_echo "no" >&6; }
8426 # The jit documentation looks better if built with sphinx, but can be
8427 # built with texinfo if sphinx is not available.
8428 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8429 # Extract the first word of "sphinx-build", so it can be a program name with args.
8430 set dummy sphinx-build; ac_word=$2
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8432 $as_echo_n "checking for $ac_word... " >&6; }
8433 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8434 $as_echo_n "(cached) " >&6
8435 else
8436 if test -n "$doc_build_sys"; then
8437 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8438 else
8439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8440 for as_dir in $PATH
8442 IFS=$as_save_IFS
8443 test -z "$as_dir" && as_dir=.
8444 for ac_exec_ext in '' $ac_executable_extensions; do
8445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8446 ac_cv_prog_doc_build_sys="sphinx"
8447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8448 break 2
8450 done
8451 done
8452 IFS=$as_save_IFS
8454 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8457 doc_build_sys=$ac_cv_prog_doc_build_sys
8458 if test -n "$doc_build_sys"; then
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8460 $as_echo "$doc_build_sys" >&6; }
8461 else
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8463 $as_echo "no" >&6; }
8468 # --------------------
8469 # Checks for C headers
8470 # --------------------
8472 # Need to reject headers which give warnings, so that the -Werror bootstrap
8473 # works later. *sigh* This needs to come before all header checks.
8475 ac_c_preproc_warn_flag=yes
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8478 $as_echo_n "checking for ANSI C header files... " >&6; }
8479 if test "${ac_cv_header_stdc+set}" = set; then :
8480 $as_echo_n "(cached) " >&6
8481 else
8482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8483 /* end confdefs.h. */
8484 #include <stdlib.h>
8485 #include <stdarg.h>
8486 #include <string.h>
8487 #include <float.h>
8490 main ()
8494 return 0;
8496 _ACEOF
8497 if ac_fn_cxx_try_compile "$LINENO"; then :
8498 ac_cv_header_stdc=yes
8499 else
8500 ac_cv_header_stdc=no
8502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8504 if test $ac_cv_header_stdc = yes; then
8505 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8507 /* end confdefs.h. */
8508 #include <string.h>
8510 _ACEOF
8511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8512 $EGREP "memchr" >/dev/null 2>&1; then :
8514 else
8515 ac_cv_header_stdc=no
8517 rm -f conftest*
8521 if test $ac_cv_header_stdc = yes; then
8522 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8524 /* end confdefs.h. */
8525 #include <stdlib.h>
8527 _ACEOF
8528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8529 $EGREP "free" >/dev/null 2>&1; then :
8531 else
8532 ac_cv_header_stdc=no
8534 rm -f conftest*
8538 if test $ac_cv_header_stdc = yes; then
8539 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8540 if test "$cross_compiling" = yes; then :
8542 else
8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544 /* end confdefs.h. */
8545 #include <ctype.h>
8546 #include <stdlib.h>
8547 #if ((' ' & 0x0FF) == 0x020)
8548 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8549 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8550 #else
8551 # define ISLOWER(c) \
8552 (('a' <= (c) && (c) <= 'i') \
8553 || ('j' <= (c) && (c) <= 'r') \
8554 || ('s' <= (c) && (c) <= 'z'))
8555 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8556 #endif
8558 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8560 main ()
8562 int i;
8563 for (i = 0; i < 256; i++)
8564 if (XOR (islower (i), ISLOWER (i))
8565 || toupper (i) != TOUPPER (i))
8566 return 2;
8567 return 0;
8569 _ACEOF
8570 if ac_fn_cxx_try_run "$LINENO"; then :
8572 else
8573 ac_cv_header_stdc=no
8575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8576 conftest.$ac_objext conftest.beam conftest.$ac_ext
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8582 $as_echo "$ac_cv_header_stdc" >&6; }
8583 if test $ac_cv_header_stdc = yes; then
8585 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8590 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8591 if test "${ac_cv_header_time+set}" = set; then :
8592 $as_echo_n "(cached) " >&6
8593 else
8594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595 /* end confdefs.h. */
8596 #include <sys/types.h>
8597 #include <sys/time.h>
8598 #include <time.h>
8601 main ()
8603 if ((struct tm *) 0)
8604 return 0;
8606 return 0;
8608 _ACEOF
8609 if ac_fn_cxx_try_compile "$LINENO"; then :
8610 ac_cv_header_time=yes
8611 else
8612 ac_cv_header_time=no
8614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8617 $as_echo "$ac_cv_header_time" >&6; }
8618 if test $ac_cv_header_time = yes; then
8620 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8625 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8626 if test "${gcc_cv_header_string+set}" = set; then :
8627 $as_echo_n "(cached) " >&6
8628 else
8629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8630 /* end confdefs.h. */
8631 #include <string.h>
8632 #include <strings.h>
8634 main ()
8638 return 0;
8640 _ACEOF
8641 if ac_fn_cxx_try_compile "$LINENO"; then :
8642 gcc_cv_header_string=yes
8643 else
8644 gcc_cv_header_string=no
8646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8649 $as_echo "$gcc_cv_header_string" >&6; }
8650 if test $gcc_cv_header_string = yes; then
8652 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8657 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8658 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8659 $as_echo_n "(cached) " >&6
8660 else
8661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8662 /* end confdefs.h. */
8663 #include <sys/types.h>
8664 #include <sys/wait.h>
8665 #ifndef WEXITSTATUS
8666 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8667 #endif
8668 #ifndef WIFEXITED
8669 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8670 #endif
8673 main ()
8675 int s;
8676 wait (&s);
8677 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8679 return 0;
8681 _ACEOF
8682 if ac_fn_cxx_try_compile "$LINENO"; then :
8683 ac_cv_header_sys_wait_h=yes
8684 else
8685 ac_cv_header_sys_wait_h=no
8687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8690 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8691 if test $ac_cv_header_sys_wait_h = yes; then
8693 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8698 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8699 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8700 $as_echo_n "(cached) " >&6
8701 else
8702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8703 /* end confdefs.h. */
8704 #include <sys/types.h>
8705 #include <termios.h>
8706 #ifdef TIOCGWINSZ
8708 #endif
8710 _ACEOF
8711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8712 $EGREP "yes" >/dev/null 2>&1; then :
8713 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8714 else
8715 ac_cv_sys_tiocgwinsz_in_termios_h=no
8717 rm -f conftest*
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8721 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8723 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8725 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8726 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8727 $as_echo_n "(cached) " >&6
8728 else
8729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8730 /* end confdefs.h. */
8731 #include <sys/types.h>
8732 #include <sys/ioctl.h>
8733 #ifdef TIOCGWINSZ
8735 #endif
8737 _ACEOF
8738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8739 $EGREP "yes" >/dev/null 2>&1; then :
8740 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8741 else
8742 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8744 rm -f conftest*
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8748 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8750 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8752 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8757 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8758 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8759 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8760 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8761 do :
8762 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8763 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8764 eval as_val=\$$as_ac_Header
8765 if test "x$as_val" = x""yes; then :
8766 cat >>confdefs.h <<_ACEOF
8767 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8768 _ACEOF
8771 done
8774 # Check for thread headers.
8775 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8776 if test "x$ac_cv_header_thread_h" = x""yes; then :
8777 have_thread_h=yes
8778 else
8779 have_thread_h=
8782 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8783 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8784 have_pthread_h=yes
8785 else
8786 have_pthread_h=
8790 # These tests can't be done till we know if we have limits.h.
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8792 $as_echo_n "checking for CHAR_BIT... " >&6; }
8793 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8794 $as_echo_n "(cached) " >&6
8795 else
8796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8797 /* end confdefs.h. */
8798 #ifdef HAVE_LIMITS_H
8799 #include <limits.h>
8800 #endif
8801 #ifdef CHAR_BIT
8802 found
8803 #endif
8804 _ACEOF
8805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8806 $EGREP "found" >/dev/null 2>&1; then :
8807 gcc_cv_decl_char_bit=yes
8808 else
8809 gcc_cv_decl_char_bit=no
8811 rm -f conftest*
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8816 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8817 if test $gcc_cv_decl_char_bit = no; then
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8819 $as_echo_n "checking number of bits in a byte... " >&6; }
8820 if test "${gcc_cv_c_nbby+set}" = set; then :
8821 $as_echo_n "(cached) " >&6
8822 else
8824 gcc_cv_c_nbby=
8825 while test $i -lt 65; do
8826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8827 /* end confdefs.h. */
8830 main ()
8832 switch(0) {
8833 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8834 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8837 return 0;
8839 _ACEOF
8840 if ac_fn_cxx_try_compile "$LINENO"; then :
8841 gcc_cv_c_nbby=$i; break
8843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8844 i=`expr $i + 1`
8845 done
8846 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8850 $as_echo "$gcc_cv_c_nbby" >&6; }
8851 if test $gcc_cv_c_nbby = failed; then
8852 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8853 else
8855 cat >>confdefs.h <<_ACEOF
8856 #define CHAR_BIT $gcc_cv_c_nbby
8857 _ACEOF
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8862 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8863 if test "${ac_cv_c_bigendian+set}" = set; then :
8864 $as_echo_n "(cached) " >&6
8865 else
8866 ac_cv_c_bigendian=unknown
8867 # See if we're dealing with a universal compiler.
8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h. */
8870 #ifndef __APPLE_CC__
8871 not a universal capable compiler
8872 #endif
8873 typedef int dummy;
8875 _ACEOF
8876 if ac_fn_cxx_try_compile "$LINENO"; then :
8878 # Check for potential -arch flags. It is not universal unless
8879 # there are at least two -arch flags with different values.
8880 ac_arch=
8881 ac_prev=
8882 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8883 if test -n "$ac_prev"; then
8884 case $ac_word in
8885 i?86 | x86_64 | ppc | ppc64)
8886 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8887 ac_arch=$ac_word
8888 else
8889 ac_cv_c_bigendian=universal
8890 break
8893 esac
8894 ac_prev=
8895 elif test "x$ac_word" = "x-arch"; then
8896 ac_prev=arch
8898 done
8900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8901 if test $ac_cv_c_bigendian = unknown; then
8902 # See if sys/param.h defines the BYTE_ORDER macro.
8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8905 #include <sys/types.h>
8906 #include <sys/param.h>
8909 main ()
8911 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8912 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8913 && LITTLE_ENDIAN)
8914 bogus endian macros
8915 #endif
8918 return 0;
8920 _ACEOF
8921 if ac_fn_cxx_try_compile "$LINENO"; then :
8922 # It does; now see whether it defined to BIG_ENDIAN or not.
8923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h. */
8925 #include <sys/types.h>
8926 #include <sys/param.h>
8929 main ()
8931 #if BYTE_ORDER != BIG_ENDIAN
8932 not big endian
8933 #endif
8936 return 0;
8938 _ACEOF
8939 if ac_fn_cxx_try_compile "$LINENO"; then :
8940 ac_cv_c_bigendian=yes
8941 else
8942 ac_cv_c_bigendian=no
8944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8948 if test $ac_cv_c_bigendian = unknown; then
8949 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8951 /* end confdefs.h. */
8952 #include <limits.h>
8955 main ()
8957 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8958 bogus endian macros
8959 #endif
8962 return 0;
8964 _ACEOF
8965 if ac_fn_cxx_try_compile "$LINENO"; then :
8966 # It does; now see whether it defined to _BIG_ENDIAN or not.
8967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8968 /* end confdefs.h. */
8969 #include <limits.h>
8972 main ()
8974 #ifndef _BIG_ENDIAN
8975 not big endian
8976 #endif
8979 return 0;
8981 _ACEOF
8982 if ac_fn_cxx_try_compile "$LINENO"; then :
8983 ac_cv_c_bigendian=yes
8984 else
8985 ac_cv_c_bigendian=no
8987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8991 if test $ac_cv_c_bigendian = unknown; then
8992 # Compile a test program.
8993 if test "$cross_compiling" = yes; then :
8994 # Try to guess by grepping values from an object file.
8995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996 /* end confdefs.h. */
8997 short int ascii_mm[] =
8998 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8999 short int ascii_ii[] =
9000 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9001 int use_ascii (int i) {
9002 return ascii_mm[i] + ascii_ii[i];
9004 short int ebcdic_ii[] =
9005 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9006 short int ebcdic_mm[] =
9007 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9008 int use_ebcdic (int i) {
9009 return ebcdic_mm[i] + ebcdic_ii[i];
9011 extern int foo;
9014 main ()
9016 return use_ascii (foo) == use_ebcdic (foo);
9018 return 0;
9020 _ACEOF
9021 if ac_fn_cxx_try_compile "$LINENO"; then :
9022 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9023 ac_cv_c_bigendian=yes
9025 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9026 if test "$ac_cv_c_bigendian" = unknown; then
9027 ac_cv_c_bigendian=no
9028 else
9029 # finding both strings is unlikely to happen, but who knows?
9030 ac_cv_c_bigendian=unknown
9034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9035 else
9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h. */
9038 $ac_includes_default
9040 main ()
9043 /* Are we little or big endian? From Harbison&Steele. */
9044 union
9046 long int l;
9047 char c[sizeof (long int)];
9048 } u;
9049 u.l = 1;
9050 return u.c[sizeof (long int) - 1] == 1;
9053 return 0;
9055 _ACEOF
9056 if ac_fn_cxx_try_run "$LINENO"; then :
9057 ac_cv_c_bigendian=no
9058 else
9059 ac_cv_c_bigendian=yes
9061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9062 conftest.$ac_objext conftest.beam conftest.$ac_ext
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9068 $as_echo "$ac_cv_c_bigendian" >&6; }
9069 case $ac_cv_c_bigendian in #(
9070 yes)
9071 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9072 ;; #(
9074 ;; #(
9075 universal)
9077 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9079 ;; #(
9081 as_fn_error "unknown endianness
9082 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9083 esac
9086 # ----------------------
9087 # Checks for C++ headers
9088 # ----------------------
9090 ac_ext=cpp
9091 ac_cpp='$CXXCPP $CPPFLAGS'
9092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9096 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9097 if test -z "$CXXCPP"; then
9098 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9099 $as_echo_n "(cached) " >&6
9100 else
9101 # Double quotes because CXXCPP needs to be expanded
9102 for CXXCPP in "$CXX -E" "/lib/cpp"
9104 ac_preproc_ok=false
9105 for ac_cxx_preproc_warn_flag in '' yes
9107 # Use a header file that comes with gcc, so configuring glibc
9108 # with a fresh cross-compiler works.
9109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9110 # <limits.h> exists even on freestanding compilers.
9111 # On the NeXT, cc -E runs the code through the compiler's parser,
9112 # not just through cpp. "Syntax error" is here to catch this case.
9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h. */
9115 #ifdef __STDC__
9116 # include <limits.h>
9117 #else
9118 # include <assert.h>
9119 #endif
9120 Syntax error
9121 _ACEOF
9122 if ac_fn_cxx_try_cpp "$LINENO"; then :
9124 else
9125 # Broken: fails on valid input.
9126 continue
9128 rm -f conftest.err conftest.$ac_ext
9130 # OK, works on sane cases. Now check whether nonexistent headers
9131 # can be detected and how.
9132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9133 /* end confdefs.h. */
9134 #include <ac_nonexistent.h>
9135 _ACEOF
9136 if ac_fn_cxx_try_cpp "$LINENO"; then :
9137 # Broken: success on invalid input.
9138 continue
9139 else
9140 # Passes both tests.
9141 ac_preproc_ok=:
9142 break
9144 rm -f conftest.err conftest.$ac_ext
9146 done
9147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9148 rm -f conftest.err conftest.$ac_ext
9149 if $ac_preproc_ok; then :
9150 break
9153 done
9154 ac_cv_prog_CXXCPP=$CXXCPP
9157 CXXCPP=$ac_cv_prog_CXXCPP
9158 else
9159 ac_cv_prog_CXXCPP=$CXXCPP
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9162 $as_echo "$CXXCPP" >&6; }
9163 ac_preproc_ok=false
9164 for ac_cxx_preproc_warn_flag in '' yes
9166 # Use a header file that comes with gcc, so configuring glibc
9167 # with a fresh cross-compiler works.
9168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9169 # <limits.h> exists even on freestanding compilers.
9170 # On the NeXT, cc -E runs the code through the compiler's parser,
9171 # not just through cpp. "Syntax error" is here to catch this case.
9172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9173 /* end confdefs.h. */
9174 #ifdef __STDC__
9175 # include <limits.h>
9176 #else
9177 # include <assert.h>
9178 #endif
9179 Syntax error
9180 _ACEOF
9181 if ac_fn_cxx_try_cpp "$LINENO"; then :
9183 else
9184 # Broken: fails on valid input.
9185 continue
9187 rm -f conftest.err conftest.$ac_ext
9189 # OK, works on sane cases. Now check whether nonexistent headers
9190 # can be detected and how.
9191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192 /* end confdefs.h. */
9193 #include <ac_nonexistent.h>
9194 _ACEOF
9195 if ac_fn_cxx_try_cpp "$LINENO"; then :
9196 # Broken: success on invalid input.
9197 continue
9198 else
9199 # Passes both tests.
9200 ac_preproc_ok=:
9201 break
9203 rm -f conftest.err conftest.$ac_ext
9205 done
9206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9207 rm -f conftest.err conftest.$ac_ext
9208 if $ac_preproc_ok; then :
9210 else
9211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9214 See \`config.log' for more details." >&5
9215 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9216 See \`config.log' for more details." >&2;}; }
9219 ac_ext=cpp
9220 ac_cpp='$CXXCPP $CPPFLAGS'
9221 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9222 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9223 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9226 for ac_header in unordered_map
9227 do :
9228 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9229 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9230 cat >>confdefs.h <<_ACEOF
9231 #define HAVE_UNORDERED_MAP 1
9232 _ACEOF
9235 done
9237 for ac_header in tr1/unordered_map
9238 do :
9239 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9240 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9241 cat >>confdefs.h <<_ACEOF
9242 #define HAVE_TR1_UNORDERED_MAP 1
9243 _ACEOF
9246 done
9248 for ac_header in ext/hash_map
9249 do :
9250 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9251 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9252 cat >>confdefs.h <<_ACEOF
9253 #define HAVE_EXT_HASH_MAP 1
9254 _ACEOF
9257 done
9260 # --------
9261 # Dependency checking.
9262 # --------
9264 rm -rf .tst 2>/dev/null
9265 mkdir .tst 2>/dev/null
9266 if test -d .tst; then
9267 am__leading_dot=.
9268 else
9269 am__leading_dot=_
9271 rmdir .tst 2>/dev/null
9273 DEPDIR="${am__leading_dot}deps"
9275 ac_config_commands="$ac_config_commands depdir"
9278 ac_config_commands="$ac_config_commands gccdepdir"
9281 depcc="$CXX" am_compiler_list=
9283 am_depcomp=$ac_aux_dir/depcomp
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9285 $as_echo_n "checking dependency style of $depcc... " >&6; }
9286 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9287 $as_echo_n "(cached) " >&6
9288 else
9289 if test -f "$am_depcomp"; then
9290 # We make a subdir and do the tests there. Otherwise we can end up
9291 # making bogus files that we don't know about and never remove. For
9292 # instance it was reported that on HP-UX the gcc test will end up
9293 # making a dummy file named `D' -- because `-MD' means `put the output
9294 # in D'.
9295 mkdir conftest.dir
9296 # Copy depcomp to subdir because otherwise we won't find it if we're
9297 # using a relative directory.
9298 cp "$am_depcomp" conftest.dir
9299 cd conftest.dir
9300 # We will build objects and dependencies in a subdirectory because
9301 # it helps to detect inapplicable dependency modes. For instance
9302 # both Tru64's cc and ICC support -MD to output dependencies as a
9303 # side effect of compilation, but ICC will put the dependencies in
9304 # the current directory while Tru64 will put them in the object
9305 # directory.
9306 mkdir sub
9308 am_cv_CXX_dependencies_compiler_type=none
9309 if test "$am_compiler_list" = ""; then
9310 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9312 for depmode in $am_compiler_list; do
9313 if test $depmode = none; then break; fi
9315 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9316 # Setup a source with many dependencies, because some compilers
9317 # like to wrap large dependency lists on column 80 (with \), and
9318 # we should not choose a depcomp mode which is confused by this.
9320 # We need to recreate these files for each test, as the compiler may
9321 # overwrite some of them when testing with obscure command lines.
9322 # This happens at least with the AIX C compiler.
9323 : > sub/conftest.c
9324 for i in 1 2 3 4 5 6; do
9325 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9326 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9327 # Solaris 8's {/usr,}/bin/sh.
9328 touch sub/conftst$i.h
9329 done
9330 echo "include sub/conftest.Po" > confmf
9332 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9333 # mode. It turns out that the SunPro C++ compiler does not properly
9334 # handle `-M -o', and we need to detect this.
9335 depcmd="depmode=$depmode \
9336 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9337 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9338 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9339 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9340 if env $depcmd > conftest.err 2>&1 &&
9341 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9342 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9343 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9344 # icc doesn't choke on unknown options, it will just issue warnings
9345 # or remarks (even with -Werror). So we grep stderr for any message
9346 # that says an option was ignored or not supported.
9347 # When given -MP, icc 7.0 and 7.1 complain thusly:
9348 # icc: Command line warning: ignoring option '-M'; no argument required
9349 # The diagnosis changed in icc 8.0:
9350 # icc: Command line remark: option '-MP' not supported
9351 if (grep 'ignoring option' conftest.err ||
9352 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9353 am_cv_CXX_dependencies_compiler_type=$depmode
9354 $as_echo "$as_me:$LINENO: success" >&5
9355 break
9358 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9359 sed -e 's/^/| /' < conftest.err >&5
9360 done
9362 cd ..
9363 rm -rf conftest.dir
9364 else
9365 am_cv_CXX_dependencies_compiler_type=none
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9370 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9371 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9372 then as_fn_error "no usable dependency style found" "$LINENO" 5
9373 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9378 # --------
9379 # UNSORTED
9380 # --------
9383 # These libraries may be used by collect2.
9384 # We may need a special search path to get them linked.
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9386 $as_echo_n "checking for collect2 libraries... " >&6; }
9387 if test "${gcc_cv_collect2_libs+set}" = set; then :
9388 $as_echo_n "(cached) " >&6
9389 else
9390 save_LIBS="$LIBS"
9391 for libs in '' -lld -lmld \
9392 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9393 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9395 LIBS="$libs"
9396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9397 /* end confdefs.h. */
9399 /* Override any GCC internal prototype to avoid an error.
9400 Use char because int might match the return type of a GCC
9401 builtin and then its argument prototype would still apply. */
9402 #ifdef __cplusplus
9403 extern "C"
9404 #endif
9405 char ldopen ();
9407 main ()
9409 return ldopen ();
9411 return 0;
9413 _ACEOF
9414 if ac_fn_cxx_try_link "$LINENO"; then :
9415 gcc_cv_collect2_libs="$libs"; break
9417 rm -f core conftest.err conftest.$ac_objext \
9418 conftest$ac_exeext conftest.$ac_ext
9419 done
9420 LIBS="$save_LIBS"
9421 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9424 $as_echo "$gcc_cv_collect2_libs" >&6; }
9425 case $gcc_cv_collect2_libs in
9426 "none required") ;;
9427 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9428 esac
9431 # When building Ada code on Alpha, we need exc_resume which is usually in
9432 # -lexc. So test for it.
9433 save_LIBS="$LIBS"
9434 LIBS=
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9436 $as_echo_n "checking for library containing exc_resume... " >&6; }
9437 if test "${ac_cv_search_exc_resume+set}" = set; then :
9438 $as_echo_n "(cached) " >&6
9439 else
9440 ac_func_search_save_LIBS=$LIBS
9441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9442 /* end confdefs.h. */
9444 /* Override any GCC internal prototype to avoid an error.
9445 Use char because int might match the return type of a GCC
9446 builtin and then its argument prototype would still apply. */
9447 #ifdef __cplusplus
9448 extern "C"
9449 #endif
9450 char exc_resume ();
9452 main ()
9454 return exc_resume ();
9456 return 0;
9458 _ACEOF
9459 for ac_lib in '' exc; do
9460 if test -z "$ac_lib"; then
9461 ac_res="none required"
9462 else
9463 ac_res=-l$ac_lib
9464 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9466 if ac_fn_cxx_try_link "$LINENO"; then :
9467 ac_cv_search_exc_resume=$ac_res
9469 rm -f core conftest.err conftest.$ac_objext \
9470 conftest$ac_exeext
9471 if test "${ac_cv_search_exc_resume+set}" = set; then :
9472 break
9474 done
9475 if test "${ac_cv_search_exc_resume+set}" = set; then :
9477 else
9478 ac_cv_search_exc_resume=no
9480 rm conftest.$ac_ext
9481 LIBS=$ac_func_search_save_LIBS
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9484 $as_echo "$ac_cv_search_exc_resume" >&6; }
9485 ac_res=$ac_cv_search_exc_resume
9486 if test "$ac_res" != no; then :
9487 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9491 GNAT_LIBEXC="$LIBS"
9492 LIBS="$save_LIBS"
9495 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9496 save_LIBS="$LIBS"
9497 LIBS=
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9499 $as_echo_n "checking for library containing kstat_open... " >&6; }
9500 if test "${ac_cv_search_kstat_open+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 kstat_open ();
9515 main ()
9517 return kstat_open ();
9519 return 0;
9521 _ACEOF
9522 for ac_lib in '' kstat; 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_kstat_open=$ac_res
9532 rm -f core conftest.err conftest.$ac_objext \
9533 conftest$ac_exeext
9534 if test "${ac_cv_search_kstat_open+set}" = set; then :
9535 break
9537 done
9538 if test "${ac_cv_search_kstat_open+set}" = set; then :
9540 else
9541 ac_cv_search_kstat_open=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_kstat_open" >&5
9547 $as_echo "$ac_cv_search_kstat_open" >&6; }
9548 ac_res=$ac_cv_search_kstat_open
9549 if test "$ac_res" != no; then :
9550 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9554 EXTRA_GCC_LIBS="$LIBS"
9555 LIBS="$save_LIBS"
9558 # Some systems put ldexp and frexp in libm instead of libc; assume
9559 # they're both in the same place. jcf-dump needs them.
9560 save_LIBS="$LIBS"
9561 LIBS=
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9563 $as_echo_n "checking for library containing ldexp... " >&6; }
9564 if test "${ac_cv_search_ldexp+set}" = set; then :
9565 $as_echo_n "(cached) " >&6
9566 else
9567 ac_func_search_save_LIBS=$LIBS
9568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h. */
9571 /* Override any GCC internal prototype to avoid an error.
9572 Use char because int might match the return type of a GCC
9573 builtin and then its argument prototype would still apply. */
9574 #ifdef __cplusplus
9575 extern "C"
9576 #endif
9577 char ldexp ();
9579 main ()
9581 return ldexp ();
9583 return 0;
9585 _ACEOF
9586 for ac_lib in '' m; do
9587 if test -z "$ac_lib"; then
9588 ac_res="none required"
9589 else
9590 ac_res=-l$ac_lib
9591 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9593 if ac_fn_cxx_try_link "$LINENO"; then :
9594 ac_cv_search_ldexp=$ac_res
9596 rm -f core conftest.err conftest.$ac_objext \
9597 conftest$ac_exeext
9598 if test "${ac_cv_search_ldexp+set}" = set; then :
9599 break
9601 done
9602 if test "${ac_cv_search_ldexp+set}" = set; then :
9604 else
9605 ac_cv_search_ldexp=no
9607 rm conftest.$ac_ext
9608 LIBS=$ac_func_search_save_LIBS
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9611 $as_echo "$ac_cv_search_ldexp" >&6; }
9612 ac_res=$ac_cv_search_ldexp
9613 if test "$ac_res" != no; then :
9614 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9618 LDEXP_LIB="$LIBS"
9619 LIBS="$save_LIBS"
9622 # Use <inttypes.h> only if it exists,
9623 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9624 # PRId64
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9626 $as_echo_n "checking for inttypes.h... " >&6; }
9627 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9628 $as_echo_n "(cached) " >&6
9629 else
9630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9631 /* end confdefs.h. */
9632 #define __STDC_FORMAT_MACROS
9633 #include <sys/types.h>
9634 #include <inttypes.h>
9636 main ()
9638 intmax_t i = -1;
9639 #ifndef PRId64
9640 choke me
9641 #endif
9643 return 0;
9645 _ACEOF
9646 if ac_fn_cxx_try_compile "$LINENO"; then :
9647 gcc_cv_header_inttypes_h=yes
9648 else
9649 gcc_cv_header_inttypes_h=no
9651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9655 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9656 if test $gcc_cv_header_inttypes_h = yes; then
9658 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9664 for ac_func in times clock kill getrlimit setrlimit atoq \
9665 popen sysconf strsignal getrusage nl_langinfo \
9666 gettimeofday mbstowcs wcswidth mmap setlocale \
9667 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
9668 do :
9669 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9670 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9671 eval as_val=\$$as_ac_var
9672 if test "x$as_val" = x""yes; then :
9673 cat >>confdefs.h <<_ACEOF
9674 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9675 _ACEOF
9678 done
9681 if test x$ac_cv_func_mbstowcs = xyes; then
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9683 $as_echo_n "checking whether mbstowcs works... " >&6; }
9684 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9685 $as_echo_n "(cached) " >&6
9686 else
9687 if test "$cross_compiling" = yes; then :
9688 gcc_cv_func_mbstowcs_works=yes
9689 else
9690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9691 /* end confdefs.h. */
9692 #include <stdlib.h>
9693 int main()
9695 mbstowcs(0, "", 0);
9696 return 0;
9698 _ACEOF
9699 if ac_fn_cxx_try_run "$LINENO"; then :
9700 gcc_cv_func_mbstowcs_works=yes
9701 else
9702 gcc_cv_func_mbstowcs_works=no
9704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9705 conftest.$ac_objext conftest.beam conftest.$ac_ext
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9710 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9711 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9713 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9718 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9719 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9721 else
9723 cat >>confdefs.h <<_ACEOF
9724 #define ssize_t int
9725 _ACEOF
9729 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9730 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9732 else
9734 cat >>confdefs.h <<_ACEOF
9735 #define caddr_t char *
9736 _ACEOF
9742 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9743 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9744 gcc_header_sys_mman_h=yes
9745 else
9746 gcc_header_sys_mman_h=no
9749 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9750 if test "x$ac_cv_func_mmap" = x""yes; then :
9751 gcc_func_mmap=yes
9752 else
9753 gcc_func_mmap=no
9756 if test "$gcc_header_sys_mman_h" != yes \
9757 || test "$gcc_func_mmap" != yes; then
9758 gcc_cv_func_mmap_file=no
9759 gcc_cv_func_mmap_dev_zero=no
9760 gcc_cv_func_mmap_anon=no
9761 else
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9763 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9764 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9765 $as_echo_n "(cached) " >&6
9766 else
9767 # Add a system to this blacklist if
9768 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9769 # memory area containing the same data that you'd get if you applied
9770 # read() to the same fd. The only system known to have a problem here
9771 # is VMS, where text files have record structure.
9772 case "$host_os" in
9773 *vms* | ultrix*)
9774 gcc_cv_func_mmap_file=no ;;
9776 gcc_cv_func_mmap_file=yes;;
9777 esac
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9780 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9782 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9783 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9784 $as_echo_n "(cached) " >&6
9785 else
9786 # Add a system to this blacklist if it has mmap() but /dev/zero
9787 # does not exist, or if mmapping /dev/zero does not give anonymous
9788 # zeroed pages with both the following properties:
9789 # 1. If you map N consecutive pages in with one call, and then
9790 # unmap any subset of those pages, the pages that were not
9791 # explicitly unmapped remain accessible.
9792 # 2. If you map two adjacent blocks of memory and then unmap them
9793 # both at once, they must both go away.
9794 # Systems known to be in this category are Windows (all variants),
9795 # VMS, and Darwin.
9796 case "$host_os" in
9797 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9798 gcc_cv_func_mmap_dev_zero=no ;;
9800 gcc_cv_func_mmap_dev_zero=yes;;
9801 esac
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9804 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9806 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9808 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9809 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9810 $as_echo_n "(cached) " >&6
9811 else
9812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9813 /* end confdefs.h. */
9814 #include <sys/types.h>
9815 #include <sys/mman.h>
9816 #include <unistd.h>
9818 #ifndef MAP_ANONYMOUS
9819 #define MAP_ANONYMOUS MAP_ANON
9820 #endif
9823 main ()
9825 int n = MAP_ANONYMOUS;
9827 return 0;
9829 _ACEOF
9830 if ac_fn_cxx_try_compile "$LINENO"; then :
9831 gcc_cv_decl_map_anon=yes
9832 else
9833 gcc_cv_decl_map_anon=no
9835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9838 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9840 if test $gcc_cv_decl_map_anon = no; then
9841 gcc_cv_func_mmap_anon=no
9842 else
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9844 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9845 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9846 $as_echo_n "(cached) " >&6
9847 else
9848 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9849 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9850 # doesn't give anonymous zeroed pages with the same properties listed
9851 # above for use of /dev/zero.
9852 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9853 case "$host_os" in
9854 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9855 gcc_cv_func_mmap_anon=no ;;
9857 gcc_cv_func_mmap_anon=yes;;
9858 esac
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9861 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9865 if test $gcc_cv_func_mmap_file = yes; then
9867 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9870 if test $gcc_cv_func_mmap_dev_zero = yes; then
9872 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9875 if test $gcc_cv_func_mmap_anon = yes; then
9877 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9882 case "${host}" in
9883 *-*-*vms*)
9884 # Under VMS, vfork works very differently than on Unix. The standard test
9885 # won't work, and it isn't easily adaptable. It makes more sense to
9886 # just force it.
9887 ac_cv_func_vfork_works=yes
9889 esac
9890 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9891 if test "x$ac_cv_type_pid_t" = x""yes; then :
9893 else
9895 cat >>confdefs.h <<_ACEOF
9896 #define pid_t int
9897 _ACEOF
9901 for ac_header in vfork.h
9902 do :
9903 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9904 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9905 cat >>confdefs.h <<_ACEOF
9906 #define HAVE_VFORK_H 1
9907 _ACEOF
9910 done
9912 for ac_func in fork vfork
9913 do :
9914 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9915 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9916 eval as_val=\$$as_ac_var
9917 if test "x$as_val" = x""yes; then :
9918 cat >>confdefs.h <<_ACEOF
9919 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9920 _ACEOF
9923 done
9925 if test "x$ac_cv_func_fork" = xyes; then
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9927 $as_echo_n "checking for working fork... " >&6; }
9928 if test "${ac_cv_func_fork_works+set}" = set; then :
9929 $as_echo_n "(cached) " >&6
9930 else
9931 if test "$cross_compiling" = yes; then :
9932 ac_cv_func_fork_works=cross
9933 else
9934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9935 /* end confdefs.h. */
9936 $ac_includes_default
9938 main ()
9941 /* By Ruediger Kuhlmann. */
9942 return fork () < 0;
9945 return 0;
9947 _ACEOF
9948 if ac_fn_cxx_try_run "$LINENO"; then :
9949 ac_cv_func_fork_works=yes
9950 else
9951 ac_cv_func_fork_works=no
9953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9954 conftest.$ac_objext conftest.beam conftest.$ac_ext
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9959 $as_echo "$ac_cv_func_fork_works" >&6; }
9961 else
9962 ac_cv_func_fork_works=$ac_cv_func_fork
9964 if test "x$ac_cv_func_fork_works" = xcross; then
9965 case $host in
9966 *-*-amigaos* | *-*-msdosdjgpp*)
9967 # Override, as these systems have only a dummy fork() stub
9968 ac_cv_func_fork_works=no
9971 ac_cv_func_fork_works=yes
9973 esac
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9975 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9977 ac_cv_func_vfork_works=$ac_cv_func_vfork
9978 if test "x$ac_cv_func_vfork" = xyes; then
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9980 $as_echo_n "checking for working vfork... " >&6; }
9981 if test "${ac_cv_func_vfork_works+set}" = set; then :
9982 $as_echo_n "(cached) " >&6
9983 else
9984 if test "$cross_compiling" = yes; then :
9985 ac_cv_func_vfork_works=cross
9986 else
9987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9988 /* end confdefs.h. */
9989 /* Thanks to Paul Eggert for this test. */
9990 $ac_includes_default
9991 #include <sys/wait.h>
9992 #ifdef HAVE_VFORK_H
9993 # include <vfork.h>
9994 #endif
9995 /* On some sparc systems, changes by the child to local and incoming
9996 argument registers are propagated back to the parent. The compiler
9997 is told about this with #include <vfork.h>, but some compilers
9998 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9999 static variable whose address is put into a register that is
10000 clobbered by the vfork. */
10001 static void
10002 #ifdef __cplusplus
10003 sparc_address_test (int arg)
10004 # else
10005 sparc_address_test (arg) int arg;
10006 #endif
10008 static pid_t child;
10009 if (!child) {
10010 child = vfork ();
10011 if (child < 0) {
10012 perror ("vfork");
10013 _exit(2);
10015 if (!child) {
10016 arg = getpid();
10017 write(-1, "", 0);
10018 _exit (arg);
10024 main ()
10026 pid_t parent = getpid ();
10027 pid_t child;
10029 sparc_address_test (0);
10031 child = vfork ();
10033 if (child == 0) {
10034 /* Here is another test for sparc vfork register problems. This
10035 test uses lots of local variables, at least as many local
10036 variables as main has allocated so far including compiler
10037 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10038 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10039 reuse the register of parent for one of the local variables,
10040 since it will think that parent can't possibly be used any more
10041 in this routine. Assigning to the local variable will thus
10042 munge parent in the parent process. */
10043 pid_t
10044 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10045 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10046 /* Convince the compiler that p..p7 are live; otherwise, it might
10047 use the same hardware register for all 8 local variables. */
10048 if (p != p1 || p != p2 || p != p3 || p != p4
10049 || p != p5 || p != p6 || p != p7)
10050 _exit(1);
10052 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10053 from child file descriptors. If the child closes a descriptor
10054 before it execs or exits, this munges the parent's descriptor
10055 as well. Test for this by closing stdout in the child. */
10056 _exit(close(fileno(stdout)) != 0);
10057 } else {
10058 int status;
10059 struct stat st;
10061 while (wait(&status) != child)
10063 return (
10064 /* Was there some problem with vforking? */
10065 child < 0
10067 /* Did the child fail? (This shouldn't happen.) */
10068 || status
10070 /* Did the vfork/compiler bug occur? */
10071 || parent != getpid()
10073 /* Did the file descriptor bug occur? */
10074 || fstat(fileno(stdout), &st) != 0
10078 _ACEOF
10079 if ac_fn_cxx_try_run "$LINENO"; then :
10080 ac_cv_func_vfork_works=yes
10081 else
10082 ac_cv_func_vfork_works=no
10084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10085 conftest.$ac_objext conftest.beam conftest.$ac_ext
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10090 $as_echo "$ac_cv_func_vfork_works" >&6; }
10093 if test "x$ac_cv_func_fork_works" = xcross; then
10094 ac_cv_func_vfork_works=$ac_cv_func_vfork
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10096 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10099 if test "x$ac_cv_func_vfork_works" = xyes; then
10101 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10103 else
10105 $as_echo "#define vfork fork" >>confdefs.h
10108 if test "x$ac_cv_func_fork_works" = xyes; then
10110 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10116 if test "X$prefix" = "XNONE"; then
10117 acl_final_prefix="$ac_default_prefix"
10118 else
10119 acl_final_prefix="$prefix"
10121 if test "X$exec_prefix" = "XNONE"; then
10122 acl_final_exec_prefix='${prefix}'
10123 else
10124 acl_final_exec_prefix="$exec_prefix"
10126 acl_save_prefix="$prefix"
10127 prefix="$acl_final_prefix"
10128 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10129 prefix="$acl_save_prefix"
10132 # Check whether --with-gnu-ld was given.
10133 if test "${with_gnu_ld+set}" = set; then :
10134 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10135 else
10136 with_gnu_ld=no
10139 # Prepare PATH_SEPARATOR.
10140 # The user is always right.
10141 if test "${PATH_SEPARATOR+set}" != set; then
10142 echo "#! /bin/sh" >conf$$.sh
10143 echo "exit 0" >>conf$$.sh
10144 chmod +x conf$$.sh
10145 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10146 PATH_SEPARATOR=';'
10147 else
10148 PATH_SEPARATOR=:
10150 rm -f conf$$.sh
10152 ac_prog=ld
10153 if test "$GCC" = yes; then
10154 # Check if gcc -print-prog-name=ld gives a path.
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10156 $as_echo_n "checking for ld used by GCC... " >&6; }
10157 case $host in
10158 *-*-mingw*)
10159 # gcc leaves a trailing carriage return which upsets mingw
10160 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10162 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10163 esac
10164 case $ac_prog in
10165 # Accept absolute paths.
10166 [\\/]* | [A-Za-z]:[\\/]*)
10167 re_direlt='/[^/][^/]*/\.\./'
10168 # Canonicalize the path of ld
10169 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10170 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10171 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10172 done
10173 test -z "$LD" && LD="$ac_prog"
10176 # If it fails, then pretend we aren't using GCC.
10177 ac_prog=ld
10180 # If it is relative, then search for the first ld in PATH.
10181 with_gnu_ld=unknown
10183 esac
10184 elif test "$with_gnu_ld" = yes; then
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10186 $as_echo_n "checking for GNU ld... " >&6; }
10187 else
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10189 $as_echo_n "checking for non-GNU ld... " >&6; }
10191 if test "${acl_cv_path_LD+set}" = set; then :
10192 $as_echo_n "(cached) " >&6
10193 else
10194 if test -z "$LD"; then
10195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10196 for ac_dir in $PATH; do
10197 test -z "$ac_dir" && ac_dir=.
10198 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10199 acl_cv_path_LD="$ac_dir/$ac_prog"
10200 # Check to see if the program is GNU ld. I'd rather use --version,
10201 # but apparently some GNU ld's only accept -v.
10202 # Break only if it was the GNU/non-GNU ld that we prefer.
10203 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10204 test "$with_gnu_ld" != no && break
10205 else
10206 test "$with_gnu_ld" != yes && break
10209 done
10210 IFS="$ac_save_ifs"
10211 else
10212 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10216 LD="$acl_cv_path_LD"
10217 if test -n "$LD"; then
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10219 $as_echo "$LD" >&6; }
10220 else
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10222 $as_echo "no" >&6; }
10224 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10226 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10227 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10228 $as_echo_n "(cached) " >&6
10229 else
10230 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10231 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10232 acl_cv_prog_gnu_ld=yes
10233 else
10234 acl_cv_prog_gnu_ld=no
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10238 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10239 with_gnu_ld=$acl_cv_prog_gnu_ld
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10244 $as_echo_n "checking for shared library run path origin... " >&6; }
10245 if test "${acl_cv_rpath+set}" = set; then :
10246 $as_echo_n "(cached) " >&6
10247 else
10249 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10250 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10251 . ./conftest.sh
10252 rm -f ./conftest.sh
10253 acl_cv_rpath=done
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10257 $as_echo "$acl_cv_rpath" >&6; }
10258 wl="$acl_cv_wl"
10259 libext="$acl_cv_libext"
10260 shlibext="$acl_cv_shlibext"
10261 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10262 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10263 hardcode_direct="$acl_cv_hardcode_direct"
10264 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10265 # Check whether --enable-rpath was given.
10266 if test "${enable_rpath+set}" = set; then :
10267 enableval=$enable_rpath; :
10268 else
10269 enable_rpath=yes
10279 use_additional=yes
10281 acl_save_prefix="$prefix"
10282 prefix="$acl_final_prefix"
10283 acl_save_exec_prefix="$exec_prefix"
10284 exec_prefix="$acl_final_exec_prefix"
10286 eval additional_includedir=\"$includedir\"
10287 eval additional_libdir=\"$libdir\"
10289 exec_prefix="$acl_save_exec_prefix"
10290 prefix="$acl_save_prefix"
10293 # Check whether --with-libiconv-prefix was given.
10294 if test "${with_libiconv_prefix+set}" = set; then :
10295 withval=$with_libiconv_prefix;
10296 if test "X$withval" = "Xno"; then
10297 use_additional=no
10298 else
10299 if test "X$withval" = "X"; then
10301 acl_save_prefix="$prefix"
10302 prefix="$acl_final_prefix"
10303 acl_save_exec_prefix="$exec_prefix"
10304 exec_prefix="$acl_final_exec_prefix"
10306 eval additional_includedir=\"$includedir\"
10307 eval additional_libdir=\"$libdir\"
10309 exec_prefix="$acl_save_exec_prefix"
10310 prefix="$acl_save_prefix"
10312 else
10313 additional_includedir="$withval/include"
10314 additional_libdir="$withval/lib"
10320 LIBICONV=
10321 LTLIBICONV=
10322 INCICONV=
10323 rpathdirs=
10324 ltrpathdirs=
10325 names_already_handled=
10326 names_next_round='iconv '
10327 while test -n "$names_next_round"; do
10328 names_this_round="$names_next_round"
10329 names_next_round=
10330 for name in $names_this_round; do
10331 already_handled=
10332 for n in $names_already_handled; do
10333 if test "$n" = "$name"; then
10334 already_handled=yes
10335 break
10337 done
10338 if test -z "$already_handled"; then
10339 names_already_handled="$names_already_handled $name"
10340 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10341 eval value=\"\$HAVE_LIB$uppername\"
10342 if test -n "$value"; then
10343 if test "$value" = yes; then
10344 eval value=\"\$LIB$uppername\"
10345 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10346 eval value=\"\$LTLIB$uppername\"
10347 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10348 else
10351 else
10352 found_dir=
10353 found_la=
10354 found_so=
10355 found_a=
10356 if test $use_additional = yes; then
10357 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10358 found_dir="$additional_libdir"
10359 found_so="$additional_libdir/lib$name.$shlibext"
10360 if test -f "$additional_libdir/lib$name.la"; then
10361 found_la="$additional_libdir/lib$name.la"
10363 else
10364 if test -f "$additional_libdir/lib$name.$libext"; then
10365 found_dir="$additional_libdir"
10366 found_a="$additional_libdir/lib$name.$libext"
10367 if test -f "$additional_libdir/lib$name.la"; then
10368 found_la="$additional_libdir/lib$name.la"
10373 if test "X$found_dir" = "X"; then
10374 for x in $LDFLAGS $LTLIBICONV; do
10376 acl_save_prefix="$prefix"
10377 prefix="$acl_final_prefix"
10378 acl_save_exec_prefix="$exec_prefix"
10379 exec_prefix="$acl_final_exec_prefix"
10380 eval x=\"$x\"
10381 exec_prefix="$acl_save_exec_prefix"
10382 prefix="$acl_save_prefix"
10384 case "$x" in
10385 -L*)
10386 dir=`echo "X$x" | sed -e 's/^X-L//'`
10387 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10388 found_dir="$dir"
10389 found_so="$dir/lib$name.$shlibext"
10390 if test -f "$dir/lib$name.la"; then
10391 found_la="$dir/lib$name.la"
10393 else
10394 if test -f "$dir/lib$name.$libext"; then
10395 found_dir="$dir"
10396 found_a="$dir/lib$name.$libext"
10397 if test -f "$dir/lib$name.la"; then
10398 found_la="$dir/lib$name.la"
10403 esac
10404 if test "X$found_dir" != "X"; then
10405 break
10407 done
10409 if test "X$found_dir" != "X"; then
10410 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10411 if test "X$found_so" != "X"; then
10412 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10413 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10414 else
10415 haveit=
10416 for x in $ltrpathdirs; do
10417 if test "X$x" = "X$found_dir"; then
10418 haveit=yes
10419 break
10421 done
10422 if test -z "$haveit"; then
10423 ltrpathdirs="$ltrpathdirs $found_dir"
10425 if test "$hardcode_direct" = yes; then
10426 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10427 else
10428 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10429 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10430 haveit=
10431 for x in $rpathdirs; do
10432 if test "X$x" = "X$found_dir"; then
10433 haveit=yes
10434 break
10436 done
10437 if test -z "$haveit"; then
10438 rpathdirs="$rpathdirs $found_dir"
10440 else
10441 haveit=
10442 for x in $LDFLAGS $LIBICONV; do
10444 acl_save_prefix="$prefix"
10445 prefix="$acl_final_prefix"
10446 acl_save_exec_prefix="$exec_prefix"
10447 exec_prefix="$acl_final_exec_prefix"
10448 eval x=\"$x\"
10449 exec_prefix="$acl_save_exec_prefix"
10450 prefix="$acl_save_prefix"
10452 if test "X$x" = "X-L$found_dir"; then
10453 haveit=yes
10454 break
10456 done
10457 if test -z "$haveit"; then
10458 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10460 if test "$hardcode_minus_L" != no; then
10461 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10462 else
10463 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10468 else
10469 if test "X$found_a" != "X"; then
10470 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10471 else
10472 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10475 additional_includedir=
10476 case "$found_dir" in
10477 */lib | */lib/)
10478 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10479 additional_includedir="$basedir/include"
10481 esac
10482 if test "X$additional_includedir" != "X"; then
10483 if test "X$additional_includedir" != "X/usr/include"; then
10484 haveit=
10485 if test "X$additional_includedir" = "X/usr/local/include"; then
10486 if test -n "$GCC"; then
10487 case $host_os in
10488 linux*) haveit=yes;;
10489 esac
10492 if test -z "$haveit"; then
10493 for x in $CPPFLAGS $INCICONV; do
10495 acl_save_prefix="$prefix"
10496 prefix="$acl_final_prefix"
10497 acl_save_exec_prefix="$exec_prefix"
10498 exec_prefix="$acl_final_exec_prefix"
10499 eval x=\"$x\"
10500 exec_prefix="$acl_save_exec_prefix"
10501 prefix="$acl_save_prefix"
10503 if test "X$x" = "X-I$additional_includedir"; then
10504 haveit=yes
10505 break
10507 done
10508 if test -z "$haveit"; then
10509 if test -d "$additional_includedir"; then
10510 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10516 if test -n "$found_la"; then
10517 save_libdir="$libdir"
10518 case "$found_la" in
10519 */* | *\\*) . "$found_la" ;;
10520 *) . "./$found_la" ;;
10521 esac
10522 libdir="$save_libdir"
10523 for dep in $dependency_libs; do
10524 case "$dep" in
10525 -L*)
10526 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10527 if test "X$additional_libdir" != "X/usr/lib"; then
10528 haveit=
10529 if test "X$additional_libdir" = "X/usr/local/lib"; then
10530 if test -n "$GCC"; then
10531 case $host_os in
10532 linux*) haveit=yes;;
10533 esac
10536 if test -z "$haveit"; then
10537 haveit=
10538 for x in $LDFLAGS $LIBICONV; do
10540 acl_save_prefix="$prefix"
10541 prefix="$acl_final_prefix"
10542 acl_save_exec_prefix="$exec_prefix"
10543 exec_prefix="$acl_final_exec_prefix"
10544 eval x=\"$x\"
10545 exec_prefix="$acl_save_exec_prefix"
10546 prefix="$acl_save_prefix"
10548 if test "X$x" = "X-L$additional_libdir"; then
10549 haveit=yes
10550 break
10552 done
10553 if test -z "$haveit"; then
10554 if test -d "$additional_libdir"; then
10555 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10558 haveit=
10559 for x in $LDFLAGS $LTLIBICONV; do
10561 acl_save_prefix="$prefix"
10562 prefix="$acl_final_prefix"
10563 acl_save_exec_prefix="$exec_prefix"
10564 exec_prefix="$acl_final_exec_prefix"
10565 eval x=\"$x\"
10566 exec_prefix="$acl_save_exec_prefix"
10567 prefix="$acl_save_prefix"
10569 if test "X$x" = "X-L$additional_libdir"; then
10570 haveit=yes
10571 break
10573 done
10574 if test -z "$haveit"; then
10575 if test -d "$additional_libdir"; then
10576 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10582 -R*)
10583 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10584 if test "$enable_rpath" != no; then
10585 haveit=
10586 for x in $rpathdirs; do
10587 if test "X$x" = "X$dir"; then
10588 haveit=yes
10589 break
10591 done
10592 if test -z "$haveit"; then
10593 rpathdirs="$rpathdirs $dir"
10595 haveit=
10596 for x in $ltrpathdirs; do
10597 if test "X$x" = "X$dir"; then
10598 haveit=yes
10599 break
10601 done
10602 if test -z "$haveit"; then
10603 ltrpathdirs="$ltrpathdirs $dir"
10607 -l*)
10608 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10610 *.la)
10611 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10614 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10615 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10617 esac
10618 done
10620 else
10621 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10622 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10626 done
10627 done
10628 if test "X$rpathdirs" != "X"; then
10629 if test -n "$hardcode_libdir_separator"; then
10630 alldirs=
10631 for found_dir in $rpathdirs; do
10632 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10633 done
10634 acl_save_libdir="$libdir"
10635 libdir="$alldirs"
10636 eval flag=\"$hardcode_libdir_flag_spec\"
10637 libdir="$acl_save_libdir"
10638 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10639 else
10640 for found_dir in $rpathdirs; do
10641 acl_save_libdir="$libdir"
10642 libdir="$found_dir"
10643 eval flag=\"$hardcode_libdir_flag_spec\"
10644 libdir="$acl_save_libdir"
10645 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10646 done
10649 if test "X$ltrpathdirs" != "X"; then
10650 for found_dir in $ltrpathdirs; do
10651 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10652 done
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10662 $as_echo_n "checking for iconv... " >&6; }
10663 if test "${am_cv_func_iconv+set}" = set; then :
10664 $as_echo_n "(cached) " >&6
10665 else
10667 am_cv_func_iconv="no, consider installing GNU libiconv"
10668 am_cv_lib_iconv=no
10669 am_save_CPPFLAGS="$CPPFLAGS"
10670 CPPFLAGS="$CPPFLAGS $INCICONV"
10671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10672 /* end confdefs.h. */
10673 #include <stdlib.h>
10674 #include <iconv.h>
10676 main ()
10678 iconv_t cd = iconv_open("","");
10679 iconv(cd,NULL,NULL,NULL,NULL);
10680 iconv_close(cd);
10682 return 0;
10684 _ACEOF
10685 if ac_fn_cxx_try_link "$LINENO"; then :
10686 am_cv_func_iconv=yes
10688 rm -f core conftest.err conftest.$ac_objext \
10689 conftest$ac_exeext conftest.$ac_ext
10690 CPPFLAGS="$am_save_CPPFLAGS"
10692 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10693 for _libs in .libs _libs; do
10694 am_save_CPPFLAGS="$CPPFLAGS"
10695 am_save_LIBS="$LIBS"
10696 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10697 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10699 /* end confdefs.h. */
10700 #include <stdlib.h>
10701 #include <iconv.h>
10703 main ()
10705 iconv_t cd = iconv_open("","");
10706 iconv(cd,NULL,NULL,NULL,NULL);
10707 iconv_close(cd);
10709 return 0;
10711 _ACEOF
10712 if ac_fn_cxx_try_link "$LINENO"; then :
10713 INCICONV="-I../libiconv/include"
10714 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10715 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10716 am_cv_lib_iconv=yes
10717 am_cv_func_iconv=yes
10719 rm -f core conftest.err conftest.$ac_objext \
10720 conftest$ac_exeext conftest.$ac_ext
10721 CPPFLAGS="$am_save_CPPFLAGS"
10722 LIBS="$am_save_LIBS"
10723 if test "$am_cv_func_iconv" = "yes"; then
10724 break
10726 done
10729 if test "$am_cv_func_iconv" != yes; then
10730 am_save_CPPFLAGS="$CPPFLAGS"
10731 am_save_LIBS="$LIBS"
10732 CPPFLAGS="$LIBS $INCICONV"
10733 LIBS="$LIBS $LIBICONV"
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_lib_iconv=yes
10750 am_cv_func_iconv=yes
10752 rm -f core conftest.err conftest.$ac_objext \
10753 conftest$ac_exeext conftest.$ac_ext
10754 CPPFLAGS="$am_save_CPPFLAGS"
10755 LIBS="$am_save_LIBS"
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10760 $as_echo "$am_cv_func_iconv" >&6; }
10761 if test "$am_cv_func_iconv" = yes; then
10763 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10766 if test "$am_cv_lib_iconv" = yes; then
10768 for element in $INCICONV; do
10769 haveit=
10770 for x in $CPPFLAGS; do
10772 acl_save_prefix="$prefix"
10773 prefix="$acl_final_prefix"
10774 acl_save_exec_prefix="$exec_prefix"
10775 exec_prefix="$acl_final_exec_prefix"
10776 eval x=\"$x\"
10777 exec_prefix="$acl_save_exec_prefix"
10778 prefix="$acl_save_prefix"
10780 if test "X$x" = "X$element"; then
10781 haveit=yes
10782 break
10784 done
10785 if test -z "$haveit"; then
10786 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10788 done
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10791 $as_echo_n "checking how to link with libiconv... " >&6; }
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10793 $as_echo "$LIBICONV" >&6; }
10794 else
10795 LIBICONV=
10796 LTLIBICONV=
10801 if test "$am_cv_func_iconv" = yes; then
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10803 $as_echo_n "checking for iconv declaration... " >&6; }
10804 if test "${am_cv_proto_iconv+set}" = set; then :
10805 $as_echo_n "(cached) " >&6
10806 else
10808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10809 /* end confdefs.h. */
10811 #include <stdlib.h>
10812 #include <iconv.h>
10813 extern
10814 #ifdef __cplusplus
10816 #endif
10817 #if defined(__STDC__) || defined(__cplusplus)
10818 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10819 #else
10820 size_t iconv();
10821 #endif
10824 main ()
10828 return 0;
10830 _ACEOF
10831 if ac_fn_cxx_try_compile "$LINENO"; then :
10832 am_cv_proto_iconv_arg1=""
10833 else
10834 am_cv_proto_iconv_arg1="const"
10836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10837 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);"
10840 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10842 }$am_cv_proto_iconv" >&5
10843 $as_echo "${ac_t:-
10844 }$am_cv_proto_iconv" >&6; }
10846 cat >>confdefs.h <<_ACEOF
10847 #define ICONV_CONST $am_cv_proto_iconv_arg1
10848 _ACEOF
10853 # Until we have in-tree GNU iconv:
10854 LIBICONV_DEP=
10855 if test -f "$LTLIBICONV"; then
10856 LIBICONV_DEP=$LTLIBICONV
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10862 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10863 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10864 $as_echo_n "(cached) " >&6
10865 else
10866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10867 /* end confdefs.h. */
10868 #include <locale.h>
10870 main ()
10872 return LC_MESSAGES
10874 return 0;
10876 _ACEOF
10877 if ac_fn_cxx_try_link "$LINENO"; then :
10878 am_cv_val_LC_MESSAGES=yes
10879 else
10880 am_cv_val_LC_MESSAGES=no
10882 rm -f core conftest.err conftest.$ac_objext \
10883 conftest$ac_exeext conftest.$ac_ext
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10886 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10887 if test $am_cv_val_LC_MESSAGES = yes; then
10889 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10896 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10897 if test "${am_cv_langinfo_codeset+set}" = set; then :
10898 $as_echo_n "(cached) " >&6
10899 else
10900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10901 /* end confdefs.h. */
10902 #include <langinfo.h>
10904 main ()
10906 char* cs = nl_langinfo(CODESET);
10908 return 0;
10910 _ACEOF
10911 if ac_fn_cxx_try_link "$LINENO"; then :
10912 am_cv_langinfo_codeset=yes
10913 else
10914 am_cv_langinfo_codeset=no
10916 rm -f core conftest.err conftest.$ac_objext \
10917 conftest$ac_exeext conftest.$ac_ext
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10921 $as_echo "$am_cv_langinfo_codeset" >&6; }
10922 if test $am_cv_langinfo_codeset = yes; then
10924 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10929 # We will need to find libiberty.h and ansidecl.h
10930 saved_CFLAGS="$CFLAGS"
10931 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10932 saved_CXXFLAGS="$CXXFLAGS"
10933 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10935 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10936 # normal autoconf function for these. But force definition of
10937 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10938 # basename handling in libiberty.h.
10939 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10940 #undef HAVE_DECL_BASENAME
10941 #define HAVE_DECL_BASENAME 1
10942 #include \"ansidecl.h\"
10943 #include \"system.h\"
10945 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10946 ac_have_decl=1
10947 else
10948 ac_have_decl=0
10951 cat >>confdefs.h <<_ACEOF
10952 #define HAVE_DECL_BASENAME $ac_have_decl
10953 _ACEOF
10954 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10955 #undef HAVE_DECL_BASENAME
10956 #define HAVE_DECL_BASENAME 1
10957 #include \"ansidecl.h\"
10958 #include \"system.h\"
10960 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10961 ac_have_decl=1
10962 else
10963 ac_have_decl=0
10966 cat >>confdefs.h <<_ACEOF
10967 #define HAVE_DECL_STRSTR $ac_have_decl
10968 _ACEOF
10971 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10972 madvise stpcpy strnlen strsignal strverscmp \
10973 strtol strtoul strtoll strtoull setenv unsetenv \
10974 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10975 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
10977 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10979 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10980 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10981 $as_echo_n "(cached) " >&6
10982 else
10983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10984 /* end confdefs.h. */
10985 #undef $ac_tr_decl
10986 #define $ac_tr_decl 1
10988 #include "ansidecl.h"
10989 #include "system.h"
10992 main ()
10994 #ifndef $ac_func
10995 char *(*pfn) = (char *(*)) $ac_func ;
10996 #endif
10998 return 0;
11000 _ACEOF
11001 if ac_fn_cxx_try_compile "$LINENO"; then :
11002 eval "gcc_cv_have_decl_$ac_func=yes"
11003 else
11004 eval "gcc_cv_have_decl_$ac_func=no"
11006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11009 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11011 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11012 #define $ac_tr_decl 1
11013 _ACEOF
11015 else
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11017 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11018 #define $ac_tr_decl 0
11019 _ACEOF
11023 done
11026 for ac_func in getrlimit setrlimit getrusage
11028 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11030 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11031 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11032 $as_echo_n "(cached) " >&6
11033 else
11034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11035 /* end confdefs.h. */
11036 #undef $ac_tr_decl
11037 #define $ac_tr_decl 1
11039 #include "ansidecl.h"
11040 #include "system.h"
11041 #ifdef HAVE_SYS_RESOURCE_H
11042 #include <sys/resource.h>
11043 #endif
11047 main ()
11049 #ifndef $ac_func
11050 char *(*pfn) = (char *(*)) $ac_func ;
11051 #endif
11053 return 0;
11055 _ACEOF
11056 if ac_fn_cxx_try_compile "$LINENO"; then :
11057 eval "gcc_cv_have_decl_$ac_func=yes"
11058 else
11059 eval "gcc_cv_have_decl_$ac_func=no"
11061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11064 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11066 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11067 #define $ac_tr_decl 1
11068 _ACEOF
11070 else
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11072 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11073 #define $ac_tr_decl 0
11074 _ACEOF
11078 done
11081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11082 /* end confdefs.h. */
11084 #include "ansidecl.h"
11085 #include "system.h"
11086 #ifdef HAVE_SYS_RESOURCE_H
11087 #include <sys/resource.h>
11088 #endif
11091 main ()
11093 rlim_t l = 0;
11095 return 0;
11097 _ACEOF
11098 if ac_fn_cxx_try_compile "$LINENO"; then :
11100 else
11102 $as_echo "#define rlim_t long" >>confdefs.h
11105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11107 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11108 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11109 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11110 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11111 for ac_func in ldgetname
11113 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11115 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11116 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11117 $as_echo_n "(cached) " >&6
11118 else
11119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11120 /* end confdefs.h. */
11121 #undef $ac_tr_decl
11122 #define $ac_tr_decl 1
11124 #include "ansidecl.h"
11125 #include "system.h"
11126 #ifdef HAVE_LDFCN_H
11127 #undef FREAD
11128 #undef FWRITE
11129 #include <ldfcn.h>
11130 #endif
11134 main ()
11136 #ifndef $ac_func
11137 char *(*pfn) = (char *(*)) $ac_func ;
11138 #endif
11140 return 0;
11142 _ACEOF
11143 if ac_fn_cxx_try_compile "$LINENO"; then :
11144 eval "gcc_cv_have_decl_$ac_func=yes"
11145 else
11146 eval "gcc_cv_have_decl_$ac_func=no"
11148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11151 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11153 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11154 #define $ac_tr_decl 1
11155 _ACEOF
11157 else
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11159 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11160 #define $ac_tr_decl 0
11161 _ACEOF
11165 done
11168 for ac_func in times
11170 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11172 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11173 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11174 $as_echo_n "(cached) " >&6
11175 else
11176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11177 /* end confdefs.h. */
11178 #undef $ac_tr_decl
11179 #define $ac_tr_decl 1
11181 #include "ansidecl.h"
11182 #include "system.h"
11183 #ifdef HAVE_SYS_TIMES_H
11184 #include <sys/times.h>
11185 #endif
11189 main ()
11191 #ifndef $ac_func
11192 char *(*pfn) = (char *(*)) $ac_func ;
11193 #endif
11195 return 0;
11197 _ACEOF
11198 if ac_fn_cxx_try_compile "$LINENO"; then :
11199 eval "gcc_cv_have_decl_$ac_func=yes"
11200 else
11201 eval "gcc_cv_have_decl_$ac_func=no"
11203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11206 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11208 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11209 #define $ac_tr_decl 1
11210 _ACEOF
11212 else
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11214 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11215 #define $ac_tr_decl 0
11216 _ACEOF
11220 done
11223 for ac_func in sigaltstack
11225 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11227 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11228 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11229 $as_echo_n "(cached) " >&6
11230 else
11231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11232 /* end confdefs.h. */
11233 #undef $ac_tr_decl
11234 #define $ac_tr_decl 1
11236 #include "ansidecl.h"
11237 #include "system.h"
11238 #include <signal.h>
11242 main ()
11244 #ifndef $ac_func
11245 char *(*pfn) = (char *(*)) $ac_func ;
11246 #endif
11248 return 0;
11250 _ACEOF
11251 if ac_fn_cxx_try_compile "$LINENO"; then :
11252 eval "gcc_cv_have_decl_$ac_func=yes"
11253 else
11254 eval "gcc_cv_have_decl_$ac_func=no"
11256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11259 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11261 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11262 #define $ac_tr_decl 1
11263 _ACEOF
11265 else
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11267 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11268 #define $ac_tr_decl 0
11269 _ACEOF
11273 done
11276 # More time-related stuff.
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11278 $as_echo_n "checking for struct tms... " >&6; }
11279 if test "${ac_cv_struct_tms+set}" = set; then :
11280 $as_echo_n "(cached) " >&6
11281 else
11283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11284 /* end confdefs.h. */
11286 #include "ansidecl.h"
11287 #include "system.h"
11288 #ifdef HAVE_SYS_TIMES_H
11289 #include <sys/times.h>
11290 #endif
11293 main ()
11295 struct tms tms;
11297 return 0;
11299 _ACEOF
11300 if ac_fn_cxx_try_compile "$LINENO"; then :
11301 ac_cv_struct_tms=yes
11302 else
11303 ac_cv_struct_tms=no
11305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11308 $as_echo "$ac_cv_struct_tms" >&6; }
11309 if test $ac_cv_struct_tms = yes; then
11311 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11315 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11316 # revisit after autoconf 2.50.
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11318 $as_echo_n "checking for clock_t... " >&6; }
11319 if test "${gcc_cv_type_clock_t+set}" = set; then :
11320 $as_echo_n "(cached) " >&6
11321 else
11323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11324 /* end confdefs.h. */
11326 #include "ansidecl.h"
11327 #include "system.h"
11330 main ()
11332 clock_t x;
11334 return 0;
11336 _ACEOF
11337 if ac_fn_cxx_try_compile "$LINENO"; then :
11338 gcc_cv_type_clock_t=yes
11339 else
11340 gcc_cv_type_clock_t=no
11342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11345 $as_echo "$gcc_cv_type_clock_t" >&6; }
11346 if test $gcc_cv_type_clock_t = yes; then
11348 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11352 # Check if F_SETLKW is supported by fcntl.
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11354 $as_echo_n "checking for F_SETLKW... " >&6; }
11355 if test "${ac_cv_f_setlkw+set}" = set; then :
11356 $as_echo_n "(cached) " >&6
11357 else
11359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11360 /* end confdefs.h. */
11362 #include <fcntl.h>
11364 main ()
11367 struct flock fl;
11368 fl.l_whence = 0;
11369 fl.l_start = 0;
11370 fl.l_len = 0;
11371 fl.l_pid = 0;
11372 return fcntl (1, F_SETLKW, &fl);
11374 return 0;
11376 _ACEOF
11377 if ac_fn_cxx_try_compile "$LINENO"; then :
11378 ac_cv_f_setlkw=yes
11379 else
11380 ac_cv_f_setlkw=no
11382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11385 $as_echo "$ac_cv_f_setlkw" >&6; }
11386 if test $ac_cv_f_setlkw = yes; then
11388 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11392 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11393 CFLAGS="$saved_CFLAGS"
11394 CXXFLAGS="$saved_CXXFLAGS"
11396 # mkdir takes a single argument on some systems.
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11398 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11399 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11400 $as_echo_n "(cached) " >&6
11401 else
11402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11403 /* end confdefs.h. */
11405 #include <sys/types.h>
11406 #ifdef HAVE_SYS_STAT_H
11407 # include <sys/stat.h>
11408 #endif
11409 #ifdef HAVE_UNISTD_H
11410 # include <unistd.h>
11411 #endif
11412 #ifdef HAVE_DIRECT_H
11413 # include <direct.h>
11414 #endif
11416 main ()
11418 mkdir ("foo", 0);
11420 return 0;
11422 _ACEOF
11423 if ac_fn_cxx_try_compile "$LINENO"; then :
11424 gcc_cv_mkdir_takes_one_arg=no
11425 else
11426 gcc_cv_mkdir_takes_one_arg=yes
11428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11431 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11432 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11434 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11439 # File extensions
11440 manext='.1'
11441 objext='.o'
11445 # With Setjmp/Longjmp based exception handling.
11446 # Check whether --enable-sjlj-exceptions was given.
11447 if test "${enable_sjlj_exceptions+set}" = set; then :
11448 enableval=$enable_sjlj_exceptions; case $target in
11449 *-*-hpux10*)
11450 if test $enableval != yes; then
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11452 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11453 enableval=yes
11456 esac
11457 force_sjlj_exceptions=yes
11458 else
11459 case $target in
11460 *-*-hpux10*)
11461 force_sjlj_exceptions=yes
11462 enableval=yes
11464 lm32*-*-*)
11465 force_sjlj_exceptions=yes
11466 enableval=yes
11469 force_sjlj_exceptions=no
11471 esac
11474 if test $force_sjlj_exceptions = yes; then
11475 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11477 cat >>confdefs.h <<_ACEOF
11478 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11479 _ACEOF
11483 # --------------------------------------------------------
11484 # Build, host, and target specific configuration fragments
11485 # --------------------------------------------------------
11487 # Collect build-machine-specific information.
11488 . ${srcdir}/config.build
11490 # Collect host-machine-specific information.
11491 . ${srcdir}/config.host
11493 target_gtfiles=
11495 # Collect target-machine-specific information.
11496 . ${srcdir}/config.gcc
11498 extra_objs="${host_extra_objs} ${extra_objs}"
11499 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11501 # Default the target-machine variables that were not explicitly set.
11502 if test x"$tm_file" = x
11503 then tm_file=$cpu_type/$cpu_type.h; fi
11505 if test x"$extra_headers" = x
11506 then extra_headers=; fi
11508 if test x$md_file = x
11509 then md_file=$cpu_type/$cpu_type.md; fi
11511 if test x$out_file = x
11512 then out_file=$cpu_type/$cpu_type.c; fi
11514 if test x"$tmake_file" = x
11515 then tmake_file=$cpu_type/t-$cpu_type
11518 # Support --enable-initfini-array.
11519 if test x$enable_initfini_array != xno; then
11520 tm_file="${tm_file} initfini-array.h"
11523 if test x"$dwarf2" = xyes
11524 then tm_file="$tm_file tm-dwarf2.h"
11527 # Say what files are being used for the output code and MD file.
11528 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11529 echo "Using \`$srcdir/config/$md_file' as machine description file."
11531 # If any of the xm_file variables contain nonexistent files, warn
11532 # about them and drop them.
11535 for x in $build_xm_file; do
11536 if test -f $srcdir/config/$x
11537 then bx="$bx $x"
11538 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11539 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11541 done
11542 build_xm_file="$bx"
11545 for x in $host_xm_file; do
11546 if test -f $srcdir/config/$x
11547 then hx="$hx $x"
11548 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11549 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11551 done
11552 host_xm_file="$hx"
11555 for x in $xm_file; do
11556 if test -f $srcdir/config/$x
11557 then tx="$tx $x"
11558 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11559 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11561 done
11562 xm_file="$tx"
11564 count=a
11565 for f in $tm_file; do
11566 count=${count}x
11567 done
11568 if test $count = ax; then
11569 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11570 else
11571 echo "Using the following target machine macro files:"
11572 for f in $tm_file; do
11573 echo " $srcdir/config/$f"
11574 done
11577 if test x$use_long_long_for_widest_fast_int = xyes; then
11579 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11583 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11585 cat >>confdefs.h <<_ACEOF
11586 #define HAVE_GNU_LD $gnu_ld_bool
11587 _ACEOF
11590 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11592 cat >>confdefs.h <<_ACEOF
11593 #define HAVE_GNU_AS $gnu_as_bool
11594 _ACEOF
11597 count=a
11598 for f in $host_xm_file; do
11599 count=${count}x
11600 done
11601 if test $count = a; then
11603 elif test $count = ax; then
11604 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11605 else
11606 echo "Using the following host machine macro files:"
11607 for f in $host_xm_file; do
11608 echo " $srcdir/config/$f"
11609 done
11611 echo "Using ${out_host_hook_obj} for host machine hooks."
11613 if test "$host_xm_file" != "$build_xm_file"; then
11614 count=a
11615 for f in $build_xm_file; do
11616 count=${count}x
11617 done
11618 if test $count = a; then
11620 elif test $count = ax; then
11621 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11622 else
11623 echo "Using the following build machine macro files:"
11624 for f in $build_xm_file; do
11625 echo " $srcdir/config/$f"
11626 done
11630 if test -n "$configured_native_system_header_dir"; then
11631 native_system_header_dir=$configured_native_system_header_dir
11633 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11636 case ${host} in
11637 powerpc*-*-darwin*)
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11639 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11640 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11641 $as_echo_n "(cached) " >&6
11642 else
11643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11644 /* end confdefs.h. */
11646 #include <sys/cdefs.h>
11647 #include <sys/signal.h>
11648 #include <ucontext.h>
11649 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11651 _ACEOF
11652 if ac_fn_cxx_try_compile "$LINENO"; then :
11653 gcc_cv_mcontext_underscores=no
11654 else
11655 gcc_cv_mcontext_underscores=yes
11657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11660 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11661 if test $gcc_cv_mcontext_underscores = yes; then
11663 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11667 esac
11669 # ---------
11670 # Threading
11671 # ---------
11673 # Check if a valid thread package
11674 case ${enable_threads} in
11675 "" | no)
11676 # No threads
11677 target_thread_file='single'
11679 yes)
11680 # default
11681 target_thread_file='single'
11683 aix | dce | lynx | mipssde | posix | rtems | \
11684 single | tpf | vxworks | win32)
11685 target_thread_file=${enable_threads}
11688 echo "${enable_threads} is an unknown thread package" 1>&2
11689 exit 1
11691 esac
11693 if test x${thread_file} = x; then
11694 # No thread file set by target-specific clauses in config.gcc,
11695 # so use file chosen by default logic above
11696 thread_file=${target_thread_file}
11699 # --------
11700 # UNSORTED
11701 # --------
11703 use_cxa_atexit=no
11704 if test x$enable___cxa_atexit = xyes || \
11705 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11706 if test x$host = x$target; then
11707 case $host in
11708 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11709 # keyed to flag_use_cxa_atexit
11710 *-*-mingw32*)
11711 use_cxa_atexit=yes
11713 powerpc-ibm-aix*)
11714 use_cxa_atexit=yes
11717 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11718 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11719 use_cxa_atexit=yes
11720 else
11721 echo "__cxa_atexit can't be enabled on this target"
11725 esac
11726 else
11727 # We can't check for __cxa_atexit when building a cross, so assume
11728 # it is available
11729 use_cxa_atexit=yes
11731 if test x$use_cxa_atexit = xyes; then
11733 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11738 # Look for a file containing extra machine modes.
11739 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11740 extra_modes_file='$(srcdir)'/config/${extra_modes}
11743 cat >>confdefs.h <<_ACEOF
11744 #define EXTRA_MODES_FILE "config/$extra_modes"
11745 _ACEOF
11749 # Convert extra_options into a form suitable for Makefile use.
11750 extra_opt_files=
11751 all_opt_files=
11752 for f in $extra_options; do
11753 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11754 all_opt_files="$all_opt_files $srcdir/config/$f"
11755 done
11758 # auto-host.h is the file containing items generated by autoconf and is
11759 # the first file included by config.h.
11760 # If host=build, it is correct to have bconfig include auto-host.h
11761 # as well. If host!=build, we are in error and need to do more
11762 # work to find out the build config parameters.
11763 if test x$host = x$build
11764 then
11765 build_auto=auto-host.h
11766 else
11767 # We create a subdir, then run autoconf in the subdir.
11768 # To prevent recursion we set host and build for the new
11769 # invocation of configure to the build for this invocation
11770 # of configure.
11771 tempdir=build.$$
11772 rm -rf $tempdir
11773 mkdir $tempdir
11774 cd $tempdir
11775 case ${srcdir} in
11776 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11777 *) realsrcdir=../${srcdir};;
11778 esac
11779 # Clearing GMPINC is necessary to prevent host headers being
11780 # used by the build compiler. Defining GENERATOR_FILE stops
11781 # system.h from including gmp.h.
11782 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11783 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11784 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11785 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11786 ${realsrcdir}/configure \
11787 --enable-languages=${enable_languages-all} \
11788 --target=$target_alias --host=$build_alias --build=$build_alias
11790 # We just finished tests for the build machine, so rename
11791 # the file auto-build.h in the gcc directory.
11792 mv auto-host.h ../auto-build.h
11793 cd ..
11794 rm -rf $tempdir
11795 build_auto=auto-build.h
11799 tm_file="${tm_file} defaults.h"
11800 tm_p_file="${tm_p_file} tm-preds.h"
11801 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11802 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11803 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11804 # put this back in temporarily.
11805 xm_file="auto-host.h ansidecl.h ${xm_file}"
11807 # --------
11808 # UNSORTED
11809 # --------
11811 # Compile in configure arguments.
11812 if test -f configargs.h ; then
11813 # Being re-configured.
11814 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11815 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11816 else
11817 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11820 # Double all backslashes and backslash all quotes to turn
11821 # gcc_config_arguments into a C string.
11822 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11823 $gcc_config_arguments
11825 gcc_config_arguments_str=`cat conftest.out`
11826 rm -f conftest.out
11828 cat > configargs.h <<EOF
11829 /* Generated automatically. */
11830 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11831 static const char thread_model[] = "$thread_file";
11833 static const struct {
11834 const char *name, *value;
11835 } configure_default_options[] = $configure_default_options;
11838 gcc_BASEVER=`cat $srcdir/BASE-VER`
11839 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11840 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11841 if test -f $srcdir/REVISION ; then
11842 gcc_REVISION=`cat $srcdir/REVISION`
11843 else
11844 gcc_REVISION=""
11846 cat > plugin-version.h <<EOF
11847 #include "configargs.h"
11849 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11850 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11851 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11852 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11854 static char basever[] = "$gcc_BASEVER";
11855 static char datestamp[] = "$gcc_DATESTAMP";
11856 static char devphase[] = "$gcc_DEVPHASE";
11857 static char revision[] = "$gcc_REVISION";
11859 /* FIXME plugins: We should make the version information more precise.
11860 One way to do is to add a checksum. */
11862 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11863 devphase, revision,
11864 configuration_arguments};
11867 # Determine what GCC version number to use in filesystem paths.
11869 get_gcc_base_ver="cat"
11871 # Check whether --with-gcc-major-version-only was given.
11872 if test "${with_gcc_major_version_only+set}" = set; then :
11873 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
11874 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
11882 # Internationalization
11883 # If we haven't got the data from the intl directory,
11884 # assume NLS is disabled.
11885 USE_NLS=no
11886 LIBINTL=
11887 LIBINTL_DEP=
11888 INCINTL=
11889 XGETTEXT=
11890 GMSGFMT=
11891 POSUB=
11893 if test -f ../intl/config.intl; then
11894 . ../intl/config.intl
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11897 $as_echo_n "checking whether NLS is requested... " >&6; }
11898 if test x"$USE_NLS" != xyes; then
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900 $as_echo "no" >&6; }
11901 else
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11903 $as_echo "yes" >&6; }
11905 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11909 $as_echo_n "checking for catalogs to be installed... " >&6; }
11910 # Look for .po and .gmo files in the source directory.
11911 CATALOGS=
11912 XLINGUAS=
11913 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11914 # If there aren't any .gmo files the shell will give us the
11915 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11916 # weeded out.
11917 case "$cat" in *\**)
11918 continue;;
11919 esac
11920 # The quadruple backslash is collapsed to a double backslash
11921 # by the backticks, then collapsed again by the double quotes,
11922 # leaving us with one backslash in the sed expression (right
11923 # before the dot that mustn't act as a wildcard).
11924 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11925 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11926 # The user is allowed to set LINGUAS to a list of languages to
11927 # install catalogs for. If it's empty that means "all of them."
11928 if test "x$LINGUAS" = x; then
11929 CATALOGS="$CATALOGS $cat"
11930 XLINGUAS="$XLINGUAS $lang"
11931 else
11932 case "$LINGUAS" in *$lang*)
11933 CATALOGS="$CATALOGS $cat"
11934 XLINGUAS="$XLINGUAS $lang"
11936 esac
11938 done
11939 LINGUAS="$XLINGUAS"
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11941 $as_echo "$LINGUAS" >&6; }
11944 DATADIRNAME=share
11946 INSTOBJEXT=.mo
11948 GENCAT=gencat
11950 CATOBJEXT=.gmo
11954 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11955 # -liconv on the link line twice.
11956 case "$LIBINTL" in *$LIBICONV*)
11957 LIBICONV= ;;
11958 esac
11960 # Check whether --enable-secureplt was given.
11961 if test "${enable_secureplt+set}" = set; then :
11962 enableval=$enable_secureplt;
11966 # Check whether --enable-leading-mingw64-underscores was given.
11967 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11968 enableval=$enable_leading_mingw64_underscores;
11971 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11973 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11977 # Check whether --enable-cld was given.
11978 if test "${enable_cld+set}" = set; then :
11979 enableval=$enable_cld;
11980 else
11981 enable_cld=no
11985 # Check whether --enable-frame-pointer was given.
11986 if test "${enable_frame_pointer+set}" = set; then :
11987 enableval=$enable_frame_pointer;
11988 else
11990 case $target_os in
11991 linux* | darwin[8912]*)
11992 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11993 # DWARF2.
11994 enable_frame_pointer=no
11997 enable_frame_pointer=yes
11999 esac
12004 # Windows32 Registry support for specifying GCC installation paths.
12005 # Check whether --enable-win32-registry was given.
12006 if test "${enable_win32_registry+set}" = set; then :
12007 enableval=$enable_win32_registry;
12011 case $host_os in
12012 win32 | pe | cygwin* | mingw32*)
12013 if test "x$enable_win32_registry" != xno; then
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12015 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12016 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12017 $as_echo_n "(cached) " >&6
12018 else
12019 ac_func_search_save_LIBS=$LIBS
12020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12021 /* end confdefs.h. */
12023 /* Override any GCC internal prototype to avoid an error.
12024 Use char because int might match the return type of a GCC
12025 builtin and then its argument prototype would still apply. */
12026 #ifdef __cplusplus
12027 extern "C"
12028 #endif
12029 char RegOpenKeyExA ();
12031 main ()
12033 return RegOpenKeyExA ();
12035 return 0;
12037 _ACEOF
12038 for ac_lib in '' advapi32; do
12039 if test -z "$ac_lib"; then
12040 ac_res="none required"
12041 else
12042 ac_res=-l$ac_lib
12043 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12045 if ac_fn_cxx_try_link "$LINENO"; then :
12046 ac_cv_search_RegOpenKeyExA=$ac_res
12048 rm -f core conftest.err conftest.$ac_objext \
12049 conftest$ac_exeext
12050 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12051 break
12053 done
12054 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12056 else
12057 ac_cv_search_RegOpenKeyExA=no
12059 rm conftest.$ac_ext
12060 LIBS=$ac_func_search_save_LIBS
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12063 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12064 ac_res=$ac_cv_search_RegOpenKeyExA
12065 if test "$ac_res" != no; then :
12066 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12068 else
12069 enable_win32_registry=no
12074 if test "x$enable_win32_registry" != xno; then
12076 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12079 if test "x$enable_win32_registry" != xyes \
12080 && test "x$enable_win32_registry" != x; then
12082 cat >>confdefs.h <<_ACEOF
12083 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12084 _ACEOF
12089 esac
12091 # Get an absolute path to the GCC top-level source directory
12092 holddir=`${PWDCMD-pwd}`
12093 cd $srcdir
12094 topdir=`${PWDCMD-pwd}`
12095 cd $holddir
12097 # Conditionalize the makefile for this host machine.
12098 xmake_file=
12099 for f in ${host_xmake_file}
12101 if test -f ${srcdir}/config/$f
12102 then
12103 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12105 done
12107 # Conditionalize the makefile for this target machine.
12108 tmake_file_=
12109 for f in ${tmake_file}
12111 if test -f ${srcdir}/config/$f
12112 then
12113 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12115 done
12116 tmake_file="${tmake_file_}"
12118 out_object_file=`basename $out_file .c`.o
12119 common_out_object_file=`basename $common_out_file .c`.o
12121 tm_file_list="options.h"
12122 tm_include_list="options.h insn-constants.h"
12123 for f in $tm_file; do
12124 case $f in
12125 ./* )
12126 f=`echo $f | sed 's/^..//'`
12127 tm_file_list="${tm_file_list} $f"
12128 tm_include_list="${tm_include_list} $f"
12130 defaults.h )
12131 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12132 tm_include_list="${tm_include_list} $f"
12135 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12136 tm_include_list="${tm_include_list} config/$f"
12138 esac
12139 done
12141 tm_p_file_list=
12142 tm_p_include_list=
12143 for f in $tm_p_file; do
12144 case $f in
12145 tm-preds.h )
12146 tm_p_file_list="${tm_p_file_list} $f"
12147 tm_p_include_list="${tm_p_include_list} $f"
12150 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12151 tm_p_include_list="${tm_p_include_list} config/$f"
12152 esac
12153 done
12155 xm_file_list=
12156 xm_include_list=
12157 for f in $xm_file; do
12158 case $f in
12159 ansidecl.h )
12160 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12161 xm_include_list="${xm_include_list} $f"
12163 auto-host.h )
12164 xm_file_list="${xm_file_list} $f"
12165 xm_include_list="${xm_include_list} $f"
12168 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12169 xm_include_list="${xm_include_list} config/$f"
12171 esac
12172 done
12174 host_xm_file_list=
12175 host_xm_include_list=
12176 for f in $host_xm_file; do
12177 case $f in
12178 ansidecl.h )
12179 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12180 host_xm_include_list="${host_xm_include_list} $f"
12182 auto-host.h )
12183 host_xm_file_list="${host_xm_file_list} $f"
12184 host_xm_include_list="${host_xm_include_list} $f"
12187 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12188 host_xm_include_list="${host_xm_include_list} config/$f"
12190 esac
12191 done
12193 build_xm_file_list=
12194 for f in $build_xm_file; do
12195 case $f in
12196 ansidecl.h )
12197 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12198 build_xm_include_list="${build_xm_include_list} $f"
12200 auto-build.h | auto-host.h )
12201 build_xm_file_list="${build_xm_file_list} $f"
12202 build_xm_include_list="${build_xm_include_list} $f"
12205 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12206 build_xm_include_list="${build_xm_include_list} config/$f"
12208 esac
12209 done
12211 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12212 # cross-compiler which does not use the native headers and libraries.
12213 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12214 CROSS=
12215 ALL=all.internal
12216 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12218 if test "x$with_build_sysroot" != x; then
12219 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12220 else
12221 # This value is used, even on a native system, because
12222 # CROSS_SYSTEM_HEADER_DIR is just
12223 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12224 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12227 if test x$host != x$target
12228 then
12229 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12230 ALL=all.cross
12231 SYSTEM_HEADER_DIR=$build_system_header_dir
12232 case $target in
12233 *-*-mingw*)
12234 if test "x$with_headers" = x; then
12235 with_headers=yes
12240 esac
12241 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12242 SYSTEM_HEADER_DIR=$build_system_header_dir
12245 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
12246 if test "x$with_headers" != x && test "x$with_headers" != xyes; then
12247 target_header_dir=$with_headers
12248 elif test "x$with_sysroot" = x; then
12249 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12250 elif test "x$with_build_sysroot" != "x"; then
12251 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12252 elif test "x$with_sysroot" = xyes; then
12253 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12254 else
12255 target_header_dir="${with_sysroot}${native_system_header_dir}"
12257 else
12258 target_header_dir=${native_system_header_dir}
12261 # If this is a cross-compiler that does not
12262 # have its own set of headers then define
12263 # inhibit_libc
12265 # If this is using newlib, without having the headers available now,
12266 # then define inhibit_libc in LIBGCC2_CFLAGS.
12267 # This prevents libgcc2 from containing any code which requires libc
12268 # support.
12269 : ${inhibit_libc=false}
12270 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12271 test x$with_newlib = xyes ; } &&
12272 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12273 inhibit_libc=true
12277 # When building gcc with a cross-compiler, we need to adjust things so
12278 # that the generator programs are still built with the native compiler.
12279 # Also, we cannot run fixincludes.
12281 # These are the normal (build=host) settings:
12282 CC_FOR_BUILD='$(CC)'
12283 CXX_FOR_BUILD='$(CXX)'
12284 BUILD_CFLAGS='$(ALL_CFLAGS)'
12285 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12286 BUILD_LDFLAGS='$(LDFLAGS)'
12287 STMP_FIXINC=stmp-fixinc
12289 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12290 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12292 # And these apply if build != host, or we are generating coverage data
12293 if test x$build != x$host || test "x$coverage_flags" != x
12294 then
12295 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12296 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12297 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12299 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12300 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12301 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12302 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12307 # Expand extra_headers to include complete path.
12308 # This substitutes for lots of t-* files.
12309 extra_headers_list=
12310 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12311 for file in ${extra_headers} ; do
12312 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12313 done
12315 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12316 if test x"$use_gcc_tgmath" = xyes
12317 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12320 # Define collect2 in Makefile.
12321 case $host_can_use_collect2 in
12322 no) collect2= ;;
12323 *) collect2='collect2$(exeext)' ;;
12324 esac
12327 # Add a definition of USE_COLLECT2 if system wants one.
12328 case $use_collect2 in
12329 no) use_collect2= ;;
12330 "") ;;
12332 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12333 xm_defines="${xm_defines} USE_COLLECT2"
12334 case $host_can_use_collect2 in
12336 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12338 esac
12340 esac
12343 cat >>confdefs.h <<_ACEOF
12344 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12345 _ACEOF
12348 # ---------------------------
12349 # Assembler & linker features
12350 # ---------------------------
12352 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12353 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12354 # However when ld-new is first executed from the build tree, libtool will
12355 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12356 # to the build tree. While doing this we need to use the previous-stage
12357 # linker, or we have an infinite loop. The presence of a shell script as
12358 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12359 # the gcc/collect-ld script. So we need to know how libtool works, or
12360 # exec-tool will fail.
12363 case `pwd` in
12364 *\ * | *\ *)
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12366 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12367 esac
12371 macro_version='2.2.7a'
12372 macro_revision='1.3134'
12386 ltmain="$ac_aux_dir/ltmain.sh"
12388 # Backslashify metacharacters that are still active within
12389 # double-quoted strings.
12390 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12392 # Same as above, but do not quote variable references.
12393 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12395 # Sed substitution to delay expansion of an escaped shell variable in a
12396 # double_quote_subst'ed string.
12397 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12399 # Sed substitution to delay expansion of an escaped single quote.
12400 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12402 # Sed substitution to avoid accidental globbing in evaled expressions
12403 no_glob_subst='s/\*/\\\*/g'
12405 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12406 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12407 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12410 $as_echo_n "checking how to print strings... " >&6; }
12411 # Test print first, because it will be a builtin if present.
12412 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12413 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12414 ECHO='print -r --'
12415 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12416 ECHO='printf %s\n'
12417 else
12418 # Use this function as a fallback that always works.
12419 func_fallback_echo ()
12421 eval 'cat <<_LTECHO_EOF
12423 _LTECHO_EOF'
12425 ECHO='func_fallback_echo'
12428 # func_echo_all arg...
12429 # Invoke $ECHO with all args, space-separated.
12430 func_echo_all ()
12432 $ECHO ""
12435 case "$ECHO" in
12436 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12437 $as_echo "printf" >&6; } ;;
12438 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12439 $as_echo "print -r" >&6; } ;;
12440 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12441 $as_echo "cat" >&6; } ;;
12442 esac
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12458 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12459 if test "${ac_cv_path_SED+set}" = set; then :
12460 $as_echo_n "(cached) " >&6
12461 else
12462 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12463 for ac_i in 1 2 3 4 5 6 7; do
12464 ac_script="$ac_script$as_nl$ac_script"
12465 done
12466 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12467 { ac_script=; unset ac_script;}
12468 if test -z "$SED"; then
12469 ac_path_SED_found=false
12470 # Loop through the user's path and test for each of PROGNAME-LIST
12471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12472 for as_dir in $PATH
12474 IFS=$as_save_IFS
12475 test -z "$as_dir" && as_dir=.
12476 for ac_prog in sed gsed; do
12477 for ac_exec_ext in '' $ac_executable_extensions; do
12478 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12479 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12480 # Check for GNU ac_path_SED and select it if it is found.
12481 # Check for GNU $ac_path_SED
12482 case `"$ac_path_SED" --version 2>&1` in
12483 *GNU*)
12484 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12486 ac_count=0
12487 $as_echo_n 0123456789 >"conftest.in"
12488 while :
12490 cat "conftest.in" "conftest.in" >"conftest.tmp"
12491 mv "conftest.tmp" "conftest.in"
12492 cp "conftest.in" "conftest.nl"
12493 $as_echo '' >> "conftest.nl"
12494 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12495 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12496 as_fn_arith $ac_count + 1 && ac_count=$as_val
12497 if test $ac_count -gt ${ac_path_SED_max-0}; then
12498 # Best one so far, save it but keep looking for a better one
12499 ac_cv_path_SED="$ac_path_SED"
12500 ac_path_SED_max=$ac_count
12502 # 10*(2^10) chars as input seems more than enough
12503 test $ac_count -gt 10 && break
12504 done
12505 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12506 esac
12508 $ac_path_SED_found && break 3
12509 done
12510 done
12511 done
12512 IFS=$as_save_IFS
12513 if test -z "$ac_cv_path_SED"; then
12514 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12516 else
12517 ac_cv_path_SED=$SED
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12522 $as_echo "$ac_cv_path_SED" >&6; }
12523 SED="$ac_cv_path_SED"
12524 rm -f conftest.sed
12526 test -z "$SED" && SED=sed
12527 Xsed="$SED -e 1s/^X//"
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12540 $as_echo_n "checking for fgrep... " >&6; }
12541 if test "${ac_cv_path_FGREP+set}" = set; then :
12542 $as_echo_n "(cached) " >&6
12543 else
12544 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12545 then ac_cv_path_FGREP="$GREP -F"
12546 else
12547 if test -z "$FGREP"; then
12548 ac_path_FGREP_found=false
12549 # Loop through the user's path and test for each of PROGNAME-LIST
12550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12551 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12553 IFS=$as_save_IFS
12554 test -z "$as_dir" && as_dir=.
12555 for ac_prog in fgrep; do
12556 for ac_exec_ext in '' $ac_executable_extensions; do
12557 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12558 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12559 # Check for GNU ac_path_FGREP and select it if it is found.
12560 # Check for GNU $ac_path_FGREP
12561 case `"$ac_path_FGREP" --version 2>&1` in
12562 *GNU*)
12563 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12565 ac_count=0
12566 $as_echo_n 0123456789 >"conftest.in"
12567 while :
12569 cat "conftest.in" "conftest.in" >"conftest.tmp"
12570 mv "conftest.tmp" "conftest.in"
12571 cp "conftest.in" "conftest.nl"
12572 $as_echo 'FGREP' >> "conftest.nl"
12573 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12574 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12575 as_fn_arith $ac_count + 1 && ac_count=$as_val
12576 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12577 # Best one so far, save it but keep looking for a better one
12578 ac_cv_path_FGREP="$ac_path_FGREP"
12579 ac_path_FGREP_max=$ac_count
12581 # 10*(2^10) chars as input seems more than enough
12582 test $ac_count -gt 10 && break
12583 done
12584 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12585 esac
12587 $ac_path_FGREP_found && break 3
12588 done
12589 done
12590 done
12591 IFS=$as_save_IFS
12592 if test -z "$ac_cv_path_FGREP"; then
12593 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12595 else
12596 ac_cv_path_FGREP=$FGREP
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12602 $as_echo "$ac_cv_path_FGREP" >&6; }
12603 FGREP="$ac_cv_path_FGREP"
12606 test -z "$GREP" && GREP=grep
12626 # Check whether --with-gnu-ld was given.
12627 if test "${with_gnu_ld+set}" = set; then :
12628 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12629 else
12630 with_gnu_ld=no
12633 ac_prog=ld
12634 if test "$GCC" = yes; then
12635 # Check if gcc -print-prog-name=ld gives a path.
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12637 $as_echo_n "checking for ld used by $CC... " >&6; }
12638 case $host in
12639 *-*-mingw*)
12640 # gcc leaves a trailing carriage return which upsets mingw
12641 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12643 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12644 esac
12645 case $ac_prog in
12646 # Accept absolute paths.
12647 [\\/]* | ?:[\\/]*)
12648 re_direlt='/[^/][^/]*/\.\./'
12649 # Canonicalize the pathname of ld
12650 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12651 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12652 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12653 done
12654 test -z "$LD" && LD="$ac_prog"
12657 # If it fails, then pretend we aren't using GCC.
12658 ac_prog=ld
12661 # If it is relative, then search for the first ld in PATH.
12662 with_gnu_ld=unknown
12664 esac
12665 elif test "$with_gnu_ld" = yes; then
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12667 $as_echo_n "checking for GNU ld... " >&6; }
12668 else
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12670 $as_echo_n "checking for non-GNU ld... " >&6; }
12672 if test "${lt_cv_path_LD+set}" = set; then :
12673 $as_echo_n "(cached) " >&6
12674 else
12675 if test -z "$LD"; then
12676 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12677 for ac_dir in $PATH; do
12678 IFS="$lt_save_ifs"
12679 test -z "$ac_dir" && ac_dir=.
12680 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12681 lt_cv_path_LD="$ac_dir/$ac_prog"
12682 # Check to see if the program is GNU ld. I'd rather use --version,
12683 # but apparently some variants of GNU ld only accept -v.
12684 # Break only if it was the GNU/non-GNU ld that we prefer.
12685 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12686 *GNU* | *'with BFD'*)
12687 test "$with_gnu_ld" != no && break
12690 test "$with_gnu_ld" != yes && break
12692 esac
12694 done
12695 IFS="$lt_save_ifs"
12696 else
12697 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12701 LD="$lt_cv_path_LD"
12702 if test -n "$LD"; then
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12704 $as_echo "$LD" >&6; }
12705 else
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12707 $as_echo "no" >&6; }
12709 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12711 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12712 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12713 $as_echo_n "(cached) " >&6
12714 else
12715 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12716 case `$LD -v 2>&1 </dev/null` in
12717 *GNU* | *'with BFD'*)
12718 lt_cv_prog_gnu_ld=yes
12721 lt_cv_prog_gnu_ld=no
12723 esac
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12726 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12727 with_gnu_ld=$lt_cv_prog_gnu_ld
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12738 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12739 if test "${lt_cv_path_NM+set}" = set; then :
12740 $as_echo_n "(cached) " >&6
12741 else
12742 if test -n "$NM"; then
12743 # Let the user override the test.
12744 lt_cv_path_NM="$NM"
12745 else
12746 lt_nm_to_check="${ac_tool_prefix}nm"
12747 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12748 lt_nm_to_check="$lt_nm_to_check nm"
12750 for lt_tmp_nm in $lt_nm_to_check; do
12751 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12752 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12753 IFS="$lt_save_ifs"
12754 test -z "$ac_dir" && ac_dir=.
12755 tmp_nm="$ac_dir/$lt_tmp_nm"
12756 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12757 # Check to see if the nm accepts a BSD-compat flag.
12758 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12759 # nm: unknown option "B" ignored
12760 # Tru64's nm complains that /dev/null is an invalid object file
12761 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12762 */dev/null* | *'Invalid file or object type'*)
12763 lt_cv_path_NM="$tmp_nm -B"
12764 break
12767 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12768 */dev/null*)
12769 lt_cv_path_NM="$tmp_nm -p"
12770 break
12773 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12774 continue # so that we can try to find one that supports BSD flags
12776 esac
12778 esac
12780 done
12781 IFS="$lt_save_ifs"
12782 done
12783 : ${lt_cv_path_NM=no}
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12787 $as_echo "$lt_cv_path_NM" >&6; }
12788 if test "$lt_cv_path_NM" != "no"; then
12789 NM="$lt_cv_path_NM"
12790 else
12791 # Didn't find any BSD compatible name lister, look for dumpbin.
12792 if test -n "$DUMPBIN"; then :
12793 # Let the user override the test.
12794 else
12795 if test -n "$ac_tool_prefix"; then
12796 for ac_prog in dumpbin "link -dump"
12798 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12799 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12801 $as_echo_n "checking for $ac_word... " >&6; }
12802 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12803 $as_echo_n "(cached) " >&6
12804 else
12805 if test -n "$DUMPBIN"; then
12806 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12807 else
12808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12809 for as_dir in $PATH
12811 IFS=$as_save_IFS
12812 test -z "$as_dir" && as_dir=.
12813 for ac_exec_ext in '' $ac_executable_extensions; do
12814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12815 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12817 break 2
12819 done
12820 done
12821 IFS=$as_save_IFS
12825 DUMPBIN=$ac_cv_prog_DUMPBIN
12826 if test -n "$DUMPBIN"; then
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12828 $as_echo "$DUMPBIN" >&6; }
12829 else
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12831 $as_echo "no" >&6; }
12835 test -n "$DUMPBIN" && break
12836 done
12838 if test -z "$DUMPBIN"; then
12839 ac_ct_DUMPBIN=$DUMPBIN
12840 for ac_prog in dumpbin "link -dump"
12842 # Extract the first word of "$ac_prog", so it can be a program name with args.
12843 set dummy $ac_prog; ac_word=$2
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12845 $as_echo_n "checking for $ac_word... " >&6; }
12846 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12847 $as_echo_n "(cached) " >&6
12848 else
12849 if test -n "$ac_ct_DUMPBIN"; then
12850 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12851 else
12852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12853 for as_dir in $PATH
12855 IFS=$as_save_IFS
12856 test -z "$as_dir" && as_dir=.
12857 for ac_exec_ext in '' $ac_executable_extensions; do
12858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12859 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12861 break 2
12863 done
12864 done
12865 IFS=$as_save_IFS
12869 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12870 if test -n "$ac_ct_DUMPBIN"; then
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12872 $as_echo "$ac_ct_DUMPBIN" >&6; }
12873 else
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12875 $as_echo "no" >&6; }
12879 test -n "$ac_ct_DUMPBIN" && break
12880 done
12882 if test "x$ac_ct_DUMPBIN" = x; then
12883 DUMPBIN=":"
12884 else
12885 case $cross_compiling:$ac_tool_warned in
12886 yes:)
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12889 ac_tool_warned=yes ;;
12890 esac
12891 DUMPBIN=$ac_ct_DUMPBIN
12895 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12896 *COFF*)
12897 DUMPBIN="$DUMPBIN -symbols"
12900 DUMPBIN=:
12902 esac
12905 if test "$DUMPBIN" != ":"; then
12906 NM="$DUMPBIN"
12909 test -z "$NM" && NM=nm
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12917 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12918 if test "${lt_cv_nm_interface+set}" = set; then :
12919 $as_echo_n "(cached) " >&6
12920 else
12921 lt_cv_nm_interface="BSD nm"
12922 echo "int some_variable = 0;" > conftest.$ac_ext
12923 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12924 (eval "$ac_compile" 2>conftest.err)
12925 cat conftest.err >&5
12926 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12927 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12928 cat conftest.err >&5
12929 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12930 cat conftest.out >&5
12931 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12932 lt_cv_nm_interface="MS dumpbin"
12934 rm -f conftest*
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12937 $as_echo "$lt_cv_nm_interface" >&6; }
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12940 $as_echo_n "checking whether ln -s works... " >&6; }
12941 LN_S=$as_ln_s
12942 if test "$LN_S" = "ln -s"; then
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12944 $as_echo "yes" >&6; }
12945 else
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12947 $as_echo "no, using $LN_S" >&6; }
12950 # find the maximum length of command line arguments
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12952 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12953 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12954 $as_echo_n "(cached) " >&6
12955 else
12957 teststring="ABCD"
12959 case $build_os in
12960 msdosdjgpp*)
12961 # On DJGPP, this test can blow up pretty badly due to problems in libc
12962 # (any single argument exceeding 2000 bytes causes a buffer overrun
12963 # during glob expansion). Even if it were fixed, the result of this
12964 # check would be larger than it should be.
12965 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12968 gnu*)
12969 # Under GNU Hurd, this test is not required because there is
12970 # no limit to the length of command line arguments.
12971 # Libtool will interpret -1 as no limit whatsoever
12972 lt_cv_sys_max_cmd_len=-1;
12975 cygwin* | mingw* | cegcc*)
12976 # On Win9x/ME, this test blows up -- it succeeds, but takes
12977 # about 5 minutes as the teststring grows exponentially.
12978 # Worse, since 9x/ME are not pre-emptively multitasking,
12979 # you end up with a "frozen" computer, even though with patience
12980 # the test eventually succeeds (with a max line length of 256k).
12981 # Instead, let's just punt: use the minimum linelength reported by
12982 # all of the supported platforms: 8192 (on NT/2K/XP).
12983 lt_cv_sys_max_cmd_len=8192;
12986 mint*)
12987 # On MiNT this can take a long time and run out of memory.
12988 lt_cv_sys_max_cmd_len=8192;
12991 amigaos*)
12992 # On AmigaOS with pdksh, this test takes hours, literally.
12993 # So we just punt and use a minimum line length of 8192.
12994 lt_cv_sys_max_cmd_len=8192;
12997 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12998 # This has been around since 386BSD, at least. Likely further.
12999 if test -x /sbin/sysctl; then
13000 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13001 elif test -x /usr/sbin/sysctl; then
13002 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13003 else
13004 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13006 # And add a safety zone
13007 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13008 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13011 interix*)
13012 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13013 lt_cv_sys_max_cmd_len=196608
13016 osf*)
13017 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13018 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13019 # nice to cause kernel panics so lets avoid the loop below.
13020 # First set a reasonable default.
13021 lt_cv_sys_max_cmd_len=16384
13023 if test -x /sbin/sysconfig; then
13024 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13025 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13026 esac
13029 sco3.2v5*)
13030 lt_cv_sys_max_cmd_len=102400
13032 sysv5* | sco5v6* | sysv4.2uw2*)
13033 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13034 if test -n "$kargmax"; then
13035 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13036 else
13037 lt_cv_sys_max_cmd_len=32768
13041 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13042 if test -n "$lt_cv_sys_max_cmd_len"; then
13043 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13044 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13045 else
13046 # Make teststring a little bigger before we do anything with it.
13047 # a 1K string should be a reasonable start.
13048 for i in 1 2 3 4 5 6 7 8 ; do
13049 teststring=$teststring$teststring
13050 done
13051 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13052 # If test is not a shell built-in, we'll probably end up computing a
13053 # maximum length that is only half of the actual maximum length, but
13054 # we can't tell.
13055 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13056 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13057 test $i != 17 # 1/2 MB should be enough
13059 i=`expr $i + 1`
13060 teststring=$teststring$teststring
13061 done
13062 # Only check the string length outside the loop.
13063 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13064 teststring=
13065 # Add a significant safety factor because C++ compilers can tack on
13066 # massive amounts of additional arguments before passing them to the
13067 # linker. It appears as though 1/2 is a usable value.
13068 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13071 esac
13075 if test -n $lt_cv_sys_max_cmd_len ; then
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13077 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13078 else
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13080 $as_echo "none" >&6; }
13082 max_cmd_len=$lt_cv_sys_max_cmd_len
13089 : ${CP="cp -f"}
13090 : ${MV="mv -f"}
13091 : ${RM="rm -f"}
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13094 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13095 # Try some XSI features
13096 xsi_shell=no
13097 ( _lt_dummy="a/b/c"
13098 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13099 = c,a/b,, \
13100 && eval 'test $(( 1 + 1 )) -eq 2 \
13101 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13102 && xsi_shell=yes
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13104 $as_echo "$xsi_shell" >&6; }
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13108 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13109 lt_shell_append=no
13110 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13111 >/dev/null 2>&1 \
13112 && lt_shell_append=yes
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13114 $as_echo "$lt_shell_append" >&6; }
13117 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13118 lt_unset=unset
13119 else
13120 lt_unset=false
13127 # test EBCDIC or ASCII
13128 case `echo X|tr X '\101'` in
13129 A) # ASCII based system
13130 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13131 lt_SP2NL='tr \040 \012'
13132 lt_NL2SP='tr \015\012 \040\040'
13134 *) # EBCDIC based system
13135 lt_SP2NL='tr \100 \n'
13136 lt_NL2SP='tr \r\n \100\100'
13138 esac
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13149 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13150 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13151 $as_echo_n "(cached) " >&6
13152 else
13153 lt_cv_ld_reload_flag='-r'
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13156 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13157 reload_flag=$lt_cv_ld_reload_flag
13158 case $reload_flag in
13159 "" | " "*) ;;
13160 *) reload_flag=" $reload_flag" ;;
13161 esac
13162 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13163 case $host_os in
13164 darwin*)
13165 if test "$GCC" = yes; then
13166 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13167 else
13168 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13171 esac
13181 if test -n "$ac_tool_prefix"; then
13182 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13183 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13185 $as_echo_n "checking for $ac_word... " >&6; }
13186 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13187 $as_echo_n "(cached) " >&6
13188 else
13189 if test -n "$OBJDUMP"; then
13190 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13191 else
13192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13193 for as_dir in $PATH
13195 IFS=$as_save_IFS
13196 test -z "$as_dir" && as_dir=.
13197 for ac_exec_ext in '' $ac_executable_extensions; do
13198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13199 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13201 break 2
13203 done
13204 done
13205 IFS=$as_save_IFS
13209 OBJDUMP=$ac_cv_prog_OBJDUMP
13210 if test -n "$OBJDUMP"; then
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13212 $as_echo "$OBJDUMP" >&6; }
13213 else
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13215 $as_echo "no" >&6; }
13220 if test -z "$ac_cv_prog_OBJDUMP"; then
13221 ac_ct_OBJDUMP=$OBJDUMP
13222 # Extract the first word of "objdump", so it can be a program name with args.
13223 set dummy objdump; ac_word=$2
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13225 $as_echo_n "checking for $ac_word... " >&6; }
13226 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13227 $as_echo_n "(cached) " >&6
13228 else
13229 if test -n "$ac_ct_OBJDUMP"; then
13230 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13231 else
13232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233 for as_dir in $PATH
13235 IFS=$as_save_IFS
13236 test -z "$as_dir" && as_dir=.
13237 for ac_exec_ext in '' $ac_executable_extensions; do
13238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13239 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13241 break 2
13243 done
13244 done
13245 IFS=$as_save_IFS
13249 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13250 if test -n "$ac_ct_OBJDUMP"; then
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13252 $as_echo "$ac_ct_OBJDUMP" >&6; }
13253 else
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255 $as_echo "no" >&6; }
13258 if test "x$ac_ct_OBJDUMP" = x; then
13259 OBJDUMP="false"
13260 else
13261 case $cross_compiling:$ac_tool_warned in
13262 yes:)
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13265 ac_tool_warned=yes ;;
13266 esac
13267 OBJDUMP=$ac_ct_OBJDUMP
13269 else
13270 OBJDUMP="$ac_cv_prog_OBJDUMP"
13273 test -z "$OBJDUMP" && OBJDUMP=objdump
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13284 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13285 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13286 $as_echo_n "(cached) " >&6
13287 else
13288 lt_cv_file_magic_cmd='$MAGIC_CMD'
13289 lt_cv_file_magic_test_file=
13290 lt_cv_deplibs_check_method='unknown'
13291 # Need to set the preceding variable on all platforms that support
13292 # interlibrary dependencies.
13293 # 'none' -- dependencies not supported.
13294 # `unknown' -- same as none, but documents that we really don't know.
13295 # 'pass_all' -- all dependencies passed with no checks.
13296 # 'test_compile' -- check by making test program.
13297 # 'file_magic [[regex]]' -- check by looking for files in library path
13298 # which responds to the $file_magic_cmd with a given extended regex.
13299 # If you have `file' or equivalent on your system and you're not sure
13300 # whether `pass_all' will *always* work, you probably want this one.
13302 case $host_os in
13303 aix[4-9]*)
13304 lt_cv_deplibs_check_method=pass_all
13307 beos*)
13308 lt_cv_deplibs_check_method=pass_all
13311 bsdi[45]*)
13312 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13313 lt_cv_file_magic_cmd='/usr/bin/file -L'
13314 lt_cv_file_magic_test_file=/shlib/libc.so
13317 cygwin*)
13318 # func_win32_libid is a shell function defined in ltmain.sh
13319 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13320 lt_cv_file_magic_cmd='func_win32_libid'
13323 mingw* | pw32*)
13324 # Base MSYS/MinGW do not provide the 'file' command needed by
13325 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13326 # unless we find 'file', for example because we are cross-compiling.
13327 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13328 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13329 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13330 lt_cv_file_magic_cmd='func_win32_libid'
13331 else
13332 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13333 lt_cv_file_magic_cmd='$OBJDUMP -f'
13337 cegcc*)
13338 # use the weaker test based on 'objdump'. See mingw*.
13339 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13340 lt_cv_file_magic_cmd='$OBJDUMP -f'
13343 darwin* | rhapsody*)
13344 lt_cv_deplibs_check_method=pass_all
13347 freebsd* | dragonfly*)
13348 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13349 case $host_cpu in
13350 i*86 )
13351 # Not sure whether the presence of OpenBSD here was a mistake.
13352 # Let's accept both of them until this is cleared up.
13353 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13354 lt_cv_file_magic_cmd=/usr/bin/file
13355 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13357 esac
13358 else
13359 lt_cv_deplibs_check_method=pass_all
13363 gnu*)
13364 lt_cv_deplibs_check_method=pass_all
13367 haiku*)
13368 lt_cv_deplibs_check_method=pass_all
13371 hpux10.20* | hpux11*)
13372 lt_cv_file_magic_cmd=/usr/bin/file
13373 case $host_cpu in
13374 ia64*)
13375 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13376 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13378 hppa*64*)
13379 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]'
13380 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13383 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13384 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13386 esac
13389 interix[3-9]*)
13390 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13391 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13394 irix5* | irix6* | nonstopux*)
13395 case $LD in
13396 *-32|*"-32 ") libmagic=32-bit;;
13397 *-n32|*"-n32 ") libmagic=N32;;
13398 *-64|*"-64 ") libmagic=64-bit;;
13399 *) libmagic=never-match;;
13400 esac
13401 lt_cv_deplibs_check_method=pass_all
13404 # This must be Linux ELF.
13405 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13406 lt_cv_deplibs_check_method=pass_all
13409 netbsd*)
13410 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13411 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13412 else
13413 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13417 newos6*)
13418 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13419 lt_cv_file_magic_cmd=/usr/bin/file
13420 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13423 *nto* | *qnx*)
13424 lt_cv_deplibs_check_method=pass_all
13427 openbsd*)
13428 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13429 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13430 else
13431 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13435 osf3* | osf4* | osf5*)
13436 lt_cv_deplibs_check_method=pass_all
13439 rdos*)
13440 lt_cv_deplibs_check_method=pass_all
13443 solaris*)
13444 lt_cv_deplibs_check_method=pass_all
13447 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13448 lt_cv_deplibs_check_method=pass_all
13451 sysv4 | sysv4.3*)
13452 case $host_vendor in
13453 motorola)
13454 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]'
13455 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13457 ncr)
13458 lt_cv_deplibs_check_method=pass_all
13460 sequent)
13461 lt_cv_file_magic_cmd='/bin/file'
13462 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13464 sni)
13465 lt_cv_file_magic_cmd='/bin/file'
13466 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13467 lt_cv_file_magic_test_file=/lib/libc.so
13469 siemens)
13470 lt_cv_deplibs_check_method=pass_all
13473 lt_cv_deplibs_check_method=pass_all
13475 esac
13478 tpf*)
13479 lt_cv_deplibs_check_method=pass_all
13481 esac
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13485 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13486 file_magic_cmd=$lt_cv_file_magic_cmd
13487 deplibs_check_method=$lt_cv_deplibs_check_method
13488 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13501 if test -n "$ac_tool_prefix"; then
13502 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13503 set dummy ${ac_tool_prefix}ar; ac_word=$2
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13505 $as_echo_n "checking for $ac_word... " >&6; }
13506 if test "${ac_cv_prog_AR+set}" = set; then :
13507 $as_echo_n "(cached) " >&6
13508 else
13509 if test -n "$AR"; then
13510 ac_cv_prog_AR="$AR" # Let the user override the test.
13511 else
13512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13513 for as_dir in $PATH
13515 IFS=$as_save_IFS
13516 test -z "$as_dir" && as_dir=.
13517 for ac_exec_ext in '' $ac_executable_extensions; do
13518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13519 ac_cv_prog_AR="${ac_tool_prefix}ar"
13520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13521 break 2
13523 done
13524 done
13525 IFS=$as_save_IFS
13529 AR=$ac_cv_prog_AR
13530 if test -n "$AR"; then
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13532 $as_echo "$AR" >&6; }
13533 else
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13535 $as_echo "no" >&6; }
13540 if test -z "$ac_cv_prog_AR"; then
13541 ac_ct_AR=$AR
13542 # Extract the first word of "ar", so it can be a program name with args.
13543 set dummy ar; ac_word=$2
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13545 $as_echo_n "checking for $ac_word... " >&6; }
13546 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13547 $as_echo_n "(cached) " >&6
13548 else
13549 if test -n "$ac_ct_AR"; then
13550 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13551 else
13552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13553 for as_dir in $PATH
13555 IFS=$as_save_IFS
13556 test -z "$as_dir" && as_dir=.
13557 for ac_exec_ext in '' $ac_executable_extensions; do
13558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13559 ac_cv_prog_ac_ct_AR="ar"
13560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13561 break 2
13563 done
13564 done
13565 IFS=$as_save_IFS
13569 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13570 if test -n "$ac_ct_AR"; then
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13572 $as_echo "$ac_ct_AR" >&6; }
13573 else
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13575 $as_echo "no" >&6; }
13578 if test "x$ac_ct_AR" = x; then
13579 AR="false"
13580 else
13581 case $cross_compiling:$ac_tool_warned in
13582 yes:)
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13585 ac_tool_warned=yes ;;
13586 esac
13587 AR=$ac_ct_AR
13589 else
13590 AR="$ac_cv_prog_AR"
13593 test -z "$AR" && AR=ar
13594 test -z "$AR_FLAGS" && AR_FLAGS=cru
13606 if test -n "$ac_tool_prefix"; then
13607 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13608 set dummy ${ac_tool_prefix}strip; ac_word=$2
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13610 $as_echo_n "checking for $ac_word... " >&6; }
13611 if test "${ac_cv_prog_STRIP+set}" = set; then :
13612 $as_echo_n "(cached) " >&6
13613 else
13614 if test -n "$STRIP"; then
13615 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13616 else
13617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13618 for as_dir in $PATH
13620 IFS=$as_save_IFS
13621 test -z "$as_dir" && as_dir=.
13622 for ac_exec_ext in '' $ac_executable_extensions; do
13623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13624 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13626 break 2
13628 done
13629 done
13630 IFS=$as_save_IFS
13634 STRIP=$ac_cv_prog_STRIP
13635 if test -n "$STRIP"; then
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13637 $as_echo "$STRIP" >&6; }
13638 else
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13640 $as_echo "no" >&6; }
13645 if test -z "$ac_cv_prog_STRIP"; then
13646 ac_ct_STRIP=$STRIP
13647 # Extract the first word of "strip", so it can be a program name with args.
13648 set dummy strip; ac_word=$2
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13650 $as_echo_n "checking for $ac_word... " >&6; }
13651 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13652 $as_echo_n "(cached) " >&6
13653 else
13654 if test -n "$ac_ct_STRIP"; then
13655 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13656 else
13657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13658 for as_dir in $PATH
13660 IFS=$as_save_IFS
13661 test -z "$as_dir" && as_dir=.
13662 for ac_exec_ext in '' $ac_executable_extensions; do
13663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13664 ac_cv_prog_ac_ct_STRIP="strip"
13665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13666 break 2
13668 done
13669 done
13670 IFS=$as_save_IFS
13674 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13675 if test -n "$ac_ct_STRIP"; then
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13677 $as_echo "$ac_ct_STRIP" >&6; }
13678 else
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13680 $as_echo "no" >&6; }
13683 if test "x$ac_ct_STRIP" = x; then
13684 STRIP=":"
13685 else
13686 case $cross_compiling:$ac_tool_warned in
13687 yes:)
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13690 ac_tool_warned=yes ;;
13691 esac
13692 STRIP=$ac_ct_STRIP
13694 else
13695 STRIP="$ac_cv_prog_STRIP"
13698 test -z "$STRIP" && STRIP=:
13705 if test -n "$ac_tool_prefix"; then
13706 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13707 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13709 $as_echo_n "checking for $ac_word... " >&6; }
13710 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13711 $as_echo_n "(cached) " >&6
13712 else
13713 if test -n "$RANLIB"; then
13714 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13715 else
13716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13717 for as_dir in $PATH
13719 IFS=$as_save_IFS
13720 test -z "$as_dir" && as_dir=.
13721 for ac_exec_ext in '' $ac_executable_extensions; do
13722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13723 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13725 break 2
13727 done
13728 done
13729 IFS=$as_save_IFS
13733 RANLIB=$ac_cv_prog_RANLIB
13734 if test -n "$RANLIB"; then
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13736 $as_echo "$RANLIB" >&6; }
13737 else
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13739 $as_echo "no" >&6; }
13744 if test -z "$ac_cv_prog_RANLIB"; then
13745 ac_ct_RANLIB=$RANLIB
13746 # Extract the first word of "ranlib", so it can be a program name with args.
13747 set dummy ranlib; ac_word=$2
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13749 $as_echo_n "checking for $ac_word... " >&6; }
13750 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13751 $as_echo_n "(cached) " >&6
13752 else
13753 if test -n "$ac_ct_RANLIB"; then
13754 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13755 else
13756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13757 for as_dir in $PATH
13759 IFS=$as_save_IFS
13760 test -z "$as_dir" && as_dir=.
13761 for ac_exec_ext in '' $ac_executable_extensions; do
13762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13763 ac_cv_prog_ac_ct_RANLIB="ranlib"
13764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13765 break 2
13767 done
13768 done
13769 IFS=$as_save_IFS
13773 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13774 if test -n "$ac_ct_RANLIB"; then
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13776 $as_echo "$ac_ct_RANLIB" >&6; }
13777 else
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13779 $as_echo "no" >&6; }
13782 if test "x$ac_ct_RANLIB" = x; then
13783 RANLIB=":"
13784 else
13785 case $cross_compiling:$ac_tool_warned in
13786 yes:)
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13789 ac_tool_warned=yes ;;
13790 esac
13791 RANLIB=$ac_ct_RANLIB
13793 else
13794 RANLIB="$ac_cv_prog_RANLIB"
13797 test -z "$RANLIB" && RANLIB=:
13804 # Determine commands to create old-style static archives.
13805 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13806 old_postinstall_cmds='chmod 644 $oldlib'
13807 old_postuninstall_cmds=
13809 if test -n "$RANLIB"; then
13810 case $host_os in
13811 openbsd*)
13812 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13815 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13817 esac
13818 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13821 case $host_os in
13822 darwin*)
13823 lock_old_archive_extraction=yes ;;
13825 lock_old_archive_extraction=no ;;
13826 esac
13866 # If no C compiler was specified, use CC.
13867 LTCC=${LTCC-"$CC"}
13869 # If no C compiler flags were specified, use CFLAGS.
13870 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13872 # Allow CC to be a program name with arguments.
13873 compiler=$CC
13876 # Check for command to grab the raw symbol name followed by C symbol from nm.
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13878 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13879 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13880 $as_echo_n "(cached) " >&6
13881 else
13883 # These are sane defaults that work on at least a few old systems.
13884 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13886 # Character class describing NM global symbol codes.
13887 symcode='[BCDEGRST]'
13889 # Regexp to match symbols that can be accessed directly from C.
13890 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13892 # Define system-specific variables.
13893 case $host_os in
13894 aix*)
13895 symcode='[BCDT]'
13897 cygwin* | mingw* | pw32* | cegcc*)
13898 symcode='[ABCDGISTW]'
13900 hpux*)
13901 if test "$host_cpu" = ia64; then
13902 symcode='[ABCDEGRST]'
13905 irix* | nonstopux*)
13906 symcode='[BCDEGRST]'
13908 osf*)
13909 symcode='[BCDEGQRST]'
13911 solaris*)
13912 symcode='[BDRT]'
13914 sco3.2v5*)
13915 symcode='[DT]'
13917 sysv4.2uw2*)
13918 symcode='[DT]'
13920 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13921 symcode='[ABDT]'
13923 sysv4)
13924 symcode='[DFNSTU]'
13926 esac
13928 # If we're using GNU nm, then use its standard symbol codes.
13929 case `$NM -V 2>&1` in
13930 *GNU* | *'with BFD'*)
13931 symcode='[ABCDGIRSTW]' ;;
13932 esac
13934 # Transform an extracted symbol line into a proper C declaration.
13935 # Some systems (esp. on ia64) link data and code symbols differently,
13936 # so use this general approach.
13937 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13939 # Transform an extracted symbol line into symbol name and symbol address
13940 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13941 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'"
13943 # Handle CRLF in mingw tool chain
13944 opt_cr=
13945 case $build_os in
13946 mingw*)
13947 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13949 esac
13951 # Try without a prefix underscore, then with it.
13952 for ac_symprfx in "" "_"; do
13954 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13955 symxfrm="\\1 $ac_symprfx\\2 \\2"
13957 # Write the raw and C identifiers.
13958 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13959 # Fake it for dumpbin and say T for any non-static function
13960 # and D for any global variable.
13961 # Also find C++ and __fastcall symbols from MSVC++,
13962 # which start with @ or ?.
13963 lt_cv_sys_global_symbol_pipe="$AWK '"\
13964 " {last_section=section; section=\$ 3};"\
13965 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13966 " \$ 0!~/External *\|/{next};"\
13967 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13968 " {if(hide[section]) next};"\
13969 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13970 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13971 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13972 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13973 " ' prfx=^$ac_symprfx"
13974 else
13975 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13978 # Check to see that the pipe works correctly.
13979 pipe_works=no
13981 rm -f conftest*
13982 cat > conftest.$ac_ext <<_LT_EOF
13983 #ifdef __cplusplus
13984 extern "C" {
13985 #endif
13986 char nm_test_var;
13987 void nm_test_func(void);
13988 void nm_test_func(void){}
13989 #ifdef __cplusplus
13991 #endif
13992 int main(){nm_test_var='a';nm_test_func();return(0);}
13993 _LT_EOF
13995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13996 (eval $ac_compile) 2>&5
13997 ac_status=$?
13998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13999 test $ac_status = 0; }; then
14000 # Now try to grab the symbols.
14001 nlist=conftest.nm
14002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14003 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14004 ac_status=$?
14005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14006 test $ac_status = 0; } && test -s "$nlist"; then
14007 # Try sorting and uniquifying the output.
14008 if sort "$nlist" | uniq > "$nlist"T; then
14009 mv -f "$nlist"T "$nlist"
14010 else
14011 rm -f "$nlist"T
14014 # Make sure that we snagged all the symbols we need.
14015 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14016 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14017 cat <<_LT_EOF > conftest.$ac_ext
14018 #ifdef __cplusplus
14019 extern "C" {
14020 #endif
14022 _LT_EOF
14023 # Now generate the symbol file.
14024 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14026 cat <<_LT_EOF >> conftest.$ac_ext
14028 /* The mapping between symbol names and symbols. */
14029 const struct {
14030 const char *name;
14031 void *address;
14033 lt__PROGRAM__LTX_preloaded_symbols[] =
14035 { "@PROGRAM@", (void *) 0 },
14036 _LT_EOF
14037 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14038 cat <<\_LT_EOF >> conftest.$ac_ext
14039 {0, (void *) 0}
14042 /* This works around a problem in FreeBSD linker */
14043 #ifdef FREEBSD_WORKAROUND
14044 static const void *lt_preloaded_setup() {
14045 return lt__PROGRAM__LTX_preloaded_symbols;
14047 #endif
14049 #ifdef __cplusplus
14051 #endif
14052 _LT_EOF
14053 # Now try linking the two files.
14054 mv conftest.$ac_objext conftstm.$ac_objext
14055 lt_save_LIBS="$LIBS"
14056 lt_save_CFLAGS="$CFLAGS"
14057 LIBS="conftstm.$ac_objext"
14058 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14060 (eval $ac_link) 2>&5
14061 ac_status=$?
14062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14063 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14064 pipe_works=yes
14066 LIBS="$lt_save_LIBS"
14067 CFLAGS="$lt_save_CFLAGS"
14068 else
14069 echo "cannot find nm_test_func in $nlist" >&5
14071 else
14072 echo "cannot find nm_test_var in $nlist" >&5
14074 else
14075 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14077 else
14078 echo "$progname: failed program was:" >&5
14079 cat conftest.$ac_ext >&5
14081 rm -rf conftest* conftst*
14083 # Do not use the global_symbol_pipe unless it works.
14084 if test "$pipe_works" = yes; then
14085 break
14086 else
14087 lt_cv_sys_global_symbol_pipe=
14089 done
14093 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14094 lt_cv_sys_global_symbol_to_cdecl=
14096 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14098 $as_echo "failed" >&6; }
14099 else
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14101 $as_echo "ok" >&6; }
14125 # Check whether --enable-libtool-lock was given.
14126 if test "${enable_libtool_lock+set}" = set; then :
14127 enableval=$enable_libtool_lock;
14130 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14132 # Some flags need to be propagated to the compiler or linker for good
14133 # libtool support.
14134 case $host in
14135 ia64-*-hpux*)
14136 # Find out which ABI we are using.
14137 echo 'int i;' > conftest.$ac_ext
14138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14139 (eval $ac_compile) 2>&5
14140 ac_status=$?
14141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14142 test $ac_status = 0; }; then
14143 case `/usr/bin/file conftest.$ac_objext` in
14144 *ELF-32*)
14145 HPUX_IA64_MODE="32"
14147 *ELF-64*)
14148 HPUX_IA64_MODE="64"
14150 esac
14152 rm -rf conftest*
14154 *-*-irix6*)
14155 # Find out which ABI we are using.
14156 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14158 (eval $ac_compile) 2>&5
14159 ac_status=$?
14160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14161 test $ac_status = 0; }; then
14162 if test "$lt_cv_prog_gnu_ld" = yes; then
14163 case `/usr/bin/file conftest.$ac_objext` in
14164 *32-bit*)
14165 LD="${LD-ld} -melf32bsmip"
14167 *N32*)
14168 LD="${LD-ld} -melf32bmipn32"
14170 *64-bit*)
14171 LD="${LD-ld} -melf64bmip"
14173 esac
14174 else
14175 case `/usr/bin/file conftest.$ac_objext` in
14176 *32-bit*)
14177 LD="${LD-ld} -32"
14179 *N32*)
14180 LD="${LD-ld} -n32"
14182 *64-bit*)
14183 LD="${LD-ld} -64"
14185 esac
14188 rm -rf conftest*
14191 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14192 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14193 # Find out which ABI we are using.
14194 echo 'int i;' > conftest.$ac_ext
14195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14196 (eval $ac_compile) 2>&5
14197 ac_status=$?
14198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14199 test $ac_status = 0; }; then
14200 case `/usr/bin/file conftest.o` in
14201 *32-bit*)
14202 case $host in
14203 x86_64-*kfreebsd*-gnu)
14204 LD="${LD-ld} -m elf_i386_fbsd"
14206 x86_64-*linux*)
14207 case `/usr/bin/file conftest.o` in
14208 *x86-64*)
14209 LD="${LD-ld} -m elf32_x86_64"
14212 LD="${LD-ld} -m elf_i386"
14214 esac
14216 powerpc64le-*linux*)
14217 LD="${LD-ld} -m elf32lppclinux"
14219 powerpc64-*linux*)
14220 LD="${LD-ld} -m elf32ppclinux"
14222 s390x-*linux*)
14223 LD="${LD-ld} -m elf_s390"
14225 sparc64-*linux*)
14226 LD="${LD-ld} -m elf32_sparc"
14228 esac
14230 *64-bit*)
14231 case $host in
14232 x86_64-*kfreebsd*-gnu)
14233 LD="${LD-ld} -m elf_x86_64_fbsd"
14235 x86_64-*linux*)
14236 LD="${LD-ld} -m elf_x86_64"
14238 powerpcle-*linux*)
14239 LD="${LD-ld} -m elf64lppc"
14241 powerpc-*linux*)
14242 LD="${LD-ld} -m elf64ppc"
14244 s390*-*linux*|s390*-*tpf*)
14245 LD="${LD-ld} -m elf64_s390"
14247 sparc*-*linux*)
14248 LD="${LD-ld} -m elf64_sparc"
14250 esac
14252 esac
14254 rm -rf conftest*
14257 *-*-sco3.2v5*)
14258 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14259 SAVE_CFLAGS="$CFLAGS"
14260 CFLAGS="$CFLAGS -belf"
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14262 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14263 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14264 $as_echo_n "(cached) " >&6
14265 else
14266 ac_ext=c
14267 ac_cpp='$CPP $CPPFLAGS'
14268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273 /* end confdefs.h. */
14276 main ()
14280 return 0;
14282 _ACEOF
14283 if ac_fn_c_try_link "$LINENO"; then :
14284 lt_cv_cc_needs_belf=yes
14285 else
14286 lt_cv_cc_needs_belf=no
14288 rm -f core conftest.err conftest.$ac_objext \
14289 conftest$ac_exeext conftest.$ac_ext
14290 ac_ext=c
14291 ac_cpp='$CPP $CPPFLAGS'
14292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14298 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14299 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14300 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14301 CFLAGS="$SAVE_CFLAGS"
14304 sparc*-*solaris*)
14305 # Find out which ABI we are using.
14306 echo 'int i;' > conftest.$ac_ext
14307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14308 (eval $ac_compile) 2>&5
14309 ac_status=$?
14310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14311 test $ac_status = 0; }; then
14312 case `/usr/bin/file conftest.o` in
14313 *64-bit*)
14314 case $lt_cv_prog_gnu_ld in
14315 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14317 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14318 LD="${LD-ld} -64"
14321 esac
14323 esac
14325 rm -rf conftest*
14327 esac
14329 need_locks="$enable_libtool_lock"
14332 case $host_os in
14333 rhapsody* | darwin*)
14334 if test -n "$ac_tool_prefix"; then
14335 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14336 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14338 $as_echo_n "checking for $ac_word... " >&6; }
14339 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14340 $as_echo_n "(cached) " >&6
14341 else
14342 if test -n "$DSYMUTIL"; then
14343 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14344 else
14345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14346 for as_dir in $PATH
14348 IFS=$as_save_IFS
14349 test -z "$as_dir" && as_dir=.
14350 for ac_exec_ext in '' $ac_executable_extensions; do
14351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14352 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14354 break 2
14356 done
14357 done
14358 IFS=$as_save_IFS
14362 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14363 if test -n "$DSYMUTIL"; then
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14365 $as_echo "$DSYMUTIL" >&6; }
14366 else
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14368 $as_echo "no" >&6; }
14373 if test -z "$ac_cv_prog_DSYMUTIL"; then
14374 ac_ct_DSYMUTIL=$DSYMUTIL
14375 # Extract the first word of "dsymutil", so it can be a program name with args.
14376 set dummy dsymutil; ac_word=$2
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14378 $as_echo_n "checking for $ac_word... " >&6; }
14379 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14380 $as_echo_n "(cached) " >&6
14381 else
14382 if test -n "$ac_ct_DSYMUTIL"; then
14383 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14384 else
14385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14386 for as_dir in $PATH
14388 IFS=$as_save_IFS
14389 test -z "$as_dir" && as_dir=.
14390 for ac_exec_ext in '' $ac_executable_extensions; do
14391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14392 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14394 break 2
14396 done
14397 done
14398 IFS=$as_save_IFS
14402 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14403 if test -n "$ac_ct_DSYMUTIL"; then
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14405 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14406 else
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14408 $as_echo "no" >&6; }
14411 if test "x$ac_ct_DSYMUTIL" = x; then
14412 DSYMUTIL=":"
14413 else
14414 case $cross_compiling:$ac_tool_warned in
14415 yes:)
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14418 ac_tool_warned=yes ;;
14419 esac
14420 DSYMUTIL=$ac_ct_DSYMUTIL
14422 else
14423 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14426 if test -n "$ac_tool_prefix"; then
14427 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14428 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14430 $as_echo_n "checking for $ac_word... " >&6; }
14431 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14432 $as_echo_n "(cached) " >&6
14433 else
14434 if test -n "$NMEDIT"; then
14435 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14436 else
14437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14438 for as_dir in $PATH
14440 IFS=$as_save_IFS
14441 test -z "$as_dir" && as_dir=.
14442 for ac_exec_ext in '' $ac_executable_extensions; do
14443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14444 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14446 break 2
14448 done
14449 done
14450 IFS=$as_save_IFS
14454 NMEDIT=$ac_cv_prog_NMEDIT
14455 if test -n "$NMEDIT"; then
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14457 $as_echo "$NMEDIT" >&6; }
14458 else
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14460 $as_echo "no" >&6; }
14465 if test -z "$ac_cv_prog_NMEDIT"; then
14466 ac_ct_NMEDIT=$NMEDIT
14467 # Extract the first word of "nmedit", so it can be a program name with args.
14468 set dummy nmedit; ac_word=$2
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14470 $as_echo_n "checking for $ac_word... " >&6; }
14471 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14472 $as_echo_n "(cached) " >&6
14473 else
14474 if test -n "$ac_ct_NMEDIT"; then
14475 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14476 else
14477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14478 for as_dir in $PATH
14480 IFS=$as_save_IFS
14481 test -z "$as_dir" && as_dir=.
14482 for ac_exec_ext in '' $ac_executable_extensions; do
14483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14484 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14486 break 2
14488 done
14489 done
14490 IFS=$as_save_IFS
14494 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14495 if test -n "$ac_ct_NMEDIT"; then
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14497 $as_echo "$ac_ct_NMEDIT" >&6; }
14498 else
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14500 $as_echo "no" >&6; }
14503 if test "x$ac_ct_NMEDIT" = x; then
14504 NMEDIT=":"
14505 else
14506 case $cross_compiling:$ac_tool_warned in
14507 yes:)
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14510 ac_tool_warned=yes ;;
14511 esac
14512 NMEDIT=$ac_ct_NMEDIT
14514 else
14515 NMEDIT="$ac_cv_prog_NMEDIT"
14518 if test -n "$ac_tool_prefix"; then
14519 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14520 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14522 $as_echo_n "checking for $ac_word... " >&6; }
14523 if test "${ac_cv_prog_LIPO+set}" = set; then :
14524 $as_echo_n "(cached) " >&6
14525 else
14526 if test -n "$LIPO"; then
14527 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14528 else
14529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14530 for as_dir in $PATH
14532 IFS=$as_save_IFS
14533 test -z "$as_dir" && as_dir=.
14534 for ac_exec_ext in '' $ac_executable_extensions; do
14535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14536 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14538 break 2
14540 done
14541 done
14542 IFS=$as_save_IFS
14546 LIPO=$ac_cv_prog_LIPO
14547 if test -n "$LIPO"; then
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14549 $as_echo "$LIPO" >&6; }
14550 else
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14552 $as_echo "no" >&6; }
14557 if test -z "$ac_cv_prog_LIPO"; then
14558 ac_ct_LIPO=$LIPO
14559 # Extract the first word of "lipo", so it can be a program name with args.
14560 set dummy lipo; ac_word=$2
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14562 $as_echo_n "checking for $ac_word... " >&6; }
14563 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14564 $as_echo_n "(cached) " >&6
14565 else
14566 if test -n "$ac_ct_LIPO"; then
14567 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14568 else
14569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14570 for as_dir in $PATH
14572 IFS=$as_save_IFS
14573 test -z "$as_dir" && as_dir=.
14574 for ac_exec_ext in '' $ac_executable_extensions; do
14575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14576 ac_cv_prog_ac_ct_LIPO="lipo"
14577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14578 break 2
14580 done
14581 done
14582 IFS=$as_save_IFS
14586 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14587 if test -n "$ac_ct_LIPO"; then
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14589 $as_echo "$ac_ct_LIPO" >&6; }
14590 else
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14592 $as_echo "no" >&6; }
14595 if test "x$ac_ct_LIPO" = x; then
14596 LIPO=":"
14597 else
14598 case $cross_compiling:$ac_tool_warned in
14599 yes:)
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14602 ac_tool_warned=yes ;;
14603 esac
14604 LIPO=$ac_ct_LIPO
14606 else
14607 LIPO="$ac_cv_prog_LIPO"
14610 if test -n "$ac_tool_prefix"; then
14611 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14612 set dummy ${ac_tool_prefix}otool; ac_word=$2
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14614 $as_echo_n "checking for $ac_word... " >&6; }
14615 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14616 $as_echo_n "(cached) " >&6
14617 else
14618 if test -n "$OTOOL"; then
14619 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14620 else
14621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14622 for as_dir in $PATH
14624 IFS=$as_save_IFS
14625 test -z "$as_dir" && as_dir=.
14626 for ac_exec_ext in '' $ac_executable_extensions; do
14627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14628 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14630 break 2
14632 done
14633 done
14634 IFS=$as_save_IFS
14638 OTOOL=$ac_cv_prog_OTOOL
14639 if test -n "$OTOOL"; then
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14641 $as_echo "$OTOOL" >&6; }
14642 else
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14644 $as_echo "no" >&6; }
14649 if test -z "$ac_cv_prog_OTOOL"; then
14650 ac_ct_OTOOL=$OTOOL
14651 # Extract the first word of "otool", so it can be a program name with args.
14652 set dummy otool; ac_word=$2
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14654 $as_echo_n "checking for $ac_word... " >&6; }
14655 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14656 $as_echo_n "(cached) " >&6
14657 else
14658 if test -n "$ac_ct_OTOOL"; then
14659 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14660 else
14661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14662 for as_dir in $PATH
14664 IFS=$as_save_IFS
14665 test -z "$as_dir" && as_dir=.
14666 for ac_exec_ext in '' $ac_executable_extensions; do
14667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14668 ac_cv_prog_ac_ct_OTOOL="otool"
14669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14670 break 2
14672 done
14673 done
14674 IFS=$as_save_IFS
14678 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14679 if test -n "$ac_ct_OTOOL"; then
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14681 $as_echo "$ac_ct_OTOOL" >&6; }
14682 else
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14684 $as_echo "no" >&6; }
14687 if test "x$ac_ct_OTOOL" = x; then
14688 OTOOL=":"
14689 else
14690 case $cross_compiling:$ac_tool_warned in
14691 yes:)
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14694 ac_tool_warned=yes ;;
14695 esac
14696 OTOOL=$ac_ct_OTOOL
14698 else
14699 OTOOL="$ac_cv_prog_OTOOL"
14702 if test -n "$ac_tool_prefix"; then
14703 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14704 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14706 $as_echo_n "checking for $ac_word... " >&6; }
14707 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14708 $as_echo_n "(cached) " >&6
14709 else
14710 if test -n "$OTOOL64"; then
14711 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14712 else
14713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14714 for as_dir in $PATH
14716 IFS=$as_save_IFS
14717 test -z "$as_dir" && as_dir=.
14718 for ac_exec_ext in '' $ac_executable_extensions; do
14719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14720 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14722 break 2
14724 done
14725 done
14726 IFS=$as_save_IFS
14730 OTOOL64=$ac_cv_prog_OTOOL64
14731 if test -n "$OTOOL64"; then
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14733 $as_echo "$OTOOL64" >&6; }
14734 else
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14736 $as_echo "no" >&6; }
14741 if test -z "$ac_cv_prog_OTOOL64"; then
14742 ac_ct_OTOOL64=$OTOOL64
14743 # Extract the first word of "otool64", so it can be a program name with args.
14744 set dummy otool64; ac_word=$2
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14746 $as_echo_n "checking for $ac_word... " >&6; }
14747 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14748 $as_echo_n "(cached) " >&6
14749 else
14750 if test -n "$ac_ct_OTOOL64"; then
14751 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14752 else
14753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14754 for as_dir in $PATH
14756 IFS=$as_save_IFS
14757 test -z "$as_dir" && as_dir=.
14758 for ac_exec_ext in '' $ac_executable_extensions; do
14759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14760 ac_cv_prog_ac_ct_OTOOL64="otool64"
14761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14762 break 2
14764 done
14765 done
14766 IFS=$as_save_IFS
14770 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14771 if test -n "$ac_ct_OTOOL64"; then
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14773 $as_echo "$ac_ct_OTOOL64" >&6; }
14774 else
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14776 $as_echo "no" >&6; }
14779 if test "x$ac_ct_OTOOL64" = x; then
14780 OTOOL64=":"
14781 else
14782 case $cross_compiling:$ac_tool_warned in
14783 yes:)
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14786 ac_tool_warned=yes ;;
14787 esac
14788 OTOOL64=$ac_ct_OTOOL64
14790 else
14791 OTOOL64="$ac_cv_prog_OTOOL64"
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14821 $as_echo_n "checking for -single_module linker flag... " >&6; }
14822 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14823 $as_echo_n "(cached) " >&6
14824 else
14825 lt_cv_apple_cc_single_mod=no
14826 if test -z "${LT_MULTI_MODULE}"; then
14827 # By default we will add the -single_module flag. You can override
14828 # by either setting the environment variable LT_MULTI_MODULE
14829 # non-empty at configure time, or by adding -multi_module to the
14830 # link flags.
14831 rm -rf libconftest.dylib*
14832 echo "int foo(void){return 1;}" > conftest.c
14833 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14834 -dynamiclib -Wl,-single_module conftest.c" >&5
14835 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14836 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14837 _lt_result=$?
14838 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14839 lt_cv_apple_cc_single_mod=yes
14840 else
14841 cat conftest.err >&5
14843 rm -rf libconftest.dylib*
14844 rm -f conftest.*
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14848 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14850 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14851 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14852 $as_echo_n "(cached) " >&6
14853 else
14854 lt_cv_ld_exported_symbols_list=no
14855 save_LDFLAGS=$LDFLAGS
14856 echo "_main" > conftest.sym
14857 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14859 /* end confdefs.h. */
14862 main ()
14866 return 0;
14868 _ACEOF
14869 if ac_fn_c_try_link "$LINENO"; then :
14870 lt_cv_ld_exported_symbols_list=yes
14871 else
14872 lt_cv_ld_exported_symbols_list=no
14874 rm -f core conftest.err conftest.$ac_objext \
14875 conftest$ac_exeext conftest.$ac_ext
14876 LDFLAGS="$save_LDFLAGS"
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14880 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14882 $as_echo_n "checking for -force_load linker flag... " >&6; }
14883 if test "${lt_cv_ld_force_load+set}" = set; then :
14884 $as_echo_n "(cached) " >&6
14885 else
14886 lt_cv_ld_force_load=no
14887 cat > conftest.c << _LT_EOF
14888 int forced_loaded() { return 2;}
14889 _LT_EOF
14890 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14891 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14892 echo "$AR cru libconftest.a conftest.o" >&5
14893 $AR cru libconftest.a conftest.o 2>&5
14894 cat > conftest.c << _LT_EOF
14895 int main() { return 0;}
14896 _LT_EOF
14897 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14898 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14899 _lt_result=$?
14900 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14901 lt_cv_ld_force_load=yes
14902 else
14903 cat conftest.err >&5
14905 rm -f conftest.err libconftest.a conftest conftest.c
14906 rm -rf conftest.dSYM
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14910 $as_echo "$lt_cv_ld_force_load" >&6; }
14911 case $host_os in
14912 rhapsody* | darwin1.[012])
14913 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14914 darwin1.*)
14915 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14916 darwin*) # darwin 5.x on
14917 # if running on 10.5 or later, the deployment target defaults
14918 # to the OS version, if on x86, and 10.4, the deployment
14919 # target defaults to 10.4. Don't you love it?
14920 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14921 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14922 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14923 10.[012][,.]*)
14924 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14925 10.*)
14926 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14927 esac
14929 esac
14930 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14931 _lt_dar_single_mod='$single_module'
14933 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14934 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14935 else
14936 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14938 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14939 _lt_dsymutil='~$DSYMUTIL $lib || :'
14940 else
14941 _lt_dsymutil=
14944 esac
14947 for ac_header in dlfcn.h
14948 do :
14949 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14950 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14951 cat >>confdefs.h <<_ACEOF
14952 #define HAVE_DLFCN_H 1
14953 _ACEOF
14956 done
14962 # Set options
14966 enable_dlopen=no
14969 enable_win32_dll=no
14972 # Check whether --enable-shared was given.
14973 if test "${enable_shared+set}" = set; then :
14974 enableval=$enable_shared; p=${PACKAGE-default}
14975 case $enableval in
14976 yes) enable_shared=yes ;;
14977 no) enable_shared=no ;;
14979 enable_shared=no
14980 # Look at the argument we got. We use all the common list separators.
14981 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14982 for pkg in $enableval; do
14983 IFS="$lt_save_ifs"
14984 if test "X$pkg" = "X$p"; then
14985 enable_shared=yes
14987 done
14988 IFS="$lt_save_ifs"
14990 esac
14991 else
14992 enable_shared=yes
15003 # Check whether --enable-static was given.
15004 if test "${enable_static+set}" = set; then :
15005 enableval=$enable_static; p=${PACKAGE-default}
15006 case $enableval in
15007 yes) enable_static=yes ;;
15008 no) enable_static=no ;;
15010 enable_static=no
15011 # Look at the argument we got. We use all the common list separators.
15012 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15013 for pkg in $enableval; do
15014 IFS="$lt_save_ifs"
15015 if test "X$pkg" = "X$p"; then
15016 enable_static=yes
15018 done
15019 IFS="$lt_save_ifs"
15021 esac
15022 else
15023 enable_static=yes
15035 # Check whether --with-pic was given.
15036 if test "${with_pic+set}" = set; then :
15037 withval=$with_pic; pic_mode="$withval"
15038 else
15039 pic_mode=default
15043 test -z "$pic_mode" && pic_mode=default
15051 # Check whether --enable-fast-install was given.
15052 if test "${enable_fast_install+set}" = set; then :
15053 enableval=$enable_fast_install; p=${PACKAGE-default}
15054 case $enableval in
15055 yes) enable_fast_install=yes ;;
15056 no) enable_fast_install=no ;;
15058 enable_fast_install=no
15059 # Look at the argument we got. We use all the common list separators.
15060 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15061 for pkg in $enableval; do
15062 IFS="$lt_save_ifs"
15063 if test "X$pkg" = "X$p"; then
15064 enable_fast_install=yes
15066 done
15067 IFS="$lt_save_ifs"
15069 esac
15070 else
15071 enable_fast_install=yes
15084 # This can be used to rebuild libtool when needed
15085 LIBTOOL_DEPS="$ltmain"
15087 # Always use our own libtool.
15088 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15115 test -z "$LN_S" && LN_S="ln -s"
15130 if test -n "${ZSH_VERSION+set}" ; then
15131 setopt NO_GLOB_SUBST
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15135 $as_echo_n "checking for objdir... " >&6; }
15136 if test "${lt_cv_objdir+set}" = set; then :
15137 $as_echo_n "(cached) " >&6
15138 else
15139 rm -f .libs 2>/dev/null
15140 mkdir .libs 2>/dev/null
15141 if test -d .libs; then
15142 lt_cv_objdir=.libs
15143 else
15144 # MS-DOS does not allow filenames that begin with a dot.
15145 lt_cv_objdir=_libs
15147 rmdir .libs 2>/dev/null
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15150 $as_echo "$lt_cv_objdir" >&6; }
15151 objdir=$lt_cv_objdir
15157 cat >>confdefs.h <<_ACEOF
15158 #define LT_OBJDIR "$lt_cv_objdir/"
15159 _ACEOF
15164 case $host_os in
15165 aix3*)
15166 # AIX sometimes has problems with the GCC collect2 program. For some
15167 # reason, if we set the COLLECT_NAMES environment variable, the problems
15168 # vanish in a puff of smoke.
15169 if test "X${COLLECT_NAMES+set}" != Xset; then
15170 COLLECT_NAMES=
15171 export COLLECT_NAMES
15174 esac
15176 # Global variables:
15177 ofile=libtool
15178 can_build_shared=yes
15180 # All known linkers require a `.a' archive for static linking (except MSVC,
15181 # which needs '.lib').
15182 libext=a
15184 with_gnu_ld="$lt_cv_prog_gnu_ld"
15186 old_CC="$CC"
15187 old_CFLAGS="$CFLAGS"
15189 # Set sane defaults for various variables
15190 test -z "$CC" && CC=cc
15191 test -z "$LTCC" && LTCC=$CC
15192 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15193 test -z "$LD" && LD=ld
15194 test -z "$ac_objext" && ac_objext=o
15196 for cc_temp in $compiler""; do
15197 case $cc_temp in
15198 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15199 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15200 \-*) ;;
15201 *) break;;
15202 esac
15203 done
15204 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15207 # Only perform the check for file, if the check method requires it
15208 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15209 case $deplibs_check_method in
15210 file_magic*)
15211 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15213 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15214 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15215 $as_echo_n "(cached) " >&6
15216 else
15217 case $MAGIC_CMD in
15218 [\\/*] | ?:[\\/]*)
15219 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15222 lt_save_MAGIC_CMD="$MAGIC_CMD"
15223 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15224 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15225 for ac_dir in $ac_dummy; do
15226 IFS="$lt_save_ifs"
15227 test -z "$ac_dir" && ac_dir=.
15228 if test -f $ac_dir/${ac_tool_prefix}file; then
15229 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15230 if test -n "$file_magic_test_file"; then
15231 case $deplibs_check_method in
15232 "file_magic "*)
15233 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15234 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15235 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15236 $EGREP "$file_magic_regex" > /dev/null; then
15238 else
15239 cat <<_LT_EOF 1>&2
15241 *** Warning: the command libtool uses to detect shared libraries,
15242 *** $file_magic_cmd, produces output that libtool cannot recognize.
15243 *** The result is that libtool may fail to recognize shared libraries
15244 *** as such. This will affect the creation of libtool libraries that
15245 *** depend on shared libraries, but programs linked with such libtool
15246 *** libraries will work regardless of this problem. Nevertheless, you
15247 *** may want to report the problem to your system manager and/or to
15248 *** bug-libtool@gnu.org
15250 _LT_EOF
15251 fi ;;
15252 esac
15254 break
15256 done
15257 IFS="$lt_save_ifs"
15258 MAGIC_CMD="$lt_save_MAGIC_CMD"
15260 esac
15263 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15264 if test -n "$MAGIC_CMD"; then
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15266 $as_echo "$MAGIC_CMD" >&6; }
15267 else
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15269 $as_echo "no" >&6; }
15276 if test -z "$lt_cv_path_MAGIC_CMD"; then
15277 if test -n "$ac_tool_prefix"; then
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15279 $as_echo_n "checking for file... " >&6; }
15280 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15281 $as_echo_n "(cached) " >&6
15282 else
15283 case $MAGIC_CMD in
15284 [\\/*] | ?:[\\/]*)
15285 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15288 lt_save_MAGIC_CMD="$MAGIC_CMD"
15289 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15290 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15291 for ac_dir in $ac_dummy; do
15292 IFS="$lt_save_ifs"
15293 test -z "$ac_dir" && ac_dir=.
15294 if test -f $ac_dir/file; then
15295 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15296 if test -n "$file_magic_test_file"; then
15297 case $deplibs_check_method in
15298 "file_magic "*)
15299 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15300 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15301 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15302 $EGREP "$file_magic_regex" > /dev/null; then
15304 else
15305 cat <<_LT_EOF 1>&2
15307 *** Warning: the command libtool uses to detect shared libraries,
15308 *** $file_magic_cmd, produces output that libtool cannot recognize.
15309 *** The result is that libtool may fail to recognize shared libraries
15310 *** as such. This will affect the creation of libtool libraries that
15311 *** depend on shared libraries, but programs linked with such libtool
15312 *** libraries will work regardless of this problem. Nevertheless, you
15313 *** may want to report the problem to your system manager and/or to
15314 *** bug-libtool@gnu.org
15316 _LT_EOF
15317 fi ;;
15318 esac
15320 break
15322 done
15323 IFS="$lt_save_ifs"
15324 MAGIC_CMD="$lt_save_MAGIC_CMD"
15326 esac
15329 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15330 if test -n "$MAGIC_CMD"; then
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15332 $as_echo "$MAGIC_CMD" >&6; }
15333 else
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15335 $as_echo "no" >&6; }
15339 else
15340 MAGIC_CMD=:
15346 esac
15348 # Use C for the default configuration in the libtool script
15350 lt_save_CC="$CC"
15351 ac_ext=c
15352 ac_cpp='$CPP $CPPFLAGS'
15353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15358 # Source file extension for C test sources.
15359 ac_ext=c
15361 # Object file extension for compiled C test sources.
15362 objext=o
15363 objext=$objext
15365 # Code to be used in simple compile tests
15366 lt_simple_compile_test_code="int some_variable = 0;"
15368 # Code to be used in simple link tests
15369 lt_simple_link_test_code='int main(){return(0);}'
15377 # If no C compiler was specified, use CC.
15378 LTCC=${LTCC-"$CC"}
15380 # If no C compiler flags were specified, use CFLAGS.
15381 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15383 # Allow CC to be a program name with arguments.
15384 compiler=$CC
15386 # Save the default compiler, since it gets overwritten when the other
15387 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15388 compiler_DEFAULT=$CC
15390 # save warnings/boilerplate of simple test code
15391 ac_outfile=conftest.$ac_objext
15392 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15393 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15394 _lt_compiler_boilerplate=`cat conftest.err`
15395 $RM conftest*
15397 ac_outfile=conftest.$ac_objext
15398 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15399 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15400 _lt_linker_boilerplate=`cat conftest.err`
15401 $RM -r conftest*
15404 ## CAVEAT EMPTOR:
15405 ## There is no encapsulation within the following macros, do not change
15406 ## the running order or otherwise move them around unless you know exactly
15407 ## what you are doing...
15408 if test -n "$compiler"; then
15410 lt_prog_compiler_no_builtin_flag=
15412 if test "$GCC" = yes; then
15413 case $cc_basename in
15414 nvcc*)
15415 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15417 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15418 esac
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15421 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15422 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15423 $as_echo_n "(cached) " >&6
15424 else
15425 lt_cv_prog_compiler_rtti_exceptions=no
15426 ac_outfile=conftest.$ac_objext
15427 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15428 lt_compiler_flag="-fno-rtti -fno-exceptions"
15429 # Insert the option either (1) after the last *FLAGS variable, or
15430 # (2) before a word containing "conftest.", or (3) at the end.
15431 # Note that $ac_compile itself does not contain backslashes and begins
15432 # with a dollar sign (not a hyphen), so the echo should work correctly.
15433 # The option is referenced via a variable to avoid confusing sed.
15434 lt_compile=`echo "$ac_compile" | $SED \
15435 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15436 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15437 -e 's:$: $lt_compiler_flag:'`
15438 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15439 (eval "$lt_compile" 2>conftest.err)
15440 ac_status=$?
15441 cat conftest.err >&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 if (exit $ac_status) && test -s "$ac_outfile"; then
15444 # The compiler can only warn and ignore the option if not recognized
15445 # So say no if there are warnings other than the usual output.
15446 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15448 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15449 lt_cv_prog_compiler_rtti_exceptions=yes
15452 $RM conftest*
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15456 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15458 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15459 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15460 else
15471 lt_prog_compiler_wl=
15472 lt_prog_compiler_pic=
15473 lt_prog_compiler_static=
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15476 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15478 if test "$GCC" = yes; then
15479 lt_prog_compiler_wl='-Wl,'
15480 lt_prog_compiler_static='-static'
15482 case $host_os in
15483 aix*)
15484 # All AIX code is PIC.
15485 if test "$host_cpu" = ia64; then
15486 # AIX 5 now supports IA64 processor
15487 lt_prog_compiler_static='-Bstatic'
15489 lt_prog_compiler_pic='-fPIC'
15492 amigaos*)
15493 case $host_cpu in
15494 powerpc)
15495 # see comment about AmigaOS4 .so support
15496 lt_prog_compiler_pic='-fPIC'
15498 m68k)
15499 # FIXME: we need at least 68020 code to build shared libraries, but
15500 # adding the `-m68020' flag to GCC prevents building anything better,
15501 # like `-m68040'.
15502 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15504 esac
15507 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15508 # PIC is the default for these OSes.
15511 mingw* | cygwin* | pw32* | os2* | cegcc*)
15512 # This hack is so that the source file can tell whether it is being
15513 # built for inclusion in a dll (and should export symbols for example).
15514 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15515 # (--disable-auto-import) libraries
15516 lt_prog_compiler_pic='-DDLL_EXPORT'
15519 darwin* | rhapsody*)
15520 # PIC is the default on this platform
15521 # Common symbols not allowed in MH_DYLIB files
15522 lt_prog_compiler_pic='-fno-common'
15525 haiku*)
15526 # PIC is the default for Haiku.
15527 # The "-static" flag exists, but is broken.
15528 lt_prog_compiler_static=
15531 hpux*)
15532 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15533 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15534 # sets the default TLS model and affects inlining.
15535 case $host_cpu in
15536 hppa*64*)
15537 # +Z the default
15540 lt_prog_compiler_pic='-fPIC'
15542 esac
15545 interix[3-9]*)
15546 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15547 # Instead, we relocate shared libraries at runtime.
15550 msdosdjgpp*)
15551 # Just because we use GCC doesn't mean we suddenly get shared libraries
15552 # on systems that don't support them.
15553 lt_prog_compiler_can_build_shared=no
15554 enable_shared=no
15557 *nto* | *qnx*)
15558 # QNX uses GNU C++, but need to define -shared option too, otherwise
15559 # it will coredump.
15560 lt_prog_compiler_pic='-fPIC -shared'
15563 sysv4*MP*)
15564 if test -d /usr/nec; then
15565 lt_prog_compiler_pic=-Kconform_pic
15570 lt_prog_compiler_pic='-fPIC'
15572 esac
15574 case $cc_basename in
15575 nvcc*) # Cuda Compiler Driver 2.2
15576 lt_prog_compiler_wl='-Xlinker '
15577 lt_prog_compiler_pic='-Xcompiler -fPIC'
15579 esac
15580 else
15581 # PORTME Check for flag to pass linker flags through the system compiler.
15582 case $host_os in
15583 aix*)
15584 lt_prog_compiler_wl='-Wl,'
15585 if test "$host_cpu" = ia64; then
15586 # AIX 5 now supports IA64 processor
15587 lt_prog_compiler_static='-Bstatic'
15588 else
15589 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15593 mingw* | cygwin* | pw32* | os2* | cegcc*)
15594 # This hack is so that the source file can tell whether it is being
15595 # built for inclusion in a dll (and should export symbols for example).
15596 lt_prog_compiler_pic='-DDLL_EXPORT'
15599 hpux9* | hpux10* | hpux11*)
15600 lt_prog_compiler_wl='-Wl,'
15601 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15602 # not for PA HP-UX.
15603 case $host_cpu in
15604 hppa*64*|ia64*)
15605 # +Z the default
15608 lt_prog_compiler_pic='+Z'
15610 esac
15611 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15612 lt_prog_compiler_static='${wl}-a ${wl}archive'
15615 irix5* | irix6* | nonstopux*)
15616 lt_prog_compiler_wl='-Wl,'
15617 # PIC (with -KPIC) is the default.
15618 lt_prog_compiler_static='-non_shared'
15621 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15622 case $cc_basename in
15623 # old Intel for x86_64 which still supported -KPIC.
15624 ecc*)
15625 lt_prog_compiler_wl='-Wl,'
15626 lt_prog_compiler_pic='-KPIC'
15627 lt_prog_compiler_static='-static'
15629 # icc used to be incompatible with GCC.
15630 # ICC 10 doesn't accept -KPIC any more.
15631 icc* | ifort*)
15632 lt_prog_compiler_wl='-Wl,'
15633 lt_prog_compiler_pic='-fPIC'
15634 lt_prog_compiler_static='-static'
15636 # Lahey Fortran 8.1.
15637 lf95*)
15638 lt_prog_compiler_wl='-Wl,'
15639 lt_prog_compiler_pic='--shared'
15640 lt_prog_compiler_static='--static'
15642 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15643 # Portland Group compilers (*not* the Pentium gcc compiler,
15644 # which looks to be a dead project)
15645 lt_prog_compiler_wl='-Wl,'
15646 lt_prog_compiler_pic='-fpic'
15647 lt_prog_compiler_static='-Bstatic'
15649 ccc*)
15650 lt_prog_compiler_wl='-Wl,'
15651 # All Alpha code is PIC.
15652 lt_prog_compiler_static='-non_shared'
15654 xl* | bgxl* | bgf* | mpixl*)
15655 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15656 lt_prog_compiler_wl='-Wl,'
15657 lt_prog_compiler_pic='-qpic'
15658 lt_prog_compiler_static='-qstaticlink'
15661 case `$CC -V 2>&1 | sed 5q` in
15662 *Sun\ F* | *Sun*Fortran*)
15663 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15664 lt_prog_compiler_pic='-KPIC'
15665 lt_prog_compiler_static='-Bstatic'
15666 lt_prog_compiler_wl=''
15668 *Sun\ C*)
15669 # Sun C 5.9
15670 lt_prog_compiler_pic='-KPIC'
15671 lt_prog_compiler_static='-Bstatic'
15672 lt_prog_compiler_wl='-Wl,'
15674 esac
15676 esac
15679 newsos6)
15680 lt_prog_compiler_pic='-KPIC'
15681 lt_prog_compiler_static='-Bstatic'
15684 *nto* | *qnx*)
15685 # QNX uses GNU C++, but need to define -shared option too, otherwise
15686 # it will coredump.
15687 lt_prog_compiler_pic='-fPIC -shared'
15690 osf3* | osf4* | osf5*)
15691 lt_prog_compiler_wl='-Wl,'
15692 # All OSF/1 code is PIC.
15693 lt_prog_compiler_static='-non_shared'
15696 rdos*)
15697 lt_prog_compiler_static='-non_shared'
15700 solaris*)
15701 lt_prog_compiler_pic='-KPIC'
15702 lt_prog_compiler_static='-Bstatic'
15703 case $cc_basename in
15704 f77* | f90* | f95*)
15705 lt_prog_compiler_wl='-Qoption ld ';;
15707 lt_prog_compiler_wl='-Wl,';;
15708 esac
15711 sunos4*)
15712 lt_prog_compiler_wl='-Qoption ld '
15713 lt_prog_compiler_pic='-PIC'
15714 lt_prog_compiler_static='-Bstatic'
15717 sysv4 | sysv4.2uw2* | sysv4.3*)
15718 lt_prog_compiler_wl='-Wl,'
15719 lt_prog_compiler_pic='-KPIC'
15720 lt_prog_compiler_static='-Bstatic'
15723 sysv4*MP*)
15724 if test -d /usr/nec ;then
15725 lt_prog_compiler_pic='-Kconform_pic'
15726 lt_prog_compiler_static='-Bstatic'
15730 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15731 lt_prog_compiler_wl='-Wl,'
15732 lt_prog_compiler_pic='-KPIC'
15733 lt_prog_compiler_static='-Bstatic'
15736 unicos*)
15737 lt_prog_compiler_wl='-Wl,'
15738 lt_prog_compiler_can_build_shared=no
15741 uts4*)
15742 lt_prog_compiler_pic='-pic'
15743 lt_prog_compiler_static='-Bstatic'
15747 lt_prog_compiler_can_build_shared=no
15749 esac
15752 case $host_os in
15753 # For platforms which do not support PIC, -DPIC is meaningless:
15754 *djgpp*)
15755 lt_prog_compiler_pic=
15758 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15760 esac
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15762 $as_echo "$lt_prog_compiler_pic" >&6; }
15770 # Check to make sure the PIC flag actually works.
15772 if test -n "$lt_prog_compiler_pic"; then
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15774 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15775 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15776 $as_echo_n "(cached) " >&6
15777 else
15778 lt_cv_prog_compiler_pic_works=no
15779 ac_outfile=conftest.$ac_objext
15780 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15781 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15782 # Insert the option either (1) after the last *FLAGS variable, or
15783 # (2) before a word containing "conftest.", or (3) at the end.
15784 # Note that $ac_compile itself does not contain backslashes and begins
15785 # with a dollar sign (not a hyphen), so the echo should work correctly.
15786 # The option is referenced via a variable to avoid confusing sed.
15787 lt_compile=`echo "$ac_compile" | $SED \
15788 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15789 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15790 -e 's:$: $lt_compiler_flag:'`
15791 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15792 (eval "$lt_compile" 2>conftest.err)
15793 ac_status=$?
15794 cat conftest.err >&5
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 if (exit $ac_status) && test -s "$ac_outfile"; then
15797 # The compiler can only warn and ignore the option if not recognized
15798 # So say no if there are warnings other than the usual output.
15799 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15800 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15801 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15802 lt_cv_prog_compiler_pic_works=yes
15805 $RM conftest*
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15809 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15811 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15812 case $lt_prog_compiler_pic in
15813 "" | " "*) ;;
15814 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15815 esac
15816 else
15817 lt_prog_compiler_pic=
15818 lt_prog_compiler_can_build_shared=no
15829 # Check to make sure the static flag actually works.
15831 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15833 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15834 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15835 $as_echo_n "(cached) " >&6
15836 else
15837 lt_cv_prog_compiler_static_works=no
15838 save_LDFLAGS="$LDFLAGS"
15839 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15840 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15841 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15842 # The linker can only warn and ignore the option if not recognized
15843 # So say no if there are warnings
15844 if test -s conftest.err; then
15845 # Append any errors to the config.log.
15846 cat conftest.err 1>&5
15847 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15848 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15849 if diff conftest.exp conftest.er2 >/dev/null; then
15850 lt_cv_prog_compiler_static_works=yes
15852 else
15853 lt_cv_prog_compiler_static_works=yes
15856 $RM -r conftest*
15857 LDFLAGS="$save_LDFLAGS"
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15861 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15863 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15865 else
15866 lt_prog_compiler_static=
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15876 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15877 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15878 $as_echo_n "(cached) " >&6
15879 else
15880 lt_cv_prog_compiler_c_o=no
15881 $RM -r conftest 2>/dev/null
15882 mkdir conftest
15883 cd conftest
15884 mkdir out
15885 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15887 lt_compiler_flag="-o out/conftest2.$ac_objext"
15888 # Insert the option either (1) after the last *FLAGS variable, or
15889 # (2) before a word containing "conftest.", or (3) at the end.
15890 # Note that $ac_compile itself does not contain backslashes and begins
15891 # with a dollar sign (not a hyphen), so the echo should work correctly.
15892 lt_compile=`echo "$ac_compile" | $SED \
15893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15895 -e 's:$: $lt_compiler_flag:'`
15896 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15897 (eval "$lt_compile" 2>out/conftest.err)
15898 ac_status=$?
15899 cat out/conftest.err >&5
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15902 then
15903 # The compiler can only warn and ignore the option if not recognized
15904 # So say no if there are warnings
15905 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15906 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15907 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15908 lt_cv_prog_compiler_c_o=yes
15911 chmod u+w . 2>&5
15912 $RM conftest*
15913 # SGI C++ compiler will create directory out/ii_files/ for
15914 # template instantiation
15915 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15916 $RM out/* && rmdir out
15917 cd ..
15918 $RM -r conftest
15919 $RM conftest*
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15923 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15931 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15932 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15933 $as_echo_n "(cached) " >&6
15934 else
15935 lt_cv_prog_compiler_c_o=no
15936 $RM -r conftest 2>/dev/null
15937 mkdir conftest
15938 cd conftest
15939 mkdir out
15940 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15942 lt_compiler_flag="-o out/conftest2.$ac_objext"
15943 # Insert the option either (1) after the last *FLAGS variable, or
15944 # (2) before a word containing "conftest.", or (3) at the end.
15945 # Note that $ac_compile itself does not contain backslashes and begins
15946 # with a dollar sign (not a hyphen), so the echo should work correctly.
15947 lt_compile=`echo "$ac_compile" | $SED \
15948 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15949 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15950 -e 's:$: $lt_compiler_flag:'`
15951 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15952 (eval "$lt_compile" 2>out/conftest.err)
15953 ac_status=$?
15954 cat out/conftest.err >&5
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15957 then
15958 # The compiler can only warn and ignore the option if not recognized
15959 # So say no if there are warnings
15960 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15961 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15962 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15963 lt_cv_prog_compiler_c_o=yes
15966 chmod u+w . 2>&5
15967 $RM conftest*
15968 # SGI C++ compiler will create directory out/ii_files/ for
15969 # template instantiation
15970 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15971 $RM out/* && rmdir out
15972 cd ..
15973 $RM -r conftest
15974 $RM conftest*
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15978 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15983 hard_links="nottested"
15984 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15985 # do not overwrite the value of need_locks provided by the user
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15987 $as_echo_n "checking if we can lock with hard links... " >&6; }
15988 hard_links=yes
15989 $RM conftest*
15990 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15991 touch conftest.a
15992 ln conftest.a conftest.b 2>&5 || hard_links=no
15993 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15995 $as_echo "$hard_links" >&6; }
15996 if test "$hard_links" = no; then
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15998 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15999 need_locks=warn
16001 else
16002 need_locks=no
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16011 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16013 runpath_var=
16014 allow_undefined_flag=
16015 always_export_symbols=no
16016 archive_cmds=
16017 archive_expsym_cmds=
16018 compiler_needs_object=no
16019 enable_shared_with_static_runtimes=no
16020 export_dynamic_flag_spec=
16021 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16022 hardcode_automatic=no
16023 hardcode_direct=no
16024 hardcode_direct_absolute=no
16025 hardcode_libdir_flag_spec=
16026 hardcode_libdir_flag_spec_ld=
16027 hardcode_libdir_separator=
16028 hardcode_minus_L=no
16029 hardcode_shlibpath_var=unsupported
16030 inherit_rpath=no
16031 link_all_deplibs=unknown
16032 module_cmds=
16033 module_expsym_cmds=
16034 old_archive_from_new_cmds=
16035 old_archive_from_expsyms_cmds=
16036 thread_safe_flag_spec=
16037 whole_archive_flag_spec=
16038 # include_expsyms should be a list of space-separated symbols to be *always*
16039 # included in the symbol list
16040 include_expsyms=
16041 # exclude_expsyms can be an extended regexp of symbols to exclude
16042 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16043 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16044 # as well as any symbol that contains `d'.
16045 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16046 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16047 # platforms (ab)use it in PIC code, but their linkers get confused if
16048 # the symbol is explicitly referenced. Since portable code cannot
16049 # rely on this symbol name, it's probably fine to never include it in
16050 # preloaded symbol tables.
16051 # Exclude shared library initialization/finalization symbols.
16052 extract_expsyms_cmds=
16054 case $host_os in
16055 cygwin* | mingw* | pw32* | cegcc*)
16056 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16057 # When not using gcc, we currently assume that we are using
16058 # Microsoft Visual C++.
16059 if test "$GCC" != yes; then
16060 with_gnu_ld=no
16063 interix*)
16064 # we just hope/assume this is gcc and not c89 (= MSVC++)
16065 with_gnu_ld=yes
16067 openbsd*)
16068 with_gnu_ld=no
16070 esac
16072 ld_shlibs=yes
16074 # On some targets, GNU ld is compatible enough with the native linker
16075 # that we're better off using the native interface for both.
16076 lt_use_gnu_ld_interface=no
16077 if test "$with_gnu_ld" = yes; then
16078 case $host_os in
16079 aix*)
16080 # The AIX port of GNU ld has always aspired to compatibility
16081 # with the native linker. However, as the warning in the GNU ld
16082 # block says, versions before 2.19.5* couldn't really create working
16083 # shared libraries, regardless of the interface used.
16084 case `$LD -v 2>&1` in
16085 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16086 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16087 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16089 lt_use_gnu_ld_interface=yes
16091 esac
16094 lt_use_gnu_ld_interface=yes
16096 esac
16099 if test "$lt_use_gnu_ld_interface" = yes; then
16100 # If archive_cmds runs LD, not CC, wlarc should be empty
16101 wlarc='${wl}'
16103 # Set some defaults for GNU ld with shared library support. These
16104 # are reset later if shared libraries are not supported. Putting them
16105 # here allows them to be overridden if necessary.
16106 runpath_var=LD_RUN_PATH
16107 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16108 export_dynamic_flag_spec='${wl}--export-dynamic'
16109 # ancient GNU ld didn't support --whole-archive et. al.
16110 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16111 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16112 else
16113 whole_archive_flag_spec=
16115 supports_anon_versioning=no
16116 case `$LD -v 2>&1` in
16117 *GNU\ gold*) supports_anon_versioning=yes ;;
16118 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16119 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16120 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16121 *\ 2.11.*) ;; # other 2.11 versions
16122 *) supports_anon_versioning=yes ;;
16123 esac
16125 # See if GNU ld supports shared libraries.
16126 case $host_os in
16127 aix[3-9]*)
16128 # On AIX/PPC, the GNU linker is very broken
16129 if test "$host_cpu" != ia64; then
16130 ld_shlibs=no
16131 cat <<_LT_EOF 1>&2
16133 *** Warning: the GNU linker, at least up to release 2.19, is reported
16134 *** to be unable to reliably create shared libraries on AIX.
16135 *** Therefore, libtool is disabling shared libraries support. If you
16136 *** really care for shared libraries, you may want to install binutils
16137 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16138 *** You will then need to restart the configuration process.
16140 _LT_EOF
16144 amigaos*)
16145 case $host_cpu in
16146 powerpc)
16147 # see comment about AmigaOS4 .so support
16148 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16149 archive_expsym_cmds=''
16151 m68k)
16152 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)'
16153 hardcode_libdir_flag_spec='-L$libdir'
16154 hardcode_minus_L=yes
16156 esac
16159 beos*)
16160 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16161 allow_undefined_flag=unsupported
16162 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16163 # support --undefined. This deserves some investigation. FIXME
16164 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16165 else
16166 ld_shlibs=no
16170 cygwin* | mingw* | pw32* | cegcc*)
16171 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16172 # as there is no search path for DLLs.
16173 hardcode_libdir_flag_spec='-L$libdir'
16174 export_dynamic_flag_spec='${wl}--export-all-symbols'
16175 allow_undefined_flag=unsupported
16176 always_export_symbols=no
16177 enable_shared_with_static_runtimes=yes
16178 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16180 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16181 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16182 # If the export-symbols file already is a .def file (1st line
16183 # is EXPORTS), use it as is; otherwise, prepend...
16184 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16185 cp $export_symbols $output_objdir/$soname.def;
16186 else
16187 echo EXPORTS > $output_objdir/$soname.def;
16188 cat $export_symbols >> $output_objdir/$soname.def;
16190 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16191 else
16192 ld_shlibs=no
16196 haiku*)
16197 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16198 link_all_deplibs=yes
16201 interix[3-9]*)
16202 hardcode_direct=no
16203 hardcode_shlibpath_var=no
16204 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16205 export_dynamic_flag_spec='${wl}-E'
16206 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16207 # Instead, shared libraries are loaded at an image base (0x10000000 by
16208 # default) and relocated if they conflict, which is a slow very memory
16209 # consuming and fragmenting process. To avoid this, we pick a random,
16210 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16211 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16212 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16213 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'
16216 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16217 tmp_diet=no
16218 if test "$host_os" = linux-dietlibc; then
16219 case $cc_basename in
16220 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16221 esac
16223 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16224 && test "$tmp_diet" = no
16225 then
16226 tmp_addflag=' $pic_flag'
16227 tmp_sharedflag='-shared'
16228 case $cc_basename,$host_cpu in
16229 pgcc*) # Portland Group C compiler
16230 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'
16231 tmp_addflag=' $pic_flag'
16233 pgf77* | pgf90* | pgf95* | pgfortran*)
16234 # Portland Group f77 and f90 compilers
16235 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'
16236 tmp_addflag=' $pic_flag -Mnomain' ;;
16237 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16238 tmp_addflag=' -i_dynamic' ;;
16239 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16240 tmp_addflag=' -i_dynamic -nofor_main' ;;
16241 ifc* | ifort*) # Intel Fortran compiler
16242 tmp_addflag=' -nofor_main' ;;
16243 lf95*) # Lahey Fortran 8.1
16244 whole_archive_flag_spec=
16245 tmp_sharedflag='--shared' ;;
16246 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16247 tmp_sharedflag='-qmkshrobj'
16248 tmp_addflag= ;;
16249 nvcc*) # Cuda Compiler Driver 2.2
16250 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'
16251 compiler_needs_object=yes
16253 esac
16254 case `$CC -V 2>&1 | sed 5q` in
16255 *Sun\ C*) # Sun C 5.9
16256 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'
16257 compiler_needs_object=yes
16258 tmp_sharedflag='-G' ;;
16259 *Sun\ F*) # Sun Fortran 8.3
16260 tmp_sharedflag='-G' ;;
16261 esac
16262 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16264 if test "x$supports_anon_versioning" = xyes; then
16265 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16266 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16267 echo "local: *; };" >> $output_objdir/$libname.ver~
16268 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16271 case $cc_basename in
16272 xlf* | bgf* | bgxlf* | mpixlf*)
16273 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16274 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16275 hardcode_libdir_flag_spec=
16276 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16277 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16278 if test "x$supports_anon_versioning" = xyes; then
16279 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16280 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16281 echo "local: *; };" >> $output_objdir/$libname.ver~
16282 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16285 esac
16286 else
16287 ld_shlibs=no
16291 netbsd*)
16292 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16293 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16294 wlarc=
16295 else
16296 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16297 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16301 solaris*)
16302 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16303 ld_shlibs=no
16304 cat <<_LT_EOF 1>&2
16306 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16307 *** create shared libraries on Solaris systems. Therefore, libtool
16308 *** is disabling shared libraries support. We urge you to upgrade GNU
16309 *** binutils to release 2.9.1 or newer. Another option is to modify
16310 *** your PATH or compiler configuration so that the native linker is
16311 *** used, and then restart.
16313 _LT_EOF
16314 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16315 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16316 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16317 else
16318 ld_shlibs=no
16322 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16323 case `$LD -v 2>&1` in
16324 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16325 ld_shlibs=no
16326 cat <<_LT_EOF 1>&2
16328 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16329 *** reliably create shared libraries on SCO systems. Therefore, libtool
16330 *** is disabling shared libraries support. We urge you to upgrade GNU
16331 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16332 *** your PATH or compiler configuration so that the native linker is
16333 *** used, and then restart.
16335 _LT_EOF
16338 # For security reasons, it is highly recommended that you always
16339 # use absolute paths for naming shared libraries, and exclude the
16340 # DT_RUNPATH tag from executables and libraries. But doing so
16341 # requires that you compile everything twice, which is a pain.
16342 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16343 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16344 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16345 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16346 else
16347 ld_shlibs=no
16350 esac
16353 sunos4*)
16354 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16355 wlarc=
16356 hardcode_direct=yes
16357 hardcode_shlibpath_var=no
16361 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16362 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16363 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16364 else
16365 ld_shlibs=no
16368 esac
16370 if test "$ld_shlibs" = no; then
16371 runpath_var=
16372 hardcode_libdir_flag_spec=
16373 export_dynamic_flag_spec=
16374 whole_archive_flag_spec=
16376 else
16377 # PORTME fill in a description of your system's linker (not GNU ld)
16378 case $host_os in
16379 aix3*)
16380 allow_undefined_flag=unsupported
16381 always_export_symbols=yes
16382 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'
16383 # Note: this linker hardcodes the directories in LIBPATH if there
16384 # are no directories specified by -L.
16385 hardcode_minus_L=yes
16386 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16387 # Neither direct hardcoding nor static linking is supported with a
16388 # broken collect2.
16389 hardcode_direct=unsupported
16393 aix[4-9]*)
16394 if test "$host_cpu" = ia64; then
16395 # On IA64, the linker does run time linking by default, so we don't
16396 # have to do anything special.
16397 aix_use_runtimelinking=no
16398 exp_sym_flag='-Bexport'
16399 no_entry_flag=""
16400 else
16401 # If we're using GNU nm, then we don't want the "-C" option.
16402 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16403 # Also, AIX nm treats weak defined symbols like other global
16404 # defined symbols, whereas GNU nm marks them as "W".
16405 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16406 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'
16407 else
16408 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'
16410 aix_use_runtimelinking=no
16412 # Test if we are trying to use run time linking or normal
16413 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16414 # need to do runtime linking.
16415 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16416 for ld_flag in $LDFLAGS; do
16417 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16418 aix_use_runtimelinking=yes
16419 break
16421 done
16423 esac
16425 exp_sym_flag='-bexport'
16426 no_entry_flag='-bnoentry'
16429 # When large executables or shared objects are built, AIX ld can
16430 # have problems creating the table of contents. If linking a library
16431 # or program results in "error TOC overflow" add -mminimal-toc to
16432 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16433 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16435 archive_cmds=''
16436 hardcode_direct=yes
16437 hardcode_direct_absolute=yes
16438 hardcode_libdir_separator=':'
16439 link_all_deplibs=yes
16440 file_list_spec='${wl}-f,'
16442 if test "$GCC" = yes; then
16443 case $host_os in aix4.[012]|aix4.[012].*)
16444 # We only want to do this on AIX 4.2 and lower, the check
16445 # below for broken collect2 doesn't work under 4.3+
16446 collect2name=`${CC} -print-prog-name=collect2`
16447 if test -f "$collect2name" &&
16448 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16449 then
16450 # We have reworked collect2
16452 else
16453 # We have old collect2
16454 hardcode_direct=unsupported
16455 # It fails to find uninstalled libraries when the uninstalled
16456 # path is not listed in the libpath. Setting hardcode_minus_L
16457 # to unsupported forces relinking
16458 hardcode_minus_L=yes
16459 hardcode_libdir_flag_spec='-L$libdir'
16460 hardcode_libdir_separator=
16463 esac
16464 shared_flag='-shared'
16465 if test "$aix_use_runtimelinking" = yes; then
16466 shared_flag="$shared_flag "'${wl}-G'
16468 else
16469 # not using gcc
16470 if test "$host_cpu" = ia64; then
16471 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16472 # chokes on -Wl,-G. The following line is correct:
16473 shared_flag='-G'
16474 else
16475 if test "$aix_use_runtimelinking" = yes; then
16476 shared_flag='${wl}-G'
16477 else
16478 shared_flag='${wl}-bM:SRE'
16483 export_dynamic_flag_spec='${wl}-bexpall'
16484 # It seems that -bexpall does not export symbols beginning with
16485 # underscore (_), so it is better to generate a list of symbols to export.
16486 always_export_symbols=yes
16487 if test "$aix_use_runtimelinking" = yes; then
16488 # Warning - without using the other runtime loading flags (-brtl),
16489 # -berok will link without error, but may produce a broken library.
16490 allow_undefined_flag='-berok'
16491 # Determine the default libpath from the value encoded in an
16492 # empty executable.
16493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16494 /* end confdefs.h. */
16497 main ()
16501 return 0;
16503 _ACEOF
16504 if ac_fn_c_try_link "$LINENO"; then :
16506 lt_aix_libpath_sed='
16507 /Import File Strings/,/^$/ {
16508 /^0/ {
16509 s/^0 *\(.*\)$/\1/
16513 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16514 # Check for a 64-bit object if we didn't find anything.
16515 if test -z "$aix_libpath"; then
16516 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16519 rm -f core conftest.err conftest.$ac_objext \
16520 conftest$ac_exeext conftest.$ac_ext
16521 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16523 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16524 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"
16525 else
16526 if test "$host_cpu" = ia64; then
16527 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16528 allow_undefined_flag="-z nodefs"
16529 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"
16530 else
16531 # Determine the default libpath from the value encoded in an
16532 # empty executable.
16533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16534 /* end confdefs.h. */
16537 main ()
16541 return 0;
16543 _ACEOF
16544 if ac_fn_c_try_link "$LINENO"; then :
16546 lt_aix_libpath_sed='
16547 /Import File Strings/,/^$/ {
16548 /^0/ {
16549 s/^0 *\(.*\)$/\1/
16553 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16554 # Check for a 64-bit object if we didn't find anything.
16555 if test -z "$aix_libpath"; then
16556 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16559 rm -f core conftest.err conftest.$ac_objext \
16560 conftest$ac_exeext conftest.$ac_ext
16561 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16563 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16564 # Warning - without using the other run time loading flags,
16565 # -berok will link without error, but may produce a broken library.
16566 no_undefined_flag=' ${wl}-bernotok'
16567 allow_undefined_flag=' ${wl}-berok'
16568 if test "$with_gnu_ld" = yes; then
16569 # We only use this code for GNU lds that support --whole-archive.
16570 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16571 else
16572 # Exported symbols can be pulled into shared objects from archives
16573 whole_archive_flag_spec='$convenience'
16575 archive_cmds_need_lc=yes
16576 # This is similar to how AIX traditionally builds its shared libraries.
16577 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'
16582 amigaos*)
16583 case $host_cpu in
16584 powerpc)
16585 # see comment about AmigaOS4 .so support
16586 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16587 archive_expsym_cmds=''
16589 m68k)
16590 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)'
16591 hardcode_libdir_flag_spec='-L$libdir'
16592 hardcode_minus_L=yes
16594 esac
16597 bsdi[45]*)
16598 export_dynamic_flag_spec=-rdynamic
16601 cygwin* | mingw* | pw32* | cegcc*)
16602 # When not using gcc, we currently assume that we are using
16603 # Microsoft Visual C++.
16604 # hardcode_libdir_flag_spec is actually meaningless, as there is
16605 # no search path for DLLs.
16606 hardcode_libdir_flag_spec=' '
16607 allow_undefined_flag=unsupported
16608 # Tell ltmain to make .lib files, not .a files.
16609 libext=lib
16610 # Tell ltmain to make .dll files, not .so files.
16611 shrext_cmds=".dll"
16612 # FIXME: Setting linknames here is a bad hack.
16613 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16614 # The linker will automatically build a .lib file if we build a DLL.
16615 old_archive_from_new_cmds='true'
16616 # FIXME: Should let the user specify the lib program.
16617 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16618 fix_srcfile_path='`cygpath -w "$srcfile"`'
16619 enable_shared_with_static_runtimes=yes
16622 darwin* | rhapsody*)
16625 archive_cmds_need_lc=no
16626 hardcode_direct=no
16627 hardcode_automatic=yes
16628 hardcode_shlibpath_var=unsupported
16629 if test "$lt_cv_ld_force_load" = "yes"; then
16630 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\"`'
16631 else
16632 whole_archive_flag_spec=''
16634 link_all_deplibs=yes
16635 allow_undefined_flag="$_lt_dar_allow_undefined"
16636 case $cc_basename in
16637 ifort*) _lt_dar_can_shared=yes ;;
16638 *) _lt_dar_can_shared=$GCC ;;
16639 esac
16640 if test "$_lt_dar_can_shared" = "yes"; then
16641 output_verbose_link_cmd=func_echo_all
16642 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16643 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16644 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}"
16645 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}"
16647 else
16648 ld_shlibs=no
16653 dgux*)
16654 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16655 hardcode_libdir_flag_spec='-L$libdir'
16656 hardcode_shlibpath_var=no
16659 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16660 # support. Future versions do this automatically, but an explicit c++rt0.o
16661 # does not break anything, and helps significantly (at the cost of a little
16662 # extra space).
16663 freebsd2.2*)
16664 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16665 hardcode_libdir_flag_spec='-R$libdir'
16666 hardcode_direct=yes
16667 hardcode_shlibpath_var=no
16670 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16671 freebsd2.*)
16672 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16673 hardcode_direct=yes
16674 hardcode_minus_L=yes
16675 hardcode_shlibpath_var=no
16678 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16679 freebsd* | dragonfly*)
16680 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16681 hardcode_libdir_flag_spec='-R$libdir'
16682 hardcode_direct=yes
16683 hardcode_shlibpath_var=no
16686 hpux9*)
16687 if test "$GCC" = yes; then
16688 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'
16689 else
16690 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'
16692 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16693 hardcode_libdir_separator=:
16694 hardcode_direct=yes
16696 # hardcode_minus_L: Not really in the search PATH,
16697 # but as the default location of the library.
16698 hardcode_minus_L=yes
16699 export_dynamic_flag_spec='${wl}-E'
16702 hpux10*)
16703 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16704 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16705 else
16706 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16708 if test "$with_gnu_ld" = no; then
16709 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16710 hardcode_libdir_flag_spec_ld='+b $libdir'
16711 hardcode_libdir_separator=:
16712 hardcode_direct=yes
16713 hardcode_direct_absolute=yes
16714 export_dynamic_flag_spec='${wl}-E'
16715 # hardcode_minus_L: Not really in the search PATH,
16716 # but as the default location of the library.
16717 hardcode_minus_L=yes
16721 hpux11*)
16722 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16723 case $host_cpu in
16724 hppa*64*)
16725 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16727 ia64*)
16728 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16731 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16733 esac
16734 else
16735 case $host_cpu in
16736 hppa*64*)
16737 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16739 ia64*)
16740 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16744 # Older versions of the 11.00 compiler do not understand -b yet
16745 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16747 $as_echo_n "checking if $CC understands -b... " >&6; }
16748 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16749 $as_echo_n "(cached) " >&6
16750 else
16751 lt_cv_prog_compiler__b=no
16752 save_LDFLAGS="$LDFLAGS"
16753 LDFLAGS="$LDFLAGS -b"
16754 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16755 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16756 # The linker can only warn and ignore the option if not recognized
16757 # So say no if there are warnings
16758 if test -s conftest.err; then
16759 # Append any errors to the config.log.
16760 cat conftest.err 1>&5
16761 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16762 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16763 if diff conftest.exp conftest.er2 >/dev/null; then
16764 lt_cv_prog_compiler__b=yes
16766 else
16767 lt_cv_prog_compiler__b=yes
16770 $RM -r conftest*
16771 LDFLAGS="$save_LDFLAGS"
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16775 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16777 if test x"$lt_cv_prog_compiler__b" = xyes; then
16778 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16779 else
16780 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16784 esac
16786 if test "$with_gnu_ld" = no; then
16787 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16788 hardcode_libdir_separator=:
16790 case $host_cpu in
16791 hppa*64*|ia64*)
16792 hardcode_direct=no
16793 hardcode_shlibpath_var=no
16796 hardcode_direct=yes
16797 hardcode_direct_absolute=yes
16798 export_dynamic_flag_spec='${wl}-E'
16800 # hardcode_minus_L: Not really in the search PATH,
16801 # but as the default location of the library.
16802 hardcode_minus_L=yes
16804 esac
16808 irix5* | irix6* | nonstopux*)
16809 if test "$GCC" = yes; then
16810 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'
16811 # Try to use the -exported_symbol ld option, if it does not
16812 # work, assume that -exports_file does not work either and
16813 # implicitly export all symbols.
16814 save_LDFLAGS="$LDFLAGS"
16815 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16817 /* end confdefs.h. */
16818 int foo(void) {}
16819 _ACEOF
16820 if ac_fn_c_try_link "$LINENO"; then :
16821 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'
16824 rm -f core conftest.err conftest.$ac_objext \
16825 conftest$ac_exeext conftest.$ac_ext
16826 LDFLAGS="$save_LDFLAGS"
16827 else
16828 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'
16829 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'
16831 archive_cmds_need_lc='no'
16832 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16833 hardcode_libdir_separator=:
16834 inherit_rpath=yes
16835 link_all_deplibs=yes
16838 netbsd*)
16839 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16840 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16841 else
16842 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16844 hardcode_libdir_flag_spec='-R$libdir'
16845 hardcode_direct=yes
16846 hardcode_shlibpath_var=no
16849 newsos6)
16850 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16851 hardcode_direct=yes
16852 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16853 hardcode_libdir_separator=:
16854 hardcode_shlibpath_var=no
16857 *nto* | *qnx*)
16860 openbsd*)
16861 if test -f /usr/libexec/ld.so; then
16862 hardcode_direct=yes
16863 hardcode_shlibpath_var=no
16864 hardcode_direct_absolute=yes
16865 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16866 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16867 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16868 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16869 export_dynamic_flag_spec='${wl}-E'
16870 else
16871 case $host_os in
16872 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16873 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16874 hardcode_libdir_flag_spec='-R$libdir'
16877 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16878 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16880 esac
16882 else
16883 ld_shlibs=no
16887 os2*)
16888 hardcode_libdir_flag_spec='-L$libdir'
16889 hardcode_minus_L=yes
16890 allow_undefined_flag=unsupported
16891 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'
16892 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16895 osf3*)
16896 if test "$GCC" = yes; then
16897 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16898 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'
16899 else
16900 allow_undefined_flag=' -expect_unresolved \*'
16901 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'
16903 archive_cmds_need_lc='no'
16904 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16905 hardcode_libdir_separator=:
16908 osf4* | osf5*) # as osf3* with the addition of -msym flag
16909 if test "$GCC" = yes; then
16910 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16911 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'
16912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16913 else
16914 allow_undefined_flag=' -expect_unresolved \*'
16915 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'
16916 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~
16917 $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'
16919 # Both c and cxx compiler support -rpath directly
16920 hardcode_libdir_flag_spec='-rpath $libdir'
16922 archive_cmds_need_lc='no'
16923 hardcode_libdir_separator=:
16926 solaris*)
16927 no_undefined_flag=' -z defs'
16928 if test "$GCC" = yes; then
16929 wlarc='${wl}'
16930 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16931 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16932 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16933 else
16934 case `$CC -V 2>&1` in
16935 *"Compilers 5.0"*)
16936 wlarc=''
16937 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16938 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16939 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16942 wlarc='${wl}'
16943 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16944 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16945 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16947 esac
16949 hardcode_libdir_flag_spec='-R$libdir'
16950 hardcode_shlibpath_var=no
16951 case $host_os in
16952 solaris2.[0-5] | solaris2.[0-5].*) ;;
16954 # The compiler driver will combine and reorder linker options,
16955 # but understands `-z linker_flag'. GCC discards it without `$wl',
16956 # but is careful enough not to reorder.
16957 # Supported since Solaris 2.6 (maybe 2.5.1?)
16958 if test "$GCC" = yes; then
16959 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16960 else
16961 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16964 esac
16965 link_all_deplibs=yes
16968 sunos4*)
16969 if test "x$host_vendor" = xsequent; then
16970 # Use $CC to link under sequent, because it throws in some extra .o
16971 # files that make .init and .fini sections work.
16972 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16973 else
16974 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16976 hardcode_libdir_flag_spec='-L$libdir'
16977 hardcode_direct=yes
16978 hardcode_minus_L=yes
16979 hardcode_shlibpath_var=no
16982 sysv4)
16983 case $host_vendor in
16984 sni)
16985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16986 hardcode_direct=yes # is this really true???
16988 siemens)
16989 ## LD is ld it makes a PLAMLIB
16990 ## CC just makes a GrossModule.
16991 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16992 reload_cmds='$CC -r -o $output$reload_objs'
16993 hardcode_direct=no
16995 motorola)
16996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16997 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16999 esac
17000 runpath_var='LD_RUN_PATH'
17001 hardcode_shlibpath_var=no
17004 sysv4.3*)
17005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17006 hardcode_shlibpath_var=no
17007 export_dynamic_flag_spec='-Bexport'
17010 sysv4*MP*)
17011 if test -d /usr/nec; then
17012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17013 hardcode_shlibpath_var=no
17014 runpath_var=LD_RUN_PATH
17015 hardcode_runpath_var=yes
17016 ld_shlibs=yes
17020 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17021 no_undefined_flag='${wl}-z,text'
17022 archive_cmds_need_lc=no
17023 hardcode_shlibpath_var=no
17024 runpath_var='LD_RUN_PATH'
17026 if test "$GCC" = yes; then
17027 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17028 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17029 else
17030 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17031 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17035 sysv5* | sco3.2v5* | sco5v6*)
17036 # Note: We can NOT use -z defs as we might desire, because we do not
17037 # link with -lc, and that would cause any symbols used from libc to
17038 # always be unresolved, which means just about no library would
17039 # ever link correctly. If we're not using GNU ld we use -z text
17040 # though, which does catch some bad symbols but isn't as heavy-handed
17041 # as -z defs.
17042 no_undefined_flag='${wl}-z,text'
17043 allow_undefined_flag='${wl}-z,nodefs'
17044 archive_cmds_need_lc=no
17045 hardcode_shlibpath_var=no
17046 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17047 hardcode_libdir_separator=':'
17048 link_all_deplibs=yes
17049 export_dynamic_flag_spec='${wl}-Bexport'
17050 runpath_var='LD_RUN_PATH'
17052 if test "$GCC" = yes; then
17053 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17054 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17055 else
17056 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17057 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17061 uts4*)
17062 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17063 hardcode_libdir_flag_spec='-L$libdir'
17064 hardcode_shlibpath_var=no
17068 ld_shlibs=no
17070 esac
17072 if test x$host_vendor = xsni; then
17073 case $host in
17074 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17075 export_dynamic_flag_spec='${wl}-Blargedynsym'
17077 esac
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17082 $as_echo "$ld_shlibs" >&6; }
17083 test "$ld_shlibs" = no && can_build_shared=no
17085 with_gnu_ld=$with_gnu_ld
17102 # Do we need to explicitly link libc?
17104 case "x$archive_cmds_need_lc" in
17105 x|xyes)
17106 # Assume -lc should be added
17107 archive_cmds_need_lc=yes
17109 if test "$enable_shared" = yes && test "$GCC" = yes; then
17110 case $archive_cmds in
17111 *'~'*)
17112 # FIXME: we may have to deal with multi-command sequences.
17114 '$CC '*)
17115 # Test whether the compiler implicitly links with -lc since on some
17116 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17117 # to ld, don't add -lc before -lgcc.
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17119 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17120 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17121 $as_echo_n "(cached) " >&6
17122 else
17123 $RM conftest*
17124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17127 (eval $ac_compile) 2>&5
17128 ac_status=$?
17129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17130 test $ac_status = 0; } 2>conftest.err; then
17131 soname=conftest
17132 lib=conftest
17133 libobjs=conftest.$ac_objext
17134 deplibs=
17135 wl=$lt_prog_compiler_wl
17136 pic_flag=$lt_prog_compiler_pic
17137 compiler_flags=-v
17138 linker_flags=-v
17139 verstring=
17140 output_objdir=.
17141 libname=conftest
17142 lt_save_allow_undefined_flag=$allow_undefined_flag
17143 allow_undefined_flag=
17144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17145 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17146 ac_status=$?
17147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17148 test $ac_status = 0; }
17149 then
17150 lt_cv_archive_cmds_need_lc=no
17151 else
17152 lt_cv_archive_cmds_need_lc=yes
17154 allow_undefined_flag=$lt_save_allow_undefined_flag
17155 else
17156 cat conftest.err 1>&5
17158 $RM conftest*
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17162 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17163 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17165 esac
17168 esac
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17327 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17329 if test "$GCC" = yes; then
17330 case $host_os in
17331 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17332 *) lt_awk_arg="/^libraries:/" ;;
17333 esac
17334 case $host_os in
17335 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17336 *) lt_sed_strip_eq="s,=/,/,g" ;;
17337 esac
17338 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17339 case $lt_search_path_spec in
17340 *\;*)
17341 # if the path contains ";" then we assume it to be the separator
17342 # otherwise default to the standard path separator (i.e. ":") - it is
17343 # assumed that no part of a normal pathname contains ";" but that should
17344 # okay in the real world where ";" in dirpaths is itself problematic.
17345 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17348 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17350 esac
17351 # Ok, now we have the path, separated by spaces, we can step through it
17352 # and add multilib dir if necessary.
17353 lt_tmp_lt_search_path_spec=
17354 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17355 for lt_sys_path in $lt_search_path_spec; do
17356 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17357 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17358 else
17359 test -d "$lt_sys_path" && \
17360 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17362 done
17363 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17364 BEGIN {RS=" "; FS="/|\n";} {
17365 lt_foo="";
17366 lt_count=0;
17367 for (lt_i = NF; lt_i > 0; lt_i--) {
17368 if ($lt_i != "" && $lt_i != ".") {
17369 if ($lt_i == "..") {
17370 lt_count++;
17371 } else {
17372 if (lt_count == 0) {
17373 lt_foo="/" $lt_i lt_foo;
17374 } else {
17375 lt_count--;
17380 if (lt_foo != "") { lt_freq[lt_foo]++; }
17381 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17383 # AWK program above erroneously prepends '/' to C:/dos/paths
17384 # for these hosts.
17385 case $host_os in
17386 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17387 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17388 esac
17389 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17390 else
17391 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17393 library_names_spec=
17394 libname_spec='lib$name'
17395 soname_spec=
17396 shrext_cmds=".so"
17397 postinstall_cmds=
17398 postuninstall_cmds=
17399 finish_cmds=
17400 finish_eval=
17401 shlibpath_var=
17402 shlibpath_overrides_runpath=unknown
17403 version_type=none
17404 dynamic_linker="$host_os ld.so"
17405 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17406 need_lib_prefix=unknown
17407 hardcode_into_libs=no
17409 # when you set need_version to no, make sure it does not cause -set_version
17410 # flags to be left without arguments
17411 need_version=unknown
17413 case $host_os in
17414 aix3*)
17415 version_type=linux
17416 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17417 shlibpath_var=LIBPATH
17419 # AIX 3 has no versioning support, so we append a major version to the name.
17420 soname_spec='${libname}${release}${shared_ext}$major'
17423 aix[4-9]*)
17424 version_type=linux
17425 need_lib_prefix=no
17426 need_version=no
17427 hardcode_into_libs=yes
17428 if test "$host_cpu" = ia64; then
17429 # AIX 5 supports IA64
17430 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17431 shlibpath_var=LD_LIBRARY_PATH
17432 else
17433 # With GCC up to 2.95.x, collect2 would create an import file
17434 # for dependence libraries. The import file would start with
17435 # the line `#! .'. This would cause the generated library to
17436 # depend on `.', always an invalid library. This was fixed in
17437 # development snapshots of GCC prior to 3.0.
17438 case $host_os in
17439 aix4 | aix4.[01] | aix4.[01].*)
17440 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17441 echo ' yes '
17442 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17444 else
17445 can_build_shared=no
17448 esac
17449 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17450 # soname into executable. Probably we can add versioning support to
17451 # collect2, so additional links can be useful in future.
17452 if test "$aix_use_runtimelinking" = yes; then
17453 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17454 # instead of lib<name>.a to let people know that these are not
17455 # typical AIX shared libraries.
17456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17457 else
17458 # We preserve .a as extension for shared libraries through AIX4.2
17459 # and later when we are not doing run time linking.
17460 library_names_spec='${libname}${release}.a $libname.a'
17461 soname_spec='${libname}${release}${shared_ext}$major'
17463 shlibpath_var=LIBPATH
17467 amigaos*)
17468 case $host_cpu in
17469 powerpc)
17470 # Since July 2007 AmigaOS4 officially supports .so libraries.
17471 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17474 m68k)
17475 library_names_spec='$libname.ixlibrary $libname.a'
17476 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17477 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'
17479 esac
17482 beos*)
17483 library_names_spec='${libname}${shared_ext}'
17484 dynamic_linker="$host_os ld.so"
17485 shlibpath_var=LIBRARY_PATH
17488 bsdi[45]*)
17489 version_type=linux
17490 need_version=no
17491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17492 soname_spec='${libname}${release}${shared_ext}$major'
17493 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17494 shlibpath_var=LD_LIBRARY_PATH
17495 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17496 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17497 # the default ld.so.conf also contains /usr/contrib/lib and
17498 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17499 # libtool to hard-code these into programs
17502 cygwin* | mingw* | pw32* | cegcc*)
17503 version_type=windows
17504 shrext_cmds=".dll"
17505 need_version=no
17506 need_lib_prefix=no
17508 case $GCC,$host_os in
17509 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17510 library_names_spec='$libname.dll.a'
17511 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17512 postinstall_cmds='base_file=`basename \${file}`~
17513 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17514 dldir=$destdir/`dirname \$dlpath`~
17515 test -d \$dldir || mkdir -p \$dldir~
17516 $install_prog $dir/$dlname \$dldir/$dlname~
17517 chmod a+x \$dldir/$dlname~
17518 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17519 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17521 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17522 dlpath=$dir/\$dldll~
17523 $RM \$dlpath'
17524 shlibpath_overrides_runpath=yes
17526 case $host_os in
17527 cygwin*)
17528 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17529 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17531 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17533 mingw* | cegcc*)
17534 # MinGW DLLs use traditional 'lib' prefix
17535 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17537 pw32*)
17538 # pw32 DLLs use 'pw' prefix rather than 'lib'
17539 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17541 esac
17545 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17547 esac
17548 dynamic_linker='Win32 ld.exe'
17549 # FIXME: first we should search . and the directory the executable is in
17550 shlibpath_var=PATH
17553 darwin* | rhapsody*)
17554 dynamic_linker="$host_os dyld"
17555 version_type=darwin
17556 need_lib_prefix=no
17557 need_version=no
17558 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17559 soname_spec='${libname}${release}${major}$shared_ext'
17560 shlibpath_overrides_runpath=yes
17561 shlibpath_var=DYLD_LIBRARY_PATH
17562 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17564 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17565 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17568 dgux*)
17569 version_type=linux
17570 need_lib_prefix=no
17571 need_version=no
17572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17573 soname_spec='${libname}${release}${shared_ext}$major'
17574 shlibpath_var=LD_LIBRARY_PATH
17577 freebsd* | dragonfly*)
17578 # DragonFly does not have aout. When/if they implement a new
17579 # versioning mechanism, adjust this.
17580 if test -x /usr/bin/objformat; then
17581 objformat=`/usr/bin/objformat`
17582 else
17583 case $host_os in
17584 freebsd[23].*) objformat=aout ;;
17585 *) objformat=elf ;;
17586 esac
17588 version_type=freebsd-$objformat
17589 case $version_type in
17590 freebsd-elf*)
17591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17592 need_version=no
17593 need_lib_prefix=no
17595 freebsd-*)
17596 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17597 need_version=yes
17599 esac
17600 shlibpath_var=LD_LIBRARY_PATH
17601 case $host_os in
17602 freebsd2.*)
17603 shlibpath_overrides_runpath=yes
17605 freebsd3.[01]* | freebsdelf3.[01]*)
17606 shlibpath_overrides_runpath=yes
17607 hardcode_into_libs=yes
17609 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17610 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17611 shlibpath_overrides_runpath=no
17612 hardcode_into_libs=yes
17614 *) # from 4.6 on, and DragonFly
17615 shlibpath_overrides_runpath=yes
17616 hardcode_into_libs=yes
17618 esac
17621 gnu*)
17622 version_type=linux
17623 need_lib_prefix=no
17624 need_version=no
17625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17626 soname_spec='${libname}${release}${shared_ext}$major'
17627 shlibpath_var=LD_LIBRARY_PATH
17628 hardcode_into_libs=yes
17631 haiku*)
17632 version_type=linux
17633 need_lib_prefix=no
17634 need_version=no
17635 dynamic_linker="$host_os runtime_loader"
17636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17637 soname_spec='${libname}${release}${shared_ext}$major'
17638 shlibpath_var=LIBRARY_PATH
17639 shlibpath_overrides_runpath=yes
17640 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17641 hardcode_into_libs=yes
17644 hpux9* | hpux10* | hpux11*)
17645 # Give a soname corresponding to the major version so that dld.sl refuses to
17646 # link against other versions.
17647 version_type=sunos
17648 need_lib_prefix=no
17649 need_version=no
17650 case $host_cpu in
17651 ia64*)
17652 shrext_cmds='.so'
17653 hardcode_into_libs=yes
17654 dynamic_linker="$host_os dld.so"
17655 shlibpath_var=LD_LIBRARY_PATH
17656 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17658 soname_spec='${libname}${release}${shared_ext}$major'
17659 if test "X$HPUX_IA64_MODE" = X32; then
17660 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17661 else
17662 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17664 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17666 hppa*64*)
17667 shrext_cmds='.sl'
17668 hardcode_into_libs=yes
17669 dynamic_linker="$host_os dld.sl"
17670 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17671 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17673 soname_spec='${libname}${release}${shared_ext}$major'
17674 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17675 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17678 shrext_cmds='.sl'
17679 dynamic_linker="$host_os dld.sl"
17680 shlibpath_var=SHLIB_PATH
17681 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17683 soname_spec='${libname}${release}${shared_ext}$major'
17685 esac
17686 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17687 postinstall_cmds='chmod 555 $lib'
17688 # or fails outright, so override atomically:
17689 install_override_mode=555
17692 interix[3-9]*)
17693 version_type=linux
17694 need_lib_prefix=no
17695 need_version=no
17696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17697 soname_spec='${libname}${release}${shared_ext}$major'
17698 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17699 shlibpath_var=LD_LIBRARY_PATH
17700 shlibpath_overrides_runpath=no
17701 hardcode_into_libs=yes
17704 irix5* | irix6* | nonstopux*)
17705 case $host_os in
17706 nonstopux*) version_type=nonstopux ;;
17708 if test "$lt_cv_prog_gnu_ld" = yes; then
17709 version_type=linux
17710 else
17711 version_type=irix
17712 fi ;;
17713 esac
17714 need_lib_prefix=no
17715 need_version=no
17716 soname_spec='${libname}${release}${shared_ext}$major'
17717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17718 case $host_os in
17719 irix5* | nonstopux*)
17720 libsuff= shlibsuff=
17723 case $LD in # libtool.m4 will add one of these switches to LD
17724 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17725 libsuff= shlibsuff= libmagic=32-bit;;
17726 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17727 libsuff=32 shlibsuff=N32 libmagic=N32;;
17728 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17729 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17730 *) libsuff= shlibsuff= libmagic=never-match;;
17731 esac
17733 esac
17734 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17735 shlibpath_overrides_runpath=no
17736 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17737 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17738 hardcode_into_libs=yes
17741 # No shared lib support for Linux oldld, aout, or coff.
17742 linux*oldld* | linux*aout* | linux*coff*)
17743 dynamic_linker=no
17746 # This must be Linux ELF.
17747 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17748 version_type=linux
17749 need_lib_prefix=no
17750 need_version=no
17751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17752 soname_spec='${libname}${release}${shared_ext}$major'
17753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17754 shlibpath_var=LD_LIBRARY_PATH
17755 shlibpath_overrides_runpath=no
17757 # Some binutils ld are patched to set DT_RUNPATH
17758 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17759 $as_echo_n "(cached) " >&6
17760 else
17761 lt_cv_shlibpath_overrides_runpath=no
17762 save_LDFLAGS=$LDFLAGS
17763 save_libdir=$libdir
17764 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17765 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17767 /* end confdefs.h. */
17770 main ()
17774 return 0;
17776 _ACEOF
17777 if ac_fn_c_try_link "$LINENO"; then :
17778 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17779 lt_cv_shlibpath_overrides_runpath=yes
17782 rm -f core conftest.err conftest.$ac_objext \
17783 conftest$ac_exeext conftest.$ac_ext
17784 LDFLAGS=$save_LDFLAGS
17785 libdir=$save_libdir
17789 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17791 # This implies no fast_install, which is unacceptable.
17792 # Some rework will be needed to allow for fast_install
17793 # before this can be enabled.
17794 hardcode_into_libs=yes
17796 # Append ld.so.conf contents to the search path
17797 if test -f /etc/ld.so.conf; then
17798 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' ' '`
17799 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17802 # We used to test for /lib/ld.so.1 and disable shared libraries on
17803 # powerpc, because MkLinux only supported shared libraries with the
17804 # GNU dynamic linker. Since this was broken with cross compilers,
17805 # most powerpc-linux boxes support dynamic linking these days and
17806 # people can always --disable-shared, the test was removed, and we
17807 # assume the GNU/Linux dynamic linker is in use.
17808 dynamic_linker='GNU/Linux ld.so'
17811 netbsd*)
17812 version_type=sunos
17813 need_lib_prefix=no
17814 need_version=no
17815 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17818 dynamic_linker='NetBSD (a.out) ld.so'
17819 else
17820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17821 soname_spec='${libname}${release}${shared_ext}$major'
17822 dynamic_linker='NetBSD ld.elf_so'
17824 shlibpath_var=LD_LIBRARY_PATH
17825 shlibpath_overrides_runpath=yes
17826 hardcode_into_libs=yes
17829 newsos6)
17830 version_type=linux
17831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17832 shlibpath_var=LD_LIBRARY_PATH
17833 shlibpath_overrides_runpath=yes
17836 *nto* | *qnx*)
17837 version_type=qnx
17838 need_lib_prefix=no
17839 need_version=no
17840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17841 soname_spec='${libname}${release}${shared_ext}$major'
17842 shlibpath_var=LD_LIBRARY_PATH
17843 shlibpath_overrides_runpath=no
17844 hardcode_into_libs=yes
17845 dynamic_linker='ldqnx.so'
17848 openbsd*)
17849 version_type=sunos
17850 sys_lib_dlsearch_path_spec="/usr/lib"
17851 need_lib_prefix=no
17852 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17853 case $host_os in
17854 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17855 *) need_version=no ;;
17856 esac
17857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17859 shlibpath_var=LD_LIBRARY_PATH
17860 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17861 case $host_os in
17862 openbsd2.[89] | openbsd2.[89].*)
17863 shlibpath_overrides_runpath=no
17866 shlibpath_overrides_runpath=yes
17868 esac
17869 else
17870 shlibpath_overrides_runpath=yes
17874 os2*)
17875 libname_spec='$name'
17876 shrext_cmds=".dll"
17877 need_lib_prefix=no
17878 library_names_spec='$libname${shared_ext} $libname.a'
17879 dynamic_linker='OS/2 ld.exe'
17880 shlibpath_var=LIBPATH
17883 osf3* | osf4* | osf5*)
17884 version_type=osf
17885 need_lib_prefix=no
17886 need_version=no
17887 soname_spec='${libname}${release}${shared_ext}$major'
17888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17889 shlibpath_var=LD_LIBRARY_PATH
17890 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17891 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17894 rdos*)
17895 dynamic_linker=no
17898 solaris*)
17899 version_type=linux
17900 need_lib_prefix=no
17901 need_version=no
17902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17903 soname_spec='${libname}${release}${shared_ext}$major'
17904 shlibpath_var=LD_LIBRARY_PATH
17905 shlibpath_overrides_runpath=yes
17906 hardcode_into_libs=yes
17907 # ldd complains unless libraries are executable
17908 postinstall_cmds='chmod +x $lib'
17911 sunos4*)
17912 version_type=sunos
17913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17914 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17915 shlibpath_var=LD_LIBRARY_PATH
17916 shlibpath_overrides_runpath=yes
17917 if test "$with_gnu_ld" = yes; then
17918 need_lib_prefix=no
17920 need_version=yes
17923 sysv4 | sysv4.3*)
17924 version_type=linux
17925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17926 soname_spec='${libname}${release}${shared_ext}$major'
17927 shlibpath_var=LD_LIBRARY_PATH
17928 case $host_vendor in
17929 sni)
17930 shlibpath_overrides_runpath=no
17931 need_lib_prefix=no
17932 runpath_var=LD_RUN_PATH
17934 siemens)
17935 need_lib_prefix=no
17937 motorola)
17938 need_lib_prefix=no
17939 need_version=no
17940 shlibpath_overrides_runpath=no
17941 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17943 esac
17946 sysv4*MP*)
17947 if test -d /usr/nec ;then
17948 version_type=linux
17949 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17950 soname_spec='$libname${shared_ext}.$major'
17951 shlibpath_var=LD_LIBRARY_PATH
17955 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17956 version_type=freebsd-elf
17957 need_lib_prefix=no
17958 need_version=no
17959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17960 soname_spec='${libname}${release}${shared_ext}$major'
17961 shlibpath_var=LD_LIBRARY_PATH
17962 shlibpath_overrides_runpath=yes
17963 hardcode_into_libs=yes
17964 if test "$with_gnu_ld" = yes; then
17965 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17966 else
17967 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17968 case $host_os in
17969 sco3.2v5*)
17970 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17972 esac
17974 sys_lib_dlsearch_path_spec='/usr/lib'
17977 tpf*)
17978 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17979 version_type=linux
17980 need_lib_prefix=no
17981 need_version=no
17982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17983 shlibpath_var=LD_LIBRARY_PATH
17984 shlibpath_overrides_runpath=no
17985 hardcode_into_libs=yes
17988 uts4*)
17989 version_type=linux
17990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17991 soname_spec='${libname}${release}${shared_ext}$major'
17992 shlibpath_var=LD_LIBRARY_PATH
17996 dynamic_linker=no
17998 esac
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18000 $as_echo "$dynamic_linker" >&6; }
18001 test "$dynamic_linker" = no && can_build_shared=no
18003 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18004 if test "$GCC" = yes; then
18005 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18008 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18009 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18011 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18012 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18107 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18108 hardcode_action=
18109 if test -n "$hardcode_libdir_flag_spec" ||
18110 test -n "$runpath_var" ||
18111 test "X$hardcode_automatic" = "Xyes" ; then
18113 # We can hardcode non-existent directories.
18114 if test "$hardcode_direct" != no &&
18115 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18116 # have to relink, otherwise we might link with an installed library
18117 # when we should be linking with a yet-to-be-installed one
18118 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18119 test "$hardcode_minus_L" != no; then
18120 # Linking always hardcodes the temporary library directory.
18121 hardcode_action=relink
18122 else
18123 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18124 hardcode_action=immediate
18126 else
18127 # We cannot hardcode anything, or else we can only hardcode existing
18128 # directories.
18129 hardcode_action=unsupported
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18132 $as_echo "$hardcode_action" >&6; }
18134 if test "$hardcode_action" = relink ||
18135 test "$inherit_rpath" = yes; then
18136 # Fast installation is not supported
18137 enable_fast_install=no
18138 elif test "$shlibpath_overrides_runpath" = yes ||
18139 test "$enable_shared" = no; then
18140 # Fast installation is not necessary
18141 enable_fast_install=needless
18149 if test "x$enable_dlopen" != xyes; then
18150 enable_dlopen=unknown
18151 enable_dlopen_self=unknown
18152 enable_dlopen_self_static=unknown
18153 else
18154 lt_cv_dlopen=no
18155 lt_cv_dlopen_libs=
18157 case $host_os in
18158 beos*)
18159 lt_cv_dlopen="load_add_on"
18160 lt_cv_dlopen_libs=
18161 lt_cv_dlopen_self=yes
18164 mingw* | pw32* | cegcc*)
18165 lt_cv_dlopen="LoadLibrary"
18166 lt_cv_dlopen_libs=
18169 cygwin*)
18170 lt_cv_dlopen="dlopen"
18171 lt_cv_dlopen_libs=
18174 darwin*)
18175 # if libdl is installed we need to link against it
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18177 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18178 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18179 $as_echo_n "(cached) " >&6
18180 else
18181 ac_check_lib_save_LIBS=$LIBS
18182 LIBS="-ldl $LIBS"
18183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18184 /* end confdefs.h. */
18186 /* Override any GCC internal prototype to avoid an error.
18187 Use char because int might match the return type of a GCC
18188 builtin and then its argument prototype would still apply. */
18189 #ifdef __cplusplus
18190 extern "C"
18191 #endif
18192 char dlopen ();
18194 main ()
18196 return dlopen ();
18198 return 0;
18200 _ACEOF
18201 if ac_fn_c_try_link "$LINENO"; then :
18202 ac_cv_lib_dl_dlopen=yes
18203 else
18204 ac_cv_lib_dl_dlopen=no
18206 rm -f core conftest.err conftest.$ac_objext \
18207 conftest$ac_exeext conftest.$ac_ext
18208 LIBS=$ac_check_lib_save_LIBS
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18211 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18212 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18213 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18214 else
18216 lt_cv_dlopen="dyld"
18217 lt_cv_dlopen_libs=
18218 lt_cv_dlopen_self=yes
18225 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18226 if test "x$ac_cv_func_shl_load" = x""yes; then :
18227 lt_cv_dlopen="shl_load"
18228 else
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18230 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18231 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18232 $as_echo_n "(cached) " >&6
18233 else
18234 ac_check_lib_save_LIBS=$LIBS
18235 LIBS="-ldld $LIBS"
18236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18237 /* end confdefs.h. */
18239 /* Override any GCC internal prototype to avoid an error.
18240 Use char because int might match the return type of a GCC
18241 builtin and then its argument prototype would still apply. */
18242 #ifdef __cplusplus
18243 extern "C"
18244 #endif
18245 char shl_load ();
18247 main ()
18249 return shl_load ();
18251 return 0;
18253 _ACEOF
18254 if ac_fn_c_try_link "$LINENO"; then :
18255 ac_cv_lib_dld_shl_load=yes
18256 else
18257 ac_cv_lib_dld_shl_load=no
18259 rm -f core conftest.err conftest.$ac_objext \
18260 conftest$ac_exeext conftest.$ac_ext
18261 LIBS=$ac_check_lib_save_LIBS
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18264 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18265 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18266 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18267 else
18268 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18269 if test "x$ac_cv_func_dlopen" = x""yes; then :
18270 lt_cv_dlopen="dlopen"
18271 else
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
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18312 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18313 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18314 $as_echo_n "(cached) " >&6
18315 else
18316 ac_check_lib_save_LIBS=$LIBS
18317 LIBS="-lsvld $LIBS"
18318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18319 /* end confdefs.h. */
18321 /* Override any GCC internal prototype to avoid an error.
18322 Use char because int might match the return type of a GCC
18323 builtin and then its argument prototype would still apply. */
18324 #ifdef __cplusplus
18325 extern "C"
18326 #endif
18327 char dlopen ();
18329 main ()
18331 return dlopen ();
18333 return 0;
18335 _ACEOF
18336 if ac_fn_c_try_link "$LINENO"; then :
18337 ac_cv_lib_svld_dlopen=yes
18338 else
18339 ac_cv_lib_svld_dlopen=no
18341 rm -f core conftest.err conftest.$ac_objext \
18342 conftest$ac_exeext conftest.$ac_ext
18343 LIBS=$ac_check_lib_save_LIBS
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18346 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18347 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18348 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18349 else
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18351 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18352 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18353 $as_echo_n "(cached) " >&6
18354 else
18355 ac_check_lib_save_LIBS=$LIBS
18356 LIBS="-ldld $LIBS"
18357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18358 /* end confdefs.h. */
18360 /* Override any GCC internal prototype to avoid an error.
18361 Use char because int might match the return type of a GCC
18362 builtin and then its argument prototype would still apply. */
18363 #ifdef __cplusplus
18364 extern "C"
18365 #endif
18366 char dld_link ();
18368 main ()
18370 return dld_link ();
18372 return 0;
18374 _ACEOF
18375 if ac_fn_c_try_link "$LINENO"; then :
18376 ac_cv_lib_dld_dld_link=yes
18377 else
18378 ac_cv_lib_dld_dld_link=no
18380 rm -f core conftest.err conftest.$ac_objext \
18381 conftest$ac_exeext conftest.$ac_ext
18382 LIBS=$ac_check_lib_save_LIBS
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18385 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18386 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18387 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18406 esac
18408 if test "x$lt_cv_dlopen" != xno; then
18409 enable_dlopen=yes
18410 else
18411 enable_dlopen=no
18414 case $lt_cv_dlopen in
18415 dlopen)
18416 save_CPPFLAGS="$CPPFLAGS"
18417 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18419 save_LDFLAGS="$LDFLAGS"
18420 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18422 save_LIBS="$LIBS"
18423 LIBS="$lt_cv_dlopen_libs $LIBS"
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18426 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18427 if test "${lt_cv_dlopen_self+set}" = set; then :
18428 $as_echo_n "(cached) " >&6
18429 else
18430 if test "$cross_compiling" = yes; then :
18431 lt_cv_dlopen_self=cross
18432 else
18433 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18434 lt_status=$lt_dlunknown
18435 cat > conftest.$ac_ext <<_LT_EOF
18436 #line 18436 "configure"
18437 #include "confdefs.h"
18439 #if HAVE_DLFCN_H
18440 #include <dlfcn.h>
18441 #endif
18443 #include <stdio.h>
18445 #ifdef RTLD_GLOBAL
18446 # define LT_DLGLOBAL RTLD_GLOBAL
18447 #else
18448 # ifdef DL_GLOBAL
18449 # define LT_DLGLOBAL DL_GLOBAL
18450 # else
18451 # define LT_DLGLOBAL 0
18452 # endif
18453 #endif
18455 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18456 find out it does not work in some platform. */
18457 #ifndef LT_DLLAZY_OR_NOW
18458 # ifdef RTLD_LAZY
18459 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18460 # else
18461 # ifdef DL_LAZY
18462 # define LT_DLLAZY_OR_NOW DL_LAZY
18463 # else
18464 # ifdef RTLD_NOW
18465 # define LT_DLLAZY_OR_NOW RTLD_NOW
18466 # else
18467 # ifdef DL_NOW
18468 # define LT_DLLAZY_OR_NOW DL_NOW
18469 # else
18470 # define LT_DLLAZY_OR_NOW 0
18471 # endif
18472 # endif
18473 # endif
18474 # endif
18475 #endif
18477 /* When -fvisbility=hidden is used, assume the code has been annotated
18478 correspondingly for the symbols needed. */
18479 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18480 void fnord () __attribute__((visibility("default")));
18481 #endif
18483 void fnord () { int i=42; }
18484 int main ()
18486 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18487 int status = $lt_dlunknown;
18489 if (self)
18491 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18492 else
18494 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18495 else puts (dlerror ());
18497 /* dlclose (self); */
18499 else
18500 puts (dlerror ());
18502 return status;
18504 _LT_EOF
18505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18506 (eval $ac_link) 2>&5
18507 ac_status=$?
18508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18509 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18510 (./conftest; exit; ) >&5 2>/dev/null
18511 lt_status=$?
18512 case x$lt_status in
18513 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18514 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18515 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18516 esac
18517 else :
18518 # compilation failed
18519 lt_cv_dlopen_self=no
18522 rm -fr conftest*
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18527 $as_echo "$lt_cv_dlopen_self" >&6; }
18529 if test "x$lt_cv_dlopen_self" = xyes; then
18530 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18532 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18533 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18534 $as_echo_n "(cached) " >&6
18535 else
18536 if test "$cross_compiling" = yes; then :
18537 lt_cv_dlopen_self_static=cross
18538 else
18539 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18540 lt_status=$lt_dlunknown
18541 cat > conftest.$ac_ext <<_LT_EOF
18542 #line 18542 "configure"
18543 #include "confdefs.h"
18545 #if HAVE_DLFCN_H
18546 #include <dlfcn.h>
18547 #endif
18549 #include <stdio.h>
18551 #ifdef RTLD_GLOBAL
18552 # define LT_DLGLOBAL RTLD_GLOBAL
18553 #else
18554 # ifdef DL_GLOBAL
18555 # define LT_DLGLOBAL DL_GLOBAL
18556 # else
18557 # define LT_DLGLOBAL 0
18558 # endif
18559 #endif
18561 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18562 find out it does not work in some platform. */
18563 #ifndef LT_DLLAZY_OR_NOW
18564 # ifdef RTLD_LAZY
18565 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18566 # else
18567 # ifdef DL_LAZY
18568 # define LT_DLLAZY_OR_NOW DL_LAZY
18569 # else
18570 # ifdef RTLD_NOW
18571 # define LT_DLLAZY_OR_NOW RTLD_NOW
18572 # else
18573 # ifdef DL_NOW
18574 # define LT_DLLAZY_OR_NOW DL_NOW
18575 # else
18576 # define LT_DLLAZY_OR_NOW 0
18577 # endif
18578 # endif
18579 # endif
18580 # endif
18581 #endif
18583 /* When -fvisbility=hidden is used, assume the code has been annotated
18584 correspondingly for the symbols needed. */
18585 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18586 void fnord () __attribute__((visibility("default")));
18587 #endif
18589 void fnord () { int i=42; }
18590 int main ()
18592 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18593 int status = $lt_dlunknown;
18595 if (self)
18597 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18598 else
18600 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18601 else puts (dlerror ());
18603 /* dlclose (self); */
18605 else
18606 puts (dlerror ());
18608 return status;
18610 _LT_EOF
18611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18612 (eval $ac_link) 2>&5
18613 ac_status=$?
18614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18615 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18616 (./conftest; exit; ) >&5 2>/dev/null
18617 lt_status=$?
18618 case x$lt_status in
18619 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18620 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18621 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18622 esac
18623 else :
18624 # compilation failed
18625 lt_cv_dlopen_self_static=no
18628 rm -fr conftest*
18632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18633 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18636 CPPFLAGS="$save_CPPFLAGS"
18637 LDFLAGS="$save_LDFLAGS"
18638 LIBS="$save_LIBS"
18640 esac
18642 case $lt_cv_dlopen_self in
18643 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18644 *) enable_dlopen_self=unknown ;;
18645 esac
18647 case $lt_cv_dlopen_self_static in
18648 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18649 *) enable_dlopen_self_static=unknown ;;
18650 esac
18669 striplib=
18670 old_striplib=
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18672 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18673 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18674 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18675 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18677 $as_echo "yes" >&6; }
18678 else
18679 # FIXME - insert some real tests, host_os isn't really good enough
18680 case $host_os in
18681 darwin*)
18682 if test -n "$STRIP" ; then
18683 striplib="$STRIP -x"
18684 old_striplib="$STRIP -S"
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18686 $as_echo "yes" >&6; }
18687 else
18688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18689 $as_echo "no" >&6; }
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18694 $as_echo "no" >&6; }
18696 esac
18710 # Report which library types will actually be built
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18712 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18714 $as_echo "$can_build_shared" >&6; }
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18717 $as_echo_n "checking whether to build shared libraries... " >&6; }
18718 test "$can_build_shared" = "no" && enable_shared=no
18720 # On AIX, shared libraries and static libraries use the same namespace, and
18721 # are all built from PIC.
18722 case $host_os in
18723 aix3*)
18724 test "$enable_shared" = yes && enable_static=no
18725 if test -n "$RANLIB"; then
18726 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18727 postinstall_cmds='$RANLIB $lib'
18731 aix[4-9]*)
18732 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18733 test "$enable_shared" = yes && enable_static=no
18736 esac
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18738 $as_echo "$enable_shared" >&6; }
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18741 $as_echo_n "checking whether to build static libraries... " >&6; }
18742 # Make sure either enable_shared or enable_static is yes.
18743 test "$enable_shared" = yes || enable_static=yes
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18745 $as_echo "$enable_static" >&6; }
18751 ac_ext=cpp
18752 ac_cpp='$CXXCPP $CPPFLAGS'
18753 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18754 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18755 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18757 CC="$lt_save_CC"
18759 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18760 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18761 (test "X$CXX" != "Xg++"))) ; then
18762 ac_ext=cpp
18763 ac_cpp='$CXXCPP $CPPFLAGS'
18764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18768 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18769 if test -z "$CXXCPP"; then
18770 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18771 $as_echo_n "(cached) " >&6
18772 else
18773 # Double quotes because CXXCPP needs to be expanded
18774 for CXXCPP in "$CXX -E" "/lib/cpp"
18776 ac_preproc_ok=false
18777 for ac_cxx_preproc_warn_flag in '' yes
18779 # Use a header file that comes with gcc, so configuring glibc
18780 # with a fresh cross-compiler works.
18781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18782 # <limits.h> exists even on freestanding compilers.
18783 # On the NeXT, cc -E runs the code through the compiler's parser,
18784 # not just through cpp. "Syntax error" is here to catch this case.
18785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18786 /* end confdefs.h. */
18787 #ifdef __STDC__
18788 # include <limits.h>
18789 #else
18790 # include <assert.h>
18791 #endif
18792 Syntax error
18793 _ACEOF
18794 if ac_fn_cxx_try_cpp "$LINENO"; then :
18796 else
18797 # Broken: fails on valid input.
18798 continue
18800 rm -f conftest.err conftest.$ac_ext
18802 # OK, works on sane cases. Now check whether nonexistent headers
18803 # can be detected and how.
18804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18805 /* end confdefs.h. */
18806 #include <ac_nonexistent.h>
18807 _ACEOF
18808 if ac_fn_cxx_try_cpp "$LINENO"; then :
18809 # Broken: success on invalid input.
18810 continue
18811 else
18812 # Passes both tests.
18813 ac_preproc_ok=:
18814 break
18816 rm -f conftest.err conftest.$ac_ext
18818 done
18819 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18820 rm -f conftest.err conftest.$ac_ext
18821 if $ac_preproc_ok; then :
18822 break
18825 done
18826 ac_cv_prog_CXXCPP=$CXXCPP
18829 CXXCPP=$ac_cv_prog_CXXCPP
18830 else
18831 ac_cv_prog_CXXCPP=$CXXCPP
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18834 $as_echo "$CXXCPP" >&6; }
18835 ac_preproc_ok=false
18836 for ac_cxx_preproc_warn_flag in '' yes
18838 # Use a header file that comes with gcc, so configuring glibc
18839 # with a fresh cross-compiler works.
18840 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18841 # <limits.h> exists even on freestanding compilers.
18842 # On the NeXT, cc -E runs the code through the compiler's parser,
18843 # not just through cpp. "Syntax error" is here to catch this case.
18844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18845 /* end confdefs.h. */
18846 #ifdef __STDC__
18847 # include <limits.h>
18848 #else
18849 # include <assert.h>
18850 #endif
18851 Syntax error
18852 _ACEOF
18853 if ac_fn_cxx_try_cpp "$LINENO"; then :
18855 else
18856 # Broken: fails on valid input.
18857 continue
18859 rm -f conftest.err conftest.$ac_ext
18861 # OK, works on sane cases. Now check whether nonexistent headers
18862 # can be detected and how.
18863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18864 /* end confdefs.h. */
18865 #include <ac_nonexistent.h>
18866 _ACEOF
18867 if ac_fn_cxx_try_cpp "$LINENO"; then :
18868 # Broken: success on invalid input.
18869 continue
18870 else
18871 # Passes both tests.
18872 ac_preproc_ok=:
18873 break
18875 rm -f conftest.err conftest.$ac_ext
18877 done
18878 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18879 rm -f conftest.err conftest.$ac_ext
18880 if $ac_preproc_ok; then :
18882 else
18883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18885 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18886 See \`config.log' for more details." "$LINENO" 5; }
18889 ac_ext=cpp
18890 ac_cpp='$CXXCPP $CPPFLAGS'
18891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18895 else
18896 _lt_caught_CXX_error=yes
18899 ac_ext=cpp
18900 ac_cpp='$CXXCPP $CPPFLAGS'
18901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18905 archive_cmds_need_lc_CXX=no
18906 allow_undefined_flag_CXX=
18907 always_export_symbols_CXX=no
18908 archive_expsym_cmds_CXX=
18909 compiler_needs_object_CXX=no
18910 export_dynamic_flag_spec_CXX=
18911 hardcode_direct_CXX=no
18912 hardcode_direct_absolute_CXX=no
18913 hardcode_libdir_flag_spec_CXX=
18914 hardcode_libdir_flag_spec_ld_CXX=
18915 hardcode_libdir_separator_CXX=
18916 hardcode_minus_L_CXX=no
18917 hardcode_shlibpath_var_CXX=unsupported
18918 hardcode_automatic_CXX=no
18919 inherit_rpath_CXX=no
18920 module_cmds_CXX=
18921 module_expsym_cmds_CXX=
18922 link_all_deplibs_CXX=unknown
18923 old_archive_cmds_CXX=$old_archive_cmds
18924 reload_flag_CXX=$reload_flag
18925 reload_cmds_CXX=$reload_cmds
18926 no_undefined_flag_CXX=
18927 whole_archive_flag_spec_CXX=
18928 enable_shared_with_static_runtimes_CXX=no
18930 # Source file extension for C++ test sources.
18931 ac_ext=cpp
18933 # Object file extension for compiled C++ test sources.
18934 objext=o
18935 objext_CXX=$objext
18937 # No sense in running all these tests if we already determined that
18938 # the CXX compiler isn't working. Some variables (like enable_shared)
18939 # are currently assumed to apply to all compilers on this platform,
18940 # and will be corrupted by setting them based on a non-working compiler.
18941 if test "$_lt_caught_CXX_error" != yes; then
18942 # Code to be used in simple compile tests
18943 lt_simple_compile_test_code="int some_variable = 0;"
18945 # Code to be used in simple link tests
18946 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18948 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18955 # If no C compiler was specified, use CC.
18956 LTCC=${LTCC-"$CC"}
18958 # If no C compiler flags were specified, use CFLAGS.
18959 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18961 # Allow CC to be a program name with arguments.
18962 compiler=$CC
18965 # save warnings/boilerplate of simple test code
18966 ac_outfile=conftest.$ac_objext
18967 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18968 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18969 _lt_compiler_boilerplate=`cat conftest.err`
18970 $RM conftest*
18972 ac_outfile=conftest.$ac_objext
18973 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18974 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18975 _lt_linker_boilerplate=`cat conftest.err`
18976 $RM -r conftest*
18979 # Allow CC to be a program name with arguments.
18980 lt_save_CC=$CC
18981 lt_save_LD=$LD
18982 lt_save_GCC=$GCC
18983 GCC=$GXX
18984 lt_save_with_gnu_ld=$with_gnu_ld
18985 lt_save_path_LD=$lt_cv_path_LD
18986 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18987 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18988 else
18989 $as_unset lt_cv_prog_gnu_ld
18991 if test -n "${lt_cv_path_LDCXX+set}"; then
18992 lt_cv_path_LD=$lt_cv_path_LDCXX
18993 else
18994 $as_unset lt_cv_path_LD
18996 test -z "${LDCXX+set}" || LD=$LDCXX
18997 CC=${CXX-"c++"}
18998 compiler=$CC
18999 compiler_CXX=$CC
19000 for cc_temp in $compiler""; do
19001 case $cc_temp in
19002 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19003 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19004 \-*) ;;
19005 *) break;;
19006 esac
19007 done
19008 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19011 if test -n "$compiler"; then
19012 # We don't want -fno-exception when compiling C++ code, so set the
19013 # no_builtin_flag separately
19014 if test "$GXX" = yes; then
19015 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19016 else
19017 lt_prog_compiler_no_builtin_flag_CXX=
19020 if test "$GXX" = yes; then
19021 # Set up default GNU C++ configuration
19025 # Check whether --with-gnu-ld was given.
19026 if test "${with_gnu_ld+set}" = set; then :
19027 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19028 else
19029 with_gnu_ld=no
19032 ac_prog=ld
19033 if test "$GCC" = yes; then
19034 # Check if gcc -print-prog-name=ld gives a path.
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19036 $as_echo_n "checking for ld used by $CC... " >&6; }
19037 case $host in
19038 *-*-mingw*)
19039 # gcc leaves a trailing carriage return which upsets mingw
19040 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19042 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19043 esac
19044 case $ac_prog in
19045 # Accept absolute paths.
19046 [\\/]* | ?:[\\/]*)
19047 re_direlt='/[^/][^/]*/\.\./'
19048 # Canonicalize the pathname of ld
19049 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19050 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19051 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19052 done
19053 test -z "$LD" && LD="$ac_prog"
19056 # If it fails, then pretend we aren't using GCC.
19057 ac_prog=ld
19060 # If it is relative, then search for the first ld in PATH.
19061 with_gnu_ld=unknown
19063 esac
19064 elif test "$with_gnu_ld" = yes; then
19065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19066 $as_echo_n "checking for GNU ld... " >&6; }
19067 else
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19069 $as_echo_n "checking for non-GNU ld... " >&6; }
19071 if test "${lt_cv_path_LD+set}" = set; then :
19072 $as_echo_n "(cached) " >&6
19073 else
19074 if test -z "$LD"; then
19075 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19076 for ac_dir in $PATH; do
19077 IFS="$lt_save_ifs"
19078 test -z "$ac_dir" && ac_dir=.
19079 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19080 lt_cv_path_LD="$ac_dir/$ac_prog"
19081 # Check to see if the program is GNU ld. I'd rather use --version,
19082 # but apparently some variants of GNU ld only accept -v.
19083 # Break only if it was the GNU/non-GNU ld that we prefer.
19084 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19085 *GNU* | *'with BFD'*)
19086 test "$with_gnu_ld" != no && break
19089 test "$with_gnu_ld" != yes && break
19091 esac
19093 done
19094 IFS="$lt_save_ifs"
19095 else
19096 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19100 LD="$lt_cv_path_LD"
19101 if test -n "$LD"; then
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19103 $as_echo "$LD" >&6; }
19104 else
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19106 $as_echo "no" >&6; }
19108 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19110 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19111 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19112 $as_echo_n "(cached) " >&6
19113 else
19114 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19115 case `$LD -v 2>&1 </dev/null` in
19116 *GNU* | *'with BFD'*)
19117 lt_cv_prog_gnu_ld=yes
19120 lt_cv_prog_gnu_ld=no
19122 esac
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19125 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19126 with_gnu_ld=$lt_cv_prog_gnu_ld
19134 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19135 # archiving commands below assume that GNU ld is being used.
19136 if test "$with_gnu_ld" = yes; then
19137 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19138 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'
19140 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19141 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19143 # If archive_cmds runs LD, not CC, wlarc should be empty
19144 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19145 # investigate it a little bit more. (MM)
19146 wlarc='${wl}'
19148 # ancient GNU ld didn't support --whole-archive et. al.
19149 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19150 $GREP 'no-whole-archive' > /dev/null; then
19151 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19152 else
19153 whole_archive_flag_spec_CXX=
19155 else
19156 with_gnu_ld=no
19157 wlarc=
19159 # A generic and very simple default shared library creation
19160 # command for GNU C++ for the case where it uses the native
19161 # linker, instead of GNU ld. If possible, this setting should
19162 # overridden to take advantage of the native linker features on
19163 # the platform it is being used on.
19164 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19167 # Commands to make compiler produce verbose output that lists
19168 # what "hidden" libraries, object files and flags are used when
19169 # linking a shared library.
19170 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19172 else
19173 GXX=no
19174 with_gnu_ld=no
19175 wlarc=
19178 # PORTME: fill in a description of your system's C++ link characteristics
19179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19180 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19181 ld_shlibs_CXX=yes
19182 case $host_os in
19183 aix3*)
19184 # FIXME: insert proper C++ library support
19185 ld_shlibs_CXX=no
19187 aix[4-9]*)
19188 if test "$host_cpu" = ia64; then
19189 # On IA64, the linker does run time linking by default, so we don't
19190 # have to do anything special.
19191 aix_use_runtimelinking=no
19192 exp_sym_flag='-Bexport'
19193 no_entry_flag=""
19194 else
19195 aix_use_runtimelinking=no
19197 # Test if we are trying to use run time linking or normal
19198 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19199 # need to do runtime linking.
19200 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19201 for ld_flag in $LDFLAGS; do
19202 case $ld_flag in
19203 *-brtl*)
19204 aix_use_runtimelinking=yes
19205 break
19207 esac
19208 done
19210 esac
19212 exp_sym_flag='-bexport'
19213 no_entry_flag='-bnoentry'
19216 # When large executables or shared objects are built, AIX ld can
19217 # have problems creating the table of contents. If linking a library
19218 # or program results in "error TOC overflow" add -mminimal-toc to
19219 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19220 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19222 archive_cmds_CXX=''
19223 hardcode_direct_CXX=yes
19224 hardcode_direct_absolute_CXX=yes
19225 hardcode_libdir_separator_CXX=':'
19226 link_all_deplibs_CXX=yes
19227 file_list_spec_CXX='${wl}-f,'
19229 if test "$GXX" = yes; then
19230 case $host_os in aix4.[012]|aix4.[012].*)
19231 # We only want to do this on AIX 4.2 and lower, the check
19232 # below for broken collect2 doesn't work under 4.3+
19233 collect2name=`${CC} -print-prog-name=collect2`
19234 if test -f "$collect2name" &&
19235 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19236 then
19237 # We have reworked collect2
19239 else
19240 # We have old collect2
19241 hardcode_direct_CXX=unsupported
19242 # It fails to find uninstalled libraries when the uninstalled
19243 # path is not listed in the libpath. Setting hardcode_minus_L
19244 # to unsupported forces relinking
19245 hardcode_minus_L_CXX=yes
19246 hardcode_libdir_flag_spec_CXX='-L$libdir'
19247 hardcode_libdir_separator_CXX=
19249 esac
19250 shared_flag='-shared'
19251 if test "$aix_use_runtimelinking" = yes; then
19252 shared_flag="$shared_flag "'${wl}-G'
19254 else
19255 # not using gcc
19256 if test "$host_cpu" = ia64; then
19257 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19258 # chokes on -Wl,-G. The following line is correct:
19259 shared_flag='-G'
19260 else
19261 if test "$aix_use_runtimelinking" = yes; then
19262 shared_flag='${wl}-G'
19263 else
19264 shared_flag='${wl}-bM:SRE'
19269 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19270 # It seems that -bexpall does not export symbols beginning with
19271 # underscore (_), so it is better to generate a list of symbols to
19272 # export.
19273 always_export_symbols_CXX=yes
19274 if test "$aix_use_runtimelinking" = yes; then
19275 # Warning - without using the other runtime loading flags (-brtl),
19276 # -berok will link without error, but may produce a broken library.
19277 allow_undefined_flag_CXX='-berok'
19278 # Determine the default libpath from the value encoded in an empty
19279 # executable.
19280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19281 /* end confdefs.h. */
19284 main ()
19288 return 0;
19290 _ACEOF
19291 if ac_fn_cxx_try_link "$LINENO"; then :
19293 lt_aix_libpath_sed='
19294 /Import File Strings/,/^$/ {
19295 /^0/ {
19296 s/^0 *\(.*\)$/\1/
19300 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19301 # Check for a 64-bit object if we didn't find anything.
19302 if test -z "$aix_libpath"; then
19303 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19306 rm -f core conftest.err conftest.$ac_objext \
19307 conftest$ac_exeext conftest.$ac_ext
19308 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19310 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19312 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"
19313 else
19314 if test "$host_cpu" = ia64; then
19315 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19316 allow_undefined_flag_CXX="-z nodefs"
19317 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"
19318 else
19319 # Determine the default libpath from the value encoded in an
19320 # empty executable.
19321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19322 /* end confdefs.h. */
19325 main ()
19329 return 0;
19331 _ACEOF
19332 if ac_fn_cxx_try_link "$LINENO"; then :
19334 lt_aix_libpath_sed='
19335 /Import File Strings/,/^$/ {
19336 /^0/ {
19337 s/^0 *\(.*\)$/\1/
19341 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19342 # Check for a 64-bit object if we didn't find anything.
19343 if test -z "$aix_libpath"; then
19344 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19347 rm -f core conftest.err conftest.$ac_objext \
19348 conftest$ac_exeext conftest.$ac_ext
19349 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19351 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19352 # Warning - without using the other run time loading flags,
19353 # -berok will link without error, but may produce a broken library.
19354 no_undefined_flag_CXX=' ${wl}-bernotok'
19355 allow_undefined_flag_CXX=' ${wl}-berok'
19356 if test "$with_gnu_ld" = yes; then
19357 # We only use this code for GNU lds that support --whole-archive.
19358 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19359 else
19360 # Exported symbols can be pulled into shared objects from archives
19361 whole_archive_flag_spec_CXX='$convenience'
19363 archive_cmds_need_lc_CXX=yes
19364 # This is similar to how AIX traditionally builds its shared
19365 # libraries.
19366 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'
19371 beos*)
19372 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19373 allow_undefined_flag_CXX=unsupported
19374 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19375 # support --undefined. This deserves some investigation. FIXME
19376 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19377 else
19378 ld_shlibs_CXX=no
19382 chorus*)
19383 case $cc_basename in
19385 # FIXME: insert proper C++ library support
19386 ld_shlibs_CXX=no
19388 esac
19391 cygwin* | mingw* | pw32* | cegcc*)
19392 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19393 # as there is no search path for DLLs.
19394 hardcode_libdir_flag_spec_CXX='-L$libdir'
19395 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19396 allow_undefined_flag_CXX=unsupported
19397 always_export_symbols_CXX=no
19398 enable_shared_with_static_runtimes_CXX=yes
19400 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19401 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'
19402 # If the export-symbols file already is a .def file (1st line
19403 # is EXPORTS), use it as is; otherwise, prepend...
19404 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19405 cp $export_symbols $output_objdir/$soname.def;
19406 else
19407 echo EXPORTS > $output_objdir/$soname.def;
19408 cat $export_symbols >> $output_objdir/$soname.def;
19410 $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'
19411 else
19412 ld_shlibs_CXX=no
19415 darwin* | rhapsody*)
19418 archive_cmds_need_lc_CXX=no
19419 hardcode_direct_CXX=no
19420 hardcode_automatic_CXX=yes
19421 hardcode_shlibpath_var_CXX=unsupported
19422 if test "$lt_cv_ld_force_load" = "yes"; then
19423 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\"`'
19424 else
19425 whole_archive_flag_spec_CXX=''
19427 link_all_deplibs_CXX=yes
19428 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19429 case $cc_basename in
19430 ifort*) _lt_dar_can_shared=yes ;;
19431 *) _lt_dar_can_shared=$GCC ;;
19432 esac
19433 if test "$_lt_dar_can_shared" = "yes"; then
19434 output_verbose_link_cmd=func_echo_all
19435 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}"
19436 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19437 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}"
19438 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}"
19439 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19440 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}"
19441 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}"
19444 else
19445 ld_shlibs_CXX=no
19450 dgux*)
19451 case $cc_basename in
19452 ec++*)
19453 # FIXME: insert proper C++ library support
19454 ld_shlibs_CXX=no
19456 ghcx*)
19457 # Green Hills C++ Compiler
19458 # FIXME: insert proper C++ library support
19459 ld_shlibs_CXX=no
19462 # FIXME: insert proper C++ library support
19463 ld_shlibs_CXX=no
19465 esac
19468 freebsd2.*)
19469 # C++ shared libraries reported to be fairly broken before
19470 # switch to ELF
19471 ld_shlibs_CXX=no
19474 freebsd-elf*)
19475 archive_cmds_need_lc_CXX=no
19478 freebsd* | dragonfly*)
19479 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19480 # conventions
19481 ld_shlibs_CXX=yes
19484 gnu*)
19487 haiku*)
19488 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19489 link_all_deplibs_CXX=yes
19492 hpux9*)
19493 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19494 hardcode_libdir_separator_CXX=:
19495 export_dynamic_flag_spec_CXX='${wl}-E'
19496 hardcode_direct_CXX=yes
19497 hardcode_minus_L_CXX=yes # Not in the search PATH,
19498 # but as the default
19499 # location of the library.
19501 case $cc_basename in
19502 CC*)
19503 # FIXME: insert proper C++ library support
19504 ld_shlibs_CXX=no
19506 aCC*)
19507 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'
19508 # Commands to make compiler produce verbose output that lists
19509 # what "hidden" libraries, object files and flags are used when
19510 # linking a shared library.
19512 # There doesn't appear to be a way to prevent this compiler from
19513 # explicitly linking system object files so we need to strip them
19514 # from the output so that they don't get included in the library
19515 # dependencies.
19516 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"'
19519 if test "$GXX" = yes; then
19520 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'
19521 else
19522 # FIXME: insert proper C++ library support
19523 ld_shlibs_CXX=no
19526 esac
19529 hpux10*|hpux11*)
19530 if test $with_gnu_ld = no; then
19531 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19532 hardcode_libdir_separator_CXX=:
19534 case $host_cpu in
19535 hppa*64*|ia64*)
19538 export_dynamic_flag_spec_CXX='${wl}-E'
19540 esac
19542 case $host_cpu in
19543 hppa*64*|ia64*)
19544 hardcode_direct_CXX=no
19545 hardcode_shlibpath_var_CXX=no
19548 hardcode_direct_CXX=yes
19549 hardcode_direct_absolute_CXX=yes
19550 hardcode_minus_L_CXX=yes # Not in the search PATH,
19551 # but as the default
19552 # location of the library.
19554 esac
19556 case $cc_basename in
19557 CC*)
19558 # FIXME: insert proper C++ library support
19559 ld_shlibs_CXX=no
19561 aCC*)
19562 case $host_cpu in
19563 hppa*64*)
19564 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19566 ia64*)
19567 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19570 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19572 esac
19573 # Commands to make compiler produce verbose output that lists
19574 # what "hidden" libraries, object files and flags are used when
19575 # linking a shared library.
19577 # There doesn't appear to be a way to prevent this compiler from
19578 # explicitly linking system object files so we need to strip them
19579 # from the output so that they don't get included in the library
19580 # dependencies.
19581 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"'
19584 if test "$GXX" = yes; then
19585 if test $with_gnu_ld = no; then
19586 case $host_cpu in
19587 hppa*64*)
19588 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19590 ia64*)
19591 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19594 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'
19596 esac
19598 else
19599 # FIXME: insert proper C++ library support
19600 ld_shlibs_CXX=no
19603 esac
19606 interix[3-9]*)
19607 hardcode_direct_CXX=no
19608 hardcode_shlibpath_var_CXX=no
19609 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19610 export_dynamic_flag_spec_CXX='${wl}-E'
19611 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19612 # Instead, shared libraries are loaded at an image base (0x10000000 by
19613 # default) and relocated if they conflict, which is a slow very memory
19614 # consuming and fragmenting process. To avoid this, we pick a random,
19615 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19616 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19617 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'
19618 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'
19620 irix5* | irix6*)
19621 case $cc_basename in
19622 CC*)
19623 # SGI C++
19624 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'
19626 # Archives containing C++ object files must be created using
19627 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19628 # necessary to make sure instantiated templates are included
19629 # in the archive.
19630 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19633 if test "$GXX" = yes; then
19634 if test "$with_gnu_ld" = no; then
19635 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'
19636 else
19637 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'
19640 link_all_deplibs_CXX=yes
19642 esac
19643 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19644 hardcode_libdir_separator_CXX=:
19645 inherit_rpath_CXX=yes
19648 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19649 case $cc_basename in
19650 KCC*)
19651 # Kuck and Associates, Inc. (KAI) C++ Compiler
19653 # KCC will only create a shared library if the output file
19654 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19655 # to its proper name (with version) after linking.
19656 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'
19657 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'
19658 # Commands to make compiler produce verbose output that lists
19659 # what "hidden" libraries, object files and flags are used when
19660 # linking a shared library.
19662 # There doesn't appear to be a way to prevent this compiler from
19663 # explicitly linking system object files so we need to strip them
19664 # from the output so that they don't get included in the library
19665 # dependencies.
19666 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"'
19668 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19669 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19671 # Archives containing C++ object files must be created using
19672 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19673 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19675 icpc* | ecpc* )
19676 # Intel C++
19677 with_gnu_ld=yes
19678 # version 8.0 and above of icpc choke on multiply defined symbols
19679 # if we add $predep_objects and $postdep_objects, however 7.1 and
19680 # earlier do not add the objects themselves.
19681 case `$CC -V 2>&1` in
19682 *"Version 7."*)
19683 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19684 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'
19686 *) # Version 8.0 or newer
19687 tmp_idyn=
19688 case $host_cpu in
19689 ia64*) tmp_idyn=' -i_dynamic';;
19690 esac
19691 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19692 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'
19694 esac
19695 archive_cmds_need_lc_CXX=no
19696 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19697 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19698 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19700 pgCC* | pgcpp*)
19701 # Portland Group C++ compiler
19702 case `$CC -V` in
19703 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19704 prelink_cmds_CXX='tpldir=Template.dir~
19705 rm -rf $tpldir~
19706 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19707 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19708 old_archive_cmds_CXX='tpldir=Template.dir~
19709 rm -rf $tpldir~
19710 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19711 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19712 $RANLIB $oldlib'
19713 archive_cmds_CXX='tpldir=Template.dir~
19714 rm -rf $tpldir~
19715 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19716 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19717 archive_expsym_cmds_CXX='tpldir=Template.dir~
19718 rm -rf $tpldir~
19719 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19720 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19722 *) # Version 6 and above use weak symbols
19723 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19724 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'
19726 esac
19728 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19729 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19730 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'
19732 cxx*)
19733 # Compaq C++
19734 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19735 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'
19737 runpath_var=LD_RUN_PATH
19738 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19739 hardcode_libdir_separator_CXX=:
19741 # Commands to make compiler produce verbose output that lists
19742 # what "hidden" libraries, object files and flags are used when
19743 # linking a shared library.
19745 # There doesn't appear to be a way to prevent this compiler from
19746 # explicitly linking system object files so we need to strip them
19747 # from the output so that they don't get included in the library
19748 # dependencies.
19749 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'
19751 xl* | mpixl* | bgxl*)
19752 # IBM XL 8.0 on PPC, with GNU ld
19753 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19754 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19755 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19756 if test "x$supports_anon_versioning" = xyes; then
19757 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19758 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19759 echo "local: *; };" >> $output_objdir/$libname.ver~
19760 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19764 case `$CC -V 2>&1 | sed 5q` in
19765 *Sun\ C*)
19766 # Sun C++ 5.9
19767 no_undefined_flag_CXX=' -zdefs'
19768 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19769 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'
19770 hardcode_libdir_flag_spec_CXX='-R$libdir'
19771 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'
19772 compiler_needs_object_CXX=yes
19774 # Not sure whether something based on
19775 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19776 # would be better.
19777 output_verbose_link_cmd='func_echo_all'
19779 # Archives containing C++ object files must be created using
19780 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19781 # necessary to make sure instantiated templates are included
19782 # in the archive.
19783 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19785 esac
19787 esac
19790 lynxos*)
19791 # FIXME: insert proper C++ library support
19792 ld_shlibs_CXX=no
19795 m88k*)
19796 # FIXME: insert proper C++ library support
19797 ld_shlibs_CXX=no
19800 mvs*)
19801 case $cc_basename in
19802 cxx*)
19803 # FIXME: insert proper C++ library support
19804 ld_shlibs_CXX=no
19807 # FIXME: insert proper C++ library support
19808 ld_shlibs_CXX=no
19810 esac
19813 netbsd*)
19814 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19815 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19816 wlarc=
19817 hardcode_libdir_flag_spec_CXX='-R$libdir'
19818 hardcode_direct_CXX=yes
19819 hardcode_shlibpath_var_CXX=no
19821 # Workaround some broken pre-1.5 toolchains
19822 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19825 *nto* | *qnx*)
19826 ld_shlibs_CXX=yes
19829 openbsd2*)
19830 # C++ shared libraries are fairly broken
19831 ld_shlibs_CXX=no
19834 openbsd*)
19835 if test -f /usr/libexec/ld.so; then
19836 hardcode_direct_CXX=yes
19837 hardcode_shlibpath_var_CXX=no
19838 hardcode_direct_absolute_CXX=yes
19839 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19840 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19841 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19842 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19843 export_dynamic_flag_spec_CXX='${wl}-E'
19844 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19846 output_verbose_link_cmd=func_echo_all
19847 else
19848 ld_shlibs_CXX=no
19852 osf3* | osf4* | osf5*)
19853 case $cc_basename in
19854 KCC*)
19855 # Kuck and Associates, Inc. (KAI) C++ Compiler
19857 # KCC will only create a shared library if the output file
19858 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19859 # to its proper name (with version) after linking.
19860 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'
19862 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19863 hardcode_libdir_separator_CXX=:
19865 # Archives containing C++ object files must be created using
19866 # the KAI C++ compiler.
19867 case $host in
19868 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19869 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19870 esac
19872 RCC*)
19873 # Rational C++ 2.4.1
19874 # FIXME: insert proper C++ library support
19875 ld_shlibs_CXX=no
19877 cxx*)
19878 case $host in
19879 osf3*)
19880 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19881 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'
19882 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19885 allow_undefined_flag_CXX=' -expect_unresolved \*'
19886 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'
19887 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19888 echo "-hidden">> $lib.exp~
19889 $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~
19890 $RM $lib.exp'
19891 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19893 esac
19895 hardcode_libdir_separator_CXX=:
19897 # Commands to make compiler produce verbose output that lists
19898 # what "hidden" libraries, object files and flags are used when
19899 # linking a shared library.
19901 # There doesn't appear to be a way to prevent this compiler from
19902 # explicitly linking system object files so we need to strip them
19903 # from the output so that they don't get included in the library
19904 # dependencies.
19905 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"'
19908 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19909 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19910 case $host in
19911 osf3*)
19912 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'
19915 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'
19917 esac
19919 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19920 hardcode_libdir_separator_CXX=:
19922 # Commands to make compiler produce verbose output that lists
19923 # what "hidden" libraries, object files and flags are used when
19924 # linking a shared library.
19925 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19927 else
19928 # FIXME: insert proper C++ library support
19929 ld_shlibs_CXX=no
19932 esac
19935 psos*)
19936 # FIXME: insert proper C++ library support
19937 ld_shlibs_CXX=no
19940 sunos4*)
19941 case $cc_basename in
19942 CC*)
19943 # Sun C++ 4.x
19944 # FIXME: insert proper C++ library support
19945 ld_shlibs_CXX=no
19947 lcc*)
19948 # Lucid
19949 # FIXME: insert proper C++ library support
19950 ld_shlibs_CXX=no
19953 # FIXME: insert proper C++ library support
19954 ld_shlibs_CXX=no
19956 esac
19959 solaris*)
19960 case $cc_basename in
19961 CC*)
19962 # Sun C++ 4.2, 5.x and Centerline C++
19963 archive_cmds_need_lc_CXX=yes
19964 no_undefined_flag_CXX=' -zdefs'
19965 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19966 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19967 $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'
19969 hardcode_libdir_flag_spec_CXX='-R$libdir'
19970 hardcode_shlibpath_var_CXX=no
19971 case $host_os in
19972 solaris2.[0-5] | solaris2.[0-5].*) ;;
19974 # The compiler driver will combine and reorder linker options,
19975 # but understands `-z linker_flag'.
19976 # Supported since Solaris 2.6 (maybe 2.5.1?)
19977 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19979 esac
19980 link_all_deplibs_CXX=yes
19982 output_verbose_link_cmd='func_echo_all'
19984 # Archives containing C++ object files must be created using
19985 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19986 # necessary to make sure instantiated templates are included
19987 # in the archive.
19988 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19990 gcx*)
19991 # Green Hills C++ Compiler
19992 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19994 # The C++ compiler must be used to create the archive.
19995 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19998 # GNU C++ compiler with Solaris linker
19999 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20000 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20001 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20002 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20003 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20004 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20006 # Commands to make compiler produce verbose output that lists
20007 # what "hidden" libraries, object files and flags are used when
20008 # linking a shared library.
20009 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20010 else
20011 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20012 # platform.
20013 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20014 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20015 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20017 # Commands to make compiler produce verbose output that lists
20018 # what "hidden" libraries, object files and flags are used when
20019 # linking a shared library.
20020 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20023 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20024 case $host_os in
20025 solaris2.[0-5] | solaris2.[0-5].*) ;;
20027 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20029 esac
20032 esac
20035 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20036 no_undefined_flag_CXX='${wl}-z,text'
20037 archive_cmds_need_lc_CXX=no
20038 hardcode_shlibpath_var_CXX=no
20039 runpath_var='LD_RUN_PATH'
20041 case $cc_basename in
20042 CC*)
20043 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20044 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20047 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20048 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20050 esac
20053 sysv5* | sco3.2v5* | sco5v6*)
20054 # Note: We can NOT use -z defs as we might desire, because we do not
20055 # link with -lc, and that would cause any symbols used from libc to
20056 # always be unresolved, which means just about no library would
20057 # ever link correctly. If we're not using GNU ld we use -z text
20058 # though, which does catch some bad symbols but isn't as heavy-handed
20059 # as -z defs.
20060 no_undefined_flag_CXX='${wl}-z,text'
20061 allow_undefined_flag_CXX='${wl}-z,nodefs'
20062 archive_cmds_need_lc_CXX=no
20063 hardcode_shlibpath_var_CXX=no
20064 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20065 hardcode_libdir_separator_CXX=':'
20066 link_all_deplibs_CXX=yes
20067 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20068 runpath_var='LD_RUN_PATH'
20070 case $cc_basename in
20071 CC*)
20072 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20073 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20074 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20075 '"$old_archive_cmds_CXX"
20076 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20077 '"$reload_cmds_CXX"
20080 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20081 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20083 esac
20086 tandem*)
20087 case $cc_basename in
20088 NCC*)
20089 # NonStop-UX NCC 3.20
20090 # FIXME: insert proper C++ library support
20091 ld_shlibs_CXX=no
20094 # FIXME: insert proper C++ library support
20095 ld_shlibs_CXX=no
20097 esac
20100 vxworks*)
20101 # FIXME: insert proper C++ library support
20102 ld_shlibs_CXX=no
20106 # FIXME: insert proper C++ library support
20107 ld_shlibs_CXX=no
20109 esac
20111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20112 $as_echo "$ld_shlibs_CXX" >&6; }
20113 test "$ld_shlibs_CXX" = no && can_build_shared=no
20115 GCC_CXX="$GXX"
20116 LD_CXX="$LD"
20118 ## CAVEAT EMPTOR:
20119 ## There is no encapsulation within the following macros, do not change
20120 ## the running order or otherwise move them around unless you know exactly
20121 ## what you are doing...
20122 # Dependencies to place before and after the object being linked:
20123 predep_objects_CXX=
20124 postdep_objects_CXX=
20125 predeps_CXX=
20126 postdeps_CXX=
20127 compiler_lib_search_path_CXX=
20129 cat > conftest.$ac_ext <<_LT_EOF
20130 class Foo
20132 public:
20133 Foo (void) { a = 0; }
20134 private:
20135 int a;
20137 _LT_EOF
20139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20140 (eval $ac_compile) 2>&5
20141 ac_status=$?
20142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20143 test $ac_status = 0; }; then
20144 # Parse the compiler output and extract the necessary
20145 # objects, libraries and library flags.
20147 # Sentinel used to keep track of whether or not we are before
20148 # the conftest object file.
20149 pre_test_object_deps_done=no
20151 for p in `eval "$output_verbose_link_cmd"`; do
20152 case $p in
20154 -L* | -R* | -l*)
20155 # Some compilers place space between "-{L,R}" and the path.
20156 # Remove the space.
20157 if test $p = "-L" ||
20158 test $p = "-R"; then
20159 prev=$p
20160 continue
20161 else
20162 prev=
20165 if test "$pre_test_object_deps_done" = no; then
20166 case $p in
20167 -L* | -R*)
20168 # Internal compiler library paths should come after those
20169 # provided the user. The postdeps already come after the
20170 # user supplied libs so there is no need to process them.
20171 if test -z "$compiler_lib_search_path_CXX"; then
20172 compiler_lib_search_path_CXX="${prev}${p}"
20173 else
20174 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20177 # The "-l" case would never come before the object being
20178 # linked, so don't bother handling this case.
20179 esac
20180 else
20181 if test -z "$postdeps_CXX"; then
20182 postdeps_CXX="${prev}${p}"
20183 else
20184 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20189 *.$objext)
20190 # This assumes that the test object file only shows up
20191 # once in the compiler output.
20192 if test "$p" = "conftest.$objext"; then
20193 pre_test_object_deps_done=yes
20194 continue
20197 if test "$pre_test_object_deps_done" = no; then
20198 if test -z "$predep_objects_CXX"; then
20199 predep_objects_CXX="$p"
20200 else
20201 predep_objects_CXX="$predep_objects_CXX $p"
20203 else
20204 if test -z "$postdep_objects_CXX"; then
20205 postdep_objects_CXX="$p"
20206 else
20207 postdep_objects_CXX="$postdep_objects_CXX $p"
20212 *) ;; # Ignore the rest.
20214 esac
20215 done
20217 # Clean up.
20218 rm -f a.out a.exe
20219 else
20220 echo "libtool.m4: error: problem compiling CXX test program"
20223 $RM -f confest.$objext
20225 # PORTME: override above test on systems where it is broken
20226 case $host_os in
20227 interix[3-9]*)
20228 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20229 # hack all around it, let's just trust "g++" to DTRT.
20230 predep_objects_CXX=
20231 postdep_objects_CXX=
20232 postdeps_CXX=
20235 linux*)
20236 case `$CC -V 2>&1 | sed 5q` in
20237 *Sun\ C*)
20238 # Sun C++ 5.9
20240 # The more standards-conforming stlport4 library is
20241 # incompatible with the Cstd library. Avoid specifying
20242 # it if it's in CXXFLAGS. Ignore libCrun as
20243 # -library=stlport4 depends on it.
20244 case " $CXX $CXXFLAGS " in
20245 *" -library=stlport4 "*)
20246 solaris_use_stlport4=yes
20248 esac
20250 if test "$solaris_use_stlport4" != yes; then
20251 postdeps_CXX='-library=Cstd -library=Crun'
20254 esac
20257 solaris*)
20258 case $cc_basename in
20259 CC*)
20260 # The more standards-conforming stlport4 library is
20261 # incompatible with the Cstd library. Avoid specifying
20262 # it if it's in CXXFLAGS. Ignore libCrun as
20263 # -library=stlport4 depends on it.
20264 case " $CXX $CXXFLAGS " in
20265 *" -library=stlport4 "*)
20266 solaris_use_stlport4=yes
20268 esac
20270 # Adding this requires a known-good setup of shared libraries for
20271 # Sun compiler versions before 5.6, else PIC objects from an old
20272 # archive will be linked into the output, leading to subtle bugs.
20273 if test "$solaris_use_stlport4" != yes; then
20274 postdeps_CXX='-library=Cstd -library=Crun'
20277 esac
20279 esac
20282 case " $postdeps_CXX " in
20283 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20284 esac
20285 compiler_lib_search_dirs_CXX=
20286 if test -n "${compiler_lib_search_path_CXX}"; then
20287 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20320 lt_prog_compiler_wl_CXX=
20321 lt_prog_compiler_pic_CXX=
20322 lt_prog_compiler_static_CXX=
20324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20325 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20327 # C++ specific cases for pic, static, wl, etc.
20328 if test "$GXX" = yes; then
20329 lt_prog_compiler_wl_CXX='-Wl,'
20330 lt_prog_compiler_static_CXX='-static'
20332 case $host_os in
20333 aix*)
20334 # All AIX code is PIC.
20335 if test "$host_cpu" = ia64; then
20336 # AIX 5 now supports IA64 processor
20337 lt_prog_compiler_static_CXX='-Bstatic'
20339 lt_prog_compiler_pic_CXX='-fPIC'
20342 amigaos*)
20343 case $host_cpu in
20344 powerpc)
20345 # see comment about AmigaOS4 .so support
20346 lt_prog_compiler_pic_CXX='-fPIC'
20348 m68k)
20349 # FIXME: we need at least 68020 code to build shared libraries, but
20350 # adding the `-m68020' flag to GCC prevents building anything better,
20351 # like `-m68040'.
20352 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20354 esac
20357 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20358 # PIC is the default for these OSes.
20360 mingw* | cygwin* | os2* | pw32* | cegcc*)
20361 # This hack is so that the source file can tell whether it is being
20362 # built for inclusion in a dll (and should export symbols for example).
20363 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20364 # (--disable-auto-import) libraries
20365 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20367 darwin* | rhapsody*)
20368 # PIC is the default on this platform
20369 # Common symbols not allowed in MH_DYLIB files
20370 lt_prog_compiler_pic_CXX='-fno-common'
20372 *djgpp*)
20373 # DJGPP does not support shared libraries at all
20374 lt_prog_compiler_pic_CXX=
20376 haiku*)
20377 # PIC is the default for Haiku.
20378 # The "-static" flag exists, but is broken.
20379 lt_prog_compiler_static_CXX=
20381 interix[3-9]*)
20382 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20383 # Instead, we relocate shared libraries at runtime.
20385 sysv4*MP*)
20386 if test -d /usr/nec; then
20387 lt_prog_compiler_pic_CXX=-Kconform_pic
20390 hpux*)
20391 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20392 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20393 # sets the default TLS model and affects inlining.
20394 case $host_cpu in
20395 hppa*64*)
20398 lt_prog_compiler_pic_CXX='-fPIC'
20400 esac
20402 *qnx* | *nto*)
20403 # QNX uses GNU C++, but need to define -shared option too, otherwise
20404 # it will coredump.
20405 lt_prog_compiler_pic_CXX='-fPIC -shared'
20408 lt_prog_compiler_pic_CXX='-fPIC'
20410 esac
20411 else
20412 case $host_os in
20413 aix[4-9]*)
20414 # All AIX code is PIC.
20415 if test "$host_cpu" = ia64; then
20416 # AIX 5 now supports IA64 processor
20417 lt_prog_compiler_static_CXX='-Bstatic'
20418 else
20419 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20422 chorus*)
20423 case $cc_basename in
20424 cxch68*)
20425 # Green Hills C++ Compiler
20426 # _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"
20428 esac
20430 dgux*)
20431 case $cc_basename in
20432 ec++*)
20433 lt_prog_compiler_pic_CXX='-KPIC'
20435 ghcx*)
20436 # Green Hills C++ Compiler
20437 lt_prog_compiler_pic_CXX='-pic'
20441 esac
20443 freebsd* | dragonfly*)
20444 # FreeBSD uses GNU C++
20446 hpux9* | hpux10* | hpux11*)
20447 case $cc_basename in
20448 CC*)
20449 lt_prog_compiler_wl_CXX='-Wl,'
20450 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20451 if test "$host_cpu" != ia64; then
20452 lt_prog_compiler_pic_CXX='+Z'
20455 aCC*)
20456 lt_prog_compiler_wl_CXX='-Wl,'
20457 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20458 case $host_cpu in
20459 hppa*64*|ia64*)
20460 # +Z the default
20463 lt_prog_compiler_pic_CXX='+Z'
20465 esac
20469 esac
20471 interix*)
20472 # This is c89, which is MS Visual C++ (no shared libs)
20473 # Anyone wants to do a port?
20475 irix5* | irix6* | nonstopux*)
20476 case $cc_basename in
20477 CC*)
20478 lt_prog_compiler_wl_CXX='-Wl,'
20479 lt_prog_compiler_static_CXX='-non_shared'
20480 # CC pic flag -KPIC is the default.
20484 esac
20486 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20487 case $cc_basename in
20488 KCC*)
20489 # KAI C++ Compiler
20490 lt_prog_compiler_wl_CXX='--backend -Wl,'
20491 lt_prog_compiler_pic_CXX='-fPIC'
20493 ecpc* )
20494 # old Intel C++ for x86_64 which still supported -KPIC.
20495 lt_prog_compiler_wl_CXX='-Wl,'
20496 lt_prog_compiler_pic_CXX='-KPIC'
20497 lt_prog_compiler_static_CXX='-static'
20499 icpc* )
20500 # Intel C++, used to be incompatible with GCC.
20501 # ICC 10 doesn't accept -KPIC any more.
20502 lt_prog_compiler_wl_CXX='-Wl,'
20503 lt_prog_compiler_pic_CXX='-fPIC'
20504 lt_prog_compiler_static_CXX='-static'
20506 pgCC* | pgcpp*)
20507 # Portland Group C++ compiler
20508 lt_prog_compiler_wl_CXX='-Wl,'
20509 lt_prog_compiler_pic_CXX='-fpic'
20510 lt_prog_compiler_static_CXX='-Bstatic'
20512 cxx*)
20513 # Compaq C++
20514 # Make sure the PIC flag is empty. It appears that all Alpha
20515 # Linux and Compaq Tru64 Unix objects are PIC.
20516 lt_prog_compiler_pic_CXX=
20517 lt_prog_compiler_static_CXX='-non_shared'
20519 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20520 # IBM XL 8.0, 9.0 on PPC and BlueGene
20521 lt_prog_compiler_wl_CXX='-Wl,'
20522 lt_prog_compiler_pic_CXX='-qpic'
20523 lt_prog_compiler_static_CXX='-qstaticlink'
20526 case `$CC -V 2>&1 | sed 5q` in
20527 *Sun\ C*)
20528 # Sun C++ 5.9
20529 lt_prog_compiler_pic_CXX='-KPIC'
20530 lt_prog_compiler_static_CXX='-Bstatic'
20531 lt_prog_compiler_wl_CXX='-Qoption ld '
20533 esac
20535 esac
20537 lynxos*)
20539 m88k*)
20541 mvs*)
20542 case $cc_basename in
20543 cxx*)
20544 lt_prog_compiler_pic_CXX='-W c,exportall'
20548 esac
20550 netbsd*)
20552 *qnx* | *nto*)
20553 # QNX uses GNU C++, but need to define -shared option too, otherwise
20554 # it will coredump.
20555 lt_prog_compiler_pic_CXX='-fPIC -shared'
20557 osf3* | osf4* | osf5*)
20558 case $cc_basename in
20559 KCC*)
20560 lt_prog_compiler_wl_CXX='--backend -Wl,'
20562 RCC*)
20563 # Rational C++ 2.4.1
20564 lt_prog_compiler_pic_CXX='-pic'
20566 cxx*)
20567 # Digital/Compaq C++
20568 lt_prog_compiler_wl_CXX='-Wl,'
20569 # Make sure the PIC flag is empty. It appears that all Alpha
20570 # Linux and Compaq Tru64 Unix objects are PIC.
20571 lt_prog_compiler_pic_CXX=
20572 lt_prog_compiler_static_CXX='-non_shared'
20576 esac
20578 psos*)
20580 solaris*)
20581 case $cc_basename in
20582 CC*)
20583 # Sun C++ 4.2, 5.x and Centerline C++
20584 lt_prog_compiler_pic_CXX='-KPIC'
20585 lt_prog_compiler_static_CXX='-Bstatic'
20586 lt_prog_compiler_wl_CXX='-Qoption ld '
20588 gcx*)
20589 # Green Hills C++ Compiler
20590 lt_prog_compiler_pic_CXX='-PIC'
20594 esac
20596 sunos4*)
20597 case $cc_basename in
20598 CC*)
20599 # Sun C++ 4.x
20600 lt_prog_compiler_pic_CXX='-pic'
20601 lt_prog_compiler_static_CXX='-Bstatic'
20603 lcc*)
20604 # Lucid
20605 lt_prog_compiler_pic_CXX='-pic'
20609 esac
20611 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20612 case $cc_basename in
20613 CC*)
20614 lt_prog_compiler_wl_CXX='-Wl,'
20615 lt_prog_compiler_pic_CXX='-KPIC'
20616 lt_prog_compiler_static_CXX='-Bstatic'
20618 esac
20620 tandem*)
20621 case $cc_basename in
20622 NCC*)
20623 # NonStop-UX NCC 3.20
20624 lt_prog_compiler_pic_CXX='-KPIC'
20628 esac
20630 vxworks*)
20633 lt_prog_compiler_can_build_shared_CXX=no
20635 esac
20638 case $host_os in
20639 # For platforms which do not support PIC, -DPIC is meaningless:
20640 *djgpp*)
20641 lt_prog_compiler_pic_CXX=
20644 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20646 esac
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20648 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20653 # Check to make sure the PIC flag actually works.
20655 if test -n "$lt_prog_compiler_pic_CXX"; then
20656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20657 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20658 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20659 $as_echo_n "(cached) " >&6
20660 else
20661 lt_cv_prog_compiler_pic_works_CXX=no
20662 ac_outfile=conftest.$ac_objext
20663 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20664 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20665 # Insert the option either (1) after the last *FLAGS variable, or
20666 # (2) before a word containing "conftest.", or (3) at the end.
20667 # Note that $ac_compile itself does not contain backslashes and begins
20668 # with a dollar sign (not a hyphen), so the echo should work correctly.
20669 # The option is referenced via a variable to avoid confusing sed.
20670 lt_compile=`echo "$ac_compile" | $SED \
20671 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20672 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20673 -e 's:$: $lt_compiler_flag:'`
20674 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20675 (eval "$lt_compile" 2>conftest.err)
20676 ac_status=$?
20677 cat conftest.err >&5
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 if (exit $ac_status) && test -s "$ac_outfile"; then
20680 # The compiler can only warn and ignore the option if not recognized
20681 # So say no if there are warnings other than the usual output.
20682 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20683 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20684 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20685 lt_cv_prog_compiler_pic_works_CXX=yes
20688 $RM conftest*
20691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20692 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20694 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20695 case $lt_prog_compiler_pic_CXX in
20696 "" | " "*) ;;
20697 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20698 esac
20699 else
20700 lt_prog_compiler_pic_CXX=
20701 lt_prog_compiler_can_build_shared_CXX=no
20709 # Check to make sure the static flag actually works.
20711 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20713 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20714 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20715 $as_echo_n "(cached) " >&6
20716 else
20717 lt_cv_prog_compiler_static_works_CXX=no
20718 save_LDFLAGS="$LDFLAGS"
20719 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20720 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20721 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20722 # The linker can only warn and ignore the option if not recognized
20723 # So say no if there are warnings
20724 if test -s conftest.err; then
20725 # Append any errors to the config.log.
20726 cat conftest.err 1>&5
20727 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20728 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20729 if diff conftest.exp conftest.er2 >/dev/null; then
20730 lt_cv_prog_compiler_static_works_CXX=yes
20732 else
20733 lt_cv_prog_compiler_static_works_CXX=yes
20736 $RM -r conftest*
20737 LDFLAGS="$save_LDFLAGS"
20740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20741 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20743 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20745 else
20746 lt_prog_compiler_static_CXX=
20752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20753 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20754 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20755 $as_echo_n "(cached) " >&6
20756 else
20757 lt_cv_prog_compiler_c_o_CXX=no
20758 $RM -r conftest 2>/dev/null
20759 mkdir conftest
20760 cd conftest
20761 mkdir out
20762 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20764 lt_compiler_flag="-o out/conftest2.$ac_objext"
20765 # Insert the option either (1) after the last *FLAGS variable, or
20766 # (2) before a word containing "conftest.", or (3) at the end.
20767 # Note that $ac_compile itself does not contain backslashes and begins
20768 # with a dollar sign (not a hyphen), so the echo should work correctly.
20769 lt_compile=`echo "$ac_compile" | $SED \
20770 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20771 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20772 -e 's:$: $lt_compiler_flag:'`
20773 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20774 (eval "$lt_compile" 2>out/conftest.err)
20775 ac_status=$?
20776 cat out/conftest.err >&5
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20779 then
20780 # The compiler can only warn and ignore the option if not recognized
20781 # So say no if there are warnings
20782 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20783 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20784 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20785 lt_cv_prog_compiler_c_o_CXX=yes
20788 chmod u+w . 2>&5
20789 $RM conftest*
20790 # SGI C++ compiler will create directory out/ii_files/ for
20791 # template instantiation
20792 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20793 $RM out/* && rmdir out
20794 cd ..
20795 $RM -r conftest
20796 $RM conftest*
20799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20800 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20805 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20806 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20807 $as_echo_n "(cached) " >&6
20808 else
20809 lt_cv_prog_compiler_c_o_CXX=no
20810 $RM -r conftest 2>/dev/null
20811 mkdir conftest
20812 cd conftest
20813 mkdir out
20814 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20816 lt_compiler_flag="-o out/conftest2.$ac_objext"
20817 # Insert the option either (1) after the last *FLAGS variable, or
20818 # (2) before a word containing "conftest.", or (3) at the end.
20819 # Note that $ac_compile itself does not contain backslashes and begins
20820 # with a dollar sign (not a hyphen), so the echo should work correctly.
20821 lt_compile=`echo "$ac_compile" | $SED \
20822 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20823 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20824 -e 's:$: $lt_compiler_flag:'`
20825 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20826 (eval "$lt_compile" 2>out/conftest.err)
20827 ac_status=$?
20828 cat out/conftest.err >&5
20829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20831 then
20832 # The compiler can only warn and ignore the option if not recognized
20833 # So say no if there are warnings
20834 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20835 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20836 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20837 lt_cv_prog_compiler_c_o_CXX=yes
20840 chmod u+w . 2>&5
20841 $RM conftest*
20842 # SGI C++ compiler will create directory out/ii_files/ for
20843 # template instantiation
20844 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20845 $RM out/* && rmdir out
20846 cd ..
20847 $RM -r conftest
20848 $RM conftest*
20851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20852 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20857 hard_links="nottested"
20858 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20859 # do not overwrite the value of need_locks provided by the user
20860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20861 $as_echo_n "checking if we can lock with hard links... " >&6; }
20862 hard_links=yes
20863 $RM conftest*
20864 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20865 touch conftest.a
20866 ln conftest.a conftest.b 2>&5 || hard_links=no
20867 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20869 $as_echo "$hard_links" >&6; }
20870 if test "$hard_links" = no; then
20871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20872 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20873 need_locks=warn
20875 else
20876 need_locks=no
20881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20882 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20884 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20885 case $host_os in
20886 aix[4-9]*)
20887 # If we're using GNU nm, then we don't want the "-C" option.
20888 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20889 # Also, AIX nm treats weak defined symbols like other global defined
20890 # symbols, whereas GNU nm marks them as "W".
20891 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20892 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'
20893 else
20894 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'
20897 pw32*)
20898 export_symbols_cmds_CXX="$ltdll_cmds"
20900 cygwin* | mingw* | cegcc*)
20901 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'
20904 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20906 esac
20907 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20910 $as_echo "$ld_shlibs_CXX" >&6; }
20911 test "$ld_shlibs_CXX" = no && can_build_shared=no
20913 with_gnu_ld_CXX=$with_gnu_ld
20921 # Do we need to explicitly link libc?
20923 case "x$archive_cmds_need_lc_CXX" in
20924 x|xyes)
20925 # Assume -lc should be added
20926 archive_cmds_need_lc_CXX=yes
20928 if test "$enable_shared" = yes && test "$GCC" = yes; then
20929 case $archive_cmds_CXX in
20930 *'~'*)
20931 # FIXME: we may have to deal with multi-command sequences.
20933 '$CC '*)
20934 # Test whether the compiler implicitly links with -lc since on some
20935 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20936 # to ld, don't add -lc before -lgcc.
20937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20938 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20939 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20940 $as_echo_n "(cached) " >&6
20941 else
20942 $RM conftest*
20943 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20946 (eval $ac_compile) 2>&5
20947 ac_status=$?
20948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20949 test $ac_status = 0; } 2>conftest.err; then
20950 soname=conftest
20951 lib=conftest
20952 libobjs=conftest.$ac_objext
20953 deplibs=
20954 wl=$lt_prog_compiler_wl_CXX
20955 pic_flag=$lt_prog_compiler_pic_CXX
20956 compiler_flags=-v
20957 linker_flags=-v
20958 verstring=
20959 output_objdir=.
20960 libname=conftest
20961 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20962 allow_undefined_flag_CXX=
20963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20964 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20965 ac_status=$?
20966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20967 test $ac_status = 0; }
20968 then
20969 lt_cv_archive_cmds_need_lc_CXX=no
20970 else
20971 lt_cv_archive_cmds_need_lc_CXX=yes
20973 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20974 else
20975 cat conftest.err 1>&5
20977 $RM conftest*
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20981 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20982 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20984 esac
20987 esac
21052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21053 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21055 library_names_spec=
21056 libname_spec='lib$name'
21057 soname_spec=
21058 shrext_cmds=".so"
21059 postinstall_cmds=
21060 postuninstall_cmds=
21061 finish_cmds=
21062 finish_eval=
21063 shlibpath_var=
21064 shlibpath_overrides_runpath=unknown
21065 version_type=none
21066 dynamic_linker="$host_os ld.so"
21067 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21068 need_lib_prefix=unknown
21069 hardcode_into_libs=no
21071 # when you set need_version to no, make sure it does not cause -set_version
21072 # flags to be left without arguments
21073 need_version=unknown
21075 case $host_os in
21076 aix3*)
21077 version_type=linux
21078 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21079 shlibpath_var=LIBPATH
21081 # AIX 3 has no versioning support, so we append a major version to the name.
21082 soname_spec='${libname}${release}${shared_ext}$major'
21085 aix[4-9]*)
21086 version_type=linux
21087 need_lib_prefix=no
21088 need_version=no
21089 hardcode_into_libs=yes
21090 if test "$host_cpu" = ia64; then
21091 # AIX 5 supports IA64
21092 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21093 shlibpath_var=LD_LIBRARY_PATH
21094 else
21095 # With GCC up to 2.95.x, collect2 would create an import file
21096 # for dependence libraries. The import file would start with
21097 # the line `#! .'. This would cause the generated library to
21098 # depend on `.', always an invalid library. This was fixed in
21099 # development snapshots of GCC prior to 3.0.
21100 case $host_os in
21101 aix4 | aix4.[01] | aix4.[01].*)
21102 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21103 echo ' yes '
21104 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21106 else
21107 can_build_shared=no
21110 esac
21111 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21112 # soname into executable. Probably we can add versioning support to
21113 # collect2, so additional links can be useful in future.
21114 if test "$aix_use_runtimelinking" = yes; then
21115 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21116 # instead of lib<name>.a to let people know that these are not
21117 # typical AIX shared libraries.
21118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21119 else
21120 # We preserve .a as extension for shared libraries through AIX4.2
21121 # and later when we are not doing run time linking.
21122 library_names_spec='${libname}${release}.a $libname.a'
21123 soname_spec='${libname}${release}${shared_ext}$major'
21125 shlibpath_var=LIBPATH
21129 amigaos*)
21130 case $host_cpu in
21131 powerpc)
21132 # Since July 2007 AmigaOS4 officially supports .so libraries.
21133 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21136 m68k)
21137 library_names_spec='$libname.ixlibrary $libname.a'
21138 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21139 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'
21141 esac
21144 beos*)
21145 library_names_spec='${libname}${shared_ext}'
21146 dynamic_linker="$host_os ld.so"
21147 shlibpath_var=LIBRARY_PATH
21150 bsdi[45]*)
21151 version_type=linux
21152 need_version=no
21153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21154 soname_spec='${libname}${release}${shared_ext}$major'
21155 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21156 shlibpath_var=LD_LIBRARY_PATH
21157 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21158 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21159 # the default ld.so.conf also contains /usr/contrib/lib and
21160 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21161 # libtool to hard-code these into programs
21164 cygwin* | mingw* | pw32* | cegcc*)
21165 version_type=windows
21166 shrext_cmds=".dll"
21167 need_version=no
21168 need_lib_prefix=no
21170 case $GCC,$host_os in
21171 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21172 library_names_spec='$libname.dll.a'
21173 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21174 postinstall_cmds='base_file=`basename \${file}`~
21175 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21176 dldir=$destdir/`dirname \$dlpath`~
21177 test -d \$dldir || mkdir -p \$dldir~
21178 $install_prog $dir/$dlname \$dldir/$dlname~
21179 chmod a+x \$dldir/$dlname~
21180 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21181 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21183 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21184 dlpath=$dir/\$dldll~
21185 $RM \$dlpath'
21186 shlibpath_overrides_runpath=yes
21188 case $host_os in
21189 cygwin*)
21190 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21191 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21194 mingw* | cegcc*)
21195 # MinGW DLLs use traditional 'lib' prefix
21196 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21198 pw32*)
21199 # pw32 DLLs use 'pw' prefix rather than 'lib'
21200 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21202 esac
21206 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21208 esac
21209 dynamic_linker='Win32 ld.exe'
21210 # FIXME: first we should search . and the directory the executable is in
21211 shlibpath_var=PATH
21214 darwin* | rhapsody*)
21215 dynamic_linker="$host_os dyld"
21216 version_type=darwin
21217 need_lib_prefix=no
21218 need_version=no
21219 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21220 soname_spec='${libname}${release}${major}$shared_ext'
21221 shlibpath_overrides_runpath=yes
21222 shlibpath_var=DYLD_LIBRARY_PATH
21223 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21225 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21228 dgux*)
21229 version_type=linux
21230 need_lib_prefix=no
21231 need_version=no
21232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21233 soname_spec='${libname}${release}${shared_ext}$major'
21234 shlibpath_var=LD_LIBRARY_PATH
21237 freebsd* | dragonfly*)
21238 # DragonFly does not have aout. When/if they implement a new
21239 # versioning mechanism, adjust this.
21240 if test -x /usr/bin/objformat; then
21241 objformat=`/usr/bin/objformat`
21242 else
21243 case $host_os in
21244 freebsd[23].*) objformat=aout ;;
21245 *) objformat=elf ;;
21246 esac
21248 version_type=freebsd-$objformat
21249 case $version_type in
21250 freebsd-elf*)
21251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21252 need_version=no
21253 need_lib_prefix=no
21255 freebsd-*)
21256 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21257 need_version=yes
21259 esac
21260 shlibpath_var=LD_LIBRARY_PATH
21261 case $host_os in
21262 freebsd2.*)
21263 shlibpath_overrides_runpath=yes
21265 freebsd3.[01]* | freebsdelf3.[01]*)
21266 shlibpath_overrides_runpath=yes
21267 hardcode_into_libs=yes
21269 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21270 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21271 shlibpath_overrides_runpath=no
21272 hardcode_into_libs=yes
21274 *) # from 4.6 on, and DragonFly
21275 shlibpath_overrides_runpath=yes
21276 hardcode_into_libs=yes
21278 esac
21281 gnu*)
21282 version_type=linux
21283 need_lib_prefix=no
21284 need_version=no
21285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21286 soname_spec='${libname}${release}${shared_ext}$major'
21287 shlibpath_var=LD_LIBRARY_PATH
21288 hardcode_into_libs=yes
21291 haiku*)
21292 version_type=linux
21293 need_lib_prefix=no
21294 need_version=no
21295 dynamic_linker="$host_os runtime_loader"
21296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21297 soname_spec='${libname}${release}${shared_ext}$major'
21298 shlibpath_var=LIBRARY_PATH
21299 shlibpath_overrides_runpath=yes
21300 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21301 hardcode_into_libs=yes
21304 hpux9* | hpux10* | hpux11*)
21305 # Give a soname corresponding to the major version so that dld.sl refuses to
21306 # link against other versions.
21307 version_type=sunos
21308 need_lib_prefix=no
21309 need_version=no
21310 case $host_cpu in
21311 ia64*)
21312 shrext_cmds='.so'
21313 hardcode_into_libs=yes
21314 dynamic_linker="$host_os dld.so"
21315 shlibpath_var=LD_LIBRARY_PATH
21316 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21318 soname_spec='${libname}${release}${shared_ext}$major'
21319 if test "X$HPUX_IA64_MODE" = X32; then
21320 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21321 else
21322 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21324 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21326 hppa*64*)
21327 shrext_cmds='.sl'
21328 hardcode_into_libs=yes
21329 dynamic_linker="$host_os dld.sl"
21330 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21331 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21333 soname_spec='${libname}${release}${shared_ext}$major'
21334 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21335 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21338 shrext_cmds='.sl'
21339 dynamic_linker="$host_os dld.sl"
21340 shlibpath_var=SHLIB_PATH
21341 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21343 soname_spec='${libname}${release}${shared_ext}$major'
21345 esac
21346 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21347 postinstall_cmds='chmod 555 $lib'
21348 # or fails outright, so override atomically:
21349 install_override_mode=555
21352 interix[3-9]*)
21353 version_type=linux
21354 need_lib_prefix=no
21355 need_version=no
21356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21357 soname_spec='${libname}${release}${shared_ext}$major'
21358 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21359 shlibpath_var=LD_LIBRARY_PATH
21360 shlibpath_overrides_runpath=no
21361 hardcode_into_libs=yes
21364 irix5* | irix6* | nonstopux*)
21365 case $host_os in
21366 nonstopux*) version_type=nonstopux ;;
21368 if test "$lt_cv_prog_gnu_ld" = yes; then
21369 version_type=linux
21370 else
21371 version_type=irix
21372 fi ;;
21373 esac
21374 need_lib_prefix=no
21375 need_version=no
21376 soname_spec='${libname}${release}${shared_ext}$major'
21377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21378 case $host_os in
21379 irix5* | nonstopux*)
21380 libsuff= shlibsuff=
21383 case $LD in # libtool.m4 will add one of these switches to LD
21384 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21385 libsuff= shlibsuff= libmagic=32-bit;;
21386 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21387 libsuff=32 shlibsuff=N32 libmagic=N32;;
21388 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21389 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21390 *) libsuff= shlibsuff= libmagic=never-match;;
21391 esac
21393 esac
21394 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21395 shlibpath_overrides_runpath=no
21396 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21397 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21398 hardcode_into_libs=yes
21401 # No shared lib support for Linux oldld, aout, or coff.
21402 linux*oldld* | linux*aout* | linux*coff*)
21403 dynamic_linker=no
21406 # This must be Linux ELF.
21407 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21408 version_type=linux
21409 need_lib_prefix=no
21410 need_version=no
21411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21412 soname_spec='${libname}${release}${shared_ext}$major'
21413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21414 shlibpath_var=LD_LIBRARY_PATH
21415 shlibpath_overrides_runpath=no
21417 # Some binutils ld are patched to set DT_RUNPATH
21418 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21419 $as_echo_n "(cached) " >&6
21420 else
21421 lt_cv_shlibpath_overrides_runpath=no
21422 save_LDFLAGS=$LDFLAGS
21423 save_libdir=$libdir
21424 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21425 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21427 /* end confdefs.h. */
21430 main ()
21434 return 0;
21436 _ACEOF
21437 if ac_fn_cxx_try_link "$LINENO"; then :
21438 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21439 lt_cv_shlibpath_overrides_runpath=yes
21442 rm -f core conftest.err conftest.$ac_objext \
21443 conftest$ac_exeext conftest.$ac_ext
21444 LDFLAGS=$save_LDFLAGS
21445 libdir=$save_libdir
21449 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21451 # This implies no fast_install, which is unacceptable.
21452 # Some rework will be needed to allow for fast_install
21453 # before this can be enabled.
21454 hardcode_into_libs=yes
21456 # Append ld.so.conf contents to the search path
21457 if test -f /etc/ld.so.conf; then
21458 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' ' '`
21459 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21462 # We used to test for /lib/ld.so.1 and disable shared libraries on
21463 # powerpc, because MkLinux only supported shared libraries with the
21464 # GNU dynamic linker. Since this was broken with cross compilers,
21465 # most powerpc-linux boxes support dynamic linking these days and
21466 # people can always --disable-shared, the test was removed, and we
21467 # assume the GNU/Linux dynamic linker is in use.
21468 dynamic_linker='GNU/Linux ld.so'
21471 netbsd*)
21472 version_type=sunos
21473 need_lib_prefix=no
21474 need_version=no
21475 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21477 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21478 dynamic_linker='NetBSD (a.out) ld.so'
21479 else
21480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21481 soname_spec='${libname}${release}${shared_ext}$major'
21482 dynamic_linker='NetBSD ld.elf_so'
21484 shlibpath_var=LD_LIBRARY_PATH
21485 shlibpath_overrides_runpath=yes
21486 hardcode_into_libs=yes
21489 newsos6)
21490 version_type=linux
21491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21492 shlibpath_var=LD_LIBRARY_PATH
21493 shlibpath_overrides_runpath=yes
21496 *nto* | *qnx*)
21497 version_type=qnx
21498 need_lib_prefix=no
21499 need_version=no
21500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21501 soname_spec='${libname}${release}${shared_ext}$major'
21502 shlibpath_var=LD_LIBRARY_PATH
21503 shlibpath_overrides_runpath=no
21504 hardcode_into_libs=yes
21505 dynamic_linker='ldqnx.so'
21508 openbsd*)
21509 version_type=sunos
21510 sys_lib_dlsearch_path_spec="/usr/lib"
21511 need_lib_prefix=no
21512 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21513 case $host_os in
21514 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21515 *) need_version=no ;;
21516 esac
21517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21519 shlibpath_var=LD_LIBRARY_PATH
21520 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21521 case $host_os in
21522 openbsd2.[89] | openbsd2.[89].*)
21523 shlibpath_overrides_runpath=no
21526 shlibpath_overrides_runpath=yes
21528 esac
21529 else
21530 shlibpath_overrides_runpath=yes
21534 os2*)
21535 libname_spec='$name'
21536 shrext_cmds=".dll"
21537 need_lib_prefix=no
21538 library_names_spec='$libname${shared_ext} $libname.a'
21539 dynamic_linker='OS/2 ld.exe'
21540 shlibpath_var=LIBPATH
21543 osf3* | osf4* | osf5*)
21544 version_type=osf
21545 need_lib_prefix=no
21546 need_version=no
21547 soname_spec='${libname}${release}${shared_ext}$major'
21548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21549 shlibpath_var=LD_LIBRARY_PATH
21550 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21551 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21554 rdos*)
21555 dynamic_linker=no
21558 solaris*)
21559 version_type=linux
21560 need_lib_prefix=no
21561 need_version=no
21562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21563 soname_spec='${libname}${release}${shared_ext}$major'
21564 shlibpath_var=LD_LIBRARY_PATH
21565 shlibpath_overrides_runpath=yes
21566 hardcode_into_libs=yes
21567 # ldd complains unless libraries are executable
21568 postinstall_cmds='chmod +x $lib'
21571 sunos4*)
21572 version_type=sunos
21573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21574 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21575 shlibpath_var=LD_LIBRARY_PATH
21576 shlibpath_overrides_runpath=yes
21577 if test "$with_gnu_ld" = yes; then
21578 need_lib_prefix=no
21580 need_version=yes
21583 sysv4 | sysv4.3*)
21584 version_type=linux
21585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21586 soname_spec='${libname}${release}${shared_ext}$major'
21587 shlibpath_var=LD_LIBRARY_PATH
21588 case $host_vendor in
21589 sni)
21590 shlibpath_overrides_runpath=no
21591 need_lib_prefix=no
21592 runpath_var=LD_RUN_PATH
21594 siemens)
21595 need_lib_prefix=no
21597 motorola)
21598 need_lib_prefix=no
21599 need_version=no
21600 shlibpath_overrides_runpath=no
21601 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21603 esac
21606 sysv4*MP*)
21607 if test -d /usr/nec ;then
21608 version_type=linux
21609 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21610 soname_spec='$libname${shared_ext}.$major'
21611 shlibpath_var=LD_LIBRARY_PATH
21615 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21616 version_type=freebsd-elf
21617 need_lib_prefix=no
21618 need_version=no
21619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21620 soname_spec='${libname}${release}${shared_ext}$major'
21621 shlibpath_var=LD_LIBRARY_PATH
21622 shlibpath_overrides_runpath=yes
21623 hardcode_into_libs=yes
21624 if test "$with_gnu_ld" = yes; then
21625 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21626 else
21627 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21628 case $host_os in
21629 sco3.2v5*)
21630 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21632 esac
21634 sys_lib_dlsearch_path_spec='/usr/lib'
21637 tpf*)
21638 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21639 version_type=linux
21640 need_lib_prefix=no
21641 need_version=no
21642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21643 shlibpath_var=LD_LIBRARY_PATH
21644 shlibpath_overrides_runpath=no
21645 hardcode_into_libs=yes
21648 uts4*)
21649 version_type=linux
21650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21651 soname_spec='${libname}${release}${shared_ext}$major'
21652 shlibpath_var=LD_LIBRARY_PATH
21656 dynamic_linker=no
21658 esac
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21660 $as_echo "$dynamic_linker" >&6; }
21661 test "$dynamic_linker" = no && can_build_shared=no
21663 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21664 if test "$GCC" = yes; then
21665 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21668 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21669 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21671 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21672 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21713 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21714 hardcode_action_CXX=
21715 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21716 test -n "$runpath_var_CXX" ||
21717 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21719 # We can hardcode non-existent directories.
21720 if test "$hardcode_direct_CXX" != no &&
21721 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21722 # have to relink, otherwise we might link with an installed library
21723 # when we should be linking with a yet-to-be-installed one
21724 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21725 test "$hardcode_minus_L_CXX" != no; then
21726 # Linking always hardcodes the temporary library directory.
21727 hardcode_action_CXX=relink
21728 else
21729 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21730 hardcode_action_CXX=immediate
21732 else
21733 # We cannot hardcode anything, or else we can only hardcode existing
21734 # directories.
21735 hardcode_action_CXX=unsupported
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21738 $as_echo "$hardcode_action_CXX" >&6; }
21740 if test "$hardcode_action_CXX" = relink ||
21741 test "$inherit_rpath_CXX" = yes; then
21742 # Fast installation is not supported
21743 enable_fast_install=no
21744 elif test "$shlibpath_overrides_runpath" = yes ||
21745 test "$enable_shared" = no; then
21746 # Fast installation is not necessary
21747 enable_fast_install=needless
21756 fi # test -n "$compiler"
21758 CC=$lt_save_CC
21759 LDCXX=$LD
21760 LD=$lt_save_LD
21761 GCC=$lt_save_GCC
21762 with_gnu_ld=$lt_save_with_gnu_ld
21763 lt_cv_path_LDCXX=$lt_cv_path_LD
21764 lt_cv_path_LD=$lt_save_path_LD
21765 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21766 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21767 fi # test "$_lt_caught_CXX_error" != yes
21769 ac_ext=cpp
21770 ac_cpp='$CXXCPP $CPPFLAGS'
21771 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21772 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21773 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21790 # Only expand once:
21796 # Identify the assembler which will work hand-in-glove with the newly
21797 # built GCC, so that we can examine its features. This is the assembler
21798 # which will be driven by the driver program.
21800 # If build != host, and we aren't building gas in-tree, we identify a
21801 # build->target assembler and hope that it will have the same features
21802 # as the host->target assembler we'll be using.
21803 gcc_cv_gas_major_version=
21804 gcc_cv_gas_minor_version=
21805 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21807 if test "${gcc_cv_as+set}" = set; then :
21809 else
21811 if test -x "$DEFAULT_ASSEMBLER"; then
21812 gcc_cv_as="$DEFAULT_ASSEMBLER"
21813 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21814 && test -f ../gas/Makefile \
21815 && test x$build = x$host; then
21816 gcc_cv_as=../gas/as-new$build_exeext
21817 elif test -x as$build_exeext; then
21818 # Build using assembler in the current directory.
21819 gcc_cv_as=./as$build_exeext
21820 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21821 gcc_cv_as="$AS_FOR_TARGET"
21822 else
21823 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21824 set dummy $AS_FOR_TARGET; ac_word=$2
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21826 $as_echo_n "checking for $ac_word... " >&6; }
21827 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21828 $as_echo_n "(cached) " >&6
21829 else
21830 case $gcc_cv_as in
21831 [\\/]* | ?:[\\/]*)
21832 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21836 for as_dir in $PATH
21838 IFS=$as_save_IFS
21839 test -z "$as_dir" && as_dir=.
21840 for ac_exec_ext in '' $ac_executable_extensions; do
21841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21842 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21844 break 2
21846 done
21847 done
21848 IFS=$as_save_IFS
21851 esac
21853 gcc_cv_as=$ac_cv_path_gcc_cv_as
21854 if test -n "$gcc_cv_as"; then
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21856 $as_echo "$gcc_cv_as" >&6; }
21857 else
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21859 $as_echo "no" >&6; }
21866 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21868 case "$ORIGINAL_AS_FOR_TARGET" in
21869 ./as | ./as$build_exeext) ;;
21870 *) ac_config_files="$ac_config_files as:exec-tool.in"
21872 esac
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21875 $as_echo_n "checking what assembler to use... " >&6; }
21876 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21877 # Single tree build which includes gas. We want to prefer it
21878 # over whatever linker top-level may have detected, since
21879 # we'll use what we're building after installation anyway.
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21881 $as_echo "newly built gas" >&6; }
21882 in_tree_gas=yes
21883 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21884 for f in $gcc_cv_as_bfd_srcdir/configure \
21885 $gcc_cv_as_gas_srcdir/configure \
21886 $gcc_cv_as_gas_srcdir/configure.ac \
21887 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21888 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21889 if test x$gcc_cv_gas_version != x; then
21890 break
21892 done
21893 case $gcc_cv_gas_version in
21894 VERSION=[0-9]*) ;;
21895 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21896 esac
21897 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21898 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21899 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21900 case $gcc_cv_gas_patch_version in
21901 "") gcc_cv_gas_patch_version="0" ;;
21902 esac
21903 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21904 + $gcc_cv_gas_minor_version \) \* 1000 \
21905 + $gcc_cv_gas_patch_version`
21907 in_tree_gas_is_elf=no
21908 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21909 || (grep 'obj_format = multi' ../gas/Makefile \
21910 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21911 then
21912 in_tree_gas_is_elf=yes
21914 else
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21916 $as_echo "$gcc_cv_as" >&6; }
21917 in_tree_gas=no
21920 default_ld=
21921 # Check whether --enable-ld was given.
21922 if test "${enable_ld+set}" = set; then :
21923 enableval=$enable_ld; case "${enableval}" in
21925 default_ld=ld.gold
21927 esac
21931 install_gold_as_default=no
21932 # Check whether --enable-gold was given.
21933 if test "${enable_gold+set}" = set; then :
21934 enableval=$enable_gold; case "${enableval}" in
21935 default)
21936 install_gold_as_default=yes
21938 yes)
21939 if test x${default_ld} != x; then
21940 install_gold_as_default=yes
21946 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21948 esac
21952 # Identify the linker which will work hand-in-glove with the newly
21953 # built GCC, so that we can examine its features. This is the linker
21954 # which will be driven by the driver program.
21956 # If build != host, and we aren't building gas in-tree, we identify a
21957 # build->target linker and hope that it will have the same features
21958 # as the host->target linker we'll be using.
21959 gcc_cv_gld_major_version=
21960 gcc_cv_gld_minor_version=
21961 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21962 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21963 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21965 if test "${gcc_cv_ld+set}" = set; then :
21967 else
21969 if test -x "$DEFAULT_LINKER"; then
21970 gcc_cv_ld="$DEFAULT_LINKER"
21971 elif test $install_gold_as_default = yes \
21972 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21973 && test -f ../gold/Makefile \
21974 && test x$build = x$host; then
21975 gcc_cv_ld=../gold/ld-new$build_exeext
21976 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21977 && test -f ../ld/Makefile \
21978 && test x$build = x$host; then
21979 gcc_cv_ld=../ld/ld-new$build_exeext
21980 elif test -x collect-ld$build_exeext; then
21981 # Build using linker in the current directory.
21982 gcc_cv_ld=./collect-ld$build_exeext
21983 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21984 gcc_cv_ld="$LD_FOR_TARGET"
21985 else
21986 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21987 set dummy $LD_FOR_TARGET; ac_word=$2
21988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21989 $as_echo_n "checking for $ac_word... " >&6; }
21990 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21991 $as_echo_n "(cached) " >&6
21992 else
21993 case $gcc_cv_ld in
21994 [\\/]* | ?:[\\/]*)
21995 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21999 for as_dir in $PATH
22001 IFS=$as_save_IFS
22002 test -z "$as_dir" && as_dir=.
22003 for ac_exec_ext in '' $ac_executable_extensions; do
22004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22005 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22007 break 2
22009 done
22010 done
22011 IFS=$as_save_IFS
22014 esac
22016 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22017 if test -n "$gcc_cv_ld"; then
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22019 $as_echo "$gcc_cv_ld" >&6; }
22020 else
22021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22022 $as_echo "no" >&6; }
22029 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22030 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22031 # if the PLUGIN_LD is set ld-new, just have it as ld
22032 # as that is the installed named.
22033 if test x$PLUGIN_LD_SUFFIX = xld-new \
22034 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22035 PLUGIN_LD_SUFFIX=ld
22038 # Check whether --with-plugin-ld was given.
22039 if test "${with_plugin_ld+set}" = set; then :
22040 withval=$with_plugin_ld; if test x"$withval" != x; then
22041 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22042 PLUGIN_LD_SUFFIX="$withval"
22048 cat >>confdefs.h <<_ACEOF
22049 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22050 _ACEOF
22053 # Check to see if we are using gold instead of ld
22054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22055 $as_echo_n "checking whether we are using gold... " >&6; }
22056 ld_is_gold=no
22057 if test x$gcc_cv_ld != x; then
22058 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22059 | grep "GNU gold" > /dev/null; then
22060 ld_is_gold=yes
22063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22064 $as_echo "$ld_is_gold" >&6; }
22066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22067 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22068 # Check to see if default ld is not gold, but gold is
22069 # available and has support for split stack. If gcc was configured
22070 # with gold then no checking is done.
22072 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22074 # For platforms other than powerpc64*, enable as appropriate.
22076 gold_non_default=no
22077 ld_gold=`which ${gcc_cv_ld}.gold`
22078 # Make sure this gold has minimal split stack support
22079 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22080 ld_vers=`$ld_gold --version | sed 1q`
22081 gold_vers=`echo $ld_vers | sed -n \
22082 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22083 case $target in
22084 # check that the gold version contains the complete split stack support
22085 # on powerpc64 big and little endian
22086 powerpc64*-*-*)
22087 case "$gold_vers" in
22088 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22090 *) gold_non_default=no
22092 esac
22094 esac
22096 if test $gold_non_default = yes; then
22098 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22103 $as_echo "$gold_non_default" >&6; }
22105 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22107 case "$ORIGINAL_LD_FOR_TARGET" in
22108 ./collect-ld | ./collect-ld$build_exeext) ;;
22109 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22111 esac
22113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22114 $as_echo_n "checking what linker to use... " >&6; }
22115 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22116 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22117 # Single tree build which includes ld. We want to prefer it
22118 # over whatever linker top-level may have detected, since
22119 # we'll use what we're building after installation anyway.
22120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22121 $as_echo "newly built ld" >&6; }
22122 in_tree_ld=yes
22123 in_tree_ld_is_elf=no
22124 if (grep 'EMUL = .*elf' ../ld/Makefile \
22125 || grep 'EMUL = .*linux' ../ld/Makefile \
22126 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22127 in_tree_ld_is_elf=yes
22128 elif test "$ld_is_gold" = yes; then
22129 in_tree_ld_is_elf=yes
22131 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
22133 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22134 if test x$gcc_cv_gld_version != x; then
22135 break
22137 done
22138 case $gcc_cv_gld_version in
22139 VERSION=[0-9]*) ;;
22140 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22141 esac
22142 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22143 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22144 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22145 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22146 else
22147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22148 $as_echo "$gcc_cv_ld" >&6; }
22149 in_tree_ld=no
22150 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22151 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22152 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22158 # Figure out what nm we will be using.
22159 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22160 if test "${gcc_cv_nm+set}" = set; then :
22162 else
22164 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22165 && test -f ../binutils/Makefile \
22166 && test x$build = x$host; then
22167 gcc_cv_nm=../binutils/nm-new$build_exeext
22168 elif test -x nm$build_exeext; then
22169 gcc_cv_nm=./nm$build_exeext
22170 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22171 gcc_cv_nm="$NM_FOR_TARGET"
22172 else
22173 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22174 set dummy $NM_FOR_TARGET; ac_word=$2
22175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22176 $as_echo_n "checking for $ac_word... " >&6; }
22177 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22178 $as_echo_n "(cached) " >&6
22179 else
22180 case $gcc_cv_nm in
22181 [\\/]* | ?:[\\/]*)
22182 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22186 for as_dir in $PATH
22188 IFS=$as_save_IFS
22189 test -z "$as_dir" && as_dir=.
22190 for ac_exec_ext in '' $ac_executable_extensions; do
22191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22192 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22194 break 2
22196 done
22197 done
22198 IFS=$as_save_IFS
22201 esac
22203 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22204 if test -n "$gcc_cv_nm"; then
22205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22206 $as_echo "$gcc_cv_nm" >&6; }
22207 else
22208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22209 $as_echo "no" >&6; }
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22217 $as_echo_n "checking what nm to use... " >&6; }
22218 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22219 # Single tree build which includes binutils.
22220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22221 $as_echo "newly built nm" >&6; }
22222 in_tree_nm=yes
22223 else
22224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22225 $as_echo "$gcc_cv_nm" >&6; }
22226 in_tree_nm=no
22229 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22231 case "$ORIGINAL_NM_FOR_TARGET" in
22232 ./nm | ./nm$build_exeext) ;;
22233 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22235 esac
22238 # Figure out what objdump we will be using.
22239 if test "${gcc_cv_objdump+set}" = set; then :
22241 else
22243 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22244 && test -f ../binutils/Makefile \
22245 && test x$build = x$host; then
22246 # Single tree build which includes binutils.
22247 gcc_cv_objdump=../binutils/objdump$build_exeext
22248 elif test -x objdump$build_exeext; then
22249 gcc_cv_objdump=./objdump$build_exeext
22250 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22251 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22252 else
22253 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22254 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22256 $as_echo_n "checking for $ac_word... " >&6; }
22257 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22258 $as_echo_n "(cached) " >&6
22259 else
22260 case $gcc_cv_objdump in
22261 [\\/]* | ?:[\\/]*)
22262 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22266 for as_dir in $PATH
22268 IFS=$as_save_IFS
22269 test -z "$as_dir" && as_dir=.
22270 for ac_exec_ext in '' $ac_executable_extensions; do
22271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22272 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22274 break 2
22276 done
22277 done
22278 IFS=$as_save_IFS
22281 esac
22283 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22284 if test -n "$gcc_cv_objdump"; then
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22286 $as_echo "$gcc_cv_objdump" >&6; }
22287 else
22288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22289 $as_echo "no" >&6; }
22296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22297 $as_echo_n "checking what objdump to use... " >&6; }
22298 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22299 # Single tree build which includes binutils.
22300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22301 $as_echo "newly built objdump" >&6; }
22302 elif test x$gcc_cv_objdump = x; then
22303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22304 $as_echo "not found" >&6; }
22305 else
22306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22307 $as_echo "$gcc_cv_objdump" >&6; }
22310 # Figure out what readelf we will be using.
22311 if test "${gcc_cv_readelf+set}" = set; then :
22313 else
22315 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22316 && test -f ../binutils/Makefile \
22317 && test x$build = x$host; then
22318 # Single tree build which includes binutils.
22319 gcc_cv_readelf=../binutils/readelf$build_exeext
22320 elif test -x readelf$build_exeext; then
22321 gcc_cv_readelf=./readelf$build_exeext
22322 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22323 gcc_cv_readelf="$READELF_FOR_TARGET"
22324 else
22325 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22326 set dummy $READELF_FOR_TARGET; ac_word=$2
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22328 $as_echo_n "checking for $ac_word... " >&6; }
22329 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22330 $as_echo_n "(cached) " >&6
22331 else
22332 case $gcc_cv_readelf in
22333 [\\/]* | ?:[\\/]*)
22334 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22338 for as_dir in $PATH
22340 IFS=$as_save_IFS
22341 test -z "$as_dir" && as_dir=.
22342 for ac_exec_ext in '' $ac_executable_extensions; do
22343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22344 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22346 break 2
22348 done
22349 done
22350 IFS=$as_save_IFS
22353 esac
22355 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22356 if test -n "$gcc_cv_readelf"; then
22357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22358 $as_echo "$gcc_cv_readelf" >&6; }
22359 else
22360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22361 $as_echo "no" >&6; }
22368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22369 $as_echo_n "checking what readelf to use... " >&6; }
22370 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22371 # Single tree build which includes binutils.
22372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22373 $as_echo "newly built readelf" >&6; }
22374 elif test x$gcc_cv_readelf = x; then
22375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22376 $as_echo "not found" >&6; }
22377 else
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22379 $as_echo "$gcc_cv_readelf" >&6; }
22382 # Figure out what assembler alignment features are present.
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22384 $as_echo_n "checking assembler flags... " >&6; }
22385 if test "${gcc_cv_as_flags+set}" = set; then :
22386 $as_echo_n "(cached) " >&6
22387 else
22388 case "$target" in
22389 i[34567]86-*-linux*)
22390 gcc_cv_as_flags=--32
22392 x86_64-*-linux-gnux32)
22393 gcc_cv_as_flags=--x32
22395 x86_64-*-linux*)
22396 gcc_cv_as_flags=--64
22398 powerpc*-*-darwin*)
22399 gcc_cv_as_flags="-arch ppc"
22402 gcc_cv_as_flags=" "
22404 esac
22406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22407 $as_echo "$gcc_cv_as_flags" >&6; }
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22410 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22411 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22412 $as_echo_n "(cached) " >&6
22413 else
22414 gcc_cv_as_balign_and_p2align=no
22415 if test $in_tree_gas = yes; then
22416 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22417 then gcc_cv_as_balign_and_p2align=yes
22419 elif test x$gcc_cv_as != x; then
22420 $as_echo '.balign 4
22421 .p2align 2' > conftest.s
22422 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22424 (eval $ac_try) 2>&5
22425 ac_status=$?
22426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22427 test $ac_status = 0; }; }
22428 then
22429 gcc_cv_as_balign_and_p2align=yes
22430 else
22431 echo "configure: failed program was" >&5
22432 cat conftest.s >&5
22434 rm -f conftest.o conftest.s
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22438 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22439 if test $gcc_cv_as_balign_and_p2align = yes; then
22441 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22447 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22448 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22449 $as_echo_n "(cached) " >&6
22450 else
22451 gcc_cv_as_max_skip_p2align=no
22452 if test $in_tree_gas = yes; then
22453 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22454 then gcc_cv_as_max_skip_p2align=yes
22456 elif test x$gcc_cv_as != x; then
22457 $as_echo '.p2align 4,,7' > conftest.s
22458 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22459 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22460 (eval $ac_try) 2>&5
22461 ac_status=$?
22462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22463 test $ac_status = 0; }; }
22464 then
22465 gcc_cv_as_max_skip_p2align=yes
22466 else
22467 echo "configure: failed program was" >&5
22468 cat conftest.s >&5
22470 rm -f conftest.o conftest.s
22473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22474 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22475 if test $gcc_cv_as_max_skip_p2align = yes; then
22477 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22483 $as_echo_n "checking assembler for .literal16... " >&6; }
22484 if test "${gcc_cv_as_literal16+set}" = set; then :
22485 $as_echo_n "(cached) " >&6
22486 else
22487 gcc_cv_as_literal16=no
22488 if test $in_tree_gas = yes; then
22489 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22490 then gcc_cv_as_literal16=yes
22492 elif test x$gcc_cv_as != x; then
22493 $as_echo '.literal16' > conftest.s
22494 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22496 (eval $ac_try) 2>&5
22497 ac_status=$?
22498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22499 test $ac_status = 0; }; }
22500 then
22501 gcc_cv_as_literal16=yes
22502 else
22503 echo "configure: failed program was" >&5
22504 cat conftest.s >&5
22506 rm -f conftest.o conftest.s
22509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22510 $as_echo "$gcc_cv_as_literal16" >&6; }
22511 if test $gcc_cv_as_literal16 = yes; then
22513 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22519 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22520 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22521 $as_echo_n "(cached) " >&6
22522 else
22523 gcc_cv_as_subsection_m1=no
22524 if test $in_tree_gas = yes; then
22525 if test $in_tree_gas_is_elf = yes \
22526 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22527 then gcc_cv_as_subsection_m1=yes
22529 elif test x$gcc_cv_as != x; then
22530 $as_echo 'conftest_label1: .word 0
22531 .subsection -1
22532 conftest_label2: .word 0
22533 .previous' > conftest.s
22534 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22536 (eval $ac_try) 2>&5
22537 ac_status=$?
22538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22539 test $ac_status = 0; }; }
22540 then
22541 if test x$gcc_cv_nm != x; then
22542 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22543 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22544 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22545 then :
22546 else gcc_cv_as_subsection_m1=yes
22548 rm -f conftest.nm1 conftest.nm2
22550 else
22551 echo "configure: failed program was" >&5
22552 cat conftest.s >&5
22554 rm -f conftest.o conftest.s
22557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22558 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22559 if test $gcc_cv_as_subsection_m1 = yes; then
22561 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22567 $as_echo_n "checking assembler for .weak... " >&6; }
22568 if test "${gcc_cv_as_weak+set}" = set; then :
22569 $as_echo_n "(cached) " >&6
22570 else
22571 gcc_cv_as_weak=no
22572 if test $in_tree_gas = yes; then
22573 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22574 then gcc_cv_as_weak=yes
22576 elif test x$gcc_cv_as != x; then
22577 $as_echo ' .weak foobar' > conftest.s
22578 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22580 (eval $ac_try) 2>&5
22581 ac_status=$?
22582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22583 test $ac_status = 0; }; }
22584 then
22585 gcc_cv_as_weak=yes
22586 else
22587 echo "configure: failed program was" >&5
22588 cat conftest.s >&5
22590 rm -f conftest.o conftest.s
22593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22594 $as_echo "$gcc_cv_as_weak" >&6; }
22595 if test $gcc_cv_as_weak = yes; then
22597 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22603 $as_echo_n "checking assembler for .weakref... " >&6; }
22604 if test "${gcc_cv_as_weakref+set}" = set; then :
22605 $as_echo_n "(cached) " >&6
22606 else
22607 gcc_cv_as_weakref=no
22608 if test $in_tree_gas = yes; then
22609 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22610 then gcc_cv_as_weakref=yes
22612 elif test x$gcc_cv_as != x; then
22613 $as_echo ' .weakref foobar, barfnot' > conftest.s
22614 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22616 (eval $ac_try) 2>&5
22617 ac_status=$?
22618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22619 test $ac_status = 0; }; }
22620 then
22621 gcc_cv_as_weakref=yes
22622 else
22623 echo "configure: failed program was" >&5
22624 cat conftest.s >&5
22626 rm -f conftest.o conftest.s
22629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22630 $as_echo "$gcc_cv_as_weakref" >&6; }
22631 if test $gcc_cv_as_weakref = yes; then
22633 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22639 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22640 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22641 $as_echo_n "(cached) " >&6
22642 else
22643 gcc_cv_as_nsubspa_comdat=no
22644 if test $in_tree_gas = yes; then
22645 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22646 then gcc_cv_as_nsubspa_comdat=yes
22648 elif test x$gcc_cv_as != x; then
22649 $as_echo ' .SPACE $TEXT$
22650 .NSUBSPA $CODE$,COMDAT' > conftest.s
22651 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22653 (eval $ac_try) 2>&5
22654 ac_status=$?
22655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22656 test $ac_status = 0; }; }
22657 then
22658 gcc_cv_as_nsubspa_comdat=yes
22659 else
22660 echo "configure: failed program was" >&5
22661 cat conftest.s >&5
22663 rm -f conftest.o conftest.s
22666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22667 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22668 if test $gcc_cv_as_nsubspa_comdat = yes; then
22670 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22675 # .hidden needs to be supported in both the assembler and the linker,
22676 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22677 # This is irritatingly difficult to feature test for; we have to check the
22678 # date string after the version number. If we've got an in-tree
22679 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22680 # to be safe.
22681 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22682 case "${target}" in
22683 *-*-aix*)
22684 conftest_s=' .globl foobar,hidden'
22687 conftest_s=' .hidden foobar
22688 foobar:'
22690 esac
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22692 $as_echo_n "checking assembler for .hidden... " >&6; }
22693 if test "${gcc_cv_as_hidden+set}" = set; then :
22694 $as_echo_n "(cached) " >&6
22695 else
22696 gcc_cv_as_hidden=no
22697 if test $in_tree_gas = yes; then
22698 if test $in_tree_gas_is_elf = yes \
22699 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22700 then gcc_cv_as_hidden=yes
22702 elif test x$gcc_cv_as != x; then
22703 $as_echo "$conftest_s" > conftest.s
22704 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22706 (eval $ac_try) 2>&5
22707 ac_status=$?
22708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22709 test $ac_status = 0; }; }
22710 then
22711 gcc_cv_as_hidden=yes
22712 else
22713 echo "configure: failed program was" >&5
22714 cat conftest.s >&5
22716 rm -f conftest.o conftest.s
22719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22720 $as_echo "$gcc_cv_as_hidden" >&6; }
22723 case "${target}" in
22724 *-*-darwin*)
22725 # Darwin as has some visibility support, though with a different syntax.
22726 gcc_cv_as_hidden=yes
22728 esac
22730 # gnu_indirect_function type is an extension proposed at
22731 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22732 # selection of function implementation
22733 # Check whether --enable-gnu-indirect-function was given.
22734 if test "${enable_gnu_indirect_function+set}" = set; then :
22735 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22736 yes | no) ;;
22737 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22738 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22739 esac
22740 else
22741 enable_gnu_indirect_function="$default_gnu_indirect_function"
22745 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22747 cat >>confdefs.h <<_ACEOF
22748 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22749 _ACEOF
22753 if test $in_tree_ld != yes ; then
22754 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22755 if echo "$ld_ver" | grep GNU > /dev/null; then
22756 if test x"$ld_is_gold" = xyes; then
22757 # GNU gold --version looks like this:
22759 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22761 # We extract the binutils version which is more familiar and specific
22762 # than the gold version.
22763 ld_vers=`echo $ld_ver | sed -n \
22764 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22765 else
22766 # GNU ld --version looks like this:
22768 # GNU ld (GNU Binutils) 2.21.51.20110225
22769 ld_vers=`echo $ld_ver | sed -n \
22770 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22772 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'`
22773 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22774 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22775 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22776 else
22777 case "${target}" in
22778 *-*-solaris2*)
22779 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22780 # format.
22782 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22783 # /usr/ccs/bin/ld has been configured.
22784 ld_ver=`$gcc_cv_ld -V 2>&1`
22785 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22786 ld_vers=`echo $ld_ver | sed -n \
22787 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22788 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22789 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22792 esac
22796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22797 $as_echo_n "checking linker for .hidden support... " >&6; }
22798 if test "${gcc_cv_ld_hidden+set}" = set; then :
22799 $as_echo_n "(cached) " >&6
22800 else
22801 if test $in_tree_ld = yes ; then
22802 gcc_cv_ld_hidden=no
22803 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 \
22804 && test $in_tree_ld_is_elf = yes; then
22805 gcc_cv_ld_hidden=yes
22807 else
22808 gcc_cv_ld_hidden=yes
22809 if test x"$ld_is_gold" = xyes; then
22811 elif echo "$ld_ver" | grep GNU > /dev/null; then
22812 case "${target}" in
22813 mmix-knuth-mmixware)
22814 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22815 gcc_cv_ld_hidden=no
22817 esac
22818 if test 0"$ld_date" -lt 20020404; then
22819 if test -n "$ld_date"; then
22820 # If there was date string, but was earlier than 2002-04-04, fail
22821 gcc_cv_ld_hidden=no
22822 elif test -z "$ld_vers"; then
22823 # If there was no date string nor ld version number, something is wrong
22824 gcc_cv_ld_hidden=no
22825 else
22826 test -z "$ld_vers_patch" && ld_vers_patch=0
22827 if test "$ld_vers_major" -lt 2; then
22828 gcc_cv_ld_hidden=no
22829 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22830 gcc_cv_ld_hidden="no"
22831 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22832 gcc_cv_ld_hidden=no
22836 else
22837 case "${target}" in
22838 *-*-aix[789]*)
22839 gcc_cv_ld_hidden=yes
22841 *-*-darwin*)
22842 # Darwin ld has some visibility support.
22843 gcc_cv_ld_hidden=yes
22845 hppa64*-*-hpux* | ia64*-*-hpux*)
22846 gcc_cv_ld_hidden=yes
22848 *-*-solaris2.1[0-9]*)
22849 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22850 # .symbolic was only added in Solaris 9 12/02.
22851 gcc_cv_ld_hidden=yes
22854 gcc_cv_ld_hidden=no
22856 esac
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22861 $as_echo "$gcc_cv_ld_hidden" >&6; }
22862 libgcc_visibility=no
22865 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22866 libgcc_visibility=yes
22868 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22873 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22874 gcc_cv_ld_ro_rw_mix=unknown
22875 if test $in_tree_ld = yes ; then
22876 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 \
22877 && test $in_tree_ld_is_elf = yes; then
22878 gcc_cv_ld_ro_rw_mix=read-write
22880 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22881 echo '.section myfoosect, "a"' > conftest1.s
22882 echo '.section myfoosect, "aw"' > conftest2.s
22883 echo '.byte 1' >> conftest2.s
22884 echo '.section myfoosect, "a"' > conftest3.s
22885 echo '.byte 0' >> conftest3.s
22886 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22887 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22888 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22889 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22890 conftest2.o conftest3.o > /dev/null 2>&1; then
22891 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22892 | sed -e '/myfoosect/!d' -e N`
22893 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22894 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22895 gcc_cv_ld_ro_rw_mix=read-only
22896 else
22897 gcc_cv_ld_ro_rw_mix=read-write
22901 rm -f conftest.* conftest[123].*
22903 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22905 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22909 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22911 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22912 case "${target}" in
22913 *-*-solaris2*)
22915 # Solaris 2 ld -V output looks like this for a regular version:
22917 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22919 # but test versions add stuff at the end:
22921 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22923 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22924 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22925 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22926 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22927 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22928 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22931 esac
22934 # Check whether --enable-initfini-array was given.
22935 if test "${enable_initfini_array+set}" = set; then :
22936 enableval=$enable_initfini_array;
22937 else
22939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22940 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22941 if test "${gcc_cv_initfini_array+set}" = set; then :
22942 $as_echo_n "(cached) " >&6
22943 else
22944 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22945 case "${target}" in
22946 ia64-*)
22947 if test "$cross_compiling" = yes; then :
22948 gcc_cv_initfini_array=no
22949 else
22950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22951 /* end confdefs.h. */
22953 #ifndef __ELF__
22954 #error Not an ELF OS
22955 #endif
22956 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22957 if it can be used. */
22958 static int x = -1;
22959 int main (void) { return x; }
22960 int foo (void) { x = 0; }
22961 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22963 _ACEOF
22964 if ac_fn_cxx_try_run "$LINENO"; then :
22965 gcc_cv_initfini_array=yes
22966 else
22967 gcc_cv_initfini_array=no
22969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22970 conftest.$ac_objext conftest.beam conftest.$ac_ext
22974 gcc_cv_initfini_array=no
22975 if test $in_tree_ld = yes ; then
22976 if test "$gcc_cv_gld_major_version" -eq 2 \
22977 -a "$gcc_cv_gld_minor_version" -ge 22 \
22978 -o "$gcc_cv_gld_major_version" -gt 2 \
22979 && test $in_tree_ld_is_elf = yes; then
22980 gcc_cv_initfini_array=yes
22982 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22983 case $target:$gas in
22984 *:yes)
22985 sh_flags='"a"'
22986 sh_type='%progbits'
22988 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
22989 sh_flags='"a"'
22990 sh_type='@progbits'
22992 sparc*-*-solaris2*:no)
22993 sh_flags='#alloc'
22994 sh_type='#progbits'
22995 sh_quote='"'
22997 esac
22998 case "$target:$gnu_ld" in
22999 *:yes)
23000 cat > conftest.s <<EOF
23001 .section .dtors,$sh_flags,$sh_type
23002 .balign 4
23003 .byte 'A', 'A', 'A', 'A'
23004 .section .ctors,$sh_flags,$sh_type
23005 .balign 4
23006 .byte 'B', 'B', 'B', 'B'
23007 .section .fini_array.65530,$sh_flags,$sh_type
23008 .balign 4
23009 .byte 'C', 'C', 'C', 'C'
23010 .section .init_array.65530,$sh_flags,$sh_type
23011 .balign 4
23012 .byte 'D', 'D', 'D', 'D'
23013 .section .dtors.64528,$sh_flags,$sh_type
23014 .balign 4
23015 .byte 'E', 'E', 'E', 'E'
23016 .section .ctors.64528,$sh_flags,$sh_type
23017 .balign 4
23018 .byte 'F', 'F', 'F', 'F'
23019 .section .fini_array.01005,$sh_flags,$sh_type
23020 .balign 4
23021 .byte 'G', 'G', 'G', 'G'
23022 .section .init_array.01005,$sh_flags,$sh_type
23023 .balign 4
23024 .byte 'H', 'H', 'H', 'H'
23025 .text
23026 .globl _start
23027 _start:
23029 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23030 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23031 && $gcc_cv_objdump -s -j .init_array conftest \
23032 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23033 && $gcc_cv_objdump -s -j .fini_array conftest \
23034 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23035 gcc_cv_initfini_array=yes
23038 *-*-solaris2*:no)
23039 # When Solaris ld added constructor priority support, it was
23040 # decided to only handle .init_array.N/.fini_array.N since
23041 # there was no need for backwards compatibility with
23042 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23043 # sections with correct execution order resp. to
23044 # .init_array/.fini_array, while gld merges them into
23045 # .init_array/.fini_array.
23046 cat > conftest.s <<EOF
23047 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23048 .align 4
23049 .byte 'C', 'C', 'C', 'C'
23050 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23051 .align 4
23052 .byte 'D', 'D', 'D', 'D'
23053 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23054 .align 4
23055 .byte 'G', 'G', 'G', 'G'
23056 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23057 .align 4
23058 .byte 'H', 'H', 'H', 'H'
23059 .text
23060 .globl _start
23061 _start:
23063 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23064 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23065 && $gcc_cv_objdump -s -j .init_array conftest \
23066 | grep HHHHDDDD > /dev/null 2>&1 \
23067 && $gcc_cv_objdump -s -j .fini_array conftest \
23068 | grep GGGGCCCC > /dev/null 2>&1; then
23069 gcc_cv_initfini_array=yes
23072 esac
23073 rm -f conftest conftest.*
23075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23076 /* end confdefs.h. */
23078 #ifndef __ELF__
23079 # error Not an ELF OS
23080 #endif
23081 #include <stdlib.h>
23082 #if defined __GLIBC_PREREQ
23083 # if __GLIBC_PREREQ (2, 4)
23084 # else
23085 # error GLIBC 2.4 required
23086 # endif
23087 #else
23088 # if defined __sun__ && defined __svr4__
23089 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23090 # else
23091 # error The C library not known to support .init_array/.fini_array
23092 # endif
23093 #endif
23095 _ACEOF
23096 if ac_fn_cxx_try_cpp "$LINENO"; then :
23098 else
23099 gcc_cv_initfini_array=no
23101 rm -f conftest.err conftest.$ac_ext;;
23102 esac
23103 else
23104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23105 $as_echo_n "checking cross compile... guessing... " >&6; }
23106 gcc_cv_initfini_array=no
23109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23110 $as_echo "$gcc_cv_initfini_array" >&6; }
23111 enable_initfini_array=$gcc_cv_initfini_array
23116 cat >>confdefs.h <<_ACEOF
23117 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23118 _ACEOF
23122 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23124 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23125 if test "${gcc_cv_as_leb128+set}" = set; then :
23126 $as_echo_n "(cached) " >&6
23127 else
23128 gcc_cv_as_leb128=no
23129 if test $in_tree_gas = yes; then
23130 if test $in_tree_gas_is_elf = yes \
23131 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23132 then gcc_cv_as_leb128=yes
23134 elif test x$gcc_cv_as != x; then
23135 $as_echo ' .data
23136 .uleb128 L2 - L1
23138 .uleb128 1280
23139 .sleb128 -1010
23140 L2:' > conftest.s
23141 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23143 (eval $ac_try) 2>&5
23144 ac_status=$?
23145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23146 test $ac_status = 0; }; }
23147 then
23148 # GAS versions before 2.11 do not support uleb128,
23149 # despite appearing to.
23150 # ??? There exists an elf-specific test that will crash
23151 # the assembler. Perhaps it's better to figure out whether
23152 # arbitrary sections are supported and try the test.
23153 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23154 if echo "$as_ver" | grep GNU > /dev/null; then
23155 as_vers=`echo $as_ver | sed -n \
23156 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23157 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23158 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23159 if test $as_major -eq 2 && test $as_minor -lt 11
23160 then :
23161 else gcc_cv_as_leb128=yes
23164 else
23165 echo "configure: failed program was" >&5
23166 cat conftest.s >&5
23168 rm -f conftest.o conftest.s
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23172 $as_echo "$gcc_cv_as_leb128" >&6; }
23173 if test $gcc_cv_as_leb128 = yes; then
23175 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23178 if test $gcc_cv_as_leb128 != yes; then
23180 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23184 # Check if we have assembler support for unwind directives.
23185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23186 $as_echo_n "checking assembler for cfi directives... " >&6; }
23187 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23188 $as_echo_n "(cached) " >&6
23189 else
23190 gcc_cv_as_cfi_directive=no
23191 if test x$gcc_cv_as != x; then
23192 $as_echo ' .text
23193 .cfi_startproc
23194 .cfi_offset 0, 0
23195 .cfi_same_value 1
23196 .cfi_def_cfa 1, 2
23197 .cfi_escape 1, 2, 3, 4, 5
23198 .cfi_endproc' > conftest.s
23199 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23201 (eval $ac_try) 2>&5
23202 ac_status=$?
23203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23204 test $ac_status = 0; }; }
23205 then
23206 case "$target" in
23207 *-*-solaris*)
23208 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23209 # read-only and read-write sections, we need to make sure that the
23210 # assembler used emits read-write .eh_frame sections.
23211 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
23212 if test "x$gcc_cv_objdump" != x; then
23213 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23214 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
23215 gcc_cv_as_cfi_directive=no
23216 else
23217 case "$target" in
23218 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
23219 # On Solaris/x86, make sure that GCC and assembler agree on using
23220 # read-only .eh_frame sections for 64-bit.
23221 if test x$gas = xyes; then
23222 as_ix86_64_opt="--64"
23223 else
23224 as_ix86_64_opt="-xarch=amd64"
23226 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
23227 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23228 sed -e /.eh_frame/!d -e N | \
23229 grep READONLY > /dev/null; then
23230 gcc_cv_as_cfi_directive=yes
23231 else
23232 gcc_cv_as_cfi_directive=no
23236 gcc_cv_as_cfi_directive=yes
23238 esac
23240 else
23241 # no objdump, err on the side of caution
23242 gcc_cv_as_cfi_directive=no
23244 else
23245 gcc_cv_as_cfi_directive=yes
23248 *-*-*)
23249 gcc_cv_as_cfi_directive=yes
23251 esac
23252 else
23253 echo "configure: failed program was" >&5
23254 cat conftest.s >&5
23256 rm -f conftest.o conftest.s
23259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23260 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23263 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23265 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23266 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23267 $as_echo_n "(cached) " >&6
23268 else
23269 gcc_cv_as_cfi_advance_working=no
23270 if test x$gcc_cv_as != x; then
23271 $as_echo ' .text
23272 .cfi_startproc
23273 .cfi_adjust_cfa_offset 64
23274 .skip 75040, 0
23275 .cfi_adjust_cfa_offset 128
23276 .cfi_endproc' > conftest.s
23277 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23279 (eval $ac_try) 2>&5
23280 ac_status=$?
23281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23282 test $ac_status = 0; }; }
23283 then
23285 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23286 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23287 gcc_cv_as_cfi_advance_working=yes
23290 else
23291 echo "configure: failed program was" >&5
23292 cat conftest.s >&5
23294 rm -f conftest.o conftest.s
23297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23298 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23301 else
23302 # no objdump, err on the side of caution
23303 gcc_cv_as_cfi_advance_working=no
23307 cat >>confdefs.h <<_ACEOF
23308 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23309 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23310 _ACEOF
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23315 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23316 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23317 $as_echo_n "(cached) " >&6
23318 else
23319 gcc_cv_as_cfi_personality_directive=no
23320 if test x$gcc_cv_as != x; then
23321 $as_echo ' .text
23322 .cfi_startproc
23323 .cfi_personality 0, symbol
23324 .cfi_endproc' > conftest.s
23325 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23327 (eval $ac_try) 2>&5
23328 ac_status=$?
23329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23330 test $ac_status = 0; }; }
23331 then
23332 gcc_cv_as_cfi_personality_directive=yes
23333 else
23334 echo "configure: failed program was" >&5
23335 cat conftest.s >&5
23337 rm -f conftest.o conftest.s
23340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23341 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23345 cat >>confdefs.h <<_ACEOF
23346 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23347 then echo 1; else echo 0; fi`
23348 _ACEOF
23351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23352 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23353 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23354 $as_echo_n "(cached) " >&6
23355 else
23356 gcc_cv_as_cfi_sections_directive=no
23357 if test x$gcc_cv_as != x; then
23358 $as_echo ' .text
23359 .cfi_sections .debug_frame, .eh_frame
23360 .cfi_startproc
23361 .cfi_endproc' > conftest.s
23362 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23364 (eval $ac_try) 2>&5
23365 ac_status=$?
23366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23367 test $ac_status = 0; }; }
23368 then
23369 case $target_os in
23370 win32 | pe | cygwin* | mingw32*)
23371 # Need to check that we generated the correct relocation for the
23372 # .debug_frame section. This was fixed for binutils 2.21.
23373 gcc_cv_as_cfi_sections_directive=no
23374 if test "x$gcc_cv_objdump" != x; then
23375 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23376 grep secrel > /dev/null; then
23377 gcc_cv_as_cfi_sections_directive=yes
23382 gcc_cv_as_cfi_sections_directive=yes
23384 esac
23385 else
23386 echo "configure: failed program was" >&5
23387 cat conftest.s >&5
23389 rm -f conftest.o conftest.s
23392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23393 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23398 cat >>confdefs.h <<_ACEOF
23399 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23400 then echo 1; else echo 0; fi`
23401 _ACEOF
23404 # GAS versions up to and including 2.11.0 may mis-optimize
23405 # .eh_frame data.
23406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23407 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23408 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23409 $as_echo_n "(cached) " >&6
23410 else
23411 gcc_cv_as_eh_frame=no
23412 if test $in_tree_gas = yes; then
23413 if test $in_tree_gas_is_elf = yes \
23414 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23415 then gcc_cv_as_eh_frame=yes
23417 elif test x$gcc_cv_as != x; then
23418 $as_echo ' .text
23419 .LFB1:
23420 .4byte 0
23421 .L1:
23422 .4byte 0
23423 .LFE1:
23424 .section .eh_frame,"aw",@progbits
23425 __FRAME_BEGIN__:
23426 .4byte .LECIE1-.LSCIE1
23427 .LSCIE1:
23428 .4byte 0x0
23429 .byte 0x1
23430 .ascii "z\0"
23431 .byte 0x1
23432 .byte 0x78
23433 .byte 0x1a
23434 .byte 0x0
23435 .byte 0x4
23436 .4byte 1
23437 .p2align 1
23438 .LECIE1:
23439 .LSFDE1:
23440 .4byte .LEFDE1-.LASFDE1
23441 .LASFDE1:
23442 .4byte .LASFDE1-__FRAME_BEGIN__
23443 .4byte .LFB1
23444 .4byte .LFE1-.LFB1
23445 .byte 0x4
23446 .4byte .LFE1-.LFB1
23447 .byte 0x4
23448 .4byte .L1-.LFB1
23449 .LEFDE1:' > conftest.s
23450 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23452 (eval $ac_try) 2>&5
23453 ac_status=$?
23454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23455 test $ac_status = 0; }; }
23456 then
23457 cat > conftest.lit <<EOF
23458 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23459 0010 01000000 12000000 18000000 00000000 ................
23460 0020 08000000 04080000 0044 .........D
23462 cat > conftest.big <<EOF
23463 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23464 0010 00000001 00000012 00000018 00000000 ................
23465 0020 00000008 04000000 0844 .........D
23467 # If the assembler didn't choke, and we can objdump,
23468 # and we got the correct data, then succeed.
23469 # The text in the here-document typically retains its unix-style line
23470 # endings, while the output of objdump will use host line endings.
23471 # Therefore, use diff -b for the comparisons.
23472 if test x$gcc_cv_objdump != x \
23473 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23474 | tail -3 > conftest.got \
23475 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23476 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23477 then
23478 gcc_cv_as_eh_frame=yes
23479 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23481 (eval $ac_try) 2>&5
23482 ac_status=$?
23483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23484 test $ac_status = 0; }; }; then
23485 gcc_cv_as_eh_frame=buggy
23486 else
23487 # Uh oh, what do we do now?
23488 gcc_cv_as_eh_frame=no
23490 else
23491 echo "configure: failed program was" >&5
23492 cat conftest.s >&5
23494 rm -f conftest.o conftest.s
23497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23498 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23502 if test $gcc_cv_as_eh_frame = buggy; then
23504 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23509 $as_echo_n "checking assembler for section merging support... " >&6; }
23510 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23511 $as_echo_n "(cached) " >&6
23512 else
23513 gcc_cv_as_shf_merge=no
23514 if test $in_tree_gas = yes; then
23515 if test $in_tree_gas_is_elf = yes \
23516 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23517 then gcc_cv_as_shf_merge=yes
23519 elif test x$gcc_cv_as != x; then
23520 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23521 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23523 (eval $ac_try) 2>&5
23524 ac_status=$?
23525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23526 test $ac_status = 0; }; }
23527 then
23528 gcc_cv_as_shf_merge=yes
23529 else
23530 echo "configure: failed program was" >&5
23531 cat conftest.s >&5
23533 rm -f conftest.o conftest.s
23536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23537 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23540 if test $gcc_cv_as_shf_merge = no; then
23541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23542 $as_echo_n "checking assembler for section merging support... " >&6; }
23543 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23544 $as_echo_n "(cached) " >&6
23545 else
23546 gcc_cv_as_shf_merge=no
23547 if test $in_tree_gas = yes; then
23548 if test $in_tree_gas_is_elf = yes \
23549 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23550 then gcc_cv_as_shf_merge=yes
23552 elif test x$gcc_cv_as != x; then
23553 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23554 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23556 (eval $ac_try) 2>&5
23557 ac_status=$?
23558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23559 test $ac_status = 0; }; }
23560 then
23561 gcc_cv_as_shf_merge=yes
23562 else
23563 echo "configure: failed program was" >&5
23564 cat conftest.s >&5
23566 rm -f conftest.o conftest.s
23569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23570 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23575 cat >>confdefs.h <<_ACEOF
23576 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23577 _ACEOF
23580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23581 $as_echo_n "checking assembler for stabs directive... " >&6; }
23582 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23583 $as_echo_n "(cached) " >&6
23584 else
23585 gcc_cv_as_stabs_directive=no
23586 if test x$gcc_cv_as != x; then
23587 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23588 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23590 (eval $ac_try) 2>&5
23591 ac_status=$?
23592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23593 test $ac_status = 0; }; }
23594 then
23595 gcc_cv_as_stabs_directive=yes
23596 else
23597 echo "configure: failed program was" >&5
23598 cat conftest.s >&5
23600 rm -f conftest.o conftest.s
23603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23604 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23605 if test $gcc_cv_as_stabs_directive = yes; then
23607 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23613 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23614 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23615 $as_echo_n "(cached) " >&6
23616 else
23617 gcc_cv_as_comdat_group=no
23618 if test $in_tree_gas = yes; then
23619 if test $in_tree_gas_is_elf = yes \
23620 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23621 then gcc_cv_as_comdat_group=yes
23623 elif test x$gcc_cv_as != x; then
23624 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23625 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23627 (eval $ac_try) 2>&5
23628 ac_status=$?
23629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23630 test $ac_status = 0; }; }
23631 then
23632 gcc_cv_as_comdat_group=yes
23633 else
23634 echo "configure: failed program was" >&5
23635 cat conftest.s >&5
23637 rm -f conftest.o conftest.s
23640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23641 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23644 if test $gcc_cv_as_comdat_group = yes; then
23645 gcc_cv_as_comdat_group_percent=no
23646 gcc_cv_as_comdat_group_group=no
23647 else
23648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23649 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23650 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23651 $as_echo_n "(cached) " >&6
23652 else
23653 gcc_cv_as_comdat_group_percent=no
23654 if test $in_tree_gas = yes; then
23655 if test $in_tree_gas_is_elf = yes \
23656 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23657 then gcc_cv_as_comdat_group_percent=yes
23659 elif test x$gcc_cv_as != x; then
23660 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23661 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23663 (eval $ac_try) 2>&5
23664 ac_status=$?
23665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23666 test $ac_status = 0; }; }
23667 then
23668 gcc_cv_as_comdat_group_percent=yes
23669 else
23670 echo "configure: failed program was" >&5
23671 cat conftest.s >&5
23673 rm -f conftest.o conftest.s
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23677 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23680 if test $gcc_cv_as_comdat_group_percent = yes; then
23681 gcc_cv_as_comdat_group_group=no
23682 else
23683 case "${target}" in
23684 # Sun as uses a completely different syntax.
23685 *-*-solaris2*)
23686 case "${target}" in
23687 sparc*-*-solaris2*)
23688 conftest_s='
23689 .group foo,".text%foo",#comdat
23690 .section ".text%foo", #alloc,#execinstr,#progbits
23691 .globl foo
23692 foo:
23695 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23696 conftest_s='
23697 .group foo,.text%foo,#comdat
23698 .section .text%foo, "ax", @progbits
23699 .globl foo
23700 foo:
23703 esac
23704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23705 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23706 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23707 $as_echo_n "(cached) " >&6
23708 else
23709 gcc_cv_as_comdat_group_group=no
23710 if test x$gcc_cv_as != x; then
23711 $as_echo "$conftest_s" > conftest.s
23712 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23714 (eval $ac_try) 2>&5
23715 ac_status=$?
23716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23717 test $ac_status = 0; }; }
23718 then
23719 gcc_cv_as_comdat_group_group=yes
23720 else
23721 echo "configure: failed program was" >&5
23722 cat conftest.s >&5
23724 rm -f conftest.o conftest.s
23727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23728 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23732 esac
23733 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23734 gcc_cv_as_comdat_group_group=no
23738 if test x"$ld_is_gold" = xyes; then
23739 comdat_group=yes
23740 elif test $in_tree_ld = yes ; then
23741 comdat_group=no
23742 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 \
23743 && test $in_tree_ld_is_elf = yes; then
23744 comdat_group=yes
23746 elif echo "$ld_ver" | grep GNU > /dev/null; then
23747 comdat_group=yes
23748 if test 0"$ld_date" -lt 20050308; then
23749 if test -n "$ld_date"; then
23750 # If there was date string, but was earlier than 2005-03-08, fail
23751 comdat_group=no
23752 elif test "$ld_vers_major" -lt 2; then
23753 comdat_group=no
23754 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23755 comdat_group=no
23758 else
23759 case "${target}" in
23760 *-*-solaris2.1[1-9]*)
23761 comdat_group=no
23762 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23763 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23764 # version 1.688.
23766 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23767 # least ld version 1.2267.
23768 if test "$ld_vers_major" -gt 1; then
23769 comdat_group=yes
23770 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23771 comdat_group=yes
23772 elif test "$ld_vers_minor" -ge 2267; then
23773 comdat_group=yes
23777 # Assume linkers other than GNU ld don't support COMDAT group.
23778 comdat_group=no
23780 esac
23782 # Allow overriding the automatic COMDAT group tests above.
23783 # Check whether --enable-comdat was given.
23784 if test "${enable_comdat+set}" = set; then :
23785 enableval=$enable_comdat; comdat_group="$enable_comdat"
23788 if test $comdat_group = no; then
23789 gcc_cv_as_comdat_group=no
23790 gcc_cv_as_comdat_group_percent=no
23791 gcc_cv_as_comdat_group_group=no
23794 cat >>confdefs.h <<_ACEOF
23795 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23796 || test $gcc_cv_as_comdat_group_percent = yes \
23797 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23798 _ACEOF
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23802 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23803 if test "${gcc_cv_as_discriminator+set}" = set; then :
23804 $as_echo_n "(cached) " >&6
23805 else
23806 gcc_cv_as_discriminator=no
23807 if test $in_tree_gas = yes; then
23808 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23809 then gcc_cv_as_discriminator=yes
23811 elif test x$gcc_cv_as != x; then
23812 $as_echo ' .text
23813 .file 1 "conf.c"
23814 .loc 1 1 0 discriminator 1' > conftest.s
23815 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23817 (eval $ac_try) 2>&5
23818 ac_status=$?
23819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23820 test $ac_status = 0; }; }
23821 then
23822 gcc_cv_as_discriminator=yes
23823 else
23824 echo "configure: failed program was" >&5
23825 cat conftest.s >&5
23827 rm -f conftest.o conftest.s
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23831 $as_echo "$gcc_cv_as_discriminator" >&6; }
23832 if test $gcc_cv_as_discriminator = yes; then
23834 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23839 # Thread-local storage - the check is heavily parameterized.
23840 conftest_s=
23841 tls_first_major=
23842 tls_first_minor=
23843 tls_as_opt=
23844 case "$target" in
23845 alpha*-*-*)
23846 conftest_s='
23847 .section ".tdata","awT",@progbits
23848 foo: .long 25
23849 .text
23850 ldq $27,__tls_get_addr($29) !literal!1
23851 lda $16,foo($29) !tlsgd!1
23852 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23853 ldq $27,__tls_get_addr($29) !literal!2
23854 lda $16,foo($29) !tlsldm!2
23855 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23856 ldq $1,foo($29) !gotdtprel
23857 ldah $2,foo($29) !dtprelhi
23858 lda $3,foo($2) !dtprello
23859 lda $4,foo($29) !dtprel
23860 ldq $1,foo($29) !gottprel
23861 ldah $2,foo($29) !tprelhi
23862 lda $3,foo($2) !tprello
23863 lda $4,foo($29) !tprel'
23864 tls_first_major=2
23865 tls_first_minor=13
23866 tls_as_opt=--fatal-warnings
23868 arc*-*-*)
23869 conftest_s='
23870 add_s r0,r0, @foo@tpoff'
23871 tls_first_major=2
23872 tls_first_minor=23
23874 cris-*-*|crisv32-*-*)
23875 conftest_s='
23876 .section ".tdata","awT",@progbits
23877 x: .long 25
23878 .text
23879 move.d x:IE,$r10
23880 nop'
23881 tls_first_major=2
23882 tls_first_minor=20
23883 tls_as_opt=--fatal-warnings
23885 frv*-*-*)
23886 conftest_s='
23887 .section ".tdata","awT",@progbits
23888 x: .long 25
23889 .text
23890 call #gettlsoff(x)'
23891 tls_first_major=2
23892 tls_first_minor=14
23894 hppa*-*-linux*)
23895 conftest_s='
23896 t1: .reg %r20
23897 t2: .reg %r21
23898 gp: .reg %r19
23899 .section ".tdata","awT",@progbits
23900 foo: .long 25
23901 .text
23902 .align 4
23903 addil LT%foo-$tls_gdidx$,gp
23904 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23905 b __tls_get_addr
23907 addil LT%foo-$tls_ldidx$,gp
23908 b __tls_get_addr
23909 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23910 addil LR%foo-$tls_dtpoff$,%ret0
23911 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23912 mfctl %cr27,%t1
23913 addil LT%foo-$tls_ieoff$,gp
23914 ldw RT%foo-$tls_ieoff$(%r1),%t2
23915 add %t1,%t2,%t3
23916 mfctl %cr27,%t1
23917 addil LR%foo-$tls_leoff$,%t1
23918 ldo RR%foo-$tls_leoff$(%r1),%t2'
23919 tls_first_major=2
23920 tls_first_minor=15
23921 tls_as_opt=--fatal-warnings
23923 arm*-*-*)
23924 conftest_s='
23925 .section ".tdata","awT",%progbits
23926 foo: .long 25
23927 .text
23928 .word foo(gottpoff)
23929 .word foo(tpoff)
23930 .word foo(tlsgd)
23931 .word foo(tlsldm)
23932 .word foo(tlsldo)'
23933 tls_first_major=2
23934 tls_first_minor=17
23936 i[34567]86-*-* | x86_64-*-*)
23937 case "$target" in
23938 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23939 on_solaris=yes
23942 on_solaris=no
23944 esac
23945 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23946 conftest_s='
23947 .section .tdata,"awt",@progbits'
23948 tls_first_major=0
23949 tls_first_minor=0
23950 tls_section_flag=t
23952 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23954 else
23955 conftest_s='
23956 .section ".tdata","awT",@progbits'
23957 tls_first_major=2
23958 tls_first_minor=14
23959 tls_section_flag=T
23960 tls_as_opt="--fatal-warnings"
23962 case "$target" in
23963 i[34567]86-*-*)
23964 conftest_s="$conftest_s
23965 foo: .long 25
23966 .text
23967 movl %gs:0, %eax
23968 leal foo@tlsgd(,%ebx,1), %eax
23969 leal foo@tlsldm(%ebx), %eax
23970 leal foo@dtpoff(%eax), %edx
23971 movl foo@gottpoff(%ebx), %eax
23972 subl foo@gottpoff(%ebx), %eax
23973 addl foo@gotntpoff(%ebx), %eax
23974 movl foo@indntpoff, %eax
23975 movl \$foo@tpoff, %eax
23976 subl \$foo@tpoff, %eax
23977 leal foo@ntpoff(%ecx), %eax"
23979 x86_64-*-*)
23980 if test x$on_solaris = xyes; then
23981 case $gas_flag in
23982 yes) tls_as_opt="$tls_as_opt --64" ;;
23983 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23984 esac
23986 conftest_s="$conftest_s
23987 foo: .long 25
23988 .text
23989 movq %fs:0, %rax
23990 leaq foo@tlsgd(%rip), %rdi
23991 leaq foo@tlsld(%rip), %rdi
23992 leaq foo@dtpoff(%rax), %rdx
23993 movq foo@gottpoff(%rip), %rax
23994 movq \$foo@tpoff, %rax"
23996 esac
23998 ia64-*-*)
23999 conftest_s='
24000 .section ".tdata","awT",@progbits
24001 foo: data8 25
24002 .text
24003 addl r16 = @ltoff(@dtpmod(foo#)), gp
24004 addl r17 = @ltoff(@dtprel(foo#)), gp
24005 addl r18 = @ltoff(@tprel(foo#)), gp
24006 addl r19 = @dtprel(foo#), gp
24007 adds r21 = @dtprel(foo#), r13
24008 movl r23 = @dtprel(foo#)
24009 addl r20 = @tprel(foo#), gp
24010 adds r22 = @tprel(foo#), r13
24011 movl r24 = @tprel(foo#)'
24012 tls_first_major=2
24013 tls_first_minor=13
24014 tls_as_opt=--fatal-warnings
24016 microblaze*-*-*)
24017 conftest_s='
24018 .section .tdata,"awT",@progbits
24020 .word 2
24021 .text
24022 addik r5,r20,x@TLSGD
24023 addik r5,r20,x@TLSLDM'
24024 tls_first_major=2
24025 tls_first_minor=20
24026 tls_as_opt='--fatal-warnings'
24028 mips*-*-*)
24029 conftest_s='
24030 .section .tdata,"awT",@progbits
24032 .word 2
24033 .text
24034 addiu $4, $28, %tlsgd(x)
24035 addiu $4, $28, %tlsldm(x)
24036 lui $4, %dtprel_hi(x)
24037 addiu $4, $4, %dtprel_lo(x)
24038 lw $4, %gottprel(x)($28)
24039 lui $4, %tprel_hi(x)
24040 addiu $4, $4, %tprel_lo(x)'
24041 tls_first_major=2
24042 tls_first_minor=16
24043 tls_as_opt='-32 --fatal-warnings'
24045 m68k-*-*)
24046 conftest_s='
24047 .section .tdata,"awT",@progbits
24049 .word 2
24050 .text
24051 foo:
24052 move.l x@TLSGD(%a5),%a0
24053 move.l x@TLSLDM(%a5),%a0
24054 move.l x@TLSLDO(%a5),%a0
24055 move.l x@TLSIE(%a5),%a0
24056 move.l x@TLSLE(%a5),%a0'
24057 tls_first_major=2
24058 tls_first_minor=19
24059 tls_as_opt='--fatal-warnings'
24061 nios2-*-*)
24062 conftest_s='
24063 .section ".tdata","awT",@progbits'
24064 tls_first_major=2
24065 tls_first_minor=23
24066 tls_as_opt="--fatal-warnings"
24068 aarch64*-*-*)
24069 conftest_s='
24070 .section ".tdata","awT",%progbits
24071 foo: .long 25
24072 .text
24073 adrp x0, :tlsgd:x
24074 add x0, x0, #:tlsgd_lo12:x
24075 bl __tls_get_addr
24076 nop'
24077 tls_first_major=2
24078 tls_first_minor=20
24079 tls_as_opt='--fatal-warnings'
24081 powerpc-ibm-aix*)
24082 conftest_s='
24083 .extern __get_tpointer
24084 .toc
24085 LC..1:
24086 .tc a[TC],a[TL]@le
24087 .csect .text[PR]
24088 .tlstest:
24089 lwz 9,LC..1(2)
24090 bla __get_tpointer
24091 lwzx 3,9,3
24092 .globl a
24093 .csect a[TL],4
24095 .space 4'
24096 tls_first_major=0
24097 tls_first_minor=0
24099 powerpc64*-*-*)
24100 conftest_s='
24101 .section ".tdata","awT",@progbits
24102 .align 3
24103 ld0: .space 8
24104 ld1: .space 8
24105 x1: .space 8
24106 x2: .space 8
24107 x3: .space 8
24108 .text
24109 addi 3,2,ld0@got@tlsgd
24110 bl .__tls_get_addr
24112 addi 3,2,ld1@toc
24113 bl .__tls_get_addr
24115 addi 3,2,x1@got@tlsld
24116 bl .__tls_get_addr
24118 addi 9,3,x1@dtprel
24119 bl .__tls_get_addr
24121 addis 9,3,x2@dtprel@ha
24122 addi 9,9,x2@dtprel@l
24123 bl .__tls_get_addr
24125 ld 9,x3@got@dtprel(2)
24126 add 9,9,3
24127 bl .__tls_get_addr
24128 nop'
24129 tls_first_major=2
24130 tls_first_minor=14
24131 tls_as_opt="-a64 --fatal-warnings"
24133 powerpc*-*-*)
24134 conftest_s='
24135 .section ".tdata","awT",@progbits
24136 .align 2
24137 ld0: .space 4
24138 ld1: .space 4
24139 x1: .space 4
24140 x2: .space 4
24141 x3: .space 4
24142 .text
24143 addi 3,31,ld0@got@tlsgd
24144 bl __tls_get_addr
24145 addi 3,31,x1@got@tlsld
24146 bl __tls_get_addr
24147 addi 9,3,x1@dtprel
24148 addis 9,3,x2@dtprel@ha
24149 addi 9,9,x2@dtprel@l
24150 lwz 9,x3@got@tprel(31)
24151 add 9,9,x@tls
24152 addi 9,2,x1@tprel
24153 addis 9,2,x2@tprel@ha
24154 addi 9,9,x2@tprel@l'
24155 tls_first_major=2
24156 tls_first_minor=14
24157 tls_as_opt="-a32 --fatal-warnings"
24159 riscv*-*-*)
24160 conftest_s='
24161 .section .tdata,"awT",@progbits
24162 x: .word 2
24163 .text
24164 la.tls.gd a0,x
24165 call __tls_get_addr'
24166 tls_first_major=2
24167 tls_first_minor=21
24168 tls_as_opt='--fatal-warnings'
24170 s390-*-*)
24171 conftest_s='
24172 .section ".tdata","awT",@progbits
24173 foo: .long 25
24174 .text
24175 .long foo@TLSGD
24176 .long foo@TLSLDM
24177 .long foo@DTPOFF
24178 .long foo@NTPOFF
24179 .long foo@GOTNTPOFF
24180 .long foo@INDNTPOFF
24181 l %r1,foo@GOTNTPOFF(%r12)
24182 l %r1,0(%r1):tls_load:foo
24183 bas %r14,0(%r1,%r13):tls_gdcall:foo
24184 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24185 tls_first_major=2
24186 tls_first_minor=14
24187 tls_as_opt="-m31 --fatal-warnings"
24189 s390x-*-*)
24190 conftest_s='
24191 .section ".tdata","awT",@progbits
24192 foo: .long 25
24193 .text
24194 .quad foo@TLSGD
24195 .quad foo@TLSLDM
24196 .quad foo@DTPOFF
24197 .quad foo@NTPOFF
24198 .quad foo@GOTNTPOFF
24199 lg %r1,foo@GOTNTPOFF(%r12)
24200 larl %r1,foo@INDNTPOFF
24201 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24202 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24203 tls_first_major=2
24204 tls_first_minor=14
24205 tls_as_opt="-m64 -Aesame --fatal-warnings"
24207 sh-*-* | sh[123456789lbe]*-*-*)
24208 conftest_s='
24209 .section ".tdata","awT",@progbits
24210 foo: .long 25
24211 .text
24212 .long foo@TLSGD
24213 .long foo@TLSLDM
24214 .long foo@DTPOFF
24215 .long foo@GOTTPOFF
24216 .long foo@TPOFF'
24217 tls_first_major=2
24218 tls_first_minor=13
24219 tls_as_opt=--fatal-warnings
24221 sparc*-*-*)
24222 case "$target" in
24223 sparc*-sun-solaris2.*)
24224 on_solaris=yes
24227 on_solaris=no
24229 esac
24230 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24231 conftest_s='
24232 .section ".tdata",#alloc,#write,#tls'
24233 tls_first_major=0
24234 tls_first_minor=0
24235 else
24236 conftest_s='
24237 .section ".tdata","awT",@progbits'
24238 tls_first_major=2
24239 tls_first_minor=14
24240 tls_as_opt="-32 --fatal-warnings"
24242 conftest_s="$conftest_s
24243 foo: .long 25
24244 .text
24245 sethi %tgd_hi22(foo), %o0
24246 add %o0, %tgd_lo10(foo), %o1
24247 add %l7, %o1, %o0, %tgd_add(foo)
24248 call __tls_get_addr, %tgd_call(foo)
24249 sethi %tldm_hi22(foo), %l1
24250 add %l1, %tldm_lo10(foo), %l2
24251 add %l7, %l2, %o0, %tldm_add(foo)
24252 call __tls_get_addr, %tldm_call(foo)
24253 sethi %tldo_hix22(foo), %l3
24254 xor %l3, %tldo_lox10(foo), %l4
24255 add %o0, %l4, %l5, %tldo_add(foo)
24256 sethi %tie_hi22(foo), %o3
24257 add %o3, %tie_lo10(foo), %o3
24258 ld [%l7 + %o3], %o2, %tie_ld(foo)
24259 add %g7, %o2, %o4, %tie_add(foo)
24260 sethi %tle_hix22(foo), %l1
24261 xor %l1, %tle_lox10(foo), %o5
24262 ld [%g7 + %o5], %o1"
24264 tilepro*-*-*)
24265 conftest_s='
24266 .section ".tdata","awT",@progbits
24267 foo: .long 25
24268 .text
24269 addli r0, zero, tls_gd(foo)
24270 auli r0, zero, tls_gd_ha16(foo)
24271 addli r0, r0, tls_gd_lo16(foo)
24272 jal __tls_get_addr
24273 addli r0, zero, tls_ie(foo)
24274 auli r0, r0, tls_ie_ha16(foo)
24275 addli r0, r0, tls_ie_lo16(foo)'
24276 tls_first_major=2
24277 tls_first_minor=22
24278 tls_as_opt="--fatal-warnings"
24280 tilegx*-*-*)
24281 conftest_s='
24282 .section ".tdata","awT",@progbits
24283 foo: .long 25
24284 .text
24285 shl16insli r0, zero, hw0_last_tls_gd(foo)
24286 shl16insli r0, zero, hw1_last_tls_gd(foo)
24287 shl16insli r0, r0, hw0_tls_gd(foo)
24288 jal __tls_get_addr
24289 shl16insli r0, zero, hw1_last_tls_ie(foo)
24290 shl16insli r0, r0, hw0_tls_ie(foo)'
24291 tls_first_major=2
24292 tls_first_minor=22
24293 tls_as_opt="--fatal-warnings"
24295 xtensa*-*-*)
24296 conftest_s='
24297 .section ".tdata","awT",@progbits
24298 foo: .long 25
24299 .text
24300 movi a8, foo@TLSFUNC
24301 movi a10, foo@TLSARG
24302 callx8.tls a8, foo@TLSCALL'
24303 tls_first_major=2
24304 tls_first_minor=19
24306 esac
24307 set_have_as_tls=no
24308 if test "x$enable_tls" = xno ; then
24309 : # TLS explicitly disabled.
24310 elif test "x$enable_tls" = xyes ; then
24311 set_have_as_tls=yes # TLS explicitly enabled.
24312 elif test -z "$tls_first_major"; then
24313 : # If we don't have a check, assume no support.
24314 else
24315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24316 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24317 if test "${gcc_cv_as_tls+set}" = set; then :
24318 $as_echo_n "(cached) " >&6
24319 else
24320 gcc_cv_as_tls=no
24321 if test $in_tree_gas = yes; then
24322 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24323 then gcc_cv_as_tls=yes
24325 elif test x$gcc_cv_as != x; then
24326 $as_echo "$conftest_s" > conftest.s
24327 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24329 (eval $ac_try) 2>&5
24330 ac_status=$?
24331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24332 test $ac_status = 0; }; }
24333 then
24334 gcc_cv_as_tls=yes
24335 else
24336 echo "configure: failed program was" >&5
24337 cat conftest.s >&5
24339 rm -f conftest.o conftest.s
24342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24343 $as_echo "$gcc_cv_as_tls" >&6; }
24344 if test $gcc_cv_as_tls = yes; then
24345 set_have_as_tls=yes
24349 if test $set_have_as_tls = yes ; then
24351 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24355 # Target-specific assembler checks.
24357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24358 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24359 gcc_cv_ld_static_dynamic=no
24360 gcc_cv_ld_static_option='-Bstatic'
24361 gcc_cv_ld_dynamic_option='-Bdynamic'
24362 if test $in_tree_ld = yes ; then
24363 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
24364 gcc_cv_ld_static_dynamic=yes
24366 elif test x$gcc_cv_ld != x; then
24367 # Check if linker supports -Bstatic/-Bdynamic option
24368 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
24369 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
24370 gcc_cv_ld_static_dynamic=yes
24371 else
24372 case "$target" in
24373 # AIX ld uses -b flags
24374 *-*-aix4.[23]* | *-*-aix[5-9]*)
24375 gcc_cv_ld_static_dynamic=yes
24376 gcc_cv_ld_static_option="-bstatic"
24377 gcc_cv_ld_dynamic_option="-bdynamic"
24379 # HP-UX ld uses -a flags to select between shared and archive.
24380 *-*-hpux*)
24381 if test x"$gnu_ld" = xno; then
24382 gcc_cv_ld_static_dynamic=yes
24383 gcc_cv_ld_static_option="-aarchive_shared"
24384 gcc_cv_ld_dynamic_option="-adefault"
24387 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24388 *-*-solaris2*)
24389 gcc_cv_ld_static_dynamic=yes
24391 esac
24394 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24396 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24399 cat >>confdefs.h <<_ACEOF
24400 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24401 _ACEOF
24404 cat >>confdefs.h <<_ACEOF
24405 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24406 _ACEOF
24409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24410 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24412 if test x"$demangler_in_ld" = xyes; then
24413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24414 $as_echo_n "checking linker --demangle support... " >&6; }
24415 gcc_cv_ld_demangle=no
24416 if test $in_tree_ld = yes; then
24417 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 \
24418 gcc_cv_ld_demangle=yes
24420 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24421 # Check if the GNU linker supports --demangle option
24422 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24423 gcc_cv_ld_demangle=yes
24426 if test x"$gcc_cv_ld_demangle" = xyes; then
24428 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24432 $as_echo "$gcc_cv_ld_demangle" >&6; }
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24436 $as_echo_n "checking linker plugin support... " >&6; }
24437 gcc_cv_lto_plugin=0
24438 if test -f liblto_plugin.la; then
24439 save_ld_ver="$ld_ver"
24440 save_ld_vers_major="$ld_vers_major"
24441 save_ld_vers_minor="$ld_vers_minor"
24442 save_ld_is_gold="$ld_is_gold"
24444 ld_is_gold=no
24446 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24447 ld_ver="GNU ld"
24448 # FIXME: ld_is_gold?
24449 ld_vers_major="$gcc_cv_gld_major_version"
24450 ld_vers_minor="$gcc_cv_gld_minor_version"
24451 else
24452 # Determine plugin linker version.
24453 # FIXME: Partial duplicate from above, generalize.
24454 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24455 if echo "$ld_ver" | grep GNU > /dev/null; then
24456 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24457 ld_is_gold=yes
24458 ld_vers=`echo $ld_ver | sed -n \
24459 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24460 else
24461 ld_vers=`echo $ld_ver | sed -n \
24462 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24464 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24465 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24469 # Determine plugin support.
24470 if echo "$ld_ver" | grep GNU > /dev/null; then
24471 # Require GNU ld or gold 2.21+ for plugin support by default.
24472 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24473 gcc_cv_lto_plugin=2
24474 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24475 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24476 gcc_cv_lto_plugin=1
24480 ld_ver="$save_ld_ver"
24481 ld_vers_major="$save_ld_vers_major"
24482 ld_vers_minor="$save_ld_vers_minor"
24483 ld_is_gold="$save_ld_is_gold"
24486 cat >>confdefs.h <<_ACEOF
24487 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24488 _ACEOF
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24491 $as_echo "$gcc_cv_lto_plugin" >&6; }
24493 # Target OS-specific assembler checks.
24495 case "$target_os" in
24496 darwin*)
24497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24498 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24499 if test "${gcc_cv_as_mmacosx_version_min+set}" = set; then :
24500 $as_echo_n "(cached) " >&6
24501 else
24502 gcc_cv_as_mmacosx_version_min=no
24503 if test x$gcc_cv_as != x; then
24504 $as_echo '.text' > conftest.s
24505 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
24506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24507 (eval $ac_try) 2>&5
24508 ac_status=$?
24509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24510 test $ac_status = 0; }; }
24511 then
24512 gcc_cv_as_mmacosx_version_min=yes
24513 else
24514 echo "configure: failed program was" >&5
24515 cat conftest.s >&5
24517 rm -f conftest.o conftest.s
24520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
24521 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24522 if test $gcc_cv_as_mmacosx_version_min = yes; then
24524 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24529 esac
24531 # Target CPU-specific assembler checks.
24533 case "$target" in
24534 aarch64*-*-*)
24535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24536 $as_echo_n "checking assembler for -mabi option... " >&6; }
24537 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24538 $as_echo_n "(cached) " >&6
24539 else
24540 gcc_cv_as_aarch64_mabi=no
24541 if test x$gcc_cv_as != x; then
24542 $as_echo '.text' > conftest.s
24543 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24545 (eval $ac_try) 2>&5
24546 ac_status=$?
24547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24548 test $ac_status = 0; }; }
24549 then
24550 gcc_cv_as_aarch64_mabi=yes
24551 else
24552 echo "configure: failed program was" >&5
24553 cat conftest.s >&5
24555 rm -f conftest.o conftest.s
24558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24559 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24562 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24564 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24566 else
24567 if test x$with_abi = xilp32; then
24568 as_fn_error "Assembler does not support -mabi=ilp32.\
24569 Upgrade the Assembler." "$LINENO" 5
24571 if test x"$with_multilib_list" = xdefault; then
24572 TM_MULTILIB_CONFIG=lp64
24573 else
24574 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24575 for aarch64_multilib in ${aarch64_multilibs}; do
24576 case ${aarch64_multilib} in
24577 ilp32)
24578 as_fn_error "Assembler does not support -mabi=ilp32.\
24579 Upgrade the Assembler." "$LINENO" 5
24583 esac
24584 done
24587 # Check if we have binutils support for relocations types needed by -fpic
24588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24589 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24590 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24591 $as_echo_n "(cached) " >&6
24592 else
24593 gcc_cv_as_aarch64_picreloc=no
24594 if test x$gcc_cv_as != x; then
24595 $as_echo '
24596 .text
24597 ldr x0, [x2, #:gotpage_lo15:globalsym]
24598 ' > conftest.s
24599 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_aarch64_picreloc=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_aarch64_picreloc" >&5
24615 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24616 if test $gcc_cv_as_aarch64_picreloc = yes; then
24618 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24622 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24623 # Check whether --enable-fix-cortex-a53-835769 was given.
24624 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24625 enableval=$enable_fix_cortex_a53_835769;
24626 case $enableval in
24627 yes)
24628 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24633 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24634 Valid choices are 'yes' and 'no'." "$LINENO" 5
24637 esac
24641 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24642 # Check whether --enable-fix-cortex-a53-843419 was given.
24643 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24644 enableval=$enable_fix_cortex_a53_843419;
24645 case $enableval in
24646 yes)
24647 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24652 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24653 Valid choices are 'yes' and 'no'." "$LINENO" 5
24656 esac
24662 # All TARGET_ABI_OSF targets.
24663 alpha*-*-linux* | alpha*-*-*bsd*)
24664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24665 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24666 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24667 $as_echo_n "(cached) " >&6
24668 else
24669 gcc_cv_as_alpha_explicit_relocs=no
24670 if test $in_tree_gas = yes; then
24671 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24672 then gcc_cv_as_alpha_explicit_relocs=yes
24674 elif test x$gcc_cv_as != x; then
24675 $as_echo ' .set nomacro
24676 .text
24677 extbl $3, $2, $3 !lituse_bytoff!1
24678 ldq $2, a($29) !literal!1
24679 ldq $4, b($29) !literal!2
24680 ldq_u $3, 0($2) !lituse_base!1
24681 ldq $27, f($29) !literal!5
24682 jsr $26, ($27), f !lituse_jsr!5
24683 ldah $29, 0($26) !gpdisp!3
24684 lda $0, c($29) !gprel
24685 ldah $1, d($29) !gprelhigh
24686 lda $1, d($1) !gprellow
24687 lda $29, 0($29) !gpdisp!3' > conftest.s
24688 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24690 (eval $ac_try) 2>&5
24691 ac_status=$?
24692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24693 test $ac_status = 0; }; }
24694 then
24695 gcc_cv_as_alpha_explicit_relocs=yes
24696 else
24697 echo "configure: failed program was" >&5
24698 cat conftest.s >&5
24700 rm -f conftest.o conftest.s
24703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24704 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24705 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24707 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24712 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24713 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24714 $as_echo_n "(cached) " >&6
24715 else
24716 gcc_cv_as_alpha_jsrdirect_relocs=no
24717 if test $in_tree_gas = yes; then
24718 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24719 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24721 elif test x$gcc_cv_as != x; then
24722 $as_echo ' .set nomacro
24723 .text
24724 ldq $27, a($29) !literal!1
24725 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24726 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24728 (eval $ac_try) 2>&5
24729 ac_status=$?
24730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24731 test $ac_status = 0; }; }
24732 then
24733 gcc_cv_as_alpha_jsrdirect_relocs=yes
24734 else
24735 echo "configure: failed program was" >&5
24736 cat conftest.s >&5
24738 rm -f conftest.o conftest.s
24741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24742 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24743 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24745 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24751 avr-*-*)
24752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24753 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24754 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24755 $as_echo_n "(cached) " >&6
24756 else
24757 gcc_cv_as_avr_mlink_relax=no
24758 if test x$gcc_cv_as != x; then
24759 $as_echo '.text' > conftest.s
24760 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24762 (eval $ac_try) 2>&5
24763 ac_status=$?
24764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24765 test $ac_status = 0; }; }
24766 then
24767 gcc_cv_as_avr_mlink_relax=yes
24768 else
24769 echo "configure: failed program was" >&5
24770 cat conftest.s >&5
24772 rm -f conftest.o conftest.s
24775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24776 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24777 if test $gcc_cv_as_avr_mlink_relax = yes; then
24779 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24785 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24786 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24787 $as_echo_n "(cached) " >&6
24788 else
24789 gcc_cv_as_avr_mrmw=no
24790 if test x$gcc_cv_as != x; then
24791 $as_echo '.text' > conftest.s
24792 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24794 (eval $ac_try) 2>&5
24795 ac_status=$?
24796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24797 test $ac_status = 0; }; }
24798 then
24799 gcc_cv_as_avr_mrmw=yes
24800 else
24801 echo "configure: failed program was" >&5
24802 cat conftest.s >&5
24804 rm -f conftest.o conftest.s
24807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24808 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24809 if test $gcc_cv_as_avr_mrmw = yes; then
24811 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24817 cris-*-*)
24818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24819 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24820 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24821 $as_echo_n "(cached) " >&6
24822 else
24823 gcc_cv_as_cris_no_mul_bug=no
24824 if test $in_tree_gas = yes; then
24825 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24826 then gcc_cv_as_cris_no_mul_bug=yes
24828 elif test x$gcc_cv_as != x; then
24829 $as_echo '.text' > conftest.s
24830 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24832 (eval $ac_try) 2>&5
24833 ac_status=$?
24834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24835 test $ac_status = 0; }; }
24836 then
24837 gcc_cv_as_cris_no_mul_bug=yes
24838 else
24839 echo "configure: failed program was" >&5
24840 cat conftest.s >&5
24842 rm -f conftest.o conftest.s
24845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24846 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24847 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24849 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24855 sparc*-*-*)
24856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24857 $as_echo_n "checking assembler for .register... " >&6; }
24858 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24859 $as_echo_n "(cached) " >&6
24860 else
24861 gcc_cv_as_sparc_register_op=no
24862 if test x$gcc_cv_as != x; then
24863 $as_echo '.register %g2, #scratch' > conftest.s
24864 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24866 (eval $ac_try) 2>&5
24867 ac_status=$?
24868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24869 test $ac_status = 0; }; }
24870 then
24871 gcc_cv_as_sparc_register_op=yes
24872 else
24873 echo "configure: failed program was" >&5
24874 cat conftest.s >&5
24876 rm -f conftest.o conftest.s
24879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24880 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24881 if test $gcc_cv_as_sparc_register_op = yes; then
24883 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24889 $as_echo_n "checking assembler for -relax option... " >&6; }
24890 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24891 $as_echo_n "(cached) " >&6
24892 else
24893 gcc_cv_as_sparc_relax=no
24894 if test x$gcc_cv_as != x; then
24895 $as_echo '.text' > conftest.s
24896 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24898 (eval $ac_try) 2>&5
24899 ac_status=$?
24900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24901 test $ac_status = 0; }; }
24902 then
24903 gcc_cv_as_sparc_relax=yes
24904 else
24905 echo "configure: failed program was" >&5
24906 cat conftest.s >&5
24908 rm -f conftest.o conftest.s
24911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24912 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24913 if test $gcc_cv_as_sparc_relax = yes; then
24915 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24921 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24922 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24923 $as_echo_n "(cached) " >&6
24924 else
24925 gcc_cv_as_sparc_gotdata_op=no
24926 if test x$gcc_cv_as != x; then
24927 $as_echo '.text
24928 .align 4
24929 foo:
24931 bar:
24932 sethi %gdop_hix22(foo), %g1
24933 xor %g1, %gdop_lox10(foo), %g1
24934 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24935 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24937 (eval $ac_try) 2>&5
24938 ac_status=$?
24939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24940 test $ac_status = 0; }; }
24941 then
24942 if test x$gcc_cv_ld != x \
24943 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24944 if test x$gcc_cv_objdump != x; then
24945 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24946 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24947 gcc_cv_as_sparc_gotdata_op=no
24948 else
24949 gcc_cv_as_sparc_gotdata_op=yes
24953 rm -f conftest
24954 else
24955 echo "configure: failed program was" >&5
24956 cat conftest.s >&5
24958 rm -f conftest.o conftest.s
24961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24962 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24963 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24965 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24971 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24972 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24973 $as_echo_n "(cached) " >&6
24974 else
24975 gcc_cv_as_sparc_ua_pcrel=no
24976 if test x$gcc_cv_as != x; then
24977 $as_echo '.text
24978 foo:
24980 .data
24981 .align 4
24982 .byte 0
24983 .uaword %r_disp32(foo)' > conftest.s
24984 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24986 (eval $ac_try) 2>&5
24987 ac_status=$?
24988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24989 test $ac_status = 0; }; }
24990 then
24991 if test x$gcc_cv_ld != x \
24992 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24993 gcc_cv_as_sparc_ua_pcrel=yes
24995 rm -f conftest
24996 else
24997 echo "configure: failed program was" >&5
24998 cat conftest.s >&5
25000 rm -f conftest.o conftest.s
25003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25004 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25005 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25007 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25011 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25012 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
25013 $as_echo_n "(cached) " >&6
25014 else
25015 gcc_cv_as_sparc_ua_pcrel_hidden=no
25016 if test x$gcc_cv_as != x; then
25017 $as_echo '.data
25018 .align 4
25019 .byte 0x31
25020 .uaword %r_disp32(foo)
25021 .byte 0x32, 0x33, 0x34
25022 .global foo
25023 .hidden foo
25024 foo:
25025 .skip 4' > conftest.s
25026 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25028 (eval $ac_try) 2>&5
25029 ac_status=$?
25030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25031 test $ac_status = 0; }; }
25032 then
25033 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25034 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
25035 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
25036 | grep ' 31000000 07323334' > /dev/null 2>&1; then
25037 if $gcc_cv_objdump -R conftest 2> /dev/null \
25038 | grep 'DISP32' > /dev/null 2>&1; then
25040 else
25041 gcc_cv_as_sparc_ua_pcrel_hidden=yes
25044 rm -f conftest
25045 else
25046 echo "configure: failed program was" >&5
25047 cat conftest.s >&5
25049 rm -f conftest.o conftest.s
25052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25053 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25054 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25056 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25062 # unaligned pcrel relocs
25064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25065 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25066 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25067 $as_echo_n "(cached) " >&6
25068 else
25069 gcc_cv_as_sparc_offsetable_lo10=no
25070 if test x$gcc_cv_as != x; then
25071 $as_echo '.text
25072 or %g1, %lo(ab) + 12, %g1
25073 or %g1, %lo(ab + 12), %g1' > conftest.s
25074 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25076 (eval $ac_try) 2>&5
25077 ac_status=$?
25078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25079 test $ac_status = 0; }; }
25080 then
25081 if test x$gcc_cv_objdump != x \
25082 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25083 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25084 gcc_cv_as_sparc_offsetable_lo10=yes
25086 else
25087 echo "configure: failed program was" >&5
25088 cat conftest.s >&5
25090 rm -f conftest.o conftest.s
25093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25094 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25095 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25097 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25103 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25104 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25105 $as_echo_n "(cached) " >&6
25106 else
25107 gcc_cv_as_sparc_fmaf=no
25108 if test x$gcc_cv_as != x; then
25109 $as_echo '.text
25110 .register %g2, #scratch
25111 .register %g3, #scratch
25112 .align 4
25113 fmaddd %f0, %f2, %f4, %f6
25114 addxccc %g1, %g2, %g3
25115 fsrl32 %f2, %f4, %f8
25116 fnaddd %f10, %f12, %f14' > conftest.s
25117 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25119 (eval $ac_try) 2>&5
25120 ac_status=$?
25121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25122 test $ac_status = 0; }; }
25123 then
25124 gcc_cv_as_sparc_fmaf=yes
25125 else
25126 echo "configure: failed program was" >&5
25127 cat conftest.s >&5
25129 rm -f conftest.o conftest.s
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25133 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25134 if test $gcc_cv_as_sparc_fmaf = yes; then
25136 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25142 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25143 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25144 $as_echo_n "(cached) " >&6
25145 else
25146 gcc_cv_as_sparc_sparc4=no
25147 if test x$gcc_cv_as != x; then
25148 $as_echo '.text
25149 .register %g2, #scratch
25150 .register %g3, #scratch
25151 .align 4
25152 cxbe %g2, %g3, 1f
25153 1: cwbneg %g2, %g3, 1f
25154 1: sha1
25156 aes_kexpand0 %f4, %f6, %f8
25157 des_round %f38, %f40, %f42, %f44
25158 camellia_f %f54, %f56, %f58, %f60
25159 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25160 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25162 (eval $ac_try) 2>&5
25163 ac_status=$?
25164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25165 test $ac_status = 0; }; }
25166 then
25167 gcc_cv_as_sparc_sparc4=yes
25168 else
25169 echo "configure: failed program was" >&5
25170 cat conftest.s >&5
25172 rm -f conftest.o conftest.s
25175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25176 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25177 if test $gcc_cv_as_sparc_sparc4 = yes; then
25179 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25185 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25186 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25187 $as_echo_n "(cached) " >&6
25188 else
25189 gcc_cv_as_sparc_sparc5=no
25190 if test x$gcc_cv_as != x; then
25191 $as_echo '.text
25192 .register %g2, #scratch
25193 .register %g3, #scratch
25194 .align 4
25195 subxc %g1, %g2, %g3
25196 fpadd8 %f0, %f2, %f4' > conftest.s
25197 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
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 then
25204 gcc_cv_as_sparc_sparc5=yes
25205 else
25206 echo "configure: failed program was" >&5
25207 cat conftest.s >&5
25209 rm -f conftest.o conftest.s
25212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25213 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25214 if test $gcc_cv_as_sparc_sparc5 = yes; then
25216 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25222 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25223 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25224 $as_echo_n "(cached) " >&6
25225 else
25226 gcc_cv_as_sparc_leon=no
25227 if test x$gcc_cv_as != x; then
25228 $as_echo '.text
25229 .register %g2, #scratch
25230 .register %g3, #scratch
25231 .align 4
25232 smac %g2, %g3, %g1
25233 umac %g2, %g3, %g1
25234 casa [%g2] 0xb, %g3, %g1' > conftest.s
25235 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25237 (eval $ac_try) 2>&5
25238 ac_status=$?
25239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25240 test $ac_status = 0; }; }
25241 then
25242 gcc_cv_as_sparc_leon=yes
25243 else
25244 echo "configure: failed program was" >&5
25245 cat conftest.s >&5
25247 rm -f conftest.o conftest.s
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25251 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25252 if test $gcc_cv_as_sparc_leon = yes; then
25254 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25260 i[34567]86-*-* | x86_64-*-*)
25261 case $target_os in
25262 cygwin*)
25263 # Full C++ conformance when using a shared libstdc++-v3 requires some
25264 # support from the Cygwin DLL, which in more recent versions exports
25265 # wrappers to aid in interposing and redirecting operators new, delete,
25266 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25267 # are configuring for a version of Cygwin that exports the wrappers.
25268 if test x$host = x$target && test x$host_cpu = xi686; then
25269 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25270 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25271 gcc_ac_cygwin_dll_wrappers=yes
25272 else
25273 gcc_ac_cygwin_dll_wrappers=no
25276 else
25277 # Can't check presence of libc functions during cross-compile, so
25278 # we just have to assume we're building for an up-to-date target.
25279 gcc_ac_cygwin_dll_wrappers=yes
25282 cat >>confdefs.h <<_ACEOF
25283 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25284 _ACEOF
25286 esac
25287 case $target_os in
25288 cygwin* | pe | mingw32*)
25289 # Recent binutils allows the three-operand form of ".comm" on PE. This
25290 # definition is used unconditionally to initialise the default state of
25291 # the target option variable that governs usage of the feature.
25292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25293 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25294 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25295 $as_echo_n "(cached) " >&6
25296 else
25297 gcc_cv_as_comm_has_align=no
25298 if test $in_tree_gas = yes; then
25299 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25300 then gcc_cv_as_comm_has_align=yes
25302 elif test x$gcc_cv_as != x; then
25303 $as_echo '.comm foo,1,32' > conftest.s
25304 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25306 (eval $ac_try) 2>&5
25307 ac_status=$?
25308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25309 test $ac_status = 0; }; }
25310 then
25311 gcc_cv_as_comm_has_align=yes
25312 else
25313 echo "configure: failed program was" >&5
25314 cat conftest.s >&5
25316 rm -f conftest.o conftest.s
25319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25320 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25324 cat >>confdefs.h <<_ACEOF
25325 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25326 _ACEOF
25328 # Used for DWARF 2 in PE
25329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25330 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25331 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25332 $as_echo_n "(cached) " >&6
25333 else
25334 gcc_cv_as_ix86_pe_secrel32=no
25335 if test $in_tree_gas = yes; then
25336 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25337 then gcc_cv_as_ix86_pe_secrel32=yes
25339 elif test x$gcc_cv_as != x; then
25340 $as_echo '.text
25341 foo: nop
25342 .data
25343 .secrel32 foo' > conftest.s
25344 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25346 (eval $ac_try) 2>&5
25347 ac_status=$?
25348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25349 test $ac_status = 0; }; }
25350 then
25351 if test x$gcc_cv_ld != x \
25352 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25353 gcc_cv_as_ix86_pe_secrel32=yes
25355 rm -f conftest
25356 else
25357 echo "configure: failed program was" >&5
25358 cat conftest.s >&5
25360 rm -f conftest.o conftest.s
25363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25364 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25365 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25367 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25371 # Test if the assembler supports the extended form of the .section
25372 # directive that specifies section alignment. LTO support uses this,
25373 # but normally only after installation, so we warn but don't fail the
25374 # configure if LTO is enabled but the assembler does not support it.
25375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25376 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25377 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25378 $as_echo_n "(cached) " >&6
25379 else
25380 gcc_cv_as_section_has_align=no
25381 if test $in_tree_gas = yes; then
25382 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25383 then gcc_cv_as_section_has_align=yes
25385 elif test x$gcc_cv_as != x; then
25386 $as_echo '.section lto_test,"dr0"' > conftest.s
25387 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25388 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25389 (eval $ac_try) 2>&5
25390 ac_status=$?
25391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25392 test $ac_status = 0; }; }
25393 then
25394 gcc_cv_as_section_has_align=yes
25395 else
25396 echo "configure: failed program was" >&5
25397 cat conftest.s >&5
25399 rm -f conftest.o conftest.s
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25403 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25406 if test x$gcc_cv_as_section_has_align != xyes; then
25407 case ",$enable_languages," in
25408 *,lto,*)
25409 { $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
25410 $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;}
25412 esac
25415 esac
25417 # Test if the assembler supports the section flag 'e' for specifying
25418 # an excluded section.
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25420 $as_echo_n "checking assembler for .section with e... " >&6; }
25421 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25422 $as_echo_n "(cached) " >&6
25423 else
25424 gcc_cv_as_section_has_e=no
25425 if test $in_tree_gas = yes; then
25426 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25427 then gcc_cv_as_section_has_e=yes
25429 elif test x$gcc_cv_as != x; then
25430 $as_echo '.section foo1,"e"
25431 .byte 0,0,0,0' > conftest.s
25432 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25434 (eval $ac_try) 2>&5
25435 ac_status=$?
25436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25437 test $ac_status = 0; }; }
25438 then
25439 gcc_cv_as_section_has_e=yes
25440 else
25441 echo "configure: failed program was" >&5
25442 cat conftest.s >&5
25444 rm -f conftest.o conftest.s
25447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25448 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25452 cat >>confdefs.h <<_ACEOF
25453 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25454 _ACEOF
25457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25458 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25459 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25460 $as_echo_n "(cached) " >&6
25461 else
25462 gcc_cv_as_ix86_filds=no
25463 if test x$gcc_cv_as != x; then
25464 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25465 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25467 (eval $ac_try) 2>&5
25468 ac_status=$?
25469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25470 test $ac_status = 0; }; }
25471 then
25472 gcc_cv_as_ix86_filds=yes
25473 else
25474 echo "configure: failed program was" >&5
25475 cat conftest.s >&5
25477 rm -f conftest.o conftest.s
25480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25481 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25482 if test $gcc_cv_as_ix86_filds = yes; then
25484 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25490 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25491 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25492 $as_echo_n "(cached) " >&6
25493 else
25494 gcc_cv_as_ix86_fildq=no
25495 if test x$gcc_cv_as != x; then
25496 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25497 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25499 (eval $ac_try) 2>&5
25500 ac_status=$?
25501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25502 test $ac_status = 0; }; }
25503 then
25504 gcc_cv_as_ix86_fildq=yes
25505 else
25506 echo "configure: failed program was" >&5
25507 cat conftest.s >&5
25509 rm -f conftest.o conftest.s
25512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25513 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25514 if test $gcc_cv_as_ix86_fildq = yes; then
25516 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25522 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25523 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25524 $as_echo_n "(cached) " >&6
25525 else
25526 gcc_cv_as_ix86_cmov_sun_syntax=no
25527 if test x$gcc_cv_as != x; then
25528 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25529 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25531 (eval $ac_try) 2>&5
25532 ac_status=$?
25533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25534 test $ac_status = 0; }; }
25535 then
25536 gcc_cv_as_ix86_cmov_sun_syntax=yes
25537 else
25538 echo "configure: failed program was" >&5
25539 cat conftest.s >&5
25541 rm -f conftest.o conftest.s
25544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25545 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25546 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25548 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25554 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25555 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25556 $as_echo_n "(cached) " >&6
25557 else
25558 gcc_cv_as_ix86_ffreep=no
25559 if test x$gcc_cv_as != x; then
25560 $as_echo 'ffreep %st(1)' > conftest.s
25561 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25563 (eval $ac_try) 2>&5
25564 ac_status=$?
25565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25566 test $ac_status = 0; }; }
25567 then
25568 gcc_cv_as_ix86_ffreep=yes
25569 else
25570 echo "configure: failed program was" >&5
25571 cat conftest.s >&5
25573 rm -f conftest.o conftest.s
25576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25577 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25578 if test $gcc_cv_as_ix86_ffreep = yes; then
25580 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25586 $as_echo_n "checking assembler for .quad directive... " >&6; }
25587 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25588 $as_echo_n "(cached) " >&6
25589 else
25590 gcc_cv_as_ix86_quad=no
25591 if test x$gcc_cv_as != x; then
25592 $as_echo '.quad 0' > conftest.s
25593 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25595 (eval $ac_try) 2>&5
25596 ac_status=$?
25597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25598 test $ac_status = 0; }; }
25599 then
25600 gcc_cv_as_ix86_quad=yes
25601 else
25602 echo "configure: failed program was" >&5
25603 cat conftest.s >&5
25605 rm -f conftest.o conftest.s
25608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25609 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25610 if test $gcc_cv_as_ix86_quad = yes; then
25612 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25618 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25619 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25620 $as_echo_n "(cached) " >&6
25621 else
25622 gcc_cv_as_ix86_sahf=no
25623 if test x$gcc_cv_as != x; then
25624 $as_echo '.code64
25625 sahf' > conftest.s
25626 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25628 (eval $ac_try) 2>&5
25629 ac_status=$?
25630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25631 test $ac_status = 0; }; }
25632 then
25633 gcc_cv_as_ix86_sahf=yes
25634 else
25635 echo "configure: failed program was" >&5
25636 cat conftest.s >&5
25638 rm -f conftest.o conftest.s
25641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25642 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25643 if test $gcc_cv_as_ix86_sahf = yes; then
25645 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25651 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25652 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25653 $as_echo_n "(cached) " >&6
25654 else
25655 gcc_cv_as_ix86_interunit_movq=no
25656 if test x$gcc_cv_as != x; then
25657 $as_echo '.code64
25658 movq %mm0, %rax
25659 movq %rax, %xmm0' > conftest.s
25660 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25662 (eval $ac_try) 2>&5
25663 ac_status=$?
25664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25665 test $ac_status = 0; }; }
25666 then
25667 gcc_cv_as_ix86_interunit_movq=yes
25668 else
25669 echo "configure: failed program was" >&5
25670 cat conftest.s >&5
25672 rm -f conftest.o conftest.s
25675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25676 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25680 cat >>confdefs.h <<_ACEOF
25681 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25682 _ACEOF
25685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25686 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25687 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25688 $as_echo_n "(cached) " >&6
25689 else
25690 gcc_cv_as_ix86_hle=no
25691 if test x$gcc_cv_as != x; then
25692 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25693 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25695 (eval $ac_try) 2>&5
25696 ac_status=$?
25697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25698 test $ac_status = 0; }; }
25699 then
25700 gcc_cv_as_ix86_hle=yes
25701 else
25702 echo "configure: failed program was" >&5
25703 cat conftest.s >&5
25705 rm -f conftest.o conftest.s
25708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25709 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25710 if test $gcc_cv_as_ix86_hle = yes; then
25712 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25718 $as_echo_n "checking assembler for swap suffix... " >&6; }
25719 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25720 $as_echo_n "(cached) " >&6
25721 else
25722 gcc_cv_as_ix86_swap=no
25723 if test x$gcc_cv_as != x; then
25724 $as_echo 'movl.s %esp, %ebp' > conftest.s
25725 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25727 (eval $ac_try) 2>&5
25728 ac_status=$?
25729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25730 test $ac_status = 0; }; }
25731 then
25732 gcc_cv_as_ix86_swap=yes
25733 else
25734 echo "configure: failed program was" >&5
25735 cat conftest.s >&5
25737 rm -f conftest.o conftest.s
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25741 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25742 if test $gcc_cv_as_ix86_swap = yes; then
25744 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25750 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25751 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25752 $as_echo_n "(cached) " >&6
25753 else
25754 gcc_cv_as_ix86_diff_sect_delta=no
25755 if test x$gcc_cv_as != x; then
25756 $as_echo '.section .rodata
25757 .L1:
25758 .long .L2-.L1
25759 .long .L3-.L1
25760 .text
25761 .L3: nop
25762 .L2: nop' > conftest.s
25763 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25765 (eval $ac_try) 2>&5
25766 ac_status=$?
25767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25768 test $ac_status = 0; }; }
25769 then
25770 gcc_cv_as_ix86_diff_sect_delta=yes
25771 else
25772 echo "configure: failed program was" >&5
25773 cat conftest.s >&5
25775 rm -f conftest.o conftest.s
25778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25779 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25780 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25782 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25788 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25789 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25790 $as_echo_n "(cached) " >&6
25791 else
25792 gcc_cv_as_ix86_rep_lock_prefix=no
25793 if test x$gcc_cv_as != x; then
25794 $as_echo 'rep movsl
25795 rep ret
25796 rep nop
25797 rep bsf %ecx, %eax
25798 rep bsr %ecx, %eax
25799 lock addl %edi, (%eax,%esi)
25800 lock orl $0, (%esp)' > conftest.s
25801 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25803 (eval $ac_try) 2>&5
25804 ac_status=$?
25805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25806 test $ac_status = 0; }; }
25807 then
25808 gcc_cv_as_ix86_rep_lock_prefix=yes
25809 else
25810 echo "configure: failed program was" >&5
25811 cat conftest.s >&5
25813 rm -f conftest.o conftest.s
25816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25817 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25818 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25820 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25826 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25827 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25828 $as_echo_n "(cached) " >&6
25829 else
25830 gcc_cv_as_ix86_ud2=no
25831 if test x$gcc_cv_as != x; then
25832 $as_echo 'ud2' > conftest.s
25833 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25835 (eval $ac_try) 2>&5
25836 ac_status=$?
25837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25838 test $ac_status = 0; }; }
25839 then
25840 gcc_cv_as_ix86_ud2=yes
25841 else
25842 echo "configure: failed program was" >&5
25843 cat conftest.s >&5
25845 rm -f conftest.o conftest.s
25848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25849 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25850 if test $gcc_cv_as_ix86_ud2 = yes; then
25852 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25857 # Enforce 32-bit output with gas and gld.
25858 if test x$gas = xyes; then
25859 as_ix86_gas_32_opt="--32"
25861 if echo "$ld_ver" | grep GNU > /dev/null; then
25862 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25863 ld_ix86_gld_32_opt="-melf_i386_sol2"
25864 else
25865 ld_ix86_gld_32_opt="-melf_i386"
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25870 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25871 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25872 $as_echo_n "(cached) " >&6
25873 else
25874 gcc_cv_as_ix86_tlsgdplt=no
25875 if test x$gcc_cv_as != x; then
25876 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25877 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25879 (eval $ac_try) 2>&5
25880 ac_status=$?
25881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25882 test $ac_status = 0; }; }
25883 then
25884 if test x$gcc_cv_ld != x \
25885 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
25886 gcc_cv_as_ix86_tlsgdplt=yes
25888 rm -f conftest
25889 else
25890 echo "configure: failed program was" >&5
25891 cat conftest.s >&5
25893 rm -f conftest.o conftest.s
25896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25897 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25898 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25900 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25905 conftest_s='
25906 .section .tdata,"aw'$tls_section_flag'",@progbits
25907 tls_ld:
25908 .section .text,"ax",@progbits
25909 call tls_ld@tlsldmplt'
25911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25912 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25913 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25914 $as_echo_n "(cached) " >&6
25915 else
25916 gcc_cv_as_ix86_tlsldmplt=no
25917 if test x$gcc_cv_as != x; then
25918 $as_echo "$conftest_s" > conftest.s
25919 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25921 (eval $ac_try) 2>&5
25922 ac_status=$?
25923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25924 test $ac_status = 0; }; }
25925 then
25926 if test x$gcc_cv_ld != x \
25927 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o -G > /dev/null 2>&1; then
25928 gcc_cv_as_ix86_tlsldmplt=yes
25930 rm -f conftest
25931 else
25932 echo "configure: failed program was" >&5
25933 cat conftest.s >&5
25935 rm -f conftest.o conftest.s
25938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25939 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25943 cat >>confdefs.h <<_ACEOF
25944 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25945 _ACEOF
25948 conftest_s='
25949 .section .text,"ax",@progbits
25950 .globl _start
25951 .type _start, @function
25952 _start:
25953 leal value@tlsldm(%ebx), %eax
25954 call ___tls_get_addr@plt
25956 .section .tdata,"aw'$tls_section_flag'",@progbits
25957 .type value, @object
25958 value:'
25959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25960 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25961 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25962 $as_echo_n "(cached) " >&6
25963 else
25964 gcc_cv_as_ix86_tlsldm=no
25965 if test x$gcc_cv_as != x; then
25966 $as_echo "$conftest_s" > conftest.s
25967 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25969 (eval $ac_try) 2>&5
25970 ac_status=$?
25971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25972 test $ac_status = 0; }; }
25973 then
25974 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25975 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25976 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25977 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25978 gcc_cv_as_ix86_tlsldm=yes
25981 rm -f conftest
25982 else
25983 echo "configure: failed program was" >&5
25984 cat conftest.s >&5
25986 rm -f conftest.o conftest.s
25989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25990 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25994 cat >>confdefs.h <<_ACEOF
25995 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25996 _ACEOF
25999 conftest_s='
26000 .data
26001 bar:
26002 .byte 1
26003 .text
26004 .global _start
26005 _start:
26006 cmpl $0, bar@GOT
26007 jmp *_start@GOT'
26008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26009 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26010 if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
26011 $as_echo_n "(cached) " >&6
26012 else
26013 gcc_cv_as_ix86_got32x=no
26014 if test x$gcc_cv_as != x; then
26015 $as_echo "$conftest_s" > conftest.s
26016 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26018 (eval $ac_try) 2>&5
26019 ac_status=$?
26020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26021 test $ac_status = 0; }; }
26022 then
26023 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
26024 && test x$gcc_cv_readelf != x \
26025 && $gcc_cv_readelf --relocs --wide conftest.o 2>&1 \
26026 | grep R_386_GOT32X > /dev/null 2>&1 \
26027 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26028 if $gcc_cv_objdump -dw conftest 2>&1 \
26029 | grep 0xffffff > /dev/null 2>&1; then
26030 gcc_cv_as_ix86_got32x=no
26031 else
26032 gcc_cv_as_ix86_got32x=yes
26035 rm -f conftest
26036 else
26037 echo "configure: failed program was" >&5
26038 cat conftest.s >&5
26040 rm -f conftest.o conftest.s
26043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26044 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26048 cat >>confdefs.h <<_ACEOF
26049 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26050 _ACEOF
26053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26054 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26055 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
26056 $as_echo_n "(cached) " >&6
26057 else
26058 gcc_cv_as_ix86_gotoff_in_data=no
26059 if test $in_tree_gas = yes; then
26060 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26061 then gcc_cv_as_ix86_gotoff_in_data=yes
26063 elif test x$gcc_cv_as != x; then
26064 $as_echo ' .text
26065 .L0:
26067 .data
26068 .long .L0@GOTOFF' > conftest.s
26069 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -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_gotoff_in_data=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_gotoff_in_data" >&5
26085 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26089 cat >>confdefs.h <<_ACEOF
26090 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26091 _ACEOF
26094 conftest_s='
26095 .section .text,"ax",@progbits
26096 .globl _start
26097 .type _start, @function
26098 _start:
26099 leal ld@tlsldm(%ecx), %eax
26100 call *___tls_get_addr@GOT(%ecx)
26101 leal gd@tlsgd(%ecx), %eax
26102 call *___tls_get_addr@GOT(%ecx)
26104 .section .tdata,"aw'$tls_section_flag'",@progbits
26105 .type ld, @object
26107 .byte 0
26108 .globl gd
26109 .type gd, @object
26111 .byte 0'
26112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26113 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26114 if test "${gcc_cv_as_ix86_tls_get_addr_via_got+set}" = set; then :
26115 $as_echo_n "(cached) " >&6
26116 else
26117 gcc_cv_as_ix86_tls_get_addr_via_got=no
26118 if test x$gcc_cv_as != x; then
26119 $as_echo "$conftest_s" > conftest.s
26120 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26122 (eval $ac_try) 2>&5
26123 ac_status=$?
26124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26125 test $ac_status = 0; }; }
26126 then
26127 if test x$gcc_cv_ld != x \
26128 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o > /dev/null 2>&1; then
26129 gcc_cv_as_ix86_tls_get_addr_via_got=yes
26131 rm -f conftest
26132 else
26133 echo "configure: failed program was" >&5
26134 cat conftest.s >&5
26136 rm -f conftest.o conftest.s
26139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26140 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26144 cat >>confdefs.h <<_ACEOF
26145 #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`
26146 _ACEOF
26150 ia64*-*-*)
26151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26152 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26153 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26154 $as_echo_n "(cached) " >&6
26155 else
26156 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
26157 if test $in_tree_gas = yes; then
26158 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26159 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26161 elif test x$gcc_cv_as != x; then
26162 $as_echo ' .text
26163 addl r15 = @ltoffx(x#), gp
26165 ld8.mov r16 = [r15], x#' > conftest.s
26166 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26168 (eval $ac_try) 2>&5
26169 ac_status=$?
26170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26171 test $ac_status = 0; }; }
26172 then
26173 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
26174 else
26175 echo "configure: failed program was" >&5
26176 cat conftest.s >&5
26178 rm -f conftest.o conftest.s
26181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26182 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26183 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26185 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26192 powerpc*-*-*)
26194 case $target in
26195 *-*-darwin*)
26196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26197 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26198 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26199 $as_echo_n "(cached) " >&6
26200 else
26201 gcc_cv_as_machine_directive=no
26202 if test x$gcc_cv_as != x; then
26203 $as_echo ' .machine ppc7400' > conftest.s
26204 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26206 (eval $ac_try) 2>&5
26207 ac_status=$?
26208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26209 test $ac_status = 0; }; }
26210 then
26211 gcc_cv_as_machine_directive=yes
26212 else
26213 echo "configure: failed program was" >&5
26214 cat conftest.s >&5
26216 rm -f conftest.o conftest.s
26219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26220 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26223 if test x$gcc_cv_as_machine_directive != xyes; then
26224 echo "*** This target requires an assembler supporting \".machine\"" >&2
26225 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26226 test x$build = x$target && exit 1
26229 esac
26231 case $target in
26232 *-*-aix*) conftest_s=' .machine "pwr5"
26233 .csect .text[PR]
26234 mfcr 3,128';;
26235 *-*-darwin*) conftest_s=' .text
26236 mfcr r3,128';;
26237 *) conftest_s=' .machine power4
26238 .text
26239 mfcr 3,128';;
26240 esac
26242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26243 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26244 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26245 $as_echo_n "(cached) " >&6
26246 else
26247 gcc_cv_as_powerpc_mfcrf=no
26248 if test $in_tree_gas = yes; then
26249 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26250 then gcc_cv_as_powerpc_mfcrf=yes
26252 elif test x$gcc_cv_as != x; then
26253 $as_echo "$conftest_s" > conftest.s
26254 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26256 (eval $ac_try) 2>&5
26257 ac_status=$?
26258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26259 test $ac_status = 0; }; }
26260 then
26261 gcc_cv_as_powerpc_mfcrf=yes
26262 else
26263 echo "configure: failed program was" >&5
26264 cat conftest.s >&5
26266 rm -f conftest.o conftest.s
26269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26270 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26271 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26273 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26278 case $target in
26279 *-*-aix*) conftest_s=' .machine "pwr5"
26280 .csect .text[PR]
26281 popcntb 3,3';;
26282 *) conftest_s=' .machine power5
26283 .text
26284 popcntb 3,3';;
26285 esac
26287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26288 $as_echo_n "checking assembler for popcntb support... " >&6; }
26289 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26290 $as_echo_n "(cached) " >&6
26291 else
26292 gcc_cv_as_powerpc_popcntb=no
26293 if test $in_tree_gas = yes; then
26294 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26295 then gcc_cv_as_powerpc_popcntb=yes
26297 elif test x$gcc_cv_as != x; then
26298 $as_echo "$conftest_s" > conftest.s
26299 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26301 (eval $ac_try) 2>&5
26302 ac_status=$?
26303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26304 test $ac_status = 0; }; }
26305 then
26306 gcc_cv_as_powerpc_popcntb=yes
26307 else
26308 echo "configure: failed program was" >&5
26309 cat conftest.s >&5
26311 rm -f conftest.o conftest.s
26314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26315 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26316 if test $gcc_cv_as_powerpc_popcntb = yes; then
26318 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26323 case $target in
26324 *-*-aix*) conftest_s=' .machine "pwr5x"
26325 .csect .text[PR]
26326 frin 1,1';;
26327 *) conftest_s=' .machine power5
26328 .text
26329 frin 1,1';;
26330 esac
26332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26333 $as_echo_n "checking assembler for fp round support... " >&6; }
26334 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26335 $as_echo_n "(cached) " >&6
26336 else
26337 gcc_cv_as_powerpc_fprnd=no
26338 if test $in_tree_gas = yes; then
26339 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26340 then gcc_cv_as_powerpc_fprnd=yes
26342 elif test x$gcc_cv_as != x; then
26343 $as_echo "$conftest_s" > conftest.s
26344 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26346 (eval $ac_try) 2>&5
26347 ac_status=$?
26348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26349 test $ac_status = 0; }; }
26350 then
26351 gcc_cv_as_powerpc_fprnd=yes
26352 else
26353 echo "configure: failed program was" >&5
26354 cat conftest.s >&5
26356 rm -f conftest.o conftest.s
26359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26360 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26361 if test $gcc_cv_as_powerpc_fprnd = yes; then
26363 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26368 case $target in
26369 *-*-aix*) conftest_s=' .machine "pwr6"
26370 .csect .text[PR]
26371 mffgpr 1,3';;
26372 *) conftest_s=' .machine power6
26373 .text
26374 mffgpr 1,3';;
26375 esac
26377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26378 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26379 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26380 $as_echo_n "(cached) " >&6
26381 else
26382 gcc_cv_as_powerpc_mfpgpr=no
26383 if test $in_tree_gas = yes; then
26384 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26385 then gcc_cv_as_powerpc_mfpgpr=yes
26387 elif test x$gcc_cv_as != x; then
26388 $as_echo "$conftest_s" > conftest.s
26389 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26391 (eval $ac_try) 2>&5
26392 ac_status=$?
26393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26394 test $ac_status = 0; }; }
26395 then
26396 gcc_cv_as_powerpc_mfpgpr=yes
26397 else
26398 echo "configure: failed program was" >&5
26399 cat conftest.s >&5
26401 rm -f conftest.o conftest.s
26404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26405 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26406 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26408 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26413 case $target in
26414 *-*-aix*) conftest_s=' .csect .text[PR]
26415 LCF..0:
26416 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26417 *-*-darwin*)
26418 conftest_s=' .text
26419 LCF0:
26420 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26421 *) conftest_s=' .text
26422 .LCF0:
26423 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26424 esac
26426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26427 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26428 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26429 $as_echo_n "(cached) " >&6
26430 else
26431 gcc_cv_as_powerpc_rel16=no
26432 if test $in_tree_gas = yes; then
26433 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26434 then gcc_cv_as_powerpc_rel16=yes
26436 elif test x$gcc_cv_as != x; then
26437 $as_echo "$conftest_s" > conftest.s
26438 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26440 (eval $ac_try) 2>&5
26441 ac_status=$?
26442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26443 test $ac_status = 0; }; }
26444 then
26445 gcc_cv_as_powerpc_rel16=yes
26446 else
26447 echo "configure: failed program was" >&5
26448 cat conftest.s >&5
26450 rm -f conftest.o conftest.s
26453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26454 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26455 if test $gcc_cv_as_powerpc_rel16 = yes; then
26457 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26462 case $target in
26463 *-*-aix*) conftest_s=' .machine "pwr6"
26464 .csect .text[PR]
26465 cmpb 3,4,5';;
26466 *) conftest_s=' .machine power6
26467 .text
26468 cmpb 3,4,5';;
26469 esac
26471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26472 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26473 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26474 $as_echo_n "(cached) " >&6
26475 else
26476 gcc_cv_as_powerpc_cmpb=no
26477 if test $in_tree_gas = yes; then
26478 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26479 then gcc_cv_as_powerpc_cmpb=yes
26481 elif test x$gcc_cv_as != x; then
26482 $as_echo "$conftest_s" > conftest.s
26483 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26485 (eval $ac_try) 2>&5
26486 ac_status=$?
26487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26488 test $ac_status = 0; }; }
26489 then
26490 gcc_cv_as_powerpc_cmpb=yes
26491 else
26492 echo "configure: failed program was" >&5
26493 cat conftest.s >&5
26495 rm -f conftest.o conftest.s
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26499 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26500 if test $gcc_cv_as_powerpc_cmpb = yes; then
26502 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26507 case $target in
26508 *-*-aix*) conftest_s=' .machine "pwr6"
26509 .csect .text[PR]
26510 dadd 1,2,3';;
26511 *) conftest_s=' .machine power6
26512 .text
26513 dadd 1,2,3';;
26514 esac
26516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26517 $as_echo_n "checking assembler for decimal float support... " >&6; }
26518 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26519 $as_echo_n "(cached) " >&6
26520 else
26521 gcc_cv_as_powerpc_dfp=no
26522 if test $in_tree_gas = yes; then
26523 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26524 then gcc_cv_as_powerpc_dfp=yes
26526 elif test x$gcc_cv_as != x; then
26527 $as_echo "$conftest_s" > conftest.s
26528 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26529 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26530 (eval $ac_try) 2>&5
26531 ac_status=$?
26532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26533 test $ac_status = 0; }; }
26534 then
26535 gcc_cv_as_powerpc_dfp=yes
26536 else
26537 echo "configure: failed program was" >&5
26538 cat conftest.s >&5
26540 rm -f conftest.o conftest.s
26543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26544 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26545 if test $gcc_cv_as_powerpc_dfp = yes; then
26547 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26552 case $target in
26553 *-*-aix*) conftest_s=' .machine "pwr7"
26554 .csect .text[PR]
26555 lxvd2x 1,2,3';;
26556 *) conftest_s=' .machine power7
26557 .text
26558 lxvd2x 1,2,3';;
26559 esac
26561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26562 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26563 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26564 $as_echo_n "(cached) " >&6
26565 else
26566 gcc_cv_as_powerpc_vsx=no
26567 if test $in_tree_gas = yes; then
26568 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26569 then gcc_cv_as_powerpc_vsx=yes
26571 elif test x$gcc_cv_as != x; then
26572 $as_echo "$conftest_s" > conftest.s
26573 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26575 (eval $ac_try) 2>&5
26576 ac_status=$?
26577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26578 test $ac_status = 0; }; }
26579 then
26580 gcc_cv_as_powerpc_vsx=yes
26581 else
26582 echo "configure: failed program was" >&5
26583 cat conftest.s >&5
26585 rm -f conftest.o conftest.s
26588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26589 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26590 if test $gcc_cv_as_powerpc_vsx = yes; then
26592 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26597 case $target in
26598 *-*-aix*) conftest_s=' .machine "pwr7"
26599 .csect .text[PR]
26600 popcntd 3,3';;
26601 *) conftest_s=' .machine power7
26602 .text
26603 popcntd 3,3';;
26604 esac
26606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26607 $as_echo_n "checking assembler for popcntd support... " >&6; }
26608 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26609 $as_echo_n "(cached) " >&6
26610 else
26611 gcc_cv_as_powerpc_popcntd=no
26612 if test $in_tree_gas = yes; then
26613 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26614 then gcc_cv_as_powerpc_popcntd=yes
26616 elif test x$gcc_cv_as != x; then
26617 $as_echo "$conftest_s" > conftest.s
26618 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26620 (eval $ac_try) 2>&5
26621 ac_status=$?
26622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26623 test $ac_status = 0; }; }
26624 then
26625 gcc_cv_as_powerpc_popcntd=yes
26626 else
26627 echo "configure: failed program was" >&5
26628 cat conftest.s >&5
26630 rm -f conftest.o conftest.s
26633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26634 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26635 if test $gcc_cv_as_powerpc_popcntd = yes; then
26637 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26642 case $target in
26643 *-*-aix*) conftest_s=' .machine "pwr8"
26644 .csect .text[PR]';;
26645 *) conftest_s=' .machine power8
26646 .text';;
26647 esac
26649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26650 $as_echo_n "checking assembler for power8 support... " >&6; }
26651 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26652 $as_echo_n "(cached) " >&6
26653 else
26654 gcc_cv_as_powerpc_power8=no
26655 if test $in_tree_gas = yes; then
26656 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26657 then gcc_cv_as_powerpc_power8=yes
26659 elif test x$gcc_cv_as != x; then
26660 $as_echo "$conftest_s" > conftest.s
26661 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26663 (eval $ac_try) 2>&5
26664 ac_status=$?
26665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26666 test $ac_status = 0; }; }
26667 then
26668 gcc_cv_as_powerpc_power8=yes
26669 else
26670 echo "configure: failed program was" >&5
26671 cat conftest.s >&5
26673 rm -f conftest.o conftest.s
26676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26677 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26678 if test $gcc_cv_as_powerpc_power8 = yes; then
26680 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26685 case $target in
26686 *-*-aix*) conftest_s=' .machine "pwr9"
26687 .csect .text[PR]';;
26688 *) conftest_s=' .machine power9
26689 .text';;
26690 esac
26692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26693 $as_echo_n "checking assembler for power9 support... " >&6; }
26694 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26695 $as_echo_n "(cached) " >&6
26696 else
26697 gcc_cv_as_powerpc_power9=no
26698 if test $in_tree_gas = yes; then
26699 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26700 then gcc_cv_as_powerpc_power9=yes
26702 elif test x$gcc_cv_as != x; then
26703 $as_echo "$conftest_s" > conftest.s
26704 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26706 (eval $ac_try) 2>&5
26707 ac_status=$?
26708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26709 test $ac_status = 0; }; }
26710 then
26711 gcc_cv_as_powerpc_power9=yes
26712 else
26713 echo "configure: failed program was" >&5
26714 cat conftest.s >&5
26716 rm -f conftest.o conftest.s
26719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26720 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26721 if test $gcc_cv_as_powerpc_power9 = yes; then
26723 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26728 case $target in
26729 *-*-aix*) conftest_s=' .csect .text[PR]
26730 lwsync';;
26731 *) conftest_s=' .text
26732 lwsync';;
26733 esac
26735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26736 $as_echo_n "checking assembler for lwsync support... " >&6; }
26737 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26738 $as_echo_n "(cached) " >&6
26739 else
26740 gcc_cv_as_powerpc_lwsync=no
26741 if test $in_tree_gas = yes; then
26742 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26743 then gcc_cv_as_powerpc_lwsync=yes
26745 elif test x$gcc_cv_as != x; then
26746 $as_echo "$conftest_s" > conftest.s
26747 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26749 (eval $ac_try) 2>&5
26750 ac_status=$?
26751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26752 test $ac_status = 0; }; }
26753 then
26754 gcc_cv_as_powerpc_lwsync=yes
26755 else
26756 echo "configure: failed program was" >&5
26757 cat conftest.s >&5
26759 rm -f conftest.o conftest.s
26762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26763 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26764 if test $gcc_cv_as_powerpc_lwsync = yes; then
26766 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26771 case $target in
26772 *-*-aix*) conftest_s=' .machine "476"
26773 .csect .text[PR]
26774 dci 0';;
26775 *) conftest_s=' .machine "476"
26776 .text
26777 dci 0';;
26778 esac
26780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26781 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26782 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26783 $as_echo_n "(cached) " >&6
26784 else
26785 gcc_cv_as_powerpc_dci=no
26786 if test $in_tree_gas = yes; then
26787 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26788 then gcc_cv_as_powerpc_dci=yes
26790 elif test x$gcc_cv_as != x; then
26791 $as_echo "$conftest_s" > conftest.s
26792 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26794 (eval $ac_try) 2>&5
26795 ac_status=$?
26796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26797 test $ac_status = 0; }; }
26798 then
26799 gcc_cv_as_powerpc_dci=yes
26800 else
26801 echo "configure: failed program was" >&5
26802 cat conftest.s >&5
26804 rm -f conftest.o conftest.s
26807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26808 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26809 if test $gcc_cv_as_powerpc_dci = yes; then
26811 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26817 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26818 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26819 $as_echo_n "(cached) " >&6
26820 else
26821 gcc_cv_as_powerpc_gnu_attribute=no
26822 if test $in_tree_gas = yes; then
26823 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26824 then gcc_cv_as_powerpc_gnu_attribute=yes
26826 elif test x$gcc_cv_as != x; then
26827 $as_echo '.gnu_attribute 4,1' > conftest.s
26828 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26830 (eval $ac_try) 2>&5
26831 ac_status=$?
26832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26833 test $ac_status = 0; }; }
26834 then
26835 gcc_cv_as_powerpc_gnu_attribute=yes
26836 else
26837 echo "configure: failed program was" >&5
26838 cat conftest.s >&5
26840 rm -f conftest.o conftest.s
26843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26844 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26845 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26847 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26853 $as_echo_n "checking assembler for tls marker support... " >&6; }
26854 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26855 $as_echo_n "(cached) " >&6
26856 else
26857 gcc_cv_as_powerpc_tls_markers=no
26858 if test $in_tree_gas = yes; then
26859 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26860 then gcc_cv_as_powerpc_tls_markers=yes
26862 elif test x$gcc_cv_as != x; then
26863 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26864 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26866 (eval $ac_try) 2>&5
26867 ac_status=$?
26868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26869 test $ac_status = 0; }; }
26870 then
26871 gcc_cv_as_powerpc_tls_markers=yes
26872 else
26873 echo "configure: failed program was" >&5
26874 cat conftest.s >&5
26876 rm -f conftest.o conftest.s
26879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26880 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26881 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26883 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26889 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26890 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26891 $as_echo_n "(cached) " >&6
26892 else
26893 gcc_cv_as_powerpc_entry_markers=no
26894 if test $in_tree_gas = yes; then
26895 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26896 then gcc_cv_as_powerpc_entry_markers=yes
26898 elif test x$gcc_cv_as != x; then
26899 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26900 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26902 (eval $ac_try) 2>&5
26903 ac_status=$?
26904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26905 test $ac_status = 0; }; }
26906 then
26907 gcc_cv_as_powerpc_entry_markers=yes
26908 else
26909 echo "configure: failed program was" >&5
26910 cat conftest.s >&5
26912 rm -f conftest.o conftest.s
26915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26916 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26917 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26919 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26924 case $target in
26925 *-*-aix*)
26926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26927 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26928 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26929 $as_echo_n "(cached) " >&6
26930 else
26931 gcc_cv_as_aix_ref=no
26932 if test $in_tree_gas = yes; then
26933 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26934 then gcc_cv_as_aix_ref=yes
26936 elif test x$gcc_cv_as != x; then
26937 $as_echo ' .csect stuff[rw]
26938 stuff:
26939 .long 1
26940 .extern sym
26941 .ref sym
26942 ' > conftest.s
26943 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26945 (eval $ac_try) 2>&5
26946 ac_status=$?
26947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26948 test $ac_status = 0; }; }
26949 then
26950 gcc_cv_as_aix_ref=yes
26951 else
26952 echo "configure: failed program was" >&5
26953 cat conftest.s >&5
26955 rm -f conftest.o conftest.s
26958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26959 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26960 if test $gcc_cv_as_aix_ref = yes; then
26962 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26968 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26969 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26970 $as_echo_n "(cached) " >&6
26971 else
26972 gcc_cv_as_aix_dwloc=no
26973 if test $in_tree_gas = yes; then
26974 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26975 then gcc_cv_as_aix_dwloc=yes
26977 elif test x$gcc_cv_as != x; then
26978 $as_echo ' .dwsect 0xA0000
26979 Lframe..0:
26980 .vbyte 4,Lframe..0
26981 ' > conftest.s
26982 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26984 (eval $ac_try) 2>&5
26985 ac_status=$?
26986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26987 test $ac_status = 0; }; }
26988 then
26989 gcc_cv_as_aix_dwloc=yes
26990 else
26991 echo "configure: failed program was" >&5
26992 cat conftest.s >&5
26994 rm -f conftest.o conftest.s
26997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26998 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26999 if test $gcc_cv_as_aix_dwloc = yes; then
27001 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27006 esac
27009 mips*-*-*)
27010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27011 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27012 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
27013 $as_echo_n "(cached) " >&6
27014 else
27015 gcc_cv_as_mips_explicit_relocs=no
27016 if test $in_tree_gas = yes; then
27017 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27018 then gcc_cv_as_mips_explicit_relocs=yes
27020 elif test x$gcc_cv_as != x; then
27021 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27022 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27024 (eval $ac_try) 2>&5
27025 ac_status=$?
27026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27027 test $ac_status = 0; }; }
27028 then
27029 gcc_cv_as_mips_explicit_relocs=yes
27030 else
27031 echo "configure: failed program was" >&5
27032 cat conftest.s >&5
27034 rm -f conftest.o conftest.s
27037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27038 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27039 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27040 if test x$target_cpu_default = x
27041 then target_cpu_default=MASK_EXPLICIT_RELOCS
27042 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27048 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27049 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
27050 $as_echo_n "(cached) " >&6
27051 else
27052 gcc_cv_as_mips_no_shared=no
27053 if test $in_tree_gas = yes; then
27054 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27055 then gcc_cv_as_mips_no_shared=yes
27057 elif test x$gcc_cv_as != x; then
27058 $as_echo 'nop' > conftest.s
27059 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27061 (eval $ac_try) 2>&5
27062 ac_status=$?
27063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27064 test $ac_status = 0; }; }
27065 then
27066 gcc_cv_as_mips_no_shared=yes
27067 else
27068 echo "configure: failed program was" >&5
27069 cat conftest.s >&5
27071 rm -f conftest.o conftest.s
27074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27075 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27076 if test $gcc_cv_as_mips_no_shared = yes; then
27078 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27084 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27085 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
27086 $as_echo_n "(cached) " >&6
27087 else
27088 gcc_cv_as_mips_gnu_attribute=no
27089 if test $in_tree_gas = yes; then
27090 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27091 then gcc_cv_as_mips_gnu_attribute=yes
27093 elif test x$gcc_cv_as != x; then
27094 $as_echo '.gnu_attribute 4,1' > conftest.s
27095 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27097 (eval $ac_try) 2>&5
27098 ac_status=$?
27099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27100 test $ac_status = 0; }; }
27101 then
27102 gcc_cv_as_mips_gnu_attribute=yes
27103 else
27104 echo "configure: failed program was" >&5
27105 cat conftest.s >&5
27107 rm -f conftest.o conftest.s
27110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27111 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27112 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27114 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27120 $as_echo_n "checking assembler for .module support... " >&6; }
27121 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
27122 $as_echo_n "(cached) " >&6
27123 else
27124 gcc_cv_as_mips_dot_module=no
27125 if test x$gcc_cv_as != x; then
27126 $as_echo '.module mips2
27127 .module fp=xx' > conftest.s
27128 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27130 (eval $ac_try) 2>&5
27131 ac_status=$?
27132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27133 test $ac_status = 0; }; }
27134 then
27135 gcc_cv_as_mips_dot_module=yes
27136 else
27137 echo "configure: failed program was" >&5
27138 cat conftest.s >&5
27140 rm -f conftest.o conftest.s
27143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27144 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27145 if test $gcc_cv_as_mips_dot_module = yes; then
27147 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27151 if test x$gcc_cv_as_mips_dot_module = xno \
27152 && test x$with_fp_32 != x; then
27153 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27157 $as_echo_n "checking assembler for .micromips support... " >&6; }
27158 if test "${gcc_cv_as_micromips_support+set}" = set; then :
27159 $as_echo_n "(cached) " >&6
27160 else
27161 gcc_cv_as_micromips_support=no
27162 if test x$gcc_cv_as != x; then
27163 $as_echo '.set micromips' > conftest.s
27164 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27166 (eval $ac_try) 2>&5
27167 ac_status=$?
27168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27169 test $ac_status = 0; }; }
27170 then
27171 gcc_cv_as_micromips_support=yes
27172 else
27173 echo "configure: failed program was" >&5
27174 cat conftest.s >&5
27176 rm -f conftest.o conftest.s
27179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27180 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27181 if test $gcc_cv_as_micromips_support = yes; then
27183 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27189 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27190 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27191 $as_echo_n "(cached) " >&6
27192 else
27193 gcc_cv_as_mips_dtprelword=no
27194 if test $in_tree_gas = yes; then
27195 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27196 then gcc_cv_as_mips_dtprelword=yes
27198 elif test x$gcc_cv_as != x; then
27199 $as_echo '.section .tdata,"awT",@progbits
27201 .word 2
27202 .text
27203 .dtprelword x+0x8000' > conftest.s
27204 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27206 (eval $ac_try) 2>&5
27207 ac_status=$?
27208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27209 test $ac_status = 0; }; }
27210 then
27211 gcc_cv_as_mips_dtprelword=yes
27212 else
27213 echo "configure: failed program was" >&5
27214 cat conftest.s >&5
27216 rm -f conftest.o conftest.s
27219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27220 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27221 if test $gcc_cv_as_mips_dtprelword = yes; then
27223 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27229 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27230 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27231 $as_echo_n "(cached) " >&6
27232 else
27233 gcc_cv_as_mips_dspr1_mult=no
27234 if test x$gcc_cv_as != x; then
27235 $as_echo ' .set mips32r2
27236 .set nodspr2
27237 .set dsp
27238 madd $ac3,$4,$5
27239 maddu $ac3,$4,$5
27240 msub $ac3,$4,$5
27241 msubu $ac3,$4,$5
27242 mult $ac3,$4,$5
27243 multu $ac3,$4,$5' > conftest.s
27244 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27246 (eval $ac_try) 2>&5
27247 ac_status=$?
27248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27249 test $ac_status = 0; }; }
27250 then
27251 gcc_cv_as_mips_dspr1_mult=yes
27252 else
27253 echo "configure: failed program was" >&5
27254 cat conftest.s >&5
27256 rm -f conftest.o conftest.s
27259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27260 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27261 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27263 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27269 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27270 gcc_cv_as_ld_jalr_reloc=no
27271 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27272 if test $in_tree_ld = yes ; then
27273 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 \
27274 && test $in_tree_ld_is_elf = yes; then
27275 gcc_cv_as_ld_jalr_reloc=yes
27277 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27278 echo ' .ent x' > conftest.s
27279 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27280 echo ' lw $25,%call16(y)($28)' >> conftest.s
27281 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27282 echo '1: jalr $25' >> conftest.s
27283 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27284 echo '1: jalr $25' >> conftest.s
27285 echo ' .end x' >> conftest.s
27286 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27287 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27288 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27289 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27290 gcc_cv_as_ld_jalr_reloc=yes
27293 rm -f conftest.*
27296 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27297 if test x$target_cpu_default = x; then
27298 target_cpu_default=MASK_RELAX_PIC_CALLS
27299 else
27300 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27304 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27307 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27308 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27309 $as_echo_n "(cached) " >&6
27310 else
27311 gcc_cv_ld_mips_personality_relaxation=no
27312 if test $in_tree_ld = yes ; then
27313 if test "$gcc_cv_gld_major_version" -eq 2 \
27314 -a "$gcc_cv_gld_minor_version" -ge 21 \
27315 -o "$gcc_cv_gld_major_version" -gt 2; then
27316 gcc_cv_ld_mips_personality_relaxation=yes
27318 elif test x$gcc_cv_as != x \
27319 -a x$gcc_cv_ld != x \
27320 -a x$gcc_cv_readelf != x ; then
27321 cat > conftest.s <<EOF
27322 .cfi_startproc
27323 .cfi_personality 0x80,indirect_ptr
27324 .ent test
27325 test:
27327 .end test
27328 .cfi_endproc
27330 .section .data,"aw",@progbits
27331 indirect_ptr:
27332 .dc.a personality
27334 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27335 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27336 if $gcc_cv_readelf -d conftest 2>&1 \
27337 | grep TEXTREL > /dev/null 2>&1; then
27339 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27340 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27342 else
27343 gcc_cv_ld_mips_personality_relaxation=yes
27347 rm -f conftest.s conftest.o conftest
27349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27350 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27351 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27353 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27358 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27359 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27360 $as_echo_n "(cached) " >&6
27361 else
27362 gcc_cv_as_mips_nan=no
27363 if test x$gcc_cv_as != x; then
27364 $as_echo '' > conftest.s
27365 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27367 (eval $ac_try) 2>&5
27368 ac_status=$?
27369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27370 test $ac_status = 0; }; }
27371 then
27372 gcc_cv_as_mips_nan=yes
27373 else
27374 echo "configure: failed program was" >&5
27375 cat conftest.s >&5
27377 rm -f conftest.o conftest.s
27380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27381 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27382 if test $gcc_cv_as_mips_nan = yes; then
27384 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27388 if test x$gcc_cv_as_mips_nan = xno \
27389 && test x$with_nan != x; then
27390 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27393 s390*-*-*)
27394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27395 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27396 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27397 $as_echo_n "(cached) " >&6
27398 else
27399 gcc_cv_as_s390_gnu_attribute=no
27400 if test $in_tree_gas = yes; then
27401 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27402 then gcc_cv_as_s390_gnu_attribute=yes
27404 elif test x$gcc_cv_as != x; then
27405 $as_echo '.gnu_attribute 8,1' > conftest.s
27406 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27408 (eval $ac_try) 2>&5
27409 ac_status=$?
27410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27411 test $ac_status = 0; }; }
27412 then
27413 gcc_cv_as_s390_gnu_attribute=yes
27414 else
27415 echo "configure: failed program was" >&5
27416 cat conftest.s >&5
27418 rm -f conftest.o conftest.s
27421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27422 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27423 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27425 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27430 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27431 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27432 $as_echo_n "(cached) " >&6
27433 else
27434 gcc_cv_as_s390_machine_machinemode=no
27435 if test $in_tree_gas = yes; then
27436 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27437 then gcc_cv_as_s390_machine_machinemode=yes
27439 elif test x$gcc_cv_as != x; then
27440 $as_echo ' .machinemode push
27441 .machinemode pop
27442 .machine push
27443 .machine pop' > conftest.s
27444 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27446 (eval $ac_try) 2>&5
27447 ac_status=$?
27448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27449 test $ac_status = 0; }; }
27450 then
27451 gcc_cv_as_s390_machine_machinemode=yes
27452 else
27453 echo "configure: failed program was" >&5
27454 cat conftest.s >&5
27456 rm -f conftest.o conftest.s
27459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27460 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27461 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27463 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27468 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27469 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27470 $as_echo_n "(cached) " >&6
27471 else
27472 gcc_cv_as_s390_architecture_modifiers=no
27473 if test $in_tree_gas = yes; then
27474 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27475 then gcc_cv_as_s390_architecture_modifiers=yes
27477 elif test x$gcc_cv_as != x; then
27478 $as_echo ' .machine z13+vx ' > conftest.s
27479 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27481 (eval $ac_try) 2>&5
27482 ac_status=$?
27483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27484 test $ac_status = 0; }; }
27485 then
27486 gcc_cv_as_s390_architecture_modifiers=yes
27487 else
27488 echo "configure: failed program was" >&5
27489 cat conftest.s >&5
27491 rm -f conftest.o conftest.s
27494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27495 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27496 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27498 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27503 esac
27505 # Mips and HP-UX need the GNU assembler.
27506 # Linux on IA64 might be able to use the Intel assembler.
27508 case "$target" in
27509 mips*-*-* | *-*-hpux* )
27510 if test x$gas_flag = xyes \
27511 || test x"$host" != x"$build" \
27512 || test ! -x "$gcc_cv_as" \
27513 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27515 else
27516 echo "*** This configuration requires the GNU assembler" >&2
27517 exit 1
27520 esac
27522 # ??? Not all targets support dwarf2 debug_line, even within a version
27523 # of gas. Moreover, we need to emit a valid instruction to trigger any
27524 # info to the output file. So, as supported targets are added to gas 2.11,
27525 # add some instruction here to (also) show we expect this might work.
27526 # ??? Once 2.11 is released, probably need to add first known working
27527 # version to the per-target configury.
27528 case "$cpu_type" in
27529 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
27530 | mips | nios2 | pa | riscv | rs6000 | score | sparc | spu | tilegx \
27531 | tilepro | visium | xstormy16 | xtensa)
27532 insn="nop"
27534 ia64 | s390)
27535 insn="nop 0"
27537 mmix)
27538 insn="swym 0"
27540 esac
27541 if test x"$insn" != x; then
27542 conftest_s="\
27543 .file 1 \"conftest.s\"
27544 .loc 1 3 0
27545 $insn"
27546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27547 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27548 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27549 $as_echo_n "(cached) " >&6
27550 else
27551 gcc_cv_as_dwarf2_debug_line=no
27552 if test $in_tree_gas = yes; then
27553 if test $in_tree_gas_is_elf = yes \
27554 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27555 then gcc_cv_as_dwarf2_debug_line=yes
27557 elif test x$gcc_cv_as != x; then
27558 $as_echo "$conftest_s" > conftest.s
27559 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27561 (eval $ac_try) 2>&5
27562 ac_status=$?
27563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27564 test $ac_status = 0; }; }
27565 then
27566 if test x$gcc_cv_objdump != x \
27567 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27568 | grep debug_line > /dev/null 2>&1; then
27569 gcc_cv_as_dwarf2_debug_line=yes
27571 else
27572 echo "configure: failed program was" >&5
27573 cat conftest.s >&5
27575 rm -f conftest.o conftest.s
27578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27579 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27583 # The .debug_line file table must be in the exact order that
27584 # we specified the files, since these indices are also used
27585 # by DW_AT_decl_file. Approximate this test by testing if
27586 # the assembler bitches if the same index is assigned twice.
27587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27588 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27589 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27590 $as_echo_n "(cached) " >&6
27591 else
27592 gcc_cv_as_dwarf2_file_buggy=no
27593 if test x$gcc_cv_as != x; then
27594 $as_echo ' .file 1 "foo.s"
27595 .file 1 "bar.s"' > conftest.s
27596 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27598 (eval $ac_try) 2>&5
27599 ac_status=$?
27600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27601 test $ac_status = 0; }; }
27602 then
27603 gcc_cv_as_dwarf2_file_buggy=yes
27604 else
27605 echo "configure: failed program was" >&5
27606 cat conftest.s >&5
27608 rm -f conftest.o conftest.s
27611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27612 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27616 if test $gcc_cv_as_dwarf2_debug_line = yes \
27617 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27619 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27624 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27625 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27626 $as_echo_n "(cached) " >&6
27627 else
27628 gcc_cv_as_gdwarf2_flag=no
27629 if test $in_tree_gas = yes; then
27630 if test $in_tree_gas_is_elf = yes \
27631 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27632 then gcc_cv_as_gdwarf2_flag=yes
27634 elif test x$gcc_cv_as != x; then
27635 $as_echo "$insn" > conftest.s
27636 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27638 (eval $ac_try) 2>&5
27639 ac_status=$?
27640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27641 test $ac_status = 0; }; }
27642 then
27643 gcc_cv_as_gdwarf2_flag=yes
27644 else
27645 echo "configure: failed program was" >&5
27646 cat conftest.s >&5
27648 rm -f conftest.o conftest.s
27651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27652 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27653 if test $gcc_cv_as_gdwarf2_flag = yes; then
27655 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27661 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27662 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27663 $as_echo_n "(cached) " >&6
27664 else
27665 gcc_cv_as_gstabs_flag=no
27666 if test $in_tree_gas = yes; then
27667 if test $in_tree_gas_is_elf = yes \
27668 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27669 then gcc_cv_as_gstabs_flag=yes
27671 elif test x$gcc_cv_as != x; then
27672 $as_echo "$insn" > conftest.s
27673 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27674 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27675 (eval $ac_try) 2>&5
27676 ac_status=$?
27677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27678 test $ac_status = 0; }; }
27679 then
27680 gcc_cv_as_gstabs_flag=yes
27681 else
27682 echo "configure: failed program was" >&5
27683 cat conftest.s >&5
27685 rm -f conftest.o conftest.s
27688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27689 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27690 if test $gcc_cv_as_gstabs_flag = yes; then
27692 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27698 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27699 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27700 $as_echo_n "(cached) " >&6
27701 else
27702 gcc_cv_as_debug_prefix_map_flag=no
27703 if test $in_tree_gas = yes; then
27704 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27705 then gcc_cv_as_debug_prefix_map_flag=yes
27707 elif test x$gcc_cv_as != x; then
27708 $as_echo "$insn" > conftest.s
27709 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27711 (eval $ac_try) 2>&5
27712 ac_status=$?
27713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27714 test $ac_status = 0; }; }
27715 then
27716 gcc_cv_as_debug_prefix_map_flag=yes
27717 else
27718 echo "configure: failed program was" >&5
27719 cat conftest.s >&5
27721 rm -f conftest.o conftest.s
27724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27725 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27726 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27728 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27735 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27736 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27737 $as_echo_n "(cached) " >&6
27738 else
27739 gcc_cv_as_compress_debug=no
27740 if test x$gcc_cv_as != x; then
27741 $as_echo '' > conftest.s
27742 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27744 (eval $ac_try) 2>&5
27745 ac_status=$?
27746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27747 test $ac_status = 0; }; }
27748 then
27749 # gas compiled without zlib cannot compress debug sections and warns
27750 # about it, but still exits successfully. So check for this, too.
27751 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27752 then
27753 gcc_cv_as_compress_debug=0
27754 # Since binutils 2.26, gas supports --compress-debug-sections=type,
27755 # defaulting to the ELF gABI format.
27756 elif $gcc_cv_as --compress-debug-sections=zlib-gnu -o conftest.o conftest.s > /dev/null 2>&1
27757 then
27758 gcc_cv_as_compress_debug=2
27759 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27760 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27761 # Before binutils 2.26, gas only supported --compress-debug-options and
27762 # emitted the traditional GNU format.
27763 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27764 then
27765 gcc_cv_as_compress_debug=1
27766 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27767 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27768 else
27769 gcc_cv_as_compress_debug=0
27771 else
27772 echo "configure: failed program was" >&5
27773 cat conftest.s >&5
27775 rm -f conftest.o conftest.s
27778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27779 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27783 cat >>confdefs.h <<_ACEOF
27784 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27785 _ACEOF
27788 cat >>confdefs.h <<_ACEOF
27789 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27790 _ACEOF
27793 cat >>confdefs.h <<_ACEOF
27794 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27795 _ACEOF
27798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27799 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27800 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27801 $as_echo_n "(cached) " >&6
27802 else
27803 gcc_cv_as_lcomm_with_alignment=no
27804 if test x$gcc_cv_as != x; then
27805 $as_echo '.lcomm bar,4,16' > conftest.s
27806 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27808 (eval $ac_try) 2>&5
27809 ac_status=$?
27810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27811 test $ac_status = 0; }; }
27812 then
27813 gcc_cv_as_lcomm_with_alignment=yes
27814 else
27815 echo "configure: failed program was" >&5
27816 cat conftest.s >&5
27818 rm -f conftest.o conftest.s
27821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27822 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27823 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27825 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27830 if test x$with_sysroot = x && test x$host = x$target \
27831 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27832 && test "$prefix" != "NONE"; then
27834 cat >>confdefs.h <<_ACEOF
27835 #define PREFIX_INCLUDE_DIR "$prefix/include"
27836 _ACEOF
27840 # Determine the version of glibc, if any, used on the target.
27841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27842 $as_echo_n "checking for target glibc version... " >&6; }
27844 # Check whether --with-glibc-version was given.
27845 if test "${with_glibc_version+set}" = set; then :
27846 withval=$with_glibc_version;
27847 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27848 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27849 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27850 else
27851 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27853 else
27855 glibc_version_major=0
27856 glibc_version_minor=0
27857 if test -f $target_header_dir/features.h \
27858 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27859 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27860 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27861 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27866 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27868 cat >>confdefs.h <<_ACEOF
27869 #define TARGET_GLIBC_MAJOR $glibc_version_major
27870 _ACEOF
27873 cat >>confdefs.h <<_ACEOF
27874 #define TARGET_GLIBC_MINOR $glibc_version_minor
27875 _ACEOF
27878 # Check whether --enable-gnu-unique-object was given.
27879 if test "${enable_gnu_unique_object+set}" = set; then :
27880 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27881 yes | no) ;;
27882 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27883 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27884 esac
27885 else
27886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27887 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27888 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27889 $as_echo_n "(cached) " >&6
27890 else
27891 gcc_cv_as_gnu_unique_object=no
27892 if test $in_tree_gas = yes; then
27893 if test $in_tree_gas_is_elf = yes \
27894 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27895 then gcc_cv_as_gnu_unique_object=yes
27897 elif test x$gcc_cv_as != x; then
27898 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27899 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27901 (eval $ac_try) 2>&5
27902 ac_status=$?
27903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27904 test $ac_status = 0; }; }
27905 then
27906 gcc_cv_as_gnu_unique_object=yes
27907 else
27908 echo "configure: failed program was" >&5
27909 cat conftest.s >&5
27911 rm -f conftest.o conftest.s
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27915 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27916 if test $gcc_cv_as_gnu_unique_object = yes; then
27917 # We need to unquote above to to use the definition from config.gcc.
27918 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27920 if test $glibc_version_major -gt 2 \
27921 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27922 enable_gnu_unique_object=yes
27929 if test x$enable_gnu_unique_object = xyes; then
27931 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27936 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27937 if test "${gcc_cv_as_line_zero+set}" = set; then :
27938 $as_echo_n "(cached) " >&6
27939 else
27940 gcc_cv_as_line_zero=no
27941 if test $in_tree_gas = yes; then
27942 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27943 then gcc_cv_as_line_zero=yes
27945 elif test "x$gcc_cv_as" != x; then
27946 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27947 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27949 (eval $ac_try) 2>&5
27950 ac_status=$?
27951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27952 test $ac_status = 0; }; } &&
27953 test "x`cat conftest.out`" = x
27954 then
27955 gcc_cv_as_line_zero=yes
27956 else
27957 echo "configure: failed program was" >&5
27958 cat conftest.s >&5
27959 echo "configure: error output was" >&5
27960 cat conftest.out >&5
27962 rm -f conftest.o conftest.s conftest.out
27965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27966 $as_echo "$gcc_cv_as_line_zero" >&6; }
27967 if test "x$gcc_cv_as_line_zero" = xyes; then
27969 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
27974 $as_echo_n "checking support for thin archives... " >&6; }
27975 thin_archive_support=no
27976 echo 'int main (void) { return 0; }' > conftest.c
27977 if ($AR --version | sed 1q | grep "GNU ar" \
27978 && $CC $CFLAGS -c conftest.c \
27979 && $AR rcT conftest.a conftest.o \
27980 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a) >/dev/null 2>&1; then
27981 thin_archive_support=yes
27983 rm -f conftest.c conftest.o conftest.a conftest
27984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
27985 $as_echo "$thin_archive_support" >&6; }
27988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27989 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27990 gcc_cv_ld_eh_frame_hdr=no
27991 if test $in_tree_ld = yes ; then
27992 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 \
27993 && test $in_tree_ld_is_elf = yes; then
27994 gcc_cv_ld_eh_frame_hdr=yes
27996 elif test x$gcc_cv_ld != x; then
27997 if echo "$ld_ver" | grep GNU > /dev/null; then
27998 # Check if linker supports --eh-frame-hdr option
27999 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
28000 gcc_cv_ld_eh_frame_hdr=yes
28002 else
28003 case "$target" in
28004 *-*-solaris2*)
28005 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28006 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
28007 gcc_cv_ld_eh_frame_hdr=yes
28010 esac
28014 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
28016 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28020 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28023 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28024 gcc_cv_ld_eh_frame_ciev3=no
28025 if test $in_tree_ld = yes ; then
28026 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 \
28027 && test $in_tree_ld_is_elf = yes; then
28028 gcc_cv_ld_eh_frame_ciev3=yes
28030 elif test x$gcc_cv_ld != x; then
28031 if echo "$ld_ver" | grep GNU > /dev/null; then
28032 gcc_cv_ld_eh_frame_ciev3=yes
28033 if test 0"$ld_date" -lt 20040513; then
28034 if test -n "$ld_date"; then
28035 # If there was date string, but was earlier than 2004-05-13, fail
28036 gcc_cv_ld_eh_frame_ciev3=no
28037 elif test "$ld_vers_major" -lt 2; then
28038 gcc_cv_ld_eh_frame_ciev3=no
28039 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28040 gcc_cv_ld_eh_frame_ciev3=no
28043 else
28044 case "$target" in
28045 *-*-solaris2*)
28046 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28047 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
28048 gcc_cv_ld_eh_frame_ciev3=yes
28051 esac
28055 cat >>confdefs.h <<_ACEOF
28056 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28057 _ACEOF
28059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28060 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28063 $as_echo_n "checking linker position independent executable support... " >&6; }
28064 gcc_cv_ld_pie=no
28065 if test $in_tree_ld = yes ; then
28066 case "$target" in
28067 # Full PIE support on Solaris was only introduced in gld 2.26.
28068 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
28069 *) gcc_gld_pie_min_version=15 ;;
28070 esac
28071 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 \
28072 && test $in_tree_ld_is_elf = yes; then
28073 gcc_cv_ld_pie=yes
28075 elif test x$gcc_cv_ld != x; then
28076 # Check if linker supports -pie option
28077 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
28078 gcc_cv_ld_pie=yes
28079 case "$target" in
28080 *-*-solaris2*)
28081 if echo "$ld_ver" | grep GNU > /dev/null \
28082 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28083 gcc_cv_ld_pie=no
28086 esac
28087 else
28088 case "$target" in
28089 *-*-solaris2.1[1-9]*)
28090 # Solaris 11.x and Solaris 12 added PIE support.
28091 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
28092 gcc_cv_ld_pie=yes
28095 esac
28098 if test x"$gcc_cv_ld_pie" = xyes; then
28100 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28104 $as_echo "$gcc_cv_ld_pie" >&6; }
28106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28107 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28108 gcc_cv_ld_pie_copyreloc=no
28109 if test $gcc_cv_ld_pie = yes ; then
28110 if test $in_tree_ld = yes ; then
28111 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
28112 gcc_cv_ld_pie_copyreloc=yes
28114 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28115 # Check if linker supports -pie option with copy reloc
28116 case "$target" in
28117 i?86-*-linux* | x86_64-*-linux*)
28118 cat > conftest1.s <<EOF
28119 .globl a_glob
28120 .data
28121 .type a_glob, @object
28122 .size a_glob, 4
28123 a_glob:
28124 .long 2
28126 cat > conftest2.s <<EOF
28127 .text
28128 .globl main
28129 .type main, @function
28130 main:
28131 movl %eax, a_glob(%rip)
28132 .size main, .-main
28133 .globl ptr
28134 .section .data.rel,"aw",@progbits
28135 .type ptr, @object
28136 ptr:
28137 .quad a_glob
28139 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28140 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
28141 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28142 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
28143 gcc_cv_ld_pie_copyreloc=yes
28145 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28147 esac
28151 cat >>confdefs.h <<_ACEOF
28152 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28153 _ACEOF
28155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28156 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28159 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28160 gcc_cv_ld_eh_gc_sections=no
28161 if test $in_tree_ld = yes ; then
28162 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 \
28163 && test $in_tree_ld_is_elf = yes; then
28164 gcc_cv_ld_eh_gc_sections=yes
28166 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
28167 cat > conftest.s <<EOF
28168 .section .text
28169 .globl _start
28170 .type _start, @function
28171 _start:
28172 .long foo
28173 .size _start, .-_start
28174 .section .text.foo,"ax",@progbits
28175 .type foo, @function
28176 foo:
28177 .long 0
28178 .size foo, .-foo
28179 .section .gcc_except_table.foo,"a",@progbits
28180 .L0:
28181 .long 0
28182 .section .eh_frame,"a",@progbits
28183 .long .L0
28185 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28186 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28187 | grep "gc-sections option ignored" > /dev/null; then
28188 gcc_cv_ld_eh_gc_sections=no
28189 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28190 | grep gcc_except_table > /dev/null; then
28191 gcc_cv_ld_eh_gc_sections=yes
28192 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28193 if test x$gcc_cv_as_comdat_group != xyes; then
28194 gcc_cv_ld_eh_gc_sections=no
28195 cat > conftest.s <<EOF
28196 .section .text
28197 .globl _start
28198 .type _start, @function
28199 _start:
28200 .long foo
28201 .size _start, .-_start
28202 .section .gnu.linkonce.t.foo,"ax",@progbits
28203 .type foo, @function
28204 foo:
28205 .long 0
28206 .size foo, .-foo
28207 .section .gcc_except_table.foo,"a",@progbits
28208 .L0:
28209 .long 0
28210 .section .eh_frame,"a",@progbits
28211 .long .L0
28213 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28214 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28215 | grep "gc-sections option ignored" > /dev/null; then
28216 gcc_cv_ld_eh_gc_sections=no
28217 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28218 | grep gcc_except_table > /dev/null; then
28219 gcc_cv_ld_eh_gc_sections=yes
28225 rm -f conftest.s conftest.o conftest
28227 case "$target" in
28228 hppa*-*-linux*)
28229 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28230 gcc_cv_ld_eh_gc_sections=no
28232 esac
28233 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
28235 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28239 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28242 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28243 gcc_cv_ld_eh_gc_sections_bug=no
28244 if test $in_tree_ld = yes ; then
28245 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 \
28246 && test $in_tree_ld_is_elf = yes; then
28247 gcc_cv_ld_eh_gc_sections_bug=yes
28249 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
28250 gcc_cv_ld_eh_gc_sections_bug=yes
28251 cat > conftest.s <<EOF
28252 .section .text
28253 .globl _start
28254 .type _start, @function
28255 _start:
28256 .long foo
28257 .size _start, .-_start
28258 .section .text.startup.foo,"ax",@progbits
28259 .type foo, @function
28260 foo:
28261 .long 0
28262 .size foo, .-foo
28263 .section .gcc_except_table.foo,"a",@progbits
28264 .L0:
28265 .long 0
28266 .section .eh_frame,"a",@progbits
28267 .long .L0
28269 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
28270 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
28271 | grep "gc-sections option ignored" > /dev/null; then
28273 elif $gcc_cv_objdump -h conftest 2> /dev/null \
28274 | grep gcc_except_table > /dev/null; then
28275 gcc_cv_ld_eh_gc_sections_bug=no
28278 rm -f conftest.s conftest.o conftest
28280 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28282 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28286 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28289 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28290 # gold/gld support compressed debug sections since binutils 2.19/2.21
28291 # In binutils 2.26, gld gained support for the ELF gABI format.
28292 if test $in_tree_ld = yes ; then
28293 gcc_cv_ld_compress_debug=0
28294 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 \
28295 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28296 gcc_cv_ld_compress_debug=2
28297 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28298 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 \
28299 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no; then
28300 gcc_cv_ld_compress_debug=3
28301 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28302 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 \
28303 && test $in_tree_ld_is_elf = yes; then
28304 gcc_cv_ld_compress_debug=1
28306 elif echo "$ld_ver" | grep GNU > /dev/null; then
28307 if test "$ld_vers_major" -lt 2 \
28308 || test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28309 gcc_cv_ld_compress_debug=0
28310 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28311 gcc_cv_ld_compress_debug=1
28312 else
28313 gcc_cv_ld_compress_debug=3
28314 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28316 if test $ld_is_gold = yes; then
28317 gcc_cv_ld_compress_debug=2
28318 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28320 else
28321 case "${target}" in
28322 *-*-solaris2*)
28323 # Introduced in Solaris 11.2.
28324 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28325 gcc_cv_ld_compress_debug=3
28326 gcc_cv_ld_compress_debug_option="-z compress-sections"
28327 else
28328 gcc_cv_ld_compress_debug=0
28332 # Assume linkers other than GNU ld don't support compessed debug
28333 # sections.
28334 gcc_cv_ld_compress_debug=0
28336 esac
28339 cat >>confdefs.h <<_ACEOF
28340 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28341 _ACEOF
28344 cat >>confdefs.h <<_ACEOF
28345 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28346 _ACEOF
28348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28349 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28351 if test x"$ld64_flag" = x"yes"; then
28353 # Set defaults for possibly untestable items.
28354 gcc_cv_ld64_export_dynamic=0
28356 if test "$build" = "$host"; then
28357 darwin_try_test=1
28358 else
28359 darwin_try_test=0
28362 # On Darwin, because of FAT library support, it is often possible to execute
28363 # exes from compatible archs even when the host differs from the build system.
28364 case "$build","$host" in
28365 x86_64-*-darwin*,i?86-*-darwin* | powerpc64*-*-darwin*,powerpc*-*-darwin*)
28366 darwin_try_test=1;;
28367 *) ;;
28368 esac
28370 # If the configurer specified a minimum ld64 version to be supported, then use
28371 # that to determine feature support.
28372 if test x"${gcc_cv_ld64_version}" != x; then
28373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28374 $as_echo_n "checking ld64 specified version... " >&6; }
28375 gcc_cv_ld64_major=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28377 $as_echo "$gcc_cv_ld64_major" >&6; }
28378 if test "$gcc_cv_ld64_major" -ge 236; then
28379 gcc_cv_ld64_export_dynamic=1
28381 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28382 # If the version was not specified, try to find it.
28383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28384 $as_echo_n "checking linker version... " >&6; }
28385 if test x"${gcc_cv_ld64_version}" = x; then
28386 gcc_cv_ld64_version=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28389 $as_echo "$gcc_cv_ld64_version" >&6; }
28391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28392 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28393 gcc_cv_ld64_export_dynamic=1
28394 if $gcc_cv_ld -export_dynamic < /dev/null 2>&1 | grep 'unknown option' > /dev/null; then
28395 gcc_cv_ld64_export_dynamic=0
28397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28398 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28401 if test x"${gcc_cv_ld64_version}" != x; then
28403 cat >>confdefs.h <<_ACEOF
28404 #define LD64_VERSION "${gcc_cv_ld64_version}"
28405 _ACEOF
28410 cat >>confdefs.h <<_ACEOF
28411 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28412 _ACEOF
28416 # --------
28417 # UNSORTED
28418 # --------
28420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28421 $as_echo_n "checking linker --as-needed support... " >&6; }
28422 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28423 $as_echo_n "(cached) " >&6
28424 else
28425 gcc_cv_ld_as_needed=no
28426 gcc_cv_ld_as_needed_option='--as-needed'
28427 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28428 if test $in_tree_ld = yes ; then
28429 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 \
28430 && test $in_tree_ld_is_elf = yes; then
28431 gcc_cv_ld_as_needed=yes
28433 elif test x$gcc_cv_ld != x; then
28434 # Check if linker supports --as-needed and --no-as-needed options
28435 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
28436 gcc_cv_ld_as_needed=yes
28437 else
28438 case "$target" in
28439 # Solaris 2 ld always supports -z ignore/-z record.
28440 *-*-solaris2*)
28441 gcc_cv_ld_as_needed=yes
28442 gcc_cv_ld_as_needed_option="-z ignore"
28443 gcc_cv_ld_no_as_needed_option="-z record"
28445 esac
28448 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28449 # dl_iterate_phdr, i.e. since Solaris 11.
28450 case "$target" in
28451 *-*-solaris2.1[1-9]*)
28452 case "$target" in
28453 i?86-*-* | x86_64-*-*)
28454 if echo "$ld_ver" | grep GNU > /dev/null; then
28455 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28456 gcc_cv_ld_as_needed=no
28459 esac
28461 *-*-solaris2*)
28462 gcc_cv_ld_as_needed=no
28464 esac
28467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28468 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28469 if test x"$gcc_cv_ld_as_needed" = xyes; then
28471 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28474 cat >>confdefs.h <<_ACEOF
28475 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28476 _ACEOF
28479 cat >>confdefs.h <<_ACEOF
28480 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28481 _ACEOF
28485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28486 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28487 saved_LDFLAGS="$LDFLAGS"
28488 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28489 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28491 /* end confdefs.h. */
28492 int main(void) {return 0;}
28493 _ACEOF
28494 if ac_fn_cxx_try_link "$LINENO"; then :
28495 gcc_cv_ld_clearcap=yes; break
28496 else
28497 gcc_cv_ld_clearcap=no
28499 rm -f core conftest.err conftest.$ac_objext \
28500 conftest$ac_exeext conftest.$ac_ext
28501 done
28502 LDFLAGS="$saved_LDFLAGS"
28503 if test "x$gcc_cv_ld_clearcap" = xyes; then
28505 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28507 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28511 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28513 case "$target" in
28514 powerpc*-*-*)
28515 case "$target" in
28516 *le-*-linux*)
28517 emul_name="-melf32lppc"
28520 emul_name="-melf32ppc"
28522 esac
28523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28524 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28525 if test "${gcc_cv_ld_ppc_attr+set}" = set; then :
28526 $as_echo_n "(cached) " >&6
28527 else
28528 gcc_cv_ld_ppc_attr=no
28529 if test x"$ld_is_gold" = xyes; then
28530 gcc_cv_ld_ppc_attr=yes
28531 elif test $in_tree_ld = yes ; then
28532 if test "$gcc_cv_gld_major_version" -eq 2 \
28533 -a "$gcc_cv_gld_minor_version" -ge 28 \
28534 -o "$gcc_cv_gld_major_version" -gt 2; then
28535 gcc_cv_ld_ppc_attr=yes
28537 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28538 # check that merging the long double .gnu_attribute doesn't warn
28539 cat > conftest1.s <<EOF
28540 .gnu_attribute 4,1
28542 cat > conftest2.s <<EOF
28543 .gnu_attribute 4,9
28545 if $gcc_cv_as -a32 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28546 && $gcc_cv_as -a32 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28547 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o > /dev/null 2> conftest.err \
28548 && test ! -s conftest.err; then
28549 gcc_cv_ld_ppc_attr=yes
28551 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28556 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28557 if test x$gcc_cv_ld_ppc_attr = xyes; then
28559 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28563 esac
28565 case "$target:$tm_file" in
28566 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28567 case "$target" in
28568 *le-*-linux*)
28569 emul_name="-melf64lppc"
28571 *-*-linux*)
28572 emul_name="-melf64ppc"
28574 *-*-freebsd*)
28575 emul_name="-melf64ppc_fbsd"
28577 esac
28578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28579 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28580 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28581 $as_echo_n "(cached) " >&6
28582 else
28583 gcc_cv_ld_no_dot_syms=no
28584 if test x"$ld_is_gold" = xyes; then
28585 gcc_cv_ld_no_dot_syms=yes
28586 elif test $in_tree_ld = yes ; then
28587 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
28588 gcc_cv_ld_no_dot_syms=yes
28590 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28591 cat > conftest1.s <<EOF
28592 .text
28593 bl .foo
28595 cat > conftest2.s <<EOF
28596 .section ".opd","aw"
28597 .align 3
28598 .globl foo
28599 .type foo,@function
28600 foo:
28601 .quad .LEfoo,.TOC.@tocbase,0
28602 .text
28603 .LEfoo:
28605 .size foo,.-.LEfoo
28607 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28608 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28609 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28610 gcc_cv_ld_no_dot_syms=yes
28612 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28617 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28618 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28620 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28625 $as_echo_n "checking linker large toc support... " >&6; }
28626 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28627 $as_echo_n "(cached) " >&6
28628 else
28629 gcc_cv_ld_large_toc=no
28630 if test x"$ld_is_gold" = xyes; then
28631 gcc_cv_ld_large_toc=yes
28632 elif test $in_tree_ld = yes ; then
28633 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
28634 gcc_cv_ld_large_toc=yes
28636 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28637 cat > conftest.s <<EOF
28638 .section ".tbss","awT",@nobits
28639 .align 3
28640 ie0: .space 8
28641 .global _start
28642 .text
28643 _start:
28644 addis 9,13,ie0@got@tprel@ha
28645 ld 9,ie0@got@tprel@l(9)
28647 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28648 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28649 gcc_cv_ld_large_toc=yes
28651 rm -f conftest conftest.o conftest.s
28655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28656 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28657 if test x"$gcc_cv_ld_large_toc" = xyes; then
28659 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28664 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28665 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28666 $as_echo_n "(cached) " >&6
28667 else
28668 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28669 cat > conftest.s <<EOF
28670 .global _start
28671 .text
28672 _start:
28673 addis 9,2,x@got@ha
28674 .section .data.rel.ro,"aw",@progbits
28675 .p2align 16
28676 .space 32768
28677 x: .quad .TOC.
28679 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28680 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28681 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)) }'`
28683 rm -f conftest conftest.o conftest.s
28687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28688 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28689 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28691 cat >>confdefs.h <<_ACEOF
28692 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28693 _ACEOF
28697 esac
28699 case "$target" in
28700 *-*-aix*)
28701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28702 $as_echo_n "checking linker large toc support... " >&6; }
28703 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28704 $as_echo_n "(cached) " >&6
28705 else
28706 gcc_cv_ld_large_toc=no
28707 if test x$gcc_cv_as != x ; then
28708 cat > conftest.s <<EOF
28709 .toc
28710 LC..1:
28711 .tc a[TC],a[RW]
28712 .extern a[RW]
28713 .csect .text[PR]
28714 .largetoctest:
28715 addis 9,LC..1@u(2)
28716 ld 3,LC..1@l(9)
28718 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28719 gcc_cv_ld_large_toc=yes
28721 rm -f conftest conftest.o conftest.s
28725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28726 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28727 if test x"$gcc_cv_ld_large_toc" = xyes; then
28729 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28733 esac
28735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28736 $as_echo_n "checking linker --build-id support... " >&6; }
28737 if test "${gcc_cv_ld_buildid+set}" = set; then :
28738 $as_echo_n "(cached) " >&6
28739 else
28740 gcc_cv_ld_buildid=no
28741 if test $in_tree_ld = yes ; then
28742 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28743 "$gcc_cv_gld_minor_version" -ge 18 -o \
28744 "$gcc_cv_gld_major_version" -gt 2 \
28745 && test $in_tree_ld_is_elf = yes; then
28746 gcc_cv_ld_buildid=yes
28748 elif test x$gcc_cv_ld != x; then
28749 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
28750 gcc_cv_ld_buildid=yes
28754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28755 $as_echo "$gcc_cv_ld_buildid" >&6; }
28756 if test x"$gcc_cv_ld_buildid" = xyes; then
28758 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28762 # Check whether --enable-linker-build-id was given.
28763 if test "${enable_linker_build_id+set}" = set; then :
28764 enableval=$enable_linker_build_id;
28765 else
28766 enable_linker_build_id=no
28770 if test x"$enable_linker_build_id" = xyes; then
28771 if test x"$gcc_cv_ld_buildid" = xyes; then
28773 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28775 else
28776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28777 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28781 # In binutils 2.21, GNU ld gained support for new emulations fully
28782 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28784 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28785 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28786 $as_echo_n "(cached) " >&6
28787 else
28788 gcc_cv_ld_sol2_emulation=no
28789 if test $in_tree_ld = yes ; then
28790 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28791 "$gcc_cv_gld_minor_version" -ge 21 -o \
28792 "$gcc_cv_gld_major_version" -gt 2 \
28793 && test $in_tree_ld_is_elf = yes; then
28794 gcc_cv_ld_sol2_emulation=yes
28796 elif test x$gcc_cv_ld != x; then
28797 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28798 grep _sol2 > /dev/null; then
28799 gcc_cv_ld_sol2_emulation=yes
28803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28804 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28805 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28807 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28812 $as_echo_n "checking linker --sysroot support... " >&6; }
28813 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28814 $as_echo_n "(cached) " >&6
28815 else
28816 gcc_cv_ld_sysroot=no
28817 if test $in_tree_ld = yes ; then
28818 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
28819 gcc_cv_ld_sysroot=yes
28821 elif test x$gcc_cv_ld != x; then
28822 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
28823 gcc_cv_ld_sysroot=yes
28827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28828 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28829 if test x"$gcc_cv_ld_sysroot" = xyes; then
28831 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28835 case $target in
28836 *-*-solaris2*)
28837 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28839 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28840 if test "${gcc_cv_solaris_crts+set}" = set; then :
28841 $as_echo_n "(cached) " >&6
28842 else
28843 gcc_cv_solaris_crts=no
28844 if test x$host != x$target; then
28845 if test "x$with_sysroot" = xyes; then
28846 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
28847 else
28848 target_sysroot="${with_sysroot}"
28851 target_libdir="$target_sysroot/usr/lib"
28852 # At the time they were added, gcrt1.o became a symlink for backwards
28853 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28854 case $target in
28855 i?86-*-solaris2* | x86_64-*-solaris2*)
28856 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
28858 sparc*-*-solaris2*)
28859 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
28861 esac
28863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28864 $as_echo "$gcc_cv_solaris_crts" >&6; }
28866 esac
28867 if test x$gcc_cv_solaris_crts = xyes; then
28869 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28873 # Test for stack protector support in target C library.
28874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28875 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28876 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28877 $as_echo_n "(cached) " >&6
28878 else
28879 gcc_cv_libc_provides_ssp=no
28880 case "$target" in
28881 *-*-musl*)
28882 # All versions of musl provide stack protector
28883 gcc_cv_libc_provides_ssp=yes;;
28884 *-*-linux* | *-*-kfreebsd*-gnu)
28885 # glibc 2.4 and later provides __stack_chk_fail and
28886 # either __stack_chk_guard, or TLS access to stack guard canary.
28888 if test $glibc_version_major -gt 2 \
28889 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28890 gcc_cv_libc_provides_ssp=yes
28891 else
28893 if test -f $target_header_dir/features.h \
28894 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28895 $target_header_dir/features.h > /dev/null; then
28896 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28897 $target_header_dir/features.h > /dev/null && \
28898 test -f $target_header_dir/bits/uClibc_config.h && \
28899 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28900 $target_header_dir/bits/uClibc_config.h > /dev/null; then
28901 gcc_cv_libc_provides_ssp=yes
28903 # all versions of Bionic support stack protector
28904 elif test -f $target_header_dir/sys/cdefs.h \
28905 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28906 $target_header_dir/sys/cdefs.h > /dev/null; then
28907 gcc_cv_libc_provides_ssp=yes
28911 *-*-gnu*)
28912 # Avoid complicated tests (see
28913 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28914 # simply assert that glibc does provide this, which is true for all
28915 # realistically usable GNU/Hurd configurations.
28916 # All supported versions of musl provide it as well
28917 gcc_cv_libc_provides_ssp=yes;;
28918 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
28919 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28920 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
28921 gcc_cv_libc_provides_ssp=yes
28922 else
28923 echo "no __stack_chk_fail on this target"
28927 *) gcc_cv_libc_provides_ssp=no ;;
28928 esac
28930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28931 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28933 if test x$gcc_cv_libc_provides_ssp = xyes; then
28935 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28939 # Check whether --enable-default-ssp was given.
28940 # Check whether --enable-default-ssp was given.
28941 if test "${enable_default_ssp+set}" = set; then :
28942 enableval=$enable_default_ssp;
28943 if test x$gcc_cv_libc_provides_ssp = xyes; then
28944 case "$target" in
28945 ia64*-*-*) enable_default_ssp=no ;;
28946 *) enable_default_ssp=$enableval ;;
28947 esac
28948 else
28949 enable_default_ssp=no
28951 else
28952 enable_default_ssp=no
28955 if test x$enable_default_ssp = xyes ; then
28957 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28962 # Test for <sys/sdt.h> on the target.
28964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28965 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28966 have_sys_sdt_h=no
28967 if test -f $target_header_dir/sys/sdt.h; then
28968 have_sys_sdt_h=yes
28970 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28974 $as_echo "$have_sys_sdt_h" >&6; }
28976 # Check if TFmode long double should be used by default or not.
28977 # Some glibc targets used DFmode long double, but with glibc 2.4
28978 # and later they can use TFmode.
28979 case "$target" in
28980 powerpc*-*-linux* | \
28981 sparc*-*-linux* | \
28982 s390*-*-linux* | \
28983 alpha*-*-linux*)
28985 # Check whether --with-long-double-128 was given.
28986 if test "${with_long_double_128+set}" = set; then :
28987 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
28988 else
28990 if test $glibc_version_major -gt 2 \
28991 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28992 gcc_cv_target_ldbl128=yes
28993 else
28995 gcc_cv_target_ldbl128=no
28996 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28997 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
28998 && gcc_cv_target_ldbl128=yes
29004 esac
29005 if test x$gcc_cv_target_ldbl128 = xyes; then
29007 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29011 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29012 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29013 gcc_cv_libc_provides_hwcap_in_tcb=no
29014 case "$target" in
29015 powerpc*-*-linux*)
29017 if test $glibc_version_major -gt 2 \
29018 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29019 gcc_cv_libc_provides_hwcap_in_tcb=yes
29022 esac
29023 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
29025 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29030 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29031 gcc_cv_target_dl_iterate_phdr=unknown
29032 case "$target" in
29033 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
29034 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29035 # libdl there, both complicating its use and breaking compatibility
29036 # between Solaris 10 updates.
29037 *-*-solaris2.1[1-9]*)
29038 # <link.h> needs both a dl_iterate_phdr declaration and support for
29039 # compilation with largefile support.
29040 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
29041 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
29042 gcc_cv_target_dl_iterate_phdr=yes
29043 else
29044 gcc_cv_target_dl_iterate_phdr=no
29047 *-*-dragonfly* | *-*-freebsd*)
29048 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
29049 gcc_cv_target_dl_iterate_phdr=yes
29050 else
29051 gcc_cv_target_dl_iterate_phdr=no
29054 *-linux-musl*)
29055 gcc_cv_target_dl_iterate_phdr=yes
29057 esac
29059 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
29061 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29065 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29067 # We no longer support different GC mechanisms. Emit an error if
29068 # the user configures with --with-gc.
29070 # Check whether --with-gc was given.
29071 if test "${with_gc+set}" = set; then :
29072 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29076 # Libraries to use on the host. This will normally be set by the top
29077 # level Makefile. Here we simply capture the value for our Makefile.
29078 if test -z "${HOST_LIBS+set}"; then
29079 HOST_LIBS=
29083 # Use the system's zlib library.
29085 # Use the system's zlib library.
29086 zlibdir="-L\$(top_builddir)/../zlib"
29087 zlibinc="-I\$(top_srcdir)/../zlib"
29089 # Check whether --with-system-zlib was given.
29090 if test "${with_system_zlib+set}" = set; then :
29091 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
29092 zlibdir=
29093 zlibinc=
29103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29104 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29105 # Check whether --enable-maintainer-mode was given.
29106 if test "${enable_maintainer_mode+set}" = set; then :
29107 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
29108 else
29109 maintainer_mode=no
29113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29114 $as_echo "$maintainer_mode" >&6; }
29116 if test "$maintainer_mode" = "yes"; then
29117 MAINT=''
29118 else
29119 MAINT='#'
29123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29124 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29125 # Check whether --enable-link-mutex was given.
29126 if test "${enable_link_mutex+set}" = set; then :
29127 enableval=$enable_link_mutex; do_link_mutex=$enableval
29128 else
29129 do_link_mutex=no
29132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29133 $as_echo "$do_link_mutex" >&6; }
29135 if test "$do_link_mutex" = "yes"; then
29136 DO_LINK_MUTEX=true
29137 else
29138 DO_LINK_MUTEX=false
29142 # --------------
29143 # Language hooks
29144 # --------------
29146 # Make empty files to contain the specs and options for each language.
29147 # Then add #include lines to for a compiler that has specs and/or options.
29149 subdirs=
29150 lang_opt_files=
29151 lang_specs_files=
29152 lang_tree_files=
29153 # These (without "all_") are set in each config-lang.in.
29154 # `language' must be a single word so is spelled singularly.
29155 all_languages=
29156 all_compilers=
29157 all_outputs='Makefile'
29158 # List of language makefile fragments.
29159 all_lang_makefrags=
29160 # Additional files for gengtype
29161 all_gtfiles="$target_gtfiles"
29163 # These are the languages that are set in --enable-languages,
29164 # and are available in the GCC tree.
29165 all_selected_languages=
29167 # Add the language fragments.
29168 # Languages are added via two mechanisms. Some information must be
29169 # recorded in makefile variables, these are defined in config-lang.in.
29170 # We accumulate them and plug them into the main Makefile.
29171 # The other mechanism is a set of hooks for each of the main targets
29172 # like `clean', `install', etc.
29174 language_hooks="Make-hooks"
29176 for lang in ${srcdir}/*/config-lang.in
29178 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29180 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29181 if test "x$lang_alias" = x
29182 then
29183 echo "$lang doesn't set \$language." 1>&2
29184 exit 1
29186 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29187 subdirs="$subdirs $subdir"
29189 # $gcc_subdir is where the gcc integration files are to be found
29190 # for a language, both for internal compiler purposes (compiler
29191 # sources implementing front-end to GCC tree converters), and for
29192 # build infrastructure purposes (Make-lang.in, etc.)
29194 # This will be <subdir> (relative to $srcdir) if a line like
29195 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29196 # is found in <langdir>/config-lang.in, and will remain <langdir>
29197 # otherwise.
29199 # Except for the language alias (fetched above), the regular
29200 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29201 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29202 # only this and the language alias.
29204 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29205 if [ "$gcc_subdir" = "" ]; then
29206 gcc_subdir="$subdir"
29209 case ",$enable_languages," in
29210 *,$lang_alias,*)
29211 all_selected_languages="$all_selected_languages $lang_alias"
29212 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
29213 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29216 esac
29218 language=
29219 boot_language=
29220 compilers=
29221 outputs=
29222 gtfiles=
29223 subdir_requires=
29224 . ${srcdir}/$gcc_subdir/config-lang.in
29225 if test "x$language" = x
29226 then
29227 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29228 exit 1
29231 ok=:
29232 case ",$enable_languages," in
29233 *,$lang_alias,*) ;;
29235 for i in $subdir_requires; do
29236 test -f "${srcdir}/$i/config-lang.in" && continue
29237 ok=false
29238 break
29239 done
29241 esac
29242 $ok || continue
29244 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29245 if test -f $srcdir/$gcc_subdir/lang.opt; then
29246 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29247 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29249 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
29250 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29252 all_languages="$all_languages $language"
29253 all_compilers="$all_compilers $compilers"
29254 all_outputs="$all_outputs $outputs"
29255 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
29256 case ",$enable_languages," in
29257 *,lto,*)
29259 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29261 enable_lto=yes
29264 *) ;;
29265 esac
29266 done
29268 check_languages=
29269 for language in $all_selected_languages
29271 check_languages="$check_languages check-$language"
29272 done
29274 # We link each language in with a set of hooks, reached indirectly via
29275 # lang.${target}. Only do so for selected languages.
29277 rm -f Make-hooks
29278 touch Make-hooks
29279 target_list="all.cross start.encap rest.encap tags \
29280 install-common install-man install-info install-pdf install-html dvi \
29281 pdf html uninstall info man srcextra srcman srcinfo \
29282 mostlyclean clean distclean maintainer-clean install-plugin"
29284 for t in $target_list
29287 for lang in $all_selected_languages
29289 x="$x $lang.$t"
29290 done
29291 echo "lang.$t: $x" >> Make-hooks
29292 done
29294 # --------
29295 # Option include files
29296 # --------
29298 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
29299 option_includes="option-includes.mk"
29302 # --------
29303 # UNSORTED
29304 # --------
29306 # Create .gdbinit.
29308 echo "dir ." > .gdbinit
29309 echo "dir ${srcdir}" >> .gdbinit
29310 if test x$gdb_needs_out_file_path = xyes
29311 then
29312 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29314 if test "x$subdirs" != x; then
29315 for s in $subdirs
29317 echo "dir ${srcdir}/$s" >> .gdbinit
29318 done
29320 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29321 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29323 # Put a breakpoint on __asan_report_error to help with debugging buffer
29324 # overflow.
29325 case "$CFLAGS" in
29326 *-fsanitize=address*)
29327 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29329 esac
29331 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29335 # Find a directory in which to install a shared libgcc.
29337 # Check whether --enable-version-specific-runtime-libs was given.
29338 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29339 enableval=$enable_version_specific_runtime_libs;
29343 # Substitute configuration variables
29406 # Echo link setup.
29407 if test x${build} = x${host} ; then
29408 if test x${host} = x${target} ; then
29409 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29410 else
29411 echo "Links are now set up to build a cross-compiler" 1>&2
29412 echo " from ${host} to ${target}." 1>&2
29414 else
29415 if test x${host} = x${target} ; then
29416 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29417 echo " for ${target}." 1>&2
29418 else
29419 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29420 echo " from ${host} to ${target}." 1>&2
29429 if test "x${ISLLIBS}" != "x" ; then
29431 $as_echo "#define HAVE_isl 1" >>confdefs.h
29435 # Check for plugin support
29436 # Check whether --enable-plugin was given.
29437 if test "${enable_plugin+set}" = set; then :
29438 enableval=$enable_plugin; enable_plugin=$enableval
29439 else
29440 enable_plugin=yes; default_plugin=yes
29444 pluginlibs=
29446 case "${host}" in
29447 *-*-darwin*)
29448 if test x$build = x$host; then
29449 export_sym_check="nm${exeext} -g"
29450 elif test x$host = x$target; then
29451 export_sym_check="$gcc_cv_nm -g"
29452 else
29453 export_sym_check=
29457 if test x$build = x$host; then
29458 export_sym_check="objdump${exeext} -T"
29459 elif test x$host = x$target; then
29460 export_sym_check="$gcc_cv_objdump -T"
29461 else
29462 export_sym_check=
29465 esac
29467 if test x"$enable_plugin" = x"yes"; then
29469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29470 $as_echo_n "checking for exported symbols... " >&6; }
29471 if test "x$export_sym_check" != x; then
29472 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29473 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29474 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29475 : # No need to use a flag
29476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29477 $as_echo "yes" >&6; }
29478 else
29479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29480 $as_echo "yes" >&6; }
29481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29482 $as_echo_n "checking for -rdynamic... " >&6; }
29483 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29484 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29485 plugin_rdynamic=yes
29486 pluginlibs="-rdynamic"
29487 else
29488 plugin_rdynamic=no
29489 enable_plugin=no
29491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29492 $as_echo "$plugin_rdynamic" >&6; }
29494 else
29495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29496 $as_echo "unable to check" >&6; }
29499 # Check -ldl
29500 saved_LIBS="$LIBS"
29501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29502 $as_echo_n "checking for library containing dlopen... " >&6; }
29503 if test "${ac_cv_search_dlopen+set}" = set; then :
29504 $as_echo_n "(cached) " >&6
29505 else
29506 ac_func_search_save_LIBS=$LIBS
29507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29508 /* end confdefs.h. */
29510 /* Override any GCC internal prototype to avoid an error.
29511 Use char because int might match the return type of a GCC
29512 builtin and then its argument prototype would still apply. */
29513 #ifdef __cplusplus
29514 extern "C"
29515 #endif
29516 char dlopen ();
29518 main ()
29520 return dlopen ();
29522 return 0;
29524 _ACEOF
29525 for ac_lib in '' dl; do
29526 if test -z "$ac_lib"; then
29527 ac_res="none required"
29528 else
29529 ac_res=-l$ac_lib
29530 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29532 if ac_fn_cxx_try_link "$LINENO"; then :
29533 ac_cv_search_dlopen=$ac_res
29535 rm -f core conftest.err conftest.$ac_objext \
29536 conftest$ac_exeext
29537 if test "${ac_cv_search_dlopen+set}" = set; then :
29538 break
29540 done
29541 if test "${ac_cv_search_dlopen+set}" = set; then :
29543 else
29544 ac_cv_search_dlopen=no
29546 rm conftest.$ac_ext
29547 LIBS=$ac_func_search_save_LIBS
29549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29550 $as_echo "$ac_cv_search_dlopen" >&6; }
29551 ac_res=$ac_cv_search_dlopen
29552 if test "$ac_res" != no; then :
29553 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29557 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29558 pluginlibs="$pluginlibs -ldl"
29560 LIBS="$saved_LIBS"
29562 # Check that we can build shared objects with -fPIC -shared
29563 saved_LDFLAGS="$LDFLAGS"
29564 saved_CFLAGS="$CFLAGS"
29565 case "${host}" in
29566 *-*-darwin*)
29567 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29568 CFLAGS="$CFLAGS -fPIC"
29569 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29572 CFLAGS="$CFLAGS -fPIC"
29573 LDFLAGS="$LDFLAGS -fPIC -shared"
29575 esac
29576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29577 $as_echo_n "checking for -fPIC -shared... " >&6; }
29578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29579 /* end confdefs.h. */
29580 extern int X;
29582 main ()
29584 return X == 0;
29586 return 0;
29588 _ACEOF
29589 if ac_fn_cxx_try_link "$LINENO"; then :
29590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29591 $as_echo "yes" >&6; }; have_pic_shared=yes
29592 else
29593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29594 $as_echo "no" >&6; }; have_pic_shared=no
29596 rm -f core conftest.err conftest.$ac_objext \
29597 conftest$ac_exeext conftest.$ac_ext
29598 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29599 pluginlibs=
29600 enable_plugin=no
29602 LDFLAGS="$saved_LDFLAGS"
29603 CFLAGS="$saved_CFLAGS"
29605 # If plugin support had been requested but not available, fail.
29606 if test x"$enable_plugin" = x"no" ; then
29607 if test x"$default_plugin" != x"yes"; then
29608 as_fn_error "
29609 Building GCC with plugin support requires a host that supports
29610 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29617 if test x"$enable_plugin" = x"yes"; then
29619 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29624 # Enable --enable-host-shared
29625 # Check whether --enable-host-shared was given.
29626 if test "${enable_host_shared+set}" = set; then :
29627 enableval=$enable_host_shared; PICFLAG=-fPIC
29628 else
29629 PICFLAG=
29636 # Check whether --enable-libquadmath-support was given.
29637 if test "${enable_libquadmath_support+set}" = set; then :
29638 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29639 else
29640 ENABLE_LIBQUADMATH_SUPPORT=yes
29643 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29645 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29650 # Specify what hash style to use by default.
29652 # Check whether --with-linker-hash-style was given.
29653 if test "${with_linker_hash_style+set}" = set; then :
29654 withval=$with_linker_hash_style; case x"$withval" in
29655 xsysv)
29656 LINKER_HASH_STYLE=sysv
29658 xgnu)
29659 LINKER_HASH_STYLE=gnu
29661 xboth)
29662 LINKER_HASH_STYLE=both
29665 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29667 esac
29668 else
29669 LINKER_HASH_STYLE=''
29672 if test x"${LINKER_HASH_STYLE}" != x; then
29674 cat >>confdefs.h <<_ACEOF
29675 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29676 _ACEOF
29680 # Specify what should be the default of -fdiagnostics-color option.
29682 # Check whether --with-diagnostics-color was given.
29683 if test "${with_diagnostics_color+set}" = set; then :
29684 withval=$with_diagnostics_color; case x"$withval" in
29685 xnever)
29686 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29688 xauto)
29689 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29691 xauto-if-env)
29692 DIAGNOSTICS_COLOR_DEFAULT=-1
29694 xalways)
29695 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29698 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29700 esac
29701 else
29702 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29706 cat >>confdefs.h <<_ACEOF
29707 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29708 _ACEOF
29711 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29712 # of jit/jit-playback.c.
29713 cat > gcc-driver-name.h <<EOF
29714 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29717 # Check whether --enable-default-pie was given.
29718 # Check whether --enable-default-pie was given.
29719 if test "${enable_default_pie+set}" = set; then :
29720 enableval=$enable_default_pie; enable_default_pie=$enableval
29721 else
29722 enable_default_pie=no
29725 if test x$enable_default_pie = xyes ; then
29727 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29732 # Check if -fno-PIE works.
29733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29734 $as_echo_n "checking for -fno-PIE option... " >&6; }
29735 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29736 $as_echo_n "(cached) " >&6
29737 else
29738 saved_CXXFLAGS="$CXXFLAGS"
29739 CXXFLAGS="$CXXFLAGS -fno-PIE"
29740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29741 /* end confdefs.h. */
29742 int main(void) {return 0;}
29743 _ACEOF
29744 if ac_fn_cxx_try_compile "$LINENO"; then :
29745 gcc_cv_c_no_fpie=yes
29746 else
29747 gcc_cv_c_no_fpie=no
29749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29750 CXXFLAGS="$saved_CXXFLAGS"
29752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29753 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29754 if test "$gcc_cv_c_no_fpie" = "yes"; then
29755 NO_PIE_CFLAGS="-fno-PIE"
29759 # Check if -no-pie works.
29760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29761 $as_echo_n "checking for -no-pie option... " >&6; }
29762 if test "${gcc_cv_no_pie+set}" = set; then :
29763 $as_echo_n "(cached) " >&6
29764 else
29765 saved_LDFLAGS="$LDFLAGS"
29766 LDFLAGS="$LDFLAGS -no-pie"
29767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29768 /* end confdefs.h. */
29769 int main(void) {return 0;}
29770 _ACEOF
29771 if ac_fn_cxx_try_link "$LINENO"; then :
29772 gcc_cv_no_pie=yes
29773 else
29774 gcc_cv_no_pie=no
29776 rm -f core conftest.err conftest.$ac_objext \
29777 conftest$ac_exeext conftest.$ac_ext
29778 LDFLAGS="$saved_LDFLAGS"
29780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29781 $as_echo "$gcc_cv_no_pie" >&6; }
29782 if test "$gcc_cv_no_pie" = "yes"; then
29783 NO_PIE_FLAG="-no-pie"
29787 # Check linker supports '-z bndplt'
29788 ld_bndplt_support=no
29789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29790 $as_echo_n "checking linker -z bndplt option... " >&6; }
29791 if test x"$ld_is_gold" = xno; then
29792 if test $in_tree_ld = yes ; then
29793 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
29794 ld_bndplt_support=yes
29796 elif test x$gcc_cv_ld != x; then
29797 # Check if linker supports -a bndplt option
29798 if $gcc_cv_ld --help 2>/dev/null | grep -- '-z bndplt' > /dev/null; then
29799 ld_bndplt_support=yes
29803 if test x"$ld_bndplt_support" = xyes; then
29805 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29809 $as_echo "$ld_bndplt_support" >&6; }
29811 # Check linker supports '--push-state'/'--pop-state'
29812 ld_pushpopstate_support=no
29813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
29814 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
29815 if test x"$ld_is_gold" = xno; then
29816 if test $in_tree_ld = yes ; then
29817 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
29818 ld_pushpopstate_support=yes
29820 elif test x$gcc_cv_ld != x; then
29821 # Check if linker supports --push-state/--pop-state options
29822 if $gcc_cv_ld --help 2>/dev/null | grep -- '--push-state' > /dev/null; then
29823 ld_pushpopstate_support=yes
29827 if test x"$ld_pushpopstate_support" = xyes; then
29829 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
29832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
29833 $as_echo "$ld_pushpopstate_support" >&6; }
29835 # Configure the subdirectories
29836 # AC_CONFIG_SUBDIRS($subdirs)
29838 # Create the Makefile
29839 # and configure language subdirectories
29840 ac_config_files="$ac_config_files $all_outputs"
29843 ac_config_commands="$ac_config_commands default"
29845 cat >confcache <<\_ACEOF
29846 # This file is a shell script that caches the results of configure
29847 # tests run on this system so they can be shared between configure
29848 # scripts and configure runs, see configure's option --config-cache.
29849 # It is not useful on other systems. If it contains results you don't
29850 # want to keep, you may remove or edit it.
29852 # config.status only pays attention to the cache file if you give it
29853 # the --recheck option to rerun configure.
29855 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29856 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29857 # following values.
29859 _ACEOF
29861 # The following way of writing the cache mishandles newlines in values,
29862 # but we know of no workaround that is simple, portable, and efficient.
29863 # So, we kill variables containing newlines.
29864 # Ultrix sh set writes to stderr and can't be redirected directly,
29865 # and sets the high bit in the cache file unless we assign to the vars.
29867 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29868 eval ac_val=\$$ac_var
29869 case $ac_val in #(
29870 *${as_nl}*)
29871 case $ac_var in #(
29872 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29873 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29874 esac
29875 case $ac_var in #(
29876 _ | IFS | as_nl) ;; #(
29877 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29878 *) { eval $ac_var=; unset $ac_var;} ;;
29879 esac ;;
29880 esac
29881 done
29883 (set) 2>&1 |
29884 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29885 *${as_nl}ac_space=\ *)
29886 # `set' does not quote correctly, so add quotes: double-quote
29887 # substitution turns \\\\ into \\, and sed turns \\ into \.
29888 sed -n \
29889 "s/'/'\\\\''/g;
29890 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29891 ;; #(
29893 # `set' quotes correctly as required by POSIX, so do not add quotes.
29894 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29896 esac |
29897 sort
29899 sed '
29900 /^ac_cv_env_/b end
29901 t clear
29902 :clear
29903 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29904 t end
29905 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29906 :end' >>confcache
29907 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29908 if test -w "$cache_file"; then
29909 test "x$cache_file" != "x/dev/null" &&
29910 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29911 $as_echo "$as_me: updating cache $cache_file" >&6;}
29912 cat confcache >$cache_file
29913 else
29914 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29915 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29918 rm -f confcache
29920 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29921 # Let make expand exec_prefix.
29922 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29924 DEFS=-DHAVE_CONFIG_H
29926 ac_libobjs=
29927 ac_ltlibobjs=
29928 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29929 # 1. Remove the extension, and $U if already installed.
29930 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29931 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29932 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29933 # will be set to the directory where LIBOBJS objects are built.
29934 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29935 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29936 done
29937 LIBOBJS=$ac_libobjs
29939 LTLIBOBJS=$ac_ltlibobjs
29944 : ${CONFIG_STATUS=./config.status}
29945 ac_write_fail=0
29946 ac_clean_files_save=$ac_clean_files
29947 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29948 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29949 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29950 as_write_fail=0
29951 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29952 #! $SHELL
29953 # Generated by $as_me.
29954 # Run this file to recreate the current configuration.
29955 # Compiler output produced by configure, useful for debugging
29956 # configure, is in config.log if it exists.
29958 debug=false
29959 ac_cs_recheck=false
29960 ac_cs_silent=false
29962 SHELL=\${CONFIG_SHELL-$SHELL}
29963 export SHELL
29964 _ASEOF
29965 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29966 ## -------------------- ##
29967 ## M4sh Initialization. ##
29968 ## -------------------- ##
29970 # Be more Bourne compatible
29971 DUALCASE=1; export DUALCASE # for MKS sh
29972 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29973 emulate sh
29974 NULLCMD=:
29975 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29976 # is contrary to our usage. Disable this feature.
29977 alias -g '${1+"$@"}'='"$@"'
29978 setopt NO_GLOB_SUBST
29979 else
29980 case `(set -o) 2>/dev/null` in #(
29981 *posix*) :
29982 set -o posix ;; #(
29983 *) :
29985 esac
29989 as_nl='
29991 export as_nl
29992 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29993 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29994 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29995 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29996 # Prefer a ksh shell builtin over an external printf program on Solaris,
29997 # but without wasting forks for bash or zsh.
29998 if test -z "$BASH_VERSION$ZSH_VERSION" \
29999 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30000 as_echo='print -r --'
30001 as_echo_n='print -rn --'
30002 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30003 as_echo='printf %s\n'
30004 as_echo_n='printf %s'
30005 else
30006 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30007 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30008 as_echo_n='/usr/ucb/echo -n'
30009 else
30010 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30011 as_echo_n_body='eval
30012 arg=$1;
30013 case $arg in #(
30014 *"$as_nl"*)
30015 expr "X$arg" : "X\\(.*\\)$as_nl";
30016 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30017 esac;
30018 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30020 export as_echo_n_body
30021 as_echo_n='sh -c $as_echo_n_body as_echo'
30023 export as_echo_body
30024 as_echo='sh -c $as_echo_body as_echo'
30027 # The user is always right.
30028 if test "${PATH_SEPARATOR+set}" != set; then
30029 PATH_SEPARATOR=:
30030 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30031 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30032 PATH_SEPARATOR=';'
30037 # IFS
30038 # We need space, tab and new line, in precisely that order. Quoting is
30039 # there to prevent editors from complaining about space-tab.
30040 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30041 # splitting by setting IFS to empty value.)
30042 IFS=" "" $as_nl"
30044 # Find who we are. Look in the path if we contain no directory separator.
30045 case $0 in #((
30046 *[\\/]* ) as_myself=$0 ;;
30047 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30048 for as_dir in $PATH
30050 IFS=$as_save_IFS
30051 test -z "$as_dir" && as_dir=.
30052 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30053 done
30054 IFS=$as_save_IFS
30057 esac
30058 # We did not find ourselves, most probably we were run as `sh COMMAND'
30059 # in which case we are not to be found in the path.
30060 if test "x$as_myself" = x; then
30061 as_myself=$0
30063 if test ! -f "$as_myself"; then
30064 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30065 exit 1
30068 # Unset variables that we do not need and which cause bugs (e.g. in
30069 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30070 # suppresses any "Segmentation fault" message there. '((' could
30071 # trigger a bug in pdksh 5.2.14.
30072 for as_var in BASH_ENV ENV MAIL MAILPATH
30073 do eval test x\${$as_var+set} = xset \
30074 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30075 done
30076 PS1='$ '
30077 PS2='> '
30078 PS4='+ '
30080 # NLS nuisances.
30081 LC_ALL=C
30082 export LC_ALL
30083 LANGUAGE=C
30084 export LANGUAGE
30086 # CDPATH.
30087 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30090 # as_fn_error ERROR [LINENO LOG_FD]
30091 # ---------------------------------
30092 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30093 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30094 # script with status $?, using 1 if that was 0.
30095 as_fn_error ()
30097 as_status=$?; test $as_status -eq 0 && as_status=1
30098 if test "$3"; then
30099 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30100 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30102 $as_echo "$as_me: error: $1" >&2
30103 as_fn_exit $as_status
30104 } # as_fn_error
30107 # as_fn_set_status STATUS
30108 # -----------------------
30109 # Set $? to STATUS, without forking.
30110 as_fn_set_status ()
30112 return $1
30113 } # as_fn_set_status
30115 # as_fn_exit STATUS
30116 # -----------------
30117 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30118 as_fn_exit ()
30120 set +e
30121 as_fn_set_status $1
30122 exit $1
30123 } # as_fn_exit
30125 # as_fn_unset VAR
30126 # ---------------
30127 # Portably unset VAR.
30128 as_fn_unset ()
30130 { eval $1=; unset $1;}
30132 as_unset=as_fn_unset
30133 # as_fn_append VAR VALUE
30134 # ----------------------
30135 # Append the text in VALUE to the end of the definition contained in VAR. Take
30136 # advantage of any shell optimizations that allow amortized linear growth over
30137 # repeated appends, instead of the typical quadratic growth present in naive
30138 # implementations.
30139 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30140 eval 'as_fn_append ()
30142 eval $1+=\$2
30144 else
30145 as_fn_append ()
30147 eval $1=\$$1\$2
30149 fi # as_fn_append
30151 # as_fn_arith ARG...
30152 # ------------------
30153 # Perform arithmetic evaluation on the ARGs, and store the result in the
30154 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30155 # must be portable across $(()) and expr.
30156 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30157 eval 'as_fn_arith ()
30159 as_val=$(( $* ))
30161 else
30162 as_fn_arith ()
30164 as_val=`expr "$@" || test $? -eq 1`
30166 fi # as_fn_arith
30169 if expr a : '\(a\)' >/dev/null 2>&1 &&
30170 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30171 as_expr=expr
30172 else
30173 as_expr=false
30176 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30177 as_basename=basename
30178 else
30179 as_basename=false
30182 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30183 as_dirname=dirname
30184 else
30185 as_dirname=false
30188 as_me=`$as_basename -- "$0" ||
30189 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30190 X"$0" : 'X\(//\)$' \| \
30191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30192 $as_echo X/"$0" |
30193 sed '/^.*\/\([^/][^/]*\)\/*$/{
30194 s//\1/
30197 /^X\/\(\/\/\)$/{
30198 s//\1/
30201 /^X\/\(\/\).*/{
30202 s//\1/
30205 s/.*/./; q'`
30207 # Avoid depending upon Character Ranges.
30208 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30209 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30210 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30211 as_cr_digits='0123456789'
30212 as_cr_alnum=$as_cr_Letters$as_cr_digits
30214 ECHO_C= ECHO_N= ECHO_T=
30215 case `echo -n x` in #(((((
30216 -n*)
30217 case `echo 'xy\c'` in
30218 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30219 xy) ECHO_C='\c';;
30220 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
30221 ECHO_T=' ';;
30222 esac;;
30224 ECHO_N='-n';;
30225 esac
30227 rm -f conf$$ conf$$.exe conf$$.file
30228 if test -d conf$$.dir; then
30229 rm -f conf$$.dir/conf$$.file
30230 else
30231 rm -f conf$$.dir
30232 mkdir conf$$.dir 2>/dev/null
30234 if (echo >conf$$.file) 2>/dev/null; then
30235 if ln -s conf$$.file conf$$ 2>/dev/null; then
30236 as_ln_s='ln -s'
30237 # ... but there are two gotchas:
30238 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30239 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30240 # In both cases, we have to default to `cp -p'.
30241 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30242 as_ln_s='cp -p'
30243 elif ln conf$$.file conf$$ 2>/dev/null; then
30244 as_ln_s=ln
30245 else
30246 as_ln_s='cp -p'
30248 else
30249 as_ln_s='cp -p'
30251 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30252 rmdir conf$$.dir 2>/dev/null
30255 # as_fn_mkdir_p
30256 # -------------
30257 # Create "$as_dir" as a directory, including parents if necessary.
30258 as_fn_mkdir_p ()
30261 case $as_dir in #(
30262 -*) as_dir=./$as_dir;;
30263 esac
30264 test -d "$as_dir" || eval $as_mkdir_p || {
30265 as_dirs=
30266 while :; do
30267 case $as_dir in #(
30268 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30269 *) as_qdir=$as_dir;;
30270 esac
30271 as_dirs="'$as_qdir' $as_dirs"
30272 as_dir=`$as_dirname -- "$as_dir" ||
30273 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30274 X"$as_dir" : 'X\(//\)[^/]' \| \
30275 X"$as_dir" : 'X\(//\)$' \| \
30276 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30277 $as_echo X"$as_dir" |
30278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30279 s//\1/
30282 /^X\(\/\/\)[^/].*/{
30283 s//\1/
30286 /^X\(\/\/\)$/{
30287 s//\1/
30290 /^X\(\/\).*/{
30291 s//\1/
30294 s/.*/./; q'`
30295 test -d "$as_dir" && break
30296 done
30297 test -z "$as_dirs" || eval "mkdir $as_dirs"
30298 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30301 } # as_fn_mkdir_p
30302 if mkdir -p . 2>/dev/null; then
30303 as_mkdir_p='mkdir -p "$as_dir"'
30304 else
30305 test -d ./-p && rmdir ./-p
30306 as_mkdir_p=false
30309 if test -x / >/dev/null 2>&1; then
30310 as_test_x='test -x'
30311 else
30312 if ls -dL / >/dev/null 2>&1; then
30313 as_ls_L_option=L
30314 else
30315 as_ls_L_option=
30317 as_test_x='
30318 eval sh -c '\''
30319 if test -d "$1"; then
30320 test -d "$1/.";
30321 else
30322 case $1 in #(
30323 -*)set "./$1";;
30324 esac;
30325 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30326 ???[sx]*):;;*)false;;esac;fi
30327 '\'' sh
30330 as_executable_p=$as_test_x
30332 # Sed expression to map a string onto a valid CPP name.
30333 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30335 # Sed expression to map a string onto a valid variable name.
30336 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30339 exec 6>&1
30340 ## ----------------------------------- ##
30341 ## Main body of $CONFIG_STATUS script. ##
30342 ## ----------------------------------- ##
30343 _ASEOF
30344 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30347 # Save the log message, to keep $0 and so on meaningful, and to
30348 # report actual input values of CONFIG_FILES etc. instead of their
30349 # values after options handling.
30350 ac_log="
30351 This file was extended by $as_me, which was
30352 generated by GNU Autoconf 2.64. Invocation command line was
30354 CONFIG_FILES = $CONFIG_FILES
30355 CONFIG_HEADERS = $CONFIG_HEADERS
30356 CONFIG_LINKS = $CONFIG_LINKS
30357 CONFIG_COMMANDS = $CONFIG_COMMANDS
30358 $ $0 $@
30360 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30363 _ACEOF
30365 case $ac_config_files in *"
30366 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30367 esac
30369 case $ac_config_headers in *"
30370 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30371 esac
30374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30375 # Files that config.status was made for.
30376 config_files="$ac_config_files"
30377 config_headers="$ac_config_headers"
30378 config_links="$ac_config_links"
30379 config_commands="$ac_config_commands"
30381 _ACEOF
30383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30384 ac_cs_usage="\
30385 \`$as_me' instantiates files and other configuration actions
30386 from templates according to the current configuration. Unless the files
30387 and actions are specified as TAGs, all are instantiated by default.
30389 Usage: $0 [OPTION]... [TAG]...
30391 -h, --help print this help, then exit
30392 -V, --version print version number and configuration settings, then exit
30393 -q, --quiet, --silent
30394 do not print progress messages
30395 -d, --debug don't remove temporary files
30396 --recheck update $as_me by reconfiguring in the same conditions
30397 --file=FILE[:TEMPLATE]
30398 instantiate the configuration file FILE
30399 --header=FILE[:TEMPLATE]
30400 instantiate the configuration header FILE
30402 Configuration files:
30403 $config_files
30405 Configuration headers:
30406 $config_headers
30408 Configuration links:
30409 $config_links
30411 Configuration commands:
30412 $config_commands
30414 Report bugs to the package provider."
30416 _ACEOF
30417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30418 ac_cs_version="\\
30419 config.status
30420 configured by $0, generated by GNU Autoconf 2.64,
30421 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30423 Copyright (C) 2009 Free Software Foundation, Inc.
30424 This config.status script is free software; the Free Software Foundation
30425 gives unlimited permission to copy, distribute and modify it."
30427 ac_pwd='$ac_pwd'
30428 srcdir='$srcdir'
30429 AWK='$AWK'
30430 test -n "\$AWK" || AWK=awk
30431 _ACEOF
30433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30434 # The default lists apply if the user does not specify any file.
30435 ac_need_defaults=:
30436 while test $# != 0
30438 case $1 in
30439 --*=*)
30440 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30441 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30442 ac_shift=:
30445 ac_option=$1
30446 ac_optarg=$2
30447 ac_shift=shift
30449 esac
30451 case $ac_option in
30452 # Handling of the options.
30453 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30454 ac_cs_recheck=: ;;
30455 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30456 $as_echo "$ac_cs_version"; exit ;;
30457 --debug | --debu | --deb | --de | --d | -d )
30458 debug=: ;;
30459 --file | --fil | --fi | --f )
30460 $ac_shift
30461 case $ac_optarg in
30462 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30463 esac
30464 as_fn_append CONFIG_FILES " '$ac_optarg'"
30465 ac_need_defaults=false;;
30466 --header | --heade | --head | --hea )
30467 $ac_shift
30468 case $ac_optarg in
30469 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30470 esac
30471 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30472 ac_need_defaults=false;;
30473 --he | --h)
30474 # Conflict between --help and --header
30475 as_fn_error "ambiguous option: \`$1'
30476 Try \`$0 --help' for more information.";;
30477 --help | --hel | -h )
30478 $as_echo "$ac_cs_usage"; exit ;;
30479 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30480 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30481 ac_cs_silent=: ;;
30483 # This is an error.
30484 -*) as_fn_error "unrecognized option: \`$1'
30485 Try \`$0 --help' for more information." ;;
30487 *) as_fn_append ac_config_targets " $1"
30488 ac_need_defaults=false ;;
30490 esac
30491 shift
30492 done
30494 ac_configure_extra_args=
30496 if $ac_cs_silent; then
30497 exec 6>/dev/null
30498 ac_configure_extra_args="$ac_configure_extra_args --silent"
30501 _ACEOF
30502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30503 if \$ac_cs_recheck; then
30504 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30505 shift
30506 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30507 CONFIG_SHELL='$SHELL'
30508 export CONFIG_SHELL
30509 exec "\$@"
30512 _ACEOF
30513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30514 exec 5>>config.log
30516 echo
30517 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30518 ## Running $as_me. ##
30519 _ASBOX
30520 $as_echo "$ac_log"
30521 } >&5
30523 _ACEOF
30524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30526 # INIT-COMMANDS
30528 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30529 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30530 subdirs='$subdirs'
30532 _ACEOF
30534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30536 # Handling of arguments.
30537 for ac_config_target in $ac_config_targets
30539 case $ac_config_target in
30540 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30541 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30542 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30543 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30544 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30545 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30546 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30547 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30548 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30550 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30551 esac
30552 done
30555 # If the user did not use the arguments to specify the items to instantiate,
30556 # then the envvar interface is used. Set only those that are not.
30557 # We use the long form for the default assignment because of an extremely
30558 # bizarre bug on SunOS 4.1.3.
30559 if $ac_need_defaults; then
30560 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30561 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30562 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30563 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30566 # Have a temporary directory for convenience. Make it in the build tree
30567 # simply because there is no reason against having it here, and in addition,
30568 # creating and moving files from /tmp can sometimes cause problems.
30569 # Hook for its removal unless debugging.
30570 # Note that there is a small window in which the directory will not be cleaned:
30571 # after its creation but before its name has been assigned to `$tmp'.
30572 $debug ||
30574 tmp=
30575 trap 'exit_status=$?
30576 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30578 trap 'as_fn_exit 1' 1 2 13 15
30580 # Create a (secure) tmp directory for tmp files.
30583 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30584 test -n "$tmp" && test -d "$tmp"
30585 } ||
30587 tmp=./conf$$-$RANDOM
30588 (umask 077 && mkdir "$tmp")
30589 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30591 # Set up the scripts for CONFIG_FILES section.
30592 # No need to generate them if there are no CONFIG_FILES.
30593 # This happens for instance with `./config.status config.h'.
30594 if test -n "$CONFIG_FILES"; then
30596 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30597 ac_cs_awk_getline=:
30598 ac_cs_awk_pipe_init=
30599 ac_cs_awk_read_file='
30600 while ((getline aline < (F[key])) > 0)
30601 print(aline)
30602 close(F[key])'
30603 ac_cs_awk_pipe_fini=
30604 else
30605 ac_cs_awk_getline=false
30606 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30607 ac_cs_awk_read_file='
30608 print "|#_!!_#|"
30609 print "cat " F[key] " &&"
30610 '$ac_cs_awk_pipe_init
30611 # The final `:' finishes the AND list.
30612 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30614 ac_cr=`echo X | tr X '\015'`
30615 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30616 # But we know of no other shell where ac_cr would be empty at this
30617 # point, so we can use a bashism as a fallback.
30618 if test "x$ac_cr" = x; then
30619 eval ac_cr=\$\'\\r\'
30621 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30622 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30623 ac_cs_awk_cr='\r'
30624 else
30625 ac_cs_awk_cr=$ac_cr
30628 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30629 _ACEOF
30631 # Create commands to substitute file output variables.
30633 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30634 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30635 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30636 echo "_ACAWK" &&
30637 echo "_ACEOF"
30638 } >conf$$files.sh &&
30639 . ./conf$$files.sh ||
30640 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30641 rm -f conf$$files.sh
30644 echo "cat >conf$$subs.awk <<_ACEOF" &&
30645 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30646 echo "_ACEOF"
30647 } >conf$$subs.sh ||
30648 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30649 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30650 ac_delim='%!_!# '
30651 for ac_last_try in false false false false false :; do
30652 . ./conf$$subs.sh ||
30653 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30655 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30656 if test $ac_delim_n = $ac_delim_num; then
30657 break
30658 elif $ac_last_try; then
30659 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30660 else
30661 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30663 done
30664 rm -f conf$$subs.sh
30666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30667 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30668 _ACEOF
30669 sed -n '
30671 s/^/S["/; s/!.*/"]=/
30674 s/^[^!]*!//
30675 :repl
30676 t repl
30677 s/'"$ac_delim"'$//
30678 t delim
30681 s/\(.\{148\}\).*/\1/
30682 t more1
30683 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30686 b repl
30687 :more1
30688 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30691 s/.\{148\}//
30692 t nl
30693 :delim
30695 s/\(.\{148\}\).*/\1/
30696 t more2
30697 s/["\\]/\\&/g; s/^/"/; s/$/"/
30700 :more2
30701 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30704 s/.\{148\}//
30705 t delim
30706 ' <conf$$subs.awk | sed '
30707 /^[^""]/{
30709 s/\n//
30711 ' >>$CONFIG_STATUS || ac_write_fail=1
30712 rm -f conf$$subs.awk
30713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30714 _ACAWK
30715 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30716 for (key in S) S_is_set[key] = 1
30717 FS = "\a"
30718 \$ac_cs_awk_pipe_init
30721 line = $ 0
30722 nfields = split(line, field, "@")
30723 substed = 0
30724 len = length(field[1])
30725 for (i = 2; i < nfields; i++) {
30726 key = field[i]
30727 keylen = length(key)
30728 if (S_is_set[key]) {
30729 value = S[key]
30730 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30731 len += length(value) + length(field[++i])
30732 substed = 1
30733 } else
30734 len += 1 + keylen
30736 if (nfields == 3 && !substed) {
30737 key = field[2]
30738 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30739 \$ac_cs_awk_read_file
30740 next
30743 print line
30745 \$ac_cs_awk_pipe_fini
30746 _ACAWK
30747 _ACEOF
30748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30749 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30750 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30751 else
30753 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30754 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30755 _ACEOF
30757 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30758 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30759 # trailing colons and then remove the whole line if VPATH becomes empty
30760 # (actually we leave an empty line to preserve line numbers).
30761 if test "x$srcdir" = x.; then
30762 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30763 s/:*\$(srcdir):*/:/
30764 s/:*\${srcdir}:*/:/
30765 s/:*@srcdir@:*/:/
30766 s/^\([^=]*=[ ]*\):*/\1/
30767 s/:*$//
30768 s/^[^=]*=[ ]*$//
30772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30773 fi # test -n "$CONFIG_FILES"
30775 # Set up the scripts for CONFIG_HEADERS section.
30776 # No need to generate them if there are no CONFIG_HEADERS.
30777 # This happens for instance with `./config.status Makefile'.
30778 if test -n "$CONFIG_HEADERS"; then
30779 cat >"$tmp/defines.awk" <<\_ACAWK ||
30780 BEGIN {
30781 _ACEOF
30783 # Transform confdefs.h into an awk script `defines.awk', embedded as
30784 # here-document in config.status, that substitutes the proper values into
30785 # config.h.in to produce config.h.
30787 # Create a delimiter string that does not exist in confdefs.h, to ease
30788 # handling of long lines.
30789 ac_delim='%!_!# '
30790 for ac_last_try in false false :; do
30791 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30792 if test -z "$ac_t"; then
30793 break
30794 elif $ac_last_try; then
30795 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30796 else
30797 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30799 done
30801 # For the awk script, D is an array of macro values keyed by name,
30802 # likewise P contains macro parameters if any. Preserve backslash
30803 # newline sequences.
30805 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30806 sed -n '
30807 s/.\{148\}/&'"$ac_delim"'/g
30808 t rset
30809 :rset
30810 s/^[ ]*#[ ]*define[ ][ ]*/ /
30811 t def
30813 :def
30814 s/\\$//
30815 t bsnl
30816 s/["\\]/\\&/g
30817 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30818 D["\1"]=" \3"/p
30819 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30821 :bsnl
30822 s/["\\]/\\&/g
30823 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30824 D["\1"]=" \3\\\\\\n"\\/p
30825 t cont
30826 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30827 t cont
30829 :cont
30831 s/.\{148\}/&'"$ac_delim"'/g
30832 t clear
30833 :clear
30834 s/\\$//
30835 t bsnlc
30836 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30838 :bsnlc
30839 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30840 b cont
30841 ' <confdefs.h | sed '
30842 s/'"$ac_delim"'/"\\\
30843 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30846 for (key in D) D_is_set[key] = 1
30847 FS = "\a"
30849 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30850 line = \$ 0
30851 split(line, arg, " ")
30852 if (arg[1] == "#") {
30853 defundef = arg[2]
30854 mac1 = arg[3]
30855 } else {
30856 defundef = substr(arg[1], 2)
30857 mac1 = arg[2]
30859 split(mac1, mac2, "(") #)
30860 macro = mac2[1]
30861 prefix = substr(line, 1, index(line, defundef) - 1)
30862 if (D_is_set[macro]) {
30863 # Preserve the white space surrounding the "#".
30864 print prefix "define", macro P[macro] D[macro]
30865 next
30866 } else {
30867 # Replace #undef with comments. This is necessary, for example,
30868 # in the case of _POSIX_SOURCE, which is predefined and required
30869 # on some systems where configure will not decide to define it.
30870 if (defundef == "undef") {
30871 print "/*", prefix defundef, macro, "*/"
30872 next
30876 { print }
30877 _ACAWK
30878 _ACEOF
30879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30880 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30881 fi # test -n "$CONFIG_HEADERS"
30884 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30885 shift
30886 for ac_tag
30888 case $ac_tag in
30889 :[FHLC]) ac_mode=$ac_tag; continue;;
30890 esac
30891 case $ac_mode$ac_tag in
30892 :[FHL]*:*);;
30893 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30894 :[FH]-) ac_tag=-:-;;
30895 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30896 esac
30897 ac_save_IFS=$IFS
30898 IFS=:
30899 set x $ac_tag
30900 IFS=$ac_save_IFS
30901 shift
30902 ac_file=$1
30903 shift
30905 case $ac_mode in
30906 :L) ac_source=$1;;
30907 :[FH])
30908 ac_file_inputs=
30909 for ac_f
30911 case $ac_f in
30912 -) ac_f="$tmp/stdin";;
30913 *) # Look for the file first in the build tree, then in the source tree
30914 # (if the path is not absolute). The absolute path cannot be DOS-style,
30915 # because $ac_f cannot contain `:'.
30916 test -f "$ac_f" ||
30917 case $ac_f in
30918 [\\/$]*) false;;
30919 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30920 esac ||
30921 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30922 esac
30923 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30924 as_fn_append ac_file_inputs " '$ac_f'"
30925 done
30927 # Let's still pretend it is `configure' which instantiates (i.e., don't
30928 # use $as_me), people would be surprised to read:
30929 # /* config.h. Generated by config.status. */
30930 configure_input='Generated from '`
30931 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30932 `' by configure.'
30933 if test x"$ac_file" != x-; then
30934 configure_input="$ac_file. $configure_input"
30935 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30936 $as_echo "$as_me: creating $ac_file" >&6;}
30938 # Neutralize special characters interpreted by sed in replacement strings.
30939 case $configure_input in #(
30940 *\&* | *\|* | *\\* )
30941 ac_sed_conf_input=`$as_echo "$configure_input" |
30942 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30943 *) ac_sed_conf_input=$configure_input;;
30944 esac
30946 case $ac_tag in
30947 *:-:* | *:-) cat >"$tmp/stdin" \
30948 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30949 esac
30951 esac
30953 ac_dir=`$as_dirname -- "$ac_file" ||
30954 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30955 X"$ac_file" : 'X\(//\)[^/]' \| \
30956 X"$ac_file" : 'X\(//\)$' \| \
30957 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30958 $as_echo X"$ac_file" |
30959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30960 s//\1/
30963 /^X\(\/\/\)[^/].*/{
30964 s//\1/
30967 /^X\(\/\/\)$/{
30968 s//\1/
30971 /^X\(\/\).*/{
30972 s//\1/
30975 s/.*/./; q'`
30976 as_dir="$ac_dir"; as_fn_mkdir_p
30977 ac_builddir=.
30979 case "$ac_dir" in
30980 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30982 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30983 # A ".." for each directory in $ac_dir_suffix.
30984 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30985 case $ac_top_builddir_sub in
30986 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30987 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30988 esac ;;
30989 esac
30990 ac_abs_top_builddir=$ac_pwd
30991 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30992 # for backward compatibility:
30993 ac_top_builddir=$ac_top_build_prefix
30995 case $srcdir in
30996 .) # We are building in place.
30997 ac_srcdir=.
30998 ac_top_srcdir=$ac_top_builddir_sub
30999 ac_abs_top_srcdir=$ac_pwd ;;
31000 [\\/]* | ?:[\\/]* ) # Absolute name.
31001 ac_srcdir=$srcdir$ac_dir_suffix;
31002 ac_top_srcdir=$srcdir
31003 ac_abs_top_srcdir=$srcdir ;;
31004 *) # Relative name.
31005 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31006 ac_top_srcdir=$ac_top_build_prefix$srcdir
31007 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31008 esac
31009 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31012 case $ac_mode in
31015 # CONFIG_FILE
31018 _ACEOF
31020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31021 # If the template does not know about datarootdir, expand it.
31022 # FIXME: This hack should be removed a few years after 2.60.
31023 ac_datarootdir_hack=; ac_datarootdir_seen=
31024 ac_sed_dataroot='
31025 /datarootdir/ {
31029 /@datadir@/p
31030 /@docdir@/p
31031 /@infodir@/p
31032 /@localedir@/p
31033 /@mandir@/p'
31034 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31035 *datarootdir*) ac_datarootdir_seen=yes;;
31036 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31038 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31039 _ACEOF
31040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31041 ac_datarootdir_hack='
31042 s&@datadir@&$datadir&g
31043 s&@docdir@&$docdir&g
31044 s&@infodir@&$infodir&g
31045 s&@localedir@&$localedir&g
31046 s&@mandir@&$mandir&g
31047 s&\\\${datarootdir}&$datarootdir&g' ;;
31048 esac
31049 _ACEOF
31051 # Neutralize VPATH when `$srcdir' = `.'.
31052 # Shell code in configure.ac might set extrasub.
31053 # FIXME: do we really want to maintain this feature?
31054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31055 ac_sed_extra="$ac_vpsub
31056 $extrasub
31057 _ACEOF
31058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31060 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31061 s|@configure_input@|$ac_sed_conf_input|;t t
31062 s&@top_builddir@&$ac_top_builddir_sub&;t t
31063 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31064 s&@srcdir@&$ac_srcdir&;t t
31065 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31066 s&@top_srcdir@&$ac_top_srcdir&;t t
31067 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31068 s&@builddir@&$ac_builddir&;t t
31069 s&@abs_builddir@&$ac_abs_builddir&;t t
31070 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31071 $ac_datarootdir_hack
31073 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31074 if $ac_cs_awk_getline; then
31075 $AWK -f "$tmp/subs.awk"
31076 else
31077 $AWK -f "$tmp/subs.awk" | $SHELL
31078 fi >$tmp/out \
31079 || as_fn_error "could not create $ac_file" "$LINENO" 5
31081 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31082 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31083 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31085 which seems to be undefined. Please make sure it is defined." >&5
31086 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31087 which seems to be undefined. Please make sure it is defined." >&2;}
31089 rm -f "$tmp/stdin"
31090 case $ac_file in
31091 -) cat "$tmp/out" && rm -f "$tmp/out";;
31092 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31093 esac \
31094 || as_fn_error "could not create $ac_file" "$LINENO" 5
31098 # CONFIG_HEADER
31100 if test x"$ac_file" != x-; then
31102 $as_echo "/* $configure_input */" \
31103 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31104 } >"$tmp/config.h" \
31105 || as_fn_error "could not create $ac_file" "$LINENO" 5
31106 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31107 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31108 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31109 else
31110 rm -f "$ac_file"
31111 mv "$tmp/config.h" "$ac_file" \
31112 || as_fn_error "could not create $ac_file" "$LINENO" 5
31114 else
31115 $as_echo "/* $configure_input */" \
31116 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31117 || as_fn_error "could not create -" "$LINENO" 5
31122 # CONFIG_LINK
31125 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31127 else
31128 # Prefer the file from the source tree if names are identical.
31129 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31130 ac_source=$srcdir/$ac_source
31133 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31134 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31136 if test ! -r "$ac_source"; then
31137 as_fn_error "$ac_source: file not found" "$LINENO" 5
31139 rm -f "$ac_file"
31141 # Try a relative symlink, then a hard link, then a copy.
31142 case $srcdir in
31143 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31144 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31145 esac
31146 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31147 ln "$ac_source" "$ac_file" 2>/dev/null ||
31148 cp -p "$ac_source" "$ac_file" ||
31149 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31152 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31153 $as_echo "$as_me: executing $ac_file commands" >&6;}
31155 esac
31158 case $ac_file$ac_mode in
31159 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31160 "gccdepdir":C)
31161 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31162 for lang in $subdirs c-family common
31164 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31165 done ;;
31166 "as":F) chmod +x as ;;
31167 "collect-ld":F) chmod +x collect-ld ;;
31168 "nm":F) chmod +x nm ;;
31169 "default":C)
31170 case ${CONFIG_HEADERS} in
31171 *auto-host.h:config.in*)
31172 echo > cstamp-h ;;
31173 esac
31174 # Make sure all the subdirs exist.
31175 for d in $subdirs doc build common c-family
31177 test -d $d || mkdir $d
31178 done
31181 esac
31182 done # for ac_tag
31185 as_fn_exit 0
31186 _ACEOF
31187 ac_clean_files=$ac_clean_files_save
31189 test $ac_write_fail = 0 ||
31190 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31193 # configure is writing to config.log, and then calls config.status.
31194 # config.status does its own redirection, appending to config.log.
31195 # Unfortunately, on DOS this fails, as config.log is still kept open
31196 # by configure, so config.status won't be able to write to it; its
31197 # output is simply discarded. So we exec the FD to /dev/null,
31198 # effectively closing config.log, so it can be properly (re)opened and
31199 # appended to by config.status. When coming back to configure, we
31200 # need to make the FD available again.
31201 if test "$no_create" != yes; then
31202 ac_cs_success=:
31203 ac_config_status_args=
31204 test "$silent" = yes &&
31205 ac_config_status_args="$ac_config_status_args --quiet"
31206 exec 5>/dev/null
31207 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31208 exec 5>>config.log
31209 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31210 # would make configure fail if this is the last instruction.
31211 $ac_cs_success || as_fn_exit $?
31213 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31215 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}