Remove assert in get_def_bb_for_const
[official-gcc.git] / gcc / configure
blob9e5cd644b8689b82751bda79e8c1978b31ed6f02
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 libgcc_visibility
683 gcc_cv_readelf
684 gcc_cv_objdump
685 ORIGINAL_NM_FOR_TARGET
686 gcc_cv_nm
687 ORIGINAL_LD_GOLD_FOR_TARGET
688 ORIGINAL_LD_BFD_FOR_TARGET
689 ORIGINAL_LD_FOR_TARGET
690 ORIGINAL_PLUGIN_LD_FOR_TARGET
691 gcc_cv_ld
692 ORIGINAL_AS_FOR_TARGET
693 gcc_cv_as
694 enable_fast_install
695 objdir
696 OTOOL64
697 OTOOL
698 LIPO
699 NMEDIT
700 DSYMUTIL
701 STRIP
702 OBJDUMP
703 ac_ct_DUMPBIN
704 DUMPBIN
706 FGREP
708 LIBTOOL
709 collect2
710 NO_PIE_FLAG_FOR_BUILD
711 NO_PIE_CFLAGS_FOR_BUILD
712 BUILD_NO_PIE_FLAG
713 BUILD_NO_PIE_CFLAGS
714 STMP_FIXINC
715 BUILD_LDFLAGS
716 BUILD_CXXFLAGS
717 BUILD_CFLAGS
718 CXX_FOR_BUILD
719 CC_FOR_BUILD
720 inhibit_libc
721 SYSTEM_HEADER_DIR
723 CROSS
724 CATOBJEXT
725 GENCAT
726 INSTOBJEXT
727 DATADIRNAME
728 CATALOGS
729 POSUB
730 GMSGFMT
731 XGETTEXT
732 INCINTL
733 LIBINTL_DEP
734 LIBINTL
735 USE_NLS
736 extra_opt_files
737 extra_modes_file
738 NATIVE_SYSTEM_HEADER_DIR
739 objext
740 manext
741 LIBICONV_DEP
742 LTLIBICONV
743 LIBICONV
744 LDEXP_LIB
745 EXTRA_GCC_LIBS
746 GNAT_LIBEXC
747 COLLECT2_LIBS
748 CXXDEPMODE
749 DEPDIR
750 am__leading_dot
751 doc_build_sys
754 BISON
755 FLEX
756 GENERATED_MANPAGES
757 BUILD_INFO
758 MAKEINFO
759 have_mktemp_command
760 make_compare_target
761 INSTALL_DATA
762 INSTALL_PROGRAM
763 INSTALL
764 ranlib_flags
765 RANLIB
767 LN_S
769 SET_MAKE
770 accel_dir_suffix
771 real_target_noncanonical
772 enable_as_accelerator
773 REPORT_BUGS_TEXI
774 REPORT_BUGS_TO
775 PKGVERSION
776 CONFIGURE_SPECS
777 enable_shared
778 enable_fixed_point
779 enable_decimal_float
780 with_float
781 with_cpu
782 enable_multiarch
783 enable_multilib
784 coverage_flags
785 valgrind_command
786 valgrind_path_defines
787 valgrind_path
788 TREECHECKING
789 nocommon_flag
790 noexception_flags
791 warn_cxxflags
792 warn_cflags
793 c_strict_warn
794 strict_warn
795 c_loose_warn
796 loose_warn
797 aliasing_flags
799 EGREP
800 GREP
801 CXXCPP
802 PICFLAG_FOR_TARGET
803 GNATMAKE
804 GNATBIND
805 ac_ct_CXX
806 CXXFLAGS
808 OBJEXT
809 EXEEXT
810 ac_ct_CC
811 CPPFLAGS
812 LDFLAGS
813 CFLAGS
815 GENINSRC
816 CROSS_SYSTEM_HEADER_DIR
817 TARGET_SYSTEM_ROOT_DEFINE
818 TARGET_SYSTEM_ROOT
819 SYSROOT_CFLAGS_FOR_TARGET
820 target_subdir
821 host_subdir
822 build_subdir
823 build_libsubdir
824 target_noncanonical
825 host_noncanonical
826 target_os
827 target_vendor
828 target_cpu
829 target
830 host_os
831 host_vendor
832 host_cpu
833 host
834 build_os
835 build_vendor
836 build_cpu
837 build
838 target_alias
839 host_alias
840 build_alias
841 LIBS
842 ECHO_T
843 ECHO_N
844 ECHO_C
845 DEFS
846 mandir
847 localedir
848 libdir
849 psdir
850 pdfdir
851 dvidir
852 htmldir
853 infodir
854 docdir
855 oldincludedir
856 includedir
857 localstatedir
858 sharedstatedir
859 sysconfdir
860 datadir
861 datarootdir
862 libexecdir
863 sbindir
864 bindir
865 program_transform_name
866 prefix
867 exec_prefix
868 PACKAGE_URL
869 PACKAGE_BUGREPORT
870 PACKAGE_STRING
871 PACKAGE_VERSION
872 PACKAGE_TARNAME
873 PACKAGE_NAME
874 PATH_SEPARATOR
875 SHELL'
876 ac_subst_files='option_includes
877 language_hooks'
878 ac_user_opts='
879 enable_option_checking
880 with_build_libsubdir
881 with_local_prefix
882 with_native_system_header_dir
883 with_build_sysroot
884 with_sysroot
885 with_gxx_include_dir
886 with_cpp_install_dir
887 enable_generated_files_in_srcdir
888 with_gnu_ld
889 with_ld
890 with_demangler_in_ld
891 with_gnu_as
892 with_as
893 enable_largefile
894 enable_build_format_warnings
895 enable_werror_always
896 enable_checking
897 enable_coverage
898 enable_gather_detailed_mem_stats
899 enable_valgrind_annotations
900 with_stabs
901 enable_multilib
902 enable_multiarch
903 enable___cxa_atexit
904 enable_decimal_float
905 enable_fixed_point
906 enable_threads
907 enable_tls
908 enable_vtable_verify
909 enable_objc_gc
910 with_dwarf2
911 enable_shared
912 with_specs
913 with_pkgversion
914 with_bugurl
915 enable_languages
916 with_multilib_list
917 enable_rpath
918 with_libiconv_prefix
919 enable_sjlj_exceptions
920 enable_secureplt
921 enable_leading_mingw64_underscores
922 enable_cld
923 enable_frame_pointer
924 enable_win32_registry
925 enable_static
926 with_pic
927 enable_fast_install
928 enable_libtool_lock
929 enable_ld
930 enable_gold
931 with_plugin_ld
932 enable_gnu_indirect_function
933 enable_initfini_array
934 enable_comdat
935 enable_fix_cortex_a53_835769
936 enable_fix_cortex_a53_843419
937 with_glibc_version
938 enable_gnu_unique_object
939 enable_linker_build_id
940 enable_default_ssp
941 with_long_double_128
942 with_gc
943 with_system_zlib
944 enable_maintainer_mode
945 enable_link_mutex
946 enable_version_specific_runtime_libs
947 enable_plugin
948 enable_host_shared
949 enable_libquadmath_support
950 with_linker_hash_style
951 with_diagnostics_color
952 enable_default_pie
954 ac_precious_vars='build_alias
955 host_alias
956 target_alias
958 CFLAGS
959 LDFLAGS
960 LIBS
961 CPPFLAGS
963 CXXFLAGS
965 CXXCPP
967 GMPLIBS
968 GMPINC
969 ISLLIBS
970 ISLINC'
973 # Initialize some variables set by options.
974 ac_init_help=
975 ac_init_version=false
976 ac_unrecognized_opts=
977 ac_unrecognized_sep=
978 # The variables have the same names as the options, with
979 # dashes changed to underlines.
980 cache_file=/dev/null
981 exec_prefix=NONE
982 no_create=
983 no_recursion=
984 prefix=NONE
985 program_prefix=NONE
986 program_suffix=NONE
987 program_transform_name=s,x,x,
988 silent=
989 site=
990 srcdir=
991 verbose=
992 x_includes=NONE
993 x_libraries=NONE
995 # Installation directory options.
996 # These are left unexpanded so users can "make install exec_prefix=/foo"
997 # and all the variables that are supposed to be based on exec_prefix
998 # by default will actually change.
999 # Use braces instead of parens because sh, perl, etc. also accept them.
1000 # (The list follows the same order as the GNU Coding Standards.)
1001 bindir='${exec_prefix}/bin'
1002 sbindir='${exec_prefix}/sbin'
1003 libexecdir='${exec_prefix}/libexec'
1004 datarootdir='${prefix}/share'
1005 datadir='${datarootdir}'
1006 sysconfdir='${prefix}/etc'
1007 sharedstatedir='${prefix}/com'
1008 localstatedir='${prefix}/var'
1009 includedir='${prefix}/include'
1010 oldincludedir='/usr/include'
1011 docdir='${datarootdir}/doc/${PACKAGE}'
1012 infodir='${datarootdir}/info'
1013 htmldir='${docdir}'
1014 dvidir='${docdir}'
1015 pdfdir='${docdir}'
1016 psdir='${docdir}'
1017 libdir='${exec_prefix}/lib'
1018 localedir='${datarootdir}/locale'
1019 mandir='${datarootdir}/man'
1021 ac_prev=
1022 ac_dashdash=
1023 for ac_option
1025 # If the previous option needs an argument, assign it.
1026 if test -n "$ac_prev"; then
1027 eval $ac_prev=\$ac_option
1028 ac_prev=
1029 continue
1032 case $ac_option in
1033 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1034 *) ac_optarg=yes ;;
1035 esac
1037 # Accept the important Cygnus configure options, so we can diagnose typos.
1039 case $ac_dashdash$ac_option in
1041 ac_dashdash=yes ;;
1043 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1044 ac_prev=bindir ;;
1045 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1046 bindir=$ac_optarg ;;
1048 -build | --build | --buil | --bui | --bu)
1049 ac_prev=build_alias ;;
1050 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1051 build_alias=$ac_optarg ;;
1053 -cache-file | --cache-file | --cache-fil | --cache-fi \
1054 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1055 ac_prev=cache_file ;;
1056 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1057 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1058 cache_file=$ac_optarg ;;
1060 --config-cache | -C)
1061 cache_file=config.cache ;;
1063 -datadir | --datadir | --datadi | --datad)
1064 ac_prev=datadir ;;
1065 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1066 datadir=$ac_optarg ;;
1068 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1069 | --dataroo | --dataro | --datar)
1070 ac_prev=datarootdir ;;
1071 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1072 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1073 datarootdir=$ac_optarg ;;
1075 -disable-* | --disable-*)
1076 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079 as_fn_error "invalid feature name: $ac_useropt"
1080 ac_useropt_orig=$ac_useropt
1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1084 "enable_$ac_useropt"
1085 "*) ;;
1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1087 ac_unrecognized_sep=', ';;
1088 esac
1089 eval enable_$ac_useropt=no ;;
1091 -docdir | --docdir | --docdi | --doc | --do)
1092 ac_prev=docdir ;;
1093 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1094 docdir=$ac_optarg ;;
1096 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1097 ac_prev=dvidir ;;
1098 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1099 dvidir=$ac_optarg ;;
1101 -enable-* | --enable-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error "invalid feature name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1110 "enable_$ac_useropt"
1111 "*) ;;
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1114 esac
1115 eval enable_$ac_useropt=\$ac_optarg ;;
1117 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1118 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1119 | --exec | --exe | --ex)
1120 ac_prev=exec_prefix ;;
1121 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1122 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1123 | --exec=* | --exe=* | --ex=*)
1124 exec_prefix=$ac_optarg ;;
1126 -gas | --gas | --ga | --g)
1127 # Obsolete; use --with-gas.
1128 with_gas=yes ;;
1130 -help | --help | --hel | --he | -h)
1131 ac_init_help=long ;;
1132 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1133 ac_init_help=recursive ;;
1134 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1135 ac_init_help=short ;;
1137 -host | --host | --hos | --ho)
1138 ac_prev=host_alias ;;
1139 -host=* | --host=* | --hos=* | --ho=*)
1140 host_alias=$ac_optarg ;;
1142 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1143 ac_prev=htmldir ;;
1144 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1145 | --ht=*)
1146 htmldir=$ac_optarg ;;
1148 -includedir | --includedir | --includedi | --included | --include \
1149 | --includ | --inclu | --incl | --inc)
1150 ac_prev=includedir ;;
1151 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1152 | --includ=* | --inclu=* | --incl=* | --inc=*)
1153 includedir=$ac_optarg ;;
1155 -infodir | --infodir | --infodi | --infod | --info | --inf)
1156 ac_prev=infodir ;;
1157 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1158 infodir=$ac_optarg ;;
1160 -libdir | --libdir | --libdi | --libd)
1161 ac_prev=libdir ;;
1162 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1163 libdir=$ac_optarg ;;
1165 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1166 | --libexe | --libex | --libe)
1167 ac_prev=libexecdir ;;
1168 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1169 | --libexe=* | --libex=* | --libe=*)
1170 libexecdir=$ac_optarg ;;
1172 -localedir | --localedir | --localedi | --localed | --locale)
1173 ac_prev=localedir ;;
1174 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1175 localedir=$ac_optarg ;;
1177 -localstatedir | --localstatedir | --localstatedi | --localstated \
1178 | --localstate | --localstat | --localsta | --localst | --locals)
1179 ac_prev=localstatedir ;;
1180 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1181 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1182 localstatedir=$ac_optarg ;;
1184 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1185 ac_prev=mandir ;;
1186 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1187 mandir=$ac_optarg ;;
1189 -nfp | --nfp | --nf)
1190 # Obsolete; use --without-fp.
1191 with_fp=no ;;
1193 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1194 | --no-cr | --no-c | -n)
1195 no_create=yes ;;
1197 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1198 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1199 no_recursion=yes ;;
1201 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1202 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1203 | --oldin | --oldi | --old | --ol | --o)
1204 ac_prev=oldincludedir ;;
1205 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1206 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1207 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1208 oldincludedir=$ac_optarg ;;
1210 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1211 ac_prev=prefix ;;
1212 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1213 prefix=$ac_optarg ;;
1215 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1216 | --program-pre | --program-pr | --program-p)
1217 ac_prev=program_prefix ;;
1218 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1219 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1220 program_prefix=$ac_optarg ;;
1222 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1223 | --program-suf | --program-su | --program-s)
1224 ac_prev=program_suffix ;;
1225 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1226 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1227 program_suffix=$ac_optarg ;;
1229 -program-transform-name | --program-transform-name \
1230 | --program-transform-nam | --program-transform-na \
1231 | --program-transform-n | --program-transform- \
1232 | --program-transform | --program-transfor \
1233 | --program-transfo | --program-transf \
1234 | --program-trans | --program-tran \
1235 | --progr-tra | --program-tr | --program-t)
1236 ac_prev=program_transform_name ;;
1237 -program-transform-name=* | --program-transform-name=* \
1238 | --program-transform-nam=* | --program-transform-na=* \
1239 | --program-transform-n=* | --program-transform-=* \
1240 | --program-transform=* | --program-transfor=* \
1241 | --program-transfo=* | --program-transf=* \
1242 | --program-trans=* | --program-tran=* \
1243 | --progr-tra=* | --program-tr=* | --program-t=*)
1244 program_transform_name=$ac_optarg ;;
1246 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1247 ac_prev=pdfdir ;;
1248 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1249 pdfdir=$ac_optarg ;;
1251 -psdir | --psdir | --psdi | --psd | --ps)
1252 ac_prev=psdir ;;
1253 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1254 psdir=$ac_optarg ;;
1256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1257 | -silent | --silent | --silen | --sile | --sil)
1258 silent=yes ;;
1260 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1261 ac_prev=sbindir ;;
1262 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1263 | --sbi=* | --sb=*)
1264 sbindir=$ac_optarg ;;
1266 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1267 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1268 | --sharedst | --shareds | --shared | --share | --shar \
1269 | --sha | --sh)
1270 ac_prev=sharedstatedir ;;
1271 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1272 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1273 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1274 | --sha=* | --sh=*)
1275 sharedstatedir=$ac_optarg ;;
1277 -site | --site | --sit)
1278 ac_prev=site ;;
1279 -site=* | --site=* | --sit=*)
1280 site=$ac_optarg ;;
1282 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1283 ac_prev=srcdir ;;
1284 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1285 srcdir=$ac_optarg ;;
1287 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1288 | --syscon | --sysco | --sysc | --sys | --sy)
1289 ac_prev=sysconfdir ;;
1290 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1291 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1292 sysconfdir=$ac_optarg ;;
1294 -target | --target | --targe | --targ | --tar | --ta | --t)
1295 ac_prev=target_alias ;;
1296 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1297 target_alias=$ac_optarg ;;
1299 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1300 verbose=yes ;;
1302 -version | --version | --versio | --versi | --vers | -V)
1303 ac_init_version=: ;;
1305 -with-* | --with-*)
1306 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1309 as_fn_error "invalid package name: $ac_useropt"
1310 ac_useropt_orig=$ac_useropt
1311 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312 case $ac_user_opts in
1314 "with_$ac_useropt"
1315 "*) ;;
1316 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1317 ac_unrecognized_sep=', ';;
1318 esac
1319 eval with_$ac_useropt=\$ac_optarg ;;
1321 -without-* | --without-*)
1322 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1323 # Reject names that are not valid shell variable names.
1324 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1325 as_fn_error "invalid package name: $ac_useropt"
1326 ac_useropt_orig=$ac_useropt
1327 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1328 case $ac_user_opts in
1330 "with_$ac_useropt"
1331 "*) ;;
1332 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1333 ac_unrecognized_sep=', ';;
1334 esac
1335 eval with_$ac_useropt=no ;;
1337 --x)
1338 # Obsolete; use --with-x.
1339 with_x=yes ;;
1341 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1342 | --x-incl | --x-inc | --x-in | --x-i)
1343 ac_prev=x_includes ;;
1344 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1345 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1346 x_includes=$ac_optarg ;;
1348 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1349 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1350 ac_prev=x_libraries ;;
1351 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1352 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1353 x_libraries=$ac_optarg ;;
1355 -*) as_fn_error "unrecognized option: \`$ac_option'
1356 Try \`$0 --help' for more information."
1359 *=*)
1360 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1361 # Reject names that are not valid shell variable names.
1362 case $ac_envvar in #(
1363 '' | [0-9]* | *[!_$as_cr_alnum]* )
1364 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1365 esac
1366 eval $ac_envvar=\$ac_optarg
1367 export $ac_envvar ;;
1370 # FIXME: should be removed in autoconf 3.0.
1371 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1372 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1373 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1374 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1377 esac
1378 done
1380 if test -n "$ac_prev"; then
1381 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1382 as_fn_error "missing argument to $ac_option"
1385 if test -n "$ac_unrecognized_opts"; then
1386 case $enable_option_checking in
1387 no) ;;
1388 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1389 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1390 esac
1393 # Check all directory arguments for consistency.
1394 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1395 datadir sysconfdir sharedstatedir localstatedir includedir \
1396 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1397 libdir localedir mandir
1399 eval ac_val=\$$ac_var
1400 # Remove trailing slashes.
1401 case $ac_val in
1402 */ )
1403 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1404 eval $ac_var=\$ac_val;;
1405 esac
1406 # Be sure to have absolute directory names.
1407 case $ac_val in
1408 [\\/$]* | ?:[\\/]* ) continue;;
1409 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1410 esac
1411 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1412 done
1414 # There might be people who depend on the old broken behavior: `$host'
1415 # used to hold the argument of --host etc.
1416 # FIXME: To remove some day.
1417 build=$build_alias
1418 host=$host_alias
1419 target=$target_alias
1421 # FIXME: To remove some day.
1422 if test "x$host_alias" != x; then
1423 if test "x$build_alias" = x; then
1424 cross_compiling=maybe
1425 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1426 If a cross compiler is detected then cross compile mode will be used." >&2
1427 elif test "x$build_alias" != "x$host_alias"; then
1428 cross_compiling=yes
1432 ac_tool_prefix=
1433 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1435 test "$silent" = yes && exec 6>/dev/null
1438 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1439 ac_ls_di=`ls -di .` &&
1440 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1441 as_fn_error "working directory cannot be determined"
1442 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1443 as_fn_error "pwd does not report name of working directory"
1446 # Find the source files, if location was not specified.
1447 if test -z "$srcdir"; then
1448 ac_srcdir_defaulted=yes
1449 # Try the directory containing this script, then the parent directory.
1450 ac_confdir=`$as_dirname -- "$as_myself" ||
1451 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1452 X"$as_myself" : 'X\(//\)[^/]' \| \
1453 X"$as_myself" : 'X\(//\)$' \| \
1454 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1455 $as_echo X"$as_myself" |
1456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1457 s//\1/
1460 /^X\(\/\/\)[^/].*/{
1461 s//\1/
1464 /^X\(\/\/\)$/{
1465 s//\1/
1468 /^X\(\/\).*/{
1469 s//\1/
1472 s/.*/./; q'`
1473 srcdir=$ac_confdir
1474 if test ! -r "$srcdir/$ac_unique_file"; then
1475 srcdir=..
1477 else
1478 ac_srcdir_defaulted=no
1480 if test ! -r "$srcdir/$ac_unique_file"; then
1481 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1482 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1484 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1485 ac_abs_confdir=`(
1486 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1487 pwd)`
1488 # When building in place, set srcdir=.
1489 if test "$ac_abs_confdir" = "$ac_pwd"; then
1490 srcdir=.
1492 # Remove unnecessary trailing slashes from srcdir.
1493 # Double slashes in file names in object file debugging info
1494 # mess up M-x gdb in Emacs.
1495 case $srcdir in
1496 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1497 esac
1498 for ac_var in $ac_precious_vars; do
1499 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1500 eval ac_env_${ac_var}_value=\$${ac_var}
1501 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1502 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1503 done
1506 # Report the --help message.
1508 if test "$ac_init_help" = "long"; then
1509 # Omit some internal or obsolete options to make the list less imposing.
1510 # This message is too long to be a string in the A/UX 3.1 sh.
1511 cat <<_ACEOF
1512 \`configure' configures this package to adapt to many kinds of systems.
1514 Usage: $0 [OPTION]... [VAR=VALUE]...
1516 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1517 VAR=VALUE. See below for descriptions of some of the useful variables.
1519 Defaults for the options are specified in brackets.
1521 Configuration:
1522 -h, --help display this help and exit
1523 --help=short display options specific to this package
1524 --help=recursive display the short help of all the included packages
1525 -V, --version display version information and exit
1526 -q, --quiet, --silent do not print \`checking...' messages
1527 --cache-file=FILE cache test results in FILE [disabled]
1528 -C, --config-cache alias for \`--cache-file=config.cache'
1529 -n, --no-create do not create output files
1530 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1532 Installation directories:
1533 --prefix=PREFIX install architecture-independent files in PREFIX
1534 [$ac_default_prefix]
1535 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1536 [PREFIX]
1538 By default, \`make install' will install all the files in
1539 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1540 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1541 for instance \`--prefix=\$HOME'.
1543 For better control, use the options below.
1545 Fine tuning of the installation directories:
1546 --bindir=DIR user executables [EPREFIX/bin]
1547 --sbindir=DIR system admin executables [EPREFIX/sbin]
1548 --libexecdir=DIR program executables [EPREFIX/libexec]
1549 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1550 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1551 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1552 --libdir=DIR object code libraries [EPREFIX/lib]
1553 --includedir=DIR C header files [PREFIX/include]
1554 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1555 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1556 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1557 --infodir=DIR info documentation [DATAROOTDIR/info]
1558 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1559 --mandir=DIR man documentation [DATAROOTDIR/man]
1560 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1561 --htmldir=DIR html documentation [DOCDIR]
1562 --dvidir=DIR dvi documentation [DOCDIR]
1563 --pdfdir=DIR pdf documentation [DOCDIR]
1564 --psdir=DIR ps documentation [DOCDIR]
1565 _ACEOF
1567 cat <<\_ACEOF
1569 Program names:
1570 --program-prefix=PREFIX prepend PREFIX to installed program names
1571 --program-suffix=SUFFIX append SUFFIX to installed program names
1572 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1574 System types:
1575 --build=BUILD configure for building on BUILD [guessed]
1576 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1577 --target=TARGET configure for building compilers for TARGET [HOST]
1578 _ACEOF
1581 if test -n "$ac_init_help"; then
1583 cat <<\_ACEOF
1585 Optional Features:
1586 --disable-option-checking ignore unrecognized --enable/--with options
1587 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1588 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1589 --enable-generated-files-in-srcdir
1590 put copies of generated files in source dir intended
1591 for creating source tarballs for users without
1592 texinfo bison or flex
1593 --disable-largefile omit support for large files
1594 --disable-build-format-warnings
1595 don't use -Wformat while building GCC
1596 --enable-werror-always enable -Werror despite compiler version
1597 --enable-checking[=LIST]
1598 enable expensive run-time checks. With LIST, enable
1599 only specific categories of checks. Categories are:
1600 yes,no,all,none,release. Flags are:
1601 assert,df,extra,fold,gc,gcac,gimple,misc,
1602 rtlflag,rtl,runtime,tree,valgrind,types
1603 --enable-coverage[=LEVEL]
1604 enable compiler's code coverage collection. Use to
1605 measure compiler performance and locate unused parts
1606 of the compiler. With LEVEL, specify optimization.
1607 Values are opt, noopt, default is noopt
1608 --enable-gather-detailed-mem-stats
1609 enable detailed memory allocation stats gathering
1610 --enable-valgrind-annotations
1611 enable valgrind runtime interaction
1612 --enable-multilib enable library support for multiple ABIs
1613 --enable-multiarch enable support for multiarch paths
1614 --enable-__cxa_atexit enable __cxa_atexit for C++
1615 --enable-decimal-float={no,yes,bid,dpd}
1616 enable decimal float extension to C. Selecting 'bid'
1617 or 'dpd' choses which decimal floating point format
1618 to use
1619 --enable-fixed-point enable fixed-point arithmetic extension to C
1620 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1621 package
1622 --enable-tls enable or disable generation of tls code overriding
1623 the assembler check for tls support
1624 --enable-vtable-verify enable vtable verification feature
1625 --enable-objc-gc enable the use of Boehm's garbage collector with the
1626 GNU Objective-C runtime
1627 --disable-shared don't provide a shared libgcc
1628 --enable-languages=LIST specify which front-ends to build
1629 --disable-rpath do not hardcode runtime library paths
1630 --enable-sjlj-exceptions
1631 arrange to use setjmp/longjmp exception handling
1632 --enable-secureplt enable -msecure-plt by default for PowerPC
1633 --enable-leading-mingw64-underscores
1634 enable leading underscores on 64 bit mingw targets
1635 --enable-cld enable -mcld by default for 32bit x86
1636 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1638 --disable-win32-registry
1639 disable lookup of installation paths in the Registry
1640 on Windows hosts
1641 --enable-win32-registry enable registry lookup (default)
1642 --enable-win32-registry=KEY
1643 use KEY instead of GCC version as the last portion
1644 of the registry key
1645 --enable-shared[=PKGS] build shared libraries [default=yes]
1646 --enable-static[=PKGS] build static libraries [default=yes]
1647 --enable-fast-install[=PKGS]
1648 optimize for fast installation [default=yes]
1649 --disable-libtool-lock avoid locking (might break parallel builds)
1650 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1651 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1652 --enable-gnu-indirect-function
1653 enable the use of the @gnu_indirect_function to
1654 glibc systems
1655 --enable-initfini-array use .init_array/.fini_array sections
1656 --enable-comdat enable COMDAT group support
1658 --enable-fix-cortex-a53-835769
1659 enable workaround for AArch64 Cortex-A53 erratum
1660 835769 by default
1661 --disable-fix-cortex-a53-835769
1662 disable workaround for AArch64 Cortex-A53 erratum
1663 835769 by default
1666 --enable-fix-cortex-a53-843419
1667 enable workaround for AArch64 Cortex-A53 erratum
1668 843419 by default
1669 --disable-fix-cortex-a53-843419
1670 disable workaround for AArch64 Cortex-A53 erratum
1671 843419 by default
1673 --enable-gnu-unique-object
1674 enable the use of the @gnu_unique_object ELF
1675 extension on glibc systems
1676 --enable-linker-build-id
1677 compiler will always pass --build-id to linker
1678 --enable-default-ssp enable Stack Smashing Protection as default
1679 --enable-maintainer-mode
1680 enable make rules and dependencies not useful (and
1681 sometimes confusing) to the casual installer
1682 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1683 thrashing on the build machine
1684 --enable-version-specific-runtime-libs
1685 specify that runtime libraries should be installed
1686 in a compiler-specific directory
1687 --enable-plugin enable plugin support
1688 --enable-host-shared build host code as shared libraries
1689 --disable-libquadmath-support
1690 disable libquadmath support for Fortran
1691 --enable-default-pie enable Position Independent Executable as default
1693 Optional Packages:
1694 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1695 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1696 --with-build-libsubdir=DIR Directory where to find libraries for build system
1697 --with-local-prefix=DIR specifies directory to put local include
1698 --with-native-system-header-dir=dir
1699 use dir as the directory to look for standard
1700 system header files in. Defaults to /usr/include.
1701 --with-build-sysroot=sysroot
1702 use sysroot as the system root during the build
1703 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1704 --with-gxx-include-dir=DIR
1705 specifies directory to put g++ header files
1706 --with-cpp-install-dir=DIR
1707 install the user visible C preprocessor in DIR
1708 (relative to PREFIX) as well as PREFIX/bin
1709 --with-gnu-ld arrange to work with GNU ld
1710 --with-ld arrange to use the specified ld (full pathname)
1711 --with-demangler-in-ld try to use demangler in GNU ld
1712 --with-gnu-as arrange to work with GNU as
1713 --with-as arrange to use the specified as (full pathname)
1714 --with-stabs arrange to use stabs instead of host debug format
1715 --with-dwarf2 force the default debug format to be DWARF 2
1716 --with-specs=SPECS add SPECS to driver command-line processing
1717 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1718 --with-bugurl=URL Direct users to URL to report a bug
1719 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1720 --with-gnu-ld assume the C compiler uses GNU ld default=no
1721 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1722 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1723 --with-pic try to use only PIC/non-PIC objects [default=use
1724 both]
1725 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1726 --with-plugin-ld=[ARG] specify the plugin linker
1727 --with-glibc-version=M.N
1728 assume GCC used with glibc version M.N or later
1729 --with-long-double-128 use 128-bit long double by default
1730 --with-gc={page,zone} this option is not supported anymore. It used to
1731 choose the garbage collection mechanism to use with
1732 the compiler
1733 --with-system-zlib use installed libz
1734 --with-linker-hash-style={sysv,gnu,both}
1735 specify the linker hash style
1736 --with-diagnostics-color={never,auto,auto-if-env,always}
1737 specify the default of -fdiagnostics-color option
1738 auto-if-env stands for -fdiagnostics-color=auto if
1739 GCC_COLOR environment variable is present and
1740 -fdiagnostics-color=never otherwise
1742 Some influential environment variables:
1743 CC C compiler command
1744 CFLAGS C compiler flags
1745 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1746 nonstandard directory <lib dir>
1747 LIBS libraries to pass to the linker, e.g. -l<library>
1748 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1749 you have headers in a nonstandard directory <include dir>
1750 CXX C++ compiler command
1751 CXXFLAGS C++ compiler flags
1752 CXXCPP C++ preprocessor
1753 CPP C preprocessor
1754 GMPLIBS How to link GMP
1755 GMPINC How to find GMP include files
1756 ISLLIBS How to link isl
1757 ISLINC How to find isl include files
1759 Use these variables to override the choices made by `configure' or to help
1760 it to find libraries and programs with nonstandard names/locations.
1762 Report bugs to the package provider.
1763 _ACEOF
1764 ac_status=$?
1767 if test "$ac_init_help" = "recursive"; then
1768 # If there are subdirs, report their specific --help.
1769 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1770 test -d "$ac_dir" ||
1771 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1772 continue
1773 ac_builddir=.
1775 case "$ac_dir" in
1776 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1778 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1779 # A ".." for each directory in $ac_dir_suffix.
1780 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1781 case $ac_top_builddir_sub in
1782 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1783 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1784 esac ;;
1785 esac
1786 ac_abs_top_builddir=$ac_pwd
1787 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1788 # for backward compatibility:
1789 ac_top_builddir=$ac_top_build_prefix
1791 case $srcdir in
1792 .) # We are building in place.
1793 ac_srcdir=.
1794 ac_top_srcdir=$ac_top_builddir_sub
1795 ac_abs_top_srcdir=$ac_pwd ;;
1796 [\\/]* | ?:[\\/]* ) # Absolute name.
1797 ac_srcdir=$srcdir$ac_dir_suffix;
1798 ac_top_srcdir=$srcdir
1799 ac_abs_top_srcdir=$srcdir ;;
1800 *) # Relative name.
1801 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1802 ac_top_srcdir=$ac_top_build_prefix$srcdir
1803 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1804 esac
1805 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1807 cd "$ac_dir" || { ac_status=$?; continue; }
1808 # Check for guested configure.
1809 if test -f "$ac_srcdir/configure.gnu"; then
1810 echo &&
1811 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1812 elif test -f "$ac_srcdir/configure"; then
1813 echo &&
1814 $SHELL "$ac_srcdir/configure" --help=recursive
1815 else
1816 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1817 fi || ac_status=$?
1818 cd "$ac_pwd" || { ac_status=$?; break; }
1819 done
1822 test -n "$ac_init_help" && exit $ac_status
1823 if $ac_init_version; then
1824 cat <<\_ACEOF
1825 configure
1826 generated by GNU Autoconf 2.64
1828 Copyright (C) 2009 Free Software Foundation, Inc.
1829 This configure script is free software; the Free Software Foundation
1830 gives unlimited permission to copy, distribute and modify it.
1831 _ACEOF
1832 exit
1835 ## ------------------------ ##
1836 ## Autoconf initialization. ##
1837 ## ------------------------ ##
1839 # ac_fn_c_try_compile LINENO
1840 # --------------------------
1841 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1842 ac_fn_c_try_compile ()
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 rm -f conftest.$ac_objext
1846 if { { ac_try="$ac_compile"
1847 case "(($ac_try" in
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1850 esac
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_compile") 2>conftest.err
1854 ac_status=$?
1855 if test -s conftest.err; then
1856 grep -v '^ *+' conftest.err >conftest.er1
1857 cat conftest.er1 >&5
1858 mv -f conftest.er1 conftest.err
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } && {
1862 test -z "$ac_c_werror_flag" ||
1863 test ! -s conftest.err
1864 } && test -s conftest.$ac_objext; then :
1865 ac_retval=0
1866 else
1867 $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1870 ac_retval=1
1872 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1873 return $ac_retval
1875 } # ac_fn_c_try_compile
1877 # ac_fn_cxx_try_compile LINENO
1878 # ----------------------------
1879 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1880 ac_fn_cxx_try_compile ()
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 rm -f conftest.$ac_objext
1884 if { { ac_try="$ac_compile"
1885 case "(($ac_try" in
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1888 esac
1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 $as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_compile") 2>conftest.err
1892 ac_status=$?
1893 if test -s conftest.err; then
1894 grep -v '^ *+' conftest.err >conftest.er1
1895 cat conftest.er1 >&5
1896 mv -f conftest.er1 conftest.err
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } && {
1900 test -z "$ac_cxx_werror_flag" ||
1901 test ! -s conftest.err
1902 } && test -s conftest.$ac_objext; then :
1903 ac_retval=0
1904 else
1905 $as_echo "$as_me: failed program was:" >&5
1906 sed 's/^/| /' conftest.$ac_ext >&5
1908 ac_retval=1
1910 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1911 return $ac_retval
1913 } # ac_fn_cxx_try_compile
1915 # ac_fn_cxx_try_cpp LINENO
1916 # ------------------------
1917 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1918 ac_fn_cxx_try_cpp ()
1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921 if { { ac_try="$ac_cpp conftest.$ac_ext"
1922 case "(($ac_try" in
1923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1924 *) ac_try_echo=$ac_try;;
1925 esac
1926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1927 $as_echo "$ac_try_echo"; } >&5
1928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1929 ac_status=$?
1930 if test -s conftest.err; then
1931 grep -v '^ *+' conftest.err >conftest.er1
1932 cat conftest.er1 >&5
1933 mv -f conftest.er1 conftest.err
1935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1936 test $ac_status = 0; } >/dev/null && {
1937 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1938 test ! -s conftest.err
1939 }; then :
1940 ac_retval=0
1941 else
1942 $as_echo "$as_me: failed program was:" >&5
1943 sed 's/^/| /' conftest.$ac_ext >&5
1945 ac_retval=1
1947 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1948 return $ac_retval
1950 } # ac_fn_cxx_try_cpp
1952 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1953 # ---------------------------------------------------------
1954 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1955 # the include files in INCLUDES and setting the cache variable VAR
1956 # accordingly.
1957 ac_fn_cxx_check_header_mongrel ()
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 $as_echo_n "checking for $2... " >&6; }
1963 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1964 $as_echo_n "(cached) " >&6
1966 eval ac_res=\$$3
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969 else
1970 # Is the header compilable?
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1972 $as_echo_n "checking $2 usability... " >&6; }
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1976 #include <$2>
1977 _ACEOF
1978 if ac_fn_cxx_try_compile "$LINENO"; then :
1979 ac_header_compiler=yes
1980 else
1981 ac_header_compiler=no
1983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1985 $as_echo "$ac_header_compiler" >&6; }
1987 # Is the header present?
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1989 $as_echo_n "checking $2 presence... " >&6; }
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1992 #include <$2>
1993 _ACEOF
1994 if ac_fn_cxx_try_cpp "$LINENO"; then :
1995 ac_header_preproc=yes
1996 else
1997 ac_header_preproc=no
1999 rm -f conftest.err conftest.$ac_ext
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2001 $as_echo "$ac_header_preproc" >&6; }
2003 # So? What about this header?
2004 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2005 yes:no: )
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2007 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2009 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2011 no:yes:* )
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2013 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2015 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2017 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2019 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2021 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2023 esac
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2025 $as_echo_n "checking for $2... " >&6; }
2026 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2027 $as_echo_n "(cached) " >&6
2028 else
2029 eval "$3=\$ac_header_compiler"
2031 eval ac_res=\$$3
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033 $as_echo "$ac_res" >&6; }
2035 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2037 } # ac_fn_cxx_check_header_mongrel
2039 # ac_fn_cxx_try_run LINENO
2040 # ------------------------
2041 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2042 # that executables *can* be run.
2043 ac_fn_cxx_try_run ()
2045 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2046 if { { ac_try="$ac_link"
2047 case "(($ac_try" in
2048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2049 *) ac_try_echo=$ac_try;;
2050 esac
2051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2052 $as_echo "$ac_try_echo"; } >&5
2053 (eval "$ac_link") 2>&5
2054 ac_status=$?
2055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2056 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2057 { { case "(($ac_try" in
2058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2059 *) ac_try_echo=$ac_try;;
2060 esac
2061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2062 $as_echo "$ac_try_echo"; } >&5
2063 (eval "$ac_try") 2>&5
2064 ac_status=$?
2065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066 test $ac_status = 0; }; }; then :
2067 ac_retval=0
2068 else
2069 $as_echo "$as_me: program exited with status $ac_status" >&5
2070 $as_echo "$as_me: failed program was:" >&5
2071 sed 's/^/| /' conftest.$ac_ext >&5
2073 ac_retval=$ac_status
2075 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2076 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2077 return $ac_retval
2079 } # ac_fn_cxx_try_run
2081 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2082 # ---------------------------------------------------------
2083 # Tests whether HEADER exists and can be compiled using the include files in
2084 # INCLUDES, setting the cache variable VAR accordingly.
2085 ac_fn_cxx_check_header_compile ()
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2089 $as_echo_n "checking for $2... " >&6; }
2090 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2091 $as_echo_n "(cached) " >&6
2092 else
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2096 #include <$2>
2097 _ACEOF
2098 if ac_fn_cxx_try_compile "$LINENO"; then :
2099 eval "$3=yes"
2100 else
2101 eval "$3=no"
2103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 eval ac_res=\$$3
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107 $as_echo "$ac_res" >&6; }
2108 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2110 } # ac_fn_cxx_check_header_compile
2112 # ac_fn_c_try_cpp LINENO
2113 # ----------------------
2114 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2115 ac_fn_c_try_cpp ()
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 if { { ac_try="$ac_cpp conftest.$ac_ext"
2119 case "(($ac_try" in
2120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2121 *) ac_try_echo=$ac_try;;
2122 esac
2123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2124 $as_echo "$ac_try_echo"; } >&5
2125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2126 ac_status=$?
2127 if test -s conftest.err; then
2128 grep -v '^ *+' conftest.err >conftest.er1
2129 cat conftest.er1 >&5
2130 mv -f conftest.er1 conftest.err
2132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2133 test $ac_status = 0; } >/dev/null && {
2134 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2135 test ! -s conftest.err
2136 }; then :
2137 ac_retval=0
2138 else
2139 $as_echo "$as_me: failed program was:" >&5
2140 sed 's/^/| /' conftest.$ac_ext >&5
2142 ac_retval=1
2144 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2145 return $ac_retval
2147 } # ac_fn_c_try_cpp
2149 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2150 # ----------------------------------------------
2151 # Tries to find the compile-time value of EXPR in a program that includes
2152 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2153 # computed
2154 ac_fn_cxx_compute_int ()
2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157 if test "$cross_compiling" = yes; then
2158 # Depending upon the size, compute the lo and hi bounds.
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2163 main ()
2165 static int test_array [1 - 2 * !(($2) >= 0)];
2166 test_array [0] = 0
2169 return 0;
2171 _ACEOF
2172 if ac_fn_cxx_try_compile "$LINENO"; then :
2173 ac_lo=0 ac_mid=0
2174 while :; do
2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176 /* end confdefs.h. */
2179 main ()
2181 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2182 test_array [0] = 0
2185 return 0;
2187 _ACEOF
2188 if ac_fn_cxx_try_compile "$LINENO"; then :
2189 ac_hi=$ac_mid; break
2190 else
2191 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2192 if test $ac_lo -le $ac_mid; then
2193 ac_lo= ac_hi=
2194 break
2196 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 done
2200 else
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2205 main ()
2207 static int test_array [1 - 2 * !(($2) < 0)];
2208 test_array [0] = 0
2211 return 0;
2213 _ACEOF
2214 if ac_fn_cxx_try_compile "$LINENO"; then :
2215 ac_hi=-1 ac_mid=-1
2216 while :; do
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2221 main ()
2223 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2224 test_array [0] = 0
2227 return 0;
2229 _ACEOF
2230 if ac_fn_cxx_try_compile "$LINENO"; then :
2231 ac_lo=$ac_mid; break
2232 else
2233 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2234 if test $ac_mid -le $ac_hi; then
2235 ac_lo= ac_hi=
2236 break
2238 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241 done
2242 else
2243 ac_lo= ac_hi=
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 # Binary search between lo and hi bounds.
2249 while test "x$ac_lo" != "x$ac_hi"; do
2250 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2255 main ()
2257 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2258 test_array [0] = 0
2261 return 0;
2263 _ACEOF
2264 if ac_fn_cxx_try_compile "$LINENO"; then :
2265 ac_hi=$ac_mid
2266 else
2267 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 done
2271 case $ac_lo in #((
2272 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2273 '') ac_retval=1 ;;
2274 esac
2275 else
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h. */
2279 static long int longval () { return $2; }
2280 static unsigned long int ulongval () { return $2; }
2281 #include <stdio.h>
2282 #include <stdlib.h>
2284 main ()
2287 FILE *f = fopen ("conftest.val", "w");
2288 if (! f)
2289 return 1;
2290 if (($2) < 0)
2292 long int i = longval ();
2293 if (i != ($2))
2294 return 1;
2295 fprintf (f, "%ld", i);
2297 else
2299 unsigned long int i = ulongval ();
2300 if (i != ($2))
2301 return 1;
2302 fprintf (f, "%lu", i);
2304 /* Do not output a trailing newline, as this causes \r\n confusion
2305 on some platforms. */
2306 return ferror (f) || fclose (f) != 0;
2309 return 0;
2311 _ACEOF
2312 if ac_fn_cxx_try_run "$LINENO"; then :
2313 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2314 else
2315 ac_retval=1
2317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2318 conftest.$ac_objext conftest.beam conftest.$ac_ext
2319 rm -f conftest.val
2322 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2323 return $ac_retval
2325 } # ac_fn_cxx_compute_int
2327 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2328 # ---------------------------------------------
2329 # Tests whether TYPE exists after having included INCLUDES, setting cache
2330 # variable VAR accordingly.
2331 ac_fn_cxx_check_type ()
2333 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2335 $as_echo_n "checking for $2... " >&6; }
2336 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2337 $as_echo_n "(cached) " >&6
2338 else
2339 eval "$3=no"
2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341 /* end confdefs.h. */
2344 main ()
2346 if (sizeof ($2))
2347 return 0;
2349 return 0;
2351 _ACEOF
2352 if ac_fn_cxx_try_compile "$LINENO"; then :
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h. */
2357 main ()
2359 if (sizeof (($2)))
2360 return 0;
2362 return 0;
2364 _ACEOF
2365 if ac_fn_cxx_try_compile "$LINENO"; then :
2367 else
2368 eval "$3=yes"
2370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2374 eval ac_res=\$$3
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2376 $as_echo "$ac_res" >&6; }
2377 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2379 } # ac_fn_cxx_check_type
2381 # ac_fn_c_find_intX_t LINENO BITS VAR
2382 # -----------------------------------
2383 # Finds a signed integer type with width BITS, setting cache variable VAR
2384 # accordingly.
2385 ac_fn_c_find_intX_t ()
2387 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2389 $as_echo_n "checking for int$2_t... " >&6; }
2390 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2391 $as_echo_n "(cached) " >&6
2392 else
2393 eval "$3=no"
2394 for ac_type in int$2_t 'int' 'long int' \
2395 'long long int' 'short int' 'signed char'; do
2396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2397 /* end confdefs.h. */
2398 $ac_includes_default
2400 main ()
2402 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2403 test_array [0] = 0
2406 return 0;
2408 _ACEOF
2409 if ac_fn_cxx_try_compile "$LINENO"; then :
2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h. */
2412 $ac_includes_default
2414 main ()
2416 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2417 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2418 test_array [0] = 0
2421 return 0;
2423 _ACEOF
2424 if ac_fn_cxx_try_compile "$LINENO"; then :
2426 else
2427 case $ac_type in #(
2428 int$2_t) :
2429 eval "$3=yes" ;; #(
2430 *) :
2431 eval "$3=\$ac_type" ;;
2432 esac
2434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 eval as_val=\$$3
2438 if test "x$as_val" = x""no; then :
2440 else
2441 break
2443 done
2445 eval ac_res=\$$3
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2447 $as_echo "$ac_res" >&6; }
2448 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2450 } # ac_fn_c_find_intX_t
2452 # ac_fn_cxx_try_link LINENO
2453 # -------------------------
2454 # Try to link conftest.$ac_ext, and return whether this succeeded.
2455 ac_fn_cxx_try_link ()
2457 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2458 rm -f conftest.$ac_objext conftest$ac_exeext
2459 if { { ac_try="$ac_link"
2460 case "(($ac_try" in
2461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462 *) ac_try_echo=$ac_try;;
2463 esac
2464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2465 $as_echo "$ac_try_echo"; } >&5
2466 (eval "$ac_link") 2>conftest.err
2467 ac_status=$?
2468 if test -s conftest.err; then
2469 grep -v '^ *+' conftest.err >conftest.er1
2470 cat conftest.er1 >&5
2471 mv -f conftest.er1 conftest.err
2473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2474 test $ac_status = 0; } && {
2475 test -z "$ac_cxx_werror_flag" ||
2476 test ! -s conftest.err
2477 } && test -s conftest$ac_exeext && {
2478 test "$cross_compiling" = yes ||
2479 $as_test_x conftest$ac_exeext
2480 }; then :
2481 ac_retval=0
2482 else
2483 $as_echo "$as_me: failed program was:" >&5
2484 sed 's/^/| /' conftest.$ac_ext >&5
2486 ac_retval=1
2488 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2489 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2490 # interfere with the next link command; also delete a directory that is
2491 # left behind by Apple's compiler. We do this before executing the actions.
2492 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2493 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2494 return $ac_retval
2496 } # ac_fn_cxx_try_link
2498 # ac_fn_c_find_uintX_t LINENO BITS VAR
2499 # ------------------------------------
2500 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2501 # accordingly.
2502 ac_fn_c_find_uintX_t ()
2504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2506 $as_echo_n "checking for uint$2_t... " >&6; }
2507 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2508 $as_echo_n "(cached) " >&6
2509 else
2510 eval "$3=no"
2511 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2512 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2514 /* end confdefs.h. */
2515 $ac_includes_default
2517 main ()
2519 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2520 test_array [0] = 0
2523 return 0;
2525 _ACEOF
2526 if ac_fn_cxx_try_compile "$LINENO"; then :
2527 case $ac_type in #(
2528 uint$2_t) :
2529 eval "$3=yes" ;; #(
2530 *) :
2531 eval "$3=\$ac_type" ;;
2532 esac
2534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2535 eval as_val=\$$3
2536 if test "x$as_val" = x""no; then :
2538 else
2539 break
2541 done
2543 eval ac_res=\$$3
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2545 $as_echo "$ac_res" >&6; }
2546 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2548 } # ac_fn_c_find_uintX_t
2550 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2551 # ------------------------------------------------
2552 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2553 ac_fn_cxx_check_header_preproc ()
2555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2557 $as_echo_n "checking for $2... " >&6; }
2558 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2559 $as_echo_n "(cached) " >&6
2560 else
2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2562 /* end confdefs.h. */
2563 #include <$2>
2564 _ACEOF
2565 if ac_fn_cxx_try_cpp "$LINENO"; then :
2566 eval "$3=yes"
2567 else
2568 eval "$3=no"
2570 rm -f conftest.err conftest.$ac_ext
2572 eval ac_res=\$$3
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2574 $as_echo "$ac_res" >&6; }
2575 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2577 } # ac_fn_cxx_check_header_preproc
2579 # ac_fn_cxx_check_func LINENO FUNC VAR
2580 # ------------------------------------
2581 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2582 ac_fn_cxx_check_func ()
2584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2586 $as_echo_n "checking for $2... " >&6; }
2587 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2588 $as_echo_n "(cached) " >&6
2589 else
2590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2591 /* end confdefs.h. */
2592 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2594 #define $2 innocuous_$2
2596 /* System header to define __stub macros and hopefully few prototypes,
2597 which can conflict with char $2 (); below.
2598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2599 <limits.h> exists even on freestanding compilers. */
2601 #ifdef __STDC__
2602 # include <limits.h>
2603 #else
2604 # include <assert.h>
2605 #endif
2607 #undef $2
2609 /* Override any GCC internal prototype to avoid an error.
2610 Use char because int might match the return type of a GCC
2611 builtin and then its argument prototype would still apply. */
2612 #ifdef __cplusplus
2613 extern "C"
2614 #endif
2615 char $2 ();
2616 /* The GNU C library defines this for functions which it implements
2617 to always fail with ENOSYS. Some functions are actually named
2618 something starting with __ and the normal name is an alias. */
2619 #if defined __stub_$2 || defined __stub___$2
2620 choke me
2621 #endif
2624 main ()
2626 return $2 ();
2628 return 0;
2630 _ACEOF
2631 if ac_fn_cxx_try_link "$LINENO"; then :
2632 eval "$3=yes"
2633 else
2634 eval "$3=no"
2636 rm -f core conftest.err conftest.$ac_objext \
2637 conftest$ac_exeext conftest.$ac_ext
2639 eval ac_res=\$$3
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2641 $as_echo "$ac_res" >&6; }
2642 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2644 } # ac_fn_cxx_check_func
2646 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2647 # --------------------------------------
2648 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2649 ac_fn_cxx_check_decl ()
2651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2652 as_decl_name=`echo $2|sed 's/ *(.*//'`
2653 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2655 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2656 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2657 $as_echo_n "(cached) " >&6
2658 else
2659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2660 /* end confdefs.h. */
2663 main ()
2665 #ifndef $as_decl_name
2666 #ifdef __cplusplus
2667 (void) $as_decl_use;
2668 #else
2669 (void) $as_decl_name;
2670 #endif
2671 #endif
2674 return 0;
2676 _ACEOF
2677 if ac_fn_cxx_try_compile "$LINENO"; then :
2678 eval "$3=yes"
2679 else
2680 eval "$3=no"
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2684 eval ac_res=\$$3
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2686 $as_echo "$ac_res" >&6; }
2687 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2689 } # ac_fn_cxx_check_decl
2691 # ac_fn_c_try_link LINENO
2692 # -----------------------
2693 # Try to link conftest.$ac_ext, and return whether this succeeded.
2694 ac_fn_c_try_link ()
2696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2697 rm -f conftest.$ac_objext conftest$ac_exeext
2698 if { { ac_try="$ac_link"
2699 case "(($ac_try" in
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2702 esac
2703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2704 $as_echo "$ac_try_echo"; } >&5
2705 (eval "$ac_link") 2>conftest.err
2706 ac_status=$?
2707 if test -s conftest.err; then
2708 grep -v '^ *+' conftest.err >conftest.er1
2709 cat conftest.er1 >&5
2710 mv -f conftest.er1 conftest.err
2712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2713 test $ac_status = 0; } && {
2714 test -z "$ac_c_werror_flag" ||
2715 test ! -s conftest.err
2716 } && test -s conftest$ac_exeext && {
2717 test "$cross_compiling" = yes ||
2718 $as_test_x conftest$ac_exeext
2719 }; then :
2720 ac_retval=0
2721 else
2722 $as_echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2725 ac_retval=1
2727 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2728 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2729 # interfere with the next link command; also delete a directory that is
2730 # left behind by Apple's compiler. We do this before executing the actions.
2731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2732 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2733 return $ac_retval
2735 } # ac_fn_c_try_link
2737 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2738 # ----------------------------------------------
2739 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2740 ac_fn_c_check_header_preproc ()
2742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2744 $as_echo_n "checking for $2... " >&6; }
2745 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2746 $as_echo_n "(cached) " >&6
2747 else
2748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2749 /* end confdefs.h. */
2750 #include <$2>
2751 _ACEOF
2752 if ac_fn_c_try_cpp "$LINENO"; then :
2753 eval "$3=yes"
2754 else
2755 eval "$3=no"
2757 rm -f conftest.err conftest.$ac_ext
2759 eval ac_res=\$$3
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2761 $as_echo "$ac_res" >&6; }
2762 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2764 } # ac_fn_c_check_header_preproc
2766 # ac_fn_c_check_func LINENO FUNC VAR
2767 # ----------------------------------
2768 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2769 ac_fn_c_check_func ()
2771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2773 $as_echo_n "checking for $2... " >&6; }
2774 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2775 $as_echo_n "(cached) " >&6
2776 else
2777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2778 /* end confdefs.h. */
2779 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2781 #define $2 innocuous_$2
2783 /* System header to define __stub macros and hopefully few prototypes,
2784 which can conflict with char $2 (); below.
2785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2786 <limits.h> exists even on freestanding compilers. */
2788 #ifdef __STDC__
2789 # include <limits.h>
2790 #else
2791 # include <assert.h>
2792 #endif
2794 #undef $2
2796 /* Override any GCC internal prototype to avoid an error.
2797 Use char because int might match the return type of a GCC
2798 builtin and then its argument prototype would still apply. */
2799 #ifdef __cplusplus
2800 extern "C"
2801 #endif
2802 char $2 ();
2803 /* The GNU C library defines this for functions which it implements
2804 to always fail with ENOSYS. Some functions are actually named
2805 something starting with __ and the normal name is an alias. */
2806 #if defined __stub_$2 || defined __stub___$2
2807 choke me
2808 #endif
2811 main ()
2813 return $2 ();
2815 return 0;
2817 _ACEOF
2818 if ac_fn_c_try_link "$LINENO"; then :
2819 eval "$3=yes"
2820 else
2821 eval "$3=no"
2823 rm -f core conftest.err conftest.$ac_objext \
2824 conftest$ac_exeext conftest.$ac_ext
2826 eval ac_res=\$$3
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2828 $as_echo "$ac_res" >&6; }
2829 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2831 } # ac_fn_c_check_func
2832 cat >config.log <<_ACEOF
2833 This file contains any messages produced by compilers while
2834 running configure, to aid debugging if configure makes a mistake.
2836 It was created by $as_me, which was
2837 generated by GNU Autoconf 2.64. Invocation command line was
2839 $ $0 $@
2841 _ACEOF
2842 exec 5>>config.log
2844 cat <<_ASUNAME
2845 ## --------- ##
2846 ## Platform. ##
2847 ## --------- ##
2849 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2850 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2851 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2852 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2853 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2855 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2856 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2858 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2859 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2860 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2861 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2862 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2863 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2864 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2866 _ASUNAME
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 for as_dir in $PATH
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 $as_echo "PATH: $as_dir"
2874 done
2875 IFS=$as_save_IFS
2877 } >&5
2879 cat >&5 <<_ACEOF
2882 ## ----------- ##
2883 ## Core tests. ##
2884 ## ----------- ##
2886 _ACEOF
2889 # Keep a trace of the command line.
2890 # Strip out --no-create and --no-recursion so they do not pile up.
2891 # Strip out --silent because we don't want to record it for future runs.
2892 # Also quote any args containing shell meta-characters.
2893 # Make two passes to allow for proper duplicate-argument suppression.
2894 ac_configure_args=
2895 ac_configure_args0=
2896 ac_configure_args1=
2897 ac_must_keep_next=false
2898 for ac_pass in 1 2
2900 for ac_arg
2902 case $ac_arg in
2903 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2904 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2905 | -silent | --silent | --silen | --sile | --sil)
2906 continue ;;
2907 *\'*)
2908 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2909 esac
2910 case $ac_pass in
2911 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2913 as_fn_append ac_configure_args1 " '$ac_arg'"
2914 if test $ac_must_keep_next = true; then
2915 ac_must_keep_next=false # Got value, back to normal.
2916 else
2917 case $ac_arg in
2918 *=* | --config-cache | -C | -disable-* | --disable-* \
2919 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2920 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2921 | -with-* | --with-* | -without-* | --without-* | --x)
2922 case "$ac_configure_args0 " in
2923 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2924 esac
2926 -* ) ac_must_keep_next=true ;;
2927 esac
2929 as_fn_append ac_configure_args " '$ac_arg'"
2931 esac
2932 done
2933 done
2934 { ac_configure_args0=; unset ac_configure_args0;}
2935 { ac_configure_args1=; unset ac_configure_args1;}
2937 # When interrupted or exit'd, cleanup temporary files, and complete
2938 # config.log. We remove comments because anyway the quotes in there
2939 # would cause problems or look ugly.
2940 # WARNING: Use '\'' to represent an apostrophe within the trap.
2941 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2942 trap 'exit_status=$?
2943 # Save into config.log some information that might help in debugging.
2945 echo
2947 cat <<\_ASBOX
2948 ## ---------------- ##
2949 ## Cache variables. ##
2950 ## ---------------- ##
2951 _ASBOX
2952 echo
2953 # The following way of writing the cache mishandles newlines in values,
2955 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2956 eval ac_val=\$$ac_var
2957 case $ac_val in #(
2958 *${as_nl}*)
2959 case $ac_var in #(
2960 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2961 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2962 esac
2963 case $ac_var in #(
2964 _ | IFS | as_nl) ;; #(
2965 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2966 *) { eval $ac_var=; unset $ac_var;} ;;
2967 esac ;;
2968 esac
2969 done
2970 (set) 2>&1 |
2971 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2972 *${as_nl}ac_space=\ *)
2973 sed -n \
2974 "s/'\''/'\''\\\\'\'''\''/g;
2975 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2976 ;; #(
2978 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2980 esac |
2981 sort
2983 echo
2985 cat <<\_ASBOX
2986 ## ----------------- ##
2987 ## Output variables. ##
2988 ## ----------------- ##
2989 _ASBOX
2990 echo
2991 for ac_var in $ac_subst_vars
2993 eval ac_val=\$$ac_var
2994 case $ac_val in
2995 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2996 esac
2997 $as_echo "$ac_var='\''$ac_val'\''"
2998 done | sort
2999 echo
3001 if test -n "$ac_subst_files"; then
3002 cat <<\_ASBOX
3003 ## ------------------- ##
3004 ## File substitutions. ##
3005 ## ------------------- ##
3006 _ASBOX
3007 echo
3008 for ac_var in $ac_subst_files
3010 eval ac_val=\$$ac_var
3011 case $ac_val in
3012 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3013 esac
3014 $as_echo "$ac_var='\''$ac_val'\''"
3015 done | sort
3016 echo
3019 if test -s confdefs.h; then
3020 cat <<\_ASBOX
3021 ## ----------- ##
3022 ## confdefs.h. ##
3023 ## ----------- ##
3024 _ASBOX
3025 echo
3026 cat confdefs.h
3027 echo
3029 test "$ac_signal" != 0 &&
3030 $as_echo "$as_me: caught signal $ac_signal"
3031 $as_echo "$as_me: exit $exit_status"
3032 } >&5
3033 rm -f core *.core core.conftest.* &&
3034 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3035 exit $exit_status
3037 for ac_signal in 1 2 13 15; do
3038 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3039 done
3040 ac_signal=0
3042 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3043 rm -f -r conftest* confdefs.h
3045 $as_echo "/* confdefs.h */" > confdefs.h
3047 # Predefined preprocessor variables.
3049 cat >>confdefs.h <<_ACEOF
3050 #define PACKAGE_NAME "$PACKAGE_NAME"
3051 _ACEOF
3053 cat >>confdefs.h <<_ACEOF
3054 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3055 _ACEOF
3057 cat >>confdefs.h <<_ACEOF
3058 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3059 _ACEOF
3061 cat >>confdefs.h <<_ACEOF
3062 #define PACKAGE_STRING "$PACKAGE_STRING"
3063 _ACEOF
3065 cat >>confdefs.h <<_ACEOF
3066 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3067 _ACEOF
3069 cat >>confdefs.h <<_ACEOF
3070 #define PACKAGE_URL "$PACKAGE_URL"
3071 _ACEOF
3074 # Let the site file select an alternate cache file if it wants to.
3075 # Prefer an explicitly selected file to automatically selected ones.
3076 ac_site_file1=NONE
3077 ac_site_file2=NONE
3078 if test -n "$CONFIG_SITE"; then
3079 ac_site_file1=$CONFIG_SITE
3080 elif test "x$prefix" != xNONE; then
3081 ac_site_file1=$prefix/share/config.site
3082 ac_site_file2=$prefix/etc/config.site
3083 else
3084 ac_site_file1=$ac_default_prefix/share/config.site
3085 ac_site_file2=$ac_default_prefix/etc/config.site
3087 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3089 test "x$ac_site_file" = xNONE && continue
3090 if test -r "$ac_site_file"; then
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3092 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3093 sed 's/^/| /' "$ac_site_file" >&5
3094 . "$ac_site_file"
3096 done
3098 if test -r "$cache_file"; then
3099 # Some versions of bash will fail to source /dev/null (special
3100 # files actually), so we avoid doing that.
3101 if test -f "$cache_file"; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3103 $as_echo "$as_me: loading cache $cache_file" >&6;}
3104 case $cache_file in
3105 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3106 *) . "./$cache_file";;
3107 esac
3109 else
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3111 $as_echo "$as_me: creating cache $cache_file" >&6;}
3112 >$cache_file
3115 # Check that the precious variables saved in the cache have kept the same
3116 # value.
3117 ac_cache_corrupted=false
3118 for ac_var in $ac_precious_vars; do
3119 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3120 eval ac_new_set=\$ac_env_${ac_var}_set
3121 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3122 eval ac_new_val=\$ac_env_${ac_var}_value
3123 case $ac_old_set,$ac_new_set in
3124 set,)
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3126 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3127 ac_cache_corrupted=: ;;
3128 ,set)
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3130 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3131 ac_cache_corrupted=: ;;
3132 ,);;
3134 if test "x$ac_old_val" != "x$ac_new_val"; then
3135 # differences in whitespace do not lead to failure.
3136 ac_old_val_w=`echo x $ac_old_val`
3137 ac_new_val_w=`echo x $ac_new_val`
3138 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3140 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3141 ac_cache_corrupted=:
3142 else
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3144 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3145 eval $ac_var=\$ac_old_val
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3148 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3150 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3151 fi;;
3152 esac
3153 # Pass precious variables to config.status.
3154 if test "$ac_new_set" = set; then
3155 case $ac_new_val in
3156 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3157 *) ac_arg=$ac_var=$ac_new_val ;;
3158 esac
3159 case " $ac_configure_args " in
3160 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3161 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3162 esac
3164 done
3165 if $ac_cache_corrupted; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3169 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3170 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3172 ## -------------------- ##
3173 ## Main body of script. ##
3174 ## -------------------- ##
3176 ac_ext=c
3177 ac_cpp='$CPP $CPPFLAGS'
3178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3187 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3190 gcc_version=`cat $srcdir/BASE-VER`
3192 # Determine the host, build, and target systems
3193 ac_aux_dir=
3194 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3195 for ac_t in install-sh install.sh shtool; do
3196 if test -f "$ac_dir/$ac_t"; then
3197 ac_aux_dir=$ac_dir
3198 ac_install_sh="$ac_aux_dir/$ac_t -c"
3199 break 2
3201 done
3202 done
3203 if test -z "$ac_aux_dir"; then
3204 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3207 # These three variables are undocumented and unsupported,
3208 # and are intended to be withdrawn in a future Autoconf release.
3209 # They can cause serious problems if a builder's source tree is in a directory
3210 # whose full name contains unusual characters.
3211 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3212 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3213 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3216 # Make sure we can run config.sub.
3217 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3218 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3221 $as_echo_n "checking build system type... " >&6; }
3222 if test "${ac_cv_build+set}" = set; then :
3223 $as_echo_n "(cached) " >&6
3224 else
3225 ac_build_alias=$build_alias
3226 test "x$ac_build_alias" = x &&
3227 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3228 test "x$ac_build_alias" = x &&
3229 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3230 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3231 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3235 $as_echo "$ac_cv_build" >&6; }
3236 case $ac_cv_build in
3237 *-*-*) ;;
3238 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3239 esac
3240 build=$ac_cv_build
3241 ac_save_IFS=$IFS; IFS='-'
3242 set x $ac_cv_build
3243 shift
3244 build_cpu=$1
3245 build_vendor=$2
3246 shift; shift
3247 # Remember, the first character of IFS is used to create $*,
3248 # except with old shells:
3249 build_os=$*
3250 IFS=$ac_save_IFS
3251 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3255 $as_echo_n "checking host system type... " >&6; }
3256 if test "${ac_cv_host+set}" = set; then :
3257 $as_echo_n "(cached) " >&6
3258 else
3259 if test "x$host_alias" = x; then
3260 ac_cv_host=$ac_cv_build
3261 else
3262 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3263 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3268 $as_echo "$ac_cv_host" >&6; }
3269 case $ac_cv_host in
3270 *-*-*) ;;
3271 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3272 esac
3273 host=$ac_cv_host
3274 ac_save_IFS=$IFS; IFS='-'
3275 set x $ac_cv_host
3276 shift
3277 host_cpu=$1
3278 host_vendor=$2
3279 shift; shift
3280 # Remember, the first character of IFS is used to create $*,
3281 # except with old shells:
3282 host_os=$*
3283 IFS=$ac_save_IFS
3284 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3288 $as_echo_n "checking target system type... " >&6; }
3289 if test "${ac_cv_target+set}" = set; then :
3290 $as_echo_n "(cached) " >&6
3291 else
3292 if test "x$target_alias" = x; then
3293 ac_cv_target=$ac_cv_host
3294 else
3295 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3296 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3301 $as_echo "$ac_cv_target" >&6; }
3302 case $ac_cv_target in
3303 *-*-*) ;;
3304 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3305 esac
3306 target=$ac_cv_target
3307 ac_save_IFS=$IFS; IFS='-'
3308 set x $ac_cv_target
3309 shift
3310 target_cpu=$1
3311 target_vendor=$2
3312 shift; shift
3313 # Remember, the first character of IFS is used to create $*,
3314 # except with old shells:
3315 target_os=$*
3316 IFS=$ac_save_IFS
3317 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3320 # The aliases save the names the user supplied, while $host etc.
3321 # will get canonicalized.
3322 test -n "$target_alias" &&
3323 test "$program_prefix$program_suffix$program_transform_name" = \
3324 NONENONEs,x,x, &&
3325 program_prefix=${target_alias}-
3327 # Determine the noncanonical host name, for Ada.
3328 case ${build_alias} in
3329 "") build_noncanonical=${build} ;;
3330 *) build_noncanonical=${build_alias} ;;
3331 esac
3333 case ${host_alias} in
3334 "") host_noncanonical=${build_noncanonical} ;;
3335 *) host_noncanonical=${host_alias} ;;
3336 esac
3341 # Determine the noncanonical target name, for directory use.
3342 case ${target_alias} in
3343 "") target_noncanonical=${host_noncanonical} ;;
3344 *) target_noncanonical=${target_alias} ;;
3345 esac
3350 # Used for constructing correct paths for offload compilers.
3351 real_target_noncanonical=${target_noncanonical}
3352 accel_dir_suffix=
3354 # Determine the target- and build-specific subdirectories
3356 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3357 # have matching libraries, they should use host libraries: Makefile.tpl
3358 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3359 # However, they still use the build modules, because the corresponding
3360 # host modules (e.g. bison) are only built for the host when bootstrap
3361 # finishes. So:
3362 # - build_subdir is where we find build modules, and never changes.
3363 # - build_libsubdir is where we find build libraries, and can be overridden.
3365 # Prefix 'build-' so this never conflicts with target_subdir.
3366 build_subdir="build-${build_noncanonical}"
3368 # Check whether --with-build-libsubdir was given.
3369 if test "${with_build_libsubdir+set}" = set; then :
3370 withval=$with_build_libsubdir; build_libsubdir="$withval"
3371 else
3372 build_libsubdir="$build_subdir"
3375 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3376 if ( test $srcdir = . && test -d gcc ) \
3377 || test -d $srcdir/../host-${host_noncanonical}; then
3378 host_subdir="host-${host_noncanonical}"
3379 else
3380 host_subdir=.
3382 # No prefix.
3383 target_subdir=${target_noncanonical}
3386 # Set program_transform_name
3387 test "$program_prefix" != NONE &&
3388 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3389 # Use a double $ so make ignores it.
3390 test "$program_suffix" != NONE &&
3391 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3392 # Double any \ or $.
3393 # By default was `s,x,x', remove it if useless.
3394 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3395 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3398 # Check for bogus environment variables.
3399 # Test if LIBRARY_PATH contains the notation for the current directory
3400 # since this would lead to problems installing/building glibc.
3401 # LIBRARY_PATH contains the current directory if one of the following
3402 # is true:
3403 # - one of the terminals (":" and ";") is the first or last sign
3404 # - two terminals occur directly after each other
3405 # - the path contains an element with a dot in it
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3407 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3408 case ${LIBRARY_PATH} in
3409 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3410 library_path_setting="contains current directory"
3413 library_path_setting="ok"
3415 esac
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3417 $as_echo "$library_path_setting" >&6; }
3418 if test "$library_path_setting" != "ok"; then
3419 as_fn_error "
3420 *** LIBRARY_PATH shouldn't contain the current directory when
3421 *** building gcc. Please change the environment variable
3422 *** and run configure again." "$LINENO" 5
3425 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3426 # since this would lead to problems installing/building glibc.
3427 # GCC_EXEC_PREFIX contains the current directory if one of the following
3428 # is true:
3429 # - one of the terminals (":" and ";") is the first or last sign
3430 # - two terminals occur directly after each other
3431 # - the path contains an element with a dot in it
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3433 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3434 case ${GCC_EXEC_PREFIX} in
3435 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3436 gcc_exec_prefix_setting="contains current directory"
3439 gcc_exec_prefix_setting="ok"
3441 esac
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3443 $as_echo "$gcc_exec_prefix_setting" >&6; }
3444 if test "$gcc_exec_prefix_setting" != "ok"; then
3445 as_fn_error "
3446 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3447 *** building gcc. Please change the environment variable
3448 *** and run configure again." "$LINENO" 5
3451 # -----------
3452 # Directories
3453 # -----------
3455 # Specify the local prefix
3456 local_prefix=
3458 # Check whether --with-local-prefix was given.
3459 if test "${with_local_prefix+set}" = set; then :
3460 withval=$with_local_prefix; case "${withval}" in
3461 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3462 no) ;;
3463 *) local_prefix=$with_local_prefix ;;
3464 esac
3468 # Default local prefix if it is empty
3469 if test x$local_prefix = x; then
3470 local_prefix=/usr/local
3474 # Check whether --with-native-system-header-dir was given.
3475 if test "${with_native_system_header_dir+set}" = set; then :
3476 withval=$with_native_system_header_dir;
3477 case ${with_native_system_header_dir} in
3478 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3479 /* | [A-Za-z]:[\\/]*) ;;
3480 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3481 esac
3482 configured_native_system_header_dir="${withval}"
3484 else
3485 configured_native_system_header_dir=
3490 # Check whether --with-build-sysroot was given.
3491 if test "${with_build_sysroot+set}" = set; then :
3492 withval=$with_build_sysroot; if test x"$withval" != x ; then
3493 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3495 else
3496 SYSROOT_CFLAGS_FOR_TARGET=
3501 if test "x$prefix" = xNONE; then
3502 test_prefix=/usr/local
3503 else
3504 test_prefix=$prefix
3506 if test "x$exec_prefix" = xNONE; then
3507 test_exec_prefix=$test_prefix
3508 else
3509 test_exec_prefix=$exec_prefix
3513 # Check whether --with-sysroot was given.
3514 if test "${with_sysroot+set}" = set; then :
3515 withval=$with_sysroot;
3516 case ${with_sysroot} in
3517 /) ;;
3518 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3519 esac
3520 case ${with_sysroot} in
3521 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3522 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3523 esac
3525 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3526 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3528 case ${TARGET_SYSTEM_ROOT} in
3529 "${test_prefix}"|"${test_prefix}/"*|\
3530 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3531 '${prefix}'|'${prefix}/'*|\
3532 '${exec_prefix}'|'${exec_prefix}/'*)
3533 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3534 TARGET_SYSTEM_ROOT_DEFINE="$t"
3536 esac
3538 else
3540 TARGET_SYSTEM_ROOT=
3541 TARGET_SYSTEM_ROOT_DEFINE=
3542 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3550 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3551 # passed in by the toplevel make and thus we'd get different behavior
3552 # depending on where we built the sources.
3553 gcc_gxx_include_dir=
3554 # Specify the g++ header file directory
3556 # Check whether --with-gxx-include-dir was given.
3557 if test "${with_gxx_include_dir+set}" = set; then :
3558 withval=$with_gxx_include_dir; case "${withval}" in
3559 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3560 no) ;;
3561 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3562 esac
3566 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3567 if test x${gcc_gxx_include_dir} = x; then
3568 if test x${enable_version_specific_runtime_libs} = xyes; then
3569 gcc_gxx_include_dir='${libsubdir}/include/c++'
3570 else
3571 libstdcxx_incdir='include/c++/$(version)'
3572 if test x$host != x$target; then
3573 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3575 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3579 gcc_gxx_include_dir_add_sysroot=0
3580 if test "${with_sysroot+set}" = set; then
3581 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3582 if test "${gcc_gxx_without_sysroot}"; then
3583 if test x${with_sysroot} != x/; then
3584 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3586 gcc_gxx_include_dir_add_sysroot=1
3591 # Check whether --with-cpp_install_dir was given.
3592 if test "${with_cpp_install_dir+set}" = set; then :
3593 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3594 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3595 elif test x$withval != xno; then
3596 cpp_install_dir=$withval
3601 # We would like to our source tree to be readonly. However when releases or
3602 # pre-releases are generated, the flex/bison generated files as well as the
3603 # various formats of manuals need to be included along with the rest of the
3604 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3605 # just that.
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3608 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3609 # Check whether --enable-generated-files-in-srcdir was given.
3610 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3611 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3612 else
3613 generated_files_in_srcdir=no
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3618 $as_echo "$generated_files_in_srcdir" >&6; }
3620 if test "$generated_files_in_srcdir" = "yes"; then
3621 GENINSRC=''
3622 else
3623 GENINSRC='#'
3627 # -------------------
3628 # Find default linker
3629 # -------------------
3631 # With GNU ld
3633 # Check whether --with-gnu-ld was given.
3634 if test "${with_gnu_ld+set}" = set; then :
3635 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3636 else
3637 gnu_ld_flag=no
3641 # With pre-defined ld
3643 # Check whether --with-ld was given.
3644 if test "${with_ld+set}" = set; then :
3645 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3648 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3649 if test ! -x "$DEFAULT_LINKER"; then
3650 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3651 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3652 gnu_ld_flag=yes
3655 cat >>confdefs.h <<_ACEOF
3656 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3657 _ACEOF
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3662 $as_echo_n "checking whether a default linker was specified... " >&6; }
3663 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3664 if test x"$gnu_ld_flag" = x"no"; then
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3666 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3667 else
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3669 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3671 else
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673 $as_echo "no" >&6; }
3676 # With demangler in GNU ld
3678 # Check whether --with-demangler-in-ld was given.
3679 if test "${with_demangler_in_ld+set}" = set; then :
3680 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3681 else
3682 demangler_in_ld=yes
3686 # ----------------------
3687 # Find default assembler
3688 # ----------------------
3690 # With GNU as
3692 # Check whether --with-gnu-as was given.
3693 if test "${with_gnu_as+set}" = set; then :
3694 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3695 else
3696 gas_flag=no
3701 # Check whether --with-as was given.
3702 if test "${with_as+set}" = set; then :
3703 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3706 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3707 if test ! -x "$DEFAULT_ASSEMBLER"; then
3708 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3709 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3710 gas_flag=yes
3713 cat >>confdefs.h <<_ACEOF
3714 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3715 _ACEOF
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3720 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3721 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3722 if test x"$gas_flag" = x"no"; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3724 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3725 else
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3727 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3729 else
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 $as_echo "no" >&6; }
3734 # ---------------
3735 # Find C compiler
3736 # ---------------
3738 # If a non-executable a.out is present (e.g. created by GNU as above even if
3739 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3740 # file, even when creating an executable, so an execution test fails.
3741 # Remove possible default executable files to avoid this.
3743 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3744 # Autoconf includes it.
3745 rm -f a.out a.exe b.out
3747 # Find the native compiler
3748 ac_ext=c
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753 if test -n "$ac_tool_prefix"; then
3754 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3755 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3758 if test "${ac_cv_prog_CC+set}" = set; then :
3759 $as_echo_n "(cached) " >&6
3760 else
3761 if test -n "$CC"; then
3762 ac_cv_prog_CC="$CC" # Let the user override the test.
3763 else
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 break 2
3775 done
3776 done
3777 IFS=$as_save_IFS
3781 CC=$ac_cv_prog_CC
3782 if test -n "$CC"; then
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3784 $as_echo "$CC" >&6; }
3785 else
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 $as_echo "no" >&6; }
3792 if test -z "$ac_cv_prog_CC"; then
3793 ac_ct_CC=$CC
3794 # Extract the first word of "gcc", so it can be a program name with args.
3795 set dummy gcc; ac_word=$2
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3799 $as_echo_n "(cached) " >&6
3800 else
3801 if test -n "$ac_ct_CC"; then
3802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3803 else
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3811 ac_cv_prog_ac_ct_CC="gcc"
3812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3815 done
3816 done
3817 IFS=$as_save_IFS
3821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3822 if test -n "$ac_ct_CC"; then
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3824 $as_echo "$ac_ct_CC" >&6; }
3825 else
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827 $as_echo "no" >&6; }
3830 if test "x$ac_ct_CC" = x; then
3831 CC=""
3832 else
3833 case $cross_compiling:$ac_tool_warned in
3834 yes:)
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3837 ac_tool_warned=yes ;;
3838 esac
3839 CC=$ac_ct_CC
3841 else
3842 CC="$ac_cv_prog_CC"
3845 if test -z "$CC"; then
3846 if test -n "$ac_tool_prefix"; then
3847 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3848 set dummy ${ac_tool_prefix}cc; ac_word=$2
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850 $as_echo_n "checking for $ac_word... " >&6; }
3851 if test "${ac_cv_prog_CC+set}" = set; then :
3852 $as_echo_n "(cached) " >&6
3853 else
3854 if test -n "$CC"; then
3855 ac_cv_prog_CC="$CC" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3860 IFS=$as_save_IFS
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3864 ac_cv_prog_CC="${ac_tool_prefix}cc"
3865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 break 2
3868 done
3869 done
3870 IFS=$as_save_IFS
3874 CC=$ac_cv_prog_CC
3875 if test -n "$CC"; then
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3877 $as_echo "$CC" >&6; }
3878 else
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3886 if test -z "$CC"; then
3887 # Extract the first word of "cc", so it can be a program name with args.
3888 set dummy cc; ac_word=$2
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3890 $as_echo_n "checking for $ac_word... " >&6; }
3891 if test "${ac_cv_prog_CC+set}" = set; then :
3892 $as_echo_n "(cached) " >&6
3893 else
3894 if test -n "$CC"; then
3895 ac_cv_prog_CC="$CC" # Let the user override the test.
3896 else
3897 ac_prog_rejected=no
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 for as_dir in $PATH
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3905 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3906 ac_prog_rejected=yes
3907 continue
3909 ac_cv_prog_CC="cc"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 break 2
3913 done
3914 done
3915 IFS=$as_save_IFS
3917 if test $ac_prog_rejected = yes; then
3918 # We found a bogon in the path, so make sure we never use it.
3919 set dummy $ac_cv_prog_CC
3920 shift
3921 if test $# != 0; then
3922 # We chose a different compiler from the bogus one.
3923 # However, it has the same basename, so the bogon will be chosen
3924 # first if we set CC to just the basename; use the full file name.
3925 shift
3926 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3931 CC=$ac_cv_prog_CC
3932 if test -n "$CC"; then
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3934 $as_echo "$CC" >&6; }
3935 else
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937 $as_echo "no" >&6; }
3942 if test -z "$CC"; then
3943 if test -n "$ac_tool_prefix"; then
3944 for ac_prog in cl.exe
3946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3947 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949 $as_echo_n "checking for $ac_word... " >&6; }
3950 if test "${ac_cv_prog_CC+set}" = set; then :
3951 $as_echo_n "(cached) " >&6
3952 else
3953 if test -n "$CC"; then
3954 ac_cv_prog_CC="$CC" # Let the user override the test.
3955 else
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 for as_dir in $PATH
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3963 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3965 break 2
3967 done
3968 done
3969 IFS=$as_save_IFS
3973 CC=$ac_cv_prog_CC
3974 if test -n "$CC"; then
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3976 $as_echo "$CC" >&6; }
3977 else
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3983 test -n "$CC" && break
3984 done
3986 if test -z "$CC"; then
3987 ac_ct_CC=$CC
3988 for ac_prog in cl.exe
3990 # Extract the first word of "$ac_prog", so it can be a program name with args.
3991 set dummy $ac_prog; ac_word=$2
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3993 $as_echo_n "checking for $ac_word... " >&6; }
3994 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3995 $as_echo_n "(cached) " >&6
3996 else
3997 if test -n "$ac_ct_CC"; then
3998 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3999 else
4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 for as_dir in $PATH
4003 IFS=$as_save_IFS
4004 test -z "$as_dir" && as_dir=.
4005 for ac_exec_ext in '' $ac_executable_extensions; do
4006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4007 ac_cv_prog_ac_ct_CC="$ac_prog"
4008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4009 break 2
4011 done
4012 done
4013 IFS=$as_save_IFS
4017 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4018 if test -n "$ac_ct_CC"; then
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4020 $as_echo "$ac_ct_CC" >&6; }
4021 else
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023 $as_echo "no" >&6; }
4027 test -n "$ac_ct_CC" && break
4028 done
4030 if test "x$ac_ct_CC" = x; then
4031 CC=""
4032 else
4033 case $cross_compiling:$ac_tool_warned in
4034 yes:)
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4037 ac_tool_warned=yes ;;
4038 esac
4039 CC=$ac_ct_CC
4046 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4048 as_fn_error "no acceptable C compiler found in \$PATH
4049 See \`config.log' for more details." "$LINENO" 5; }
4051 # Provide some information about the compiler.
4052 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4053 set X $ac_compile
4054 ac_compiler=$2
4055 for ac_option in --version -v -V -qversion; do
4056 { { ac_try="$ac_compiler $ac_option >&5"
4057 case "(($ac_try" in
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4060 esac
4061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4062 $as_echo "$ac_try_echo"; } >&5
4063 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4064 ac_status=$?
4065 if test -s conftest.err; then
4066 sed '10a\
4067 ... rest of stderr output deleted ...
4068 10q' conftest.err >conftest.er1
4069 cat conftest.er1 >&5
4070 rm -f conftest.er1 conftest.err
4072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4073 test $ac_status = 0; }
4074 done
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4080 main ()
4084 return 0;
4086 _ACEOF
4087 ac_clean_files_save=$ac_clean_files
4088 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4089 # Try to create an executable without -o first, disregard a.out.
4090 # It will help us diagnose broken compilers, and finding out an intuition
4091 # of exeext.
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4093 $as_echo_n "checking for C compiler default output file name... " >&6; }
4094 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4096 # The possible output files:
4097 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4099 ac_rmfiles=
4100 for ac_file in $ac_files
4102 case $ac_file in
4103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4104 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4105 esac
4106 done
4107 rm -f $ac_rmfiles
4109 if { { ac_try="$ac_link_default"
4110 case "(($ac_try" in
4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112 *) ac_try_echo=$ac_try;;
4113 esac
4114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4115 $as_echo "$ac_try_echo"; } >&5
4116 (eval "$ac_link_default") 2>&5
4117 ac_status=$?
4118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4119 test $ac_status = 0; }; then :
4120 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4121 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4122 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4123 # so that the user can short-circuit this test for compilers unknown to
4124 # Autoconf.
4125 for ac_file in $ac_files ''
4127 test -f "$ac_file" || continue
4128 case $ac_file in
4129 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4131 [ab].out )
4132 # We found the default executable, but exeext='' is most
4133 # certainly right.
4134 break;;
4135 *.* )
4136 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4137 then :; else
4138 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4140 # We set ac_cv_exeext here because the later test for it is not
4141 # safe: cross compilers may not add the suffix if given an `-o'
4142 # argument, so we may need to know it at that point already.
4143 # Even if this section looks crufty: it has the advantage of
4144 # actually working.
4145 break;;
4147 break;;
4148 esac
4149 done
4150 test "$ac_cv_exeext" = no && ac_cv_exeext=
4152 else
4153 ac_file=''
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4156 $as_echo "$ac_file" >&6; }
4157 if test -z "$ac_file"; then :
4158 $as_echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4163 { as_fn_set_status 77
4164 as_fn_error "C compiler cannot create executables
4165 See \`config.log' for more details." "$LINENO" 5; }; }
4167 ac_exeext=$ac_cv_exeext
4169 # Check that the compiler produces executables we can run. If not, either
4170 # the compiler is broken, or we cross compile.
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4172 $as_echo_n "checking whether the C compiler works... " >&6; }
4173 # If not cross compiling, check that we can run a simple program.
4174 if test "$cross_compiling" != yes; then
4175 if { ac_try='./$ac_file'
4176 { { case "(($ac_try" in
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4179 esac
4180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4181 $as_echo "$ac_try_echo"; } >&5
4182 (eval "$ac_try") 2>&5
4183 ac_status=$?
4184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4185 test $ac_status = 0; }; }; then
4186 cross_compiling=no
4187 else
4188 if test "$cross_compiling" = maybe; then
4189 cross_compiling=yes
4190 else
4191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4193 as_fn_error "cannot run C compiled programs.
4194 If you meant to cross compile, use \`--host'.
4195 See \`config.log' for more details." "$LINENO" 5; }
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4200 $as_echo "yes" >&6; }
4202 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4203 ac_clean_files=$ac_clean_files_save
4204 # Check that the compiler produces executables we can run. If not, either
4205 # the compiler is broken, or we cross compile.
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4207 $as_echo_n "checking whether we are cross compiling... " >&6; }
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4209 $as_echo "$cross_compiling" >&6; }
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4212 $as_echo_n "checking for suffix of executables... " >&6; }
4213 if { { ac_try="$ac_link"
4214 case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4217 esac
4218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4219 $as_echo "$ac_try_echo"; } >&5
4220 (eval "$ac_link") 2>&5
4221 ac_status=$?
4222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4223 test $ac_status = 0; }; then :
4224 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4225 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4226 # work properly (i.e., refer to `conftest.exe'), while it won't with
4227 # `rm'.
4228 for ac_file in conftest.exe conftest conftest.*; do
4229 test -f "$ac_file" || continue
4230 case $ac_file in
4231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4232 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4233 break;;
4234 * ) break;;
4235 esac
4236 done
4237 else
4238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4240 as_fn_error "cannot compute suffix of executables: cannot compile and link
4241 See \`config.log' for more details." "$LINENO" 5; }
4243 rm -f conftest$ac_cv_exeext
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4245 $as_echo "$ac_cv_exeext" >&6; }
4247 rm -f conftest.$ac_ext
4248 EXEEXT=$ac_cv_exeext
4249 ac_exeext=$EXEEXT
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4251 $as_echo_n "checking for suffix of object files... " >&6; }
4252 if test "${ac_cv_objext+set}" = set; then :
4253 $as_echo_n "(cached) " >&6
4254 else
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4259 main ()
4263 return 0;
4265 _ACEOF
4266 rm -f conftest.o conftest.obj
4267 if { { ac_try="$ac_compile"
4268 case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4271 esac
4272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4273 $as_echo "$ac_try_echo"; } >&5
4274 (eval "$ac_compile") 2>&5
4275 ac_status=$?
4276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4277 test $ac_status = 0; }; then :
4278 for ac_file in conftest.o conftest.obj conftest.*; do
4279 test -f "$ac_file" || continue;
4280 case $ac_file in
4281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4282 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4283 break;;
4284 esac
4285 done
4286 else
4287 $as_echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4292 as_fn_error "cannot compute suffix of object files: cannot compile
4293 See \`config.log' for more details." "$LINENO" 5; }
4295 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4298 $as_echo "$ac_cv_objext" >&6; }
4299 OBJEXT=$ac_cv_objext
4300 ac_objext=$OBJEXT
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4302 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4303 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4304 $as_echo_n "(cached) " >&6
4305 else
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4310 main ()
4312 #ifndef __GNUC__
4313 choke me
4314 #endif
4317 return 0;
4319 _ACEOF
4320 if ac_fn_c_try_compile "$LINENO"; then :
4321 ac_compiler_gnu=yes
4322 else
4323 ac_compiler_gnu=no
4325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4330 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4331 if test $ac_compiler_gnu = yes; then
4332 GCC=yes
4333 else
4334 GCC=
4336 ac_test_CFLAGS=${CFLAGS+set}
4337 ac_save_CFLAGS=$CFLAGS
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4339 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4340 if test "${ac_cv_prog_cc_g+set}" = set; then :
4341 $as_echo_n "(cached) " >&6
4342 else
4343 ac_save_c_werror_flag=$ac_c_werror_flag
4344 ac_c_werror_flag=yes
4345 ac_cv_prog_cc_g=no
4346 CFLAGS="-g"
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4351 main ()
4355 return 0;
4357 _ACEOF
4358 if ac_fn_c_try_compile "$LINENO"; then :
4359 ac_cv_prog_cc_g=yes
4360 else
4361 CFLAGS=""
4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h. */
4366 main ()
4370 return 0;
4372 _ACEOF
4373 if ac_fn_c_try_compile "$LINENO"; then :
4375 else
4376 ac_c_werror_flag=$ac_save_c_werror_flag
4377 CFLAGS="-g"
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4382 main ()
4386 return 0;
4388 _ACEOF
4389 if ac_fn_c_try_compile "$LINENO"; then :
4390 ac_cv_prog_cc_g=yes
4392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397 ac_c_werror_flag=$ac_save_c_werror_flag
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4400 $as_echo "$ac_cv_prog_cc_g" >&6; }
4401 if test "$ac_test_CFLAGS" = set; then
4402 CFLAGS=$ac_save_CFLAGS
4403 elif test $ac_cv_prog_cc_g = yes; then
4404 if test "$GCC" = yes; then
4405 CFLAGS="-g -O2"
4406 else
4407 CFLAGS="-g"
4409 else
4410 if test "$GCC" = yes; then
4411 CFLAGS="-O2"
4412 else
4413 CFLAGS=
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4417 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4418 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4419 $as_echo_n "(cached) " >&6
4420 else
4421 ac_cv_prog_cc_c89=no
4422 ac_save_CC=$CC
4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h. */
4425 #include <stdarg.h>
4426 #include <stdio.h>
4427 #include <sys/types.h>
4428 #include <sys/stat.h>
4429 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4430 struct buf { int x; };
4431 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4432 static char *e (p, i)
4433 char **p;
4434 int i;
4436 return p[i];
4438 static char *f (char * (*g) (char **, int), char **p, ...)
4440 char *s;
4441 va_list v;
4442 va_start (v,p);
4443 s = g (p, va_arg (v,int));
4444 va_end (v);
4445 return s;
4448 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4449 function prototypes and stuff, but not '\xHH' hex character constants.
4450 These don't provoke an error unfortunately, instead are silently treated
4451 as 'x'. The following induces an error, until -std is added to get
4452 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4453 array size at least. It's necessary to write '\x00'==0 to get something
4454 that's true only with -std. */
4455 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4457 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4458 inside strings and character constants. */
4459 #define FOO(x) 'x'
4460 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4462 int test (int i, double x);
4463 struct s1 {int (*f) (int a);};
4464 struct s2 {int (*f) (double a);};
4465 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4466 int argc;
4467 char **argv;
4469 main ()
4471 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4473 return 0;
4475 _ACEOF
4476 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4477 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4479 CC="$ac_save_CC $ac_arg"
4480 if ac_fn_c_try_compile "$LINENO"; then :
4481 ac_cv_prog_cc_c89=$ac_arg
4483 rm -f core conftest.err conftest.$ac_objext
4484 test "x$ac_cv_prog_cc_c89" != "xno" && break
4485 done
4486 rm -f conftest.$ac_ext
4487 CC=$ac_save_CC
4490 # AC_CACHE_VAL
4491 case "x$ac_cv_prog_cc_c89" in
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4494 $as_echo "none needed" >&6; } ;;
4495 xno)
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4497 $as_echo "unsupported" >&6; } ;;
4499 CC="$CC $ac_cv_prog_cc_c89"
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4501 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4502 esac
4503 if test "x$ac_cv_prog_cc_c89" != xno; then :
4507 ac_ext=c
4508 ac_cpp='$CPP $CPPFLAGS'
4509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4513 ac_ext=cpp
4514 ac_cpp='$CXXCPP $CPPFLAGS'
4515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4518 if test -z "$CXX"; then
4519 if test -n "$CCC"; then
4520 CXX=$CCC
4521 else
4522 if test -n "$ac_tool_prefix"; then
4523 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4526 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4528 $as_echo_n "checking for $ac_word... " >&6; }
4529 if test "${ac_cv_prog_CXX+set}" = set; then :
4530 $as_echo_n "(cached) " >&6
4531 else
4532 if test -n "$CXX"; then
4533 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4534 else
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH
4538 IFS=$as_save_IFS
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4542 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 break 2
4546 done
4547 done
4548 IFS=$as_save_IFS
4552 CXX=$ac_cv_prog_CXX
4553 if test -n "$CXX"; then
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4555 $as_echo "$CXX" >&6; }
4556 else
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558 $as_echo "no" >&6; }
4562 test -n "$CXX" && break
4563 done
4565 if test -z "$CXX"; then
4566 ac_ct_CXX=$CXX
4567 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4569 # Extract the first word of "$ac_prog", so it can be a program name with args.
4570 set dummy $ac_prog; ac_word=$2
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4572 $as_echo_n "checking for $ac_word... " >&6; }
4573 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4574 $as_echo_n "(cached) " >&6
4575 else
4576 if test -n "$ac_ct_CXX"; then
4577 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4578 else
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH
4582 IFS=$as_save_IFS
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4586 ac_cv_prog_ac_ct_CXX="$ac_prog"
4587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 break 2
4590 done
4591 done
4592 IFS=$as_save_IFS
4596 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4597 if test -n "$ac_ct_CXX"; then
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4599 $as_echo "$ac_ct_CXX" >&6; }
4600 else
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4602 $as_echo "no" >&6; }
4606 test -n "$ac_ct_CXX" && break
4607 done
4609 if test "x$ac_ct_CXX" = x; then
4610 CXX="g++"
4611 else
4612 case $cross_compiling:$ac_tool_warned in
4613 yes:)
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4616 ac_tool_warned=yes ;;
4617 esac
4618 CXX=$ac_ct_CXX
4624 # Provide some information about the compiler.
4625 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4626 set X $ac_compile
4627 ac_compiler=$2
4628 for ac_option in --version -v -V -qversion; do
4629 { { ac_try="$ac_compiler $ac_option >&5"
4630 case "(($ac_try" in
4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632 *) ac_try_echo=$ac_try;;
4633 esac
4634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4635 $as_echo "$ac_try_echo"; } >&5
4636 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4637 ac_status=$?
4638 if test -s conftest.err; then
4639 sed '10a\
4640 ... rest of stderr output deleted ...
4641 10q' conftest.err >conftest.er1
4642 cat conftest.er1 >&5
4643 rm -f conftest.er1 conftest.err
4645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4646 test $ac_status = 0; }
4647 done
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4650 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4651 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4658 main ()
4660 #ifndef __GNUC__
4661 choke me
4662 #endif
4665 return 0;
4667 _ACEOF
4668 if ac_fn_cxx_try_compile "$LINENO"; then :
4669 ac_compiler_gnu=yes
4670 else
4671 ac_compiler_gnu=no
4673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4674 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4678 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4679 if test $ac_compiler_gnu = yes; then
4680 GXX=yes
4681 else
4682 GXX=
4684 ac_test_CXXFLAGS=${CXXFLAGS+set}
4685 ac_save_CXXFLAGS=$CXXFLAGS
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4687 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4688 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4689 $as_echo_n "(cached) " >&6
4690 else
4691 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4692 ac_cxx_werror_flag=yes
4693 ac_cv_prog_cxx_g=no
4694 CXXFLAGS="-g"
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4699 main ()
4703 return 0;
4705 _ACEOF
4706 if ac_fn_cxx_try_compile "$LINENO"; then :
4707 ac_cv_prog_cxx_g=yes
4708 else
4709 CXXFLAGS=""
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4714 main ()
4718 return 0;
4720 _ACEOF
4721 if ac_fn_cxx_try_compile "$LINENO"; then :
4723 else
4724 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4725 CXXFLAGS="-g"
4726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727 /* end confdefs.h. */
4730 main ()
4734 return 0;
4736 _ACEOF
4737 if ac_fn_cxx_try_compile "$LINENO"; then :
4738 ac_cv_prog_cxx_g=yes
4740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4748 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4749 if test "$ac_test_CXXFLAGS" = set; then
4750 CXXFLAGS=$ac_save_CXXFLAGS
4751 elif test $ac_cv_prog_cxx_g = yes; then
4752 if test "$GXX" = yes; then
4753 CXXFLAGS="-g -O2"
4754 else
4755 CXXFLAGS="-g"
4757 else
4758 if test "$GXX" = yes; then
4759 CXXFLAGS="-O2"
4760 else
4761 CXXFLAGS=
4764 ac_ext=c
4765 ac_cpp='$CPP $CPPFLAGS'
4766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4773 if test -n "$ac_tool_prefix"; then
4774 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4775 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 if test -n "$GNATBIND"; then
4782 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4783 else
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH
4787 IFS=$as_save_IFS
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 break 2
4795 done
4796 done
4797 IFS=$as_save_IFS
4801 GNATBIND=$ac_cv_prog_GNATBIND
4802 if test -n "$GNATBIND"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4804 $as_echo "$GNATBIND" >&6; }
4805 else
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4812 if test -z "$ac_cv_prog_GNATBIND"; then
4813 ac_ct_GNATBIND=$GNATBIND
4814 # Extract the first word of "gnatbind", so it can be a program name with args.
4815 set dummy gnatbind; ac_word=$2
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 if test -n "$ac_ct_GNATBIND"; then
4822 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4823 else
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4827 IFS=$as_save_IFS
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 break 2
4835 done
4836 done
4837 IFS=$as_save_IFS
4841 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4842 if test -n "$ac_ct_GNATBIND"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4844 $as_echo "$ac_ct_GNATBIND" >&6; }
4845 else
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4850 if test "x$ac_ct_GNATBIND" = x; then
4851 GNATBIND="no"
4852 else
4853 case $cross_compiling:$ac_tool_warned in
4854 yes:)
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4857 ac_tool_warned=yes ;;
4858 esac
4859 GNATBIND=$ac_ct_GNATBIND
4861 else
4862 GNATBIND="$ac_cv_prog_GNATBIND"
4865 if test -n "$ac_tool_prefix"; then
4866 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4867 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869 $as_echo_n "checking for $ac_word... " >&6; }
4870 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4871 $as_echo_n "(cached) " >&6
4872 else
4873 if test -n "$GNATMAKE"; then
4874 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4875 else
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4883 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 break 2
4887 done
4888 done
4889 IFS=$as_save_IFS
4893 GNATMAKE=$ac_cv_prog_GNATMAKE
4894 if test -n "$GNATMAKE"; then
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4896 $as_echo "$GNATMAKE" >&6; }
4897 else
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 $as_echo "no" >&6; }
4904 if test -z "$ac_cv_prog_GNATMAKE"; then
4905 ac_ct_GNATMAKE=$GNATMAKE
4906 # Extract the first word of "gnatmake", so it can be a program name with args.
4907 set dummy gnatmake; ac_word=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4911 $as_echo_n "(cached) " >&6
4912 else
4913 if test -n "$ac_ct_GNATMAKE"; then
4914 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4915 else
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH
4919 IFS=$as_save_IFS
4920 test -z "$as_dir" && as_dir=.
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4923 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4925 break 2
4927 done
4928 done
4929 IFS=$as_save_IFS
4933 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4934 if test -n "$ac_ct_GNATMAKE"; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4936 $as_echo "$ac_ct_GNATMAKE" >&6; }
4937 else
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 $as_echo "no" >&6; }
4942 if test "x$ac_ct_GNATMAKE" = x; then
4943 GNATMAKE="no"
4944 else
4945 case $cross_compiling:$ac_tool_warned in
4946 yes:)
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4949 ac_tool_warned=yes ;;
4950 esac
4951 GNATMAKE=$ac_ct_GNATMAKE
4953 else
4954 GNATMAKE="$ac_cv_prog_GNATMAKE"
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4958 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4959 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4960 $as_echo_n "(cached) " >&6
4961 else
4962 cat >conftest.adb <<EOF
4963 procedure conftest is begin null; end conftest;
4965 acx_cv_cc_gcc_supports_ada=no
4966 # There is a bug in old released versions of GCC which causes the
4967 # driver to exit successfully when the appropriate language module
4968 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4969 # Therefore we must check for the error message as well as an
4970 # unsuccessful exit.
4971 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4972 # given a .adb file, but produce no object file. So we must check
4973 # if an object file was really produced to guard against this.
4974 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4975 if test x"$errors" = x && test -f conftest.$ac_objext; then
4976 acx_cv_cc_gcc_supports_ada=yes
4978 rm -f conftest.*
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4981 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4983 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4984 have_gnat=yes
4985 else
4986 have_gnat=no
4990 # Do configure tests with the C++ compiler, since that's what we build with.
4991 ac_ext=cpp
4992 ac_cpp='$CXXCPP $CPPFLAGS'
4993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4998 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4999 # optimizations to be activated explicitly by the toplevel.
5000 case "$CC" in
5001 */prev-gcc/xgcc*) ;;
5002 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5003 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5004 esac
5008 # Determine PICFLAG for target gnatlib.
5013 case "${target}" in
5014 # PIC is the default on some targets or must not be used.
5015 *-*-darwin*)
5016 # For darwin, common symbols are not allowed in MH_DYLIB files
5017 case "${CFLAGS}" in
5018 # If we are using a compiler supporting mdynamic-no-pic
5019 # and the option has been tested as safe to add, then cancel
5020 # it here, since the code generated is incompatible with shared
5021 # libs.
5022 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5023 *) PICFLAG_FOR_TARGET=-fno-common ;;
5024 esac
5026 alpha*-dec-osf5*)
5027 # PIC is the default.
5029 hppa*64*-*-hpux*)
5030 # PIC is the default for 64-bit PA HP-UX.
5032 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5034 i[34567]86-*-mingw* | x86_64-*-mingw*)
5036 i[34567]86-*-interix[3-9]*)
5037 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5038 # Instead, we relocate shared libraries at runtime.
5040 i[34567]86-*-nto-qnx*)
5041 # QNX uses GNU C++, but need to define -shared option too, otherwise
5042 # it will coredump.
5043 PICFLAG_FOR_TARGET='-fPIC -shared'
5045 i[34567]86-pc-msdosdjgpp*)
5046 # DJGPP does not support shared libraries at all.
5048 ia64*-*-hpux*)
5049 # On IA64 HP-UX, PIC is the default but the pic flag
5050 # sets the default TLS model and affects inlining.
5051 PICFLAG_FOR_TARGET=-fPIC
5053 mips-sgi-irix6*)
5054 # PIC is the default.
5056 rs6000-ibm-aix* | powerpc-ibm-aix*)
5057 # All AIX code is PIC.
5060 # Some targets support both -fPIC and -fpic, but prefer the latter.
5061 # FIXME: Why?
5062 i[34567]86-*-* | x86_64-*-*)
5063 PICFLAG_FOR_TARGET=-fpic
5065 # FIXME: Override -fPIC default in libgcc only?
5066 sh-*-linux* | sh[2346lbe]*-*-linux*)
5067 PICFLAG_FOR_TARGET=-fpic
5069 # FIXME: Simplify to sh*-*-netbsd*?
5070 sh-*-netbsdelf* | shl*-*-netbsdelf*)
5071 PICFLAG_FOR_TARGET=-fpic
5073 # Default to -fPIC unless specified otherwise.
5075 PICFLAG_FOR_TARGET=-fPIC
5077 esac
5079 # If the user explicitly uses -fpic/-fPIC, keep that.
5080 case "${CFLAGS_FOR_TARGET}" in
5081 *-fpic*)
5082 PICFLAG_FOR_TARGET=-fpic
5084 *-fPIC*)
5085 PICFLAG_FOR_TARGET=-fPIC
5087 esac
5091 # -------------------------
5092 # Check C compiler features
5093 # -------------------------
5096 ac_ext=cpp
5097 ac_cpp='$CXXCPP $CPPFLAGS'
5098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5102 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5103 if test -z "$CXXCPP"; then
5104 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5105 $as_echo_n "(cached) " >&6
5106 else
5107 # Double quotes because CXXCPP needs to be expanded
5108 for CXXCPP in "$CXX -E" "/lib/cpp"
5110 ac_preproc_ok=false
5111 for ac_cxx_preproc_warn_flag in '' yes
5113 # Use a header file that comes with gcc, so configuring glibc
5114 # with a fresh cross-compiler works.
5115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5116 # <limits.h> exists even on freestanding compilers.
5117 # On the NeXT, cc -E runs the code through the compiler's parser,
5118 # not just through cpp. "Syntax error" is here to catch this case.
5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h. */
5121 #ifdef __STDC__
5122 # include <limits.h>
5123 #else
5124 # include <assert.h>
5125 #endif
5126 Syntax error
5127 _ACEOF
5128 if ac_fn_cxx_try_cpp "$LINENO"; then :
5130 else
5131 # Broken: fails on valid input.
5132 continue
5134 rm -f conftest.err conftest.$ac_ext
5136 # OK, works on sane cases. Now check whether nonexistent headers
5137 # can be detected and how.
5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5140 #include <ac_nonexistent.h>
5141 _ACEOF
5142 if ac_fn_cxx_try_cpp "$LINENO"; then :
5143 # Broken: success on invalid input.
5144 continue
5145 else
5146 # Passes both tests.
5147 ac_preproc_ok=:
5148 break
5150 rm -f conftest.err conftest.$ac_ext
5152 done
5153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5154 rm -f conftest.err conftest.$ac_ext
5155 if $ac_preproc_ok; then :
5156 break
5159 done
5160 ac_cv_prog_CXXCPP=$CXXCPP
5163 CXXCPP=$ac_cv_prog_CXXCPP
5164 else
5165 ac_cv_prog_CXXCPP=$CXXCPP
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5168 $as_echo "$CXXCPP" >&6; }
5169 ac_preproc_ok=false
5170 for ac_cxx_preproc_warn_flag in '' yes
5172 # Use a header file that comes with gcc, so configuring glibc
5173 # with a fresh cross-compiler works.
5174 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5175 # <limits.h> exists even on freestanding compilers.
5176 # On the NeXT, cc -E runs the code through the compiler's parser,
5177 # not just through cpp. "Syntax error" is here to catch this case.
5178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5180 #ifdef __STDC__
5181 # include <limits.h>
5182 #else
5183 # include <assert.h>
5184 #endif
5185 Syntax error
5186 _ACEOF
5187 if ac_fn_cxx_try_cpp "$LINENO"; then :
5189 else
5190 # Broken: fails on valid input.
5191 continue
5193 rm -f conftest.err conftest.$ac_ext
5195 # OK, works on sane cases. Now check whether nonexistent headers
5196 # can be detected and how.
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5199 #include <ac_nonexistent.h>
5200 _ACEOF
5201 if ac_fn_cxx_try_cpp "$LINENO"; then :
5202 # Broken: success on invalid input.
5203 continue
5204 else
5205 # Passes both tests.
5206 ac_preproc_ok=:
5207 break
5209 rm -f conftest.err conftest.$ac_ext
5211 done
5212 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5213 rm -f conftest.err conftest.$ac_ext
5214 if $ac_preproc_ok; then :
5216 else
5217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5219 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5220 See \`config.log' for more details." "$LINENO" 5; }
5223 ac_ext=cpp
5224 ac_cpp='$CXXCPP $CPPFLAGS'
5225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5231 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5232 if test "${ac_cv_path_GREP+set}" = set; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 if test -z "$GREP"; then
5236 ac_path_GREP_found=false
5237 # Loop through the user's path and test for each of PROGNAME-LIST
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5241 IFS=$as_save_IFS
5242 test -z "$as_dir" && as_dir=.
5243 for ac_prog in grep ggrep; do
5244 for ac_exec_ext in '' $ac_executable_extensions; do
5245 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5246 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5247 # Check for GNU ac_path_GREP and select it if it is found.
5248 # Check for GNU $ac_path_GREP
5249 case `"$ac_path_GREP" --version 2>&1` in
5250 *GNU*)
5251 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5253 ac_count=0
5254 $as_echo_n 0123456789 >"conftest.in"
5255 while :
5257 cat "conftest.in" "conftest.in" >"conftest.tmp"
5258 mv "conftest.tmp" "conftest.in"
5259 cp "conftest.in" "conftest.nl"
5260 $as_echo 'GREP' >> "conftest.nl"
5261 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5262 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5263 as_fn_arith $ac_count + 1 && ac_count=$as_val
5264 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5265 # Best one so far, save it but keep looking for a better one
5266 ac_cv_path_GREP="$ac_path_GREP"
5267 ac_path_GREP_max=$ac_count
5269 # 10*(2^10) chars as input seems more than enough
5270 test $ac_count -gt 10 && break
5271 done
5272 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5273 esac
5275 $ac_path_GREP_found && break 3
5276 done
5277 done
5278 done
5279 IFS=$as_save_IFS
5280 if test -z "$ac_cv_path_GREP"; then
5281 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5283 else
5284 ac_cv_path_GREP=$GREP
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5289 $as_echo "$ac_cv_path_GREP" >&6; }
5290 GREP="$ac_cv_path_GREP"
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5294 $as_echo_n "checking for egrep... " >&6; }
5295 if test "${ac_cv_path_EGREP+set}" = set; then :
5296 $as_echo_n "(cached) " >&6
5297 else
5298 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5299 then ac_cv_path_EGREP="$GREP -E"
5300 else
5301 if test -z "$EGREP"; then
5302 ac_path_EGREP_found=false
5303 # Loop through the user's path and test for each of PROGNAME-LIST
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5307 IFS=$as_save_IFS
5308 test -z "$as_dir" && as_dir=.
5309 for ac_prog in egrep; do
5310 for ac_exec_ext in '' $ac_executable_extensions; do
5311 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5312 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5313 # Check for GNU ac_path_EGREP and select it if it is found.
5314 # Check for GNU $ac_path_EGREP
5315 case `"$ac_path_EGREP" --version 2>&1` in
5316 *GNU*)
5317 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5319 ac_count=0
5320 $as_echo_n 0123456789 >"conftest.in"
5321 while :
5323 cat "conftest.in" "conftest.in" >"conftest.tmp"
5324 mv "conftest.tmp" "conftest.in"
5325 cp "conftest.in" "conftest.nl"
5326 $as_echo 'EGREP' >> "conftest.nl"
5327 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5328 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5329 as_fn_arith $ac_count + 1 && ac_count=$as_val
5330 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5331 # Best one so far, save it but keep looking for a better one
5332 ac_cv_path_EGREP="$ac_path_EGREP"
5333 ac_path_EGREP_max=$ac_count
5335 # 10*(2^10) chars as input seems more than enough
5336 test $ac_count -gt 10 && break
5337 done
5338 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5339 esac
5341 $ac_path_EGREP_found && break 3
5342 done
5343 done
5344 done
5345 IFS=$as_save_IFS
5346 if test -z "$ac_cv_path_EGREP"; then
5347 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5349 else
5350 ac_cv_path_EGREP=$EGREP
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5356 $as_echo "$ac_cv_path_EGREP" >&6; }
5357 EGREP="$ac_cv_path_EGREP"
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5361 $as_echo_n "checking for ANSI C header files... " >&6; }
5362 if test "${ac_cv_header_stdc+set}" = set; then :
5363 $as_echo_n "(cached) " >&6
5364 else
5365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5366 /* end confdefs.h. */
5367 #include <stdlib.h>
5368 #include <stdarg.h>
5369 #include <string.h>
5370 #include <float.h>
5373 main ()
5377 return 0;
5379 _ACEOF
5380 if ac_fn_cxx_try_compile "$LINENO"; then :
5381 ac_cv_header_stdc=yes
5382 else
5383 ac_cv_header_stdc=no
5385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5387 if test $ac_cv_header_stdc = yes; then
5388 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h. */
5391 #include <string.h>
5393 _ACEOF
5394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5395 $EGREP "memchr" >/dev/null 2>&1; then :
5397 else
5398 ac_cv_header_stdc=no
5400 rm -f conftest*
5404 if test $ac_cv_header_stdc = yes; then
5405 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5408 #include <stdlib.h>
5410 _ACEOF
5411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5412 $EGREP "free" >/dev/null 2>&1; then :
5414 else
5415 ac_cv_header_stdc=no
5417 rm -f conftest*
5421 if test $ac_cv_header_stdc = yes; then
5422 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5423 if test "$cross_compiling" = yes; then :
5425 else
5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5428 #include <ctype.h>
5429 #include <stdlib.h>
5430 #if ((' ' & 0x0FF) == 0x020)
5431 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5432 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5433 #else
5434 # define ISLOWER(c) \
5435 (('a' <= (c) && (c) <= 'i') \
5436 || ('j' <= (c) && (c) <= 'r') \
5437 || ('s' <= (c) && (c) <= 'z'))
5438 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5439 #endif
5441 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5443 main ()
5445 int i;
5446 for (i = 0; i < 256; i++)
5447 if (XOR (islower (i), ISLOWER (i))
5448 || toupper (i) != TOUPPER (i))
5449 return 2;
5450 return 0;
5452 _ACEOF
5453 if ac_fn_cxx_try_run "$LINENO"; then :
5455 else
5456 ac_cv_header_stdc=no
5458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5459 conftest.$ac_objext conftest.beam conftest.$ac_ext
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5465 $as_echo "$ac_cv_header_stdc" >&6; }
5466 if test $ac_cv_header_stdc = yes; then
5468 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5472 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5473 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5474 inttypes.h stdint.h unistd.h
5475 do :
5476 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5477 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5479 eval as_val=\$$as_ac_Header
5480 if test "x$as_val" = x""yes; then :
5481 cat >>confdefs.h <<_ACEOF
5482 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5483 _ACEOF
5487 done
5491 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5492 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5493 MINIX=yes
5494 else
5495 MINIX=
5499 if test "$MINIX" = yes; then
5501 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5504 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5507 $as_echo "#define _MINIX 1" >>confdefs.h
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5513 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5514 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5515 $as_echo_n "(cached) " >&6
5516 else
5517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518 /* end confdefs.h. */
5520 # define __EXTENSIONS__ 1
5521 $ac_includes_default
5523 main ()
5527 return 0;
5529 _ACEOF
5530 if ac_fn_cxx_try_compile "$LINENO"; then :
5531 ac_cv_safe_to_define___extensions__=yes
5532 else
5533 ac_cv_safe_to_define___extensions__=no
5535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5538 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5539 test $ac_cv_safe_to_define___extensions__ = yes &&
5540 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5542 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5544 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5546 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5548 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5551 ac_ext=c
5552 ac_cpp='$CPP $CPPFLAGS'
5553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5557 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5558 # On Suns, sometimes $CPP names a directory.
5559 if test -n "$CPP" && test -d "$CPP"; then
5560 CPP=
5562 if test -z "$CPP"; then
5563 if test "${ac_cv_prog_CPP+set}" = set; then :
5564 $as_echo_n "(cached) " >&6
5565 else
5566 # Double quotes because CPP needs to be expanded
5567 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5569 ac_preproc_ok=false
5570 for ac_c_preproc_warn_flag in '' yes
5572 # Use a header file that comes with gcc, so configuring glibc
5573 # with a fresh cross-compiler works.
5574 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5575 # <limits.h> exists even on freestanding compilers.
5576 # On the NeXT, cc -E runs the code through the compiler's parser,
5577 # not just through cpp. "Syntax error" is here to catch this case.
5578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579 /* end confdefs.h. */
5580 #ifdef __STDC__
5581 # include <limits.h>
5582 #else
5583 # include <assert.h>
5584 #endif
5585 Syntax error
5586 _ACEOF
5587 if ac_fn_c_try_cpp "$LINENO"; then :
5589 else
5590 # Broken: fails on valid input.
5591 continue
5593 rm -f conftest.err conftest.$ac_ext
5595 # OK, works on sane cases. Now check whether nonexistent headers
5596 # can be detected and how.
5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h. */
5599 #include <ac_nonexistent.h>
5600 _ACEOF
5601 if ac_fn_c_try_cpp "$LINENO"; then :
5602 # Broken: success on invalid input.
5603 continue
5604 else
5605 # Passes both tests.
5606 ac_preproc_ok=:
5607 break
5609 rm -f conftest.err conftest.$ac_ext
5611 done
5612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5613 rm -f conftest.err conftest.$ac_ext
5614 if $ac_preproc_ok; then :
5615 break
5618 done
5619 ac_cv_prog_CPP=$CPP
5622 CPP=$ac_cv_prog_CPP
5623 else
5624 ac_cv_prog_CPP=$CPP
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5627 $as_echo "$CPP" >&6; }
5628 ac_preproc_ok=false
5629 for ac_c_preproc_warn_flag in '' yes
5631 # Use a header file that comes with gcc, so configuring glibc
5632 # with a fresh cross-compiler works.
5633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5634 # <limits.h> exists even on freestanding compilers.
5635 # On the NeXT, cc -E runs the code through the compiler's parser,
5636 # not just through cpp. "Syntax error" is here to catch this case.
5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638 /* end confdefs.h. */
5639 #ifdef __STDC__
5640 # include <limits.h>
5641 #else
5642 # include <assert.h>
5643 #endif
5644 Syntax error
5645 _ACEOF
5646 if ac_fn_c_try_cpp "$LINENO"; then :
5648 else
5649 # Broken: fails on valid input.
5650 continue
5652 rm -f conftest.err conftest.$ac_ext
5654 # OK, works on sane cases. Now check whether nonexistent headers
5655 # can be detected and how.
5656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657 /* end confdefs.h. */
5658 #include <ac_nonexistent.h>
5659 _ACEOF
5660 if ac_fn_c_try_cpp "$LINENO"; then :
5661 # Broken: success on invalid input.
5662 continue
5663 else
5664 # Passes both tests.
5665 ac_preproc_ok=:
5666 break
5668 rm -f conftest.err conftest.$ac_ext
5670 done
5671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5672 rm -f conftest.err conftest.$ac_ext
5673 if $ac_preproc_ok; then :
5675 else
5676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5678 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5679 See \`config.log' for more details." "$LINENO" 5; }
5682 ac_ext=cpp
5683 ac_cpp='$CXXCPP $CPPFLAGS'
5684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5689 $as_echo_n "checking for inline... " >&6; }
5690 if test "${ac_cv_c_inline+set}" = set; then :
5691 $as_echo_n "(cached) " >&6
5692 else
5693 ac_cv_c_inline=no
5694 for ac_kw in inline __inline__ __inline; do
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5697 #ifndef __cplusplus
5698 typedef int foo_t;
5699 static $ac_kw foo_t static_foo () {return 0; }
5700 $ac_kw foo_t foo () {return 0; }
5701 #endif
5703 _ACEOF
5704 if ac_fn_cxx_try_compile "$LINENO"; then :
5705 ac_cv_c_inline=$ac_kw
5707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5708 test "$ac_cv_c_inline" != no && break
5709 done
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5713 $as_echo "$ac_cv_c_inline" >&6; }
5715 case $ac_cv_c_inline in
5716 inline | yes) ;;
5718 case $ac_cv_c_inline in
5719 no) ac_val=;;
5720 *) ac_val=$ac_cv_c_inline;;
5721 esac
5722 cat >>confdefs.h <<_ACEOF
5723 #ifndef __cplusplus
5724 #define inline $ac_val
5725 #endif
5726 _ACEOF
5728 esac
5731 # Check whether --enable-largefile was given.
5732 if test "${enable_largefile+set}" = set; then :
5733 enableval=$enable_largefile;
5736 if test "$enable_largefile" != no; then
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5739 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5740 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5741 $as_echo_n "(cached) " >&6
5742 else
5743 ac_cv_sys_largefile_CC=no
5744 if test "$GCC" != yes; then
5745 ac_save_CC=$CC
5746 while :; do
5747 # IRIX 6.2 and later do not support large files by default,
5748 # so use the C compiler's -n32 option if that helps.
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5751 #include <sys/types.h>
5752 /* Check that off_t can represent 2**63 - 1 correctly.
5753 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5754 since some C++ compilers masquerading as C compilers
5755 incorrectly reject 9223372036854775807. */
5756 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5757 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5758 && LARGE_OFF_T % 2147483647 == 1)
5759 ? 1 : -1];
5761 main ()
5765 return 0;
5767 _ACEOF
5768 if ac_fn_cxx_try_compile "$LINENO"; then :
5769 break
5771 rm -f core conftest.err conftest.$ac_objext
5772 CC="$CC -n32"
5773 if ac_fn_cxx_try_compile "$LINENO"; then :
5774 ac_cv_sys_largefile_CC=' -n32'; break
5776 rm -f core conftest.err conftest.$ac_objext
5777 break
5778 done
5779 CC=$ac_save_CC
5780 rm -f conftest.$ac_ext
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5784 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5785 if test "$ac_cv_sys_largefile_CC" != no; then
5786 CC=$CC$ac_cv_sys_largefile_CC
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5790 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5791 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 while :; do
5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h. */
5797 #include <sys/types.h>
5798 /* Check that off_t can represent 2**63 - 1 correctly.
5799 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5800 since some C++ compilers masquerading as C compilers
5801 incorrectly reject 9223372036854775807. */
5802 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5803 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5804 && LARGE_OFF_T % 2147483647 == 1)
5805 ? 1 : -1];
5807 main ()
5811 return 0;
5813 _ACEOF
5814 if ac_fn_cxx_try_compile "$LINENO"; then :
5815 ac_cv_sys_file_offset_bits=no; break
5817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h. */
5820 #define _FILE_OFFSET_BITS 64
5821 #include <sys/types.h>
5822 /* Check that off_t can represent 2**63 - 1 correctly.
5823 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5824 since some C++ compilers masquerading as C compilers
5825 incorrectly reject 9223372036854775807. */
5826 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5827 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5828 && LARGE_OFF_T % 2147483647 == 1)
5829 ? 1 : -1];
5831 main ()
5835 return 0;
5837 _ACEOF
5838 if ac_fn_cxx_try_compile "$LINENO"; then :
5839 ac_cv_sys_file_offset_bits=64; break
5841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842 ac_cv_sys_file_offset_bits=unknown
5843 break
5844 done
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5847 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5848 case $ac_cv_sys_file_offset_bits in #(
5849 no | unknown) ;;
5851 cat >>confdefs.h <<_ACEOF
5852 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5853 _ACEOF
5855 esac
5856 rm -rf conftest*
5857 if test $ac_cv_sys_file_offset_bits = unknown; then
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5859 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5860 if test "${ac_cv_sys_large_files+set}" = set; then :
5861 $as_echo_n "(cached) " >&6
5862 else
5863 while :; do
5864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5865 /* end confdefs.h. */
5866 #include <sys/types.h>
5867 /* Check that off_t can represent 2**63 - 1 correctly.
5868 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5869 since some C++ compilers masquerading as C compilers
5870 incorrectly reject 9223372036854775807. */
5871 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5872 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5873 && LARGE_OFF_T % 2147483647 == 1)
5874 ? 1 : -1];
5876 main ()
5880 return 0;
5882 _ACEOF
5883 if ac_fn_cxx_try_compile "$LINENO"; then :
5884 ac_cv_sys_large_files=no; break
5886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h. */
5889 #define _LARGE_FILES 1
5890 #include <sys/types.h>
5891 /* Check that off_t can represent 2**63 - 1 correctly.
5892 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5893 since some C++ compilers masquerading as C compilers
5894 incorrectly reject 9223372036854775807. */
5895 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5896 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5897 && LARGE_OFF_T % 2147483647 == 1)
5898 ? 1 : -1];
5900 main ()
5904 return 0;
5906 _ACEOF
5907 if ac_fn_cxx_try_compile "$LINENO"; then :
5908 ac_cv_sys_large_files=1; break
5910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5911 ac_cv_sys_large_files=unknown
5912 break
5913 done
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5916 $as_echo "$ac_cv_sys_large_files" >&6; }
5917 case $ac_cv_sys_large_files in #(
5918 no | unknown) ;;
5920 cat >>confdefs.h <<_ACEOF
5921 #define _LARGE_FILES $ac_cv_sys_large_files
5922 _ACEOF
5924 esac
5925 rm -rf conftest*
5930 # sizeof(char) is 1 by definition.
5931 # The cast to long int works around a bug in the HP C Compiler
5932 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5933 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5934 # This bug is HP SR number 8606223364.
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5936 $as_echo_n "checking size of void *... " >&6; }
5937 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5939 else
5940 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5942 else
5943 if test "$ac_cv_type_void_p" = yes; then
5944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5946 { as_fn_set_status 77
5947 as_fn_error "cannot compute sizeof (void *)
5948 See \`config.log' for more details." "$LINENO" 5; }; }
5949 else
5950 ac_cv_sizeof_void_p=0
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5956 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5960 cat >>confdefs.h <<_ACEOF
5961 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5962 _ACEOF
5965 # The cast to long int works around a bug in the HP C Compiler
5966 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5967 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5968 # This bug is HP SR number 8606223364.
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5970 $as_echo_n "checking size of short... " >&6; }
5971 if test "${ac_cv_sizeof_short+set}" = set; then :
5972 $as_echo_n "(cached) " >&6
5973 else
5974 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5976 else
5977 if test "$ac_cv_type_short" = yes; then
5978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5980 { as_fn_set_status 77
5981 as_fn_error "cannot compute sizeof (short)
5982 See \`config.log' for more details." "$LINENO" 5; }; }
5983 else
5984 ac_cv_sizeof_short=0
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5990 $as_echo "$ac_cv_sizeof_short" >&6; }
5994 cat >>confdefs.h <<_ACEOF
5995 #define SIZEOF_SHORT $ac_cv_sizeof_short
5996 _ACEOF
5999 # The cast to long int works around a bug in the HP C Compiler
6000 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6001 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6002 # This bug is HP SR number 8606223364.
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6004 $as_echo_n "checking size of int... " >&6; }
6005 if test "${ac_cv_sizeof_int+set}" = set; then :
6006 $as_echo_n "(cached) " >&6
6007 else
6008 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6010 else
6011 if test "$ac_cv_type_int" = yes; then
6012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6014 { as_fn_set_status 77
6015 as_fn_error "cannot compute sizeof (int)
6016 See \`config.log' for more details." "$LINENO" 5; }; }
6017 else
6018 ac_cv_sizeof_int=0
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6024 $as_echo "$ac_cv_sizeof_int" >&6; }
6028 cat >>confdefs.h <<_ACEOF
6029 #define SIZEOF_INT $ac_cv_sizeof_int
6030 _ACEOF
6033 # The cast to long int works around a bug in the HP C Compiler
6034 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6035 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6036 # This bug is HP SR number 8606223364.
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6038 $as_echo_n "checking size of long... " >&6; }
6039 if test "${ac_cv_sizeof_long+set}" = set; then :
6040 $as_echo_n "(cached) " >&6
6041 else
6042 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6044 else
6045 if test "$ac_cv_type_long" = yes; then
6046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6048 { as_fn_set_status 77
6049 as_fn_error "cannot compute sizeof (long)
6050 See \`config.log' for more details." "$LINENO" 5; }; }
6051 else
6052 ac_cv_sizeof_long=0
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6058 $as_echo "$ac_cv_sizeof_long" >&6; }
6062 cat >>confdefs.h <<_ACEOF
6063 #define SIZEOF_LONG $ac_cv_sizeof_long
6064 _ACEOF
6067 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6068 if test "x$ac_cv_type_long_long" = x""yes; then :
6070 cat >>confdefs.h <<_ACEOF
6071 #define HAVE_LONG_LONG 1
6072 _ACEOF
6074 # The cast to long int works around a bug in the HP C Compiler
6075 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6076 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6077 # This bug is HP SR number 8606223364.
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6079 $as_echo_n "checking size of long long... " >&6; }
6080 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6081 $as_echo_n "(cached) " >&6
6082 else
6083 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6085 else
6086 if test "$ac_cv_type_long_long" = yes; then
6087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6089 { as_fn_set_status 77
6090 as_fn_error "cannot compute sizeof (long long)
6091 See \`config.log' for more details." "$LINENO" 5; }; }
6092 else
6093 ac_cv_sizeof_long_long=0
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6099 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6103 cat >>confdefs.h <<_ACEOF
6104 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6105 _ACEOF
6110 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6111 case $ac_cv_c_int8_t in #(
6112 no|yes) ;; #(
6115 cat >>confdefs.h <<_ACEOF
6116 #define int8_t $ac_cv_c_int8_t
6117 _ACEOF
6119 esac
6121 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6122 case $ac_cv_c_int16_t in #(
6123 no|yes) ;; #(
6126 cat >>confdefs.h <<_ACEOF
6127 #define int16_t $ac_cv_c_int16_t
6128 _ACEOF
6130 esac
6132 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6133 case $ac_cv_c_int32_t in #(
6134 no|yes) ;; #(
6137 cat >>confdefs.h <<_ACEOF
6138 #define int32_t $ac_cv_c_int32_t
6139 _ACEOF
6141 esac
6143 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6144 case $ac_cv_c_int64_t in #(
6145 no|yes) ;; #(
6148 cat >>confdefs.h <<_ACEOF
6149 #define int64_t $ac_cv_c_int64_t
6150 _ACEOF
6152 esac
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6156 $as_echo_n "checking for long long int... " >&6; }
6157 if test "${ac_cv_type_long_long_int+set}" = set; then :
6158 $as_echo_n "(cached) " >&6
6159 else
6160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6161 /* end confdefs.h. */
6163 /* For now, do not test the preprocessor; as of 2007 there are too many
6164 implementations with broken preprocessors. Perhaps this can
6165 be revisited in 2012. In the meantime, code should not expect
6166 #if to work with literals wider than 32 bits. */
6167 /* Test literals. */
6168 long long int ll = 9223372036854775807ll;
6169 long long int nll = -9223372036854775807LL;
6170 unsigned long long int ull = 18446744073709551615ULL;
6171 /* Test constant expressions. */
6172 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6173 ? 1 : -1)];
6174 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6175 ? 1 : -1)];
6176 int i = 63;
6178 main ()
6180 /* Test availability of runtime routines for shift and division. */
6181 long long int llmax = 9223372036854775807ll;
6182 unsigned long long int ullmax = 18446744073709551615ull;
6183 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6184 | (llmax / ll) | (llmax % ll)
6185 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6186 | (ullmax / ull) | (ullmax % ull));
6188 return 0;
6191 _ACEOF
6192 if ac_fn_cxx_try_link "$LINENO"; then :
6193 if test "$cross_compiling" = yes; then :
6194 ac_cv_type_long_long_int=yes
6195 else
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6198 #include <limits.h>
6199 #ifndef LLONG_MAX
6200 # define HALF \
6201 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6202 # define LLONG_MAX (HALF - 1 + HALF)
6203 #endif
6205 main ()
6207 long long int n = 1;
6208 int i;
6209 for (i = 0; ; i++)
6211 long long int m = n << i;
6212 if (m >> i != n)
6213 return 1;
6214 if (LLONG_MAX / 2 < m)
6215 break;
6217 return 0;
6219 return 0;
6221 _ACEOF
6222 if ac_fn_cxx_try_run "$LINENO"; then :
6223 ac_cv_type_long_long_int=yes
6224 else
6225 ac_cv_type_long_long_int=no
6227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6228 conftest.$ac_objext conftest.beam conftest.$ac_ext
6231 else
6232 ac_cv_type_long_long_int=no
6234 rm -f core conftest.err conftest.$ac_objext \
6235 conftest$ac_exeext conftest.$ac_ext
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6238 $as_echo "$ac_cv_type_long_long_int" >&6; }
6239 if test $ac_cv_type_long_long_int = yes; then
6241 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6247 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6248 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6250 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6252 else
6253 test $ac_cv_type_long_long_int = yes \
6254 && ac_type='long long int' \
6255 || ac_type='long int'
6257 cat >>confdefs.h <<_ACEOF
6258 #define intmax_t $ac_type
6259 _ACEOF
6265 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6266 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6268 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6270 else
6271 for ac_type in 'int' 'long int' 'long long int'; do
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6274 $ac_includes_default
6276 main ()
6278 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6279 test_array [0] = 0
6282 return 0;
6284 _ACEOF
6285 if ac_fn_cxx_try_compile "$LINENO"; then :
6287 cat >>confdefs.h <<_ACEOF
6288 #define intptr_t $ac_type
6289 _ACEOF
6291 ac_type=
6293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6294 test -z "$ac_type" && break
6295 done
6299 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6300 case $ac_cv_c_uint8_t in #(
6301 no|yes) ;; #(
6304 $as_echo "#define _UINT8_T 1" >>confdefs.h
6307 cat >>confdefs.h <<_ACEOF
6308 #define uint8_t $ac_cv_c_uint8_t
6309 _ACEOF
6311 esac
6313 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6314 case $ac_cv_c_uint16_t in #(
6315 no|yes) ;; #(
6319 cat >>confdefs.h <<_ACEOF
6320 #define uint16_t $ac_cv_c_uint16_t
6321 _ACEOF
6323 esac
6325 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6326 case $ac_cv_c_uint32_t in #(
6327 no|yes) ;; #(
6330 $as_echo "#define _UINT32_T 1" >>confdefs.h
6333 cat >>confdefs.h <<_ACEOF
6334 #define uint32_t $ac_cv_c_uint32_t
6335 _ACEOF
6337 esac
6339 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6340 case $ac_cv_c_uint64_t in #(
6341 no|yes) ;; #(
6344 $as_echo "#define _UINT64_T 1" >>confdefs.h
6347 cat >>confdefs.h <<_ACEOF
6348 #define uint64_t $ac_cv_c_uint64_t
6349 _ACEOF
6351 esac
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6355 $as_echo_n "checking for unsigned long long int... " >&6; }
6356 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360 /* end confdefs.h. */
6362 /* For now, do not test the preprocessor; as of 2007 there are too many
6363 implementations with broken preprocessors. Perhaps this can
6364 be revisited in 2012. In the meantime, code should not expect
6365 #if to work with literals wider than 32 bits. */
6366 /* Test literals. */
6367 long long int ll = 9223372036854775807ll;
6368 long long int nll = -9223372036854775807LL;
6369 unsigned long long int ull = 18446744073709551615ULL;
6370 /* Test constant expressions. */
6371 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6372 ? 1 : -1)];
6373 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6374 ? 1 : -1)];
6375 int i = 63;
6377 main ()
6379 /* Test availability of runtime routines for shift and division. */
6380 long long int llmax = 9223372036854775807ll;
6381 unsigned long long int ullmax = 18446744073709551615ull;
6382 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6383 | (llmax / ll) | (llmax % ll)
6384 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6385 | (ullmax / ull) | (ullmax % ull));
6387 return 0;
6390 _ACEOF
6391 if ac_fn_cxx_try_link "$LINENO"; then :
6392 ac_cv_type_unsigned_long_long_int=yes
6393 else
6394 ac_cv_type_unsigned_long_long_int=no
6396 rm -f core conftest.err conftest.$ac_objext \
6397 conftest$ac_exeext conftest.$ac_ext
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6400 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6401 if test $ac_cv_type_unsigned_long_long_int = yes; then
6403 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6409 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6410 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6412 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6414 else
6415 test $ac_cv_type_unsigned_long_long_int = yes \
6416 && ac_type='unsigned long long int' \
6417 || ac_type='unsigned long int'
6419 cat >>confdefs.h <<_ACEOF
6420 #define uintmax_t $ac_type
6421 _ACEOF
6427 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6428 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6430 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6432 else
6433 for ac_type in 'unsigned int' 'unsigned long int' \
6434 'unsigned long long int'; do
6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436 /* end confdefs.h. */
6437 $ac_includes_default
6439 main ()
6441 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6442 test_array [0] = 0
6445 return 0;
6447 _ACEOF
6448 if ac_fn_cxx_try_compile "$LINENO"; then :
6450 cat >>confdefs.h <<_ACEOF
6451 #define uintptr_t $ac_type
6452 _ACEOF
6454 ac_type=
6456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6457 test -z "$ac_type" && break
6458 done
6474 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6475 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6478 # check what underlying integer type int64_t uses
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6480 $as_echo_n "checking for int64_t underlying type... " >&6; }
6481 if test "${ac_cv_int64_t_type+set}" = set; then :
6482 $as_echo_n "(cached) " >&6
6483 else
6485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6486 /* end confdefs.h. */
6488 #ifdef HAVE_STDINT_H
6489 #include <stdint.h>
6490 #endif
6491 template <typename T> struct X { };
6492 template <>
6493 struct X<long> { typedef long t; };
6496 main ()
6498 X<int64_t>::t x;
6500 return 0;
6502 _ACEOF
6503 if ac_fn_cxx_try_compile "$LINENO"; then :
6504 ac_cv_int64_t_type=long
6505 else
6506 ac_cv_int64_t_type="long long"
6508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6511 $as_echo "$ac_cv_int64_t_type" >&6; }
6512 if test "$ac_cv_int64_t_type" = "long"; then
6514 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6516 else
6517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518 /* end confdefs.h. */
6520 #ifdef HAVE_STDINT_H
6521 #include <stdint.h>
6522 #endif
6523 template <typename T> struct X { };
6524 template <>
6525 struct X<long long> { typedef long long t; };
6528 main ()
6530 X<int64_t>::t x;
6532 return 0;
6534 _ACEOF
6535 if ac_fn_cxx_try_compile "$LINENO"; then :
6537 else
6538 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6544 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6545 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6546 $as_echo_n "(cached) " >&6
6547 else
6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6552 #include <utility>
6555 main ()
6557 int a, b; std::swap(a,b);
6559 return 0;
6561 _ACEOF
6562 if ac_fn_cxx_try_compile "$LINENO"; then :
6563 ac_cv_std_swap_in_utility=yes
6564 else
6565 ac_cv_std_swap_in_utility=no
6567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6570 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6571 if test $ac_cv_std_swap_in_utility = yes; then
6573 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6577 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6578 # If the host compiler is affected by the bug, and we build with optimization
6579 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6580 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6581 # Since there is no reliable feature check for the presence of this bug,
6582 # we simply use a GCC version number check. (This should never trigger for
6583 # stages 2 or 3 of a native bootstrap.)
6584 aliasing_flags=
6585 if test "$GCC" = yes; then
6586 saved_CXXFLAGS="$CXXFLAGS"
6588 # The following test compilation will succeed if and only if $CXX accepts
6589 # -fno-strict-aliasing *and* is older than GCC 4.3.
6590 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6592 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6594 /* end confdefs.h. */
6596 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6597 #error compiler not affected by placement new aliasing bug
6598 #endif
6600 _ACEOF
6601 if ac_fn_cxx_try_compile "$LINENO"; then :
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6603 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6604 else
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; }
6608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6610 CXXFLAGS="$saved_CXXFLAGS"
6616 # ---------------------
6617 # Warnings and checking
6618 # ---------------------
6620 # Check $CC warning features (if it's GCC).
6621 # We want to use -pedantic, but we don't want warnings about
6622 # * 'long long'
6623 # * variadic macros
6624 # * overlong strings
6625 # * C++11 narrowing conversions in { }
6626 # So, we only use -pedantic if we can disable those warnings.
6628 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6629 # Check whether --enable-build-format-warnings was given.
6630 if test "${enable_build_format_warnings+set}" = set; then :
6631 enableval=$enable_build_format_warnings;
6632 else
6633 enable_build_format_warnings=yes
6636 if test $enable_build_format_warnings = no; then :
6637 wf_opt=-Wno-format
6638 else
6639 wf_opt=
6641 ac_ext=cpp
6642 ac_cpp='$CXXCPP $CPPFLAGS'
6643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6647 loose_warn=
6648 save_CXXFLAGS="$CXXFLAGS"
6649 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6650 # Do the check with the no- prefix removed since gcc silently
6651 # accepts any -Wno-* option on purpose
6652 case $real_option in
6653 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6654 *) option=$real_option ;;
6655 esac
6656 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6659 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6660 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6661 $as_echo_n "(cached) " >&6
6662 else
6663 CXXFLAGS="$option"
6664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665 /* end confdefs.h. */
6668 main ()
6672 return 0;
6674 _ACEOF
6675 if ac_fn_cxx_try_compile "$LINENO"; then :
6676 eval "$as_acx_Woption=yes"
6677 else
6678 eval "$as_acx_Woption=no"
6680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6683 eval ac_res=\$$as_acx_Woption
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6685 $as_echo "$ac_res" >&6; }
6686 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6687 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6689 done
6690 CXXFLAGS="$save_CXXFLAGS"
6691 ac_ext=cpp
6692 ac_cpp='$CXXCPP $CPPFLAGS'
6693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6699 ac_ext=c
6700 ac_cpp='$CPP $CPPFLAGS'
6701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6705 c_loose_warn=
6706 save_CFLAGS="$CFLAGS"
6707 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6708 # Do the check with the no- prefix removed since gcc silently
6709 # accepts any -Wno-* option on purpose
6710 case $real_option in
6711 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6712 *) option=$real_option ;;
6713 esac
6714 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6717 $as_echo_n "checking whether $CC supports $option... " >&6; }
6718 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6719 $as_echo_n "(cached) " >&6
6720 else
6721 CFLAGS="$option"
6722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6723 /* end confdefs.h. */
6726 main ()
6730 return 0;
6732 _ACEOF
6733 if ac_fn_c_try_compile "$LINENO"; then :
6734 eval "$as_acx_Woption=yes"
6735 else
6736 eval "$as_acx_Woption=no"
6738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6741 eval ac_res=\$$as_acx_Woption
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6743 $as_echo "$ac_res" >&6; }
6744 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6745 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6747 done
6748 CFLAGS="$save_CFLAGS"
6749 ac_ext=cpp
6750 ac_cpp='$CXXCPP $CPPFLAGS'
6751 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6752 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6753 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6756 ac_ext=cpp
6757 ac_cpp='$CXXCPP $CPPFLAGS'
6758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6762 strict_warn=
6763 save_CXXFLAGS="$CXXFLAGS"
6764 for real_option in -Wmissing-format-attribute; do
6765 # Do the check with the no- prefix removed since gcc silently
6766 # accepts any -Wno-* option on purpose
6767 case $real_option in
6768 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6769 *) option=$real_option ;;
6770 esac
6771 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6774 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6775 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6776 $as_echo_n "(cached) " >&6
6777 else
6778 CXXFLAGS="$option"
6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6780 /* end confdefs.h. */
6783 main ()
6787 return 0;
6789 _ACEOF
6790 if ac_fn_cxx_try_compile "$LINENO"; then :
6791 eval "$as_acx_Woption=yes"
6792 else
6793 eval "$as_acx_Woption=no"
6795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6798 eval ac_res=\$$as_acx_Woption
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6800 $as_echo "$ac_res" >&6; }
6801 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6802 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6804 done
6805 CXXFLAGS="$save_CXXFLAGS"
6806 ac_ext=cpp
6807 ac_cpp='$CXXCPP $CPPFLAGS'
6808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6813 ac_ext=cpp
6814 ac_cpp='$CXXCPP $CPPFLAGS'
6815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6819 save_CXXFLAGS="$CXXFLAGS"
6820 for real_option in -Woverloaded-virtual; do
6821 # Do the check with the no- prefix removed since gcc silently
6822 # accepts any -Wno-* option on purpose
6823 case $real_option in
6824 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6825 *) option=$real_option ;;
6826 esac
6827 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6830 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6831 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6832 $as_echo_n "(cached) " >&6
6833 else
6834 CXXFLAGS="$option"
6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836 /* end confdefs.h. */
6839 main ()
6843 return 0;
6845 _ACEOF
6846 if ac_fn_cxx_try_compile "$LINENO"; then :
6847 eval "$as_acx_Woption=yes"
6848 else
6849 eval "$as_acx_Woption=no"
6851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6854 eval ac_res=\$$as_acx_Woption
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6856 $as_echo "$ac_res" >&6; }
6857 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6858 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6860 done
6861 CXXFLAGS="$save_CXXFLAGS"
6862 ac_ext=cpp
6863 ac_cpp='$CXXCPP $CPPFLAGS'
6864 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6865 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6866 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6869 ac_ext=c
6870 ac_cpp='$CPP $CPPFLAGS'
6871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6875 c_strict_warn=
6876 save_CFLAGS="$CFLAGS"
6877 for real_option in -Wold-style-definition -Wc++-compat; do
6878 # Do the check with the no- prefix removed since gcc silently
6879 # accepts any -Wno-* option on purpose
6880 case $real_option in
6881 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6882 *) option=$real_option ;;
6883 esac
6884 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6887 $as_echo_n "checking whether $CC supports $option... " >&6; }
6888 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6889 $as_echo_n "(cached) " >&6
6890 else
6891 CFLAGS="$option"
6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893 /* end confdefs.h. */
6896 main ()
6900 return 0;
6902 _ACEOF
6903 if ac_fn_c_try_compile "$LINENO"; then :
6904 eval "$as_acx_Woption=yes"
6905 else
6906 eval "$as_acx_Woption=no"
6908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6911 eval ac_res=\$$as_acx_Woption
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6913 $as_echo "$ac_res" >&6; }
6914 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6915 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6917 done
6918 CFLAGS="$save_CFLAGS"
6919 ac_ext=cpp
6920 ac_cpp='$CXXCPP $CPPFLAGS'
6921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6926 ac_ext=cpp
6927 ac_cpp='$CXXCPP $CPPFLAGS'
6928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6932 # Do the check with the no- prefix removed from the warning options
6933 # since gcc silently accepts any -Wno-* option on purpose
6934 if test "$GXX" = yes; then :
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6936 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6937 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6938 $as_echo_n "(cached) " >&6
6939 else
6940 save_CXXFLAGS="$CXXFLAGS"
6941 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h. */
6946 main ()
6950 return 0;
6952 _ACEOF
6953 if ac_fn_cxx_try_compile "$LINENO"; then :
6954 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6955 else
6956 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6959 CXXFLAGS="$save_CXXFLAGS"
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6962 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6963 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6964 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6968 ac_ext=cpp
6969 ac_cpp='$CXXCPP $CPPFLAGS'
6970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6975 ac_ext=cpp
6976 ac_cpp='$CXXCPP $CPPFLAGS'
6977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6981 # Check whether --enable-werror-always was given.
6982 if test "${enable_werror_always+set}" = set; then :
6983 enableval=$enable_werror_always;
6984 else
6985 enable_werror_always=no
6988 if test $enable_werror_always = yes; then :
6989 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6992 ac_ext=cpp
6993 ac_cpp='$CXXCPP $CPPFLAGS'
6994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7000 # The above macros do nothing if the compiler is not GCC. However, the
7001 # Makefile has more goo to add other flags, so these variables are used
7002 # to enable warnings only for GCC.
7003 warn_cflags=
7004 warn_cxxflags=
7005 if test "x$GCC" = "xyes"; then
7006 warn_cflags='$(GCC_WARN_CFLAGS)'
7007 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
7012 # Disable exceptions and RTTI if building with g++
7013 ac_ext=c
7014 ac_cpp='$CPP $CPPFLAGS'
7015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7019 noexception_flags=
7020 save_CFLAGS="$CFLAGS"
7021 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7022 # Do the check with the no- prefix removed since gcc silently
7023 # accepts any -Wno-* option on purpose
7024 case $real_option in
7025 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7026 *) option=$real_option ;;
7027 esac
7028 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7031 $as_echo_n "checking whether $CC supports $option... " >&6; }
7032 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
7033 $as_echo_n "(cached) " >&6
7034 else
7035 CFLAGS="$option"
7036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h. */
7040 main ()
7044 return 0;
7046 _ACEOF
7047 if ac_fn_c_try_compile "$LINENO"; then :
7048 eval "$as_acx_Woption=yes"
7049 else
7050 eval "$as_acx_Woption=no"
7052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7055 eval ac_res=\$$as_acx_Woption
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7057 $as_echo "$ac_res" >&6; }
7058 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7059 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7061 done
7062 CFLAGS="$save_CFLAGS"
7063 ac_ext=cpp
7064 ac_cpp='$CXXCPP $CPPFLAGS'
7065 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7066 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7067 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7071 # Enable expensive internal checks
7072 is_release=
7073 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7074 is_release=yes
7077 # Check whether --enable-checking was given.
7078 if test "${enable_checking+set}" = set; then :
7079 enableval=$enable_checking; ac_checking_flags="${enableval}"
7080 else
7082 # Determine the default checks.
7083 if test x$is_release = x ; then
7084 ac_checking_flags=yes,extra
7085 else
7086 ac_checking_flags=release
7090 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7091 for check in release $ac_checking_flags
7093 case $check in
7094 # these set all the flags to specific states
7095 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7096 ac_fold_checking= ; ac_gc_checking=1 ; ac_extra_checking= ;
7097 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7098 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7099 ac_tree_checking=1 ; ac_valgrind_checking= ;
7100 ac_types_checking=1 ;;
7101 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7102 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7103 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7104 ac_rtlflag_checking= ; ac_runtime_checking= ;
7105 ac_tree_checking= ; ac_valgrind_checking= ;
7106 ac_types_checking= ;;
7107 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7108 ac_fold_checking=1 ; ac_gc_checking=1 ; ac_extra_checking=1 ;
7109 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7110 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7111 ac_tree_checking=1 ; ac_valgrind_checking= ;
7112 ac_types_checking=1 ;;
7113 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7114 ac_fold_checking= ; ac_gc_checking= ; ac_extra_checking= ;
7115 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7116 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7117 ac_tree_checking= ; ac_valgrind_checking= ;
7118 ac_types_checking= ;;
7119 # these enable particular checks
7120 assert) ac_assert_checking=1 ;;
7121 df) ac_df_checking=1 ;;
7122 extra) ac_extra_checking=1 ;;
7123 fold) ac_fold_checking=1 ;;
7124 gc) ac_gc_checking=1 ;;
7125 gcac) ac_gc_always_collect=1 ;;
7126 gimple) ac_gimple_checking=1 ;;
7127 misc) ac_checking=1 ;;
7128 rtl) ac_rtl_checking=1 ;;
7129 rtlflag) ac_rtlflag_checking=1 ;;
7130 runtime) ac_runtime_checking=1 ;;
7131 tree) ac_tree_checking=1 ;;
7132 types) ac_types_checking=1 ;;
7133 valgrind) ac_valgrind_checking=1 ;;
7134 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7135 esac
7136 done
7137 IFS="$ac_save_IFS"
7139 nocommon_flag=""
7140 if test x$ac_checking != x ; then
7141 if test x$ac_extra_checking != x ; then
7142 ac_checking=2
7145 cat >>confdefs.h <<_ACEOF
7146 #define CHECKING_P $ac_checking
7147 _ACEOF
7149 nocommon_flag=-fno-common
7150 else
7151 $as_echo "#define CHECKING_P 0" >>confdefs.h
7155 if test x$ac_df_checking != x ; then
7157 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7160 if test x$ac_assert_checking != x ; then
7162 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7165 if test x$ac_gimple_checking != x ; then
7167 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7171 if test x$ac_runtime_checking != x ; then
7173 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7176 if test x$ac_tree_checking != x ; then
7178 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7180 TREECHECKING=yes
7182 if test x$ac_types_checking != x ; then
7184 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7188 if test x$ac_rtl_checking != x ; then
7190 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7193 if test x$ac_rtlflag_checking != x ; then
7195 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7198 if test x$ac_gc_checking != x ; then
7200 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7203 if test x$ac_gc_always_collect != x ; then
7205 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7208 if test x$ac_fold_checking != x ; then
7210 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7213 valgrind_path_defines=
7214 valgrind_command=
7216 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7217 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7218 have_valgrind_h=yes
7219 else
7220 have_valgrind_h=no
7225 # It is certainly possible that there's valgrind but no valgrind.h.
7226 # GCC relies on making annotations so we must have both.
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7228 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7230 /* end confdefs.h. */
7231 #include <valgrind/memcheck.h>
7232 #ifndef VALGRIND_DISCARD
7233 #error VALGRIND_DISCARD not defined
7234 #endif
7235 _ACEOF
7236 if ac_fn_cxx_try_cpp "$LINENO"; then :
7237 gcc_cv_header_valgrind_memcheck_h=yes
7238 else
7239 gcc_cv_header_valgrind_memcheck_h=no
7241 rm -f conftest.err conftest.$ac_ext
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7243 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7245 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7248 #include <memcheck.h>
7249 #ifndef VALGRIND_DISCARD
7250 #error VALGRIND_DISCARD not defined
7251 #endif
7252 _ACEOF
7253 if ac_fn_cxx_try_cpp "$LINENO"; then :
7254 gcc_cv_header_memcheck_h=yes
7255 else
7256 gcc_cv_header_memcheck_h=no
7258 rm -f conftest.err conftest.$ac_ext
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7260 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7261 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7263 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7266 if test $gcc_cv_header_memcheck_h = yes; then
7268 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7272 if test x$ac_valgrind_checking != x ; then
7274 # Prepare PATH_SEPARATOR.
7275 # The user is always right.
7276 if test "${PATH_SEPARATOR+set}" != set; then
7277 echo "#! /bin/sh" >conf$$.sh
7278 echo "exit 0" >>conf$$.sh
7279 chmod +x conf$$.sh
7280 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7281 PATH_SEPARATOR=';'
7282 else
7283 PATH_SEPARATOR=:
7285 rm -f conf$$.sh
7288 # Find out how to test for executable files. Don't use a zero-byte file,
7289 # as systems may use methods other than mode bits to determine executability.
7290 cat >conf$$.file <<_ASEOF
7291 #! /bin/sh
7292 exit 0
7293 _ASEOF
7294 chmod +x conf$$.file
7295 if test -x conf$$.file >/dev/null 2>&1; then
7296 ac_executable_p="test -x"
7297 else
7298 ac_executable_p="test -f"
7300 rm -f conf$$.file
7302 # Extract the first word of "valgrind", so it can be a program name with args.
7303 set dummy valgrind; ac_word=$2
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305 $as_echo_n "checking for $ac_word... " >&6; }
7306 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7307 $as_echo_n "(cached) " >&6
7308 else
7309 case "$valgrind_path" in
7310 [\\/]* | ?:[\\/]*)
7311 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7314 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7315 for ac_dir in $PATH; do
7316 IFS="$ac_save_IFS"
7317 test -z "$ac_dir" && ac_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7320 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7321 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7322 break 2
7325 done
7326 done
7327 IFS="$ac_save_IFS"
7329 esac
7331 valgrind_path="$ac_cv_path_valgrind_path"
7332 if test -n "$valgrind_path"; then
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7334 $as_echo "$valgrind_path" >&6; }
7335 else
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7337 $as_echo "no" >&6; }
7340 if test "x$valgrind_path" = "x" \
7341 || (test $have_valgrind_h = no \
7342 && test $gcc_cv_header_memcheck_h = no \
7343 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7344 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7346 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7347 valgrind_command="$valgrind_path -q"
7349 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7355 # Enable code coverage collection
7356 # Check whether --enable-coverage was given.
7357 if test "${enable_coverage+set}" = set; then :
7358 enableval=$enable_coverage; case "${enableval}" in
7359 yes|noopt)
7360 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7362 opt)
7363 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7366 # a.k.a. --disable-coverage
7367 coverage_flags=""
7370 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7372 esac
7373 else
7374 coverage_flags=""
7379 # Check whether --enable-gather-detailed-mem-stats was given.
7380 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7381 enableval=$enable_gather_detailed_mem_stats;
7382 else
7383 enable_gather_detailed_mem_stats=no
7386 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7388 cat >>confdefs.h <<_ACEOF
7389 #define GATHER_STATISTICS $gather_stats
7390 _ACEOF
7393 # Check whether --enable-valgrind-annotations was given.
7394 if test "${enable_valgrind_annotations+set}" = set; then :
7395 enableval=$enable_valgrind_annotations;
7396 else
7397 enable_valgrind_annotations=no
7400 if test x$enable_valgrind_annotations != xno \
7401 || test x$ac_valgrind_checking != x; then
7402 if (test $have_valgrind_h = no \
7403 && test $gcc_cv_header_memcheck_h = no \
7404 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7405 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7408 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7412 # -------------------------------
7413 # Miscenalleous configure options
7414 # -------------------------------
7416 # With stabs
7418 # Check whether --with-stabs was given.
7419 if test "${with_stabs+set}" = set; then :
7420 withval=$with_stabs; stabs="$with_stabs"
7421 else
7422 stabs=no
7426 # Determine whether or not multilibs are enabled.
7427 # Check whether --enable-multilib was given.
7428 if test "${enable_multilib+set}" = set; then :
7429 enableval=$enable_multilib;
7430 else
7431 enable_multilib=yes
7436 # Determine whether or not multiarch is enabled.
7437 # Check whether --enable-multiarch was given.
7438 if test "${enable_multiarch+set}" = set; then :
7439 enableval=$enable_multiarch; case "${enableval}" in
7440 yes|no|auto) enable_multiarch=$enableval;;
7441 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7442 esac
7443 else
7444 enable_multiarch=auto
7447 if test x${enable_multiarch} = xauto; then
7448 if test x${with_native_system_header_dir} != x; then
7449 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7450 enable_multiarch=no
7452 if test x$host != x$target && test "x$with_sysroot" = x; then
7453 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7454 enable_multiarch=no
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7458 $as_echo_n "checking for multiarch configuration... " >&6; }
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7461 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7463 # needed for setting the multiarch name for soft-float/hard-float ABIs
7467 # Enable __cxa_atexit for C++.
7468 # Check whether --enable-__cxa_atexit was given.
7469 if test "${enable___cxa_atexit+set}" = set; then :
7470 enableval=$enable___cxa_atexit;
7474 # Enable C extension for decimal float if target supports it.
7476 # Check whether --enable-decimal-float was given.
7477 if test "${enable_decimal_float+set}" = set; then :
7478 enableval=$enable_decimal_float;
7479 case $enable_decimal_float in
7480 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7481 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7482 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7483 esac
7485 else
7487 case $target in
7488 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7489 i?86*-*-elfiamcu | i?86*-*-gnu* | \
7490 i?86*-*-mingw* | x86_64*-*-mingw* | \
7491 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7492 enable_decimal_float=yes
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7496 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7497 enable_decimal_float=no
7499 esac
7504 # x86's use BID format instead of DPD
7505 case x$enable_decimal_float in
7506 xyes)
7507 case $target in
7508 i?86*-*-* | x86_64*-*-*)
7509 enable_decimal_float=bid
7512 enable_decimal_float=dpd
7514 esac
7515 default_decimal_float=$enable_decimal_float
7517 xno)
7518 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7519 # dependency on libdecnumber.
7520 default_decimal_float=dpd
7522 esac
7527 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7529 cat >>confdefs.h <<_ACEOF
7530 #define ENABLE_DECIMAL_FLOAT $dfp
7531 _ACEOF
7534 # Use default_decimal_float for dependency.
7535 enable_decimal_float=$default_decimal_float
7537 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7539 cat >>confdefs.h <<_ACEOF
7540 #define ENABLE_DECIMAL_BID_FORMAT $bid
7541 _ACEOF
7544 # Enable C extension for fixed-point arithmetic.
7545 # Check whether --enable-fixed-point was given.
7546 if test "${enable_fixed_point+set}" = set; then :
7547 enableval=$enable_fixed_point;
7548 else
7550 case $target in
7551 arm*)
7552 enable_fixed_point=yes
7555 mips*-*-*)
7556 enable_fixed_point=yes
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7560 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7561 enable_fixed_point=no
7563 esac
7569 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7571 cat >>confdefs.h <<_ACEOF
7572 #define ENABLE_FIXED_POINT $fixedpoint
7573 _ACEOF
7576 # Enable threads
7577 # Pass with no value to take the default
7578 # Pass with a value to specify a thread package
7579 # Check whether --enable-threads was given.
7580 if test "${enable_threads+set}" = set; then :
7581 enableval=$enable_threads;
7582 else
7583 enable_threads=''
7587 # Check whether --enable-tls was given.
7588 if test "${enable_tls+set}" = set; then :
7589 enableval=$enable_tls;
7590 case $enable_tls in
7591 yes | no) ;;
7592 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7593 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7594 esac
7596 else
7597 enable_tls=''
7601 # Check whether --enable-vtable-verify was given.
7602 if test "${enable_vtable_verify+set}" = set; then :
7603 enableval=$enable_vtable_verify;
7604 else
7605 enable_vtable_verify=no
7608 vtable_verify=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7610 cat >>confdefs.h <<_ACEOF
7611 #define ENABLE_VTABLE_VERIFY $vtable_verify
7612 _ACEOF
7615 # Check whether --enable-objc-gc was given.
7616 if test "${enable_objc_gc+set}" = set; then :
7617 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7618 objc_boehm_gc=''
7619 else
7620 objc_boehm_gc=1
7622 else
7623 objc_boehm_gc=''
7628 # Check whether --with-dwarf2 was given.
7629 if test "${with_dwarf2+set}" = set; then :
7630 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7631 else
7632 dwarf2=no
7636 # Check whether --enable-shared was given.
7637 if test "${enable_shared+set}" = set; then :
7638 enableval=$enable_shared;
7639 case $enable_shared in
7640 yes | no) ;;
7642 enable_shared=no
7643 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7644 for pkg in $enableval; do
7645 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7646 enable_shared=yes
7648 done
7649 IFS="$ac_save_ifs"
7651 esac
7653 else
7654 enable_shared=yes
7660 # Check whether --with-specs was given.
7661 if test "${with_specs+set}" = set; then :
7662 withval=$with_specs; CONFIGURE_SPECS=$withval
7663 else
7664 CONFIGURE_SPECS=
7672 # Check whether --with-pkgversion was given.
7673 if test "${with_pkgversion+set}" = set; then :
7674 withval=$with_pkgversion; case "$withval" in
7675 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7676 no) PKGVERSION= ;;
7677 *) PKGVERSION="($withval) " ;;
7678 esac
7679 else
7680 PKGVERSION="(GCC) "
7688 # Check whether --with-bugurl was given.
7689 if test "${with_bugurl+set}" = set; then :
7690 withval=$with_bugurl; case "$withval" in
7691 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7692 no) BUGURL=
7694 *) BUGURL="$withval"
7696 esac
7697 else
7698 BUGURL="http://gcc.gnu.org/bugs.html"
7702 case ${BUGURL} in
7704 REPORT_BUGS_TO=
7705 REPORT_BUGS_TEXI=
7708 REPORT_BUGS_TO="<$BUGURL>"
7709 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7711 esac;
7716 # Sanity check enable_languages in case someone does not run the toplevel
7717 # configure # script.
7718 # Check whether --enable-languages was given.
7719 if test "${enable_languages+set}" = set; then :
7720 enableval=$enable_languages; case ,${enable_languages}, in
7721 ,,|,yes,)
7722 # go safe -- we cannot be much sure without the toplevel
7723 # configure's
7724 # analysis of which target libs are present and usable
7725 enable_languages=c
7727 *,all,*)
7728 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7730 *,c,*)
7733 enable_languages=c,${enable_languages}
7735 esac
7736 else
7737 enable_languages=c
7741 if test x"$enable_as_accelerator_for" != x; then
7743 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7745 enable_as_accelerator=yes
7746 case "${target}" in
7747 *-intelmicemul-*)
7748 # In this case we expect offload compiler to be built as native, so we
7749 # need to rename the driver to avoid clashes with host's drivers.
7750 program_transform_name="s&^&${target}-&" ;;
7751 esac
7752 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7753 program_transform_name=`echo $program_transform_name | sed $sedscript`
7754 accel_dir_suffix=/accel/${target_noncanonical}
7755 real_target_noncanonical=${enable_as_accelerator_for}
7761 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7762 tgt=`echo $tgt | sed 's/=.*//'`
7764 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7765 enable_hsa=1
7766 else
7767 enable_offloading=1
7770 if test x"$offload_targets" = x; then
7771 offload_targets=$tgt
7772 else
7773 offload_targets="$offload_targets,$tgt"
7775 done
7777 cat >>confdefs.h <<_ACEOF
7778 #define OFFLOAD_TARGETS "$offload_targets"
7779 _ACEOF
7781 if test x"$enable_offloading" != x; then
7783 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7785 else
7787 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7791 if test x"$enable_hsa" = x1 ; then
7793 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7798 # Check whether --with-multilib-list was given.
7799 if test "${with_multilib_list+set}" = set; then :
7800 withval=$with_multilib_list; :
7801 else
7802 with_multilib_list=default
7806 # -------------------------
7807 # Checks for other programs
7808 # -------------------------
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7811 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7812 set x ${MAKE-make}
7813 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7814 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7815 $as_echo_n "(cached) " >&6
7816 else
7817 cat >conftest.make <<\_ACEOF
7818 SHELL = /bin/sh
7819 all:
7820 @echo '@@@%%%=$(MAKE)=@@@%%%'
7821 _ACEOF
7822 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7823 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7824 *@@@%%%=?*=@@@%%%*)
7825 eval ac_cv_prog_make_${ac_make}_set=yes;;
7827 eval ac_cv_prog_make_${ac_make}_set=no;;
7828 esac
7829 rm -f conftest.make
7831 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7833 $as_echo "yes" >&6; }
7834 SET_MAKE=
7835 else
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837 $as_echo "no" >&6; }
7838 SET_MAKE="MAKE=${MAKE-make}"
7842 # Find some useful tools
7843 for ac_prog in gawk mawk nawk awk
7845 # Extract the first word of "$ac_prog", so it can be a program name with args.
7846 set dummy $ac_prog; ac_word=$2
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7848 $as_echo_n "checking for $ac_word... " >&6; }
7849 if test "${ac_cv_prog_AWK+set}" = set; then :
7850 $as_echo_n "(cached) " >&6
7851 else
7852 if test -n "$AWK"; then
7853 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7854 else
7855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856 for as_dir in $PATH
7858 IFS=$as_save_IFS
7859 test -z "$as_dir" && as_dir=.
7860 for ac_exec_ext in '' $ac_executable_extensions; do
7861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7862 ac_cv_prog_AWK="$ac_prog"
7863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7864 break 2
7866 done
7867 done
7868 IFS=$as_save_IFS
7872 AWK=$ac_cv_prog_AWK
7873 if test -n "$AWK"; then
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7875 $as_echo "$AWK" >&6; }
7876 else
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878 $as_echo "no" >&6; }
7882 test -n "$AWK" && break
7883 done
7885 # We need awk to create options.c and options.h.
7886 # Bail out if it's missing.
7887 case ${AWK} in
7888 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7889 esac
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7892 $as_echo_n "checking whether ln -s works... " >&6; }
7893 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7894 $as_echo_n "(cached) " >&6
7895 else
7896 rm -f conftestdata_t
7897 echo >conftestdata_f
7898 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7899 then
7900 gcc_cv_prog_LN_S="ln -s"
7901 else
7902 if ln conftestdata_f conftestdata_t 2>/dev/null
7903 then
7904 gcc_cv_prog_LN_S=ln
7905 else
7906 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7907 then
7908 gcc_cv_prog_LN_S="cp -p"
7909 else
7910 gcc_cv_prog_LN_S=cp
7914 rm -f conftestdata_f conftestdata_t
7917 LN_S="$gcc_cv_prog_LN_S"
7918 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7920 $as_echo "yes" >&6; }
7921 else
7922 if test "$gcc_cv_prog_LN_S" = "ln"; then
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7924 $as_echo "no, using ln" >&6; }
7925 else
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7927 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7932 $as_echo_n "checking whether ln works... " >&6; }
7933 if test "${acx_cv_prog_LN+set}" = set; then :
7934 $as_echo_n "(cached) " >&6
7935 else
7936 rm -f conftestdata_t
7937 echo >conftestdata_f
7938 if ln conftestdata_f conftestdata_t 2>/dev/null
7939 then
7940 acx_cv_prog_LN=ln
7941 else
7942 acx_cv_prog_LN=no
7944 rm -f conftestdata_f conftestdata_t
7947 if test $acx_cv_prog_LN = no; then
7948 LN="$LN_S"
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7950 $as_echo "no, using $LN" >&6; }
7951 else
7952 LN="$acx_cv_prog_LN"
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7954 $as_echo "yes" >&6; }
7957 if test -n "$ac_tool_prefix"; then
7958 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7959 set dummy ${ac_tool_prefix}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_RANLIB+set}" = set; then :
7963 $as_echo_n "(cached) " >&6
7964 else
7965 if test -n "$RANLIB"; then
7966 ac_cv_prog_RANLIB="$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_RANLIB="${ac_tool_prefix}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 RANLIB=$ac_cv_prog_RANLIB
7986 if test -n "$RANLIB"; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7988 $as_echo "$RANLIB" >&6; }
7989 else
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7996 if test -z "$ac_cv_prog_RANLIB"; then
7997 ac_ct_RANLIB=$RANLIB
7998 # Extract the first word of "ranlib", so it can be a program name with args.
7999 set dummy ranlib; ac_word=$2
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001 $as_echo_n "checking for $ac_word... " >&6; }
8002 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8003 $as_echo_n "(cached) " >&6
8004 else
8005 if test -n "$ac_ct_RANLIB"; then
8006 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8007 else
8008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009 for as_dir in $PATH
8011 IFS=$as_save_IFS
8012 test -z "$as_dir" && as_dir=.
8013 for ac_exec_ext in '' $ac_executable_extensions; do
8014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8015 ac_cv_prog_ac_ct_RANLIB="ranlib"
8016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8017 break 2
8019 done
8020 done
8021 IFS=$as_save_IFS
8025 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8026 if test -n "$ac_ct_RANLIB"; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8028 $as_echo "$ac_ct_RANLIB" >&6; }
8029 else
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8034 if test "x$ac_ct_RANLIB" = x; then
8035 RANLIB=":"
8036 else
8037 case $cross_compiling:$ac_tool_warned in
8038 yes:)
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8041 ac_tool_warned=yes ;;
8042 esac
8043 RANLIB=$ac_ct_RANLIB
8045 else
8046 RANLIB="$ac_cv_prog_RANLIB"
8049 ranlib_flags=""
8052 # Find a good install program. We prefer a C program (faster),
8053 # so one script is as good as another. But avoid the broken or
8054 # incompatible versions:
8055 # SysV /etc/install, /usr/sbin/install
8056 # SunOS /usr/etc/install
8057 # IRIX /sbin/install
8058 # AIX /bin/install
8059 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8060 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8061 # ./install, which can be erroneously created by make from ./install.sh.
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8063 $as_echo_n "checking for a BSD compatible install... " >&6; }
8064 if test -z "$INSTALL"; then
8065 if test "${ac_cv_path_install+set}" = set; then :
8066 $as_echo_n "(cached) " >&6
8067 else
8068 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8069 for ac_dir in $PATH; do
8070 # Account for people who put trailing slashes in PATH elements.
8071 case "$ac_dir/" in
8072 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8074 # OSF1 and SCO ODT 3.0 have their own names for install.
8075 for ac_prog in ginstall scoinst install; do
8076 if test -f $ac_dir/$ac_prog; then
8077 if test $ac_prog = install &&
8078 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8079 # AIX install. It has an incompatible calling convention.
8080 # OSF/1 installbsd also uses dspmsg, but is usable.
8082 else
8083 ac_cv_path_install="$ac_dir/$ac_prog -c"
8084 break 2
8087 done
8089 esac
8090 done
8091 IFS="$ac_save_IFS"
8094 if test "${ac_cv_path_install+set}" = set; then
8095 INSTALL="$ac_cv_path_install"
8096 else
8097 # As a last resort, use the slow shell script. We don't cache a
8098 # path for INSTALL within a source directory, because that will
8099 # break other packages using the cache if that directory is
8100 # removed, or if the path is relative.
8101 INSTALL="$ac_install_sh"
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8105 $as_echo "$INSTALL" >&6; }
8107 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8108 # It thinks the first close brace ends the variable substitution.
8109 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8111 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8114 # See if cmp has --ignore-initial.
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8116 $as_echo_n "checking for cmp's capabilities... " >&6; }
8117 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8118 $as_echo_n "(cached) " >&6
8119 else
8120 echo abfoo >t1
8121 echo cdfoo >t2
8122 gcc_cv_prog_cmp_skip=slowcompare
8123 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8124 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8126 else
8127 gcc_cv_prog_cmp_skip=gnucompare
8130 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8131 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8132 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8134 else
8135 gcc_cv_prog_cmp_skip=fastcompare
8139 rm t1 t2
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8143 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8144 make_compare_target=$gcc_cv_prog_cmp_skip
8148 # See if we have the mktemp command.
8149 # Extract the first word of "mktemp", so it can be a program name with args.
8150 set dummy mktemp; ac_word=$2
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8152 $as_echo_n "checking for $ac_word... " >&6; }
8153 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8154 $as_echo_n "(cached) " >&6
8155 else
8156 if test -n "$have_mktemp_command"; then
8157 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8158 else
8159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160 for as_dir in $PATH
8162 IFS=$as_save_IFS
8163 test -z "$as_dir" && as_dir=.
8164 for ac_exec_ext in '' $ac_executable_extensions; do
8165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8166 ac_cv_prog_have_mktemp_command="yes"
8167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8168 break 2
8170 done
8171 done
8172 IFS=$as_save_IFS
8174 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8177 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8178 if test -n "$have_mktemp_command"; then
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8180 $as_echo "$have_mktemp_command" >&6; }
8181 else
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8183 $as_echo "no" >&6; }
8188 # See if makeinfo has been installed and is modern enough
8189 # that we can use it.
8191 # Extract the first word of "makeinfo", so it can be a program name with args.
8192 set dummy makeinfo; ac_word=$2
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8194 $as_echo_n "checking for $ac_word... " >&6; }
8195 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8196 $as_echo_n "(cached) " >&6
8197 else
8198 if test -n "$MAKEINFO"; then
8199 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8200 else
8201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202 for as_dir in $PATH
8204 IFS=$as_save_IFS
8205 test -z "$as_dir" && as_dir=.
8206 for ac_exec_ext in '' $ac_executable_extensions; do
8207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8208 ac_cv_prog_MAKEINFO="makeinfo"
8209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8210 break 2
8212 done
8213 done
8214 IFS=$as_save_IFS
8218 MAKEINFO=$ac_cv_prog_MAKEINFO
8219 if test -n "$MAKEINFO"; then
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8221 $as_echo "$MAKEINFO" >&6; }
8222 else
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8224 $as_echo "no" >&6; }
8228 if test -n "$MAKEINFO"; then
8229 # Found it, now check the version.
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8231 $as_echo_n "checking for modern makeinfo... " >&6; }
8232 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8233 $as_echo_n "(cached) " >&6
8234 else
8235 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8236 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8238 case $ac_prog_version in
8239 '') gcc_cv_prog_makeinfo_modern=no;;
8240 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8241 *) gcc_cv_prog_makeinfo_modern=no;;
8242 esac
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8246 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8247 else
8248 gcc_cv_prog_makeinfo_modern=no
8250 if test $gcc_cv_prog_makeinfo_modern = no; then
8251 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8254 if test $gcc_cv_prog_makeinfo_modern = no; then
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8256 *** Makeinfo is missing or too old.
8257 *** Info documentation will not be built." >&5
8258 $as_echo "$as_me: WARNING:
8259 *** Makeinfo is missing or too old.
8260 *** Info documentation will not be built." >&2;}
8261 BUILD_INFO=
8262 else
8263 BUILD_INFO=info
8267 # Is pod2man recent enough to regenerate manpages?
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8269 $as_echo_n "checking for recent Pod::Man... " >&6; }
8270 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8272 $as_echo "yes" >&6; }
8273 GENERATED_MANPAGES=generated-manpages
8274 else
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8276 $as_echo "no" >&6; }
8277 GENERATED_MANPAGES=
8281 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8283 # How about lex?
8284 for ac_prog in flex
8286 # Extract the first word of "$ac_prog", so it can be a program name with args.
8287 set dummy $ac_prog; ac_word=$2
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8289 $as_echo_n "checking for $ac_word... " >&6; }
8290 if test "${ac_cv_prog_FLEX+set}" = set; then :
8291 $as_echo_n "(cached) " >&6
8292 else
8293 if test -n "$FLEX"; then
8294 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8295 else
8296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8297 for as_dir in $PATH
8299 IFS=$as_save_IFS
8300 test -z "$as_dir" && as_dir=.
8301 for ac_exec_ext in '' $ac_executable_extensions; do
8302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8303 ac_cv_prog_FLEX="$ac_prog"
8304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8305 break 2
8307 done
8308 done
8309 IFS=$as_save_IFS
8313 FLEX=$ac_cv_prog_FLEX
8314 if test -n "$FLEX"; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8316 $as_echo "$FLEX" >&6; }
8317 else
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319 $as_echo "no" >&6; }
8323 test -n "$FLEX" && break
8324 done
8325 test -n "$FLEX" || FLEX="$MISSING flex"
8328 # Bison?
8329 for ac_prog in bison
8331 # Extract the first word of "$ac_prog", so it can be a program name with args.
8332 set dummy $ac_prog; ac_word=$2
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334 $as_echo_n "checking for $ac_word... " >&6; }
8335 if test "${ac_cv_prog_BISON+set}" = set; then :
8336 $as_echo_n "(cached) " >&6
8337 else
8338 if test -n "$BISON"; then
8339 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8340 else
8341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342 for as_dir in $PATH
8344 IFS=$as_save_IFS
8345 test -z "$as_dir" && as_dir=.
8346 for ac_exec_ext in '' $ac_executable_extensions; do
8347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8348 ac_cv_prog_BISON="$ac_prog"
8349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8350 break 2
8352 done
8353 done
8354 IFS=$as_save_IFS
8358 BISON=$ac_cv_prog_BISON
8359 if test -n "$BISON"; then
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8361 $as_echo "$BISON" >&6; }
8362 else
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364 $as_echo "no" >&6; }
8368 test -n "$BISON" && break
8369 done
8370 test -n "$BISON" || BISON="$MISSING bison"
8373 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8374 # check for build == host before using them.
8376 # NM
8377 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8378 && test -d ../binutils ; then
8379 NM='${objdir}/../binutils/nm-new'
8380 else
8381 # Extract the first word of "nm", so it can be a program name with args.
8382 set dummy nm; ac_word=$2
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8384 $as_echo_n "checking for $ac_word... " >&6; }
8385 if test "${ac_cv_prog_NM+set}" = set; then :
8386 $as_echo_n "(cached) " >&6
8387 else
8388 if test -n "$NM"; then
8389 ac_cv_prog_NM="$NM" # Let the user override the test.
8390 else
8391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8392 for as_dir in $PATH
8394 IFS=$as_save_IFS
8395 test -z "$as_dir" && as_dir=.
8396 for ac_exec_ext in '' $ac_executable_extensions; do
8397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8398 ac_cv_prog_NM="nm"
8399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8400 break 2
8402 done
8403 done
8404 IFS=$as_save_IFS
8406 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8409 NM=$ac_cv_prog_NM
8410 if test -n "$NM"; then
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8412 $as_echo "$NM" >&6; }
8413 else
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415 $as_echo "no" >&6; }
8421 # AR
8422 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8423 && test -d ../binutils ; then
8424 AR='${objdir}/../binutils/ar'
8425 else
8426 # Extract the first word of "ar", so it can be a program name with args.
8427 set dummy ar; ac_word=$2
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8429 $as_echo_n "checking for $ac_word... " >&6; }
8430 if test "${ac_cv_prog_AR+set}" = set; then :
8431 $as_echo_n "(cached) " >&6
8432 else
8433 if test -n "$AR"; then
8434 ac_cv_prog_AR="$AR" # Let the user override the test.
8435 else
8436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8437 for as_dir in $PATH
8439 IFS=$as_save_IFS
8440 test -z "$as_dir" && as_dir=.
8441 for ac_exec_ext in '' $ac_executable_extensions; do
8442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8443 ac_cv_prog_AR="ar"
8444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8445 break 2
8447 done
8448 done
8449 IFS=$as_save_IFS
8451 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8454 AR=$ac_cv_prog_AR
8455 if test -n "$AR"; then
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8457 $as_echo "$AR" >&6; }
8458 else
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460 $as_echo "no" >&6; }
8466 # The jit documentation looks better if built with sphinx, but can be
8467 # built with texinfo if sphinx is not available.
8468 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8469 # Extract the first word of "sphinx-build", so it can be a program name with args.
8470 set dummy sphinx-build; ac_word=$2
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 $as_echo_n "checking for $ac_word... " >&6; }
8473 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8474 $as_echo_n "(cached) " >&6
8475 else
8476 if test -n "$doc_build_sys"; then
8477 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8478 else
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480 for as_dir in $PATH
8482 IFS=$as_save_IFS
8483 test -z "$as_dir" && as_dir=.
8484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8486 ac_cv_prog_doc_build_sys="sphinx"
8487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8488 break 2
8490 done
8491 done
8492 IFS=$as_save_IFS
8494 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8497 doc_build_sys=$ac_cv_prog_doc_build_sys
8498 if test -n "$doc_build_sys"; then
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8500 $as_echo "$doc_build_sys" >&6; }
8501 else
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8503 $as_echo "no" >&6; }
8508 # --------------------
8509 # Checks for C headers
8510 # --------------------
8512 # Need to reject headers which give warnings, so that the -Werror bootstrap
8513 # works later. *sigh* This needs to come before all header checks.
8515 ac_c_preproc_warn_flag=yes
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8518 $as_echo_n "checking for ANSI C header files... " >&6; }
8519 if test "${ac_cv_header_stdc+set}" = set; then :
8520 $as_echo_n "(cached) " >&6
8521 else
8522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h. */
8524 #include <stdlib.h>
8525 #include <stdarg.h>
8526 #include <string.h>
8527 #include <float.h>
8530 main ()
8534 return 0;
8536 _ACEOF
8537 if ac_fn_cxx_try_compile "$LINENO"; then :
8538 ac_cv_header_stdc=yes
8539 else
8540 ac_cv_header_stdc=no
8542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8544 if test $ac_cv_header_stdc = yes; then
8545 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8547 /* end confdefs.h. */
8548 #include <string.h>
8550 _ACEOF
8551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8552 $EGREP "memchr" >/dev/null 2>&1; then :
8554 else
8555 ac_cv_header_stdc=no
8557 rm -f conftest*
8561 if test $ac_cv_header_stdc = yes; then
8562 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8564 /* end confdefs.h. */
8565 #include <stdlib.h>
8567 _ACEOF
8568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8569 $EGREP "free" >/dev/null 2>&1; then :
8571 else
8572 ac_cv_header_stdc=no
8574 rm -f conftest*
8578 if test $ac_cv_header_stdc = yes; then
8579 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8580 if test "$cross_compiling" = yes; then :
8582 else
8583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8584 /* end confdefs.h. */
8585 #include <ctype.h>
8586 #include <stdlib.h>
8587 #if ((' ' & 0x0FF) == 0x020)
8588 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8589 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8590 #else
8591 # define ISLOWER(c) \
8592 (('a' <= (c) && (c) <= 'i') \
8593 || ('j' <= (c) && (c) <= 'r') \
8594 || ('s' <= (c) && (c) <= 'z'))
8595 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8596 #endif
8598 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8600 main ()
8602 int i;
8603 for (i = 0; i < 256; i++)
8604 if (XOR (islower (i), ISLOWER (i))
8605 || toupper (i) != TOUPPER (i))
8606 return 2;
8607 return 0;
8609 _ACEOF
8610 if ac_fn_cxx_try_run "$LINENO"; then :
8612 else
8613 ac_cv_header_stdc=no
8615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8616 conftest.$ac_objext conftest.beam conftest.$ac_ext
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8622 $as_echo "$ac_cv_header_stdc" >&6; }
8623 if test $ac_cv_header_stdc = yes; then
8625 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8630 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8631 if test "${ac_cv_header_time+set}" = set; then :
8632 $as_echo_n "(cached) " >&6
8633 else
8634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635 /* end confdefs.h. */
8636 #include <sys/types.h>
8637 #include <sys/time.h>
8638 #include <time.h>
8641 main ()
8643 if ((struct tm *) 0)
8644 return 0;
8646 return 0;
8648 _ACEOF
8649 if ac_fn_cxx_try_compile "$LINENO"; then :
8650 ac_cv_header_time=yes
8651 else
8652 ac_cv_header_time=no
8654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8657 $as_echo "$ac_cv_header_time" >&6; }
8658 if test $ac_cv_header_time = yes; then
8660 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8665 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8666 if test "${gcc_cv_header_string+set}" = set; then :
8667 $as_echo_n "(cached) " >&6
8668 else
8669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8670 /* end confdefs.h. */
8671 #include <string.h>
8672 #include <strings.h>
8674 main ()
8678 return 0;
8680 _ACEOF
8681 if ac_fn_cxx_try_compile "$LINENO"; then :
8682 gcc_cv_header_string=yes
8683 else
8684 gcc_cv_header_string=no
8686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8689 $as_echo "$gcc_cv_header_string" >&6; }
8690 if test $gcc_cv_header_string = yes; then
8692 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8697 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8698 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8699 $as_echo_n "(cached) " >&6
8700 else
8701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8702 /* end confdefs.h. */
8703 #include <sys/types.h>
8704 #include <sys/wait.h>
8705 #ifndef WEXITSTATUS
8706 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8707 #endif
8708 #ifndef WIFEXITED
8709 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8710 #endif
8713 main ()
8715 int s;
8716 wait (&s);
8717 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8719 return 0;
8721 _ACEOF
8722 if ac_fn_cxx_try_compile "$LINENO"; then :
8723 ac_cv_header_sys_wait_h=yes
8724 else
8725 ac_cv_header_sys_wait_h=no
8727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8730 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8731 if test $ac_cv_header_sys_wait_h = yes; then
8733 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8738 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8739 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8740 $as_echo_n "(cached) " >&6
8741 else
8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h. */
8744 #include <sys/types.h>
8745 #include <termios.h>
8746 #ifdef TIOCGWINSZ
8748 #endif
8750 _ACEOF
8751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8752 $EGREP "yes" >/dev/null 2>&1; then :
8753 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8754 else
8755 ac_cv_sys_tiocgwinsz_in_termios_h=no
8757 rm -f conftest*
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8761 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8763 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8765 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8766 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8767 $as_echo_n "(cached) " >&6
8768 else
8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770 /* end confdefs.h. */
8771 #include <sys/types.h>
8772 #include <sys/ioctl.h>
8773 #ifdef TIOCGWINSZ
8775 #endif
8777 _ACEOF
8778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8779 $EGREP "yes" >/dev/null 2>&1; then :
8780 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8781 else
8782 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8784 rm -f conftest*
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8788 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8790 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8792 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8797 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8798 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8799 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8800 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8801 do :
8802 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8803 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8804 eval as_val=\$$as_ac_Header
8805 if test "x$as_val" = x""yes; then :
8806 cat >>confdefs.h <<_ACEOF
8807 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8808 _ACEOF
8811 done
8814 # Check for thread headers.
8815 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8816 if test "x$ac_cv_header_thread_h" = x""yes; then :
8817 have_thread_h=yes
8818 else
8819 have_thread_h=
8822 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8823 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8824 have_pthread_h=yes
8825 else
8826 have_pthread_h=
8830 # These tests can't be done till we know if we have limits.h.
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8832 $as_echo_n "checking for CHAR_BIT... " >&6; }
8833 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8834 $as_echo_n "(cached) " >&6
8835 else
8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h. */
8838 #ifdef HAVE_LIMITS_H
8839 #include <limits.h>
8840 #endif
8841 #ifdef CHAR_BIT
8842 found
8843 #endif
8844 _ACEOF
8845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8846 $EGREP "found" >/dev/null 2>&1; then :
8847 gcc_cv_decl_char_bit=yes
8848 else
8849 gcc_cv_decl_char_bit=no
8851 rm -f conftest*
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8856 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8857 if test $gcc_cv_decl_char_bit = no; then
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8859 $as_echo_n "checking number of bits in a byte... " >&6; }
8860 if test "${gcc_cv_c_nbby+set}" = set; then :
8861 $as_echo_n "(cached) " >&6
8862 else
8864 gcc_cv_c_nbby=
8865 while test $i -lt 65; do
8866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8870 main ()
8872 switch(0) {
8873 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8874 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8877 return 0;
8879 _ACEOF
8880 if ac_fn_cxx_try_compile "$LINENO"; then :
8881 gcc_cv_c_nbby=$i; break
8883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8884 i=`expr $i + 1`
8885 done
8886 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8890 $as_echo "$gcc_cv_c_nbby" >&6; }
8891 if test $gcc_cv_c_nbby = failed; then
8892 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8893 else
8895 cat >>confdefs.h <<_ACEOF
8896 #define CHAR_BIT $gcc_cv_c_nbby
8897 _ACEOF
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8902 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8903 if test "${ac_cv_c_bigendian+set}" = set; then :
8904 $as_echo_n "(cached) " >&6
8905 else
8906 ac_cv_c_bigendian=unknown
8907 # See if we're dealing with a universal compiler.
8908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909 /* end confdefs.h. */
8910 #ifndef __APPLE_CC__
8911 not a universal capable compiler
8912 #endif
8913 typedef int dummy;
8915 _ACEOF
8916 if ac_fn_cxx_try_compile "$LINENO"; then :
8918 # Check for potential -arch flags. It is not universal unless
8919 # there are at least two -arch flags with different values.
8920 ac_arch=
8921 ac_prev=
8922 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8923 if test -n "$ac_prev"; then
8924 case $ac_word in
8925 i?86 | x86_64 | ppc | ppc64)
8926 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8927 ac_arch=$ac_word
8928 else
8929 ac_cv_c_bigendian=universal
8930 break
8933 esac
8934 ac_prev=
8935 elif test "x$ac_word" = "x-arch"; then
8936 ac_prev=arch
8938 done
8940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8941 if test $ac_cv_c_bigendian = unknown; then
8942 # See if sys/param.h defines the BYTE_ORDER macro.
8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944 /* end confdefs.h. */
8945 #include <sys/types.h>
8946 #include <sys/param.h>
8949 main ()
8951 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8952 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8953 && LITTLE_ENDIAN)
8954 bogus endian macros
8955 #endif
8958 return 0;
8960 _ACEOF
8961 if ac_fn_cxx_try_compile "$LINENO"; then :
8962 # It does; now see whether it defined to BIG_ENDIAN or not.
8963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964 /* end confdefs.h. */
8965 #include <sys/types.h>
8966 #include <sys/param.h>
8969 main ()
8971 #if BYTE_ORDER != BIG_ENDIAN
8972 not big endian
8973 #endif
8976 return 0;
8978 _ACEOF
8979 if ac_fn_cxx_try_compile "$LINENO"; then :
8980 ac_cv_c_bigendian=yes
8981 else
8982 ac_cv_c_bigendian=no
8984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8988 if test $ac_cv_c_bigendian = unknown; then
8989 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8991 /* end confdefs.h. */
8992 #include <limits.h>
8995 main ()
8997 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8998 bogus endian macros
8999 #endif
9002 return 0;
9004 _ACEOF
9005 if ac_fn_cxx_try_compile "$LINENO"; then :
9006 # It does; now see whether it defined to _BIG_ENDIAN or not.
9007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008 /* end confdefs.h. */
9009 #include <limits.h>
9012 main ()
9014 #ifndef _BIG_ENDIAN
9015 not big endian
9016 #endif
9019 return 0;
9021 _ACEOF
9022 if ac_fn_cxx_try_compile "$LINENO"; then :
9023 ac_cv_c_bigendian=yes
9024 else
9025 ac_cv_c_bigendian=no
9027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9031 if test $ac_cv_c_bigendian = unknown; then
9032 # Compile a test program.
9033 if test "$cross_compiling" = yes; then :
9034 # Try to guess by grepping values from an object file.
9035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9036 /* end confdefs.h. */
9037 short int ascii_mm[] =
9038 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9039 short int ascii_ii[] =
9040 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9041 int use_ascii (int i) {
9042 return ascii_mm[i] + ascii_ii[i];
9044 short int ebcdic_ii[] =
9045 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9046 short int ebcdic_mm[] =
9047 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9048 int use_ebcdic (int i) {
9049 return ebcdic_mm[i] + ebcdic_ii[i];
9051 extern int foo;
9054 main ()
9056 return use_ascii (foo) == use_ebcdic (foo);
9058 return 0;
9060 _ACEOF
9061 if ac_fn_cxx_try_compile "$LINENO"; then :
9062 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9063 ac_cv_c_bigendian=yes
9065 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9066 if test "$ac_cv_c_bigendian" = unknown; then
9067 ac_cv_c_bigendian=no
9068 else
9069 # finding both strings is unlikely to happen, but who knows?
9070 ac_cv_c_bigendian=unknown
9074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9075 else
9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h. */
9078 $ac_includes_default
9080 main ()
9083 /* Are we little or big endian? From Harbison&Steele. */
9084 union
9086 long int l;
9087 char c[sizeof (long int)];
9088 } u;
9089 u.l = 1;
9090 return u.c[sizeof (long int) - 1] == 1;
9093 return 0;
9095 _ACEOF
9096 if ac_fn_cxx_try_run "$LINENO"; then :
9097 ac_cv_c_bigendian=no
9098 else
9099 ac_cv_c_bigendian=yes
9101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9102 conftest.$ac_objext conftest.beam conftest.$ac_ext
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9108 $as_echo "$ac_cv_c_bigendian" >&6; }
9109 case $ac_cv_c_bigendian in #(
9110 yes)
9111 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9112 ;; #(
9114 ;; #(
9115 universal)
9117 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9119 ;; #(
9121 as_fn_error "unknown endianness
9122 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9123 esac
9126 # ----------------------
9127 # Checks for C++ headers
9128 # ----------------------
9130 ac_ext=cpp
9131 ac_cpp='$CXXCPP $CPPFLAGS'
9132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9136 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9137 if test -z "$CXXCPP"; then
9138 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9139 $as_echo_n "(cached) " >&6
9140 else
9141 # Double quotes because CXXCPP needs to be expanded
9142 for CXXCPP in "$CXX -E" "/lib/cpp"
9144 ac_preproc_ok=false
9145 for ac_cxx_preproc_warn_flag in '' yes
9147 # Use a header file that comes with gcc, so configuring glibc
9148 # with a fresh cross-compiler works.
9149 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9150 # <limits.h> exists even on freestanding compilers.
9151 # On the NeXT, cc -E runs the code through the compiler's parser,
9152 # not just through cpp. "Syntax error" is here to catch this case.
9153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9155 #ifdef __STDC__
9156 # include <limits.h>
9157 #else
9158 # include <assert.h>
9159 #endif
9160 Syntax error
9161 _ACEOF
9162 if ac_fn_cxx_try_cpp "$LINENO"; then :
9164 else
9165 # Broken: fails on valid input.
9166 continue
9168 rm -f conftest.err conftest.$ac_ext
9170 # OK, works on sane cases. Now check whether nonexistent headers
9171 # can be detected and how.
9172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9173 /* end confdefs.h. */
9174 #include <ac_nonexistent.h>
9175 _ACEOF
9176 if ac_fn_cxx_try_cpp "$LINENO"; then :
9177 # Broken: success on invalid input.
9178 continue
9179 else
9180 # Passes both tests.
9181 ac_preproc_ok=:
9182 break
9184 rm -f conftest.err conftest.$ac_ext
9186 done
9187 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9188 rm -f conftest.err conftest.$ac_ext
9189 if $ac_preproc_ok; then :
9190 break
9193 done
9194 ac_cv_prog_CXXCPP=$CXXCPP
9197 CXXCPP=$ac_cv_prog_CXXCPP
9198 else
9199 ac_cv_prog_CXXCPP=$CXXCPP
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9202 $as_echo "$CXXCPP" >&6; }
9203 ac_preproc_ok=false
9204 for ac_cxx_preproc_warn_flag in '' yes
9206 # Use a header file that comes with gcc, so configuring glibc
9207 # with a fresh cross-compiler works.
9208 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9209 # <limits.h> exists even on freestanding compilers.
9210 # On the NeXT, cc -E runs the code through the compiler's parser,
9211 # not just through cpp. "Syntax error" is here to catch this case.
9212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213 /* end confdefs.h. */
9214 #ifdef __STDC__
9215 # include <limits.h>
9216 #else
9217 # include <assert.h>
9218 #endif
9219 Syntax error
9220 _ACEOF
9221 if ac_fn_cxx_try_cpp "$LINENO"; then :
9223 else
9224 # Broken: fails on valid input.
9225 continue
9227 rm -f conftest.err conftest.$ac_ext
9229 # OK, works on sane cases. Now check whether nonexistent headers
9230 # can be detected and how.
9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9233 #include <ac_nonexistent.h>
9234 _ACEOF
9235 if ac_fn_cxx_try_cpp "$LINENO"; then :
9236 # Broken: success on invalid input.
9237 continue
9238 else
9239 # Passes both tests.
9240 ac_preproc_ok=:
9241 break
9243 rm -f conftest.err conftest.$ac_ext
9245 done
9246 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9247 rm -f conftest.err conftest.$ac_ext
9248 if $ac_preproc_ok; then :
9250 else
9251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9254 See \`config.log' for more details." >&5
9255 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9256 See \`config.log' for more details." >&2;}; }
9259 ac_ext=cpp
9260 ac_cpp='$CXXCPP $CPPFLAGS'
9261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9266 for ac_header in unordered_map
9267 do :
9268 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9269 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9270 cat >>confdefs.h <<_ACEOF
9271 #define HAVE_UNORDERED_MAP 1
9272 _ACEOF
9275 done
9277 for ac_header in tr1/unordered_map
9278 do :
9279 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9280 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9281 cat >>confdefs.h <<_ACEOF
9282 #define HAVE_TR1_UNORDERED_MAP 1
9283 _ACEOF
9286 done
9288 for ac_header in ext/hash_map
9289 do :
9290 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9291 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9292 cat >>confdefs.h <<_ACEOF
9293 #define HAVE_EXT_HASH_MAP 1
9294 _ACEOF
9297 done
9300 # --------
9301 # Dependency checking.
9302 # --------
9304 rm -rf .tst 2>/dev/null
9305 mkdir .tst 2>/dev/null
9306 if test -d .tst; then
9307 am__leading_dot=.
9308 else
9309 am__leading_dot=_
9311 rmdir .tst 2>/dev/null
9313 DEPDIR="${am__leading_dot}deps"
9315 ac_config_commands="$ac_config_commands depdir"
9318 ac_config_commands="$ac_config_commands gccdepdir"
9321 depcc="$CXX" am_compiler_list=
9323 am_depcomp=$ac_aux_dir/depcomp
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9325 $as_echo_n "checking dependency style of $depcc... " >&6; }
9326 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9327 $as_echo_n "(cached) " >&6
9328 else
9329 if test -f "$am_depcomp"; then
9330 # We make a subdir and do the tests there. Otherwise we can end up
9331 # making bogus files that we don't know about and never remove. For
9332 # instance it was reported that on HP-UX the gcc test will end up
9333 # making a dummy file named `D' -- because `-MD' means `put the output
9334 # in D'.
9335 mkdir conftest.dir
9336 # Copy depcomp to subdir because otherwise we won't find it if we're
9337 # using a relative directory.
9338 cp "$am_depcomp" conftest.dir
9339 cd conftest.dir
9340 # We will build objects and dependencies in a subdirectory because
9341 # it helps to detect inapplicable dependency modes. For instance
9342 # both Tru64's cc and ICC support -MD to output dependencies as a
9343 # side effect of compilation, but ICC will put the dependencies in
9344 # the current directory while Tru64 will put them in the object
9345 # directory.
9346 mkdir sub
9348 am_cv_CXX_dependencies_compiler_type=none
9349 if test "$am_compiler_list" = ""; then
9350 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9352 for depmode in $am_compiler_list; do
9353 if test $depmode = none; then break; fi
9355 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9356 # Setup a source with many dependencies, because some compilers
9357 # like to wrap large dependency lists on column 80 (with \), and
9358 # we should not choose a depcomp mode which is confused by this.
9360 # We need to recreate these files for each test, as the compiler may
9361 # overwrite some of them when testing with obscure command lines.
9362 # This happens at least with the AIX C compiler.
9363 : > sub/conftest.c
9364 for i in 1 2 3 4 5 6; do
9365 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9366 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9367 # Solaris 8's {/usr,}/bin/sh.
9368 touch sub/conftst$i.h
9369 done
9370 echo "include sub/conftest.Po" > confmf
9372 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9373 # mode. It turns out that the SunPro C++ compiler does not properly
9374 # handle `-M -o', and we need to detect this.
9375 depcmd="depmode=$depmode \
9376 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9377 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9378 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9379 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9380 if env $depcmd > conftest.err 2>&1 &&
9381 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9382 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9383 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9384 # icc doesn't choke on unknown options, it will just issue warnings
9385 # or remarks (even with -Werror). So we grep stderr for any message
9386 # that says an option was ignored or not supported.
9387 # When given -MP, icc 7.0 and 7.1 complain thusly:
9388 # icc: Command line warning: ignoring option '-M'; no argument required
9389 # The diagnosis changed in icc 8.0:
9390 # icc: Command line remark: option '-MP' not supported
9391 if (grep 'ignoring option' conftest.err ||
9392 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9393 am_cv_CXX_dependencies_compiler_type=$depmode
9394 $as_echo "$as_me:$LINENO: success" >&5
9395 break
9398 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9399 sed -e 's/^/| /' < conftest.err >&5
9400 done
9402 cd ..
9403 rm -rf conftest.dir
9404 else
9405 am_cv_CXX_dependencies_compiler_type=none
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9410 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9411 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9412 then as_fn_error "no usable dependency style found" "$LINENO" 5
9413 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9418 # --------
9419 # UNSORTED
9420 # --------
9423 # These libraries may be used by collect2.
9424 # We may need a special search path to get them linked.
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9426 $as_echo_n "checking for collect2 libraries... " >&6; }
9427 if test "${gcc_cv_collect2_libs+set}" = set; then :
9428 $as_echo_n "(cached) " >&6
9429 else
9430 save_LIBS="$LIBS"
9431 for libs in '' -lld -lmld \
9432 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9433 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9435 LIBS="$libs"
9436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9437 /* end confdefs.h. */
9439 /* Override any GCC internal prototype to avoid an error.
9440 Use char because int might match the return type of a GCC
9441 builtin and then its argument prototype would still apply. */
9442 #ifdef __cplusplus
9443 extern "C"
9444 #endif
9445 char ldopen ();
9447 main ()
9449 return ldopen ();
9451 return 0;
9453 _ACEOF
9454 if ac_fn_cxx_try_link "$LINENO"; then :
9455 gcc_cv_collect2_libs="$libs"; break
9457 rm -f core conftest.err conftest.$ac_objext \
9458 conftest$ac_exeext conftest.$ac_ext
9459 done
9460 LIBS="$save_LIBS"
9461 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9464 $as_echo "$gcc_cv_collect2_libs" >&6; }
9465 case $gcc_cv_collect2_libs in
9466 "none required") ;;
9467 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9468 esac
9471 # When building Ada code on Alpha, we need exc_resume which is usually in
9472 # -lexc. So test for it.
9473 save_LIBS="$LIBS"
9474 LIBS=
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9476 $as_echo_n "checking for library containing exc_resume... " >&6; }
9477 if test "${ac_cv_search_exc_resume+set}" = set; then :
9478 $as_echo_n "(cached) " >&6
9479 else
9480 ac_func_search_save_LIBS=$LIBS
9481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482 /* end confdefs.h. */
9484 /* Override any GCC internal prototype to avoid an error.
9485 Use char because int might match the return type of a GCC
9486 builtin and then its argument prototype would still apply. */
9487 #ifdef __cplusplus
9488 extern "C"
9489 #endif
9490 char exc_resume ();
9492 main ()
9494 return exc_resume ();
9496 return 0;
9498 _ACEOF
9499 for ac_lib in '' exc; do
9500 if test -z "$ac_lib"; then
9501 ac_res="none required"
9502 else
9503 ac_res=-l$ac_lib
9504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9506 if ac_fn_cxx_try_link "$LINENO"; then :
9507 ac_cv_search_exc_resume=$ac_res
9509 rm -f core conftest.err conftest.$ac_objext \
9510 conftest$ac_exeext
9511 if test "${ac_cv_search_exc_resume+set}" = set; then :
9512 break
9514 done
9515 if test "${ac_cv_search_exc_resume+set}" = set; then :
9517 else
9518 ac_cv_search_exc_resume=no
9520 rm conftest.$ac_ext
9521 LIBS=$ac_func_search_save_LIBS
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9524 $as_echo "$ac_cv_search_exc_resume" >&6; }
9525 ac_res=$ac_cv_search_exc_resume
9526 if test "$ac_res" != no; then :
9527 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9531 GNAT_LIBEXC="$LIBS"
9532 LIBS="$save_LIBS"
9535 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9536 save_LIBS="$LIBS"
9537 LIBS=
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9539 $as_echo_n "checking for library containing kstat_open... " >&6; }
9540 if test "${ac_cv_search_kstat_open+set}" = set; then :
9541 $as_echo_n "(cached) " >&6
9542 else
9543 ac_func_search_save_LIBS=$LIBS
9544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9545 /* end confdefs.h. */
9547 /* Override any GCC internal prototype to avoid an error.
9548 Use char because int might match the return type of a GCC
9549 builtin and then its argument prototype would still apply. */
9550 #ifdef __cplusplus
9551 extern "C"
9552 #endif
9553 char kstat_open ();
9555 main ()
9557 return kstat_open ();
9559 return 0;
9561 _ACEOF
9562 for ac_lib in '' kstat; do
9563 if test -z "$ac_lib"; then
9564 ac_res="none required"
9565 else
9566 ac_res=-l$ac_lib
9567 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9569 if ac_fn_cxx_try_link "$LINENO"; then :
9570 ac_cv_search_kstat_open=$ac_res
9572 rm -f core conftest.err conftest.$ac_objext \
9573 conftest$ac_exeext
9574 if test "${ac_cv_search_kstat_open+set}" = set; then :
9575 break
9577 done
9578 if test "${ac_cv_search_kstat_open+set}" = set; then :
9580 else
9581 ac_cv_search_kstat_open=no
9583 rm conftest.$ac_ext
9584 LIBS=$ac_func_search_save_LIBS
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9587 $as_echo "$ac_cv_search_kstat_open" >&6; }
9588 ac_res=$ac_cv_search_kstat_open
9589 if test "$ac_res" != no; then :
9590 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9594 EXTRA_GCC_LIBS="$LIBS"
9595 LIBS="$save_LIBS"
9598 # Some systems put ldexp and frexp in libm instead of libc; assume
9599 # they're both in the same place. jcf-dump needs them.
9600 save_LIBS="$LIBS"
9601 LIBS=
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9603 $as_echo_n "checking for library containing ldexp... " >&6; }
9604 if test "${ac_cv_search_ldexp+set}" = set; then :
9605 $as_echo_n "(cached) " >&6
9606 else
9607 ac_func_search_save_LIBS=$LIBS
9608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9609 /* end confdefs.h. */
9611 /* Override any GCC internal prototype to avoid an error.
9612 Use char because int might match the return type of a GCC
9613 builtin and then its argument prototype would still apply. */
9614 #ifdef __cplusplus
9615 extern "C"
9616 #endif
9617 char ldexp ();
9619 main ()
9621 return ldexp ();
9623 return 0;
9625 _ACEOF
9626 for ac_lib in '' m; do
9627 if test -z "$ac_lib"; then
9628 ac_res="none required"
9629 else
9630 ac_res=-l$ac_lib
9631 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9633 if ac_fn_cxx_try_link "$LINENO"; then :
9634 ac_cv_search_ldexp=$ac_res
9636 rm -f core conftest.err conftest.$ac_objext \
9637 conftest$ac_exeext
9638 if test "${ac_cv_search_ldexp+set}" = set; then :
9639 break
9641 done
9642 if test "${ac_cv_search_ldexp+set}" = set; then :
9644 else
9645 ac_cv_search_ldexp=no
9647 rm conftest.$ac_ext
9648 LIBS=$ac_func_search_save_LIBS
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9651 $as_echo "$ac_cv_search_ldexp" >&6; }
9652 ac_res=$ac_cv_search_ldexp
9653 if test "$ac_res" != no; then :
9654 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9658 LDEXP_LIB="$LIBS"
9659 LIBS="$save_LIBS"
9662 # Use <inttypes.h> only if it exists,
9663 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9664 # PRId64
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9666 $as_echo_n "checking for inttypes.h... " >&6; }
9667 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9668 $as_echo_n "(cached) " >&6
9669 else
9670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9671 /* end confdefs.h. */
9672 #define __STDC_FORMAT_MACROS
9673 #include <sys/types.h>
9674 #include <inttypes.h>
9676 main ()
9678 intmax_t i = -1;
9679 #ifndef PRId64
9680 choke me
9681 #endif
9683 return 0;
9685 _ACEOF
9686 if ac_fn_cxx_try_compile "$LINENO"; then :
9687 gcc_cv_header_inttypes_h=yes
9688 else
9689 gcc_cv_header_inttypes_h=no
9691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9695 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9696 if test $gcc_cv_header_inttypes_h = yes; then
9698 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9704 for ac_func in times clock kill getrlimit setrlimit atoq \
9705 popen sysconf strsignal getrusage nl_langinfo \
9706 gettimeofday mbstowcs wcswidth mmap setlocale \
9707 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
9708 do :
9709 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9710 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9711 eval as_val=\$$as_ac_var
9712 if test "x$as_val" = x""yes; then :
9713 cat >>confdefs.h <<_ACEOF
9714 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9715 _ACEOF
9718 done
9721 if test x$ac_cv_func_mbstowcs = xyes; then
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9723 $as_echo_n "checking whether mbstowcs works... " >&6; }
9724 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9725 $as_echo_n "(cached) " >&6
9726 else
9727 if test "$cross_compiling" = yes; then :
9728 gcc_cv_func_mbstowcs_works=yes
9729 else
9730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9731 /* end confdefs.h. */
9732 #include <stdlib.h>
9733 int main()
9735 mbstowcs(0, "", 0);
9736 return 0;
9738 _ACEOF
9739 if ac_fn_cxx_try_run "$LINENO"; then :
9740 gcc_cv_func_mbstowcs_works=yes
9741 else
9742 gcc_cv_func_mbstowcs_works=no
9744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9745 conftest.$ac_objext conftest.beam conftest.$ac_ext
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9750 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9751 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9753 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9758 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9759 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9761 else
9763 cat >>confdefs.h <<_ACEOF
9764 #define ssize_t int
9765 _ACEOF
9769 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9770 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9772 else
9774 cat >>confdefs.h <<_ACEOF
9775 #define caddr_t char *
9776 _ACEOF
9782 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9783 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9784 gcc_header_sys_mman_h=yes
9785 else
9786 gcc_header_sys_mman_h=no
9789 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9790 if test "x$ac_cv_func_mmap" = x""yes; then :
9791 gcc_func_mmap=yes
9792 else
9793 gcc_func_mmap=no
9796 if test "$gcc_header_sys_mman_h" != yes \
9797 || test "$gcc_func_mmap" != yes; then
9798 gcc_cv_func_mmap_file=no
9799 gcc_cv_func_mmap_dev_zero=no
9800 gcc_cv_func_mmap_anon=no
9801 else
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9803 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9804 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9805 $as_echo_n "(cached) " >&6
9806 else
9807 # Add a system to this blacklist if
9808 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9809 # memory area containing the same data that you'd get if you applied
9810 # read() to the same fd. The only system known to have a problem here
9811 # is VMS, where text files have record structure.
9812 case "$host_os" in
9813 *vms* | ultrix*)
9814 gcc_cv_func_mmap_file=no ;;
9816 gcc_cv_func_mmap_file=yes;;
9817 esac
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9820 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9822 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9823 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9824 $as_echo_n "(cached) " >&6
9825 else
9826 # Add a system to this blacklist if it has mmap() but /dev/zero
9827 # does not exist, or if mmapping /dev/zero does not give anonymous
9828 # zeroed pages with both the following properties:
9829 # 1. If you map N consecutive pages in with one call, and then
9830 # unmap any subset of those pages, the pages that were not
9831 # explicitly unmapped remain accessible.
9832 # 2. If you map two adjacent blocks of memory and then unmap them
9833 # both at once, they must both go away.
9834 # Systems known to be in this category are Windows (all variants),
9835 # VMS, and Darwin.
9836 case "$host_os" in
9837 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9838 gcc_cv_func_mmap_dev_zero=no ;;
9840 gcc_cv_func_mmap_dev_zero=yes;;
9841 esac
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9844 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9846 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9848 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9849 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9850 $as_echo_n "(cached) " >&6
9851 else
9852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9853 /* end confdefs.h. */
9854 #include <sys/types.h>
9855 #include <sys/mman.h>
9856 #include <unistd.h>
9858 #ifndef MAP_ANONYMOUS
9859 #define MAP_ANONYMOUS MAP_ANON
9860 #endif
9863 main ()
9865 int n = MAP_ANONYMOUS;
9867 return 0;
9869 _ACEOF
9870 if ac_fn_cxx_try_compile "$LINENO"; then :
9871 gcc_cv_decl_map_anon=yes
9872 else
9873 gcc_cv_decl_map_anon=no
9875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9878 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9880 if test $gcc_cv_decl_map_anon = no; then
9881 gcc_cv_func_mmap_anon=no
9882 else
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9884 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9885 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9886 $as_echo_n "(cached) " >&6
9887 else
9888 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9889 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9890 # doesn't give anonymous zeroed pages with the same properties listed
9891 # above for use of /dev/zero.
9892 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9893 case "$host_os" in
9894 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9895 gcc_cv_func_mmap_anon=no ;;
9897 gcc_cv_func_mmap_anon=yes;;
9898 esac
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9901 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9905 if test $gcc_cv_func_mmap_file = yes; then
9907 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9910 if test $gcc_cv_func_mmap_dev_zero = yes; then
9912 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9915 if test $gcc_cv_func_mmap_anon = yes; then
9917 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9922 case "${host}" in
9923 *-*-*vms*)
9924 # Under VMS, vfork works very differently than on Unix. The standard test
9925 # won't work, and it isn't easily adaptable. It makes more sense to
9926 # just force it.
9927 ac_cv_func_vfork_works=yes
9929 esac
9930 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9931 if test "x$ac_cv_type_pid_t" = x""yes; then :
9933 else
9935 cat >>confdefs.h <<_ACEOF
9936 #define pid_t int
9937 _ACEOF
9941 for ac_header in vfork.h
9942 do :
9943 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9944 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9945 cat >>confdefs.h <<_ACEOF
9946 #define HAVE_VFORK_H 1
9947 _ACEOF
9950 done
9952 for ac_func in fork vfork
9953 do :
9954 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9955 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9956 eval as_val=\$$as_ac_var
9957 if test "x$as_val" = x""yes; then :
9958 cat >>confdefs.h <<_ACEOF
9959 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9960 _ACEOF
9963 done
9965 if test "x$ac_cv_func_fork" = xyes; then
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9967 $as_echo_n "checking for working fork... " >&6; }
9968 if test "${ac_cv_func_fork_works+set}" = set; then :
9969 $as_echo_n "(cached) " >&6
9970 else
9971 if test "$cross_compiling" = yes; then :
9972 ac_cv_func_fork_works=cross
9973 else
9974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9975 /* end confdefs.h. */
9976 $ac_includes_default
9978 main ()
9981 /* By Ruediger Kuhlmann. */
9982 return fork () < 0;
9985 return 0;
9987 _ACEOF
9988 if ac_fn_cxx_try_run "$LINENO"; then :
9989 ac_cv_func_fork_works=yes
9990 else
9991 ac_cv_func_fork_works=no
9993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9994 conftest.$ac_objext conftest.beam conftest.$ac_ext
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9999 $as_echo "$ac_cv_func_fork_works" >&6; }
10001 else
10002 ac_cv_func_fork_works=$ac_cv_func_fork
10004 if test "x$ac_cv_func_fork_works" = xcross; then
10005 case $host in
10006 *-*-amigaos* | *-*-msdosdjgpp*)
10007 # Override, as these systems have only a dummy fork() stub
10008 ac_cv_func_fork_works=no
10011 ac_cv_func_fork_works=yes
10013 esac
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10015 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10017 ac_cv_func_vfork_works=$ac_cv_func_vfork
10018 if test "x$ac_cv_func_vfork" = xyes; then
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10020 $as_echo_n "checking for working vfork... " >&6; }
10021 if test "${ac_cv_func_vfork_works+set}" = set; then :
10022 $as_echo_n "(cached) " >&6
10023 else
10024 if test "$cross_compiling" = yes; then :
10025 ac_cv_func_vfork_works=cross
10026 else
10027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10028 /* end confdefs.h. */
10029 /* Thanks to Paul Eggert for this test. */
10030 $ac_includes_default
10031 #include <sys/wait.h>
10032 #ifdef HAVE_VFORK_H
10033 # include <vfork.h>
10034 #endif
10035 /* On some sparc systems, changes by the child to local and incoming
10036 argument registers are propagated back to the parent. The compiler
10037 is told about this with #include <vfork.h>, but some compilers
10038 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10039 static variable whose address is put into a register that is
10040 clobbered by the vfork. */
10041 static void
10042 #ifdef __cplusplus
10043 sparc_address_test (int arg)
10044 # else
10045 sparc_address_test (arg) int arg;
10046 #endif
10048 static pid_t child;
10049 if (!child) {
10050 child = vfork ();
10051 if (child < 0) {
10052 perror ("vfork");
10053 _exit(2);
10055 if (!child) {
10056 arg = getpid();
10057 write(-1, "", 0);
10058 _exit (arg);
10064 main ()
10066 pid_t parent = getpid ();
10067 pid_t child;
10069 sparc_address_test (0);
10071 child = vfork ();
10073 if (child == 0) {
10074 /* Here is another test for sparc vfork register problems. This
10075 test uses lots of local variables, at least as many local
10076 variables as main has allocated so far including compiler
10077 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10078 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10079 reuse the register of parent for one of the local variables,
10080 since it will think that parent can't possibly be used any more
10081 in this routine. Assigning to the local variable will thus
10082 munge parent in the parent process. */
10083 pid_t
10084 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10085 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10086 /* Convince the compiler that p..p7 are live; otherwise, it might
10087 use the same hardware register for all 8 local variables. */
10088 if (p != p1 || p != p2 || p != p3 || p != p4
10089 || p != p5 || p != p6 || p != p7)
10090 _exit(1);
10092 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10093 from child file descriptors. If the child closes a descriptor
10094 before it execs or exits, this munges the parent's descriptor
10095 as well. Test for this by closing stdout in the child. */
10096 _exit(close(fileno(stdout)) != 0);
10097 } else {
10098 int status;
10099 struct stat st;
10101 while (wait(&status) != child)
10103 return (
10104 /* Was there some problem with vforking? */
10105 child < 0
10107 /* Did the child fail? (This shouldn't happen.) */
10108 || status
10110 /* Did the vfork/compiler bug occur? */
10111 || parent != getpid()
10113 /* Did the file descriptor bug occur? */
10114 || fstat(fileno(stdout), &st) != 0
10118 _ACEOF
10119 if ac_fn_cxx_try_run "$LINENO"; then :
10120 ac_cv_func_vfork_works=yes
10121 else
10122 ac_cv_func_vfork_works=no
10124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10125 conftest.$ac_objext conftest.beam conftest.$ac_ext
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10130 $as_echo "$ac_cv_func_vfork_works" >&6; }
10133 if test "x$ac_cv_func_fork_works" = xcross; then
10134 ac_cv_func_vfork_works=$ac_cv_func_vfork
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10136 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10139 if test "x$ac_cv_func_vfork_works" = xyes; then
10141 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10143 else
10145 $as_echo "#define vfork fork" >>confdefs.h
10148 if test "x$ac_cv_func_fork_works" = xyes; then
10150 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10156 if test "X$prefix" = "XNONE"; then
10157 acl_final_prefix="$ac_default_prefix"
10158 else
10159 acl_final_prefix="$prefix"
10161 if test "X$exec_prefix" = "XNONE"; then
10162 acl_final_exec_prefix='${prefix}'
10163 else
10164 acl_final_exec_prefix="$exec_prefix"
10166 acl_save_prefix="$prefix"
10167 prefix="$acl_final_prefix"
10168 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10169 prefix="$acl_save_prefix"
10172 # Check whether --with-gnu-ld was given.
10173 if test "${with_gnu_ld+set}" = set; then :
10174 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10175 else
10176 with_gnu_ld=no
10179 # Prepare PATH_SEPARATOR.
10180 # The user is always right.
10181 if test "${PATH_SEPARATOR+set}" != set; then
10182 echo "#! /bin/sh" >conf$$.sh
10183 echo "exit 0" >>conf$$.sh
10184 chmod +x conf$$.sh
10185 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10186 PATH_SEPARATOR=';'
10187 else
10188 PATH_SEPARATOR=:
10190 rm -f conf$$.sh
10192 ac_prog=ld
10193 if test "$GCC" = yes; then
10194 # Check if gcc -print-prog-name=ld gives a path.
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10196 $as_echo_n "checking for ld used by GCC... " >&6; }
10197 case $host in
10198 *-*-mingw*)
10199 # gcc leaves a trailing carriage return which upsets mingw
10200 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10202 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10203 esac
10204 case $ac_prog in
10205 # Accept absolute paths.
10206 [\\/]* | [A-Za-z]:[\\/]*)
10207 re_direlt='/[^/][^/]*/\.\./'
10208 # Canonicalize the path of ld
10209 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10210 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10211 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10212 done
10213 test -z "$LD" && LD="$ac_prog"
10216 # If it fails, then pretend we aren't using GCC.
10217 ac_prog=ld
10220 # If it is relative, then search for the first ld in PATH.
10221 with_gnu_ld=unknown
10223 esac
10224 elif test "$with_gnu_ld" = yes; then
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10226 $as_echo_n "checking for GNU ld... " >&6; }
10227 else
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10229 $as_echo_n "checking for non-GNU ld... " >&6; }
10231 if test "${acl_cv_path_LD+set}" = set; then :
10232 $as_echo_n "(cached) " >&6
10233 else
10234 if test -z "$LD"; then
10235 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10236 for ac_dir in $PATH; do
10237 test -z "$ac_dir" && ac_dir=.
10238 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10239 acl_cv_path_LD="$ac_dir/$ac_prog"
10240 # Check to see if the program is GNU ld. I'd rather use --version,
10241 # but apparently some GNU ld's only accept -v.
10242 # Break only if it was the GNU/non-GNU ld that we prefer.
10243 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10244 test "$with_gnu_ld" != no && break
10245 else
10246 test "$with_gnu_ld" != yes && break
10249 done
10250 IFS="$ac_save_ifs"
10251 else
10252 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10256 LD="$acl_cv_path_LD"
10257 if test -n "$LD"; then
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10259 $as_echo "$LD" >&6; }
10260 else
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10262 $as_echo "no" >&6; }
10264 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10266 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10267 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10268 $as_echo_n "(cached) " >&6
10269 else
10270 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10271 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10272 acl_cv_prog_gnu_ld=yes
10273 else
10274 acl_cv_prog_gnu_ld=no
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10278 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10279 with_gnu_ld=$acl_cv_prog_gnu_ld
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10284 $as_echo_n "checking for shared library run path origin... " >&6; }
10285 if test "${acl_cv_rpath+set}" = set; then :
10286 $as_echo_n "(cached) " >&6
10287 else
10289 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10290 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10291 . ./conftest.sh
10292 rm -f ./conftest.sh
10293 acl_cv_rpath=done
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10297 $as_echo "$acl_cv_rpath" >&6; }
10298 wl="$acl_cv_wl"
10299 libext="$acl_cv_libext"
10300 shlibext="$acl_cv_shlibext"
10301 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10302 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10303 hardcode_direct="$acl_cv_hardcode_direct"
10304 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10305 # Check whether --enable-rpath was given.
10306 if test "${enable_rpath+set}" = set; then :
10307 enableval=$enable_rpath; :
10308 else
10309 enable_rpath=yes
10319 use_additional=yes
10321 acl_save_prefix="$prefix"
10322 prefix="$acl_final_prefix"
10323 acl_save_exec_prefix="$exec_prefix"
10324 exec_prefix="$acl_final_exec_prefix"
10326 eval additional_includedir=\"$includedir\"
10327 eval additional_libdir=\"$libdir\"
10329 exec_prefix="$acl_save_exec_prefix"
10330 prefix="$acl_save_prefix"
10333 # Check whether --with-libiconv-prefix was given.
10334 if test "${with_libiconv_prefix+set}" = set; then :
10335 withval=$with_libiconv_prefix;
10336 if test "X$withval" = "Xno"; then
10337 use_additional=no
10338 else
10339 if test "X$withval" = "X"; then
10341 acl_save_prefix="$prefix"
10342 prefix="$acl_final_prefix"
10343 acl_save_exec_prefix="$exec_prefix"
10344 exec_prefix="$acl_final_exec_prefix"
10346 eval additional_includedir=\"$includedir\"
10347 eval additional_libdir=\"$libdir\"
10349 exec_prefix="$acl_save_exec_prefix"
10350 prefix="$acl_save_prefix"
10352 else
10353 additional_includedir="$withval/include"
10354 additional_libdir="$withval/lib"
10360 LIBICONV=
10361 LTLIBICONV=
10362 INCICONV=
10363 rpathdirs=
10364 ltrpathdirs=
10365 names_already_handled=
10366 names_next_round='iconv '
10367 while test -n "$names_next_round"; do
10368 names_this_round="$names_next_round"
10369 names_next_round=
10370 for name in $names_this_round; do
10371 already_handled=
10372 for n in $names_already_handled; do
10373 if test "$n" = "$name"; then
10374 already_handled=yes
10375 break
10377 done
10378 if test -z "$already_handled"; then
10379 names_already_handled="$names_already_handled $name"
10380 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10381 eval value=\"\$HAVE_LIB$uppername\"
10382 if test -n "$value"; then
10383 if test "$value" = yes; then
10384 eval value=\"\$LIB$uppername\"
10385 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10386 eval value=\"\$LTLIB$uppername\"
10387 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10388 else
10391 else
10392 found_dir=
10393 found_la=
10394 found_so=
10395 found_a=
10396 if test $use_additional = yes; then
10397 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10398 found_dir="$additional_libdir"
10399 found_so="$additional_libdir/lib$name.$shlibext"
10400 if test -f "$additional_libdir/lib$name.la"; then
10401 found_la="$additional_libdir/lib$name.la"
10403 else
10404 if test -f "$additional_libdir/lib$name.$libext"; then
10405 found_dir="$additional_libdir"
10406 found_a="$additional_libdir/lib$name.$libext"
10407 if test -f "$additional_libdir/lib$name.la"; then
10408 found_la="$additional_libdir/lib$name.la"
10413 if test "X$found_dir" = "X"; then
10414 for x in $LDFLAGS $LTLIBICONV; do
10416 acl_save_prefix="$prefix"
10417 prefix="$acl_final_prefix"
10418 acl_save_exec_prefix="$exec_prefix"
10419 exec_prefix="$acl_final_exec_prefix"
10420 eval x=\"$x\"
10421 exec_prefix="$acl_save_exec_prefix"
10422 prefix="$acl_save_prefix"
10424 case "$x" in
10425 -L*)
10426 dir=`echo "X$x" | sed -e 's/^X-L//'`
10427 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10428 found_dir="$dir"
10429 found_so="$dir/lib$name.$shlibext"
10430 if test -f "$dir/lib$name.la"; then
10431 found_la="$dir/lib$name.la"
10433 else
10434 if test -f "$dir/lib$name.$libext"; then
10435 found_dir="$dir"
10436 found_a="$dir/lib$name.$libext"
10437 if test -f "$dir/lib$name.la"; then
10438 found_la="$dir/lib$name.la"
10443 esac
10444 if test "X$found_dir" != "X"; then
10445 break
10447 done
10449 if test "X$found_dir" != "X"; then
10450 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10451 if test "X$found_so" != "X"; then
10452 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10453 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10454 else
10455 haveit=
10456 for x in $ltrpathdirs; do
10457 if test "X$x" = "X$found_dir"; then
10458 haveit=yes
10459 break
10461 done
10462 if test -z "$haveit"; then
10463 ltrpathdirs="$ltrpathdirs $found_dir"
10465 if test "$hardcode_direct" = yes; then
10466 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10467 else
10468 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10469 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10470 haveit=
10471 for x in $rpathdirs; do
10472 if test "X$x" = "X$found_dir"; then
10473 haveit=yes
10474 break
10476 done
10477 if test -z "$haveit"; then
10478 rpathdirs="$rpathdirs $found_dir"
10480 else
10481 haveit=
10482 for x in $LDFLAGS $LIBICONV; do
10484 acl_save_prefix="$prefix"
10485 prefix="$acl_final_prefix"
10486 acl_save_exec_prefix="$exec_prefix"
10487 exec_prefix="$acl_final_exec_prefix"
10488 eval x=\"$x\"
10489 exec_prefix="$acl_save_exec_prefix"
10490 prefix="$acl_save_prefix"
10492 if test "X$x" = "X-L$found_dir"; then
10493 haveit=yes
10494 break
10496 done
10497 if test -z "$haveit"; then
10498 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10500 if test "$hardcode_minus_L" != no; then
10501 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10502 else
10503 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10508 else
10509 if test "X$found_a" != "X"; then
10510 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10511 else
10512 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10515 additional_includedir=
10516 case "$found_dir" in
10517 */lib | */lib/)
10518 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10519 additional_includedir="$basedir/include"
10521 esac
10522 if test "X$additional_includedir" != "X"; then
10523 if test "X$additional_includedir" != "X/usr/include"; then
10524 haveit=
10525 if test "X$additional_includedir" = "X/usr/local/include"; then
10526 if test -n "$GCC"; then
10527 case $host_os in
10528 linux*) haveit=yes;;
10529 esac
10532 if test -z "$haveit"; then
10533 for x in $CPPFLAGS $INCICONV; do
10535 acl_save_prefix="$prefix"
10536 prefix="$acl_final_prefix"
10537 acl_save_exec_prefix="$exec_prefix"
10538 exec_prefix="$acl_final_exec_prefix"
10539 eval x=\"$x\"
10540 exec_prefix="$acl_save_exec_prefix"
10541 prefix="$acl_save_prefix"
10543 if test "X$x" = "X-I$additional_includedir"; then
10544 haveit=yes
10545 break
10547 done
10548 if test -z "$haveit"; then
10549 if test -d "$additional_includedir"; then
10550 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10556 if test -n "$found_la"; then
10557 save_libdir="$libdir"
10558 case "$found_la" in
10559 */* | *\\*) . "$found_la" ;;
10560 *) . "./$found_la" ;;
10561 esac
10562 libdir="$save_libdir"
10563 for dep in $dependency_libs; do
10564 case "$dep" in
10565 -L*)
10566 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10567 if test "X$additional_libdir" != "X/usr/lib"; then
10568 haveit=
10569 if test "X$additional_libdir" = "X/usr/local/lib"; then
10570 if test -n "$GCC"; then
10571 case $host_os in
10572 linux*) haveit=yes;;
10573 esac
10576 if test -z "$haveit"; then
10577 haveit=
10578 for x in $LDFLAGS $LIBICONV; do
10580 acl_save_prefix="$prefix"
10581 prefix="$acl_final_prefix"
10582 acl_save_exec_prefix="$exec_prefix"
10583 exec_prefix="$acl_final_exec_prefix"
10584 eval x=\"$x\"
10585 exec_prefix="$acl_save_exec_prefix"
10586 prefix="$acl_save_prefix"
10588 if test "X$x" = "X-L$additional_libdir"; then
10589 haveit=yes
10590 break
10592 done
10593 if test -z "$haveit"; then
10594 if test -d "$additional_libdir"; then
10595 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10598 haveit=
10599 for x in $LDFLAGS $LTLIBICONV; do
10601 acl_save_prefix="$prefix"
10602 prefix="$acl_final_prefix"
10603 acl_save_exec_prefix="$exec_prefix"
10604 exec_prefix="$acl_final_exec_prefix"
10605 eval x=\"$x\"
10606 exec_prefix="$acl_save_exec_prefix"
10607 prefix="$acl_save_prefix"
10609 if test "X$x" = "X-L$additional_libdir"; then
10610 haveit=yes
10611 break
10613 done
10614 if test -z "$haveit"; then
10615 if test -d "$additional_libdir"; then
10616 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10622 -R*)
10623 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10624 if test "$enable_rpath" != no; then
10625 haveit=
10626 for x in $rpathdirs; do
10627 if test "X$x" = "X$dir"; then
10628 haveit=yes
10629 break
10631 done
10632 if test -z "$haveit"; then
10633 rpathdirs="$rpathdirs $dir"
10635 haveit=
10636 for x in $ltrpathdirs; do
10637 if test "X$x" = "X$dir"; then
10638 haveit=yes
10639 break
10641 done
10642 if test -z "$haveit"; then
10643 ltrpathdirs="$ltrpathdirs $dir"
10647 -l*)
10648 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10650 *.la)
10651 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10654 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10655 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10657 esac
10658 done
10660 else
10661 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10662 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10666 done
10667 done
10668 if test "X$rpathdirs" != "X"; then
10669 if test -n "$hardcode_libdir_separator"; then
10670 alldirs=
10671 for found_dir in $rpathdirs; do
10672 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10673 done
10674 acl_save_libdir="$libdir"
10675 libdir="$alldirs"
10676 eval flag=\"$hardcode_libdir_flag_spec\"
10677 libdir="$acl_save_libdir"
10678 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10679 else
10680 for found_dir in $rpathdirs; do
10681 acl_save_libdir="$libdir"
10682 libdir="$found_dir"
10683 eval flag=\"$hardcode_libdir_flag_spec\"
10684 libdir="$acl_save_libdir"
10685 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10686 done
10689 if test "X$ltrpathdirs" != "X"; then
10690 for found_dir in $ltrpathdirs; do
10691 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10692 done
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10702 $as_echo_n "checking for iconv... " >&6; }
10703 if test "${am_cv_func_iconv+set}" = set; then :
10704 $as_echo_n "(cached) " >&6
10705 else
10707 am_cv_func_iconv="no, consider installing GNU libiconv"
10708 am_cv_lib_iconv=no
10709 am_save_CPPFLAGS="$CPPFLAGS"
10710 CPPFLAGS="$CPPFLAGS $INCICONV"
10711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712 /* end confdefs.h. */
10713 #include <stdlib.h>
10714 #include <iconv.h>
10716 main ()
10718 iconv_t cd = iconv_open("","");
10719 iconv(cd,NULL,NULL,NULL,NULL);
10720 iconv_close(cd);
10722 return 0;
10724 _ACEOF
10725 if ac_fn_cxx_try_link "$LINENO"; then :
10726 am_cv_func_iconv=yes
10728 rm -f core conftest.err conftest.$ac_objext \
10729 conftest$ac_exeext conftest.$ac_ext
10730 CPPFLAGS="$am_save_CPPFLAGS"
10732 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10733 for _libs in .libs _libs; do
10734 am_save_CPPFLAGS="$CPPFLAGS"
10735 am_save_LIBS="$LIBS"
10736 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10737 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10739 /* end confdefs.h. */
10740 #include <stdlib.h>
10741 #include <iconv.h>
10743 main ()
10745 iconv_t cd = iconv_open("","");
10746 iconv(cd,NULL,NULL,NULL,NULL);
10747 iconv_close(cd);
10749 return 0;
10751 _ACEOF
10752 if ac_fn_cxx_try_link "$LINENO"; then :
10753 INCICONV="-I../libiconv/include"
10754 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10755 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10756 am_cv_lib_iconv=yes
10757 am_cv_func_iconv=yes
10759 rm -f core conftest.err conftest.$ac_objext \
10760 conftest$ac_exeext conftest.$ac_ext
10761 CPPFLAGS="$am_save_CPPFLAGS"
10762 LIBS="$am_save_LIBS"
10763 if test "$am_cv_func_iconv" = "yes"; then
10764 break
10766 done
10769 if test "$am_cv_func_iconv" != yes; then
10770 am_save_CPPFLAGS="$CPPFLAGS"
10771 am_save_LIBS="$LIBS"
10772 CPPFLAGS="$LIBS $INCICONV"
10773 LIBS="$LIBS $LIBICONV"
10774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10775 /* end confdefs.h. */
10776 #include <stdlib.h>
10777 #include <iconv.h>
10779 main ()
10781 iconv_t cd = iconv_open("","");
10782 iconv(cd,NULL,NULL,NULL,NULL);
10783 iconv_close(cd);
10785 return 0;
10787 _ACEOF
10788 if ac_fn_cxx_try_link "$LINENO"; then :
10789 am_cv_lib_iconv=yes
10790 am_cv_func_iconv=yes
10792 rm -f core conftest.err conftest.$ac_objext \
10793 conftest$ac_exeext conftest.$ac_ext
10794 CPPFLAGS="$am_save_CPPFLAGS"
10795 LIBS="$am_save_LIBS"
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10800 $as_echo "$am_cv_func_iconv" >&6; }
10801 if test "$am_cv_func_iconv" = yes; then
10803 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10806 if test "$am_cv_lib_iconv" = yes; then
10808 for element in $INCICONV; do
10809 haveit=
10810 for x in $CPPFLAGS; do
10812 acl_save_prefix="$prefix"
10813 prefix="$acl_final_prefix"
10814 acl_save_exec_prefix="$exec_prefix"
10815 exec_prefix="$acl_final_exec_prefix"
10816 eval x=\"$x\"
10817 exec_prefix="$acl_save_exec_prefix"
10818 prefix="$acl_save_prefix"
10820 if test "X$x" = "X$element"; then
10821 haveit=yes
10822 break
10824 done
10825 if test -z "$haveit"; then
10826 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10828 done
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10831 $as_echo_n "checking how to link with libiconv... " >&6; }
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10833 $as_echo "$LIBICONV" >&6; }
10834 else
10835 LIBICONV=
10836 LTLIBICONV=
10841 if test "$am_cv_func_iconv" = yes; then
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10843 $as_echo_n "checking for iconv declaration... " >&6; }
10844 if test "${am_cv_proto_iconv+set}" = set; then :
10845 $as_echo_n "(cached) " >&6
10846 else
10848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10849 /* end confdefs.h. */
10851 #include <stdlib.h>
10852 #include <iconv.h>
10853 extern
10854 #ifdef __cplusplus
10856 #endif
10857 #if defined(__STDC__) || defined(__cplusplus)
10858 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10859 #else
10860 size_t iconv();
10861 #endif
10864 main ()
10868 return 0;
10870 _ACEOF
10871 if ac_fn_cxx_try_compile "$LINENO"; then :
10872 am_cv_proto_iconv_arg1=""
10873 else
10874 am_cv_proto_iconv_arg1="const"
10876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10877 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);"
10880 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10882 }$am_cv_proto_iconv" >&5
10883 $as_echo "${ac_t:-
10884 }$am_cv_proto_iconv" >&6; }
10886 cat >>confdefs.h <<_ACEOF
10887 #define ICONV_CONST $am_cv_proto_iconv_arg1
10888 _ACEOF
10893 # Until we have in-tree GNU iconv:
10894 LIBICONV_DEP=
10895 if test -f "$LTLIBICONV"; then
10896 LIBICONV_DEP=$LTLIBICONV
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10902 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10903 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10904 $as_echo_n "(cached) " >&6
10905 else
10906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10907 /* end confdefs.h. */
10908 #include <locale.h>
10910 main ()
10912 return LC_MESSAGES
10914 return 0;
10916 _ACEOF
10917 if ac_fn_cxx_try_link "$LINENO"; then :
10918 am_cv_val_LC_MESSAGES=yes
10919 else
10920 am_cv_val_LC_MESSAGES=no
10922 rm -f core conftest.err conftest.$ac_objext \
10923 conftest$ac_exeext conftest.$ac_ext
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10926 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10927 if test $am_cv_val_LC_MESSAGES = yes; then
10929 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10936 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10937 if test "${am_cv_langinfo_codeset+set}" = set; then :
10938 $as_echo_n "(cached) " >&6
10939 else
10940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10941 /* end confdefs.h. */
10942 #include <langinfo.h>
10944 main ()
10946 char* cs = nl_langinfo(CODESET);
10948 return 0;
10950 _ACEOF
10951 if ac_fn_cxx_try_link "$LINENO"; then :
10952 am_cv_langinfo_codeset=yes
10953 else
10954 am_cv_langinfo_codeset=no
10956 rm -f core conftest.err conftest.$ac_objext \
10957 conftest$ac_exeext conftest.$ac_ext
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10961 $as_echo "$am_cv_langinfo_codeset" >&6; }
10962 if test $am_cv_langinfo_codeset = yes; then
10964 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10969 # We will need to find libiberty.h and ansidecl.h
10970 saved_CFLAGS="$CFLAGS"
10971 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10972 saved_CXXFLAGS="$CXXFLAGS"
10973 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10975 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10976 # normal autoconf function for these. But force definition of
10977 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10978 # basename handling in libiberty.h.
10979 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10980 #undef HAVE_DECL_BASENAME
10981 #define HAVE_DECL_BASENAME 1
10982 #include \"ansidecl.h\"
10983 #include \"system.h\"
10985 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10986 ac_have_decl=1
10987 else
10988 ac_have_decl=0
10991 cat >>confdefs.h <<_ACEOF
10992 #define HAVE_DECL_BASENAME $ac_have_decl
10993 _ACEOF
10994 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10995 #undef HAVE_DECL_BASENAME
10996 #define HAVE_DECL_BASENAME 1
10997 #include \"ansidecl.h\"
10998 #include \"system.h\"
11000 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
11001 ac_have_decl=1
11002 else
11003 ac_have_decl=0
11006 cat >>confdefs.h <<_ACEOF
11007 #define HAVE_DECL_STRSTR $ac_have_decl
11008 _ACEOF
11011 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11012 madvise stpcpy strnlen strsignal strverscmp \
11013 strtol strtoul strtoll strtoull setenv unsetenv \
11014 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11015 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
11017 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11019 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11020 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11021 $as_echo_n "(cached) " >&6
11022 else
11023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11024 /* end confdefs.h. */
11025 #undef $ac_tr_decl
11026 #define $ac_tr_decl 1
11028 #include "ansidecl.h"
11029 #include "system.h"
11032 main ()
11034 #ifndef $ac_func
11035 char *(*pfn) = (char *(*)) $ac_func ;
11036 #endif
11038 return 0;
11040 _ACEOF
11041 if ac_fn_cxx_try_compile "$LINENO"; then :
11042 eval "gcc_cv_have_decl_$ac_func=yes"
11043 else
11044 eval "gcc_cv_have_decl_$ac_func=no"
11046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11049 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11051 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11052 #define $ac_tr_decl 1
11053 _ACEOF
11055 else
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11057 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11058 #define $ac_tr_decl 0
11059 _ACEOF
11063 done
11066 for ac_func in getrlimit setrlimit getrusage
11068 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11070 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11071 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11072 $as_echo_n "(cached) " >&6
11073 else
11074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11075 /* end confdefs.h. */
11076 #undef $ac_tr_decl
11077 #define $ac_tr_decl 1
11079 #include "ansidecl.h"
11080 #include "system.h"
11081 #ifdef HAVE_SYS_RESOURCE_H
11082 #include <sys/resource.h>
11083 #endif
11087 main ()
11089 #ifndef $ac_func
11090 char *(*pfn) = (char *(*)) $ac_func ;
11091 #endif
11093 return 0;
11095 _ACEOF
11096 if ac_fn_cxx_try_compile "$LINENO"; then :
11097 eval "gcc_cv_have_decl_$ac_func=yes"
11098 else
11099 eval "gcc_cv_have_decl_$ac_func=no"
11101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11104 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11106 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11107 #define $ac_tr_decl 1
11108 _ACEOF
11110 else
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11112 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11113 #define $ac_tr_decl 0
11114 _ACEOF
11118 done
11121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11122 /* end confdefs.h. */
11124 #include "ansidecl.h"
11125 #include "system.h"
11126 #ifdef HAVE_SYS_RESOURCE_H
11127 #include <sys/resource.h>
11128 #endif
11131 main ()
11133 rlim_t l = 0;
11135 return 0;
11137 _ACEOF
11138 if ac_fn_cxx_try_compile "$LINENO"; then :
11140 else
11142 $as_echo "#define rlim_t long" >>confdefs.h
11145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11147 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11148 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11149 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11150 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11151 for ac_func in ldgetname
11153 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11155 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11156 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11157 $as_echo_n "(cached) " >&6
11158 else
11159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11160 /* end confdefs.h. */
11161 #undef $ac_tr_decl
11162 #define $ac_tr_decl 1
11164 #include "ansidecl.h"
11165 #include "system.h"
11166 #ifdef HAVE_LDFCN_H
11167 #undef FREAD
11168 #undef FWRITE
11169 #include <ldfcn.h>
11170 #endif
11174 main ()
11176 #ifndef $ac_func
11177 char *(*pfn) = (char *(*)) $ac_func ;
11178 #endif
11180 return 0;
11182 _ACEOF
11183 if ac_fn_cxx_try_compile "$LINENO"; then :
11184 eval "gcc_cv_have_decl_$ac_func=yes"
11185 else
11186 eval "gcc_cv_have_decl_$ac_func=no"
11188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11191 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11193 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11194 #define $ac_tr_decl 1
11195 _ACEOF
11197 else
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11199 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11200 #define $ac_tr_decl 0
11201 _ACEOF
11205 done
11208 for ac_func in times
11210 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11212 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11213 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11214 $as_echo_n "(cached) " >&6
11215 else
11216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11217 /* end confdefs.h. */
11218 #undef $ac_tr_decl
11219 #define $ac_tr_decl 1
11221 #include "ansidecl.h"
11222 #include "system.h"
11223 #ifdef HAVE_SYS_TIMES_H
11224 #include <sys/times.h>
11225 #endif
11229 main ()
11231 #ifndef $ac_func
11232 char *(*pfn) = (char *(*)) $ac_func ;
11233 #endif
11235 return 0;
11237 _ACEOF
11238 if ac_fn_cxx_try_compile "$LINENO"; then :
11239 eval "gcc_cv_have_decl_$ac_func=yes"
11240 else
11241 eval "gcc_cv_have_decl_$ac_func=no"
11243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11246 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11248 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11249 #define $ac_tr_decl 1
11250 _ACEOF
11252 else
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11255 #define $ac_tr_decl 0
11256 _ACEOF
11260 done
11263 for ac_func in sigaltstack
11265 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11267 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11268 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11269 $as_echo_n "(cached) " >&6
11270 else
11271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11272 /* end confdefs.h. */
11273 #undef $ac_tr_decl
11274 #define $ac_tr_decl 1
11276 #include "ansidecl.h"
11277 #include "system.h"
11278 #include <signal.h>
11282 main ()
11284 #ifndef $ac_func
11285 char *(*pfn) = (char *(*)) $ac_func ;
11286 #endif
11288 return 0;
11290 _ACEOF
11291 if ac_fn_cxx_try_compile "$LINENO"; then :
11292 eval "gcc_cv_have_decl_$ac_func=yes"
11293 else
11294 eval "gcc_cv_have_decl_$ac_func=no"
11296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11299 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11301 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11302 #define $ac_tr_decl 1
11303 _ACEOF
11305 else
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11307 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11308 #define $ac_tr_decl 0
11309 _ACEOF
11313 done
11316 # More time-related stuff.
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11318 $as_echo_n "checking for struct tms... " >&6; }
11319 if test "${ac_cv_struct_tms+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"
11328 #ifdef HAVE_SYS_TIMES_H
11329 #include <sys/times.h>
11330 #endif
11333 main ()
11335 struct tms tms;
11337 return 0;
11339 _ACEOF
11340 if ac_fn_cxx_try_compile "$LINENO"; then :
11341 ac_cv_struct_tms=yes
11342 else
11343 ac_cv_struct_tms=no
11345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11348 $as_echo "$ac_cv_struct_tms" >&6; }
11349 if test $ac_cv_struct_tms = yes; then
11351 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11355 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11356 # revisit after autoconf 2.50.
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11358 $as_echo_n "checking for clock_t... " >&6; }
11359 if test "${gcc_cv_type_clock_t+set}" = set; then :
11360 $as_echo_n "(cached) " >&6
11361 else
11363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11364 /* end confdefs.h. */
11366 #include "ansidecl.h"
11367 #include "system.h"
11370 main ()
11372 clock_t x;
11374 return 0;
11376 _ACEOF
11377 if ac_fn_cxx_try_compile "$LINENO"; then :
11378 gcc_cv_type_clock_t=yes
11379 else
11380 gcc_cv_type_clock_t=no
11382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11385 $as_echo "$gcc_cv_type_clock_t" >&6; }
11386 if test $gcc_cv_type_clock_t = yes; then
11388 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11392 # Check if F_SETLKW is supported by fcntl.
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11394 $as_echo_n "checking for F_SETLKW... " >&6; }
11395 if test "${ac_cv_f_setlkw+set}" = set; then :
11396 $as_echo_n "(cached) " >&6
11397 else
11399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11400 /* end confdefs.h. */
11402 #include <fcntl.h>
11404 main ()
11407 struct flock fl;
11408 fl.l_whence = 0;
11409 fl.l_start = 0;
11410 fl.l_len = 0;
11411 fl.l_pid = 0;
11412 return fcntl (1, F_SETLKW, &fl);
11414 return 0;
11416 _ACEOF
11417 if ac_fn_cxx_try_compile "$LINENO"; then :
11418 ac_cv_f_setlkw=yes
11419 else
11420 ac_cv_f_setlkw=no
11422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11425 $as_echo "$ac_cv_f_setlkw" >&6; }
11426 if test $ac_cv_f_setlkw = yes; then
11428 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11432 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11433 CFLAGS="$saved_CFLAGS"
11434 CXXFLAGS="$saved_CXXFLAGS"
11436 # mkdir takes a single argument on some systems.
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11438 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11439 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11440 $as_echo_n "(cached) " >&6
11441 else
11442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h. */
11445 #include <sys/types.h>
11446 #ifdef HAVE_SYS_STAT_H
11447 # include <sys/stat.h>
11448 #endif
11449 #ifdef HAVE_UNISTD_H
11450 # include <unistd.h>
11451 #endif
11452 #ifdef HAVE_DIRECT_H
11453 # include <direct.h>
11454 #endif
11456 main ()
11458 mkdir ("foo", 0);
11460 return 0;
11462 _ACEOF
11463 if ac_fn_cxx_try_compile "$LINENO"; then :
11464 gcc_cv_mkdir_takes_one_arg=no
11465 else
11466 gcc_cv_mkdir_takes_one_arg=yes
11468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11471 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11472 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11474 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11479 # File extensions
11480 manext='.1'
11481 objext='.o'
11485 # With Setjmp/Longjmp based exception handling.
11486 # Check whether --enable-sjlj-exceptions was given.
11487 if test "${enable_sjlj_exceptions+set}" = set; then :
11488 enableval=$enable_sjlj_exceptions; case $target in
11489 *-*-hpux10*)
11490 if test $enableval != yes; then
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11492 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11493 enableval=yes
11496 esac
11497 force_sjlj_exceptions=yes
11498 else
11499 case $target in
11500 *-*-hpux10*)
11501 force_sjlj_exceptions=yes
11502 enableval=yes
11504 lm32*-*-*)
11505 force_sjlj_exceptions=yes
11506 enableval=yes
11509 force_sjlj_exceptions=no
11511 esac
11514 if test $force_sjlj_exceptions = yes; then
11515 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11517 cat >>confdefs.h <<_ACEOF
11518 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11519 _ACEOF
11523 # --------------------------------------------------------
11524 # Build, host, and target specific configuration fragments
11525 # --------------------------------------------------------
11527 # Collect build-machine-specific information.
11528 . ${srcdir}/config.build
11530 # Collect host-machine-specific information.
11531 . ${srcdir}/config.host
11533 target_gtfiles=
11535 # Collect target-machine-specific information.
11536 . ${srcdir}/config.gcc
11538 extra_objs="${host_extra_objs} ${extra_objs}"
11539 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11541 # Default the target-machine variables that were not explicitly set.
11542 if test x"$tm_file" = x
11543 then tm_file=$cpu_type/$cpu_type.h; fi
11545 if test x"$extra_headers" = x
11546 then extra_headers=; fi
11548 if test x$md_file = x
11549 then md_file=$cpu_type/$cpu_type.md; fi
11551 if test x$out_file = x
11552 then out_file=$cpu_type/$cpu_type.c; fi
11554 if test x"$tmake_file" = x
11555 then tmake_file=$cpu_type/t-$cpu_type
11558 # Support --enable-initfini-array.
11559 if test x$enable_initfini_array != xno; then
11560 tm_file="${tm_file} initfini-array.h"
11563 if test x"$dwarf2" = xyes
11564 then tm_file="$tm_file tm-dwarf2.h"
11567 # Say what files are being used for the output code and MD file.
11568 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11569 echo "Using \`$srcdir/config/$md_file' as machine description file."
11571 # If any of the xm_file variables contain nonexistent files, warn
11572 # about them and drop them.
11575 for x in $build_xm_file; do
11576 if test -f $srcdir/config/$x
11577 then bx="$bx $x"
11578 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11579 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11581 done
11582 build_xm_file="$bx"
11585 for x in $host_xm_file; do
11586 if test -f $srcdir/config/$x
11587 then hx="$hx $x"
11588 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11589 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11591 done
11592 host_xm_file="$hx"
11595 for x in $xm_file; do
11596 if test -f $srcdir/config/$x
11597 then tx="$tx $x"
11598 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11599 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11601 done
11602 xm_file="$tx"
11604 count=a
11605 for f in $tm_file; do
11606 count=${count}x
11607 done
11608 if test $count = ax; then
11609 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11610 else
11611 echo "Using the following target machine macro files:"
11612 for f in $tm_file; do
11613 echo " $srcdir/config/$f"
11614 done
11617 if test x$use_long_long_for_widest_fast_int = xyes; then
11619 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11623 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11625 cat >>confdefs.h <<_ACEOF
11626 #define HAVE_GNU_LD $gnu_ld_bool
11627 _ACEOF
11630 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11632 cat >>confdefs.h <<_ACEOF
11633 #define HAVE_GNU_AS $gnu_as_bool
11634 _ACEOF
11637 count=a
11638 for f in $host_xm_file; do
11639 count=${count}x
11640 done
11641 if test $count = a; then
11643 elif test $count = ax; then
11644 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11645 else
11646 echo "Using the following host machine macro files:"
11647 for f in $host_xm_file; do
11648 echo " $srcdir/config/$f"
11649 done
11651 echo "Using ${out_host_hook_obj} for host machine hooks."
11653 if test "$host_xm_file" != "$build_xm_file"; then
11654 count=a
11655 for f in $build_xm_file; do
11656 count=${count}x
11657 done
11658 if test $count = a; then
11660 elif test $count = ax; then
11661 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11662 else
11663 echo "Using the following build machine macro files:"
11664 for f in $build_xm_file; do
11665 echo " $srcdir/config/$f"
11666 done
11670 if test -n "$configured_native_system_header_dir"; then
11671 native_system_header_dir=$configured_native_system_header_dir
11673 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11676 case ${host} in
11677 powerpc*-*-darwin*)
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11679 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11680 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11681 $as_echo_n "(cached) " >&6
11682 else
11683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11684 /* end confdefs.h. */
11686 #include <sys/cdefs.h>
11687 #include <sys/signal.h>
11688 #include <ucontext.h>
11689 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11691 _ACEOF
11692 if ac_fn_cxx_try_compile "$LINENO"; then :
11693 gcc_cv_mcontext_underscores=no
11694 else
11695 gcc_cv_mcontext_underscores=yes
11697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11700 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11701 if test $gcc_cv_mcontext_underscores = yes; then
11703 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11707 esac
11709 # ---------
11710 # Threading
11711 # ---------
11713 # Check if a valid thread package
11714 case ${enable_threads} in
11715 "" | no)
11716 # No threads
11717 target_thread_file='single'
11719 yes)
11720 # default
11721 target_thread_file='single'
11723 aix | dce | lynx | mipssde | posix | rtems | \
11724 single | tpf | vxworks | win32)
11725 target_thread_file=${enable_threads}
11728 echo "${enable_threads} is an unknown thread package" 1>&2
11729 exit 1
11731 esac
11733 if test x${thread_file} = x; then
11734 # No thread file set by target-specific clauses in config.gcc,
11735 # so use file chosen by default logic above
11736 thread_file=${target_thread_file}
11739 # --------
11740 # UNSORTED
11741 # --------
11743 use_cxa_atexit=no
11744 if test x$enable___cxa_atexit = xyes || \
11745 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11746 if test x$host = x$target; then
11747 case $host in
11748 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11749 # keyed to flag_use_cxa_atexit
11750 *-*-mingw32*)
11751 use_cxa_atexit=yes
11753 powerpc-ibm-aix*)
11754 use_cxa_atexit=yes
11757 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11758 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11759 use_cxa_atexit=yes
11760 else
11761 echo "__cxa_atexit can't be enabled on this target"
11765 esac
11766 else
11767 # We can't check for __cxa_atexit when building a cross, so assume
11768 # it is available
11769 use_cxa_atexit=yes
11771 if test x$use_cxa_atexit = xyes; then
11773 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11778 # Look for a file containing extra machine modes.
11779 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11780 extra_modes_file='$(srcdir)'/config/${extra_modes}
11783 cat >>confdefs.h <<_ACEOF
11784 #define EXTRA_MODES_FILE "config/$extra_modes"
11785 _ACEOF
11789 # Convert extra_options into a form suitable for Makefile use.
11790 extra_opt_files=
11791 all_opt_files=
11792 for f in $extra_options; do
11793 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11794 all_opt_files="$all_opt_files $srcdir/config/$f"
11795 done
11798 # auto-host.h is the file containing items generated by autoconf and is
11799 # the first file included by config.h.
11800 # If host=build, it is correct to have bconfig include auto-host.h
11801 # as well. If host!=build, we are in error and need to do more
11802 # work to find out the build config parameters.
11803 if test x$host = x$build
11804 then
11805 build_auto=auto-host.h
11806 else
11807 # We create a subdir, then run autoconf in the subdir.
11808 # To prevent recursion we set host and build for the new
11809 # invocation of configure to the build for this invocation
11810 # of configure.
11811 tempdir=build.$$
11812 rm -rf $tempdir
11813 mkdir $tempdir
11814 cd $tempdir
11815 case ${srcdir} in
11816 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11817 *) realsrcdir=../${srcdir};;
11818 esac
11819 # Clearing GMPINC is necessary to prevent host headers being
11820 # used by the build compiler. Defining GENERATOR_FILE stops
11821 # system.h from including gmp.h.
11822 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11823 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11824 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11825 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11826 ${realsrcdir}/configure \
11827 --enable-languages=${enable_languages-all} \
11828 --target=$target_alias --host=$build_alias --build=$build_alias
11830 # We just finished tests for the build machine, so rename
11831 # the file auto-build.h in the gcc directory.
11832 mv auto-host.h ../auto-build.h
11833 cd ..
11834 rm -rf $tempdir
11835 build_auto=auto-build.h
11839 tm_file="${tm_file} defaults.h"
11840 tm_p_file="${tm_p_file} tm-preds.h"
11841 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11842 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11843 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11844 # put this back in temporarily.
11845 xm_file="auto-host.h ansidecl.h ${xm_file}"
11847 # --------
11848 # UNSORTED
11849 # --------
11851 # Compile in configure arguments.
11852 if test -f configargs.h ; then
11853 # Being re-configured.
11854 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11855 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11856 else
11857 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11860 # Double all backslashes and backslash all quotes to turn
11861 # gcc_config_arguments into a C string.
11862 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11863 $gcc_config_arguments
11865 gcc_config_arguments_str=`cat conftest.out`
11866 rm -f conftest.out
11868 cat > configargs.h <<EOF
11869 /* Generated automatically. */
11870 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11871 static const char thread_model[] = "$thread_file";
11873 static const struct {
11874 const char *name, *value;
11875 } configure_default_options[] = $configure_default_options;
11878 gcc_BASEVER=`cat $srcdir/BASE-VER`
11879 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11880 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11881 if test -f $srcdir/REVISION ; then
11882 gcc_REVISION=`cat $srcdir/REVISION`
11883 else
11884 gcc_REVISION=""
11886 cat > plugin-version.h <<EOF
11887 #include "configargs.h"
11889 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11890 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11891 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11892 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11894 static char basever[] = "$gcc_BASEVER";
11895 static char datestamp[] = "$gcc_DATESTAMP";
11896 static char devphase[] = "$gcc_DEVPHASE";
11897 static char revision[] = "$gcc_REVISION";
11899 /* FIXME plugins: We should make the version information more precise.
11900 One way to do is to add a checksum. */
11902 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11903 devphase, revision,
11904 configuration_arguments};
11907 # Internationalization
11908 # If we haven't got the data from the intl directory,
11909 # assume NLS is disabled.
11910 USE_NLS=no
11911 LIBINTL=
11912 LIBINTL_DEP=
11913 INCINTL=
11914 XGETTEXT=
11915 GMSGFMT=
11916 POSUB=
11918 if test -f ../intl/config.intl; then
11919 . ../intl/config.intl
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11922 $as_echo_n "checking whether NLS is requested... " >&6; }
11923 if test x"$USE_NLS" != xyes; then
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925 $as_echo "no" >&6; }
11926 else
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11928 $as_echo "yes" >&6; }
11930 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11934 $as_echo_n "checking for catalogs to be installed... " >&6; }
11935 # Look for .po and .gmo files in the source directory.
11936 CATALOGS=
11937 XLINGUAS=
11938 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11939 # If there aren't any .gmo files the shell will give us the
11940 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11941 # weeded out.
11942 case "$cat" in *\**)
11943 continue;;
11944 esac
11945 # The quadruple backslash is collapsed to a double backslash
11946 # by the backticks, then collapsed again by the double quotes,
11947 # leaving us with one backslash in the sed expression (right
11948 # before the dot that mustn't act as a wildcard).
11949 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11950 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11951 # The user is allowed to set LINGUAS to a list of languages to
11952 # install catalogs for. If it's empty that means "all of them."
11953 if test "x$LINGUAS" = x; then
11954 CATALOGS="$CATALOGS $cat"
11955 XLINGUAS="$XLINGUAS $lang"
11956 else
11957 case "$LINGUAS" in *$lang*)
11958 CATALOGS="$CATALOGS $cat"
11959 XLINGUAS="$XLINGUAS $lang"
11961 esac
11963 done
11964 LINGUAS="$XLINGUAS"
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11966 $as_echo "$LINGUAS" >&6; }
11969 DATADIRNAME=share
11971 INSTOBJEXT=.mo
11973 GENCAT=gencat
11975 CATOBJEXT=.gmo
11979 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11980 # -liconv on the link line twice.
11981 case "$LIBINTL" in *$LIBICONV*)
11982 LIBICONV= ;;
11983 esac
11985 # Check whether --enable-secureplt was given.
11986 if test "${enable_secureplt+set}" = set; then :
11987 enableval=$enable_secureplt;
11991 # Check whether --enable-leading-mingw64-underscores was given.
11992 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11993 enableval=$enable_leading_mingw64_underscores;
11996 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11998 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12002 # Check whether --enable-cld was given.
12003 if test "${enable_cld+set}" = set; then :
12004 enableval=$enable_cld;
12005 else
12006 enable_cld=no
12010 # Check whether --enable-frame-pointer was given.
12011 if test "${enable_frame_pointer+set}" = set; then :
12012 enableval=$enable_frame_pointer;
12013 else
12015 case $target_os in
12016 linux* | darwin[8912]*)
12017 # Enable -fomit-frame-pointer by default for Linux and Darwin with
12018 # DWARF2.
12019 enable_frame_pointer=no
12022 enable_frame_pointer=yes
12024 esac
12029 # Windows32 Registry support for specifying GCC installation paths.
12030 # Check whether --enable-win32-registry was given.
12031 if test "${enable_win32_registry+set}" = set; then :
12032 enableval=$enable_win32_registry;
12036 case $host_os in
12037 win32 | pe | cygwin* | mingw32*)
12038 if test "x$enable_win32_registry" != xno; then
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12040 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12041 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12042 $as_echo_n "(cached) " >&6
12043 else
12044 ac_func_search_save_LIBS=$LIBS
12045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046 /* end confdefs.h. */
12048 /* Override any GCC internal prototype to avoid an error.
12049 Use char because int might match the return type of a GCC
12050 builtin and then its argument prototype would still apply. */
12051 #ifdef __cplusplus
12052 extern "C"
12053 #endif
12054 char RegOpenKeyExA ();
12056 main ()
12058 return RegOpenKeyExA ();
12060 return 0;
12062 _ACEOF
12063 for ac_lib in '' advapi32; do
12064 if test -z "$ac_lib"; then
12065 ac_res="none required"
12066 else
12067 ac_res=-l$ac_lib
12068 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12070 if ac_fn_cxx_try_link "$LINENO"; then :
12071 ac_cv_search_RegOpenKeyExA=$ac_res
12073 rm -f core conftest.err conftest.$ac_objext \
12074 conftest$ac_exeext
12075 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12076 break
12078 done
12079 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12081 else
12082 ac_cv_search_RegOpenKeyExA=no
12084 rm conftest.$ac_ext
12085 LIBS=$ac_func_search_save_LIBS
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12088 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12089 ac_res=$ac_cv_search_RegOpenKeyExA
12090 if test "$ac_res" != no; then :
12091 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12093 else
12094 enable_win32_registry=no
12099 if test "x$enable_win32_registry" != xno; then
12101 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12104 if test "x$enable_win32_registry" != xyes \
12105 && test "x$enable_win32_registry" != x; then
12107 cat >>confdefs.h <<_ACEOF
12108 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12109 _ACEOF
12114 esac
12116 # Get an absolute path to the GCC top-level source directory
12117 holddir=`${PWDCMD-pwd}`
12118 cd $srcdir
12119 topdir=`${PWDCMD-pwd}`
12120 cd $holddir
12122 # Conditionalize the makefile for this host machine.
12123 xmake_file=
12124 for f in ${host_xmake_file}
12126 if test -f ${srcdir}/config/$f
12127 then
12128 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12130 done
12132 # Conditionalize the makefile for this target machine.
12133 tmake_file_=
12134 for f in ${tmake_file}
12136 if test -f ${srcdir}/config/$f
12137 then
12138 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12140 done
12141 tmake_file="${tmake_file_}"
12143 out_object_file=`basename $out_file .c`.o
12144 common_out_object_file=`basename $common_out_file .c`.o
12146 tm_file_list="options.h"
12147 tm_include_list="options.h insn-constants.h"
12148 for f in $tm_file; do
12149 case $f in
12150 ./* )
12151 f=`echo $f | sed 's/^..//'`
12152 tm_file_list="${tm_file_list} $f"
12153 tm_include_list="${tm_include_list} $f"
12155 defaults.h )
12156 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12157 tm_include_list="${tm_include_list} $f"
12160 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12161 tm_include_list="${tm_include_list} config/$f"
12163 esac
12164 done
12166 tm_p_file_list=
12167 tm_p_include_list=
12168 for f in $tm_p_file; do
12169 case $f in
12170 tm-preds.h )
12171 tm_p_file_list="${tm_p_file_list} $f"
12172 tm_p_include_list="${tm_p_include_list} $f"
12175 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12176 tm_p_include_list="${tm_p_include_list} config/$f"
12177 esac
12178 done
12180 xm_file_list=
12181 xm_include_list=
12182 for f in $xm_file; do
12183 case $f in
12184 ansidecl.h )
12185 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12186 xm_include_list="${xm_include_list} $f"
12188 auto-host.h )
12189 xm_file_list="${xm_file_list} $f"
12190 xm_include_list="${xm_include_list} $f"
12193 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12194 xm_include_list="${xm_include_list} config/$f"
12196 esac
12197 done
12199 host_xm_file_list=
12200 host_xm_include_list=
12201 for f in $host_xm_file; do
12202 case $f in
12203 ansidecl.h )
12204 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12205 host_xm_include_list="${host_xm_include_list} $f"
12207 auto-host.h )
12208 host_xm_file_list="${host_xm_file_list} $f"
12209 host_xm_include_list="${host_xm_include_list} $f"
12212 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12213 host_xm_include_list="${host_xm_include_list} config/$f"
12215 esac
12216 done
12218 build_xm_file_list=
12219 for f in $build_xm_file; do
12220 case $f in
12221 ansidecl.h )
12222 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12223 build_xm_include_list="${build_xm_include_list} $f"
12225 auto-build.h | auto-host.h )
12226 build_xm_file_list="${build_xm_file_list} $f"
12227 build_xm_include_list="${build_xm_include_list} $f"
12230 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12231 build_xm_include_list="${build_xm_include_list} config/$f"
12233 esac
12234 done
12236 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12237 # cross-compiler which does not use the native headers and libraries.
12238 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12239 CROSS=
12240 ALL=all.internal
12241 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12243 if test "x$with_build_sysroot" != x; then
12244 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12245 else
12246 # This value is used, even on a native system, because
12247 # CROSS_SYSTEM_HEADER_DIR is just
12248 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12249 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12252 if test x$host != x$target
12253 then
12254 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12255 ALL=all.cross
12256 SYSTEM_HEADER_DIR=$build_system_header_dir
12257 case "$host","$target" in
12258 # Darwin crosses can use the host system's libraries and headers,
12259 # because of the fat library support. Of course, it must be the
12260 # same version of Darwin on both sides. Allow the user to
12261 # just say --target=foo-darwin without a version number to mean
12262 # "the version on this system".
12263 *-*-darwin*,*-*-darwin*)
12264 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12265 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12266 if test $hostos = $targetos -o $targetos = darwin ; then
12267 CROSS=
12268 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12269 with_headers=yes
12273 i?86-*-*,x86_64-*-* \
12274 | powerpc*-*-*,powerpc64*-*-*)
12275 CROSS="$CROSS -DNATIVE_CROSS" ;;
12276 esac
12278 case $target in
12279 *-*-mingw*)
12280 if test "x$with_headers" = x; then
12281 with_headers=yes
12286 esac
12287 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12288 SYSTEM_HEADER_DIR=$build_system_header_dir
12291 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
12292 if test "x$with_headers" != x && test "x$with_headers" != xyes; then
12293 target_header_dir=$with_headers
12294 elif test "x$with_sysroot" = x; then
12295 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12296 elif test "x$with_build_sysroot" != "x"; then
12297 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12298 elif test "x$with_sysroot" = xyes; then
12299 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12300 else
12301 target_header_dir="${with_sysroot}${native_system_header_dir}"
12303 else
12304 target_header_dir=${native_system_header_dir}
12307 # If this is a cross-compiler that does not
12308 # have its own set of headers then define
12309 # inhibit_libc
12311 # If this is using newlib, without having the headers available now,
12312 # then define inhibit_libc in LIBGCC2_CFLAGS.
12313 # This prevents libgcc2 from containing any code which requires libc
12314 # support.
12315 : ${inhibit_libc=false}
12316 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12317 test x$with_newlib = xyes ; } &&
12318 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12319 inhibit_libc=true
12323 # When building gcc with a cross-compiler, we need to adjust things so
12324 # that the generator programs are still built with the native compiler.
12325 # Also, we cannot run fixincludes.
12327 # These are the normal (build=host) settings:
12328 CC_FOR_BUILD='$(CC)'
12329 CXX_FOR_BUILD='$(CXX)'
12330 BUILD_CFLAGS='$(ALL_CFLAGS)'
12331 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12332 BUILD_LDFLAGS='$(LDFLAGS)'
12333 STMP_FIXINC=stmp-fixinc
12335 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12336 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12338 # And these apply if build != host, or we are generating coverage data
12339 if test x$build != x$host || test "x$coverage_flags" != x
12340 then
12341 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12342 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12343 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12345 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12346 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12347 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12348 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12353 # Expand extra_headers to include complete path.
12354 # This substitutes for lots of t-* files.
12355 extra_headers_list=
12356 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12357 for file in ${extra_headers} ; do
12358 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12359 done
12361 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12362 if test x"$use_gcc_tgmath" = xyes
12363 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12366 # Define collect2 in Makefile.
12367 case $host_can_use_collect2 in
12368 no) collect2= ;;
12369 *) collect2='collect2$(exeext)' ;;
12370 esac
12373 # Add a definition of USE_COLLECT2 if system wants one.
12374 case $use_collect2 in
12375 no) use_collect2= ;;
12376 "") ;;
12378 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12379 xm_defines="${xm_defines} USE_COLLECT2"
12380 case $host_can_use_collect2 in
12382 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12384 esac
12386 esac
12389 cat >>confdefs.h <<_ACEOF
12390 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12391 _ACEOF
12394 # ---------------------------
12395 # Assembler & linker features
12396 # ---------------------------
12398 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12399 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12400 # However when ld-new is first executed from the build tree, libtool will
12401 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12402 # to the build tree. While doing this we need to use the previous-stage
12403 # linker, or we have an infinite loop. The presence of a shell script as
12404 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12405 # the gcc/collect-ld script. So we need to know how libtool works, or
12406 # exec-tool will fail.
12409 case `pwd` in
12410 *\ * | *\ *)
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12412 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12413 esac
12417 macro_version='2.2.7a'
12418 macro_revision='1.3134'
12432 ltmain="$ac_aux_dir/ltmain.sh"
12434 # Backslashify metacharacters that are still active within
12435 # double-quoted strings.
12436 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12438 # Same as above, but do not quote variable references.
12439 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12441 # Sed substitution to delay expansion of an escaped shell variable in a
12442 # double_quote_subst'ed string.
12443 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12445 # Sed substitution to delay expansion of an escaped single quote.
12446 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12448 # Sed substitution to avoid accidental globbing in evaled expressions
12449 no_glob_subst='s/\*/\\\*/g'
12451 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12452 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12453 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12456 $as_echo_n "checking how to print strings... " >&6; }
12457 # Test print first, because it will be a builtin if present.
12458 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12459 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12460 ECHO='print -r --'
12461 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12462 ECHO='printf %s\n'
12463 else
12464 # Use this function as a fallback that always works.
12465 func_fallback_echo ()
12467 eval 'cat <<_LTECHO_EOF
12469 _LTECHO_EOF'
12471 ECHO='func_fallback_echo'
12474 # func_echo_all arg...
12475 # Invoke $ECHO with all args, space-separated.
12476 func_echo_all ()
12478 $ECHO ""
12481 case "$ECHO" in
12482 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12483 $as_echo "printf" >&6; } ;;
12484 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12485 $as_echo "print -r" >&6; } ;;
12486 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12487 $as_echo "cat" >&6; } ;;
12488 esac
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12504 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12505 if test "${ac_cv_path_SED+set}" = set; then :
12506 $as_echo_n "(cached) " >&6
12507 else
12508 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12509 for ac_i in 1 2 3 4 5 6 7; do
12510 ac_script="$ac_script$as_nl$ac_script"
12511 done
12512 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12513 { ac_script=; unset ac_script;}
12514 if test -z "$SED"; then
12515 ac_path_SED_found=false
12516 # Loop through the user's path and test for each of PROGNAME-LIST
12517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12518 for as_dir in $PATH
12520 IFS=$as_save_IFS
12521 test -z "$as_dir" && as_dir=.
12522 for ac_prog in sed gsed; do
12523 for ac_exec_ext in '' $ac_executable_extensions; do
12524 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12525 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12526 # Check for GNU ac_path_SED and select it if it is found.
12527 # Check for GNU $ac_path_SED
12528 case `"$ac_path_SED" --version 2>&1` in
12529 *GNU*)
12530 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12532 ac_count=0
12533 $as_echo_n 0123456789 >"conftest.in"
12534 while :
12536 cat "conftest.in" "conftest.in" >"conftest.tmp"
12537 mv "conftest.tmp" "conftest.in"
12538 cp "conftest.in" "conftest.nl"
12539 $as_echo '' >> "conftest.nl"
12540 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12541 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12542 as_fn_arith $ac_count + 1 && ac_count=$as_val
12543 if test $ac_count -gt ${ac_path_SED_max-0}; then
12544 # Best one so far, save it but keep looking for a better one
12545 ac_cv_path_SED="$ac_path_SED"
12546 ac_path_SED_max=$ac_count
12548 # 10*(2^10) chars as input seems more than enough
12549 test $ac_count -gt 10 && break
12550 done
12551 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12552 esac
12554 $ac_path_SED_found && break 3
12555 done
12556 done
12557 done
12558 IFS=$as_save_IFS
12559 if test -z "$ac_cv_path_SED"; then
12560 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12562 else
12563 ac_cv_path_SED=$SED
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12568 $as_echo "$ac_cv_path_SED" >&6; }
12569 SED="$ac_cv_path_SED"
12570 rm -f conftest.sed
12572 test -z "$SED" && SED=sed
12573 Xsed="$SED -e 1s/^X//"
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12586 $as_echo_n "checking for fgrep... " >&6; }
12587 if test "${ac_cv_path_FGREP+set}" = set; then :
12588 $as_echo_n "(cached) " >&6
12589 else
12590 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12591 then ac_cv_path_FGREP="$GREP -F"
12592 else
12593 if test -z "$FGREP"; then
12594 ac_path_FGREP_found=false
12595 # Loop through the user's path and test for each of PROGNAME-LIST
12596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12597 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12599 IFS=$as_save_IFS
12600 test -z "$as_dir" && as_dir=.
12601 for ac_prog in fgrep; do
12602 for ac_exec_ext in '' $ac_executable_extensions; do
12603 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12604 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12605 # Check for GNU ac_path_FGREP and select it if it is found.
12606 # Check for GNU $ac_path_FGREP
12607 case `"$ac_path_FGREP" --version 2>&1` in
12608 *GNU*)
12609 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12611 ac_count=0
12612 $as_echo_n 0123456789 >"conftest.in"
12613 while :
12615 cat "conftest.in" "conftest.in" >"conftest.tmp"
12616 mv "conftest.tmp" "conftest.in"
12617 cp "conftest.in" "conftest.nl"
12618 $as_echo 'FGREP' >> "conftest.nl"
12619 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12620 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12621 as_fn_arith $ac_count + 1 && ac_count=$as_val
12622 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12623 # Best one so far, save it but keep looking for a better one
12624 ac_cv_path_FGREP="$ac_path_FGREP"
12625 ac_path_FGREP_max=$ac_count
12627 # 10*(2^10) chars as input seems more than enough
12628 test $ac_count -gt 10 && break
12629 done
12630 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12631 esac
12633 $ac_path_FGREP_found && break 3
12634 done
12635 done
12636 done
12637 IFS=$as_save_IFS
12638 if test -z "$ac_cv_path_FGREP"; then
12639 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12641 else
12642 ac_cv_path_FGREP=$FGREP
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12648 $as_echo "$ac_cv_path_FGREP" >&6; }
12649 FGREP="$ac_cv_path_FGREP"
12652 test -z "$GREP" && GREP=grep
12672 # Check whether --with-gnu-ld was given.
12673 if test "${with_gnu_ld+set}" = set; then :
12674 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12675 else
12676 with_gnu_ld=no
12679 ac_prog=ld
12680 if test "$GCC" = yes; then
12681 # Check if gcc -print-prog-name=ld gives a path.
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12683 $as_echo_n "checking for ld used by $CC... " >&6; }
12684 case $host in
12685 *-*-mingw*)
12686 # gcc leaves a trailing carriage return which upsets mingw
12687 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12689 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12690 esac
12691 case $ac_prog in
12692 # Accept absolute paths.
12693 [\\/]* | ?:[\\/]*)
12694 re_direlt='/[^/][^/]*/\.\./'
12695 # Canonicalize the pathname of ld
12696 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12697 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12698 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12699 done
12700 test -z "$LD" && LD="$ac_prog"
12703 # If it fails, then pretend we aren't using GCC.
12704 ac_prog=ld
12707 # If it is relative, then search for the first ld in PATH.
12708 with_gnu_ld=unknown
12710 esac
12711 elif test "$with_gnu_ld" = yes; then
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12713 $as_echo_n "checking for GNU ld... " >&6; }
12714 else
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12716 $as_echo_n "checking for non-GNU ld... " >&6; }
12718 if test "${lt_cv_path_LD+set}" = set; then :
12719 $as_echo_n "(cached) " >&6
12720 else
12721 if test -z "$LD"; then
12722 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12723 for ac_dir in $PATH; do
12724 IFS="$lt_save_ifs"
12725 test -z "$ac_dir" && ac_dir=.
12726 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12727 lt_cv_path_LD="$ac_dir/$ac_prog"
12728 # Check to see if the program is GNU ld. I'd rather use --version,
12729 # but apparently some variants of GNU ld only accept -v.
12730 # Break only if it was the GNU/non-GNU ld that we prefer.
12731 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12732 *GNU* | *'with BFD'*)
12733 test "$with_gnu_ld" != no && break
12736 test "$with_gnu_ld" != yes && break
12738 esac
12740 done
12741 IFS="$lt_save_ifs"
12742 else
12743 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12747 LD="$lt_cv_path_LD"
12748 if test -n "$LD"; then
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12750 $as_echo "$LD" >&6; }
12751 else
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12753 $as_echo "no" >&6; }
12755 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12757 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12758 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12759 $as_echo_n "(cached) " >&6
12760 else
12761 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12762 case `$LD -v 2>&1 </dev/null` in
12763 *GNU* | *'with BFD'*)
12764 lt_cv_prog_gnu_ld=yes
12767 lt_cv_prog_gnu_ld=no
12769 esac
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12772 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12773 with_gnu_ld=$lt_cv_prog_gnu_ld
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12784 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12785 if test "${lt_cv_path_NM+set}" = set; then :
12786 $as_echo_n "(cached) " >&6
12787 else
12788 if test -n "$NM"; then
12789 # Let the user override the test.
12790 lt_cv_path_NM="$NM"
12791 else
12792 lt_nm_to_check="${ac_tool_prefix}nm"
12793 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12794 lt_nm_to_check="$lt_nm_to_check nm"
12796 for lt_tmp_nm in $lt_nm_to_check; do
12797 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12798 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12799 IFS="$lt_save_ifs"
12800 test -z "$ac_dir" && ac_dir=.
12801 tmp_nm="$ac_dir/$lt_tmp_nm"
12802 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12803 # Check to see if the nm accepts a BSD-compat flag.
12804 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12805 # nm: unknown option "B" ignored
12806 # Tru64's nm complains that /dev/null is an invalid object file
12807 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12808 */dev/null* | *'Invalid file or object type'*)
12809 lt_cv_path_NM="$tmp_nm -B"
12810 break
12813 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12814 */dev/null*)
12815 lt_cv_path_NM="$tmp_nm -p"
12816 break
12819 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12820 continue # so that we can try to find one that supports BSD flags
12822 esac
12824 esac
12826 done
12827 IFS="$lt_save_ifs"
12828 done
12829 : ${lt_cv_path_NM=no}
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12833 $as_echo "$lt_cv_path_NM" >&6; }
12834 if test "$lt_cv_path_NM" != "no"; then
12835 NM="$lt_cv_path_NM"
12836 else
12837 # Didn't find any BSD compatible name lister, look for dumpbin.
12838 if test -n "$DUMPBIN"; then :
12839 # Let the user override the test.
12840 else
12841 if test -n "$ac_tool_prefix"; then
12842 for ac_prog in dumpbin "link -dump"
12844 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12845 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12847 $as_echo_n "checking for $ac_word... " >&6; }
12848 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12849 $as_echo_n "(cached) " >&6
12850 else
12851 if test -n "$DUMPBIN"; then
12852 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12853 else
12854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12855 for as_dir in $PATH
12857 IFS=$as_save_IFS
12858 test -z "$as_dir" && as_dir=.
12859 for ac_exec_ext in '' $ac_executable_extensions; do
12860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12861 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12863 break 2
12865 done
12866 done
12867 IFS=$as_save_IFS
12871 DUMPBIN=$ac_cv_prog_DUMPBIN
12872 if test -n "$DUMPBIN"; then
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12874 $as_echo "$DUMPBIN" >&6; }
12875 else
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12877 $as_echo "no" >&6; }
12881 test -n "$DUMPBIN" && break
12882 done
12884 if test -z "$DUMPBIN"; then
12885 ac_ct_DUMPBIN=$DUMPBIN
12886 for ac_prog in dumpbin "link -dump"
12888 # Extract the first word of "$ac_prog", so it can be a program name with args.
12889 set dummy $ac_prog; ac_word=$2
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12891 $as_echo_n "checking for $ac_word... " >&6; }
12892 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12893 $as_echo_n "(cached) " >&6
12894 else
12895 if test -n "$ac_ct_DUMPBIN"; then
12896 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12897 else
12898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12899 for as_dir in $PATH
12901 IFS=$as_save_IFS
12902 test -z "$as_dir" && as_dir=.
12903 for ac_exec_ext in '' $ac_executable_extensions; do
12904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12905 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12907 break 2
12909 done
12910 done
12911 IFS=$as_save_IFS
12915 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12916 if test -n "$ac_ct_DUMPBIN"; then
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12918 $as_echo "$ac_ct_DUMPBIN" >&6; }
12919 else
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12921 $as_echo "no" >&6; }
12925 test -n "$ac_ct_DUMPBIN" && break
12926 done
12928 if test "x$ac_ct_DUMPBIN" = x; then
12929 DUMPBIN=":"
12930 else
12931 case $cross_compiling:$ac_tool_warned in
12932 yes:)
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12935 ac_tool_warned=yes ;;
12936 esac
12937 DUMPBIN=$ac_ct_DUMPBIN
12941 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12942 *COFF*)
12943 DUMPBIN="$DUMPBIN -symbols"
12946 DUMPBIN=:
12948 esac
12951 if test "$DUMPBIN" != ":"; then
12952 NM="$DUMPBIN"
12955 test -z "$NM" && NM=nm
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12963 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12964 if test "${lt_cv_nm_interface+set}" = set; then :
12965 $as_echo_n "(cached) " >&6
12966 else
12967 lt_cv_nm_interface="BSD nm"
12968 echo "int some_variable = 0;" > conftest.$ac_ext
12969 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12970 (eval "$ac_compile" 2>conftest.err)
12971 cat conftest.err >&5
12972 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12973 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12974 cat conftest.err >&5
12975 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12976 cat conftest.out >&5
12977 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12978 lt_cv_nm_interface="MS dumpbin"
12980 rm -f conftest*
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12983 $as_echo "$lt_cv_nm_interface" >&6; }
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12986 $as_echo_n "checking whether ln -s works... " >&6; }
12987 LN_S=$as_ln_s
12988 if test "$LN_S" = "ln -s"; then
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12990 $as_echo "yes" >&6; }
12991 else
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12993 $as_echo "no, using $LN_S" >&6; }
12996 # find the maximum length of command line arguments
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12998 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12999 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
13000 $as_echo_n "(cached) " >&6
13001 else
13003 teststring="ABCD"
13005 case $build_os in
13006 msdosdjgpp*)
13007 # On DJGPP, this test can blow up pretty badly due to problems in libc
13008 # (any single argument exceeding 2000 bytes causes a buffer overrun
13009 # during glob expansion). Even if it were fixed, the result of this
13010 # check would be larger than it should be.
13011 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13014 gnu*)
13015 # Under GNU Hurd, this test is not required because there is
13016 # no limit to the length of command line arguments.
13017 # Libtool will interpret -1 as no limit whatsoever
13018 lt_cv_sys_max_cmd_len=-1;
13021 cygwin* | mingw* | cegcc*)
13022 # On Win9x/ME, this test blows up -- it succeeds, but takes
13023 # about 5 minutes as the teststring grows exponentially.
13024 # Worse, since 9x/ME are not pre-emptively multitasking,
13025 # you end up with a "frozen" computer, even though with patience
13026 # the test eventually succeeds (with a max line length of 256k).
13027 # Instead, let's just punt: use the minimum linelength reported by
13028 # all of the supported platforms: 8192 (on NT/2K/XP).
13029 lt_cv_sys_max_cmd_len=8192;
13032 mint*)
13033 # On MiNT this can take a long time and run out of memory.
13034 lt_cv_sys_max_cmd_len=8192;
13037 amigaos*)
13038 # On AmigaOS with pdksh, this test takes hours, literally.
13039 # So we just punt and use a minimum line length of 8192.
13040 lt_cv_sys_max_cmd_len=8192;
13043 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13044 # This has been around since 386BSD, at least. Likely further.
13045 if test -x /sbin/sysctl; then
13046 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13047 elif test -x /usr/sbin/sysctl; then
13048 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13049 else
13050 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13052 # And add a safety zone
13053 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13054 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13057 interix*)
13058 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13059 lt_cv_sys_max_cmd_len=196608
13062 osf*)
13063 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13064 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13065 # nice to cause kernel panics so lets avoid the loop below.
13066 # First set a reasonable default.
13067 lt_cv_sys_max_cmd_len=16384
13069 if test -x /sbin/sysconfig; then
13070 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13071 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13072 esac
13075 sco3.2v5*)
13076 lt_cv_sys_max_cmd_len=102400
13078 sysv5* | sco5v6* | sysv4.2uw2*)
13079 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13080 if test -n "$kargmax"; then
13081 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13082 else
13083 lt_cv_sys_max_cmd_len=32768
13087 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13088 if test -n "$lt_cv_sys_max_cmd_len"; then
13089 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13090 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13091 else
13092 # Make teststring a little bigger before we do anything with it.
13093 # a 1K string should be a reasonable start.
13094 for i in 1 2 3 4 5 6 7 8 ; do
13095 teststring=$teststring$teststring
13096 done
13097 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13098 # If test is not a shell built-in, we'll probably end up computing a
13099 # maximum length that is only half of the actual maximum length, but
13100 # we can't tell.
13101 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13102 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13103 test $i != 17 # 1/2 MB should be enough
13105 i=`expr $i + 1`
13106 teststring=$teststring$teststring
13107 done
13108 # Only check the string length outside the loop.
13109 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13110 teststring=
13111 # Add a significant safety factor because C++ compilers can tack on
13112 # massive amounts of additional arguments before passing them to the
13113 # linker. It appears as though 1/2 is a usable value.
13114 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13117 esac
13121 if test -n $lt_cv_sys_max_cmd_len ; then
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13123 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13124 else
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13126 $as_echo "none" >&6; }
13128 max_cmd_len=$lt_cv_sys_max_cmd_len
13135 : ${CP="cp -f"}
13136 : ${MV="mv -f"}
13137 : ${RM="rm -f"}
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13140 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13141 # Try some XSI features
13142 xsi_shell=no
13143 ( _lt_dummy="a/b/c"
13144 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13145 = c,a/b,, \
13146 && eval 'test $(( 1 + 1 )) -eq 2 \
13147 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13148 && xsi_shell=yes
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13150 $as_echo "$xsi_shell" >&6; }
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13154 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13155 lt_shell_append=no
13156 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13157 >/dev/null 2>&1 \
13158 && lt_shell_append=yes
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13160 $as_echo "$lt_shell_append" >&6; }
13163 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13164 lt_unset=unset
13165 else
13166 lt_unset=false
13173 # test EBCDIC or ASCII
13174 case `echo X|tr X '\101'` in
13175 A) # ASCII based system
13176 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13177 lt_SP2NL='tr \040 \012'
13178 lt_NL2SP='tr \015\012 \040\040'
13180 *) # EBCDIC based system
13181 lt_SP2NL='tr \100 \n'
13182 lt_NL2SP='tr \r\n \100\100'
13184 esac
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13195 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13196 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13197 $as_echo_n "(cached) " >&6
13198 else
13199 lt_cv_ld_reload_flag='-r'
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13202 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13203 reload_flag=$lt_cv_ld_reload_flag
13204 case $reload_flag in
13205 "" | " "*) ;;
13206 *) reload_flag=" $reload_flag" ;;
13207 esac
13208 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13209 case $host_os in
13210 darwin*)
13211 if test "$GCC" = yes; then
13212 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13213 else
13214 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13217 esac
13227 if test -n "$ac_tool_prefix"; then
13228 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13229 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13231 $as_echo_n "checking for $ac_word... " >&6; }
13232 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13233 $as_echo_n "(cached) " >&6
13234 else
13235 if test -n "$OBJDUMP"; then
13236 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13237 else
13238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13239 for as_dir in $PATH
13241 IFS=$as_save_IFS
13242 test -z "$as_dir" && as_dir=.
13243 for ac_exec_ext in '' $ac_executable_extensions; do
13244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13245 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13247 break 2
13249 done
13250 done
13251 IFS=$as_save_IFS
13255 OBJDUMP=$ac_cv_prog_OBJDUMP
13256 if test -n "$OBJDUMP"; then
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13258 $as_echo "$OBJDUMP" >&6; }
13259 else
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13261 $as_echo "no" >&6; }
13266 if test -z "$ac_cv_prog_OBJDUMP"; then
13267 ac_ct_OBJDUMP=$OBJDUMP
13268 # Extract the first word of "objdump", so it can be a program name with args.
13269 set dummy objdump; ac_word=$2
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13271 $as_echo_n "checking for $ac_word... " >&6; }
13272 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13273 $as_echo_n "(cached) " >&6
13274 else
13275 if test -n "$ac_ct_OBJDUMP"; then
13276 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13277 else
13278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13279 for as_dir in $PATH
13281 IFS=$as_save_IFS
13282 test -z "$as_dir" && as_dir=.
13283 for ac_exec_ext in '' $ac_executable_extensions; do
13284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13285 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13287 break 2
13289 done
13290 done
13291 IFS=$as_save_IFS
13295 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13296 if test -n "$ac_ct_OBJDUMP"; then
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13298 $as_echo "$ac_ct_OBJDUMP" >&6; }
13299 else
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13301 $as_echo "no" >&6; }
13304 if test "x$ac_ct_OBJDUMP" = x; then
13305 OBJDUMP="false"
13306 else
13307 case $cross_compiling:$ac_tool_warned in
13308 yes:)
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13311 ac_tool_warned=yes ;;
13312 esac
13313 OBJDUMP=$ac_ct_OBJDUMP
13315 else
13316 OBJDUMP="$ac_cv_prog_OBJDUMP"
13319 test -z "$OBJDUMP" && OBJDUMP=objdump
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13330 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13331 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13332 $as_echo_n "(cached) " >&6
13333 else
13334 lt_cv_file_magic_cmd='$MAGIC_CMD'
13335 lt_cv_file_magic_test_file=
13336 lt_cv_deplibs_check_method='unknown'
13337 # Need to set the preceding variable on all platforms that support
13338 # interlibrary dependencies.
13339 # 'none' -- dependencies not supported.
13340 # `unknown' -- same as none, but documents that we really don't know.
13341 # 'pass_all' -- all dependencies passed with no checks.
13342 # 'test_compile' -- check by making test program.
13343 # 'file_magic [[regex]]' -- check by looking for files in library path
13344 # which responds to the $file_magic_cmd with a given extended regex.
13345 # If you have `file' or equivalent on your system and you're not sure
13346 # whether `pass_all' will *always* work, you probably want this one.
13348 case $host_os in
13349 aix[4-9]*)
13350 lt_cv_deplibs_check_method=pass_all
13353 beos*)
13354 lt_cv_deplibs_check_method=pass_all
13357 bsdi[45]*)
13358 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13359 lt_cv_file_magic_cmd='/usr/bin/file -L'
13360 lt_cv_file_magic_test_file=/shlib/libc.so
13363 cygwin*)
13364 # func_win32_libid is a shell function defined in ltmain.sh
13365 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13366 lt_cv_file_magic_cmd='func_win32_libid'
13369 mingw* | pw32*)
13370 # Base MSYS/MinGW do not provide the 'file' command needed by
13371 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13372 # unless we find 'file', for example because we are cross-compiling.
13373 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13374 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13375 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13376 lt_cv_file_magic_cmd='func_win32_libid'
13377 else
13378 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13379 lt_cv_file_magic_cmd='$OBJDUMP -f'
13383 cegcc*)
13384 # use the weaker test based on 'objdump'. See mingw*.
13385 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13386 lt_cv_file_magic_cmd='$OBJDUMP -f'
13389 darwin* | rhapsody*)
13390 lt_cv_deplibs_check_method=pass_all
13393 freebsd* | dragonfly*)
13394 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13395 case $host_cpu in
13396 i*86 )
13397 # Not sure whether the presence of OpenBSD here was a mistake.
13398 # Let's accept both of them until this is cleared up.
13399 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13400 lt_cv_file_magic_cmd=/usr/bin/file
13401 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13403 esac
13404 else
13405 lt_cv_deplibs_check_method=pass_all
13409 gnu*)
13410 lt_cv_deplibs_check_method=pass_all
13413 haiku*)
13414 lt_cv_deplibs_check_method=pass_all
13417 hpux10.20* | hpux11*)
13418 lt_cv_file_magic_cmd=/usr/bin/file
13419 case $host_cpu in
13420 ia64*)
13421 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13422 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13424 hppa*64*)
13425 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]'
13426 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13429 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13430 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13432 esac
13435 interix[3-9]*)
13436 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13440 irix5* | irix6* | nonstopux*)
13441 case $LD in
13442 *-32|*"-32 ") libmagic=32-bit;;
13443 *-n32|*"-n32 ") libmagic=N32;;
13444 *-64|*"-64 ") libmagic=64-bit;;
13445 *) libmagic=never-match;;
13446 esac
13447 lt_cv_deplibs_check_method=pass_all
13450 # This must be Linux ELF.
13451 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13452 lt_cv_deplibs_check_method=pass_all
13455 netbsd*)
13456 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13458 else
13459 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13463 newos6*)
13464 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13465 lt_cv_file_magic_cmd=/usr/bin/file
13466 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13469 *nto* | *qnx*)
13470 lt_cv_deplibs_check_method=pass_all
13473 openbsd*)
13474 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13475 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13476 else
13477 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13481 osf3* | osf4* | osf5*)
13482 lt_cv_deplibs_check_method=pass_all
13485 rdos*)
13486 lt_cv_deplibs_check_method=pass_all
13489 solaris*)
13490 lt_cv_deplibs_check_method=pass_all
13493 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13494 lt_cv_deplibs_check_method=pass_all
13497 sysv4 | sysv4.3*)
13498 case $host_vendor in
13499 motorola)
13500 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]'
13501 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13503 ncr)
13504 lt_cv_deplibs_check_method=pass_all
13506 sequent)
13507 lt_cv_file_magic_cmd='/bin/file'
13508 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13510 sni)
13511 lt_cv_file_magic_cmd='/bin/file'
13512 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13513 lt_cv_file_magic_test_file=/lib/libc.so
13515 siemens)
13516 lt_cv_deplibs_check_method=pass_all
13519 lt_cv_deplibs_check_method=pass_all
13521 esac
13524 tpf*)
13525 lt_cv_deplibs_check_method=pass_all
13527 esac
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13531 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13532 file_magic_cmd=$lt_cv_file_magic_cmd
13533 deplibs_check_method=$lt_cv_deplibs_check_method
13534 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13547 if test -n "$ac_tool_prefix"; then
13548 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13549 set dummy ${ac_tool_prefix}ar; ac_word=$2
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13551 $as_echo_n "checking for $ac_word... " >&6; }
13552 if test "${ac_cv_prog_AR+set}" = set; then :
13553 $as_echo_n "(cached) " >&6
13554 else
13555 if test -n "$AR"; then
13556 ac_cv_prog_AR="$AR" # Let the user override the test.
13557 else
13558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13559 for as_dir in $PATH
13561 IFS=$as_save_IFS
13562 test -z "$as_dir" && as_dir=.
13563 for ac_exec_ext in '' $ac_executable_extensions; do
13564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13565 ac_cv_prog_AR="${ac_tool_prefix}ar"
13566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13567 break 2
13569 done
13570 done
13571 IFS=$as_save_IFS
13575 AR=$ac_cv_prog_AR
13576 if test -n "$AR"; then
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13578 $as_echo "$AR" >&6; }
13579 else
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13581 $as_echo "no" >&6; }
13586 if test -z "$ac_cv_prog_AR"; then
13587 ac_ct_AR=$AR
13588 # Extract the first word of "ar", so it can be a program name with args.
13589 set dummy ar; ac_word=$2
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13591 $as_echo_n "checking for $ac_word... " >&6; }
13592 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13593 $as_echo_n "(cached) " >&6
13594 else
13595 if test -n "$ac_ct_AR"; then
13596 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13597 else
13598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13599 for as_dir in $PATH
13601 IFS=$as_save_IFS
13602 test -z "$as_dir" && as_dir=.
13603 for ac_exec_ext in '' $ac_executable_extensions; do
13604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13605 ac_cv_prog_ac_ct_AR="ar"
13606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13607 break 2
13609 done
13610 done
13611 IFS=$as_save_IFS
13615 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13616 if test -n "$ac_ct_AR"; then
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13618 $as_echo "$ac_ct_AR" >&6; }
13619 else
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13621 $as_echo "no" >&6; }
13624 if test "x$ac_ct_AR" = x; then
13625 AR="false"
13626 else
13627 case $cross_compiling:$ac_tool_warned in
13628 yes:)
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13631 ac_tool_warned=yes ;;
13632 esac
13633 AR=$ac_ct_AR
13635 else
13636 AR="$ac_cv_prog_AR"
13639 test -z "$AR" && AR=ar
13640 test -z "$AR_FLAGS" && AR_FLAGS=cru
13652 if test -n "$ac_tool_prefix"; then
13653 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13654 set dummy ${ac_tool_prefix}strip; ac_word=$2
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13656 $as_echo_n "checking for $ac_word... " >&6; }
13657 if test "${ac_cv_prog_STRIP+set}" = set; then :
13658 $as_echo_n "(cached) " >&6
13659 else
13660 if test -n "$STRIP"; then
13661 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13662 else
13663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13664 for as_dir in $PATH
13666 IFS=$as_save_IFS
13667 test -z "$as_dir" && as_dir=.
13668 for ac_exec_ext in '' $ac_executable_extensions; do
13669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13670 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13672 break 2
13674 done
13675 done
13676 IFS=$as_save_IFS
13680 STRIP=$ac_cv_prog_STRIP
13681 if test -n "$STRIP"; then
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13683 $as_echo "$STRIP" >&6; }
13684 else
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13686 $as_echo "no" >&6; }
13691 if test -z "$ac_cv_prog_STRIP"; then
13692 ac_ct_STRIP=$STRIP
13693 # Extract the first word of "strip", so it can be a program name with args.
13694 set dummy strip; ac_word=$2
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13696 $as_echo_n "checking for $ac_word... " >&6; }
13697 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13698 $as_echo_n "(cached) " >&6
13699 else
13700 if test -n "$ac_ct_STRIP"; then
13701 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13702 else
13703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13704 for as_dir in $PATH
13706 IFS=$as_save_IFS
13707 test -z "$as_dir" && as_dir=.
13708 for ac_exec_ext in '' $ac_executable_extensions; do
13709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13710 ac_cv_prog_ac_ct_STRIP="strip"
13711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13712 break 2
13714 done
13715 done
13716 IFS=$as_save_IFS
13720 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13721 if test -n "$ac_ct_STRIP"; then
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13723 $as_echo "$ac_ct_STRIP" >&6; }
13724 else
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13726 $as_echo "no" >&6; }
13729 if test "x$ac_ct_STRIP" = x; then
13730 STRIP=":"
13731 else
13732 case $cross_compiling:$ac_tool_warned in
13733 yes:)
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13736 ac_tool_warned=yes ;;
13737 esac
13738 STRIP=$ac_ct_STRIP
13740 else
13741 STRIP="$ac_cv_prog_STRIP"
13744 test -z "$STRIP" && STRIP=:
13751 if test -n "$ac_tool_prefix"; then
13752 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13753 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13755 $as_echo_n "checking for $ac_word... " >&6; }
13756 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13757 $as_echo_n "(cached) " >&6
13758 else
13759 if test -n "$RANLIB"; then
13760 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13761 else
13762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13763 for as_dir in $PATH
13765 IFS=$as_save_IFS
13766 test -z "$as_dir" && as_dir=.
13767 for ac_exec_ext in '' $ac_executable_extensions; do
13768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13769 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13771 break 2
13773 done
13774 done
13775 IFS=$as_save_IFS
13779 RANLIB=$ac_cv_prog_RANLIB
13780 if test -n "$RANLIB"; then
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13782 $as_echo "$RANLIB" >&6; }
13783 else
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13785 $as_echo "no" >&6; }
13790 if test -z "$ac_cv_prog_RANLIB"; then
13791 ac_ct_RANLIB=$RANLIB
13792 # Extract the first word of "ranlib", so it can be a program name with args.
13793 set dummy ranlib; ac_word=$2
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13795 $as_echo_n "checking for $ac_word... " >&6; }
13796 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13797 $as_echo_n "(cached) " >&6
13798 else
13799 if test -n "$ac_ct_RANLIB"; then
13800 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13801 else
13802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13803 for as_dir in $PATH
13805 IFS=$as_save_IFS
13806 test -z "$as_dir" && as_dir=.
13807 for ac_exec_ext in '' $ac_executable_extensions; do
13808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13809 ac_cv_prog_ac_ct_RANLIB="ranlib"
13810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13811 break 2
13813 done
13814 done
13815 IFS=$as_save_IFS
13819 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13820 if test -n "$ac_ct_RANLIB"; then
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13822 $as_echo "$ac_ct_RANLIB" >&6; }
13823 else
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13825 $as_echo "no" >&6; }
13828 if test "x$ac_ct_RANLIB" = x; then
13829 RANLIB=":"
13830 else
13831 case $cross_compiling:$ac_tool_warned in
13832 yes:)
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13835 ac_tool_warned=yes ;;
13836 esac
13837 RANLIB=$ac_ct_RANLIB
13839 else
13840 RANLIB="$ac_cv_prog_RANLIB"
13843 test -z "$RANLIB" && RANLIB=:
13850 # Determine commands to create old-style static archives.
13851 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13852 old_postinstall_cmds='chmod 644 $oldlib'
13853 old_postuninstall_cmds=
13855 if test -n "$RANLIB"; then
13856 case $host_os in
13857 openbsd*)
13858 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13861 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13863 esac
13864 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13867 case $host_os in
13868 darwin*)
13869 lock_old_archive_extraction=yes ;;
13871 lock_old_archive_extraction=no ;;
13872 esac
13912 # If no C compiler was specified, use CC.
13913 LTCC=${LTCC-"$CC"}
13915 # If no C compiler flags were specified, use CFLAGS.
13916 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13918 # Allow CC to be a program name with arguments.
13919 compiler=$CC
13922 # Check for command to grab the raw symbol name followed by C symbol from nm.
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13924 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13925 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13926 $as_echo_n "(cached) " >&6
13927 else
13929 # These are sane defaults that work on at least a few old systems.
13930 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13932 # Character class describing NM global symbol codes.
13933 symcode='[BCDEGRST]'
13935 # Regexp to match symbols that can be accessed directly from C.
13936 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13938 # Define system-specific variables.
13939 case $host_os in
13940 aix*)
13941 symcode='[BCDT]'
13943 cygwin* | mingw* | pw32* | cegcc*)
13944 symcode='[ABCDGISTW]'
13946 hpux*)
13947 if test "$host_cpu" = ia64; then
13948 symcode='[ABCDEGRST]'
13951 irix* | nonstopux*)
13952 symcode='[BCDEGRST]'
13954 osf*)
13955 symcode='[BCDEGQRST]'
13957 solaris*)
13958 symcode='[BDRT]'
13960 sco3.2v5*)
13961 symcode='[DT]'
13963 sysv4.2uw2*)
13964 symcode='[DT]'
13966 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13967 symcode='[ABDT]'
13969 sysv4)
13970 symcode='[DFNSTU]'
13972 esac
13974 # If we're using GNU nm, then use its standard symbol codes.
13975 case `$NM -V 2>&1` in
13976 *GNU* | *'with BFD'*)
13977 symcode='[ABCDGIRSTW]' ;;
13978 esac
13980 # Transform an extracted symbol line into a proper C declaration.
13981 # Some systems (esp. on ia64) link data and code symbols differently,
13982 # so use this general approach.
13983 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13985 # Transform an extracted symbol line into symbol name and symbol address
13986 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13987 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'"
13989 # Handle CRLF in mingw tool chain
13990 opt_cr=
13991 case $build_os in
13992 mingw*)
13993 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13995 esac
13997 # Try without a prefix underscore, then with it.
13998 for ac_symprfx in "" "_"; do
14000 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14001 symxfrm="\\1 $ac_symprfx\\2 \\2"
14003 # Write the raw and C identifiers.
14004 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14005 # Fake it for dumpbin and say T for any non-static function
14006 # and D for any global variable.
14007 # Also find C++ and __fastcall symbols from MSVC++,
14008 # which start with @ or ?.
14009 lt_cv_sys_global_symbol_pipe="$AWK '"\
14010 " {last_section=section; section=\$ 3};"\
14011 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14012 " \$ 0!~/External *\|/{next};"\
14013 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14014 " {if(hide[section]) next};"\
14015 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14016 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14017 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14018 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14019 " ' prfx=^$ac_symprfx"
14020 else
14021 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14024 # Check to see that the pipe works correctly.
14025 pipe_works=no
14027 rm -f conftest*
14028 cat > conftest.$ac_ext <<_LT_EOF
14029 #ifdef __cplusplus
14030 extern "C" {
14031 #endif
14032 char nm_test_var;
14033 void nm_test_func(void);
14034 void nm_test_func(void){}
14035 #ifdef __cplusplus
14037 #endif
14038 int main(){nm_test_var='a';nm_test_func();return(0);}
14039 _LT_EOF
14041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14042 (eval $ac_compile) 2>&5
14043 ac_status=$?
14044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14045 test $ac_status = 0; }; then
14046 # Now try to grab the symbols.
14047 nlist=conftest.nm
14048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14049 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14050 ac_status=$?
14051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14052 test $ac_status = 0; } && test -s "$nlist"; then
14053 # Try sorting and uniquifying the output.
14054 if sort "$nlist" | uniq > "$nlist"T; then
14055 mv -f "$nlist"T "$nlist"
14056 else
14057 rm -f "$nlist"T
14060 # Make sure that we snagged all the symbols we need.
14061 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14062 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14063 cat <<_LT_EOF > conftest.$ac_ext
14064 #ifdef __cplusplus
14065 extern "C" {
14066 #endif
14068 _LT_EOF
14069 # Now generate the symbol file.
14070 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14072 cat <<_LT_EOF >> conftest.$ac_ext
14074 /* The mapping between symbol names and symbols. */
14075 const struct {
14076 const char *name;
14077 void *address;
14079 lt__PROGRAM__LTX_preloaded_symbols[] =
14081 { "@PROGRAM@", (void *) 0 },
14082 _LT_EOF
14083 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14084 cat <<\_LT_EOF >> conftest.$ac_ext
14085 {0, (void *) 0}
14088 /* This works around a problem in FreeBSD linker */
14089 #ifdef FREEBSD_WORKAROUND
14090 static const void *lt_preloaded_setup() {
14091 return lt__PROGRAM__LTX_preloaded_symbols;
14093 #endif
14095 #ifdef __cplusplus
14097 #endif
14098 _LT_EOF
14099 # Now try linking the two files.
14100 mv conftest.$ac_objext conftstm.$ac_objext
14101 lt_save_LIBS="$LIBS"
14102 lt_save_CFLAGS="$CFLAGS"
14103 LIBS="conftstm.$ac_objext"
14104 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14106 (eval $ac_link) 2>&5
14107 ac_status=$?
14108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14109 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14110 pipe_works=yes
14112 LIBS="$lt_save_LIBS"
14113 CFLAGS="$lt_save_CFLAGS"
14114 else
14115 echo "cannot find nm_test_func in $nlist" >&5
14117 else
14118 echo "cannot find nm_test_var in $nlist" >&5
14120 else
14121 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14123 else
14124 echo "$progname: failed program was:" >&5
14125 cat conftest.$ac_ext >&5
14127 rm -rf conftest* conftst*
14129 # Do not use the global_symbol_pipe unless it works.
14130 if test "$pipe_works" = yes; then
14131 break
14132 else
14133 lt_cv_sys_global_symbol_pipe=
14135 done
14139 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14140 lt_cv_sys_global_symbol_to_cdecl=
14142 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14144 $as_echo "failed" >&6; }
14145 else
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14147 $as_echo "ok" >&6; }
14171 # Check whether --enable-libtool-lock was given.
14172 if test "${enable_libtool_lock+set}" = set; then :
14173 enableval=$enable_libtool_lock;
14176 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14178 # Some flags need to be propagated to the compiler or linker for good
14179 # libtool support.
14180 case $host in
14181 ia64-*-hpux*)
14182 # Find out which ABI we are using.
14183 echo 'int i;' > conftest.$ac_ext
14184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14185 (eval $ac_compile) 2>&5
14186 ac_status=$?
14187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14188 test $ac_status = 0; }; then
14189 case `/usr/bin/file conftest.$ac_objext` in
14190 *ELF-32*)
14191 HPUX_IA64_MODE="32"
14193 *ELF-64*)
14194 HPUX_IA64_MODE="64"
14196 esac
14198 rm -rf conftest*
14200 *-*-irix6*)
14201 # Find out which ABI we are using.
14202 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14204 (eval $ac_compile) 2>&5
14205 ac_status=$?
14206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14207 test $ac_status = 0; }; then
14208 if test "$lt_cv_prog_gnu_ld" = yes; then
14209 case `/usr/bin/file conftest.$ac_objext` in
14210 *32-bit*)
14211 LD="${LD-ld} -melf32bsmip"
14213 *N32*)
14214 LD="${LD-ld} -melf32bmipn32"
14216 *64-bit*)
14217 LD="${LD-ld} -melf64bmip"
14219 esac
14220 else
14221 case `/usr/bin/file conftest.$ac_objext` in
14222 *32-bit*)
14223 LD="${LD-ld} -32"
14225 *N32*)
14226 LD="${LD-ld} -n32"
14228 *64-bit*)
14229 LD="${LD-ld} -64"
14231 esac
14234 rm -rf conftest*
14237 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14238 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14239 # Find out which ABI we are using.
14240 echo 'int i;' > conftest.$ac_ext
14241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14242 (eval $ac_compile) 2>&5
14243 ac_status=$?
14244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14245 test $ac_status = 0; }; then
14246 case `/usr/bin/file conftest.o` in
14247 *32-bit*)
14248 case $host in
14249 x86_64-*kfreebsd*-gnu)
14250 LD="${LD-ld} -m elf_i386_fbsd"
14252 x86_64-*linux*)
14253 case `/usr/bin/file conftest.o` in
14254 *x86-64*)
14255 LD="${LD-ld} -m elf32_x86_64"
14258 LD="${LD-ld} -m elf_i386"
14260 esac
14262 powerpc64le-*linux*)
14263 LD="${LD-ld} -m elf32lppclinux"
14265 powerpc64-*linux*)
14266 LD="${LD-ld} -m elf32ppclinux"
14268 s390x-*linux*)
14269 LD="${LD-ld} -m elf_s390"
14271 sparc64-*linux*)
14272 LD="${LD-ld} -m elf32_sparc"
14274 esac
14276 *64-bit*)
14277 case $host in
14278 x86_64-*kfreebsd*-gnu)
14279 LD="${LD-ld} -m elf_x86_64_fbsd"
14281 x86_64-*linux*)
14282 LD="${LD-ld} -m elf_x86_64"
14284 powerpcle-*linux*)
14285 LD="${LD-ld} -m elf64lppc"
14287 powerpc-*linux*)
14288 LD="${LD-ld} -m elf64ppc"
14290 s390*-*linux*|s390*-*tpf*)
14291 LD="${LD-ld} -m elf64_s390"
14293 sparc*-*linux*)
14294 LD="${LD-ld} -m elf64_sparc"
14296 esac
14298 esac
14300 rm -rf conftest*
14303 *-*-sco3.2v5*)
14304 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14305 SAVE_CFLAGS="$CFLAGS"
14306 CFLAGS="$CFLAGS -belf"
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14308 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14309 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14310 $as_echo_n "(cached) " >&6
14311 else
14312 ac_ext=c
14313 ac_cpp='$CPP $CPPFLAGS'
14314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14319 /* end confdefs.h. */
14322 main ()
14326 return 0;
14328 _ACEOF
14329 if ac_fn_c_try_link "$LINENO"; then :
14330 lt_cv_cc_needs_belf=yes
14331 else
14332 lt_cv_cc_needs_belf=no
14334 rm -f core conftest.err conftest.$ac_objext \
14335 conftest$ac_exeext conftest.$ac_ext
14336 ac_ext=c
14337 ac_cpp='$CPP $CPPFLAGS'
14338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14344 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14345 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14346 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14347 CFLAGS="$SAVE_CFLAGS"
14350 sparc*-*solaris*)
14351 # Find out which ABI we are using.
14352 echo 'int i;' > conftest.$ac_ext
14353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14354 (eval $ac_compile) 2>&5
14355 ac_status=$?
14356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14357 test $ac_status = 0; }; then
14358 case `/usr/bin/file conftest.o` in
14359 *64-bit*)
14360 case $lt_cv_prog_gnu_ld in
14361 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14363 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14364 LD="${LD-ld} -64"
14367 esac
14369 esac
14371 rm -rf conftest*
14373 esac
14375 need_locks="$enable_libtool_lock"
14378 case $host_os in
14379 rhapsody* | darwin*)
14380 if test -n "$ac_tool_prefix"; then
14381 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14382 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14384 $as_echo_n "checking for $ac_word... " >&6; }
14385 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14386 $as_echo_n "(cached) " >&6
14387 else
14388 if test -n "$DSYMUTIL"; then
14389 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14390 else
14391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14392 for as_dir in $PATH
14394 IFS=$as_save_IFS
14395 test -z "$as_dir" && as_dir=.
14396 for ac_exec_ext in '' $ac_executable_extensions; do
14397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14398 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14400 break 2
14402 done
14403 done
14404 IFS=$as_save_IFS
14408 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14409 if test -n "$DSYMUTIL"; then
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14411 $as_echo "$DSYMUTIL" >&6; }
14412 else
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14414 $as_echo "no" >&6; }
14419 if test -z "$ac_cv_prog_DSYMUTIL"; then
14420 ac_ct_DSYMUTIL=$DSYMUTIL
14421 # Extract the first word of "dsymutil", so it can be a program name with args.
14422 set dummy dsymutil; ac_word=$2
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14424 $as_echo_n "checking for $ac_word... " >&6; }
14425 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14426 $as_echo_n "(cached) " >&6
14427 else
14428 if test -n "$ac_ct_DSYMUTIL"; then
14429 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14430 else
14431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14432 for as_dir in $PATH
14434 IFS=$as_save_IFS
14435 test -z "$as_dir" && as_dir=.
14436 for ac_exec_ext in '' $ac_executable_extensions; do
14437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14438 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14440 break 2
14442 done
14443 done
14444 IFS=$as_save_IFS
14448 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14449 if test -n "$ac_ct_DSYMUTIL"; then
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14451 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14452 else
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14454 $as_echo "no" >&6; }
14457 if test "x$ac_ct_DSYMUTIL" = x; then
14458 DSYMUTIL=":"
14459 else
14460 case $cross_compiling:$ac_tool_warned in
14461 yes:)
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14464 ac_tool_warned=yes ;;
14465 esac
14466 DSYMUTIL=$ac_ct_DSYMUTIL
14468 else
14469 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14472 if test -n "$ac_tool_prefix"; then
14473 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14474 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14476 $as_echo_n "checking for $ac_word... " >&6; }
14477 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14478 $as_echo_n "(cached) " >&6
14479 else
14480 if test -n "$NMEDIT"; then
14481 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14482 else
14483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14484 for as_dir in $PATH
14486 IFS=$as_save_IFS
14487 test -z "$as_dir" && as_dir=.
14488 for ac_exec_ext in '' $ac_executable_extensions; do
14489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14490 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14492 break 2
14494 done
14495 done
14496 IFS=$as_save_IFS
14500 NMEDIT=$ac_cv_prog_NMEDIT
14501 if test -n "$NMEDIT"; then
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14503 $as_echo "$NMEDIT" >&6; }
14504 else
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14506 $as_echo "no" >&6; }
14511 if test -z "$ac_cv_prog_NMEDIT"; then
14512 ac_ct_NMEDIT=$NMEDIT
14513 # Extract the first word of "nmedit", so it can be a program name with args.
14514 set dummy nmedit; ac_word=$2
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14516 $as_echo_n "checking for $ac_word... " >&6; }
14517 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14518 $as_echo_n "(cached) " >&6
14519 else
14520 if test -n "$ac_ct_NMEDIT"; then
14521 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14522 else
14523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14524 for as_dir in $PATH
14526 IFS=$as_save_IFS
14527 test -z "$as_dir" && as_dir=.
14528 for ac_exec_ext in '' $ac_executable_extensions; do
14529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14530 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14532 break 2
14534 done
14535 done
14536 IFS=$as_save_IFS
14540 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14541 if test -n "$ac_ct_NMEDIT"; then
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14543 $as_echo "$ac_ct_NMEDIT" >&6; }
14544 else
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14546 $as_echo "no" >&6; }
14549 if test "x$ac_ct_NMEDIT" = x; then
14550 NMEDIT=":"
14551 else
14552 case $cross_compiling:$ac_tool_warned in
14553 yes:)
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14556 ac_tool_warned=yes ;;
14557 esac
14558 NMEDIT=$ac_ct_NMEDIT
14560 else
14561 NMEDIT="$ac_cv_prog_NMEDIT"
14564 if test -n "$ac_tool_prefix"; then
14565 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14566 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14568 $as_echo_n "checking for $ac_word... " >&6; }
14569 if test "${ac_cv_prog_LIPO+set}" = set; then :
14570 $as_echo_n "(cached) " >&6
14571 else
14572 if test -n "$LIPO"; then
14573 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14574 else
14575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14576 for as_dir in $PATH
14578 IFS=$as_save_IFS
14579 test -z "$as_dir" && as_dir=.
14580 for ac_exec_ext in '' $ac_executable_extensions; do
14581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14582 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14584 break 2
14586 done
14587 done
14588 IFS=$as_save_IFS
14592 LIPO=$ac_cv_prog_LIPO
14593 if test -n "$LIPO"; then
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14595 $as_echo "$LIPO" >&6; }
14596 else
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14598 $as_echo "no" >&6; }
14603 if test -z "$ac_cv_prog_LIPO"; then
14604 ac_ct_LIPO=$LIPO
14605 # Extract the first word of "lipo", so it can be a program name with args.
14606 set dummy lipo; ac_word=$2
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14608 $as_echo_n "checking for $ac_word... " >&6; }
14609 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14610 $as_echo_n "(cached) " >&6
14611 else
14612 if test -n "$ac_ct_LIPO"; then
14613 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14614 else
14615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14616 for as_dir in $PATH
14618 IFS=$as_save_IFS
14619 test -z "$as_dir" && as_dir=.
14620 for ac_exec_ext in '' $ac_executable_extensions; do
14621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14622 ac_cv_prog_ac_ct_LIPO="lipo"
14623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14624 break 2
14626 done
14627 done
14628 IFS=$as_save_IFS
14632 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14633 if test -n "$ac_ct_LIPO"; then
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14635 $as_echo "$ac_ct_LIPO" >&6; }
14636 else
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14638 $as_echo "no" >&6; }
14641 if test "x$ac_ct_LIPO" = x; then
14642 LIPO=":"
14643 else
14644 case $cross_compiling:$ac_tool_warned in
14645 yes:)
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14648 ac_tool_warned=yes ;;
14649 esac
14650 LIPO=$ac_ct_LIPO
14652 else
14653 LIPO="$ac_cv_prog_LIPO"
14656 if test -n "$ac_tool_prefix"; then
14657 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14658 set dummy ${ac_tool_prefix}otool; ac_word=$2
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14660 $as_echo_n "checking for $ac_word... " >&6; }
14661 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14662 $as_echo_n "(cached) " >&6
14663 else
14664 if test -n "$OTOOL"; then
14665 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14666 else
14667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14668 for as_dir in $PATH
14670 IFS=$as_save_IFS
14671 test -z "$as_dir" && as_dir=.
14672 for ac_exec_ext in '' $ac_executable_extensions; do
14673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14674 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14676 break 2
14678 done
14679 done
14680 IFS=$as_save_IFS
14684 OTOOL=$ac_cv_prog_OTOOL
14685 if test -n "$OTOOL"; then
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14687 $as_echo "$OTOOL" >&6; }
14688 else
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14690 $as_echo "no" >&6; }
14695 if test -z "$ac_cv_prog_OTOOL"; then
14696 ac_ct_OTOOL=$OTOOL
14697 # Extract the first word of "otool", so it can be a program name with args.
14698 set dummy otool; ac_word=$2
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14700 $as_echo_n "checking for $ac_word... " >&6; }
14701 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14702 $as_echo_n "(cached) " >&6
14703 else
14704 if test -n "$ac_ct_OTOOL"; then
14705 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14706 else
14707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14708 for as_dir in $PATH
14710 IFS=$as_save_IFS
14711 test -z "$as_dir" && as_dir=.
14712 for ac_exec_ext in '' $ac_executable_extensions; do
14713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14714 ac_cv_prog_ac_ct_OTOOL="otool"
14715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14716 break 2
14718 done
14719 done
14720 IFS=$as_save_IFS
14724 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14725 if test -n "$ac_ct_OTOOL"; then
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14727 $as_echo "$ac_ct_OTOOL" >&6; }
14728 else
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14730 $as_echo "no" >&6; }
14733 if test "x$ac_ct_OTOOL" = x; then
14734 OTOOL=":"
14735 else
14736 case $cross_compiling:$ac_tool_warned in
14737 yes:)
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14740 ac_tool_warned=yes ;;
14741 esac
14742 OTOOL=$ac_ct_OTOOL
14744 else
14745 OTOOL="$ac_cv_prog_OTOOL"
14748 if test -n "$ac_tool_prefix"; then
14749 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14750 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14752 $as_echo_n "checking for $ac_word... " >&6; }
14753 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14754 $as_echo_n "(cached) " >&6
14755 else
14756 if test -n "$OTOOL64"; then
14757 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14758 else
14759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14760 for as_dir in $PATH
14762 IFS=$as_save_IFS
14763 test -z "$as_dir" && as_dir=.
14764 for ac_exec_ext in '' $ac_executable_extensions; do
14765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14766 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14768 break 2
14770 done
14771 done
14772 IFS=$as_save_IFS
14776 OTOOL64=$ac_cv_prog_OTOOL64
14777 if test -n "$OTOOL64"; then
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14779 $as_echo "$OTOOL64" >&6; }
14780 else
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14782 $as_echo "no" >&6; }
14787 if test -z "$ac_cv_prog_OTOOL64"; then
14788 ac_ct_OTOOL64=$OTOOL64
14789 # Extract the first word of "otool64", so it can be a program name with args.
14790 set dummy otool64; ac_word=$2
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14792 $as_echo_n "checking for $ac_word... " >&6; }
14793 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14794 $as_echo_n "(cached) " >&6
14795 else
14796 if test -n "$ac_ct_OTOOL64"; then
14797 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14798 else
14799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14800 for as_dir in $PATH
14802 IFS=$as_save_IFS
14803 test -z "$as_dir" && as_dir=.
14804 for ac_exec_ext in '' $ac_executable_extensions; do
14805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14806 ac_cv_prog_ac_ct_OTOOL64="otool64"
14807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14808 break 2
14810 done
14811 done
14812 IFS=$as_save_IFS
14816 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14817 if test -n "$ac_ct_OTOOL64"; then
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14819 $as_echo "$ac_ct_OTOOL64" >&6; }
14820 else
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14822 $as_echo "no" >&6; }
14825 if test "x$ac_ct_OTOOL64" = x; then
14826 OTOOL64=":"
14827 else
14828 case $cross_compiling:$ac_tool_warned in
14829 yes:)
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14832 ac_tool_warned=yes ;;
14833 esac
14834 OTOOL64=$ac_ct_OTOOL64
14836 else
14837 OTOOL64="$ac_cv_prog_OTOOL64"
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14867 $as_echo_n "checking for -single_module linker flag... " >&6; }
14868 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14869 $as_echo_n "(cached) " >&6
14870 else
14871 lt_cv_apple_cc_single_mod=no
14872 if test -z "${LT_MULTI_MODULE}"; then
14873 # By default we will add the -single_module flag. You can override
14874 # by either setting the environment variable LT_MULTI_MODULE
14875 # non-empty at configure time, or by adding -multi_module to the
14876 # link flags.
14877 rm -rf libconftest.dylib*
14878 echo "int foo(void){return 1;}" > conftest.c
14879 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14880 -dynamiclib -Wl,-single_module conftest.c" >&5
14881 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14882 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14883 _lt_result=$?
14884 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14885 lt_cv_apple_cc_single_mod=yes
14886 else
14887 cat conftest.err >&5
14889 rm -rf libconftest.dylib*
14890 rm -f conftest.*
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14894 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14896 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14897 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14898 $as_echo_n "(cached) " >&6
14899 else
14900 lt_cv_ld_exported_symbols_list=no
14901 save_LDFLAGS=$LDFLAGS
14902 echo "_main" > conftest.sym
14903 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14905 /* end confdefs.h. */
14908 main ()
14912 return 0;
14914 _ACEOF
14915 if ac_fn_c_try_link "$LINENO"; then :
14916 lt_cv_ld_exported_symbols_list=yes
14917 else
14918 lt_cv_ld_exported_symbols_list=no
14920 rm -f core conftest.err conftest.$ac_objext \
14921 conftest$ac_exeext conftest.$ac_ext
14922 LDFLAGS="$save_LDFLAGS"
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14926 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14928 $as_echo_n "checking for -force_load linker flag... " >&6; }
14929 if test "${lt_cv_ld_force_load+set}" = set; then :
14930 $as_echo_n "(cached) " >&6
14931 else
14932 lt_cv_ld_force_load=no
14933 cat > conftest.c << _LT_EOF
14934 int forced_loaded() { return 2;}
14935 _LT_EOF
14936 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14937 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14938 echo "$AR cru libconftest.a conftest.o" >&5
14939 $AR cru libconftest.a conftest.o 2>&5
14940 cat > conftest.c << _LT_EOF
14941 int main() { return 0;}
14942 _LT_EOF
14943 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14944 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14945 _lt_result=$?
14946 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14947 lt_cv_ld_force_load=yes
14948 else
14949 cat conftest.err >&5
14951 rm -f conftest.err libconftest.a conftest conftest.c
14952 rm -rf conftest.dSYM
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14956 $as_echo "$lt_cv_ld_force_load" >&6; }
14957 case $host_os in
14958 rhapsody* | darwin1.[012])
14959 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14960 darwin1.*)
14961 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14962 darwin*) # darwin 5.x on
14963 # if running on 10.5 or later, the deployment target defaults
14964 # to the OS version, if on x86, and 10.4, the deployment
14965 # target defaults to 10.4. Don't you love it?
14966 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14967 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14968 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14969 10.[012][,.]*)
14970 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14971 10.*)
14972 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14973 esac
14975 esac
14976 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14977 _lt_dar_single_mod='$single_module'
14979 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14980 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14981 else
14982 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14984 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14985 _lt_dsymutil='~$DSYMUTIL $lib || :'
14986 else
14987 _lt_dsymutil=
14990 esac
14993 for ac_header in dlfcn.h
14994 do :
14995 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14996 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14997 cat >>confdefs.h <<_ACEOF
14998 #define HAVE_DLFCN_H 1
14999 _ACEOF
15002 done
15008 # Set options
15012 enable_dlopen=no
15015 enable_win32_dll=no
15018 # Check whether --enable-shared was given.
15019 if test "${enable_shared+set}" = set; then :
15020 enableval=$enable_shared; p=${PACKAGE-default}
15021 case $enableval in
15022 yes) enable_shared=yes ;;
15023 no) enable_shared=no ;;
15025 enable_shared=no
15026 # Look at the argument we got. We use all the common list separators.
15027 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15028 for pkg in $enableval; do
15029 IFS="$lt_save_ifs"
15030 if test "X$pkg" = "X$p"; then
15031 enable_shared=yes
15033 done
15034 IFS="$lt_save_ifs"
15036 esac
15037 else
15038 enable_shared=yes
15049 # Check whether --enable-static was given.
15050 if test "${enable_static+set}" = set; then :
15051 enableval=$enable_static; p=${PACKAGE-default}
15052 case $enableval in
15053 yes) enable_static=yes ;;
15054 no) enable_static=no ;;
15056 enable_static=no
15057 # Look at the argument we got. We use all the common list separators.
15058 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15059 for pkg in $enableval; do
15060 IFS="$lt_save_ifs"
15061 if test "X$pkg" = "X$p"; then
15062 enable_static=yes
15064 done
15065 IFS="$lt_save_ifs"
15067 esac
15068 else
15069 enable_static=yes
15081 # Check whether --with-pic was given.
15082 if test "${with_pic+set}" = set; then :
15083 withval=$with_pic; pic_mode="$withval"
15084 else
15085 pic_mode=default
15089 test -z "$pic_mode" && pic_mode=default
15097 # Check whether --enable-fast-install was given.
15098 if test "${enable_fast_install+set}" = set; then :
15099 enableval=$enable_fast_install; p=${PACKAGE-default}
15100 case $enableval in
15101 yes) enable_fast_install=yes ;;
15102 no) enable_fast_install=no ;;
15104 enable_fast_install=no
15105 # Look at the argument we got. We use all the common list separators.
15106 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15107 for pkg in $enableval; do
15108 IFS="$lt_save_ifs"
15109 if test "X$pkg" = "X$p"; then
15110 enable_fast_install=yes
15112 done
15113 IFS="$lt_save_ifs"
15115 esac
15116 else
15117 enable_fast_install=yes
15130 # This can be used to rebuild libtool when needed
15131 LIBTOOL_DEPS="$ltmain"
15133 # Always use our own libtool.
15134 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15161 test -z "$LN_S" && LN_S="ln -s"
15176 if test -n "${ZSH_VERSION+set}" ; then
15177 setopt NO_GLOB_SUBST
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15181 $as_echo_n "checking for objdir... " >&6; }
15182 if test "${lt_cv_objdir+set}" = set; then :
15183 $as_echo_n "(cached) " >&6
15184 else
15185 rm -f .libs 2>/dev/null
15186 mkdir .libs 2>/dev/null
15187 if test -d .libs; then
15188 lt_cv_objdir=.libs
15189 else
15190 # MS-DOS does not allow filenames that begin with a dot.
15191 lt_cv_objdir=_libs
15193 rmdir .libs 2>/dev/null
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15196 $as_echo "$lt_cv_objdir" >&6; }
15197 objdir=$lt_cv_objdir
15203 cat >>confdefs.h <<_ACEOF
15204 #define LT_OBJDIR "$lt_cv_objdir/"
15205 _ACEOF
15210 case $host_os in
15211 aix3*)
15212 # AIX sometimes has problems with the GCC collect2 program. For some
15213 # reason, if we set the COLLECT_NAMES environment variable, the problems
15214 # vanish in a puff of smoke.
15215 if test "X${COLLECT_NAMES+set}" != Xset; then
15216 COLLECT_NAMES=
15217 export COLLECT_NAMES
15220 esac
15222 # Global variables:
15223 ofile=libtool
15224 can_build_shared=yes
15226 # All known linkers require a `.a' archive for static linking (except MSVC,
15227 # which needs '.lib').
15228 libext=a
15230 with_gnu_ld="$lt_cv_prog_gnu_ld"
15232 old_CC="$CC"
15233 old_CFLAGS="$CFLAGS"
15235 # Set sane defaults for various variables
15236 test -z "$CC" && CC=cc
15237 test -z "$LTCC" && LTCC=$CC
15238 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15239 test -z "$LD" && LD=ld
15240 test -z "$ac_objext" && ac_objext=o
15242 for cc_temp in $compiler""; do
15243 case $cc_temp in
15244 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15245 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15246 \-*) ;;
15247 *) break;;
15248 esac
15249 done
15250 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15253 # Only perform the check for file, if the check method requires it
15254 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15255 case $deplibs_check_method in
15256 file_magic*)
15257 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15259 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15260 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15261 $as_echo_n "(cached) " >&6
15262 else
15263 case $MAGIC_CMD in
15264 [\\/*] | ?:[\\/]*)
15265 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15268 lt_save_MAGIC_CMD="$MAGIC_CMD"
15269 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15270 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15271 for ac_dir in $ac_dummy; do
15272 IFS="$lt_save_ifs"
15273 test -z "$ac_dir" && ac_dir=.
15274 if test -f $ac_dir/${ac_tool_prefix}file; then
15275 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15276 if test -n "$file_magic_test_file"; then
15277 case $deplibs_check_method in
15278 "file_magic "*)
15279 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15280 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15281 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15282 $EGREP "$file_magic_regex" > /dev/null; then
15284 else
15285 cat <<_LT_EOF 1>&2
15287 *** Warning: the command libtool uses to detect shared libraries,
15288 *** $file_magic_cmd, produces output that libtool cannot recognize.
15289 *** The result is that libtool may fail to recognize shared libraries
15290 *** as such. This will affect the creation of libtool libraries that
15291 *** depend on shared libraries, but programs linked with such libtool
15292 *** libraries will work regardless of this problem. Nevertheless, you
15293 *** may want to report the problem to your system manager and/or to
15294 *** bug-libtool@gnu.org
15296 _LT_EOF
15297 fi ;;
15298 esac
15300 break
15302 done
15303 IFS="$lt_save_ifs"
15304 MAGIC_CMD="$lt_save_MAGIC_CMD"
15306 esac
15309 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15310 if test -n "$MAGIC_CMD"; then
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15312 $as_echo "$MAGIC_CMD" >&6; }
15313 else
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15315 $as_echo "no" >&6; }
15322 if test -z "$lt_cv_path_MAGIC_CMD"; then
15323 if test -n "$ac_tool_prefix"; then
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15325 $as_echo_n "checking for file... " >&6; }
15326 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15327 $as_echo_n "(cached) " >&6
15328 else
15329 case $MAGIC_CMD in
15330 [\\/*] | ?:[\\/]*)
15331 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15334 lt_save_MAGIC_CMD="$MAGIC_CMD"
15335 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15336 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15337 for ac_dir in $ac_dummy; do
15338 IFS="$lt_save_ifs"
15339 test -z "$ac_dir" && ac_dir=.
15340 if test -f $ac_dir/file; then
15341 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15342 if test -n "$file_magic_test_file"; then
15343 case $deplibs_check_method in
15344 "file_magic "*)
15345 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15346 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15347 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15348 $EGREP "$file_magic_regex" > /dev/null; then
15350 else
15351 cat <<_LT_EOF 1>&2
15353 *** Warning: the command libtool uses to detect shared libraries,
15354 *** $file_magic_cmd, produces output that libtool cannot recognize.
15355 *** The result is that libtool may fail to recognize shared libraries
15356 *** as such. This will affect the creation of libtool libraries that
15357 *** depend on shared libraries, but programs linked with such libtool
15358 *** libraries will work regardless of this problem. Nevertheless, you
15359 *** may want to report the problem to your system manager and/or to
15360 *** bug-libtool@gnu.org
15362 _LT_EOF
15363 fi ;;
15364 esac
15366 break
15368 done
15369 IFS="$lt_save_ifs"
15370 MAGIC_CMD="$lt_save_MAGIC_CMD"
15372 esac
15375 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15376 if test -n "$MAGIC_CMD"; then
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15378 $as_echo "$MAGIC_CMD" >&6; }
15379 else
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15381 $as_echo "no" >&6; }
15385 else
15386 MAGIC_CMD=:
15392 esac
15394 # Use C for the default configuration in the libtool script
15396 lt_save_CC="$CC"
15397 ac_ext=c
15398 ac_cpp='$CPP $CPPFLAGS'
15399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15404 # Source file extension for C test sources.
15405 ac_ext=c
15407 # Object file extension for compiled C test sources.
15408 objext=o
15409 objext=$objext
15411 # Code to be used in simple compile tests
15412 lt_simple_compile_test_code="int some_variable = 0;"
15414 # Code to be used in simple link tests
15415 lt_simple_link_test_code='int main(){return(0);}'
15423 # If no C compiler was specified, use CC.
15424 LTCC=${LTCC-"$CC"}
15426 # If no C compiler flags were specified, use CFLAGS.
15427 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15429 # Allow CC to be a program name with arguments.
15430 compiler=$CC
15432 # Save the default compiler, since it gets overwritten when the other
15433 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15434 compiler_DEFAULT=$CC
15436 # save warnings/boilerplate of simple test code
15437 ac_outfile=conftest.$ac_objext
15438 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15439 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15440 _lt_compiler_boilerplate=`cat conftest.err`
15441 $RM conftest*
15443 ac_outfile=conftest.$ac_objext
15444 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15445 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15446 _lt_linker_boilerplate=`cat conftest.err`
15447 $RM -r conftest*
15450 ## CAVEAT EMPTOR:
15451 ## There is no encapsulation within the following macros, do not change
15452 ## the running order or otherwise move them around unless you know exactly
15453 ## what you are doing...
15454 if test -n "$compiler"; then
15456 lt_prog_compiler_no_builtin_flag=
15458 if test "$GCC" = yes; then
15459 case $cc_basename in
15460 nvcc*)
15461 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15463 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15464 esac
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15467 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15468 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15469 $as_echo_n "(cached) " >&6
15470 else
15471 lt_cv_prog_compiler_rtti_exceptions=no
15472 ac_outfile=conftest.$ac_objext
15473 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15474 lt_compiler_flag="-fno-rtti -fno-exceptions"
15475 # Insert the option either (1) after the last *FLAGS variable, or
15476 # (2) before a word containing "conftest.", or (3) at the end.
15477 # Note that $ac_compile itself does not contain backslashes and begins
15478 # with a dollar sign (not a hyphen), so the echo should work correctly.
15479 # The option is referenced via a variable to avoid confusing sed.
15480 lt_compile=`echo "$ac_compile" | $SED \
15481 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15483 -e 's:$: $lt_compiler_flag:'`
15484 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15485 (eval "$lt_compile" 2>conftest.err)
15486 ac_status=$?
15487 cat conftest.err >&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 if (exit $ac_status) && test -s "$ac_outfile"; then
15490 # The compiler can only warn and ignore the option if not recognized
15491 # So say no if there are warnings other than the usual output.
15492 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15494 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15495 lt_cv_prog_compiler_rtti_exceptions=yes
15498 $RM conftest*
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15502 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15504 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15505 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15506 else
15517 lt_prog_compiler_wl=
15518 lt_prog_compiler_pic=
15519 lt_prog_compiler_static=
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15522 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15524 if test "$GCC" = yes; then
15525 lt_prog_compiler_wl='-Wl,'
15526 lt_prog_compiler_static='-static'
15528 case $host_os in
15529 aix*)
15530 # All AIX code is PIC.
15531 if test "$host_cpu" = ia64; then
15532 # AIX 5 now supports IA64 processor
15533 lt_prog_compiler_static='-Bstatic'
15535 lt_prog_compiler_pic='-fPIC'
15538 amigaos*)
15539 case $host_cpu in
15540 powerpc)
15541 # see comment about AmigaOS4 .so support
15542 lt_prog_compiler_pic='-fPIC'
15544 m68k)
15545 # FIXME: we need at least 68020 code to build shared libraries, but
15546 # adding the `-m68020' flag to GCC prevents building anything better,
15547 # like `-m68040'.
15548 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15550 esac
15553 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15554 # PIC is the default for these OSes.
15557 mingw* | cygwin* | pw32* | os2* | cegcc*)
15558 # This hack is so that the source file can tell whether it is being
15559 # built for inclusion in a dll (and should export symbols for example).
15560 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15561 # (--disable-auto-import) libraries
15562 lt_prog_compiler_pic='-DDLL_EXPORT'
15565 darwin* | rhapsody*)
15566 # PIC is the default on this platform
15567 # Common symbols not allowed in MH_DYLIB files
15568 lt_prog_compiler_pic='-fno-common'
15571 haiku*)
15572 # PIC is the default for Haiku.
15573 # The "-static" flag exists, but is broken.
15574 lt_prog_compiler_static=
15577 hpux*)
15578 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15579 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15580 # sets the default TLS model and affects inlining.
15581 case $host_cpu in
15582 hppa*64*)
15583 # +Z the default
15586 lt_prog_compiler_pic='-fPIC'
15588 esac
15591 interix[3-9]*)
15592 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15593 # Instead, we relocate shared libraries at runtime.
15596 msdosdjgpp*)
15597 # Just because we use GCC doesn't mean we suddenly get shared libraries
15598 # on systems that don't support them.
15599 lt_prog_compiler_can_build_shared=no
15600 enable_shared=no
15603 *nto* | *qnx*)
15604 # QNX uses GNU C++, but need to define -shared option too, otherwise
15605 # it will coredump.
15606 lt_prog_compiler_pic='-fPIC -shared'
15609 sysv4*MP*)
15610 if test -d /usr/nec; then
15611 lt_prog_compiler_pic=-Kconform_pic
15616 lt_prog_compiler_pic='-fPIC'
15618 esac
15620 case $cc_basename in
15621 nvcc*) # Cuda Compiler Driver 2.2
15622 lt_prog_compiler_wl='-Xlinker '
15623 lt_prog_compiler_pic='-Xcompiler -fPIC'
15625 esac
15626 else
15627 # PORTME Check for flag to pass linker flags through the system compiler.
15628 case $host_os in
15629 aix*)
15630 lt_prog_compiler_wl='-Wl,'
15631 if test "$host_cpu" = ia64; then
15632 # AIX 5 now supports IA64 processor
15633 lt_prog_compiler_static='-Bstatic'
15634 else
15635 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15639 mingw* | cygwin* | pw32* | os2* | cegcc*)
15640 # This hack is so that the source file can tell whether it is being
15641 # built for inclusion in a dll (and should export symbols for example).
15642 lt_prog_compiler_pic='-DDLL_EXPORT'
15645 hpux9* | hpux10* | hpux11*)
15646 lt_prog_compiler_wl='-Wl,'
15647 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15648 # not for PA HP-UX.
15649 case $host_cpu in
15650 hppa*64*|ia64*)
15651 # +Z the default
15654 lt_prog_compiler_pic='+Z'
15656 esac
15657 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15658 lt_prog_compiler_static='${wl}-a ${wl}archive'
15661 irix5* | irix6* | nonstopux*)
15662 lt_prog_compiler_wl='-Wl,'
15663 # PIC (with -KPIC) is the default.
15664 lt_prog_compiler_static='-non_shared'
15667 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15668 case $cc_basename in
15669 # old Intel for x86_64 which still supported -KPIC.
15670 ecc*)
15671 lt_prog_compiler_wl='-Wl,'
15672 lt_prog_compiler_pic='-KPIC'
15673 lt_prog_compiler_static='-static'
15675 # icc used to be incompatible with GCC.
15676 # ICC 10 doesn't accept -KPIC any more.
15677 icc* | ifort*)
15678 lt_prog_compiler_wl='-Wl,'
15679 lt_prog_compiler_pic='-fPIC'
15680 lt_prog_compiler_static='-static'
15682 # Lahey Fortran 8.1.
15683 lf95*)
15684 lt_prog_compiler_wl='-Wl,'
15685 lt_prog_compiler_pic='--shared'
15686 lt_prog_compiler_static='--static'
15688 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15689 # Portland Group compilers (*not* the Pentium gcc compiler,
15690 # which looks to be a dead project)
15691 lt_prog_compiler_wl='-Wl,'
15692 lt_prog_compiler_pic='-fpic'
15693 lt_prog_compiler_static='-Bstatic'
15695 ccc*)
15696 lt_prog_compiler_wl='-Wl,'
15697 # All Alpha code is PIC.
15698 lt_prog_compiler_static='-non_shared'
15700 xl* | bgxl* | bgf* | mpixl*)
15701 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15702 lt_prog_compiler_wl='-Wl,'
15703 lt_prog_compiler_pic='-qpic'
15704 lt_prog_compiler_static='-qstaticlink'
15707 case `$CC -V 2>&1 | sed 5q` in
15708 *Sun\ F* | *Sun*Fortran*)
15709 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15710 lt_prog_compiler_pic='-KPIC'
15711 lt_prog_compiler_static='-Bstatic'
15712 lt_prog_compiler_wl=''
15714 *Sun\ C*)
15715 # Sun C 5.9
15716 lt_prog_compiler_pic='-KPIC'
15717 lt_prog_compiler_static='-Bstatic'
15718 lt_prog_compiler_wl='-Wl,'
15720 esac
15722 esac
15725 newsos6)
15726 lt_prog_compiler_pic='-KPIC'
15727 lt_prog_compiler_static='-Bstatic'
15730 *nto* | *qnx*)
15731 # QNX uses GNU C++, but need to define -shared option too, otherwise
15732 # it will coredump.
15733 lt_prog_compiler_pic='-fPIC -shared'
15736 osf3* | osf4* | osf5*)
15737 lt_prog_compiler_wl='-Wl,'
15738 # All OSF/1 code is PIC.
15739 lt_prog_compiler_static='-non_shared'
15742 rdos*)
15743 lt_prog_compiler_static='-non_shared'
15746 solaris*)
15747 lt_prog_compiler_pic='-KPIC'
15748 lt_prog_compiler_static='-Bstatic'
15749 case $cc_basename in
15750 f77* | f90* | f95*)
15751 lt_prog_compiler_wl='-Qoption ld ';;
15753 lt_prog_compiler_wl='-Wl,';;
15754 esac
15757 sunos4*)
15758 lt_prog_compiler_wl='-Qoption ld '
15759 lt_prog_compiler_pic='-PIC'
15760 lt_prog_compiler_static='-Bstatic'
15763 sysv4 | sysv4.2uw2* | sysv4.3*)
15764 lt_prog_compiler_wl='-Wl,'
15765 lt_prog_compiler_pic='-KPIC'
15766 lt_prog_compiler_static='-Bstatic'
15769 sysv4*MP*)
15770 if test -d /usr/nec ;then
15771 lt_prog_compiler_pic='-Kconform_pic'
15772 lt_prog_compiler_static='-Bstatic'
15776 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15777 lt_prog_compiler_wl='-Wl,'
15778 lt_prog_compiler_pic='-KPIC'
15779 lt_prog_compiler_static='-Bstatic'
15782 unicos*)
15783 lt_prog_compiler_wl='-Wl,'
15784 lt_prog_compiler_can_build_shared=no
15787 uts4*)
15788 lt_prog_compiler_pic='-pic'
15789 lt_prog_compiler_static='-Bstatic'
15793 lt_prog_compiler_can_build_shared=no
15795 esac
15798 case $host_os in
15799 # For platforms which do not support PIC, -DPIC is meaningless:
15800 *djgpp*)
15801 lt_prog_compiler_pic=
15804 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15806 esac
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15808 $as_echo "$lt_prog_compiler_pic" >&6; }
15816 # Check to make sure the PIC flag actually works.
15818 if test -n "$lt_prog_compiler_pic"; then
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15820 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15821 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15822 $as_echo_n "(cached) " >&6
15823 else
15824 lt_cv_prog_compiler_pic_works=no
15825 ac_outfile=conftest.$ac_objext
15826 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15827 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15828 # Insert the option either (1) after the last *FLAGS variable, or
15829 # (2) before a word containing "conftest.", or (3) at the end.
15830 # Note that $ac_compile itself does not contain backslashes and begins
15831 # with a dollar sign (not a hyphen), so the echo should work correctly.
15832 # The option is referenced via a variable to avoid confusing sed.
15833 lt_compile=`echo "$ac_compile" | $SED \
15834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15836 -e 's:$: $lt_compiler_flag:'`
15837 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15838 (eval "$lt_compile" 2>conftest.err)
15839 ac_status=$?
15840 cat conftest.err >&5
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 if (exit $ac_status) && test -s "$ac_outfile"; then
15843 # The compiler can only warn and ignore the option if not recognized
15844 # So say no if there are warnings other than the usual output.
15845 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15846 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15847 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15848 lt_cv_prog_compiler_pic_works=yes
15851 $RM conftest*
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15855 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15857 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15858 case $lt_prog_compiler_pic in
15859 "" | " "*) ;;
15860 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15861 esac
15862 else
15863 lt_prog_compiler_pic=
15864 lt_prog_compiler_can_build_shared=no
15875 # Check to make sure the static flag actually works.
15877 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15879 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15880 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15881 $as_echo_n "(cached) " >&6
15882 else
15883 lt_cv_prog_compiler_static_works=no
15884 save_LDFLAGS="$LDFLAGS"
15885 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15886 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15887 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15888 # The linker can only warn and ignore the option if not recognized
15889 # So say no if there are warnings
15890 if test -s conftest.err; then
15891 # Append any errors to the config.log.
15892 cat conftest.err 1>&5
15893 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15894 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15895 if diff conftest.exp conftest.er2 >/dev/null; then
15896 lt_cv_prog_compiler_static_works=yes
15898 else
15899 lt_cv_prog_compiler_static_works=yes
15902 $RM -r conftest*
15903 LDFLAGS="$save_LDFLAGS"
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15907 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15909 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15911 else
15912 lt_prog_compiler_static=
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15922 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15923 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15924 $as_echo_n "(cached) " >&6
15925 else
15926 lt_cv_prog_compiler_c_o=no
15927 $RM -r conftest 2>/dev/null
15928 mkdir conftest
15929 cd conftest
15930 mkdir out
15931 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15933 lt_compiler_flag="-o out/conftest2.$ac_objext"
15934 # Insert the option either (1) after the last *FLAGS variable, or
15935 # (2) before a word containing "conftest.", or (3) at the end.
15936 # Note that $ac_compile itself does not contain backslashes and begins
15937 # with a dollar sign (not a hyphen), so the echo should work correctly.
15938 lt_compile=`echo "$ac_compile" | $SED \
15939 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15940 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15941 -e 's:$: $lt_compiler_flag:'`
15942 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15943 (eval "$lt_compile" 2>out/conftest.err)
15944 ac_status=$?
15945 cat out/conftest.err >&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15948 then
15949 # The compiler can only warn and ignore the option if not recognized
15950 # So say no if there are warnings
15951 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15952 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15953 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15954 lt_cv_prog_compiler_c_o=yes
15957 chmod u+w . 2>&5
15958 $RM conftest*
15959 # SGI C++ compiler will create directory out/ii_files/ for
15960 # template instantiation
15961 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15962 $RM out/* && rmdir out
15963 cd ..
15964 $RM -r conftest
15965 $RM conftest*
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15969 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15977 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15978 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15979 $as_echo_n "(cached) " >&6
15980 else
15981 lt_cv_prog_compiler_c_o=no
15982 $RM -r conftest 2>/dev/null
15983 mkdir conftest
15984 cd conftest
15985 mkdir out
15986 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15988 lt_compiler_flag="-o out/conftest2.$ac_objext"
15989 # Insert the option either (1) after the last *FLAGS variable, or
15990 # (2) before a word containing "conftest.", or (3) at the end.
15991 # Note that $ac_compile itself does not contain backslashes and begins
15992 # with a dollar sign (not a hyphen), so the echo should work correctly.
15993 lt_compile=`echo "$ac_compile" | $SED \
15994 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15995 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15996 -e 's:$: $lt_compiler_flag:'`
15997 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15998 (eval "$lt_compile" 2>out/conftest.err)
15999 ac_status=$?
16000 cat out/conftest.err >&5
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16003 then
16004 # The compiler can only warn and ignore the option if not recognized
16005 # So say no if there are warnings
16006 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16007 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16008 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16009 lt_cv_prog_compiler_c_o=yes
16012 chmod u+w . 2>&5
16013 $RM conftest*
16014 # SGI C++ compiler will create directory out/ii_files/ for
16015 # template instantiation
16016 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16017 $RM out/* && rmdir out
16018 cd ..
16019 $RM -r conftest
16020 $RM conftest*
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16024 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16029 hard_links="nottested"
16030 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16031 # do not overwrite the value of need_locks provided by the user
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16033 $as_echo_n "checking if we can lock with hard links... " >&6; }
16034 hard_links=yes
16035 $RM conftest*
16036 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16037 touch conftest.a
16038 ln conftest.a conftest.b 2>&5 || hard_links=no
16039 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16041 $as_echo "$hard_links" >&6; }
16042 if test "$hard_links" = no; then
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16044 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16045 need_locks=warn
16047 else
16048 need_locks=no
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16057 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16059 runpath_var=
16060 allow_undefined_flag=
16061 always_export_symbols=no
16062 archive_cmds=
16063 archive_expsym_cmds=
16064 compiler_needs_object=no
16065 enable_shared_with_static_runtimes=no
16066 export_dynamic_flag_spec=
16067 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16068 hardcode_automatic=no
16069 hardcode_direct=no
16070 hardcode_direct_absolute=no
16071 hardcode_libdir_flag_spec=
16072 hardcode_libdir_flag_spec_ld=
16073 hardcode_libdir_separator=
16074 hardcode_minus_L=no
16075 hardcode_shlibpath_var=unsupported
16076 inherit_rpath=no
16077 link_all_deplibs=unknown
16078 module_cmds=
16079 module_expsym_cmds=
16080 old_archive_from_new_cmds=
16081 old_archive_from_expsyms_cmds=
16082 thread_safe_flag_spec=
16083 whole_archive_flag_spec=
16084 # include_expsyms should be a list of space-separated symbols to be *always*
16085 # included in the symbol list
16086 include_expsyms=
16087 # exclude_expsyms can be an extended regexp of symbols to exclude
16088 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16089 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16090 # as well as any symbol that contains `d'.
16091 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16092 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16093 # platforms (ab)use it in PIC code, but their linkers get confused if
16094 # the symbol is explicitly referenced. Since portable code cannot
16095 # rely on this symbol name, it's probably fine to never include it in
16096 # preloaded symbol tables.
16097 # Exclude shared library initialization/finalization symbols.
16098 extract_expsyms_cmds=
16100 case $host_os in
16101 cygwin* | mingw* | pw32* | cegcc*)
16102 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16103 # When not using gcc, we currently assume that we are using
16104 # Microsoft Visual C++.
16105 if test "$GCC" != yes; then
16106 with_gnu_ld=no
16109 interix*)
16110 # we just hope/assume this is gcc and not c89 (= MSVC++)
16111 with_gnu_ld=yes
16113 openbsd*)
16114 with_gnu_ld=no
16116 esac
16118 ld_shlibs=yes
16120 # On some targets, GNU ld is compatible enough with the native linker
16121 # that we're better off using the native interface for both.
16122 lt_use_gnu_ld_interface=no
16123 if test "$with_gnu_ld" = yes; then
16124 case $host_os in
16125 aix*)
16126 # The AIX port of GNU ld has always aspired to compatibility
16127 # with the native linker. However, as the warning in the GNU ld
16128 # block says, versions before 2.19.5* couldn't really create working
16129 # shared libraries, regardless of the interface used.
16130 case `$LD -v 2>&1` in
16131 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16132 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16133 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16135 lt_use_gnu_ld_interface=yes
16137 esac
16140 lt_use_gnu_ld_interface=yes
16142 esac
16145 if test "$lt_use_gnu_ld_interface" = yes; then
16146 # If archive_cmds runs LD, not CC, wlarc should be empty
16147 wlarc='${wl}'
16149 # Set some defaults for GNU ld with shared library support. These
16150 # are reset later if shared libraries are not supported. Putting them
16151 # here allows them to be overridden if necessary.
16152 runpath_var=LD_RUN_PATH
16153 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16154 export_dynamic_flag_spec='${wl}--export-dynamic'
16155 # ancient GNU ld didn't support --whole-archive et. al.
16156 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16157 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16158 else
16159 whole_archive_flag_spec=
16161 supports_anon_versioning=no
16162 case `$LD -v 2>&1` in
16163 *GNU\ gold*) supports_anon_versioning=yes ;;
16164 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16165 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16166 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16167 *\ 2.11.*) ;; # other 2.11 versions
16168 *) supports_anon_versioning=yes ;;
16169 esac
16171 # See if GNU ld supports shared libraries.
16172 case $host_os in
16173 aix[3-9]*)
16174 # On AIX/PPC, the GNU linker is very broken
16175 if test "$host_cpu" != ia64; then
16176 ld_shlibs=no
16177 cat <<_LT_EOF 1>&2
16179 *** Warning: the GNU linker, at least up to release 2.19, is reported
16180 *** to be unable to reliably create shared libraries on AIX.
16181 *** Therefore, libtool is disabling shared libraries support. If you
16182 *** really care for shared libraries, you may want to install binutils
16183 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16184 *** You will then need to restart the configuration process.
16186 _LT_EOF
16190 amigaos*)
16191 case $host_cpu in
16192 powerpc)
16193 # see comment about AmigaOS4 .so support
16194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16195 archive_expsym_cmds=''
16197 m68k)
16198 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)'
16199 hardcode_libdir_flag_spec='-L$libdir'
16200 hardcode_minus_L=yes
16202 esac
16205 beos*)
16206 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16207 allow_undefined_flag=unsupported
16208 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16209 # support --undefined. This deserves some investigation. FIXME
16210 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16211 else
16212 ld_shlibs=no
16216 cygwin* | mingw* | pw32* | cegcc*)
16217 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16218 # as there is no search path for DLLs.
16219 hardcode_libdir_flag_spec='-L$libdir'
16220 export_dynamic_flag_spec='${wl}--export-all-symbols'
16221 allow_undefined_flag=unsupported
16222 always_export_symbols=no
16223 enable_shared_with_static_runtimes=yes
16224 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16226 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16227 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16228 # If the export-symbols file already is a .def file (1st line
16229 # is EXPORTS), use it as is; otherwise, prepend...
16230 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16231 cp $export_symbols $output_objdir/$soname.def;
16232 else
16233 echo EXPORTS > $output_objdir/$soname.def;
16234 cat $export_symbols >> $output_objdir/$soname.def;
16236 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16237 else
16238 ld_shlibs=no
16242 haiku*)
16243 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16244 link_all_deplibs=yes
16247 interix[3-9]*)
16248 hardcode_direct=no
16249 hardcode_shlibpath_var=no
16250 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16251 export_dynamic_flag_spec='${wl}-E'
16252 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16253 # Instead, shared libraries are loaded at an image base (0x10000000 by
16254 # default) and relocated if they conflict, which is a slow very memory
16255 # consuming and fragmenting process. To avoid this, we pick a random,
16256 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16257 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16258 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16259 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'
16262 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16263 tmp_diet=no
16264 if test "$host_os" = linux-dietlibc; then
16265 case $cc_basename in
16266 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16267 esac
16269 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16270 && test "$tmp_diet" = no
16271 then
16272 tmp_addflag=' $pic_flag'
16273 tmp_sharedflag='-shared'
16274 case $cc_basename,$host_cpu in
16275 pgcc*) # Portland Group C compiler
16276 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'
16277 tmp_addflag=' $pic_flag'
16279 pgf77* | pgf90* | pgf95* | pgfortran*)
16280 # Portland Group f77 and f90 compilers
16281 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'
16282 tmp_addflag=' $pic_flag -Mnomain' ;;
16283 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16284 tmp_addflag=' -i_dynamic' ;;
16285 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16286 tmp_addflag=' -i_dynamic -nofor_main' ;;
16287 ifc* | ifort*) # Intel Fortran compiler
16288 tmp_addflag=' -nofor_main' ;;
16289 lf95*) # Lahey Fortran 8.1
16290 whole_archive_flag_spec=
16291 tmp_sharedflag='--shared' ;;
16292 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16293 tmp_sharedflag='-qmkshrobj'
16294 tmp_addflag= ;;
16295 nvcc*) # Cuda Compiler Driver 2.2
16296 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'
16297 compiler_needs_object=yes
16299 esac
16300 case `$CC -V 2>&1 | sed 5q` in
16301 *Sun\ C*) # Sun C 5.9
16302 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'
16303 compiler_needs_object=yes
16304 tmp_sharedflag='-G' ;;
16305 *Sun\ F*) # Sun Fortran 8.3
16306 tmp_sharedflag='-G' ;;
16307 esac
16308 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16310 if test "x$supports_anon_versioning" = xyes; then
16311 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16312 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16313 echo "local: *; };" >> $output_objdir/$libname.ver~
16314 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16317 case $cc_basename in
16318 xlf* | bgf* | bgxlf* | mpixlf*)
16319 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16320 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16321 hardcode_libdir_flag_spec=
16322 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16323 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16324 if test "x$supports_anon_versioning" = xyes; then
16325 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16326 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16327 echo "local: *; };" >> $output_objdir/$libname.ver~
16328 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16331 esac
16332 else
16333 ld_shlibs=no
16337 netbsd*)
16338 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16339 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16340 wlarc=
16341 else
16342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16343 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16347 solaris*)
16348 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16349 ld_shlibs=no
16350 cat <<_LT_EOF 1>&2
16352 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16353 *** create shared libraries on Solaris systems. Therefore, libtool
16354 *** is disabling shared libraries support. We urge you to upgrade GNU
16355 *** binutils to release 2.9.1 or newer. Another option is to modify
16356 *** your PATH or compiler configuration so that the native linker is
16357 *** used, and then restart.
16359 _LT_EOF
16360 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16361 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16362 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16363 else
16364 ld_shlibs=no
16368 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16369 case `$LD -v 2>&1` in
16370 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16371 ld_shlibs=no
16372 cat <<_LT_EOF 1>&2
16374 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16375 *** reliably create shared libraries on SCO systems. Therefore, libtool
16376 *** is disabling shared libraries support. We urge you to upgrade GNU
16377 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16378 *** your PATH or compiler configuration so that the native linker is
16379 *** used, and then restart.
16381 _LT_EOF
16384 # For security reasons, it is highly recommended that you always
16385 # use absolute paths for naming shared libraries, and exclude the
16386 # DT_RUNPATH tag from executables and libraries. But doing so
16387 # requires that you compile everything twice, which is a pain.
16388 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16389 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16390 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16391 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16392 else
16393 ld_shlibs=no
16396 esac
16399 sunos4*)
16400 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16401 wlarc=
16402 hardcode_direct=yes
16403 hardcode_shlibpath_var=no
16407 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16409 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16410 else
16411 ld_shlibs=no
16414 esac
16416 if test "$ld_shlibs" = no; then
16417 runpath_var=
16418 hardcode_libdir_flag_spec=
16419 export_dynamic_flag_spec=
16420 whole_archive_flag_spec=
16422 else
16423 # PORTME fill in a description of your system's linker (not GNU ld)
16424 case $host_os in
16425 aix3*)
16426 allow_undefined_flag=unsupported
16427 always_export_symbols=yes
16428 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'
16429 # Note: this linker hardcodes the directories in LIBPATH if there
16430 # are no directories specified by -L.
16431 hardcode_minus_L=yes
16432 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16433 # Neither direct hardcoding nor static linking is supported with a
16434 # broken collect2.
16435 hardcode_direct=unsupported
16439 aix[4-9]*)
16440 if test "$host_cpu" = ia64; then
16441 # On IA64, the linker does run time linking by default, so we don't
16442 # have to do anything special.
16443 aix_use_runtimelinking=no
16444 exp_sym_flag='-Bexport'
16445 no_entry_flag=""
16446 else
16447 # If we're using GNU nm, then we don't want the "-C" option.
16448 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16449 # Also, AIX nm treats weak defined symbols like other global
16450 # defined symbols, whereas GNU nm marks them as "W".
16451 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16452 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'
16453 else
16454 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'
16456 aix_use_runtimelinking=no
16458 # Test if we are trying to use run time linking or normal
16459 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16460 # need to do runtime linking.
16461 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16462 for ld_flag in $LDFLAGS; do
16463 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16464 aix_use_runtimelinking=yes
16465 break
16467 done
16469 esac
16471 exp_sym_flag='-bexport'
16472 no_entry_flag='-bnoentry'
16475 # When large executables or shared objects are built, AIX ld can
16476 # have problems creating the table of contents. If linking a library
16477 # or program results in "error TOC overflow" add -mminimal-toc to
16478 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16479 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16481 archive_cmds=''
16482 hardcode_direct=yes
16483 hardcode_direct_absolute=yes
16484 hardcode_libdir_separator=':'
16485 link_all_deplibs=yes
16486 file_list_spec='${wl}-f,'
16488 if test "$GCC" = yes; then
16489 case $host_os in aix4.[012]|aix4.[012].*)
16490 # We only want to do this on AIX 4.2 and lower, the check
16491 # below for broken collect2 doesn't work under 4.3+
16492 collect2name=`${CC} -print-prog-name=collect2`
16493 if test -f "$collect2name" &&
16494 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16495 then
16496 # We have reworked collect2
16498 else
16499 # We have old collect2
16500 hardcode_direct=unsupported
16501 # It fails to find uninstalled libraries when the uninstalled
16502 # path is not listed in the libpath. Setting hardcode_minus_L
16503 # to unsupported forces relinking
16504 hardcode_minus_L=yes
16505 hardcode_libdir_flag_spec='-L$libdir'
16506 hardcode_libdir_separator=
16509 esac
16510 shared_flag='-shared'
16511 if test "$aix_use_runtimelinking" = yes; then
16512 shared_flag="$shared_flag "'${wl}-G'
16514 else
16515 # not using gcc
16516 if test "$host_cpu" = ia64; then
16517 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16518 # chokes on -Wl,-G. The following line is correct:
16519 shared_flag='-G'
16520 else
16521 if test "$aix_use_runtimelinking" = yes; then
16522 shared_flag='${wl}-G'
16523 else
16524 shared_flag='${wl}-bM:SRE'
16529 export_dynamic_flag_spec='${wl}-bexpall'
16530 # It seems that -bexpall does not export symbols beginning with
16531 # underscore (_), so it is better to generate a list of symbols to export.
16532 always_export_symbols=yes
16533 if test "$aix_use_runtimelinking" = yes; then
16534 # Warning - without using the other runtime loading flags (-brtl),
16535 # -berok will link without error, but may produce a broken library.
16536 allow_undefined_flag='-berok'
16537 # Determine the default libpath from the value encoded in an
16538 # empty executable.
16539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16540 /* end confdefs.h. */
16543 main ()
16547 return 0;
16549 _ACEOF
16550 if ac_fn_c_try_link "$LINENO"; then :
16552 lt_aix_libpath_sed='
16553 /Import File Strings/,/^$/ {
16554 /^0/ {
16555 s/^0 *\(.*\)$/\1/
16559 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16560 # Check for a 64-bit object if we didn't find anything.
16561 if test -z "$aix_libpath"; then
16562 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16565 rm -f core conftest.err conftest.$ac_objext \
16566 conftest$ac_exeext conftest.$ac_ext
16567 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16569 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16570 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"
16571 else
16572 if test "$host_cpu" = ia64; then
16573 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16574 allow_undefined_flag="-z nodefs"
16575 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"
16576 else
16577 # Determine the default libpath from the value encoded in an
16578 # empty executable.
16579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16580 /* end confdefs.h. */
16583 main ()
16587 return 0;
16589 _ACEOF
16590 if ac_fn_c_try_link "$LINENO"; then :
16592 lt_aix_libpath_sed='
16593 /Import File Strings/,/^$/ {
16594 /^0/ {
16595 s/^0 *\(.*\)$/\1/
16599 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16600 # Check for a 64-bit object if we didn't find anything.
16601 if test -z "$aix_libpath"; then
16602 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16605 rm -f core conftest.err conftest.$ac_objext \
16606 conftest$ac_exeext conftest.$ac_ext
16607 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16609 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16610 # Warning - without using the other run time loading flags,
16611 # -berok will link without error, but may produce a broken library.
16612 no_undefined_flag=' ${wl}-bernotok'
16613 allow_undefined_flag=' ${wl}-berok'
16614 if test "$with_gnu_ld" = yes; then
16615 # We only use this code for GNU lds that support --whole-archive.
16616 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16617 else
16618 # Exported symbols can be pulled into shared objects from archives
16619 whole_archive_flag_spec='$convenience'
16621 archive_cmds_need_lc=yes
16622 # This is similar to how AIX traditionally builds its shared libraries.
16623 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'
16628 amigaos*)
16629 case $host_cpu in
16630 powerpc)
16631 # see comment about AmigaOS4 .so support
16632 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16633 archive_expsym_cmds=''
16635 m68k)
16636 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)'
16637 hardcode_libdir_flag_spec='-L$libdir'
16638 hardcode_minus_L=yes
16640 esac
16643 bsdi[45]*)
16644 export_dynamic_flag_spec=-rdynamic
16647 cygwin* | mingw* | pw32* | cegcc*)
16648 # When not using gcc, we currently assume that we are using
16649 # Microsoft Visual C++.
16650 # hardcode_libdir_flag_spec is actually meaningless, as there is
16651 # no search path for DLLs.
16652 hardcode_libdir_flag_spec=' '
16653 allow_undefined_flag=unsupported
16654 # Tell ltmain to make .lib files, not .a files.
16655 libext=lib
16656 # Tell ltmain to make .dll files, not .so files.
16657 shrext_cmds=".dll"
16658 # FIXME: Setting linknames here is a bad hack.
16659 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16660 # The linker will automatically build a .lib file if we build a DLL.
16661 old_archive_from_new_cmds='true'
16662 # FIXME: Should let the user specify the lib program.
16663 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16664 fix_srcfile_path='`cygpath -w "$srcfile"`'
16665 enable_shared_with_static_runtimes=yes
16668 darwin* | rhapsody*)
16671 archive_cmds_need_lc=no
16672 hardcode_direct=no
16673 hardcode_automatic=yes
16674 hardcode_shlibpath_var=unsupported
16675 if test "$lt_cv_ld_force_load" = "yes"; then
16676 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\"`'
16677 else
16678 whole_archive_flag_spec=''
16680 link_all_deplibs=yes
16681 allow_undefined_flag="$_lt_dar_allow_undefined"
16682 case $cc_basename in
16683 ifort*) _lt_dar_can_shared=yes ;;
16684 *) _lt_dar_can_shared=$GCC ;;
16685 esac
16686 if test "$_lt_dar_can_shared" = "yes"; then
16687 output_verbose_link_cmd=func_echo_all
16688 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16689 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16690 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}"
16691 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}"
16693 else
16694 ld_shlibs=no
16699 dgux*)
16700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16701 hardcode_libdir_flag_spec='-L$libdir'
16702 hardcode_shlibpath_var=no
16705 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16706 # support. Future versions do this automatically, but an explicit c++rt0.o
16707 # does not break anything, and helps significantly (at the cost of a little
16708 # extra space).
16709 freebsd2.2*)
16710 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16711 hardcode_libdir_flag_spec='-R$libdir'
16712 hardcode_direct=yes
16713 hardcode_shlibpath_var=no
16716 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16717 freebsd2.*)
16718 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16719 hardcode_direct=yes
16720 hardcode_minus_L=yes
16721 hardcode_shlibpath_var=no
16724 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16725 freebsd* | dragonfly*)
16726 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16727 hardcode_libdir_flag_spec='-R$libdir'
16728 hardcode_direct=yes
16729 hardcode_shlibpath_var=no
16732 hpux9*)
16733 if test "$GCC" = yes; then
16734 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'
16735 else
16736 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'
16738 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16739 hardcode_libdir_separator=:
16740 hardcode_direct=yes
16742 # hardcode_minus_L: Not really in the search PATH,
16743 # but as the default location of the library.
16744 hardcode_minus_L=yes
16745 export_dynamic_flag_spec='${wl}-E'
16748 hpux10*)
16749 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16750 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16751 else
16752 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16754 if test "$with_gnu_ld" = no; then
16755 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16756 hardcode_libdir_flag_spec_ld='+b $libdir'
16757 hardcode_libdir_separator=:
16758 hardcode_direct=yes
16759 hardcode_direct_absolute=yes
16760 export_dynamic_flag_spec='${wl}-E'
16761 # hardcode_minus_L: Not really in the search PATH,
16762 # but as the default location of the library.
16763 hardcode_minus_L=yes
16767 hpux11*)
16768 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16769 case $host_cpu in
16770 hppa*64*)
16771 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16773 ia64*)
16774 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16777 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16779 esac
16780 else
16781 case $host_cpu in
16782 hppa*64*)
16783 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16785 ia64*)
16786 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16790 # Older versions of the 11.00 compiler do not understand -b yet
16791 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16793 $as_echo_n "checking if $CC understands -b... " >&6; }
16794 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16795 $as_echo_n "(cached) " >&6
16796 else
16797 lt_cv_prog_compiler__b=no
16798 save_LDFLAGS="$LDFLAGS"
16799 LDFLAGS="$LDFLAGS -b"
16800 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16801 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16802 # The linker can only warn and ignore the option if not recognized
16803 # So say no if there are warnings
16804 if test -s conftest.err; then
16805 # Append any errors to the config.log.
16806 cat conftest.err 1>&5
16807 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16808 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16809 if diff conftest.exp conftest.er2 >/dev/null; then
16810 lt_cv_prog_compiler__b=yes
16812 else
16813 lt_cv_prog_compiler__b=yes
16816 $RM -r conftest*
16817 LDFLAGS="$save_LDFLAGS"
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16821 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16823 if test x"$lt_cv_prog_compiler__b" = xyes; then
16824 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16825 else
16826 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16830 esac
16832 if test "$with_gnu_ld" = no; then
16833 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16834 hardcode_libdir_separator=:
16836 case $host_cpu in
16837 hppa*64*|ia64*)
16838 hardcode_direct=no
16839 hardcode_shlibpath_var=no
16842 hardcode_direct=yes
16843 hardcode_direct_absolute=yes
16844 export_dynamic_flag_spec='${wl}-E'
16846 # hardcode_minus_L: Not really in the search PATH,
16847 # but as the default location of the library.
16848 hardcode_minus_L=yes
16850 esac
16854 irix5* | irix6* | nonstopux*)
16855 if test "$GCC" = yes; then
16856 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'
16857 # Try to use the -exported_symbol ld option, if it does not
16858 # work, assume that -exports_file does not work either and
16859 # implicitly export all symbols.
16860 save_LDFLAGS="$LDFLAGS"
16861 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16863 /* end confdefs.h. */
16864 int foo(void) {}
16865 _ACEOF
16866 if ac_fn_c_try_link "$LINENO"; then :
16867 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'
16870 rm -f core conftest.err conftest.$ac_objext \
16871 conftest$ac_exeext conftest.$ac_ext
16872 LDFLAGS="$save_LDFLAGS"
16873 else
16874 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'
16875 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'
16877 archive_cmds_need_lc='no'
16878 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16879 hardcode_libdir_separator=:
16880 inherit_rpath=yes
16881 link_all_deplibs=yes
16884 netbsd*)
16885 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16886 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16887 else
16888 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16890 hardcode_libdir_flag_spec='-R$libdir'
16891 hardcode_direct=yes
16892 hardcode_shlibpath_var=no
16895 newsos6)
16896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16897 hardcode_direct=yes
16898 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16899 hardcode_libdir_separator=:
16900 hardcode_shlibpath_var=no
16903 *nto* | *qnx*)
16906 openbsd*)
16907 if test -f /usr/libexec/ld.so; then
16908 hardcode_direct=yes
16909 hardcode_shlibpath_var=no
16910 hardcode_direct_absolute=yes
16911 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16912 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16913 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16914 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16915 export_dynamic_flag_spec='${wl}-E'
16916 else
16917 case $host_os in
16918 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16919 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16920 hardcode_libdir_flag_spec='-R$libdir'
16923 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16924 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16926 esac
16928 else
16929 ld_shlibs=no
16933 os2*)
16934 hardcode_libdir_flag_spec='-L$libdir'
16935 hardcode_minus_L=yes
16936 allow_undefined_flag=unsupported
16937 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'
16938 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16941 osf3*)
16942 if test "$GCC" = yes; then
16943 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16944 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'
16945 else
16946 allow_undefined_flag=' -expect_unresolved \*'
16947 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'
16949 archive_cmds_need_lc='no'
16950 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16951 hardcode_libdir_separator=:
16954 osf4* | osf5*) # as osf3* with the addition of -msym flag
16955 if test "$GCC" = yes; then
16956 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16957 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'
16958 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16959 else
16960 allow_undefined_flag=' -expect_unresolved \*'
16961 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'
16962 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~
16963 $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'
16965 # Both c and cxx compiler support -rpath directly
16966 hardcode_libdir_flag_spec='-rpath $libdir'
16968 archive_cmds_need_lc='no'
16969 hardcode_libdir_separator=:
16972 solaris*)
16973 no_undefined_flag=' -z defs'
16974 if test "$GCC" = yes; then
16975 wlarc='${wl}'
16976 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16977 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16978 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16979 else
16980 case `$CC -V 2>&1` in
16981 *"Compilers 5.0"*)
16982 wlarc=''
16983 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16984 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16985 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16988 wlarc='${wl}'
16989 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16990 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16991 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16993 esac
16995 hardcode_libdir_flag_spec='-R$libdir'
16996 hardcode_shlibpath_var=no
16997 case $host_os in
16998 solaris2.[0-5] | solaris2.[0-5].*) ;;
17000 # The compiler driver will combine and reorder linker options,
17001 # but understands `-z linker_flag'. GCC discards it without `$wl',
17002 # but is careful enough not to reorder.
17003 # Supported since Solaris 2.6 (maybe 2.5.1?)
17004 if test "$GCC" = yes; then
17005 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17006 else
17007 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17010 esac
17011 link_all_deplibs=yes
17014 sunos4*)
17015 if test "x$host_vendor" = xsequent; then
17016 # Use $CC to link under sequent, because it throws in some extra .o
17017 # files that make .init and .fini sections work.
17018 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17019 else
17020 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17022 hardcode_libdir_flag_spec='-L$libdir'
17023 hardcode_direct=yes
17024 hardcode_minus_L=yes
17025 hardcode_shlibpath_var=no
17028 sysv4)
17029 case $host_vendor in
17030 sni)
17031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17032 hardcode_direct=yes # is this really true???
17034 siemens)
17035 ## LD is ld it makes a PLAMLIB
17036 ## CC just makes a GrossModule.
17037 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17038 reload_cmds='$CC -r -o $output$reload_objs'
17039 hardcode_direct=no
17041 motorola)
17042 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17043 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17045 esac
17046 runpath_var='LD_RUN_PATH'
17047 hardcode_shlibpath_var=no
17050 sysv4.3*)
17051 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17052 hardcode_shlibpath_var=no
17053 export_dynamic_flag_spec='-Bexport'
17056 sysv4*MP*)
17057 if test -d /usr/nec; then
17058 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17059 hardcode_shlibpath_var=no
17060 runpath_var=LD_RUN_PATH
17061 hardcode_runpath_var=yes
17062 ld_shlibs=yes
17066 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17067 no_undefined_flag='${wl}-z,text'
17068 archive_cmds_need_lc=no
17069 hardcode_shlibpath_var=no
17070 runpath_var='LD_RUN_PATH'
17072 if test "$GCC" = yes; then
17073 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17074 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17075 else
17076 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17077 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17081 sysv5* | sco3.2v5* | sco5v6*)
17082 # Note: We can NOT use -z defs as we might desire, because we do not
17083 # link with -lc, and that would cause any symbols used from libc to
17084 # always be unresolved, which means just about no library would
17085 # ever link correctly. If we're not using GNU ld we use -z text
17086 # though, which does catch some bad symbols but isn't as heavy-handed
17087 # as -z defs.
17088 no_undefined_flag='${wl}-z,text'
17089 allow_undefined_flag='${wl}-z,nodefs'
17090 archive_cmds_need_lc=no
17091 hardcode_shlibpath_var=no
17092 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17093 hardcode_libdir_separator=':'
17094 link_all_deplibs=yes
17095 export_dynamic_flag_spec='${wl}-Bexport'
17096 runpath_var='LD_RUN_PATH'
17098 if test "$GCC" = yes; then
17099 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17100 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17101 else
17102 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17103 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17107 uts4*)
17108 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17109 hardcode_libdir_flag_spec='-L$libdir'
17110 hardcode_shlibpath_var=no
17114 ld_shlibs=no
17116 esac
17118 if test x$host_vendor = xsni; then
17119 case $host in
17120 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17121 export_dynamic_flag_spec='${wl}-Blargedynsym'
17123 esac
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17128 $as_echo "$ld_shlibs" >&6; }
17129 test "$ld_shlibs" = no && can_build_shared=no
17131 with_gnu_ld=$with_gnu_ld
17148 # Do we need to explicitly link libc?
17150 case "x$archive_cmds_need_lc" in
17151 x|xyes)
17152 # Assume -lc should be added
17153 archive_cmds_need_lc=yes
17155 if test "$enable_shared" = yes && test "$GCC" = yes; then
17156 case $archive_cmds in
17157 *'~'*)
17158 # FIXME: we may have to deal with multi-command sequences.
17160 '$CC '*)
17161 # Test whether the compiler implicitly links with -lc since on some
17162 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17163 # to ld, don't add -lc before -lgcc.
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17165 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17166 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17167 $as_echo_n "(cached) " >&6
17168 else
17169 $RM conftest*
17170 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17173 (eval $ac_compile) 2>&5
17174 ac_status=$?
17175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17176 test $ac_status = 0; } 2>conftest.err; then
17177 soname=conftest
17178 lib=conftest
17179 libobjs=conftest.$ac_objext
17180 deplibs=
17181 wl=$lt_prog_compiler_wl
17182 pic_flag=$lt_prog_compiler_pic
17183 compiler_flags=-v
17184 linker_flags=-v
17185 verstring=
17186 output_objdir=.
17187 libname=conftest
17188 lt_save_allow_undefined_flag=$allow_undefined_flag
17189 allow_undefined_flag=
17190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17191 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17192 ac_status=$?
17193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17194 test $ac_status = 0; }
17195 then
17196 lt_cv_archive_cmds_need_lc=no
17197 else
17198 lt_cv_archive_cmds_need_lc=yes
17200 allow_undefined_flag=$lt_save_allow_undefined_flag
17201 else
17202 cat conftest.err 1>&5
17204 $RM conftest*
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17208 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17209 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17211 esac
17214 esac
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17373 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17375 if test "$GCC" = yes; then
17376 case $host_os in
17377 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17378 *) lt_awk_arg="/^libraries:/" ;;
17379 esac
17380 case $host_os in
17381 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17382 *) lt_sed_strip_eq="s,=/,/,g" ;;
17383 esac
17384 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17385 case $lt_search_path_spec in
17386 *\;*)
17387 # if the path contains ";" then we assume it to be the separator
17388 # otherwise default to the standard path separator (i.e. ":") - it is
17389 # assumed that no part of a normal pathname contains ";" but that should
17390 # okay in the real world where ";" in dirpaths is itself problematic.
17391 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17394 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17396 esac
17397 # Ok, now we have the path, separated by spaces, we can step through it
17398 # and add multilib dir if necessary.
17399 lt_tmp_lt_search_path_spec=
17400 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17401 for lt_sys_path in $lt_search_path_spec; do
17402 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17403 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17404 else
17405 test -d "$lt_sys_path" && \
17406 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17408 done
17409 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17410 BEGIN {RS=" "; FS="/|\n";} {
17411 lt_foo="";
17412 lt_count=0;
17413 for (lt_i = NF; lt_i > 0; lt_i--) {
17414 if ($lt_i != "" && $lt_i != ".") {
17415 if ($lt_i == "..") {
17416 lt_count++;
17417 } else {
17418 if (lt_count == 0) {
17419 lt_foo="/" $lt_i lt_foo;
17420 } else {
17421 lt_count--;
17426 if (lt_foo != "") { lt_freq[lt_foo]++; }
17427 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17429 # AWK program above erroneously prepends '/' to C:/dos/paths
17430 # for these hosts.
17431 case $host_os in
17432 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17433 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17434 esac
17435 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17436 else
17437 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17439 library_names_spec=
17440 libname_spec='lib$name'
17441 soname_spec=
17442 shrext_cmds=".so"
17443 postinstall_cmds=
17444 postuninstall_cmds=
17445 finish_cmds=
17446 finish_eval=
17447 shlibpath_var=
17448 shlibpath_overrides_runpath=unknown
17449 version_type=none
17450 dynamic_linker="$host_os ld.so"
17451 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17452 need_lib_prefix=unknown
17453 hardcode_into_libs=no
17455 # when you set need_version to no, make sure it does not cause -set_version
17456 # flags to be left without arguments
17457 need_version=unknown
17459 case $host_os in
17460 aix3*)
17461 version_type=linux
17462 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17463 shlibpath_var=LIBPATH
17465 # AIX 3 has no versioning support, so we append a major version to the name.
17466 soname_spec='${libname}${release}${shared_ext}$major'
17469 aix[4-9]*)
17470 version_type=linux
17471 need_lib_prefix=no
17472 need_version=no
17473 hardcode_into_libs=yes
17474 if test "$host_cpu" = ia64; then
17475 # AIX 5 supports IA64
17476 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17477 shlibpath_var=LD_LIBRARY_PATH
17478 else
17479 # With GCC up to 2.95.x, collect2 would create an import file
17480 # for dependence libraries. The import file would start with
17481 # the line `#! .'. This would cause the generated library to
17482 # depend on `.', always an invalid library. This was fixed in
17483 # development snapshots of GCC prior to 3.0.
17484 case $host_os in
17485 aix4 | aix4.[01] | aix4.[01].*)
17486 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17487 echo ' yes '
17488 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17490 else
17491 can_build_shared=no
17494 esac
17495 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17496 # soname into executable. Probably we can add versioning support to
17497 # collect2, so additional links can be useful in future.
17498 if test "$aix_use_runtimelinking" = yes; then
17499 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17500 # instead of lib<name>.a to let people know that these are not
17501 # typical AIX shared libraries.
17502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17503 else
17504 # We preserve .a as extension for shared libraries through AIX4.2
17505 # and later when we are not doing run time linking.
17506 library_names_spec='${libname}${release}.a $libname.a'
17507 soname_spec='${libname}${release}${shared_ext}$major'
17509 shlibpath_var=LIBPATH
17513 amigaos*)
17514 case $host_cpu in
17515 powerpc)
17516 # Since July 2007 AmigaOS4 officially supports .so libraries.
17517 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17520 m68k)
17521 library_names_spec='$libname.ixlibrary $libname.a'
17522 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17523 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'
17525 esac
17528 beos*)
17529 library_names_spec='${libname}${shared_ext}'
17530 dynamic_linker="$host_os ld.so"
17531 shlibpath_var=LIBRARY_PATH
17534 bsdi[45]*)
17535 version_type=linux
17536 need_version=no
17537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17538 soname_spec='${libname}${release}${shared_ext}$major'
17539 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17540 shlibpath_var=LD_LIBRARY_PATH
17541 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17542 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17543 # the default ld.so.conf also contains /usr/contrib/lib and
17544 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17545 # libtool to hard-code these into programs
17548 cygwin* | mingw* | pw32* | cegcc*)
17549 version_type=windows
17550 shrext_cmds=".dll"
17551 need_version=no
17552 need_lib_prefix=no
17554 case $GCC,$host_os in
17555 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17556 library_names_spec='$libname.dll.a'
17557 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17558 postinstall_cmds='base_file=`basename \${file}`~
17559 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17560 dldir=$destdir/`dirname \$dlpath`~
17561 test -d \$dldir || mkdir -p \$dldir~
17562 $install_prog $dir/$dlname \$dldir/$dlname~
17563 chmod a+x \$dldir/$dlname~
17564 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17565 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17567 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17568 dlpath=$dir/\$dldll~
17569 $RM \$dlpath'
17570 shlibpath_overrides_runpath=yes
17572 case $host_os in
17573 cygwin*)
17574 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17575 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17577 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17579 mingw* | cegcc*)
17580 # MinGW DLLs use traditional 'lib' prefix
17581 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17583 pw32*)
17584 # pw32 DLLs use 'pw' prefix rather than 'lib'
17585 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17587 esac
17591 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17593 esac
17594 dynamic_linker='Win32 ld.exe'
17595 # FIXME: first we should search . and the directory the executable is in
17596 shlibpath_var=PATH
17599 darwin* | rhapsody*)
17600 dynamic_linker="$host_os dyld"
17601 version_type=darwin
17602 need_lib_prefix=no
17603 need_version=no
17604 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17605 soname_spec='${libname}${release}${major}$shared_ext'
17606 shlibpath_overrides_runpath=yes
17607 shlibpath_var=DYLD_LIBRARY_PATH
17608 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17610 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17611 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17614 dgux*)
17615 version_type=linux
17616 need_lib_prefix=no
17617 need_version=no
17618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17619 soname_spec='${libname}${release}${shared_ext}$major'
17620 shlibpath_var=LD_LIBRARY_PATH
17623 freebsd* | dragonfly*)
17624 # DragonFly does not have aout. When/if they implement a new
17625 # versioning mechanism, adjust this.
17626 if test -x /usr/bin/objformat; then
17627 objformat=`/usr/bin/objformat`
17628 else
17629 case $host_os in
17630 freebsd[23].*) objformat=aout ;;
17631 *) objformat=elf ;;
17632 esac
17634 version_type=freebsd-$objformat
17635 case $version_type in
17636 freebsd-elf*)
17637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17638 need_version=no
17639 need_lib_prefix=no
17641 freebsd-*)
17642 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17643 need_version=yes
17645 esac
17646 shlibpath_var=LD_LIBRARY_PATH
17647 case $host_os in
17648 freebsd2.*)
17649 shlibpath_overrides_runpath=yes
17651 freebsd3.[01]* | freebsdelf3.[01]*)
17652 shlibpath_overrides_runpath=yes
17653 hardcode_into_libs=yes
17655 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17656 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17657 shlibpath_overrides_runpath=no
17658 hardcode_into_libs=yes
17660 *) # from 4.6 on, and DragonFly
17661 shlibpath_overrides_runpath=yes
17662 hardcode_into_libs=yes
17664 esac
17667 gnu*)
17668 version_type=linux
17669 need_lib_prefix=no
17670 need_version=no
17671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17672 soname_spec='${libname}${release}${shared_ext}$major'
17673 shlibpath_var=LD_LIBRARY_PATH
17674 hardcode_into_libs=yes
17677 haiku*)
17678 version_type=linux
17679 need_lib_prefix=no
17680 need_version=no
17681 dynamic_linker="$host_os runtime_loader"
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'
17684 shlibpath_var=LIBRARY_PATH
17685 shlibpath_overrides_runpath=yes
17686 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17687 hardcode_into_libs=yes
17690 hpux9* | hpux10* | hpux11*)
17691 # Give a soname corresponding to the major version so that dld.sl refuses to
17692 # link against other versions.
17693 version_type=sunos
17694 need_lib_prefix=no
17695 need_version=no
17696 case $host_cpu in
17697 ia64*)
17698 shrext_cmds='.so'
17699 hardcode_into_libs=yes
17700 dynamic_linker="$host_os dld.so"
17701 shlibpath_var=LD_LIBRARY_PATH
17702 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17704 soname_spec='${libname}${release}${shared_ext}$major'
17705 if test "X$HPUX_IA64_MODE" = X32; then
17706 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17707 else
17708 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17710 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17712 hppa*64*)
17713 shrext_cmds='.sl'
17714 hardcode_into_libs=yes
17715 dynamic_linker="$host_os dld.sl"
17716 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17717 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17719 soname_spec='${libname}${release}${shared_ext}$major'
17720 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17721 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17724 shrext_cmds='.sl'
17725 dynamic_linker="$host_os dld.sl"
17726 shlibpath_var=SHLIB_PATH
17727 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17729 soname_spec='${libname}${release}${shared_ext}$major'
17731 esac
17732 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17733 postinstall_cmds='chmod 555 $lib'
17734 # or fails outright, so override atomically:
17735 install_override_mode=555
17738 interix[3-9]*)
17739 version_type=linux
17740 need_lib_prefix=no
17741 need_version=no
17742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17743 soname_spec='${libname}${release}${shared_ext}$major'
17744 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17745 shlibpath_var=LD_LIBRARY_PATH
17746 shlibpath_overrides_runpath=no
17747 hardcode_into_libs=yes
17750 irix5* | irix6* | nonstopux*)
17751 case $host_os in
17752 nonstopux*) version_type=nonstopux ;;
17754 if test "$lt_cv_prog_gnu_ld" = yes; then
17755 version_type=linux
17756 else
17757 version_type=irix
17758 fi ;;
17759 esac
17760 need_lib_prefix=no
17761 need_version=no
17762 soname_spec='${libname}${release}${shared_ext}$major'
17763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17764 case $host_os in
17765 irix5* | nonstopux*)
17766 libsuff= shlibsuff=
17769 case $LD in # libtool.m4 will add one of these switches to LD
17770 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17771 libsuff= shlibsuff= libmagic=32-bit;;
17772 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17773 libsuff=32 shlibsuff=N32 libmagic=N32;;
17774 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17775 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17776 *) libsuff= shlibsuff= libmagic=never-match;;
17777 esac
17779 esac
17780 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17781 shlibpath_overrides_runpath=no
17782 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17783 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17784 hardcode_into_libs=yes
17787 # No shared lib support for Linux oldld, aout, or coff.
17788 linux*oldld* | linux*aout* | linux*coff*)
17789 dynamic_linker=no
17792 # This must be Linux ELF.
17793 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17794 version_type=linux
17795 need_lib_prefix=no
17796 need_version=no
17797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17798 soname_spec='${libname}${release}${shared_ext}$major'
17799 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17800 shlibpath_var=LD_LIBRARY_PATH
17801 shlibpath_overrides_runpath=no
17803 # Some binutils ld are patched to set DT_RUNPATH
17804 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17805 $as_echo_n "(cached) " >&6
17806 else
17807 lt_cv_shlibpath_overrides_runpath=no
17808 save_LDFLAGS=$LDFLAGS
17809 save_libdir=$libdir
17810 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17811 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17813 /* end confdefs.h. */
17816 main ()
17820 return 0;
17822 _ACEOF
17823 if ac_fn_c_try_link "$LINENO"; then :
17824 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17825 lt_cv_shlibpath_overrides_runpath=yes
17828 rm -f core conftest.err conftest.$ac_objext \
17829 conftest$ac_exeext conftest.$ac_ext
17830 LDFLAGS=$save_LDFLAGS
17831 libdir=$save_libdir
17835 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17837 # This implies no fast_install, which is unacceptable.
17838 # Some rework will be needed to allow for fast_install
17839 # before this can be enabled.
17840 hardcode_into_libs=yes
17842 # Append ld.so.conf contents to the search path
17843 if test -f /etc/ld.so.conf; then
17844 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' ' '`
17845 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17848 # We used to test for /lib/ld.so.1 and disable shared libraries on
17849 # powerpc, because MkLinux only supported shared libraries with the
17850 # GNU dynamic linker. Since this was broken with cross compilers,
17851 # most powerpc-linux boxes support dynamic linking these days and
17852 # people can always --disable-shared, the test was removed, and we
17853 # assume the GNU/Linux dynamic linker is in use.
17854 dynamic_linker='GNU/Linux ld.so'
17857 netbsd*)
17858 version_type=sunos
17859 need_lib_prefix=no
17860 need_version=no
17861 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17864 dynamic_linker='NetBSD (a.out) ld.so'
17865 else
17866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17867 soname_spec='${libname}${release}${shared_ext}$major'
17868 dynamic_linker='NetBSD ld.elf_so'
17870 shlibpath_var=LD_LIBRARY_PATH
17871 shlibpath_overrides_runpath=yes
17872 hardcode_into_libs=yes
17875 newsos6)
17876 version_type=linux
17877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17878 shlibpath_var=LD_LIBRARY_PATH
17879 shlibpath_overrides_runpath=yes
17882 *nto* | *qnx*)
17883 version_type=qnx
17884 need_lib_prefix=no
17885 need_version=no
17886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17887 soname_spec='${libname}${release}${shared_ext}$major'
17888 shlibpath_var=LD_LIBRARY_PATH
17889 shlibpath_overrides_runpath=no
17890 hardcode_into_libs=yes
17891 dynamic_linker='ldqnx.so'
17894 openbsd*)
17895 version_type=sunos
17896 sys_lib_dlsearch_path_spec="/usr/lib"
17897 need_lib_prefix=no
17898 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17899 case $host_os in
17900 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17901 *) need_version=no ;;
17902 esac
17903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17904 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17905 shlibpath_var=LD_LIBRARY_PATH
17906 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17907 case $host_os in
17908 openbsd2.[89] | openbsd2.[89].*)
17909 shlibpath_overrides_runpath=no
17912 shlibpath_overrides_runpath=yes
17914 esac
17915 else
17916 shlibpath_overrides_runpath=yes
17920 os2*)
17921 libname_spec='$name'
17922 shrext_cmds=".dll"
17923 need_lib_prefix=no
17924 library_names_spec='$libname${shared_ext} $libname.a'
17925 dynamic_linker='OS/2 ld.exe'
17926 shlibpath_var=LIBPATH
17929 osf3* | osf4* | osf5*)
17930 version_type=osf
17931 need_lib_prefix=no
17932 need_version=no
17933 soname_spec='${libname}${release}${shared_ext}$major'
17934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17935 shlibpath_var=LD_LIBRARY_PATH
17936 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17937 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17940 rdos*)
17941 dynamic_linker=no
17944 solaris*)
17945 version_type=linux
17946 need_lib_prefix=no
17947 need_version=no
17948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17949 soname_spec='${libname}${release}${shared_ext}$major'
17950 shlibpath_var=LD_LIBRARY_PATH
17951 shlibpath_overrides_runpath=yes
17952 hardcode_into_libs=yes
17953 # ldd complains unless libraries are executable
17954 postinstall_cmds='chmod +x $lib'
17957 sunos4*)
17958 version_type=sunos
17959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17960 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17961 shlibpath_var=LD_LIBRARY_PATH
17962 shlibpath_overrides_runpath=yes
17963 if test "$with_gnu_ld" = yes; then
17964 need_lib_prefix=no
17966 need_version=yes
17969 sysv4 | sysv4.3*)
17970 version_type=linux
17971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17972 soname_spec='${libname}${release}${shared_ext}$major'
17973 shlibpath_var=LD_LIBRARY_PATH
17974 case $host_vendor in
17975 sni)
17976 shlibpath_overrides_runpath=no
17977 need_lib_prefix=no
17978 runpath_var=LD_RUN_PATH
17980 siemens)
17981 need_lib_prefix=no
17983 motorola)
17984 need_lib_prefix=no
17985 need_version=no
17986 shlibpath_overrides_runpath=no
17987 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17989 esac
17992 sysv4*MP*)
17993 if test -d /usr/nec ;then
17994 version_type=linux
17995 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17996 soname_spec='$libname${shared_ext}.$major'
17997 shlibpath_var=LD_LIBRARY_PATH
18001 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18002 version_type=freebsd-elf
18003 need_lib_prefix=no
18004 need_version=no
18005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18006 soname_spec='${libname}${release}${shared_ext}$major'
18007 shlibpath_var=LD_LIBRARY_PATH
18008 shlibpath_overrides_runpath=yes
18009 hardcode_into_libs=yes
18010 if test "$with_gnu_ld" = yes; then
18011 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18012 else
18013 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18014 case $host_os in
18015 sco3.2v5*)
18016 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18018 esac
18020 sys_lib_dlsearch_path_spec='/usr/lib'
18023 tpf*)
18024 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18025 version_type=linux
18026 need_lib_prefix=no
18027 need_version=no
18028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18029 shlibpath_var=LD_LIBRARY_PATH
18030 shlibpath_overrides_runpath=no
18031 hardcode_into_libs=yes
18034 uts4*)
18035 version_type=linux
18036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18037 soname_spec='${libname}${release}${shared_ext}$major'
18038 shlibpath_var=LD_LIBRARY_PATH
18042 dynamic_linker=no
18044 esac
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18046 $as_echo "$dynamic_linker" >&6; }
18047 test "$dynamic_linker" = no && can_build_shared=no
18049 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18050 if test "$GCC" = yes; then
18051 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18054 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18055 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18057 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18058 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18153 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18154 hardcode_action=
18155 if test -n "$hardcode_libdir_flag_spec" ||
18156 test -n "$runpath_var" ||
18157 test "X$hardcode_automatic" = "Xyes" ; then
18159 # We can hardcode non-existent directories.
18160 if test "$hardcode_direct" != no &&
18161 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18162 # have to relink, otherwise we might link with an installed library
18163 # when we should be linking with a yet-to-be-installed one
18164 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18165 test "$hardcode_minus_L" != no; then
18166 # Linking always hardcodes the temporary library directory.
18167 hardcode_action=relink
18168 else
18169 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18170 hardcode_action=immediate
18172 else
18173 # We cannot hardcode anything, or else we can only hardcode existing
18174 # directories.
18175 hardcode_action=unsupported
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18178 $as_echo "$hardcode_action" >&6; }
18180 if test "$hardcode_action" = relink ||
18181 test "$inherit_rpath" = yes; then
18182 # Fast installation is not supported
18183 enable_fast_install=no
18184 elif test "$shlibpath_overrides_runpath" = yes ||
18185 test "$enable_shared" = no; then
18186 # Fast installation is not necessary
18187 enable_fast_install=needless
18195 if test "x$enable_dlopen" != xyes; then
18196 enable_dlopen=unknown
18197 enable_dlopen_self=unknown
18198 enable_dlopen_self_static=unknown
18199 else
18200 lt_cv_dlopen=no
18201 lt_cv_dlopen_libs=
18203 case $host_os in
18204 beos*)
18205 lt_cv_dlopen="load_add_on"
18206 lt_cv_dlopen_libs=
18207 lt_cv_dlopen_self=yes
18210 mingw* | pw32* | cegcc*)
18211 lt_cv_dlopen="LoadLibrary"
18212 lt_cv_dlopen_libs=
18215 cygwin*)
18216 lt_cv_dlopen="dlopen"
18217 lt_cv_dlopen_libs=
18220 darwin*)
18221 # if libdl is installed we need to link against it
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18223 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18224 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18225 $as_echo_n "(cached) " >&6
18226 else
18227 ac_check_lib_save_LIBS=$LIBS
18228 LIBS="-ldl $LIBS"
18229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18230 /* end confdefs.h. */
18232 /* Override any GCC internal prototype to avoid an error.
18233 Use char because int might match the return type of a GCC
18234 builtin and then its argument prototype would still apply. */
18235 #ifdef __cplusplus
18236 extern "C"
18237 #endif
18238 char dlopen ();
18240 main ()
18242 return dlopen ();
18244 return 0;
18246 _ACEOF
18247 if ac_fn_c_try_link "$LINENO"; then :
18248 ac_cv_lib_dl_dlopen=yes
18249 else
18250 ac_cv_lib_dl_dlopen=no
18252 rm -f core conftest.err conftest.$ac_objext \
18253 conftest$ac_exeext conftest.$ac_ext
18254 LIBS=$ac_check_lib_save_LIBS
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18257 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18258 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18259 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18260 else
18262 lt_cv_dlopen="dyld"
18263 lt_cv_dlopen_libs=
18264 lt_cv_dlopen_self=yes
18271 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18272 if test "x$ac_cv_func_shl_load" = x""yes; then :
18273 lt_cv_dlopen="shl_load"
18274 else
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18276 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18277 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18278 $as_echo_n "(cached) " >&6
18279 else
18280 ac_check_lib_save_LIBS=$LIBS
18281 LIBS="-ldld $LIBS"
18282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18283 /* end confdefs.h. */
18285 /* Override any GCC internal prototype to avoid an error.
18286 Use char because int might match the return type of a GCC
18287 builtin and then its argument prototype would still apply. */
18288 #ifdef __cplusplus
18289 extern "C"
18290 #endif
18291 char shl_load ();
18293 main ()
18295 return shl_load ();
18297 return 0;
18299 _ACEOF
18300 if ac_fn_c_try_link "$LINENO"; then :
18301 ac_cv_lib_dld_shl_load=yes
18302 else
18303 ac_cv_lib_dld_shl_load=no
18305 rm -f core conftest.err conftest.$ac_objext \
18306 conftest$ac_exeext conftest.$ac_ext
18307 LIBS=$ac_check_lib_save_LIBS
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18310 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18311 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18312 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18313 else
18314 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18315 if test "x$ac_cv_func_dlopen" = x""yes; then :
18316 lt_cv_dlopen="dlopen"
18317 else
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18319 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18320 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18321 $as_echo_n "(cached) " >&6
18322 else
18323 ac_check_lib_save_LIBS=$LIBS
18324 LIBS="-ldl $LIBS"
18325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18326 /* end confdefs.h. */
18328 /* Override any GCC internal prototype to avoid an error.
18329 Use char because int might match the return type of a GCC
18330 builtin and then its argument prototype would still apply. */
18331 #ifdef __cplusplus
18332 extern "C"
18333 #endif
18334 char dlopen ();
18336 main ()
18338 return dlopen ();
18340 return 0;
18342 _ACEOF
18343 if ac_fn_c_try_link "$LINENO"; then :
18344 ac_cv_lib_dl_dlopen=yes
18345 else
18346 ac_cv_lib_dl_dlopen=no
18348 rm -f core conftest.err conftest.$ac_objext \
18349 conftest$ac_exeext conftest.$ac_ext
18350 LIBS=$ac_check_lib_save_LIBS
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18353 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18354 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18355 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18356 else
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18358 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18359 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18360 $as_echo_n "(cached) " >&6
18361 else
18362 ac_check_lib_save_LIBS=$LIBS
18363 LIBS="-lsvld $LIBS"
18364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18365 /* end confdefs.h. */
18367 /* Override any GCC internal prototype to avoid an error.
18368 Use char because int might match the return type of a GCC
18369 builtin and then its argument prototype would still apply. */
18370 #ifdef __cplusplus
18371 extern "C"
18372 #endif
18373 char dlopen ();
18375 main ()
18377 return dlopen ();
18379 return 0;
18381 _ACEOF
18382 if ac_fn_c_try_link "$LINENO"; then :
18383 ac_cv_lib_svld_dlopen=yes
18384 else
18385 ac_cv_lib_svld_dlopen=no
18387 rm -f core conftest.err conftest.$ac_objext \
18388 conftest$ac_exeext conftest.$ac_ext
18389 LIBS=$ac_check_lib_save_LIBS
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18392 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18393 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18394 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18395 else
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18397 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18398 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18399 $as_echo_n "(cached) " >&6
18400 else
18401 ac_check_lib_save_LIBS=$LIBS
18402 LIBS="-ldld $LIBS"
18403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18404 /* end confdefs.h. */
18406 /* Override any GCC internal prototype to avoid an error.
18407 Use char because int might match the return type of a GCC
18408 builtin and then its argument prototype would still apply. */
18409 #ifdef __cplusplus
18410 extern "C"
18411 #endif
18412 char dld_link ();
18414 main ()
18416 return dld_link ();
18418 return 0;
18420 _ACEOF
18421 if ac_fn_c_try_link "$LINENO"; then :
18422 ac_cv_lib_dld_dld_link=yes
18423 else
18424 ac_cv_lib_dld_dld_link=no
18426 rm -f core conftest.err conftest.$ac_objext \
18427 conftest$ac_exeext conftest.$ac_ext
18428 LIBS=$ac_check_lib_save_LIBS
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18431 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18432 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18433 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18452 esac
18454 if test "x$lt_cv_dlopen" != xno; then
18455 enable_dlopen=yes
18456 else
18457 enable_dlopen=no
18460 case $lt_cv_dlopen in
18461 dlopen)
18462 save_CPPFLAGS="$CPPFLAGS"
18463 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18465 save_LDFLAGS="$LDFLAGS"
18466 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18468 save_LIBS="$LIBS"
18469 LIBS="$lt_cv_dlopen_libs $LIBS"
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18472 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18473 if test "${lt_cv_dlopen_self+set}" = set; then :
18474 $as_echo_n "(cached) " >&6
18475 else
18476 if test "$cross_compiling" = yes; then :
18477 lt_cv_dlopen_self=cross
18478 else
18479 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18480 lt_status=$lt_dlunknown
18481 cat > conftest.$ac_ext <<_LT_EOF
18482 #line 18482 "configure"
18483 #include "confdefs.h"
18485 #if HAVE_DLFCN_H
18486 #include <dlfcn.h>
18487 #endif
18489 #include <stdio.h>
18491 #ifdef RTLD_GLOBAL
18492 # define LT_DLGLOBAL RTLD_GLOBAL
18493 #else
18494 # ifdef DL_GLOBAL
18495 # define LT_DLGLOBAL DL_GLOBAL
18496 # else
18497 # define LT_DLGLOBAL 0
18498 # endif
18499 #endif
18501 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18502 find out it does not work in some platform. */
18503 #ifndef LT_DLLAZY_OR_NOW
18504 # ifdef RTLD_LAZY
18505 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18506 # else
18507 # ifdef DL_LAZY
18508 # define LT_DLLAZY_OR_NOW DL_LAZY
18509 # else
18510 # ifdef RTLD_NOW
18511 # define LT_DLLAZY_OR_NOW RTLD_NOW
18512 # else
18513 # ifdef DL_NOW
18514 # define LT_DLLAZY_OR_NOW DL_NOW
18515 # else
18516 # define LT_DLLAZY_OR_NOW 0
18517 # endif
18518 # endif
18519 # endif
18520 # endif
18521 #endif
18523 /* When -fvisbility=hidden is used, assume the code has been annotated
18524 correspondingly for the symbols needed. */
18525 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18526 void fnord () __attribute__((visibility("default")));
18527 #endif
18529 void fnord () { int i=42; }
18530 int main ()
18532 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18533 int status = $lt_dlunknown;
18535 if (self)
18537 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18538 else
18540 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18541 else puts (dlerror ());
18543 /* dlclose (self); */
18545 else
18546 puts (dlerror ());
18548 return status;
18550 _LT_EOF
18551 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18552 (eval $ac_link) 2>&5
18553 ac_status=$?
18554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18555 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18556 (./conftest; exit; ) >&5 2>/dev/null
18557 lt_status=$?
18558 case x$lt_status in
18559 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18560 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18561 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18562 esac
18563 else :
18564 # compilation failed
18565 lt_cv_dlopen_self=no
18568 rm -fr conftest*
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18573 $as_echo "$lt_cv_dlopen_self" >&6; }
18575 if test "x$lt_cv_dlopen_self" = xyes; then
18576 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18578 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18579 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18580 $as_echo_n "(cached) " >&6
18581 else
18582 if test "$cross_compiling" = yes; then :
18583 lt_cv_dlopen_self_static=cross
18584 else
18585 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18586 lt_status=$lt_dlunknown
18587 cat > conftest.$ac_ext <<_LT_EOF
18588 #line 18588 "configure"
18589 #include "confdefs.h"
18591 #if HAVE_DLFCN_H
18592 #include <dlfcn.h>
18593 #endif
18595 #include <stdio.h>
18597 #ifdef RTLD_GLOBAL
18598 # define LT_DLGLOBAL RTLD_GLOBAL
18599 #else
18600 # ifdef DL_GLOBAL
18601 # define LT_DLGLOBAL DL_GLOBAL
18602 # else
18603 # define LT_DLGLOBAL 0
18604 # endif
18605 #endif
18607 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18608 find out it does not work in some platform. */
18609 #ifndef LT_DLLAZY_OR_NOW
18610 # ifdef RTLD_LAZY
18611 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18612 # else
18613 # ifdef DL_LAZY
18614 # define LT_DLLAZY_OR_NOW DL_LAZY
18615 # else
18616 # ifdef RTLD_NOW
18617 # define LT_DLLAZY_OR_NOW RTLD_NOW
18618 # else
18619 # ifdef DL_NOW
18620 # define LT_DLLAZY_OR_NOW DL_NOW
18621 # else
18622 # define LT_DLLAZY_OR_NOW 0
18623 # endif
18624 # endif
18625 # endif
18626 # endif
18627 #endif
18629 /* When -fvisbility=hidden is used, assume the code has been annotated
18630 correspondingly for the symbols needed. */
18631 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18632 void fnord () __attribute__((visibility("default")));
18633 #endif
18635 void fnord () { int i=42; }
18636 int main ()
18638 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18639 int status = $lt_dlunknown;
18641 if (self)
18643 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18644 else
18646 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18647 else puts (dlerror ());
18649 /* dlclose (self); */
18651 else
18652 puts (dlerror ());
18654 return status;
18656 _LT_EOF
18657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18658 (eval $ac_link) 2>&5
18659 ac_status=$?
18660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18661 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18662 (./conftest; exit; ) >&5 2>/dev/null
18663 lt_status=$?
18664 case x$lt_status in
18665 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18666 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18667 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18668 esac
18669 else :
18670 # compilation failed
18671 lt_cv_dlopen_self_static=no
18674 rm -fr conftest*
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18679 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18682 CPPFLAGS="$save_CPPFLAGS"
18683 LDFLAGS="$save_LDFLAGS"
18684 LIBS="$save_LIBS"
18686 esac
18688 case $lt_cv_dlopen_self in
18689 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18690 *) enable_dlopen_self=unknown ;;
18691 esac
18693 case $lt_cv_dlopen_self_static in
18694 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18695 *) enable_dlopen_self_static=unknown ;;
18696 esac
18715 striplib=
18716 old_striplib=
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18718 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18719 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18720 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18721 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18723 $as_echo "yes" >&6; }
18724 else
18725 # FIXME - insert some real tests, host_os isn't really good enough
18726 case $host_os in
18727 darwin*)
18728 if test -n "$STRIP" ; then
18729 striplib="$STRIP -x"
18730 old_striplib="$STRIP -S"
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18732 $as_echo "yes" >&6; }
18733 else
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18735 $as_echo "no" >&6; }
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18740 $as_echo "no" >&6; }
18742 esac
18756 # Report which library types will actually be built
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18758 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18760 $as_echo "$can_build_shared" >&6; }
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18763 $as_echo_n "checking whether to build shared libraries... " >&6; }
18764 test "$can_build_shared" = "no" && enable_shared=no
18766 # On AIX, shared libraries and static libraries use the same namespace, and
18767 # are all built from PIC.
18768 case $host_os in
18769 aix3*)
18770 test "$enable_shared" = yes && enable_static=no
18771 if test -n "$RANLIB"; then
18772 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18773 postinstall_cmds='$RANLIB $lib'
18777 aix[4-9]*)
18778 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18779 test "$enable_shared" = yes && enable_static=no
18782 esac
18783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18784 $as_echo "$enable_shared" >&6; }
18786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18787 $as_echo_n "checking whether to build static libraries... " >&6; }
18788 # Make sure either enable_shared or enable_static is yes.
18789 test "$enable_shared" = yes || enable_static=yes
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18791 $as_echo "$enable_static" >&6; }
18797 ac_ext=cpp
18798 ac_cpp='$CXXCPP $CPPFLAGS'
18799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18803 CC="$lt_save_CC"
18805 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18806 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18807 (test "X$CXX" != "Xg++"))) ; then
18808 ac_ext=cpp
18809 ac_cpp='$CXXCPP $CPPFLAGS'
18810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18811 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18814 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18815 if test -z "$CXXCPP"; then
18816 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18817 $as_echo_n "(cached) " >&6
18818 else
18819 # Double quotes because CXXCPP needs to be expanded
18820 for CXXCPP in "$CXX -E" "/lib/cpp"
18822 ac_preproc_ok=false
18823 for ac_cxx_preproc_warn_flag in '' yes
18825 # Use a header file that comes with gcc, so configuring glibc
18826 # with a fresh cross-compiler works.
18827 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18828 # <limits.h> exists even on freestanding compilers.
18829 # On the NeXT, cc -E runs the code through the compiler's parser,
18830 # not just through cpp. "Syntax error" is here to catch this case.
18831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18832 /* end confdefs.h. */
18833 #ifdef __STDC__
18834 # include <limits.h>
18835 #else
18836 # include <assert.h>
18837 #endif
18838 Syntax error
18839 _ACEOF
18840 if ac_fn_cxx_try_cpp "$LINENO"; then :
18842 else
18843 # Broken: fails on valid input.
18844 continue
18846 rm -f conftest.err conftest.$ac_ext
18848 # OK, works on sane cases. Now check whether nonexistent headers
18849 # can be detected and how.
18850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18851 /* end confdefs.h. */
18852 #include <ac_nonexistent.h>
18853 _ACEOF
18854 if ac_fn_cxx_try_cpp "$LINENO"; then :
18855 # Broken: success on invalid input.
18856 continue
18857 else
18858 # Passes both tests.
18859 ac_preproc_ok=:
18860 break
18862 rm -f conftest.err conftest.$ac_ext
18864 done
18865 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18866 rm -f conftest.err conftest.$ac_ext
18867 if $ac_preproc_ok; then :
18868 break
18871 done
18872 ac_cv_prog_CXXCPP=$CXXCPP
18875 CXXCPP=$ac_cv_prog_CXXCPP
18876 else
18877 ac_cv_prog_CXXCPP=$CXXCPP
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18880 $as_echo "$CXXCPP" >&6; }
18881 ac_preproc_ok=false
18882 for ac_cxx_preproc_warn_flag in '' yes
18884 # Use a header file that comes with gcc, so configuring glibc
18885 # with a fresh cross-compiler works.
18886 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18887 # <limits.h> exists even on freestanding compilers.
18888 # On the NeXT, cc -E runs the code through the compiler's parser,
18889 # not just through cpp. "Syntax error" is here to catch this case.
18890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18891 /* end confdefs.h. */
18892 #ifdef __STDC__
18893 # include <limits.h>
18894 #else
18895 # include <assert.h>
18896 #endif
18897 Syntax error
18898 _ACEOF
18899 if ac_fn_cxx_try_cpp "$LINENO"; then :
18901 else
18902 # Broken: fails on valid input.
18903 continue
18905 rm -f conftest.err conftest.$ac_ext
18907 # OK, works on sane cases. Now check whether nonexistent headers
18908 # can be detected and how.
18909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18910 /* end confdefs.h. */
18911 #include <ac_nonexistent.h>
18912 _ACEOF
18913 if ac_fn_cxx_try_cpp "$LINENO"; then :
18914 # Broken: success on invalid input.
18915 continue
18916 else
18917 # Passes both tests.
18918 ac_preproc_ok=:
18919 break
18921 rm -f conftest.err conftest.$ac_ext
18923 done
18924 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18925 rm -f conftest.err conftest.$ac_ext
18926 if $ac_preproc_ok; then :
18928 else
18929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18931 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18932 See \`config.log' for more details." "$LINENO" 5; }
18935 ac_ext=cpp
18936 ac_cpp='$CXXCPP $CPPFLAGS'
18937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18941 else
18942 _lt_caught_CXX_error=yes
18945 ac_ext=cpp
18946 ac_cpp='$CXXCPP $CPPFLAGS'
18947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18951 archive_cmds_need_lc_CXX=no
18952 allow_undefined_flag_CXX=
18953 always_export_symbols_CXX=no
18954 archive_expsym_cmds_CXX=
18955 compiler_needs_object_CXX=no
18956 export_dynamic_flag_spec_CXX=
18957 hardcode_direct_CXX=no
18958 hardcode_direct_absolute_CXX=no
18959 hardcode_libdir_flag_spec_CXX=
18960 hardcode_libdir_flag_spec_ld_CXX=
18961 hardcode_libdir_separator_CXX=
18962 hardcode_minus_L_CXX=no
18963 hardcode_shlibpath_var_CXX=unsupported
18964 hardcode_automatic_CXX=no
18965 inherit_rpath_CXX=no
18966 module_cmds_CXX=
18967 module_expsym_cmds_CXX=
18968 link_all_deplibs_CXX=unknown
18969 old_archive_cmds_CXX=$old_archive_cmds
18970 reload_flag_CXX=$reload_flag
18971 reload_cmds_CXX=$reload_cmds
18972 no_undefined_flag_CXX=
18973 whole_archive_flag_spec_CXX=
18974 enable_shared_with_static_runtimes_CXX=no
18976 # Source file extension for C++ test sources.
18977 ac_ext=cpp
18979 # Object file extension for compiled C++ test sources.
18980 objext=o
18981 objext_CXX=$objext
18983 # No sense in running all these tests if we already determined that
18984 # the CXX compiler isn't working. Some variables (like enable_shared)
18985 # are currently assumed to apply to all compilers on this platform,
18986 # and will be corrupted by setting them based on a non-working compiler.
18987 if test "$_lt_caught_CXX_error" != yes; then
18988 # Code to be used in simple compile tests
18989 lt_simple_compile_test_code="int some_variable = 0;"
18991 # Code to be used in simple link tests
18992 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18994 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19001 # If no C compiler was specified, use CC.
19002 LTCC=${LTCC-"$CC"}
19004 # If no C compiler flags were specified, use CFLAGS.
19005 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19007 # Allow CC to be a program name with arguments.
19008 compiler=$CC
19011 # save warnings/boilerplate of simple test code
19012 ac_outfile=conftest.$ac_objext
19013 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19014 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19015 _lt_compiler_boilerplate=`cat conftest.err`
19016 $RM conftest*
19018 ac_outfile=conftest.$ac_objext
19019 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19020 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19021 _lt_linker_boilerplate=`cat conftest.err`
19022 $RM -r conftest*
19025 # Allow CC to be a program name with arguments.
19026 lt_save_CC=$CC
19027 lt_save_LD=$LD
19028 lt_save_GCC=$GCC
19029 GCC=$GXX
19030 lt_save_with_gnu_ld=$with_gnu_ld
19031 lt_save_path_LD=$lt_cv_path_LD
19032 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19033 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19034 else
19035 $as_unset lt_cv_prog_gnu_ld
19037 if test -n "${lt_cv_path_LDCXX+set}"; then
19038 lt_cv_path_LD=$lt_cv_path_LDCXX
19039 else
19040 $as_unset lt_cv_path_LD
19042 test -z "${LDCXX+set}" || LD=$LDCXX
19043 CC=${CXX-"c++"}
19044 compiler=$CC
19045 compiler_CXX=$CC
19046 for cc_temp in $compiler""; do
19047 case $cc_temp in
19048 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19049 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19050 \-*) ;;
19051 *) break;;
19052 esac
19053 done
19054 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19057 if test -n "$compiler"; then
19058 # We don't want -fno-exception when compiling C++ code, so set the
19059 # no_builtin_flag separately
19060 if test "$GXX" = yes; then
19061 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19062 else
19063 lt_prog_compiler_no_builtin_flag_CXX=
19066 if test "$GXX" = yes; then
19067 # Set up default GNU C++ configuration
19071 # Check whether --with-gnu-ld was given.
19072 if test "${with_gnu_ld+set}" = set; then :
19073 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19074 else
19075 with_gnu_ld=no
19078 ac_prog=ld
19079 if test "$GCC" = yes; then
19080 # Check if gcc -print-prog-name=ld gives a path.
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19082 $as_echo_n "checking for ld used by $CC... " >&6; }
19083 case $host in
19084 *-*-mingw*)
19085 # gcc leaves a trailing carriage return which upsets mingw
19086 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19088 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19089 esac
19090 case $ac_prog in
19091 # Accept absolute paths.
19092 [\\/]* | ?:[\\/]*)
19093 re_direlt='/[^/][^/]*/\.\./'
19094 # Canonicalize the pathname of ld
19095 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19096 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19097 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19098 done
19099 test -z "$LD" && LD="$ac_prog"
19102 # If it fails, then pretend we aren't using GCC.
19103 ac_prog=ld
19106 # If it is relative, then search for the first ld in PATH.
19107 with_gnu_ld=unknown
19109 esac
19110 elif test "$with_gnu_ld" = yes; then
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19112 $as_echo_n "checking for GNU ld... " >&6; }
19113 else
19114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19115 $as_echo_n "checking for non-GNU ld... " >&6; }
19117 if test "${lt_cv_path_LD+set}" = set; then :
19118 $as_echo_n "(cached) " >&6
19119 else
19120 if test -z "$LD"; then
19121 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19122 for ac_dir in $PATH; do
19123 IFS="$lt_save_ifs"
19124 test -z "$ac_dir" && ac_dir=.
19125 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19126 lt_cv_path_LD="$ac_dir/$ac_prog"
19127 # Check to see if the program is GNU ld. I'd rather use --version,
19128 # but apparently some variants of GNU ld only accept -v.
19129 # Break only if it was the GNU/non-GNU ld that we prefer.
19130 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19131 *GNU* | *'with BFD'*)
19132 test "$with_gnu_ld" != no && break
19135 test "$with_gnu_ld" != yes && break
19137 esac
19139 done
19140 IFS="$lt_save_ifs"
19141 else
19142 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19146 LD="$lt_cv_path_LD"
19147 if test -n "$LD"; then
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19149 $as_echo "$LD" >&6; }
19150 else
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19152 $as_echo "no" >&6; }
19154 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19156 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19157 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19158 $as_echo_n "(cached) " >&6
19159 else
19160 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19161 case `$LD -v 2>&1 </dev/null` in
19162 *GNU* | *'with BFD'*)
19163 lt_cv_prog_gnu_ld=yes
19166 lt_cv_prog_gnu_ld=no
19168 esac
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19171 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19172 with_gnu_ld=$lt_cv_prog_gnu_ld
19180 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19181 # archiving commands below assume that GNU ld is being used.
19182 if test "$with_gnu_ld" = yes; then
19183 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19184 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'
19186 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19187 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19189 # If archive_cmds runs LD, not CC, wlarc should be empty
19190 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19191 # investigate it a little bit more. (MM)
19192 wlarc='${wl}'
19194 # ancient GNU ld didn't support --whole-archive et. al.
19195 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19196 $GREP 'no-whole-archive' > /dev/null; then
19197 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19198 else
19199 whole_archive_flag_spec_CXX=
19201 else
19202 with_gnu_ld=no
19203 wlarc=
19205 # A generic and very simple default shared library creation
19206 # command for GNU C++ for the case where it uses the native
19207 # linker, instead of GNU ld. If possible, this setting should
19208 # overridden to take advantage of the native linker features on
19209 # the platform it is being used on.
19210 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19213 # Commands to make compiler produce verbose output that lists
19214 # what "hidden" libraries, object files and flags are used when
19215 # linking a shared library.
19216 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19218 else
19219 GXX=no
19220 with_gnu_ld=no
19221 wlarc=
19224 # PORTME: fill in a description of your system's C++ link characteristics
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19226 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19227 ld_shlibs_CXX=yes
19228 case $host_os in
19229 aix3*)
19230 # FIXME: insert proper C++ library support
19231 ld_shlibs_CXX=no
19233 aix[4-9]*)
19234 if test "$host_cpu" = ia64; then
19235 # On IA64, the linker does run time linking by default, so we don't
19236 # have to do anything special.
19237 aix_use_runtimelinking=no
19238 exp_sym_flag='-Bexport'
19239 no_entry_flag=""
19240 else
19241 aix_use_runtimelinking=no
19243 # Test if we are trying to use run time linking or normal
19244 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19245 # need to do runtime linking.
19246 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19247 for ld_flag in $LDFLAGS; do
19248 case $ld_flag in
19249 *-brtl*)
19250 aix_use_runtimelinking=yes
19251 break
19253 esac
19254 done
19256 esac
19258 exp_sym_flag='-bexport'
19259 no_entry_flag='-bnoentry'
19262 # When large executables or shared objects are built, AIX ld can
19263 # have problems creating the table of contents. If linking a library
19264 # or program results in "error TOC overflow" add -mminimal-toc to
19265 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19266 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19268 archive_cmds_CXX=''
19269 hardcode_direct_CXX=yes
19270 hardcode_direct_absolute_CXX=yes
19271 hardcode_libdir_separator_CXX=':'
19272 link_all_deplibs_CXX=yes
19273 file_list_spec_CXX='${wl}-f,'
19275 if test "$GXX" = yes; then
19276 case $host_os in aix4.[012]|aix4.[012].*)
19277 # We only want to do this on AIX 4.2 and lower, the check
19278 # below for broken collect2 doesn't work under 4.3+
19279 collect2name=`${CC} -print-prog-name=collect2`
19280 if test -f "$collect2name" &&
19281 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19282 then
19283 # We have reworked collect2
19285 else
19286 # We have old collect2
19287 hardcode_direct_CXX=unsupported
19288 # It fails to find uninstalled libraries when the uninstalled
19289 # path is not listed in the libpath. Setting hardcode_minus_L
19290 # to unsupported forces relinking
19291 hardcode_minus_L_CXX=yes
19292 hardcode_libdir_flag_spec_CXX='-L$libdir'
19293 hardcode_libdir_separator_CXX=
19295 esac
19296 shared_flag='-shared'
19297 if test "$aix_use_runtimelinking" = yes; then
19298 shared_flag="$shared_flag "'${wl}-G'
19300 else
19301 # not using gcc
19302 if test "$host_cpu" = ia64; then
19303 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19304 # chokes on -Wl,-G. The following line is correct:
19305 shared_flag='-G'
19306 else
19307 if test "$aix_use_runtimelinking" = yes; then
19308 shared_flag='${wl}-G'
19309 else
19310 shared_flag='${wl}-bM:SRE'
19315 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19316 # It seems that -bexpall does not export symbols beginning with
19317 # underscore (_), so it is better to generate a list of symbols to
19318 # export.
19319 always_export_symbols_CXX=yes
19320 if test "$aix_use_runtimelinking" = yes; then
19321 # Warning - without using the other runtime loading flags (-brtl),
19322 # -berok will link without error, but may produce a broken library.
19323 allow_undefined_flag_CXX='-berok'
19324 # Determine the default libpath from the value encoded in an empty
19325 # executable.
19326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19327 /* end confdefs.h. */
19330 main ()
19334 return 0;
19336 _ACEOF
19337 if ac_fn_cxx_try_link "$LINENO"; then :
19339 lt_aix_libpath_sed='
19340 /Import File Strings/,/^$/ {
19341 /^0/ {
19342 s/^0 *\(.*\)$/\1/
19346 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19347 # Check for a 64-bit object if we didn't find anything.
19348 if test -z "$aix_libpath"; then
19349 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19352 rm -f core conftest.err conftest.$ac_objext \
19353 conftest$ac_exeext conftest.$ac_ext
19354 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19356 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19358 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"
19359 else
19360 if test "$host_cpu" = ia64; then
19361 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19362 allow_undefined_flag_CXX="-z nodefs"
19363 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"
19364 else
19365 # Determine the default libpath from the value encoded in an
19366 # empty executable.
19367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19368 /* end confdefs.h. */
19371 main ()
19375 return 0;
19377 _ACEOF
19378 if ac_fn_cxx_try_link "$LINENO"; then :
19380 lt_aix_libpath_sed='
19381 /Import File Strings/,/^$/ {
19382 /^0/ {
19383 s/^0 *\(.*\)$/\1/
19387 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19388 # Check for a 64-bit object if we didn't find anything.
19389 if test -z "$aix_libpath"; then
19390 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19393 rm -f core conftest.err conftest.$ac_objext \
19394 conftest$ac_exeext conftest.$ac_ext
19395 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19397 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19398 # Warning - without using the other run time loading flags,
19399 # -berok will link without error, but may produce a broken library.
19400 no_undefined_flag_CXX=' ${wl}-bernotok'
19401 allow_undefined_flag_CXX=' ${wl}-berok'
19402 if test "$with_gnu_ld" = yes; then
19403 # We only use this code for GNU lds that support --whole-archive.
19404 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19405 else
19406 # Exported symbols can be pulled into shared objects from archives
19407 whole_archive_flag_spec_CXX='$convenience'
19409 archive_cmds_need_lc_CXX=yes
19410 # This is similar to how AIX traditionally builds its shared
19411 # libraries.
19412 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'
19417 beos*)
19418 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19419 allow_undefined_flag_CXX=unsupported
19420 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19421 # support --undefined. This deserves some investigation. FIXME
19422 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19423 else
19424 ld_shlibs_CXX=no
19428 chorus*)
19429 case $cc_basename in
19431 # FIXME: insert proper C++ library support
19432 ld_shlibs_CXX=no
19434 esac
19437 cygwin* | mingw* | pw32* | cegcc*)
19438 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19439 # as there is no search path for DLLs.
19440 hardcode_libdir_flag_spec_CXX='-L$libdir'
19441 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19442 allow_undefined_flag_CXX=unsupported
19443 always_export_symbols_CXX=no
19444 enable_shared_with_static_runtimes_CXX=yes
19446 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19447 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'
19448 # If the export-symbols file already is a .def file (1st line
19449 # is EXPORTS), use it as is; otherwise, prepend...
19450 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19451 cp $export_symbols $output_objdir/$soname.def;
19452 else
19453 echo EXPORTS > $output_objdir/$soname.def;
19454 cat $export_symbols >> $output_objdir/$soname.def;
19456 $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'
19457 else
19458 ld_shlibs_CXX=no
19461 darwin* | rhapsody*)
19464 archive_cmds_need_lc_CXX=no
19465 hardcode_direct_CXX=no
19466 hardcode_automatic_CXX=yes
19467 hardcode_shlibpath_var_CXX=unsupported
19468 if test "$lt_cv_ld_force_load" = "yes"; then
19469 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\"`'
19470 else
19471 whole_archive_flag_spec_CXX=''
19473 link_all_deplibs_CXX=yes
19474 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19475 case $cc_basename in
19476 ifort*) _lt_dar_can_shared=yes ;;
19477 *) _lt_dar_can_shared=$GCC ;;
19478 esac
19479 if test "$_lt_dar_can_shared" = "yes"; then
19480 output_verbose_link_cmd=func_echo_all
19481 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}"
19482 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19483 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}"
19484 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}"
19485 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19486 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}"
19487 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}"
19490 else
19491 ld_shlibs_CXX=no
19496 dgux*)
19497 case $cc_basename in
19498 ec++*)
19499 # FIXME: insert proper C++ library support
19500 ld_shlibs_CXX=no
19502 ghcx*)
19503 # Green Hills C++ Compiler
19504 # FIXME: insert proper C++ library support
19505 ld_shlibs_CXX=no
19508 # FIXME: insert proper C++ library support
19509 ld_shlibs_CXX=no
19511 esac
19514 freebsd2.*)
19515 # C++ shared libraries reported to be fairly broken before
19516 # switch to ELF
19517 ld_shlibs_CXX=no
19520 freebsd-elf*)
19521 archive_cmds_need_lc_CXX=no
19524 freebsd* | dragonfly*)
19525 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19526 # conventions
19527 ld_shlibs_CXX=yes
19530 gnu*)
19533 haiku*)
19534 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19535 link_all_deplibs_CXX=yes
19538 hpux9*)
19539 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19540 hardcode_libdir_separator_CXX=:
19541 export_dynamic_flag_spec_CXX='${wl}-E'
19542 hardcode_direct_CXX=yes
19543 hardcode_minus_L_CXX=yes # Not in the search PATH,
19544 # but as the default
19545 # location of the library.
19547 case $cc_basename in
19548 CC*)
19549 # FIXME: insert proper C++ library support
19550 ld_shlibs_CXX=no
19552 aCC*)
19553 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'
19554 # Commands to make compiler produce verbose output that lists
19555 # what "hidden" libraries, object files and flags are used when
19556 # linking a shared library.
19558 # There doesn't appear to be a way to prevent this compiler from
19559 # explicitly linking system object files so we need to strip them
19560 # from the output so that they don't get included in the library
19561 # dependencies.
19562 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"'
19565 if test "$GXX" = yes; then
19566 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'
19567 else
19568 # FIXME: insert proper C++ library support
19569 ld_shlibs_CXX=no
19572 esac
19575 hpux10*|hpux11*)
19576 if test $with_gnu_ld = no; then
19577 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19578 hardcode_libdir_separator_CXX=:
19580 case $host_cpu in
19581 hppa*64*|ia64*)
19584 export_dynamic_flag_spec_CXX='${wl}-E'
19586 esac
19588 case $host_cpu in
19589 hppa*64*|ia64*)
19590 hardcode_direct_CXX=no
19591 hardcode_shlibpath_var_CXX=no
19594 hardcode_direct_CXX=yes
19595 hardcode_direct_absolute_CXX=yes
19596 hardcode_minus_L_CXX=yes # Not in the search PATH,
19597 # but as the default
19598 # location of the library.
19600 esac
19602 case $cc_basename in
19603 CC*)
19604 # FIXME: insert proper C++ library support
19605 ld_shlibs_CXX=no
19607 aCC*)
19608 case $host_cpu in
19609 hppa*64*)
19610 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19612 ia64*)
19613 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19616 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19618 esac
19619 # Commands to make compiler produce verbose output that lists
19620 # what "hidden" libraries, object files and flags are used when
19621 # linking a shared library.
19623 # There doesn't appear to be a way to prevent this compiler from
19624 # explicitly linking system object files so we need to strip them
19625 # from the output so that they don't get included in the library
19626 # dependencies.
19627 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"'
19630 if test "$GXX" = yes; then
19631 if test $with_gnu_ld = no; then
19632 case $host_cpu in
19633 hppa*64*)
19634 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19636 ia64*)
19637 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19640 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'
19642 esac
19644 else
19645 # FIXME: insert proper C++ library support
19646 ld_shlibs_CXX=no
19649 esac
19652 interix[3-9]*)
19653 hardcode_direct_CXX=no
19654 hardcode_shlibpath_var_CXX=no
19655 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19656 export_dynamic_flag_spec_CXX='${wl}-E'
19657 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19658 # Instead, shared libraries are loaded at an image base (0x10000000 by
19659 # default) and relocated if they conflict, which is a slow very memory
19660 # consuming and fragmenting process. To avoid this, we pick a random,
19661 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19662 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19663 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'
19664 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'
19666 irix5* | irix6*)
19667 case $cc_basename in
19668 CC*)
19669 # SGI C++
19670 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'
19672 # Archives containing C++ object files must be created using
19673 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19674 # necessary to make sure instantiated templates are included
19675 # in the archive.
19676 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19679 if test "$GXX" = yes; then
19680 if test "$with_gnu_ld" = no; then
19681 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'
19682 else
19683 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'
19686 link_all_deplibs_CXX=yes
19688 esac
19689 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19690 hardcode_libdir_separator_CXX=:
19691 inherit_rpath_CXX=yes
19694 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19695 case $cc_basename in
19696 KCC*)
19697 # Kuck and Associates, Inc. (KAI) C++ Compiler
19699 # KCC will only create a shared library if the output file
19700 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19701 # to its proper name (with version) after linking.
19702 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'
19703 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'
19704 # Commands to make compiler produce verbose output that lists
19705 # what "hidden" libraries, object files and flags are used when
19706 # linking a shared library.
19708 # There doesn't appear to be a way to prevent this compiler from
19709 # explicitly linking system object files so we need to strip them
19710 # from the output so that they don't get included in the library
19711 # dependencies.
19712 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"'
19714 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19715 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19717 # Archives containing C++ object files must be created using
19718 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19719 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19721 icpc* | ecpc* )
19722 # Intel C++
19723 with_gnu_ld=yes
19724 # version 8.0 and above of icpc choke on multiply defined symbols
19725 # if we add $predep_objects and $postdep_objects, however 7.1 and
19726 # earlier do not add the objects themselves.
19727 case `$CC -V 2>&1` in
19728 *"Version 7."*)
19729 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19730 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'
19732 *) # Version 8.0 or newer
19733 tmp_idyn=
19734 case $host_cpu in
19735 ia64*) tmp_idyn=' -i_dynamic';;
19736 esac
19737 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19738 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'
19740 esac
19741 archive_cmds_need_lc_CXX=no
19742 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19743 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19744 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19746 pgCC* | pgcpp*)
19747 # Portland Group C++ compiler
19748 case `$CC -V` in
19749 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19750 prelink_cmds_CXX='tpldir=Template.dir~
19751 rm -rf $tpldir~
19752 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19753 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19754 old_archive_cmds_CXX='tpldir=Template.dir~
19755 rm -rf $tpldir~
19756 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19757 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19758 $RANLIB $oldlib'
19759 archive_cmds_CXX='tpldir=Template.dir~
19760 rm -rf $tpldir~
19761 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19762 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19763 archive_expsym_cmds_CXX='tpldir=Template.dir~
19764 rm -rf $tpldir~
19765 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19766 $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'
19768 *) # Version 6 and above use weak symbols
19769 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19770 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'
19772 esac
19774 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19775 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19776 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'
19778 cxx*)
19779 # Compaq C++
19780 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19781 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'
19783 runpath_var=LD_RUN_PATH
19784 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19785 hardcode_libdir_separator_CXX=:
19787 # Commands to make compiler produce verbose output that lists
19788 # what "hidden" libraries, object files and flags are used when
19789 # linking a shared library.
19791 # There doesn't appear to be a way to prevent this compiler from
19792 # explicitly linking system object files so we need to strip them
19793 # from the output so that they don't get included in the library
19794 # dependencies.
19795 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'
19797 xl* | mpixl* | bgxl*)
19798 # IBM XL 8.0 on PPC, with GNU ld
19799 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19800 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19801 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19802 if test "x$supports_anon_versioning" = xyes; then
19803 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19804 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19805 echo "local: *; };" >> $output_objdir/$libname.ver~
19806 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19810 case `$CC -V 2>&1 | sed 5q` in
19811 *Sun\ C*)
19812 # Sun C++ 5.9
19813 no_undefined_flag_CXX=' -zdefs'
19814 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19815 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'
19816 hardcode_libdir_flag_spec_CXX='-R$libdir'
19817 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'
19818 compiler_needs_object_CXX=yes
19820 # Not sure whether something based on
19821 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19822 # would be better.
19823 output_verbose_link_cmd='func_echo_all'
19825 # Archives containing C++ object files must be created using
19826 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19827 # necessary to make sure instantiated templates are included
19828 # in the archive.
19829 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19831 esac
19833 esac
19836 lynxos*)
19837 # FIXME: insert proper C++ library support
19838 ld_shlibs_CXX=no
19841 m88k*)
19842 # FIXME: insert proper C++ library support
19843 ld_shlibs_CXX=no
19846 mvs*)
19847 case $cc_basename in
19848 cxx*)
19849 # FIXME: insert proper C++ library support
19850 ld_shlibs_CXX=no
19853 # FIXME: insert proper C++ library support
19854 ld_shlibs_CXX=no
19856 esac
19859 netbsd*)
19860 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19861 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19862 wlarc=
19863 hardcode_libdir_flag_spec_CXX='-R$libdir'
19864 hardcode_direct_CXX=yes
19865 hardcode_shlibpath_var_CXX=no
19867 # Workaround some broken pre-1.5 toolchains
19868 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19871 *nto* | *qnx*)
19872 ld_shlibs_CXX=yes
19875 openbsd2*)
19876 # C++ shared libraries are fairly broken
19877 ld_shlibs_CXX=no
19880 openbsd*)
19881 if test -f /usr/libexec/ld.so; then
19882 hardcode_direct_CXX=yes
19883 hardcode_shlibpath_var_CXX=no
19884 hardcode_direct_absolute_CXX=yes
19885 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19886 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19887 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19888 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19889 export_dynamic_flag_spec_CXX='${wl}-E'
19890 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19892 output_verbose_link_cmd=func_echo_all
19893 else
19894 ld_shlibs_CXX=no
19898 osf3* | osf4* | osf5*)
19899 case $cc_basename in
19900 KCC*)
19901 # Kuck and Associates, Inc. (KAI) C++ Compiler
19903 # KCC will only create a shared library if the output file
19904 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19905 # to its proper name (with version) after linking.
19906 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'
19908 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19909 hardcode_libdir_separator_CXX=:
19911 # Archives containing C++ object files must be created using
19912 # the KAI C++ compiler.
19913 case $host in
19914 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19915 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19916 esac
19918 RCC*)
19919 # Rational C++ 2.4.1
19920 # FIXME: insert proper C++ library support
19921 ld_shlibs_CXX=no
19923 cxx*)
19924 case $host in
19925 osf3*)
19926 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19927 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'
19928 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19931 allow_undefined_flag_CXX=' -expect_unresolved \*'
19932 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'
19933 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19934 echo "-hidden">> $lib.exp~
19935 $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~
19936 $RM $lib.exp'
19937 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19939 esac
19941 hardcode_libdir_separator_CXX=:
19943 # Commands to make compiler produce verbose output that lists
19944 # what "hidden" libraries, object files and flags are used when
19945 # linking a shared library.
19947 # There doesn't appear to be a way to prevent this compiler from
19948 # explicitly linking system object files so we need to strip them
19949 # from the output so that they don't get included in the library
19950 # dependencies.
19951 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"'
19954 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19955 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19956 case $host in
19957 osf3*)
19958 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'
19961 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'
19963 esac
19965 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19966 hardcode_libdir_separator_CXX=:
19968 # Commands to make compiler produce verbose output that lists
19969 # what "hidden" libraries, object files and flags are used when
19970 # linking a shared library.
19971 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19973 else
19974 # FIXME: insert proper C++ library support
19975 ld_shlibs_CXX=no
19978 esac
19981 psos*)
19982 # FIXME: insert proper C++ library support
19983 ld_shlibs_CXX=no
19986 sunos4*)
19987 case $cc_basename in
19988 CC*)
19989 # Sun C++ 4.x
19990 # FIXME: insert proper C++ library support
19991 ld_shlibs_CXX=no
19993 lcc*)
19994 # Lucid
19995 # FIXME: insert proper C++ library support
19996 ld_shlibs_CXX=no
19999 # FIXME: insert proper C++ library support
20000 ld_shlibs_CXX=no
20002 esac
20005 solaris*)
20006 case $cc_basename in
20007 CC*)
20008 # Sun C++ 4.2, 5.x and Centerline C++
20009 archive_cmds_need_lc_CXX=yes
20010 no_undefined_flag_CXX=' -zdefs'
20011 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20012 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20013 $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'
20015 hardcode_libdir_flag_spec_CXX='-R$libdir'
20016 hardcode_shlibpath_var_CXX=no
20017 case $host_os in
20018 solaris2.[0-5] | solaris2.[0-5].*) ;;
20020 # The compiler driver will combine and reorder linker options,
20021 # but understands `-z linker_flag'.
20022 # Supported since Solaris 2.6 (maybe 2.5.1?)
20023 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20025 esac
20026 link_all_deplibs_CXX=yes
20028 output_verbose_link_cmd='func_echo_all'
20030 # Archives containing C++ object files must be created using
20031 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20032 # necessary to make sure instantiated templates are included
20033 # in the archive.
20034 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20036 gcx*)
20037 # Green Hills C++ Compiler
20038 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20040 # The C++ compiler must be used to create the archive.
20041 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20044 # GNU C++ compiler with Solaris linker
20045 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
20046 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
20047 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20048 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20049 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20050 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20052 # Commands to make compiler produce verbose output that lists
20053 # what "hidden" libraries, object files and flags are used when
20054 # linking a shared library.
20055 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20056 else
20057 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20058 # platform.
20059 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20060 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20061 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20063 # Commands to make compiler produce verbose output that lists
20064 # what "hidden" libraries, object files and flags are used when
20065 # linking a shared library.
20066 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20069 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20070 case $host_os in
20071 solaris2.[0-5] | solaris2.[0-5].*) ;;
20073 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20075 esac
20078 esac
20081 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20082 no_undefined_flag_CXX='${wl}-z,text'
20083 archive_cmds_need_lc_CXX=no
20084 hardcode_shlibpath_var_CXX=no
20085 runpath_var='LD_RUN_PATH'
20087 case $cc_basename in
20088 CC*)
20089 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20090 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20093 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20094 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20096 esac
20099 sysv5* | sco3.2v5* | sco5v6*)
20100 # Note: We can NOT use -z defs as we might desire, because we do not
20101 # link with -lc, and that would cause any symbols used from libc to
20102 # always be unresolved, which means just about no library would
20103 # ever link correctly. If we're not using GNU ld we use -z text
20104 # though, which does catch some bad symbols but isn't as heavy-handed
20105 # as -z defs.
20106 no_undefined_flag_CXX='${wl}-z,text'
20107 allow_undefined_flag_CXX='${wl}-z,nodefs'
20108 archive_cmds_need_lc_CXX=no
20109 hardcode_shlibpath_var_CXX=no
20110 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20111 hardcode_libdir_separator_CXX=':'
20112 link_all_deplibs_CXX=yes
20113 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20114 runpath_var='LD_RUN_PATH'
20116 case $cc_basename in
20117 CC*)
20118 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20119 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20120 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20121 '"$old_archive_cmds_CXX"
20122 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20123 '"$reload_cmds_CXX"
20126 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20127 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20129 esac
20132 tandem*)
20133 case $cc_basename in
20134 NCC*)
20135 # NonStop-UX NCC 3.20
20136 # FIXME: insert proper C++ library support
20137 ld_shlibs_CXX=no
20140 # FIXME: insert proper C++ library support
20141 ld_shlibs_CXX=no
20143 esac
20146 vxworks*)
20147 # FIXME: insert proper C++ library support
20148 ld_shlibs_CXX=no
20152 # FIXME: insert proper C++ library support
20153 ld_shlibs_CXX=no
20155 esac
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20158 $as_echo "$ld_shlibs_CXX" >&6; }
20159 test "$ld_shlibs_CXX" = no && can_build_shared=no
20161 GCC_CXX="$GXX"
20162 LD_CXX="$LD"
20164 ## CAVEAT EMPTOR:
20165 ## There is no encapsulation within the following macros, do not change
20166 ## the running order or otherwise move them around unless you know exactly
20167 ## what you are doing...
20168 # Dependencies to place before and after the object being linked:
20169 predep_objects_CXX=
20170 postdep_objects_CXX=
20171 predeps_CXX=
20172 postdeps_CXX=
20173 compiler_lib_search_path_CXX=
20175 cat > conftest.$ac_ext <<_LT_EOF
20176 class Foo
20178 public:
20179 Foo (void) { a = 0; }
20180 private:
20181 int a;
20183 _LT_EOF
20185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20186 (eval $ac_compile) 2>&5
20187 ac_status=$?
20188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20189 test $ac_status = 0; }; then
20190 # Parse the compiler output and extract the necessary
20191 # objects, libraries and library flags.
20193 # Sentinel used to keep track of whether or not we are before
20194 # the conftest object file.
20195 pre_test_object_deps_done=no
20197 for p in `eval "$output_verbose_link_cmd"`; do
20198 case $p in
20200 -L* | -R* | -l*)
20201 # Some compilers place space between "-{L,R}" and the path.
20202 # Remove the space.
20203 if test $p = "-L" ||
20204 test $p = "-R"; then
20205 prev=$p
20206 continue
20207 else
20208 prev=
20211 if test "$pre_test_object_deps_done" = no; then
20212 case $p in
20213 -L* | -R*)
20214 # Internal compiler library paths should come after those
20215 # provided the user. The postdeps already come after the
20216 # user supplied libs so there is no need to process them.
20217 if test -z "$compiler_lib_search_path_CXX"; then
20218 compiler_lib_search_path_CXX="${prev}${p}"
20219 else
20220 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20223 # The "-l" case would never come before the object being
20224 # linked, so don't bother handling this case.
20225 esac
20226 else
20227 if test -z "$postdeps_CXX"; then
20228 postdeps_CXX="${prev}${p}"
20229 else
20230 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20235 *.$objext)
20236 # This assumes that the test object file only shows up
20237 # once in the compiler output.
20238 if test "$p" = "conftest.$objext"; then
20239 pre_test_object_deps_done=yes
20240 continue
20243 if test "$pre_test_object_deps_done" = no; then
20244 if test -z "$predep_objects_CXX"; then
20245 predep_objects_CXX="$p"
20246 else
20247 predep_objects_CXX="$predep_objects_CXX $p"
20249 else
20250 if test -z "$postdep_objects_CXX"; then
20251 postdep_objects_CXX="$p"
20252 else
20253 postdep_objects_CXX="$postdep_objects_CXX $p"
20258 *) ;; # Ignore the rest.
20260 esac
20261 done
20263 # Clean up.
20264 rm -f a.out a.exe
20265 else
20266 echo "libtool.m4: error: problem compiling CXX test program"
20269 $RM -f confest.$objext
20271 # PORTME: override above test on systems where it is broken
20272 case $host_os in
20273 interix[3-9]*)
20274 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20275 # hack all around it, let's just trust "g++" to DTRT.
20276 predep_objects_CXX=
20277 postdep_objects_CXX=
20278 postdeps_CXX=
20281 linux*)
20282 case `$CC -V 2>&1 | sed 5q` in
20283 *Sun\ C*)
20284 # Sun C++ 5.9
20286 # The more standards-conforming stlport4 library is
20287 # incompatible with the Cstd library. Avoid specifying
20288 # it if it's in CXXFLAGS. Ignore libCrun as
20289 # -library=stlport4 depends on it.
20290 case " $CXX $CXXFLAGS " in
20291 *" -library=stlport4 "*)
20292 solaris_use_stlport4=yes
20294 esac
20296 if test "$solaris_use_stlport4" != yes; then
20297 postdeps_CXX='-library=Cstd -library=Crun'
20300 esac
20303 solaris*)
20304 case $cc_basename in
20305 CC*)
20306 # The more standards-conforming stlport4 library is
20307 # incompatible with the Cstd library. Avoid specifying
20308 # it if it's in CXXFLAGS. Ignore libCrun as
20309 # -library=stlport4 depends on it.
20310 case " $CXX $CXXFLAGS " in
20311 *" -library=stlport4 "*)
20312 solaris_use_stlport4=yes
20314 esac
20316 # Adding this requires a known-good setup of shared libraries for
20317 # Sun compiler versions before 5.6, else PIC objects from an old
20318 # archive will be linked into the output, leading to subtle bugs.
20319 if test "$solaris_use_stlport4" != yes; then
20320 postdeps_CXX='-library=Cstd -library=Crun'
20323 esac
20325 esac
20328 case " $postdeps_CXX " in
20329 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20330 esac
20331 compiler_lib_search_dirs_CXX=
20332 if test -n "${compiler_lib_search_path_CXX}"; then
20333 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20366 lt_prog_compiler_wl_CXX=
20367 lt_prog_compiler_pic_CXX=
20368 lt_prog_compiler_static_CXX=
20370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20371 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20373 # C++ specific cases for pic, static, wl, etc.
20374 if test "$GXX" = yes; then
20375 lt_prog_compiler_wl_CXX='-Wl,'
20376 lt_prog_compiler_static_CXX='-static'
20378 case $host_os in
20379 aix*)
20380 # All AIX code is PIC.
20381 if test "$host_cpu" = ia64; then
20382 # AIX 5 now supports IA64 processor
20383 lt_prog_compiler_static_CXX='-Bstatic'
20385 lt_prog_compiler_pic_CXX='-fPIC'
20388 amigaos*)
20389 case $host_cpu in
20390 powerpc)
20391 # see comment about AmigaOS4 .so support
20392 lt_prog_compiler_pic_CXX='-fPIC'
20394 m68k)
20395 # FIXME: we need at least 68020 code to build shared libraries, but
20396 # adding the `-m68020' flag to GCC prevents building anything better,
20397 # like `-m68040'.
20398 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20400 esac
20403 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20404 # PIC is the default for these OSes.
20406 mingw* | cygwin* | os2* | pw32* | cegcc*)
20407 # This hack is so that the source file can tell whether it is being
20408 # built for inclusion in a dll (and should export symbols for example).
20409 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20410 # (--disable-auto-import) libraries
20411 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20413 darwin* | rhapsody*)
20414 # PIC is the default on this platform
20415 # Common symbols not allowed in MH_DYLIB files
20416 lt_prog_compiler_pic_CXX='-fno-common'
20418 *djgpp*)
20419 # DJGPP does not support shared libraries at all
20420 lt_prog_compiler_pic_CXX=
20422 haiku*)
20423 # PIC is the default for Haiku.
20424 # The "-static" flag exists, but is broken.
20425 lt_prog_compiler_static_CXX=
20427 interix[3-9]*)
20428 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20429 # Instead, we relocate shared libraries at runtime.
20431 sysv4*MP*)
20432 if test -d /usr/nec; then
20433 lt_prog_compiler_pic_CXX=-Kconform_pic
20436 hpux*)
20437 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20438 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20439 # sets the default TLS model and affects inlining.
20440 case $host_cpu in
20441 hppa*64*)
20444 lt_prog_compiler_pic_CXX='-fPIC'
20446 esac
20448 *qnx* | *nto*)
20449 # QNX uses GNU C++, but need to define -shared option too, otherwise
20450 # it will coredump.
20451 lt_prog_compiler_pic_CXX='-fPIC -shared'
20454 lt_prog_compiler_pic_CXX='-fPIC'
20456 esac
20457 else
20458 case $host_os in
20459 aix[4-9]*)
20460 # All AIX code is PIC.
20461 if test "$host_cpu" = ia64; then
20462 # AIX 5 now supports IA64 processor
20463 lt_prog_compiler_static_CXX='-Bstatic'
20464 else
20465 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20468 chorus*)
20469 case $cc_basename in
20470 cxch68*)
20471 # Green Hills C++ Compiler
20472 # _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"
20474 esac
20476 dgux*)
20477 case $cc_basename in
20478 ec++*)
20479 lt_prog_compiler_pic_CXX='-KPIC'
20481 ghcx*)
20482 # Green Hills C++ Compiler
20483 lt_prog_compiler_pic_CXX='-pic'
20487 esac
20489 freebsd* | dragonfly*)
20490 # FreeBSD uses GNU C++
20492 hpux9* | hpux10* | hpux11*)
20493 case $cc_basename in
20494 CC*)
20495 lt_prog_compiler_wl_CXX='-Wl,'
20496 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20497 if test "$host_cpu" != ia64; then
20498 lt_prog_compiler_pic_CXX='+Z'
20501 aCC*)
20502 lt_prog_compiler_wl_CXX='-Wl,'
20503 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20504 case $host_cpu in
20505 hppa*64*|ia64*)
20506 # +Z the default
20509 lt_prog_compiler_pic_CXX='+Z'
20511 esac
20515 esac
20517 interix*)
20518 # This is c89, which is MS Visual C++ (no shared libs)
20519 # Anyone wants to do a port?
20521 irix5* | irix6* | nonstopux*)
20522 case $cc_basename in
20523 CC*)
20524 lt_prog_compiler_wl_CXX='-Wl,'
20525 lt_prog_compiler_static_CXX='-non_shared'
20526 # CC pic flag -KPIC is the default.
20530 esac
20532 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20533 case $cc_basename in
20534 KCC*)
20535 # KAI C++ Compiler
20536 lt_prog_compiler_wl_CXX='--backend -Wl,'
20537 lt_prog_compiler_pic_CXX='-fPIC'
20539 ecpc* )
20540 # old Intel C++ for x86_64 which still supported -KPIC.
20541 lt_prog_compiler_wl_CXX='-Wl,'
20542 lt_prog_compiler_pic_CXX='-KPIC'
20543 lt_prog_compiler_static_CXX='-static'
20545 icpc* )
20546 # Intel C++, used to be incompatible with GCC.
20547 # ICC 10 doesn't accept -KPIC any more.
20548 lt_prog_compiler_wl_CXX='-Wl,'
20549 lt_prog_compiler_pic_CXX='-fPIC'
20550 lt_prog_compiler_static_CXX='-static'
20552 pgCC* | pgcpp*)
20553 # Portland Group C++ compiler
20554 lt_prog_compiler_wl_CXX='-Wl,'
20555 lt_prog_compiler_pic_CXX='-fpic'
20556 lt_prog_compiler_static_CXX='-Bstatic'
20558 cxx*)
20559 # Compaq C++
20560 # Make sure the PIC flag is empty. It appears that all Alpha
20561 # Linux and Compaq Tru64 Unix objects are PIC.
20562 lt_prog_compiler_pic_CXX=
20563 lt_prog_compiler_static_CXX='-non_shared'
20565 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20566 # IBM XL 8.0, 9.0 on PPC and BlueGene
20567 lt_prog_compiler_wl_CXX='-Wl,'
20568 lt_prog_compiler_pic_CXX='-qpic'
20569 lt_prog_compiler_static_CXX='-qstaticlink'
20572 case `$CC -V 2>&1 | sed 5q` in
20573 *Sun\ C*)
20574 # Sun C++ 5.9
20575 lt_prog_compiler_pic_CXX='-KPIC'
20576 lt_prog_compiler_static_CXX='-Bstatic'
20577 lt_prog_compiler_wl_CXX='-Qoption ld '
20579 esac
20581 esac
20583 lynxos*)
20585 m88k*)
20587 mvs*)
20588 case $cc_basename in
20589 cxx*)
20590 lt_prog_compiler_pic_CXX='-W c,exportall'
20594 esac
20596 netbsd*)
20598 *qnx* | *nto*)
20599 # QNX uses GNU C++, but need to define -shared option too, otherwise
20600 # it will coredump.
20601 lt_prog_compiler_pic_CXX='-fPIC -shared'
20603 osf3* | osf4* | osf5*)
20604 case $cc_basename in
20605 KCC*)
20606 lt_prog_compiler_wl_CXX='--backend -Wl,'
20608 RCC*)
20609 # Rational C++ 2.4.1
20610 lt_prog_compiler_pic_CXX='-pic'
20612 cxx*)
20613 # Digital/Compaq C++
20614 lt_prog_compiler_wl_CXX='-Wl,'
20615 # Make sure the PIC flag is empty. It appears that all Alpha
20616 # Linux and Compaq Tru64 Unix objects are PIC.
20617 lt_prog_compiler_pic_CXX=
20618 lt_prog_compiler_static_CXX='-non_shared'
20622 esac
20624 psos*)
20626 solaris*)
20627 case $cc_basename in
20628 CC*)
20629 # Sun C++ 4.2, 5.x and Centerline C++
20630 lt_prog_compiler_pic_CXX='-KPIC'
20631 lt_prog_compiler_static_CXX='-Bstatic'
20632 lt_prog_compiler_wl_CXX='-Qoption ld '
20634 gcx*)
20635 # Green Hills C++ Compiler
20636 lt_prog_compiler_pic_CXX='-PIC'
20640 esac
20642 sunos4*)
20643 case $cc_basename in
20644 CC*)
20645 # Sun C++ 4.x
20646 lt_prog_compiler_pic_CXX='-pic'
20647 lt_prog_compiler_static_CXX='-Bstatic'
20649 lcc*)
20650 # Lucid
20651 lt_prog_compiler_pic_CXX='-pic'
20655 esac
20657 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20658 case $cc_basename in
20659 CC*)
20660 lt_prog_compiler_wl_CXX='-Wl,'
20661 lt_prog_compiler_pic_CXX='-KPIC'
20662 lt_prog_compiler_static_CXX='-Bstatic'
20664 esac
20666 tandem*)
20667 case $cc_basename in
20668 NCC*)
20669 # NonStop-UX NCC 3.20
20670 lt_prog_compiler_pic_CXX='-KPIC'
20674 esac
20676 vxworks*)
20679 lt_prog_compiler_can_build_shared_CXX=no
20681 esac
20684 case $host_os in
20685 # For platforms which do not support PIC, -DPIC is meaningless:
20686 *djgpp*)
20687 lt_prog_compiler_pic_CXX=
20690 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20692 esac
20693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20694 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20699 # Check to make sure the PIC flag actually works.
20701 if test -n "$lt_prog_compiler_pic_CXX"; then
20702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20703 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20704 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20705 $as_echo_n "(cached) " >&6
20706 else
20707 lt_cv_prog_compiler_pic_works_CXX=no
20708 ac_outfile=conftest.$ac_objext
20709 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20710 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20711 # Insert the option either (1) after the last *FLAGS variable, or
20712 # (2) before a word containing "conftest.", or (3) at the end.
20713 # Note that $ac_compile itself does not contain backslashes and begins
20714 # with a dollar sign (not a hyphen), so the echo should work correctly.
20715 # The option is referenced via a variable to avoid confusing sed.
20716 lt_compile=`echo "$ac_compile" | $SED \
20717 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20719 -e 's:$: $lt_compiler_flag:'`
20720 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20721 (eval "$lt_compile" 2>conftest.err)
20722 ac_status=$?
20723 cat conftest.err >&5
20724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725 if (exit $ac_status) && test -s "$ac_outfile"; then
20726 # The compiler can only warn and ignore the option if not recognized
20727 # So say no if there are warnings other than the usual output.
20728 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20729 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20730 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20731 lt_cv_prog_compiler_pic_works_CXX=yes
20734 $RM conftest*
20737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20738 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20740 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20741 case $lt_prog_compiler_pic_CXX in
20742 "" | " "*) ;;
20743 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20744 esac
20745 else
20746 lt_prog_compiler_pic_CXX=
20747 lt_prog_compiler_can_build_shared_CXX=no
20755 # Check to make sure the static flag actually works.
20757 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20759 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20760 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20761 $as_echo_n "(cached) " >&6
20762 else
20763 lt_cv_prog_compiler_static_works_CXX=no
20764 save_LDFLAGS="$LDFLAGS"
20765 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20766 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20767 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20768 # The linker can only warn and ignore the option if not recognized
20769 # So say no if there are warnings
20770 if test -s conftest.err; then
20771 # Append any errors to the config.log.
20772 cat conftest.err 1>&5
20773 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20774 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20775 if diff conftest.exp conftest.er2 >/dev/null; then
20776 lt_cv_prog_compiler_static_works_CXX=yes
20778 else
20779 lt_cv_prog_compiler_static_works_CXX=yes
20782 $RM -r conftest*
20783 LDFLAGS="$save_LDFLAGS"
20786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20787 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20789 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20791 else
20792 lt_prog_compiler_static_CXX=
20798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20799 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20800 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20801 $as_echo_n "(cached) " >&6
20802 else
20803 lt_cv_prog_compiler_c_o_CXX=no
20804 $RM -r conftest 2>/dev/null
20805 mkdir conftest
20806 cd conftest
20807 mkdir out
20808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20810 lt_compiler_flag="-o out/conftest2.$ac_objext"
20811 # Insert the option either (1) after the last *FLAGS variable, or
20812 # (2) before a word containing "conftest.", or (3) at the end.
20813 # Note that $ac_compile itself does not contain backslashes and begins
20814 # with a dollar sign (not a hyphen), so the echo should work correctly.
20815 lt_compile=`echo "$ac_compile" | $SED \
20816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20818 -e 's:$: $lt_compiler_flag:'`
20819 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20820 (eval "$lt_compile" 2>out/conftest.err)
20821 ac_status=$?
20822 cat out/conftest.err >&5
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20825 then
20826 # The compiler can only warn and ignore the option if not recognized
20827 # So say no if there are warnings
20828 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20829 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20830 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20831 lt_cv_prog_compiler_c_o_CXX=yes
20834 chmod u+w . 2>&5
20835 $RM conftest*
20836 # SGI C++ compiler will create directory out/ii_files/ for
20837 # template instantiation
20838 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20839 $RM out/* && rmdir out
20840 cd ..
20841 $RM -r conftest
20842 $RM conftest*
20845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20846 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20851 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20852 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20853 $as_echo_n "(cached) " >&6
20854 else
20855 lt_cv_prog_compiler_c_o_CXX=no
20856 $RM -r conftest 2>/dev/null
20857 mkdir conftest
20858 cd conftest
20859 mkdir out
20860 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20862 lt_compiler_flag="-o out/conftest2.$ac_objext"
20863 # Insert the option either (1) after the last *FLAGS variable, or
20864 # (2) before a word containing "conftest.", or (3) at the end.
20865 # Note that $ac_compile itself does not contain backslashes and begins
20866 # with a dollar sign (not a hyphen), so the echo should work correctly.
20867 lt_compile=`echo "$ac_compile" | $SED \
20868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20869 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20870 -e 's:$: $lt_compiler_flag:'`
20871 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20872 (eval "$lt_compile" 2>out/conftest.err)
20873 ac_status=$?
20874 cat out/conftest.err >&5
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20877 then
20878 # The compiler can only warn and ignore the option if not recognized
20879 # So say no if there are warnings
20880 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20881 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20882 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20883 lt_cv_prog_compiler_c_o_CXX=yes
20886 chmod u+w . 2>&5
20887 $RM conftest*
20888 # SGI C++ compiler will create directory out/ii_files/ for
20889 # template instantiation
20890 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20891 $RM out/* && rmdir out
20892 cd ..
20893 $RM -r conftest
20894 $RM conftest*
20897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20898 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20903 hard_links="nottested"
20904 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20905 # do not overwrite the value of need_locks provided by the user
20906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20907 $as_echo_n "checking if we can lock with hard links... " >&6; }
20908 hard_links=yes
20909 $RM conftest*
20910 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20911 touch conftest.a
20912 ln conftest.a conftest.b 2>&5 || hard_links=no
20913 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20915 $as_echo "$hard_links" >&6; }
20916 if test "$hard_links" = no; then
20917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20918 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20919 need_locks=warn
20921 else
20922 need_locks=no
20927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20928 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20930 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20931 case $host_os in
20932 aix[4-9]*)
20933 # If we're using GNU nm, then we don't want the "-C" option.
20934 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20935 # Also, AIX nm treats weak defined symbols like other global defined
20936 # symbols, whereas GNU nm marks them as "W".
20937 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20938 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'
20939 else
20940 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'
20943 pw32*)
20944 export_symbols_cmds_CXX="$ltdll_cmds"
20946 cygwin* | mingw* | cegcc*)
20947 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'
20950 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20952 esac
20953 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20956 $as_echo "$ld_shlibs_CXX" >&6; }
20957 test "$ld_shlibs_CXX" = no && can_build_shared=no
20959 with_gnu_ld_CXX=$with_gnu_ld
20967 # Do we need to explicitly link libc?
20969 case "x$archive_cmds_need_lc_CXX" in
20970 x|xyes)
20971 # Assume -lc should be added
20972 archive_cmds_need_lc_CXX=yes
20974 if test "$enable_shared" = yes && test "$GCC" = yes; then
20975 case $archive_cmds_CXX in
20976 *'~'*)
20977 # FIXME: we may have to deal with multi-command sequences.
20979 '$CC '*)
20980 # Test whether the compiler implicitly links with -lc since on some
20981 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20982 # to ld, don't add -lc before -lgcc.
20983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20984 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20985 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20986 $as_echo_n "(cached) " >&6
20987 else
20988 $RM conftest*
20989 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20992 (eval $ac_compile) 2>&5
20993 ac_status=$?
20994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20995 test $ac_status = 0; } 2>conftest.err; then
20996 soname=conftest
20997 lib=conftest
20998 libobjs=conftest.$ac_objext
20999 deplibs=
21000 wl=$lt_prog_compiler_wl_CXX
21001 pic_flag=$lt_prog_compiler_pic_CXX
21002 compiler_flags=-v
21003 linker_flags=-v
21004 verstring=
21005 output_objdir=.
21006 libname=conftest
21007 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21008 allow_undefined_flag_CXX=
21009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21010 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21011 ac_status=$?
21012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21013 test $ac_status = 0; }
21014 then
21015 lt_cv_archive_cmds_need_lc_CXX=no
21016 else
21017 lt_cv_archive_cmds_need_lc_CXX=yes
21019 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21020 else
21021 cat conftest.err 1>&5
21023 $RM conftest*
21026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21027 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21028 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21030 esac
21033 esac
21098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21099 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21101 library_names_spec=
21102 libname_spec='lib$name'
21103 soname_spec=
21104 shrext_cmds=".so"
21105 postinstall_cmds=
21106 postuninstall_cmds=
21107 finish_cmds=
21108 finish_eval=
21109 shlibpath_var=
21110 shlibpath_overrides_runpath=unknown
21111 version_type=none
21112 dynamic_linker="$host_os ld.so"
21113 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21114 need_lib_prefix=unknown
21115 hardcode_into_libs=no
21117 # when you set need_version to no, make sure it does not cause -set_version
21118 # flags to be left without arguments
21119 need_version=unknown
21121 case $host_os in
21122 aix3*)
21123 version_type=linux
21124 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21125 shlibpath_var=LIBPATH
21127 # AIX 3 has no versioning support, so we append a major version to the name.
21128 soname_spec='${libname}${release}${shared_ext}$major'
21131 aix[4-9]*)
21132 version_type=linux
21133 need_lib_prefix=no
21134 need_version=no
21135 hardcode_into_libs=yes
21136 if test "$host_cpu" = ia64; then
21137 # AIX 5 supports IA64
21138 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21139 shlibpath_var=LD_LIBRARY_PATH
21140 else
21141 # With GCC up to 2.95.x, collect2 would create an import file
21142 # for dependence libraries. The import file would start with
21143 # the line `#! .'. This would cause the generated library to
21144 # depend on `.', always an invalid library. This was fixed in
21145 # development snapshots of GCC prior to 3.0.
21146 case $host_os in
21147 aix4 | aix4.[01] | aix4.[01].*)
21148 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21149 echo ' yes '
21150 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21152 else
21153 can_build_shared=no
21156 esac
21157 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21158 # soname into executable. Probably we can add versioning support to
21159 # collect2, so additional links can be useful in future.
21160 if test "$aix_use_runtimelinking" = yes; then
21161 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21162 # instead of lib<name>.a to let people know that these are not
21163 # typical AIX shared libraries.
21164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21165 else
21166 # We preserve .a as extension for shared libraries through AIX4.2
21167 # and later when we are not doing run time linking.
21168 library_names_spec='${libname}${release}.a $libname.a'
21169 soname_spec='${libname}${release}${shared_ext}$major'
21171 shlibpath_var=LIBPATH
21175 amigaos*)
21176 case $host_cpu in
21177 powerpc)
21178 # Since July 2007 AmigaOS4 officially supports .so libraries.
21179 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21182 m68k)
21183 library_names_spec='$libname.ixlibrary $libname.a'
21184 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21185 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'
21187 esac
21190 beos*)
21191 library_names_spec='${libname}${shared_ext}'
21192 dynamic_linker="$host_os ld.so"
21193 shlibpath_var=LIBRARY_PATH
21196 bsdi[45]*)
21197 version_type=linux
21198 need_version=no
21199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21200 soname_spec='${libname}${release}${shared_ext}$major'
21201 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21202 shlibpath_var=LD_LIBRARY_PATH
21203 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21204 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21205 # the default ld.so.conf also contains /usr/contrib/lib and
21206 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21207 # libtool to hard-code these into programs
21210 cygwin* | mingw* | pw32* | cegcc*)
21211 version_type=windows
21212 shrext_cmds=".dll"
21213 need_version=no
21214 need_lib_prefix=no
21216 case $GCC,$host_os in
21217 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21218 library_names_spec='$libname.dll.a'
21219 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21220 postinstall_cmds='base_file=`basename \${file}`~
21221 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21222 dldir=$destdir/`dirname \$dlpath`~
21223 test -d \$dldir || mkdir -p \$dldir~
21224 $install_prog $dir/$dlname \$dldir/$dlname~
21225 chmod a+x \$dldir/$dlname~
21226 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21227 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21229 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21230 dlpath=$dir/\$dldll~
21231 $RM \$dlpath'
21232 shlibpath_overrides_runpath=yes
21234 case $host_os in
21235 cygwin*)
21236 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21237 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21240 mingw* | cegcc*)
21241 # MinGW DLLs use traditional 'lib' prefix
21242 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21244 pw32*)
21245 # pw32 DLLs use 'pw' prefix rather than 'lib'
21246 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21248 esac
21252 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21254 esac
21255 dynamic_linker='Win32 ld.exe'
21256 # FIXME: first we should search . and the directory the executable is in
21257 shlibpath_var=PATH
21260 darwin* | rhapsody*)
21261 dynamic_linker="$host_os dyld"
21262 version_type=darwin
21263 need_lib_prefix=no
21264 need_version=no
21265 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21266 soname_spec='${libname}${release}${major}$shared_ext'
21267 shlibpath_overrides_runpath=yes
21268 shlibpath_var=DYLD_LIBRARY_PATH
21269 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21271 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21274 dgux*)
21275 version_type=linux
21276 need_lib_prefix=no
21277 need_version=no
21278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21279 soname_spec='${libname}${release}${shared_ext}$major'
21280 shlibpath_var=LD_LIBRARY_PATH
21283 freebsd* | dragonfly*)
21284 # DragonFly does not have aout. When/if they implement a new
21285 # versioning mechanism, adjust this.
21286 if test -x /usr/bin/objformat; then
21287 objformat=`/usr/bin/objformat`
21288 else
21289 case $host_os in
21290 freebsd[23].*) objformat=aout ;;
21291 *) objformat=elf ;;
21292 esac
21294 version_type=freebsd-$objformat
21295 case $version_type in
21296 freebsd-elf*)
21297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21298 need_version=no
21299 need_lib_prefix=no
21301 freebsd-*)
21302 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21303 need_version=yes
21305 esac
21306 shlibpath_var=LD_LIBRARY_PATH
21307 case $host_os in
21308 freebsd2.*)
21309 shlibpath_overrides_runpath=yes
21311 freebsd3.[01]* | freebsdelf3.[01]*)
21312 shlibpath_overrides_runpath=yes
21313 hardcode_into_libs=yes
21315 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21316 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21317 shlibpath_overrides_runpath=no
21318 hardcode_into_libs=yes
21320 *) # from 4.6 on, and DragonFly
21321 shlibpath_overrides_runpath=yes
21322 hardcode_into_libs=yes
21324 esac
21327 gnu*)
21328 version_type=linux
21329 need_lib_prefix=no
21330 need_version=no
21331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21332 soname_spec='${libname}${release}${shared_ext}$major'
21333 shlibpath_var=LD_LIBRARY_PATH
21334 hardcode_into_libs=yes
21337 haiku*)
21338 version_type=linux
21339 need_lib_prefix=no
21340 need_version=no
21341 dynamic_linker="$host_os runtime_loader"
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'
21344 shlibpath_var=LIBRARY_PATH
21345 shlibpath_overrides_runpath=yes
21346 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21347 hardcode_into_libs=yes
21350 hpux9* | hpux10* | hpux11*)
21351 # Give a soname corresponding to the major version so that dld.sl refuses to
21352 # link against other versions.
21353 version_type=sunos
21354 need_lib_prefix=no
21355 need_version=no
21356 case $host_cpu in
21357 ia64*)
21358 shrext_cmds='.so'
21359 hardcode_into_libs=yes
21360 dynamic_linker="$host_os dld.so"
21361 shlibpath_var=LD_LIBRARY_PATH
21362 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21364 soname_spec='${libname}${release}${shared_ext}$major'
21365 if test "X$HPUX_IA64_MODE" = X32; then
21366 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21367 else
21368 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21372 hppa*64*)
21373 shrext_cmds='.sl'
21374 hardcode_into_libs=yes
21375 dynamic_linker="$host_os dld.sl"
21376 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21377 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21379 soname_spec='${libname}${release}${shared_ext}$major'
21380 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21381 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21384 shrext_cmds='.sl'
21385 dynamic_linker="$host_os dld.sl"
21386 shlibpath_var=SHLIB_PATH
21387 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21389 soname_spec='${libname}${release}${shared_ext}$major'
21391 esac
21392 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21393 postinstall_cmds='chmod 555 $lib'
21394 # or fails outright, so override atomically:
21395 install_override_mode=555
21398 interix[3-9]*)
21399 version_type=linux
21400 need_lib_prefix=no
21401 need_version=no
21402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21403 soname_spec='${libname}${release}${shared_ext}$major'
21404 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21405 shlibpath_var=LD_LIBRARY_PATH
21406 shlibpath_overrides_runpath=no
21407 hardcode_into_libs=yes
21410 irix5* | irix6* | nonstopux*)
21411 case $host_os in
21412 nonstopux*) version_type=nonstopux ;;
21414 if test "$lt_cv_prog_gnu_ld" = yes; then
21415 version_type=linux
21416 else
21417 version_type=irix
21418 fi ;;
21419 esac
21420 need_lib_prefix=no
21421 need_version=no
21422 soname_spec='${libname}${release}${shared_ext}$major'
21423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21424 case $host_os in
21425 irix5* | nonstopux*)
21426 libsuff= shlibsuff=
21429 case $LD in # libtool.m4 will add one of these switches to LD
21430 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21431 libsuff= shlibsuff= libmagic=32-bit;;
21432 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21433 libsuff=32 shlibsuff=N32 libmagic=N32;;
21434 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21435 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21436 *) libsuff= shlibsuff= libmagic=never-match;;
21437 esac
21439 esac
21440 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21441 shlibpath_overrides_runpath=no
21442 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21443 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21444 hardcode_into_libs=yes
21447 # No shared lib support for Linux oldld, aout, or coff.
21448 linux*oldld* | linux*aout* | linux*coff*)
21449 dynamic_linker=no
21452 # This must be Linux ELF.
21453 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21454 version_type=linux
21455 need_lib_prefix=no
21456 need_version=no
21457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21458 soname_spec='${libname}${release}${shared_ext}$major'
21459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21460 shlibpath_var=LD_LIBRARY_PATH
21461 shlibpath_overrides_runpath=no
21463 # Some binutils ld are patched to set DT_RUNPATH
21464 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21465 $as_echo_n "(cached) " >&6
21466 else
21467 lt_cv_shlibpath_overrides_runpath=no
21468 save_LDFLAGS=$LDFLAGS
21469 save_libdir=$libdir
21470 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21471 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21473 /* end confdefs.h. */
21476 main ()
21480 return 0;
21482 _ACEOF
21483 if ac_fn_cxx_try_link "$LINENO"; then :
21484 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21485 lt_cv_shlibpath_overrides_runpath=yes
21488 rm -f core conftest.err conftest.$ac_objext \
21489 conftest$ac_exeext conftest.$ac_ext
21490 LDFLAGS=$save_LDFLAGS
21491 libdir=$save_libdir
21495 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21497 # This implies no fast_install, which is unacceptable.
21498 # Some rework will be needed to allow for fast_install
21499 # before this can be enabled.
21500 hardcode_into_libs=yes
21502 # Append ld.so.conf contents to the search path
21503 if test -f /etc/ld.so.conf; then
21504 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' ' '`
21505 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21508 # We used to test for /lib/ld.so.1 and disable shared libraries on
21509 # powerpc, because MkLinux only supported shared libraries with the
21510 # GNU dynamic linker. Since this was broken with cross compilers,
21511 # most powerpc-linux boxes support dynamic linking these days and
21512 # people can always --disable-shared, the test was removed, and we
21513 # assume the GNU/Linux dynamic linker is in use.
21514 dynamic_linker='GNU/Linux ld.so'
21517 netbsd*)
21518 version_type=sunos
21519 need_lib_prefix=no
21520 need_version=no
21521 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21523 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21524 dynamic_linker='NetBSD (a.out) ld.so'
21525 else
21526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21527 soname_spec='${libname}${release}${shared_ext}$major'
21528 dynamic_linker='NetBSD ld.elf_so'
21530 shlibpath_var=LD_LIBRARY_PATH
21531 shlibpath_overrides_runpath=yes
21532 hardcode_into_libs=yes
21535 newsos6)
21536 version_type=linux
21537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21538 shlibpath_var=LD_LIBRARY_PATH
21539 shlibpath_overrides_runpath=yes
21542 *nto* | *qnx*)
21543 version_type=qnx
21544 need_lib_prefix=no
21545 need_version=no
21546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21547 soname_spec='${libname}${release}${shared_ext}$major'
21548 shlibpath_var=LD_LIBRARY_PATH
21549 shlibpath_overrides_runpath=no
21550 hardcode_into_libs=yes
21551 dynamic_linker='ldqnx.so'
21554 openbsd*)
21555 version_type=sunos
21556 sys_lib_dlsearch_path_spec="/usr/lib"
21557 need_lib_prefix=no
21558 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21559 case $host_os in
21560 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21561 *) need_version=no ;;
21562 esac
21563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21564 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21565 shlibpath_var=LD_LIBRARY_PATH
21566 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21567 case $host_os in
21568 openbsd2.[89] | openbsd2.[89].*)
21569 shlibpath_overrides_runpath=no
21572 shlibpath_overrides_runpath=yes
21574 esac
21575 else
21576 shlibpath_overrides_runpath=yes
21580 os2*)
21581 libname_spec='$name'
21582 shrext_cmds=".dll"
21583 need_lib_prefix=no
21584 library_names_spec='$libname${shared_ext} $libname.a'
21585 dynamic_linker='OS/2 ld.exe'
21586 shlibpath_var=LIBPATH
21589 osf3* | osf4* | osf5*)
21590 version_type=osf
21591 need_lib_prefix=no
21592 need_version=no
21593 soname_spec='${libname}${release}${shared_ext}$major'
21594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21595 shlibpath_var=LD_LIBRARY_PATH
21596 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21597 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21600 rdos*)
21601 dynamic_linker=no
21604 solaris*)
21605 version_type=linux
21606 need_lib_prefix=no
21607 need_version=no
21608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21609 soname_spec='${libname}${release}${shared_ext}$major'
21610 shlibpath_var=LD_LIBRARY_PATH
21611 shlibpath_overrides_runpath=yes
21612 hardcode_into_libs=yes
21613 # ldd complains unless libraries are executable
21614 postinstall_cmds='chmod +x $lib'
21617 sunos4*)
21618 version_type=sunos
21619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21620 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21621 shlibpath_var=LD_LIBRARY_PATH
21622 shlibpath_overrides_runpath=yes
21623 if test "$with_gnu_ld" = yes; then
21624 need_lib_prefix=no
21626 need_version=yes
21629 sysv4 | sysv4.3*)
21630 version_type=linux
21631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21632 soname_spec='${libname}${release}${shared_ext}$major'
21633 shlibpath_var=LD_LIBRARY_PATH
21634 case $host_vendor in
21635 sni)
21636 shlibpath_overrides_runpath=no
21637 need_lib_prefix=no
21638 runpath_var=LD_RUN_PATH
21640 siemens)
21641 need_lib_prefix=no
21643 motorola)
21644 need_lib_prefix=no
21645 need_version=no
21646 shlibpath_overrides_runpath=no
21647 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21649 esac
21652 sysv4*MP*)
21653 if test -d /usr/nec ;then
21654 version_type=linux
21655 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21656 soname_spec='$libname${shared_ext}.$major'
21657 shlibpath_var=LD_LIBRARY_PATH
21661 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21662 version_type=freebsd-elf
21663 need_lib_prefix=no
21664 need_version=no
21665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21666 soname_spec='${libname}${release}${shared_ext}$major'
21667 shlibpath_var=LD_LIBRARY_PATH
21668 shlibpath_overrides_runpath=yes
21669 hardcode_into_libs=yes
21670 if test "$with_gnu_ld" = yes; then
21671 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21672 else
21673 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21674 case $host_os in
21675 sco3.2v5*)
21676 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21678 esac
21680 sys_lib_dlsearch_path_spec='/usr/lib'
21683 tpf*)
21684 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21685 version_type=linux
21686 need_lib_prefix=no
21687 need_version=no
21688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21689 shlibpath_var=LD_LIBRARY_PATH
21690 shlibpath_overrides_runpath=no
21691 hardcode_into_libs=yes
21694 uts4*)
21695 version_type=linux
21696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21697 soname_spec='${libname}${release}${shared_ext}$major'
21698 shlibpath_var=LD_LIBRARY_PATH
21702 dynamic_linker=no
21704 esac
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21706 $as_echo "$dynamic_linker" >&6; }
21707 test "$dynamic_linker" = no && can_build_shared=no
21709 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21710 if test "$GCC" = yes; then
21711 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21714 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21715 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21717 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21718 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21759 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21760 hardcode_action_CXX=
21761 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21762 test -n "$runpath_var_CXX" ||
21763 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21765 # We can hardcode non-existent directories.
21766 if test "$hardcode_direct_CXX" != no &&
21767 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21768 # have to relink, otherwise we might link with an installed library
21769 # when we should be linking with a yet-to-be-installed one
21770 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21771 test "$hardcode_minus_L_CXX" != no; then
21772 # Linking always hardcodes the temporary library directory.
21773 hardcode_action_CXX=relink
21774 else
21775 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21776 hardcode_action_CXX=immediate
21778 else
21779 # We cannot hardcode anything, or else we can only hardcode existing
21780 # directories.
21781 hardcode_action_CXX=unsupported
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21784 $as_echo "$hardcode_action_CXX" >&6; }
21786 if test "$hardcode_action_CXX" = relink ||
21787 test "$inherit_rpath_CXX" = yes; then
21788 # Fast installation is not supported
21789 enable_fast_install=no
21790 elif test "$shlibpath_overrides_runpath" = yes ||
21791 test "$enable_shared" = no; then
21792 # Fast installation is not necessary
21793 enable_fast_install=needless
21802 fi # test -n "$compiler"
21804 CC=$lt_save_CC
21805 LDCXX=$LD
21806 LD=$lt_save_LD
21807 GCC=$lt_save_GCC
21808 with_gnu_ld=$lt_save_with_gnu_ld
21809 lt_cv_path_LDCXX=$lt_cv_path_LD
21810 lt_cv_path_LD=$lt_save_path_LD
21811 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21812 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21813 fi # test "$_lt_caught_CXX_error" != yes
21815 ac_ext=cpp
21816 ac_cpp='$CXXCPP $CPPFLAGS'
21817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21836 # Only expand once:
21842 # Identify the assembler which will work hand-in-glove with the newly
21843 # built GCC, so that we can examine its features. This is the assembler
21844 # which will be driven by the driver program.
21846 # If build != host, and we aren't building gas in-tree, we identify a
21847 # build->target assembler and hope that it will have the same features
21848 # as the host->target assembler we'll be using.
21849 gcc_cv_gas_major_version=
21850 gcc_cv_gas_minor_version=
21851 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21853 if test "${gcc_cv_as+set}" = set; then :
21855 else
21857 if test -x "$DEFAULT_ASSEMBLER"; then
21858 gcc_cv_as="$DEFAULT_ASSEMBLER"
21859 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21860 && test -f ../gas/Makefile \
21861 && test x$build = x$host; then
21862 gcc_cv_as=../gas/as-new$build_exeext
21863 elif test -x as$build_exeext; then
21864 # Build using assembler in the current directory.
21865 gcc_cv_as=./as$build_exeext
21866 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21867 gcc_cv_as="$AS_FOR_TARGET"
21868 else
21869 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21870 set dummy $AS_FOR_TARGET; ac_word=$2
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21872 $as_echo_n "checking for $ac_word... " >&6; }
21873 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21874 $as_echo_n "(cached) " >&6
21875 else
21876 case $gcc_cv_as in
21877 [\\/]* | ?:[\\/]*)
21878 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21882 for as_dir in $PATH
21884 IFS=$as_save_IFS
21885 test -z "$as_dir" && as_dir=.
21886 for ac_exec_ext in '' $ac_executable_extensions; do
21887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21888 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21890 break 2
21892 done
21893 done
21894 IFS=$as_save_IFS
21897 esac
21899 gcc_cv_as=$ac_cv_path_gcc_cv_as
21900 if test -n "$gcc_cv_as"; then
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21902 $as_echo "$gcc_cv_as" >&6; }
21903 else
21904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21905 $as_echo "no" >&6; }
21912 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21914 case "$ORIGINAL_AS_FOR_TARGET" in
21915 ./as | ./as$build_exeext) ;;
21916 *) ac_config_files="$ac_config_files as:exec-tool.in"
21918 esac
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21921 $as_echo_n "checking what assembler to use... " >&6; }
21922 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21923 # Single tree build which includes gas. We want to prefer it
21924 # over whatever linker top-level may have detected, since
21925 # we'll use what we're building after installation anyway.
21926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21927 $as_echo "newly built gas" >&6; }
21928 in_tree_gas=yes
21929 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21930 for f in $gcc_cv_as_bfd_srcdir/configure \
21931 $gcc_cv_as_gas_srcdir/configure \
21932 $gcc_cv_as_gas_srcdir/configure.ac \
21933 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21934 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21935 if test x$gcc_cv_gas_version != x; then
21936 break
21938 done
21939 case $gcc_cv_gas_version in
21940 VERSION=[0-9]*) ;;
21941 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21942 esac
21943 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21944 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21945 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21946 case $gcc_cv_gas_patch_version in
21947 "") gcc_cv_gas_patch_version="0" ;;
21948 esac
21949 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21950 + $gcc_cv_gas_minor_version \) \* 1000 \
21951 + $gcc_cv_gas_patch_version`
21953 in_tree_gas_is_elf=no
21954 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21955 || (grep 'obj_format = multi' ../gas/Makefile \
21956 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21957 then
21958 in_tree_gas_is_elf=yes
21960 else
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21962 $as_echo "$gcc_cv_as" >&6; }
21963 in_tree_gas=no
21966 default_ld=
21967 # Check whether --enable-ld was given.
21968 if test "${enable_ld+set}" = set; then :
21969 enableval=$enable_ld; case "${enableval}" in
21971 default_ld=ld.gold
21973 esac
21977 install_gold_as_default=no
21978 # Check whether --enable-gold was given.
21979 if test "${enable_gold+set}" = set; then :
21980 enableval=$enable_gold; case "${enableval}" in
21981 default)
21982 install_gold_as_default=yes
21984 yes)
21985 if test x${default_ld} != x; then
21986 install_gold_as_default=yes
21992 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21994 esac
21998 # Identify the linker which will work hand-in-glove with the newly
21999 # built GCC, so that we can examine its features. This is the linker
22000 # which will be driven by the driver program.
22002 # If build != host, and we aren't building gas in-tree, we identify a
22003 # build->target linker and hope that it will have the same features
22004 # as the host->target linker we'll be using.
22005 gcc_cv_gld_major_version=
22006 gcc_cv_gld_minor_version=
22007 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22008 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22009 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22011 if test "${gcc_cv_ld+set}" = set; then :
22013 else
22015 if test -x "$DEFAULT_LINKER"; then
22016 gcc_cv_ld="$DEFAULT_LINKER"
22017 elif test $install_gold_as_default = yes \
22018 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22019 && test -f ../gold/Makefile \
22020 && test x$build = x$host; then
22021 gcc_cv_ld=../gold/ld-new$build_exeext
22022 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22023 && test -f ../ld/Makefile \
22024 && test x$build = x$host; then
22025 gcc_cv_ld=../ld/ld-new$build_exeext
22026 elif test -x collect-ld$build_exeext; then
22027 # Build using linker in the current directory.
22028 gcc_cv_ld=./collect-ld$build_exeext
22029 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
22030 gcc_cv_ld="$LD_FOR_TARGET"
22031 else
22032 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22033 set dummy $LD_FOR_TARGET; ac_word=$2
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22035 $as_echo_n "checking for $ac_word... " >&6; }
22036 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
22037 $as_echo_n "(cached) " >&6
22038 else
22039 case $gcc_cv_ld in
22040 [\\/]* | ?:[\\/]*)
22041 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
22044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22045 for as_dir in $PATH
22047 IFS=$as_save_IFS
22048 test -z "$as_dir" && as_dir=.
22049 for ac_exec_ext in '' $ac_executable_extensions; do
22050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22051 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
22052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22053 break 2
22055 done
22056 done
22057 IFS=$as_save_IFS
22060 esac
22062 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22063 if test -n "$gcc_cv_ld"; then
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22065 $as_echo "$gcc_cv_ld" >&6; }
22066 else
22067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22068 $as_echo "no" >&6; }
22075 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22076 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22077 # if the PLUGIN_LD is set ld-new, just have it as ld
22078 # as that is the installed named.
22079 if test x$PLUGIN_LD_SUFFIX = xld-new \
22080 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22081 PLUGIN_LD_SUFFIX=ld
22084 # Check whether --with-plugin-ld was given.
22085 if test "${with_plugin_ld+set}" = set; then :
22086 withval=$with_plugin_ld; if test x"$withval" != x; then
22087 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22088 PLUGIN_LD_SUFFIX="$withval"
22094 cat >>confdefs.h <<_ACEOF
22095 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22096 _ACEOF
22099 # Check to see if we are using gold instead of ld
22100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22101 $as_echo_n "checking whether we are using gold... " >&6; }
22102 ld_is_gold=no
22103 if test x$gcc_cv_ld != x; then
22104 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22105 | grep "GNU gold" > /dev/null; then
22106 ld_is_gold=yes
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22110 $as_echo "$ld_is_gold" >&6; }
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22113 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22114 # Check to see if default ld is not gold, but gold is
22115 # available and has support for split stack. If gcc was configured
22116 # with gold then no checking is done.
22118 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22120 # For platforms other than powerpc64*, enable as appropriate.
22122 gold_non_default=no
22123 ld_gold=`which ${gcc_cv_ld}.gold`
22124 # Make sure this gold has minimal split stack support
22125 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22126 ld_vers=`$ld_gold --version | sed 1q`
22127 gold_vers=`echo $ld_vers | sed -n \
22128 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22129 case $target in
22130 # check that the gold version contains the complete split stack support
22131 # on powerpc64 big and little endian
22132 powerpc64*-*-*)
22133 case "$gold_vers" in
22134 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22136 *) gold_non_default=no
22138 esac
22140 esac
22142 if test $gold_non_default = yes; then
22144 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22149 $as_echo "$gold_non_default" >&6; }
22151 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22153 case "$ORIGINAL_LD_FOR_TARGET" in
22154 ./collect-ld | ./collect-ld$build_exeext) ;;
22155 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22157 esac
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22160 $as_echo_n "checking what linker to use... " >&6; }
22161 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22162 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22163 # Single tree build which includes ld. We want to prefer it
22164 # over whatever linker top-level may have detected, since
22165 # we'll use what we're building after installation anyway.
22166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22167 $as_echo "newly built ld" >&6; }
22168 in_tree_ld=yes
22169 in_tree_ld_is_elf=no
22170 if (grep 'EMUL = .*elf' ../ld/Makefile \
22171 || grep 'EMUL = .*linux' ../ld/Makefile \
22172 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22173 in_tree_ld_is_elf=yes
22174 elif test "$ld_is_gold" = yes; then
22175 in_tree_ld_is_elf=yes
22177 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
22179 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22180 if test x$gcc_cv_gld_version != x; then
22181 break
22183 done
22184 case $gcc_cv_gld_version in
22185 VERSION=[0-9]*) ;;
22186 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22187 esac
22188 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22189 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22190 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22191 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22192 else
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22194 $as_echo "$gcc_cv_ld" >&6; }
22195 in_tree_ld=no
22196 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22197 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22198 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22204 # Figure out what nm we will be using.
22205 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22206 if test "${gcc_cv_nm+set}" = set; then :
22208 else
22210 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22211 && test -f ../binutils/Makefile \
22212 && test x$build = x$host; then
22213 gcc_cv_nm=../binutils/nm-new$build_exeext
22214 elif test -x nm$build_exeext; then
22215 gcc_cv_nm=./nm$build_exeext
22216 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22217 gcc_cv_nm="$NM_FOR_TARGET"
22218 else
22219 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22220 set dummy $NM_FOR_TARGET; ac_word=$2
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22222 $as_echo_n "checking for $ac_word... " >&6; }
22223 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22224 $as_echo_n "(cached) " >&6
22225 else
22226 case $gcc_cv_nm in
22227 [\\/]* | ?:[\\/]*)
22228 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22232 for as_dir in $PATH
22234 IFS=$as_save_IFS
22235 test -z "$as_dir" && as_dir=.
22236 for ac_exec_ext in '' $ac_executable_extensions; do
22237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22238 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22240 break 2
22242 done
22243 done
22244 IFS=$as_save_IFS
22247 esac
22249 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22250 if test -n "$gcc_cv_nm"; then
22251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22252 $as_echo "$gcc_cv_nm" >&6; }
22253 else
22254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22255 $as_echo "no" >&6; }
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22263 $as_echo_n "checking what nm to use... " >&6; }
22264 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22265 # Single tree build which includes binutils.
22266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22267 $as_echo "newly built nm" >&6; }
22268 in_tree_nm=yes
22269 else
22270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22271 $as_echo "$gcc_cv_nm" >&6; }
22272 in_tree_nm=no
22275 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22277 case "$ORIGINAL_NM_FOR_TARGET" in
22278 ./nm | ./nm$build_exeext) ;;
22279 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22281 esac
22284 # Figure out what objdump we will be using.
22285 if test "${gcc_cv_objdump+set}" = set; then :
22287 else
22289 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22290 && test -f ../binutils/Makefile \
22291 && test x$build = x$host; then
22292 # Single tree build which includes binutils.
22293 gcc_cv_objdump=../binutils/objdump$build_exeext
22294 elif test -x objdump$build_exeext; then
22295 gcc_cv_objdump=./objdump$build_exeext
22296 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22297 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22298 else
22299 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22300 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22302 $as_echo_n "checking for $ac_word... " >&6; }
22303 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22304 $as_echo_n "(cached) " >&6
22305 else
22306 case $gcc_cv_objdump in
22307 [\\/]* | ?:[\\/]*)
22308 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22312 for as_dir in $PATH
22314 IFS=$as_save_IFS
22315 test -z "$as_dir" && as_dir=.
22316 for ac_exec_ext in '' $ac_executable_extensions; do
22317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22318 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22320 break 2
22322 done
22323 done
22324 IFS=$as_save_IFS
22327 esac
22329 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22330 if test -n "$gcc_cv_objdump"; then
22331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22332 $as_echo "$gcc_cv_objdump" >&6; }
22333 else
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22335 $as_echo "no" >&6; }
22342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22343 $as_echo_n "checking what objdump to use... " >&6; }
22344 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22345 # Single tree build which includes binutils.
22346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22347 $as_echo "newly built objdump" >&6; }
22348 elif test x$gcc_cv_objdump = x; then
22349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22350 $as_echo "not found" >&6; }
22351 else
22352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22353 $as_echo "$gcc_cv_objdump" >&6; }
22356 # Figure out what readelf we will be using.
22357 if test "${gcc_cv_readelf+set}" = set; then :
22359 else
22361 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22362 && test -f ../binutils/Makefile \
22363 && test x$build = x$host; then
22364 # Single tree build which includes binutils.
22365 gcc_cv_readelf=../binutils/readelf$build_exeext
22366 elif test -x readelf$build_exeext; then
22367 gcc_cv_readelf=./readelf$build_exeext
22368 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22369 gcc_cv_readelf="$READELF_FOR_TARGET"
22370 else
22371 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22372 set dummy $READELF_FOR_TARGET; ac_word=$2
22373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22374 $as_echo_n "checking for $ac_word... " >&6; }
22375 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22376 $as_echo_n "(cached) " >&6
22377 else
22378 case $gcc_cv_readelf in
22379 [\\/]* | ?:[\\/]*)
22380 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22384 for as_dir in $PATH
22386 IFS=$as_save_IFS
22387 test -z "$as_dir" && as_dir=.
22388 for ac_exec_ext in '' $ac_executable_extensions; do
22389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22390 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22392 break 2
22394 done
22395 done
22396 IFS=$as_save_IFS
22399 esac
22401 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22402 if test -n "$gcc_cv_readelf"; then
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22404 $as_echo "$gcc_cv_readelf" >&6; }
22405 else
22406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22407 $as_echo "no" >&6; }
22414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22415 $as_echo_n "checking what readelf to use... " >&6; }
22416 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22417 # Single tree build which includes binutils.
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22419 $as_echo "newly built readelf" >&6; }
22420 elif test x$gcc_cv_readelf = x; then
22421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22422 $as_echo "not found" >&6; }
22423 else
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22425 $as_echo "$gcc_cv_readelf" >&6; }
22428 # Figure out what assembler alignment features are present.
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22430 $as_echo_n "checking assembler flags... " >&6; }
22431 if test "${gcc_cv_as_flags+set}" = set; then :
22432 $as_echo_n "(cached) " >&6
22433 else
22434 case "$target" in
22435 i[34567]86-*-linux*)
22436 gcc_cv_as_flags=--32
22438 x86_64-*-linux-gnux32)
22439 gcc_cv_as_flags=--x32
22441 x86_64-*-linux*)
22442 gcc_cv_as_flags=--64
22444 powerpc*-*-darwin*)
22445 gcc_cv_as_flags="-arch ppc"
22448 gcc_cv_as_flags=" "
22450 esac
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22453 $as_echo "$gcc_cv_as_flags" >&6; }
22455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22456 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22457 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22458 $as_echo_n "(cached) " >&6
22459 else
22460 gcc_cv_as_balign_and_p2align=no
22461 if test $in_tree_gas = yes; then
22462 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22463 then gcc_cv_as_balign_and_p2align=yes
22465 elif test x$gcc_cv_as != x; then
22466 $as_echo '.balign 4
22467 .p2align 2' > conftest.s
22468 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22470 (eval $ac_try) 2>&5
22471 ac_status=$?
22472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22473 test $ac_status = 0; }; }
22474 then
22475 gcc_cv_as_balign_and_p2align=yes
22476 else
22477 echo "configure: failed program was" >&5
22478 cat conftest.s >&5
22480 rm -f conftest.o conftest.s
22483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22484 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22485 if test $gcc_cv_as_balign_and_p2align = yes; then
22487 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22492 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22493 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22494 $as_echo_n "(cached) " >&6
22495 else
22496 gcc_cv_as_max_skip_p2align=no
22497 if test $in_tree_gas = yes; then
22498 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22499 then gcc_cv_as_max_skip_p2align=yes
22501 elif test x$gcc_cv_as != x; then
22502 $as_echo '.p2align 4,,7' > conftest.s
22503 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22505 (eval $ac_try) 2>&5
22506 ac_status=$?
22507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22508 test $ac_status = 0; }; }
22509 then
22510 gcc_cv_as_max_skip_p2align=yes
22511 else
22512 echo "configure: failed program was" >&5
22513 cat conftest.s >&5
22515 rm -f conftest.o conftest.s
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22519 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22520 if test $gcc_cv_as_max_skip_p2align = yes; then
22522 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22527 $as_echo_n "checking assembler for .literal16... " >&6; }
22528 if test "${gcc_cv_as_literal16+set}" = set; then :
22529 $as_echo_n "(cached) " >&6
22530 else
22531 gcc_cv_as_literal16=no
22532 if test $in_tree_gas = yes; then
22533 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22534 then gcc_cv_as_literal16=yes
22536 elif test x$gcc_cv_as != x; then
22537 $as_echo '.literal16' > conftest.s
22538 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22540 (eval $ac_try) 2>&5
22541 ac_status=$?
22542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22543 test $ac_status = 0; }; }
22544 then
22545 gcc_cv_as_literal16=yes
22546 else
22547 echo "configure: failed program was" >&5
22548 cat conftest.s >&5
22550 rm -f conftest.o conftest.s
22553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22554 $as_echo "$gcc_cv_as_literal16" >&6; }
22555 if test $gcc_cv_as_literal16 = yes; then
22557 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22562 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22563 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22564 $as_echo_n "(cached) " >&6
22565 else
22566 gcc_cv_as_subsection_m1=no
22567 if test $in_tree_gas = yes; then
22568 if test $in_tree_gas_is_elf = yes \
22569 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22570 then gcc_cv_as_subsection_m1=yes
22572 elif test x$gcc_cv_as != x; then
22573 $as_echo 'conftest_label1: .word 0
22574 .subsection -1
22575 conftest_label2: .word 0
22576 .previous' > conftest.s
22577 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22579 (eval $ac_try) 2>&5
22580 ac_status=$?
22581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22582 test $ac_status = 0; }; }
22583 then
22584 if test x$gcc_cv_nm != x; then
22585 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22586 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22587 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22588 then :
22589 else gcc_cv_as_subsection_m1=yes
22591 rm -f conftest.nm1 conftest.nm2
22593 else
22594 echo "configure: failed program was" >&5
22595 cat conftest.s >&5
22597 rm -f conftest.o conftest.s
22600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22601 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22602 if test $gcc_cv_as_subsection_m1 = yes; then
22604 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22609 $as_echo_n "checking assembler for .weak... " >&6; }
22610 if test "${gcc_cv_as_weak+set}" = set; then :
22611 $as_echo_n "(cached) " >&6
22612 else
22613 gcc_cv_as_weak=no
22614 if test $in_tree_gas = yes; then
22615 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22616 then gcc_cv_as_weak=yes
22618 elif test x$gcc_cv_as != x; then
22619 $as_echo ' .weak foobar' > conftest.s
22620 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22622 (eval $ac_try) 2>&5
22623 ac_status=$?
22624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22625 test $ac_status = 0; }; }
22626 then
22627 gcc_cv_as_weak=yes
22628 else
22629 echo "configure: failed program was" >&5
22630 cat conftest.s >&5
22632 rm -f conftest.o conftest.s
22635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22636 $as_echo "$gcc_cv_as_weak" >&6; }
22637 if test $gcc_cv_as_weak = yes; then
22639 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22644 $as_echo_n "checking assembler for .weakref... " >&6; }
22645 if test "${gcc_cv_as_weakref+set}" = set; then :
22646 $as_echo_n "(cached) " >&6
22647 else
22648 gcc_cv_as_weakref=no
22649 if test $in_tree_gas = yes; then
22650 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22651 then gcc_cv_as_weakref=yes
22653 elif test x$gcc_cv_as != x; then
22654 $as_echo ' .weakref foobar, barfnot' > conftest.s
22655 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22657 (eval $ac_try) 2>&5
22658 ac_status=$?
22659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22660 test $ac_status = 0; }; }
22661 then
22662 gcc_cv_as_weakref=yes
22663 else
22664 echo "configure: failed program was" >&5
22665 cat conftest.s >&5
22667 rm -f conftest.o conftest.s
22670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22671 $as_echo "$gcc_cv_as_weakref" >&6; }
22672 if test $gcc_cv_as_weakref = yes; then
22674 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22679 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22680 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22681 $as_echo_n "(cached) " >&6
22682 else
22683 gcc_cv_as_nsubspa_comdat=no
22684 if test $in_tree_gas = yes; then
22685 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22686 then gcc_cv_as_nsubspa_comdat=yes
22688 elif test x$gcc_cv_as != x; then
22689 $as_echo ' .SPACE $TEXT$
22690 .NSUBSPA $CODE$,COMDAT' > conftest.s
22691 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22693 (eval $ac_try) 2>&5
22694 ac_status=$?
22695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22696 test $ac_status = 0; }; }
22697 then
22698 gcc_cv_as_nsubspa_comdat=yes
22699 else
22700 echo "configure: failed program was" >&5
22701 cat conftest.s >&5
22703 rm -f conftest.o conftest.s
22706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22707 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22708 if test $gcc_cv_as_nsubspa_comdat = yes; then
22710 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22714 # .hidden needs to be supported in both the assembler and the linker,
22715 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22716 # This is irritatingly difficult to feature test for; we have to check the
22717 # date string after the version number. If we've got an in-tree
22718 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22719 # to be safe.
22720 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22722 $as_echo_n "checking assembler for .hidden... " >&6; }
22723 if test "${gcc_cv_as_hidden+set}" = set; then :
22724 $as_echo_n "(cached) " >&6
22725 else
22726 gcc_cv_as_hidden=no
22727 if test $in_tree_gas = yes; then
22728 if test $in_tree_gas_is_elf = yes \
22729 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22730 then gcc_cv_as_hidden=yes
22732 elif test x$gcc_cv_as != x; then
22733 $as_echo ' .hidden foobar
22734 foobar:' > conftest.s
22735 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22737 (eval $ac_try) 2>&5
22738 ac_status=$?
22739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22740 test $ac_status = 0; }; }
22741 then
22742 gcc_cv_as_hidden=yes
22743 else
22744 echo "configure: failed program was" >&5
22745 cat conftest.s >&5
22747 rm -f conftest.o conftest.s
22750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22751 $as_echo "$gcc_cv_as_hidden" >&6; }
22753 case "${target}" in
22754 *-*-darwin*)
22755 # Darwin as has some visibility support, though with a different syntax.
22756 gcc_cv_as_hidden=yes
22758 esac
22760 # gnu_indirect_function type is an extension proposed at
22761 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22762 # selection of function implementation
22763 # Check whether --enable-gnu-indirect-function was given.
22764 if test "${enable_gnu_indirect_function+set}" = set; then :
22765 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22766 yes | no) ;;
22767 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22768 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22769 esac
22770 else
22771 enable_gnu_indirect_function="$default_gnu_indirect_function"
22775 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22777 cat >>confdefs.h <<_ACEOF
22778 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22779 _ACEOF
22783 if test $in_tree_ld != yes ; then
22784 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22785 if echo "$ld_ver" | grep GNU > /dev/null; then
22786 if test x"$ld_is_gold" = xyes; then
22787 # GNU gold --version looks like this:
22789 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22791 # We extract the binutils version which is more familiar and specific
22792 # than the gold version.
22793 ld_vers=`echo $ld_ver | sed -n \
22794 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22795 else
22796 # GNU ld --version looks like this:
22798 # GNU ld (GNU Binutils) 2.21.51.20110225
22799 ld_vers=`echo $ld_ver | sed -n \
22800 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22802 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'`
22803 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22804 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22805 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22806 else
22807 case "${target}" in
22808 *-*-solaris2*)
22809 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22810 # format.
22812 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22813 # /usr/ccs/bin/ld has been configured.
22814 ld_ver=`$gcc_cv_ld -V 2>&1`
22815 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22816 ld_vers=`echo $ld_ver | sed -n \
22817 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22818 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22819 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22822 esac
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22827 $as_echo_n "checking linker for .hidden support... " >&6; }
22828 if test "${gcc_cv_ld_hidden+set}" = set; then :
22829 $as_echo_n "(cached) " >&6
22830 else
22831 if test $in_tree_ld = yes ; then
22832 gcc_cv_ld_hidden=no
22833 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 \
22834 && test $in_tree_ld_is_elf = yes; then
22835 gcc_cv_ld_hidden=yes
22837 else
22838 gcc_cv_ld_hidden=yes
22839 if test x"$ld_is_gold" = xyes; then
22841 elif echo "$ld_ver" | grep GNU > /dev/null; then
22842 case "${target}" in
22843 mmix-knuth-mmixware)
22844 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22845 gcc_cv_ld_hidden=no
22847 esac
22848 if test 0"$ld_date" -lt 20020404; then
22849 if test -n "$ld_date"; then
22850 # If there was date string, but was earlier than 2002-04-04, fail
22851 gcc_cv_ld_hidden=no
22852 elif test -z "$ld_vers"; then
22853 # If there was no date string nor ld version number, something is wrong
22854 gcc_cv_ld_hidden=no
22855 else
22856 test -z "$ld_vers_patch" && ld_vers_patch=0
22857 if test "$ld_vers_major" -lt 2; then
22858 gcc_cv_ld_hidden=no
22859 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22860 gcc_cv_ld_hidden="no"
22861 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22862 gcc_cv_ld_hidden=no
22866 else
22867 case "${target}" in
22868 *-*-darwin*)
22869 # Darwin ld has some visibility support.
22870 gcc_cv_ld_hidden=yes
22872 hppa64*-*-hpux* | ia64*-*-hpux*)
22873 gcc_cv_ld_hidden=yes
22875 *-*-solaris2.1[0-9]*)
22876 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22877 # .symbolic was only added in Solaris 9 12/02.
22878 gcc_cv_ld_hidden=yes
22881 gcc_cv_ld_hidden=no
22883 esac
22887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22888 $as_echo "$gcc_cv_ld_hidden" >&6; }
22889 libgcc_visibility=no
22892 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22893 libgcc_visibility=yes
22895 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22900 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22901 gcc_cv_ld_ro_rw_mix=unknown
22902 if test $in_tree_ld = yes ; then
22903 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 \
22904 && test $in_tree_ld_is_elf = yes; then
22905 gcc_cv_ld_ro_rw_mix=read-write
22907 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22908 echo '.section myfoosect, "a"' > conftest1.s
22909 echo '.section myfoosect, "aw"' > conftest2.s
22910 echo '.byte 1' >> conftest2.s
22911 echo '.section myfoosect, "a"' > conftest3.s
22912 echo '.byte 0' >> conftest3.s
22913 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22914 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22915 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22916 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22917 conftest2.o conftest3.o > /dev/null 2>&1; then
22918 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22919 | sed -e '/myfoosect/!d' -e N`
22920 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22921 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22922 gcc_cv_ld_ro_rw_mix=read-only
22923 else
22924 gcc_cv_ld_ro_rw_mix=read-write
22928 rm -f conftest.* conftest[123].*
22930 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22932 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22936 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22938 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22939 case "${target}" in
22940 *-*-solaris2*)
22942 # Solaris 2 ld -V output looks like this for a regular version:
22944 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22946 # but test versions add stuff at the end:
22948 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22950 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22951 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22952 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22953 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22954 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22955 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22958 esac
22961 # Check whether --enable-initfini-array was given.
22962 if test "${enable_initfini_array+set}" = set; then :
22963 enableval=$enable_initfini_array;
22964 else
22966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22967 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22968 if test "${gcc_cv_initfini_array+set}" = set; then :
22969 $as_echo_n "(cached) " >&6
22970 else
22971 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22972 case "${target}" in
22973 ia64-*)
22974 if test "$cross_compiling" = yes; then :
22975 gcc_cv_initfini_array=no
22976 else
22977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22978 /* end confdefs.h. */
22980 #ifndef __ELF__
22981 #error Not an ELF OS
22982 #endif
22983 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22984 if it can be used. */
22985 static int x = -1;
22986 int main (void) { return x; }
22987 int foo (void) { x = 0; }
22988 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22990 _ACEOF
22991 if ac_fn_cxx_try_run "$LINENO"; then :
22992 gcc_cv_initfini_array=yes
22993 else
22994 gcc_cv_initfini_array=no
22996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22997 conftest.$ac_objext conftest.beam conftest.$ac_ext
23001 gcc_cv_initfini_array=no
23002 if test $in_tree_ld = yes ; then
23003 if test "$gcc_cv_gld_major_version" -eq 2 \
23004 -a "$gcc_cv_gld_minor_version" -ge 22 \
23005 -o "$gcc_cv_gld_major_version" -gt 2 \
23006 && test $in_tree_ld_is_elf = yes; then
23007 gcc_cv_initfini_array=yes
23009 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23010 case $target:$gas in
23011 *:yes)
23012 sh_flags='"a"'
23013 sh_type='%progbits'
23015 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
23016 sh_flags='"a"'
23017 sh_type='@progbits'
23019 sparc*-*-solaris2*:no)
23020 sh_flags='#alloc'
23021 sh_type='#progbits'
23022 sh_quote='"'
23024 esac
23025 case "$target:$gnu_ld" in
23026 *:yes)
23027 cat > conftest.s <<EOF
23028 .section .dtors,$sh_flags,$sh_type
23029 .balign 4
23030 .byte 'A', 'A', 'A', 'A'
23031 .section .ctors,$sh_flags,$sh_type
23032 .balign 4
23033 .byte 'B', 'B', 'B', 'B'
23034 .section .fini_array.65530,$sh_flags,$sh_type
23035 .balign 4
23036 .byte 'C', 'C', 'C', 'C'
23037 .section .init_array.65530,$sh_flags,$sh_type
23038 .balign 4
23039 .byte 'D', 'D', 'D', 'D'
23040 .section .dtors.64528,$sh_flags,$sh_type
23041 .balign 4
23042 .byte 'E', 'E', 'E', 'E'
23043 .section .ctors.64528,$sh_flags,$sh_type
23044 .balign 4
23045 .byte 'F', 'F', 'F', 'F'
23046 .section .fini_array.01005,$sh_flags,$sh_type
23047 .balign 4
23048 .byte 'G', 'G', 'G', 'G'
23049 .section .init_array.01005,$sh_flags,$sh_type
23050 .balign 4
23051 .byte 'H', 'H', 'H', 'H'
23052 .text
23053 .globl _start
23054 _start:
23056 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23057 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23058 && $gcc_cv_objdump -s -j .init_array conftest \
23059 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23060 && $gcc_cv_objdump -s -j .fini_array conftest \
23061 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23062 gcc_cv_initfini_array=yes
23065 *-*-solaris2*:no)
23066 # When Solaris ld added constructor priority support, it was
23067 # decided to only handle .init_array.N/.fini_array.N since
23068 # there was no need for backwards compatibility with
23069 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23070 # sections with correct execution order resp. to
23071 # .init_array/.fini_array, while gld merges them into
23072 # .init_array/.fini_array.
23073 cat > conftest.s <<EOF
23074 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23075 .align 4
23076 .byte 'C', 'C', 'C', 'C'
23077 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23078 .align 4
23079 .byte 'D', 'D', 'D', 'D'
23080 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23081 .align 4
23082 .byte 'G', 'G', 'G', 'G'
23083 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23084 .align 4
23085 .byte 'H', 'H', 'H', 'H'
23086 .text
23087 .globl _start
23088 _start:
23090 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23091 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23092 && $gcc_cv_objdump -s -j .init_array conftest \
23093 | grep HHHHDDDD > /dev/null 2>&1 \
23094 && $gcc_cv_objdump -s -j .fini_array conftest \
23095 | grep GGGGCCCC > /dev/null 2>&1; then
23096 gcc_cv_initfini_array=yes
23099 esac
23100 rm -f conftest conftest.*
23102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23103 /* end confdefs.h. */
23105 #ifndef __ELF__
23106 # error Not an ELF OS
23107 #endif
23108 #include <stdlib.h>
23109 #if defined __GLIBC_PREREQ
23110 # if __GLIBC_PREREQ (2, 4)
23111 # else
23112 # error GLIBC 2.4 required
23113 # endif
23114 #else
23115 # if defined __sun__ && defined __svr4__
23116 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23117 # else
23118 # error The C library not known to support .init_array/.fini_array
23119 # endif
23120 #endif
23122 _ACEOF
23123 if ac_fn_cxx_try_cpp "$LINENO"; then :
23125 else
23126 gcc_cv_initfini_array=no
23128 rm -f conftest.err conftest.$ac_ext;;
23129 esac
23130 else
23131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23132 $as_echo_n "checking cross compile... guessing... " >&6; }
23133 gcc_cv_initfini_array=no
23136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23137 $as_echo "$gcc_cv_initfini_array" >&6; }
23138 enable_initfini_array=$gcc_cv_initfini_array
23143 cat >>confdefs.h <<_ACEOF
23144 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23145 _ACEOF
23149 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23151 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23152 if test "${gcc_cv_as_leb128+set}" = set; then :
23153 $as_echo_n "(cached) " >&6
23154 else
23155 gcc_cv_as_leb128=no
23156 if test $in_tree_gas = yes; then
23157 if test $in_tree_gas_is_elf = yes \
23158 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23159 then gcc_cv_as_leb128=yes
23161 elif test x$gcc_cv_as != x; then
23162 $as_echo ' .data
23163 .uleb128 L2 - L1
23165 .uleb128 1280
23166 .sleb128 -1010
23167 L2:' > conftest.s
23168 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23170 (eval $ac_try) 2>&5
23171 ac_status=$?
23172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23173 test $ac_status = 0; }; }
23174 then
23175 # GAS versions before 2.11 do not support uleb128,
23176 # despite appearing to.
23177 # ??? There exists an elf-specific test that will crash
23178 # the assembler. Perhaps it's better to figure out whether
23179 # arbitrary sections are supported and try the test.
23180 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23181 if echo "$as_ver" | grep GNU > /dev/null; then
23182 as_vers=`echo $as_ver | sed -n \
23183 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23184 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23185 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23186 if test $as_major -eq 2 && test $as_minor -lt 11
23187 then :
23188 else gcc_cv_as_leb128=yes
23191 else
23192 echo "configure: failed program was" >&5
23193 cat conftest.s >&5
23195 rm -f conftest.o conftest.s
23198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23199 $as_echo "$gcc_cv_as_leb128" >&6; }
23200 if test $gcc_cv_as_leb128 = yes; then
23202 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23206 # Check if we have assembler support for unwind directives.
23207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23208 $as_echo_n "checking assembler for cfi directives... " >&6; }
23209 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23210 $as_echo_n "(cached) " >&6
23211 else
23212 gcc_cv_as_cfi_directive=no
23213 if test x$gcc_cv_as != x; then
23214 $as_echo ' .text
23215 .cfi_startproc
23216 .cfi_offset 0, 0
23217 .cfi_same_value 1
23218 .cfi_def_cfa 1, 2
23219 .cfi_escape 1, 2, 3, 4, 5
23220 .cfi_endproc' > conftest.s
23221 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23223 (eval $ac_try) 2>&5
23224 ac_status=$?
23225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23226 test $ac_status = 0; }; }
23227 then
23228 case "$target" in
23229 *-*-solaris*)
23230 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23231 # read-only and read-write sections, we need to make sure that the
23232 # assembler used emits read-write .eh_frame sections.
23233 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
23234 if test "x$gcc_cv_objdump" != x; then
23235 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23236 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
23237 gcc_cv_as_cfi_directive=no
23238 else
23239 case "$target" in
23240 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
23241 # On Solaris/x86, make sure that GCC and assembler agree on using
23242 # read-only .eh_frame sections for 64-bit.
23243 if test x$gas = xyes; then
23244 as_ix86_64_opt="--64"
23245 else
23246 as_ix86_64_opt="-xarch=amd64"
23248 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
23249 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23250 sed -e /.eh_frame/!d -e N | \
23251 grep READONLY > /dev/null; then
23252 gcc_cv_as_cfi_directive=yes
23253 else
23254 gcc_cv_as_cfi_directive=no
23258 gcc_cv_as_cfi_directive=yes
23260 esac
23262 else
23263 # no objdump, err on the side of caution
23264 gcc_cv_as_cfi_directive=no
23266 else
23267 gcc_cv_as_cfi_directive=yes
23270 *-*-*)
23271 gcc_cv_as_cfi_directive=yes
23273 esac
23274 else
23275 echo "configure: failed program was" >&5
23276 cat conftest.s >&5
23278 rm -f conftest.o conftest.s
23281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23282 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23284 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23286 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23287 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23288 $as_echo_n "(cached) " >&6
23289 else
23290 gcc_cv_as_cfi_advance_working=no
23291 if test x$gcc_cv_as != x; then
23292 $as_echo ' .text
23293 .cfi_startproc
23294 .cfi_adjust_cfa_offset 64
23295 .skip 75040, 0
23296 .cfi_adjust_cfa_offset 128
23297 .cfi_endproc' > conftest.s
23298 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23300 (eval $ac_try) 2>&5
23301 ac_status=$?
23302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23303 test $ac_status = 0; }; }
23304 then
23306 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23307 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23308 gcc_cv_as_cfi_advance_working=yes
23311 else
23312 echo "configure: failed program was" >&5
23313 cat conftest.s >&5
23315 rm -f conftest.o conftest.s
23318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23319 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23321 else
23322 # no objdump, err on the side of caution
23323 gcc_cv_as_cfi_advance_working=no
23327 cat >>confdefs.h <<_ACEOF
23328 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23329 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23330 _ACEOF
23334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23335 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23336 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23337 $as_echo_n "(cached) " >&6
23338 else
23339 gcc_cv_as_cfi_personality_directive=no
23340 if test x$gcc_cv_as != x; then
23341 $as_echo ' .text
23342 .cfi_startproc
23343 .cfi_personality 0, symbol
23344 .cfi_endproc' > conftest.s
23345 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23347 (eval $ac_try) 2>&5
23348 ac_status=$?
23349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23350 test $ac_status = 0; }; }
23351 then
23352 gcc_cv_as_cfi_personality_directive=yes
23353 else
23354 echo "configure: failed program was" >&5
23355 cat conftest.s >&5
23357 rm -f conftest.o conftest.s
23360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23361 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23364 cat >>confdefs.h <<_ACEOF
23365 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23366 then echo 1; else echo 0; fi`
23367 _ACEOF
23370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23371 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23372 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23373 $as_echo_n "(cached) " >&6
23374 else
23375 gcc_cv_as_cfi_sections_directive=no
23376 if test x$gcc_cv_as != x; then
23377 $as_echo ' .text
23378 .cfi_sections .debug_frame, .eh_frame
23379 .cfi_startproc
23380 .cfi_endproc' > conftest.s
23381 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23383 (eval $ac_try) 2>&5
23384 ac_status=$?
23385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23386 test $ac_status = 0; }; }
23387 then
23388 case $target_os in
23389 win32 | pe | cygwin* | mingw32*)
23390 # Need to check that we generated the correct relocation for the
23391 # .debug_frame section. This was fixed for binutils 2.21.
23392 gcc_cv_as_cfi_sections_directive=no
23393 if test "x$gcc_cv_objdump" != x; then
23394 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23395 grep secrel > /dev/null; then
23396 gcc_cv_as_cfi_sections_directive=yes
23401 gcc_cv_as_cfi_sections_directive=yes
23403 esac
23404 else
23405 echo "configure: failed program was" >&5
23406 cat conftest.s >&5
23408 rm -f conftest.o conftest.s
23411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23412 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23416 cat >>confdefs.h <<_ACEOF
23417 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23418 then echo 1; else echo 0; fi`
23419 _ACEOF
23422 # GAS versions up to and including 2.11.0 may mis-optimize
23423 # .eh_frame data.
23424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23425 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23426 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23427 $as_echo_n "(cached) " >&6
23428 else
23429 gcc_cv_as_eh_frame=no
23430 if test $in_tree_gas = yes; then
23431 if test $in_tree_gas_is_elf = yes \
23432 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23433 then gcc_cv_as_eh_frame=yes
23435 elif test x$gcc_cv_as != x; then
23436 $as_echo ' .text
23437 .LFB1:
23438 .4byte 0
23439 .L1:
23440 .4byte 0
23441 .LFE1:
23442 .section .eh_frame,"aw",@progbits
23443 __FRAME_BEGIN__:
23444 .4byte .LECIE1-.LSCIE1
23445 .LSCIE1:
23446 .4byte 0x0
23447 .byte 0x1
23448 .ascii "z\0"
23449 .byte 0x1
23450 .byte 0x78
23451 .byte 0x1a
23452 .byte 0x0
23453 .byte 0x4
23454 .4byte 1
23455 .p2align 1
23456 .LECIE1:
23457 .LSFDE1:
23458 .4byte .LEFDE1-.LASFDE1
23459 .LASFDE1:
23460 .4byte .LASFDE1-__FRAME_BEGIN__
23461 .4byte .LFB1
23462 .4byte .LFE1-.LFB1
23463 .byte 0x4
23464 .4byte .LFE1-.LFB1
23465 .byte 0x4
23466 .4byte .L1-.LFB1
23467 .LEFDE1:' > conftest.s
23468 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23470 (eval $ac_try) 2>&5
23471 ac_status=$?
23472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23473 test $ac_status = 0; }; }
23474 then
23475 cat > conftest.lit <<EOF
23476 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23477 0010 01000000 12000000 18000000 00000000 ................
23478 0020 08000000 04080000 0044 .........D
23480 cat > conftest.big <<EOF
23481 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23482 0010 00000001 00000012 00000018 00000000 ................
23483 0020 00000008 04000000 0844 .........D
23485 # If the assembler didn't choke, and we can objdump,
23486 # and we got the correct data, then succeed.
23487 # The text in the here-document typically retains its unix-style line
23488 # endings, while the output of objdump will use host line endings.
23489 # Therefore, use diff -b for the comparisons.
23490 if test x$gcc_cv_objdump != x \
23491 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23492 | tail -3 > conftest.got \
23493 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23494 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23495 then
23496 gcc_cv_as_eh_frame=yes
23497 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23499 (eval $ac_try) 2>&5
23500 ac_status=$?
23501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23502 test $ac_status = 0; }; }; then
23503 gcc_cv_as_eh_frame=buggy
23504 else
23505 # Uh oh, what do we do now?
23506 gcc_cv_as_eh_frame=no
23508 else
23509 echo "configure: failed program was" >&5
23510 cat conftest.s >&5
23512 rm -f conftest.o conftest.s
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23516 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23519 if test $gcc_cv_as_eh_frame = buggy; then
23521 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23526 $as_echo_n "checking assembler for section merging support... " >&6; }
23527 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23528 $as_echo_n "(cached) " >&6
23529 else
23530 gcc_cv_as_shf_merge=no
23531 if test $in_tree_gas = yes; then
23532 if test $in_tree_gas_is_elf = yes \
23533 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23534 then gcc_cv_as_shf_merge=yes
23536 elif test x$gcc_cv_as != x; then
23537 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23538 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23540 (eval $ac_try) 2>&5
23541 ac_status=$?
23542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23543 test $ac_status = 0; }; }
23544 then
23545 gcc_cv_as_shf_merge=yes
23546 else
23547 echo "configure: failed program was" >&5
23548 cat conftest.s >&5
23550 rm -f conftest.o conftest.s
23553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23554 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23556 if test $gcc_cv_as_shf_merge = no; then
23557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23558 $as_echo_n "checking assembler for section merging support... " >&6; }
23559 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23560 $as_echo_n "(cached) " >&6
23561 else
23562 gcc_cv_as_shf_merge=no
23563 if test $in_tree_gas = yes; then
23564 if test $in_tree_gas_is_elf = yes \
23565 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23566 then gcc_cv_as_shf_merge=yes
23568 elif test x$gcc_cv_as != x; then
23569 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23570 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23572 (eval $ac_try) 2>&5
23573 ac_status=$?
23574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23575 test $ac_status = 0; }; }
23576 then
23577 gcc_cv_as_shf_merge=yes
23578 else
23579 echo "configure: failed program was" >&5
23580 cat conftest.s >&5
23582 rm -f conftest.o conftest.s
23585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23586 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23590 cat >>confdefs.h <<_ACEOF
23591 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23592 _ACEOF
23595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23596 $as_echo_n "checking assembler for stabs directive... " >&6; }
23597 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23598 $as_echo_n "(cached) " >&6
23599 else
23600 gcc_cv_as_stabs_directive=no
23601 if test x$gcc_cv_as != x; then
23602 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23603 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23605 (eval $ac_try) 2>&5
23606 ac_status=$?
23607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23608 test $ac_status = 0; }; }
23609 then
23610 gcc_cv_as_stabs_directive=yes
23611 else
23612 echo "configure: failed program was" >&5
23613 cat conftest.s >&5
23615 rm -f conftest.o conftest.s
23618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23619 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23620 if test $gcc_cv_as_stabs_directive = yes; then
23622 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23627 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23628 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23629 $as_echo_n "(cached) " >&6
23630 else
23631 gcc_cv_as_comdat_group=no
23632 if test $in_tree_gas = yes; then
23633 if test $in_tree_gas_is_elf = yes \
23634 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23635 then gcc_cv_as_comdat_group=yes
23637 elif test x$gcc_cv_as != x; then
23638 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23639 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23641 (eval $ac_try) 2>&5
23642 ac_status=$?
23643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23644 test $ac_status = 0; }; }
23645 then
23646 gcc_cv_as_comdat_group=yes
23647 else
23648 echo "configure: failed program was" >&5
23649 cat conftest.s >&5
23651 rm -f conftest.o conftest.s
23654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23655 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23657 if test $gcc_cv_as_comdat_group = yes; then
23658 gcc_cv_as_comdat_group_percent=no
23659 gcc_cv_as_comdat_group_group=no
23660 else
23661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23662 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23663 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23664 $as_echo_n "(cached) " >&6
23665 else
23666 gcc_cv_as_comdat_group_percent=no
23667 if test $in_tree_gas = yes; then
23668 if test $in_tree_gas_is_elf = yes \
23669 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23670 then gcc_cv_as_comdat_group_percent=yes
23672 elif test x$gcc_cv_as != x; then
23673 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23674 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23676 (eval $ac_try) 2>&5
23677 ac_status=$?
23678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23679 test $ac_status = 0; }; }
23680 then
23681 gcc_cv_as_comdat_group_percent=yes
23682 else
23683 echo "configure: failed program was" >&5
23684 cat conftest.s >&5
23686 rm -f conftest.o conftest.s
23689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23690 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23692 if test $gcc_cv_as_comdat_group_percent = yes; then
23693 gcc_cv_as_comdat_group_group=no
23694 else
23695 case "${target}" in
23696 # Sun as uses a completely different syntax.
23697 *-*-solaris2*)
23698 case "${target}" in
23699 sparc*-*-solaris2*)
23700 conftest_s='
23701 .group foo,".text%foo",#comdat
23702 .section ".text%foo", #alloc,#execinstr,#progbits
23703 .globl foo
23704 foo:
23707 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23708 conftest_s='
23709 .group foo,.text%foo,#comdat
23710 .section .text%foo, "ax", @progbits
23711 .globl foo
23712 foo:
23715 esac
23716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23717 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23718 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23719 $as_echo_n "(cached) " >&6
23720 else
23721 gcc_cv_as_comdat_group_group=no
23722 if test x$gcc_cv_as != x; then
23723 $as_echo "$conftest_s" > conftest.s
23724 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23726 (eval $ac_try) 2>&5
23727 ac_status=$?
23728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23729 test $ac_status = 0; }; }
23730 then
23731 gcc_cv_as_comdat_group_group=yes
23732 else
23733 echo "configure: failed program was" >&5
23734 cat conftest.s >&5
23736 rm -f conftest.o conftest.s
23739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23740 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23743 esac
23744 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23745 gcc_cv_as_comdat_group_group=no
23749 if test x"$ld_is_gold" = xyes; then
23750 comdat_group=yes
23751 elif test $in_tree_ld = yes ; then
23752 comdat_group=no
23753 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 \
23754 && test $in_tree_ld_is_elf = yes; then
23755 comdat_group=yes
23757 elif echo "$ld_ver" | grep GNU > /dev/null; then
23758 comdat_group=yes
23759 if test 0"$ld_date" -lt 20050308; then
23760 if test -n "$ld_date"; then
23761 # If there was date string, but was earlier than 2005-03-08, fail
23762 comdat_group=no
23763 elif test "$ld_vers_major" -lt 2; then
23764 comdat_group=no
23765 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23766 comdat_group=no
23769 else
23770 case "${target}" in
23771 *-*-solaris2.1[1-9]*)
23772 comdat_group=no
23773 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23774 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23775 # version 1.688.
23777 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23778 # least ld version 1.2267.
23779 if test "$ld_vers_major" -gt 1; then
23780 comdat_group=yes
23781 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23782 comdat_group=yes
23783 elif test "$ld_vers_minor" -ge 2267; then
23784 comdat_group=yes
23788 # Assume linkers other than GNU ld don't support COMDAT group.
23789 comdat_group=no
23791 esac
23793 # Allow overriding the automatic COMDAT group tests above.
23794 # Check whether --enable-comdat was given.
23795 if test "${enable_comdat+set}" = set; then :
23796 enableval=$enable_comdat; comdat_group="$enable_comdat"
23799 if test $comdat_group = no; then
23800 gcc_cv_as_comdat_group=no
23801 gcc_cv_as_comdat_group_percent=no
23802 gcc_cv_as_comdat_group_group=no
23805 cat >>confdefs.h <<_ACEOF
23806 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23807 || test $gcc_cv_as_comdat_group_percent = yes \
23808 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23809 _ACEOF
23812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23813 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23814 if test "${gcc_cv_as_discriminator+set}" = set; then :
23815 $as_echo_n "(cached) " >&6
23816 else
23817 gcc_cv_as_discriminator=no
23818 if test $in_tree_gas = yes; then
23819 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23820 then gcc_cv_as_discriminator=yes
23822 elif test x$gcc_cv_as != x; then
23823 $as_echo ' .text
23824 .file 1 "conf.c"
23825 .loc 1 1 0 discriminator 1' > conftest.s
23826 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23828 (eval $ac_try) 2>&5
23829 ac_status=$?
23830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23831 test $ac_status = 0; }; }
23832 then
23833 gcc_cv_as_discriminator=yes
23834 else
23835 echo "configure: failed program was" >&5
23836 cat conftest.s >&5
23838 rm -f conftest.o conftest.s
23841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23842 $as_echo "$gcc_cv_as_discriminator" >&6; }
23843 if test $gcc_cv_as_discriminator = yes; then
23845 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23849 # Thread-local storage - the check is heavily parameterized.
23850 conftest_s=
23851 tls_first_major=
23852 tls_first_minor=
23853 tls_as_opt=
23854 case "$target" in
23855 alpha*-*-*)
23856 conftest_s='
23857 .section ".tdata","awT",@progbits
23858 foo: .long 25
23859 .text
23860 ldq $27,__tls_get_addr($29) !literal!1
23861 lda $16,foo($29) !tlsgd!1
23862 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23863 ldq $27,__tls_get_addr($29) !literal!2
23864 lda $16,foo($29) !tlsldm!2
23865 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23866 ldq $1,foo($29) !gotdtprel
23867 ldah $2,foo($29) !dtprelhi
23868 lda $3,foo($2) !dtprello
23869 lda $4,foo($29) !dtprel
23870 ldq $1,foo($29) !gottprel
23871 ldah $2,foo($29) !tprelhi
23872 lda $3,foo($2) !tprello
23873 lda $4,foo($29) !tprel'
23874 tls_first_major=2
23875 tls_first_minor=13
23876 tls_as_opt=--fatal-warnings
23878 arc*-*-*)
23879 conftest_s='
23880 add_s r0,r0, @foo@tpoff'
23881 tls_first_major=2
23882 tls_first_minor=23
23884 cris-*-*|crisv32-*-*)
23885 conftest_s='
23886 .section ".tdata","awT",@progbits
23887 x: .long 25
23888 .text
23889 move.d x:IE,$r10
23890 nop'
23891 tls_first_major=2
23892 tls_first_minor=20
23893 tls_as_opt=--fatal-warnings
23895 frv*-*-*)
23896 conftest_s='
23897 .section ".tdata","awT",@progbits
23898 x: .long 25
23899 .text
23900 call #gettlsoff(x)'
23901 tls_first_major=2
23902 tls_first_minor=14
23904 hppa*-*-linux*)
23905 conftest_s='
23906 t1: .reg %r20
23907 t2: .reg %r21
23908 gp: .reg %r19
23909 .section ".tdata","awT",@progbits
23910 foo: .long 25
23911 .text
23912 .align 4
23913 addil LT%foo-$tls_gdidx$,gp
23914 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23915 b __tls_get_addr
23917 addil LT%foo-$tls_ldidx$,gp
23918 b __tls_get_addr
23919 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23920 addil LR%foo-$tls_dtpoff$,%ret0
23921 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23922 mfctl %cr27,%t1
23923 addil LT%foo-$tls_ieoff$,gp
23924 ldw RT%foo-$tls_ieoff$(%r1),%t2
23925 add %t1,%t2,%t3
23926 mfctl %cr27,%t1
23927 addil LR%foo-$tls_leoff$,%t1
23928 ldo RR%foo-$tls_leoff$(%r1),%t2'
23929 tls_first_major=2
23930 tls_first_minor=15
23931 tls_as_opt=--fatal-warnings
23933 arm*-*-*)
23934 conftest_s='
23935 .section ".tdata","awT",%progbits
23936 foo: .long 25
23937 .text
23938 .word foo(gottpoff)
23939 .word foo(tpoff)
23940 .word foo(tlsgd)
23941 .word foo(tlsldm)
23942 .word foo(tlsldo)'
23943 tls_first_major=2
23944 tls_first_minor=17
23946 i[34567]86-*-* | x86_64-*-*)
23947 case "$target" in
23948 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23949 on_solaris=yes
23952 on_solaris=no
23954 esac
23955 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23956 conftest_s='
23957 .section .tdata,"awt",@progbits'
23958 tls_first_major=0
23959 tls_first_minor=0
23960 tls_section_flag=t
23962 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23964 else
23965 conftest_s='
23966 .section ".tdata","awT",@progbits'
23967 tls_first_major=2
23968 tls_first_minor=14
23969 tls_section_flag=T
23970 tls_as_opt="--fatal-warnings"
23972 case "$target" in
23973 i[34567]86-*-*)
23974 conftest_s="$conftest_s
23975 foo: .long 25
23976 .text
23977 movl %gs:0, %eax
23978 leal foo@tlsgd(,%ebx,1), %eax
23979 leal foo@tlsldm(%ebx), %eax
23980 leal foo@dtpoff(%eax), %edx
23981 movl foo@gottpoff(%ebx), %eax
23982 subl foo@gottpoff(%ebx), %eax
23983 addl foo@gotntpoff(%ebx), %eax
23984 movl foo@indntpoff, %eax
23985 movl \$foo@tpoff, %eax
23986 subl \$foo@tpoff, %eax
23987 leal foo@ntpoff(%ecx), %eax"
23989 x86_64-*-*)
23990 if test x$on_solaris = xyes; then
23991 case $gas_flag in
23992 yes) tls_as_opt="$tls_as_opt --64" ;;
23993 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23994 esac
23996 conftest_s="$conftest_s
23997 foo: .long 25
23998 .text
23999 movq %fs:0, %rax
24000 leaq foo@tlsgd(%rip), %rdi
24001 leaq foo@tlsld(%rip), %rdi
24002 leaq foo@dtpoff(%rax), %rdx
24003 movq foo@gottpoff(%rip), %rax
24004 movq \$foo@tpoff, %rax"
24006 esac
24008 ia64-*-*)
24009 conftest_s='
24010 .section ".tdata","awT",@progbits
24011 foo: data8 25
24012 .text
24013 addl r16 = @ltoff(@dtpmod(foo#)), gp
24014 addl r17 = @ltoff(@dtprel(foo#)), gp
24015 addl r18 = @ltoff(@tprel(foo#)), gp
24016 addl r19 = @dtprel(foo#), gp
24017 adds r21 = @dtprel(foo#), r13
24018 movl r23 = @dtprel(foo#)
24019 addl r20 = @tprel(foo#), gp
24020 adds r22 = @tprel(foo#), r13
24021 movl r24 = @tprel(foo#)'
24022 tls_first_major=2
24023 tls_first_minor=13
24024 tls_as_opt=--fatal-warnings
24026 microblaze*-*-*)
24027 conftest_s='
24028 .section .tdata,"awT",@progbits
24030 .word 2
24031 .text
24032 addik r5,r20,x@TLSGD
24033 addik r5,r20,x@TLSLDM'
24034 tls_first_major=2
24035 tls_first_minor=20
24036 tls_as_opt='--fatal-warnings'
24038 mips*-*-*)
24039 conftest_s='
24040 .section .tdata,"awT",@progbits
24042 .word 2
24043 .text
24044 addiu $4, $28, %tlsgd(x)
24045 addiu $4, $28, %tlsldm(x)
24046 lui $4, %dtprel_hi(x)
24047 addiu $4, $4, %dtprel_lo(x)
24048 lw $4, %gottprel(x)($28)
24049 lui $4, %tprel_hi(x)
24050 addiu $4, $4, %tprel_lo(x)'
24051 tls_first_major=2
24052 tls_first_minor=16
24053 tls_as_opt='-32 --fatal-warnings'
24055 m68k-*-*)
24056 conftest_s='
24057 .section .tdata,"awT",@progbits
24059 .word 2
24060 .text
24061 foo:
24062 move.l x@TLSGD(%a5),%a0
24063 move.l x@TLSLDM(%a5),%a0
24064 move.l x@TLSLDO(%a5),%a0
24065 move.l x@TLSIE(%a5),%a0
24066 move.l x@TLSLE(%a5),%a0'
24067 tls_first_major=2
24068 tls_first_minor=19
24069 tls_as_opt='--fatal-warnings'
24071 nios2-*-*)
24072 conftest_s='
24073 .section ".tdata","awT",@progbits'
24074 tls_first_major=2
24075 tls_first_minor=23
24076 tls_as_opt="--fatal-warnings"
24078 aarch64*-*-*)
24079 conftest_s='
24080 .section ".tdata","awT",%progbits
24081 foo: .long 25
24082 .text
24083 adrp x0, :tlsgd:x
24084 add x0, x0, #:tlsgd_lo12:x
24085 bl __tls_get_addr
24086 nop'
24087 tls_first_major=2
24088 tls_first_minor=20
24089 tls_as_opt='--fatal-warnings'
24091 powerpc-ibm-aix*)
24092 conftest_s='
24093 .extern __get_tpointer
24094 .toc
24095 LC..1:
24096 .tc a[TC],a[TL]@le
24097 .csect .text[PR]
24098 .tlstest:
24099 lwz 9,LC..1(2)
24100 bla __get_tpointer
24101 lwzx 3,9,3
24102 .globl a
24103 .csect a[TL],4
24105 .space 4'
24106 tls_first_major=0
24107 tls_first_minor=0
24109 powerpc64*-*-*)
24110 conftest_s='
24111 .section ".tdata","awT",@progbits
24112 .align 3
24113 ld0: .space 8
24114 ld1: .space 8
24115 x1: .space 8
24116 x2: .space 8
24117 x3: .space 8
24118 .text
24119 addi 3,2,ld0@got@tlsgd
24120 bl .__tls_get_addr
24122 addi 3,2,ld1@toc
24123 bl .__tls_get_addr
24125 addi 3,2,x1@got@tlsld
24126 bl .__tls_get_addr
24128 addi 9,3,x1@dtprel
24129 bl .__tls_get_addr
24131 addis 9,3,x2@dtprel@ha
24132 addi 9,9,x2@dtprel@l
24133 bl .__tls_get_addr
24135 ld 9,x3@got@dtprel(2)
24136 add 9,9,3
24137 bl .__tls_get_addr
24138 nop'
24139 tls_first_major=2
24140 tls_first_minor=14
24141 tls_as_opt="-a64 --fatal-warnings"
24143 powerpc*-*-*)
24144 conftest_s='
24145 .section ".tdata","awT",@progbits
24146 .align 2
24147 ld0: .space 4
24148 ld1: .space 4
24149 x1: .space 4
24150 x2: .space 4
24151 x3: .space 4
24152 .text
24153 addi 3,31,ld0@got@tlsgd
24154 bl __tls_get_addr
24155 addi 3,31,x1@got@tlsld
24156 bl __tls_get_addr
24157 addi 9,3,x1@dtprel
24158 addis 9,3,x2@dtprel@ha
24159 addi 9,9,x2@dtprel@l
24160 lwz 9,x3@got@tprel(31)
24161 add 9,9,x@tls
24162 addi 9,2,x1@tprel
24163 addis 9,2,x2@tprel@ha
24164 addi 9,9,x2@tprel@l'
24165 tls_first_major=2
24166 tls_first_minor=14
24167 tls_as_opt="-a32 --fatal-warnings"
24169 s390-*-*)
24170 conftest_s='
24171 .section ".tdata","awT",@progbits
24172 foo: .long 25
24173 .text
24174 .long foo@TLSGD
24175 .long foo@TLSLDM
24176 .long foo@DTPOFF
24177 .long foo@NTPOFF
24178 .long foo@GOTNTPOFF
24179 .long foo@INDNTPOFF
24180 l %r1,foo@GOTNTPOFF(%r12)
24181 l %r1,0(%r1):tls_load:foo
24182 bas %r14,0(%r1,%r13):tls_gdcall:foo
24183 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24184 tls_first_major=2
24185 tls_first_minor=14
24186 tls_as_opt="-m31 --fatal-warnings"
24188 s390x-*-*)
24189 conftest_s='
24190 .section ".tdata","awT",@progbits
24191 foo: .long 25
24192 .text
24193 .quad foo@TLSGD
24194 .quad foo@TLSLDM
24195 .quad foo@DTPOFF
24196 .quad foo@NTPOFF
24197 .quad foo@GOTNTPOFF
24198 lg %r1,foo@GOTNTPOFF(%r12)
24199 larl %r1,foo@INDNTPOFF
24200 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24201 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24202 tls_first_major=2
24203 tls_first_minor=14
24204 tls_as_opt="-m64 -Aesame --fatal-warnings"
24206 sh-*-* | sh[123456789lbe]*-*-*)
24207 conftest_s='
24208 .section ".tdata","awT",@progbits
24209 foo: .long 25
24210 .text
24211 .long foo@TLSGD
24212 .long foo@TLSLDM
24213 .long foo@DTPOFF
24214 .long foo@GOTTPOFF
24215 .long foo@TPOFF'
24216 tls_first_major=2
24217 tls_first_minor=13
24218 tls_as_opt=--fatal-warnings
24220 sparc*-*-*)
24221 case "$target" in
24222 sparc*-sun-solaris2.*)
24223 on_solaris=yes
24226 on_solaris=no
24228 esac
24229 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24230 conftest_s='
24231 .section ".tdata",#alloc,#write,#tls'
24232 tls_first_major=0
24233 tls_first_minor=0
24234 else
24235 conftest_s='
24236 .section ".tdata","awT",@progbits'
24237 tls_first_major=2
24238 tls_first_minor=14
24239 tls_as_opt="-32 --fatal-warnings"
24241 conftest_s="$conftest_s
24242 foo: .long 25
24243 .text
24244 sethi %tgd_hi22(foo), %o0
24245 add %o0, %tgd_lo10(foo), %o1
24246 add %l7, %o1, %o0, %tgd_add(foo)
24247 call __tls_get_addr, %tgd_call(foo)
24248 sethi %tldm_hi22(foo), %l1
24249 add %l1, %tldm_lo10(foo), %l2
24250 add %l7, %l2, %o0, %tldm_add(foo)
24251 call __tls_get_addr, %tldm_call(foo)
24252 sethi %tldo_hix22(foo), %l3
24253 xor %l3, %tldo_lox10(foo), %l4
24254 add %o0, %l4, %l5, %tldo_add(foo)
24255 sethi %tie_hi22(foo), %o3
24256 add %o3, %tie_lo10(foo), %o3
24257 ld [%l7 + %o3], %o2, %tie_ld(foo)
24258 add %g7, %o2, %o4, %tie_add(foo)
24259 sethi %tle_hix22(foo), %l1
24260 xor %l1, %tle_lox10(foo), %o5
24261 ld [%g7 + %o5], %o1"
24263 tilepro*-*-*)
24264 conftest_s='
24265 .section ".tdata","awT",@progbits
24266 foo: .long 25
24267 .text
24268 addli r0, zero, tls_gd(foo)
24269 auli r0, zero, tls_gd_ha16(foo)
24270 addli r0, r0, tls_gd_lo16(foo)
24271 jal __tls_get_addr
24272 addli r0, zero, tls_ie(foo)
24273 auli r0, r0, tls_ie_ha16(foo)
24274 addli r0, r0, tls_ie_lo16(foo)'
24275 tls_first_major=2
24276 tls_first_minor=22
24277 tls_as_opt="--fatal-warnings"
24279 tilegx*-*-*)
24280 conftest_s='
24281 .section ".tdata","awT",@progbits
24282 foo: .long 25
24283 .text
24284 shl16insli r0, zero, hw0_last_tls_gd(foo)
24285 shl16insli r0, zero, hw1_last_tls_gd(foo)
24286 shl16insli r0, r0, hw0_tls_gd(foo)
24287 jal __tls_get_addr
24288 shl16insli r0, zero, hw1_last_tls_ie(foo)
24289 shl16insli r0, r0, hw0_tls_ie(foo)'
24290 tls_first_major=2
24291 tls_first_minor=22
24292 tls_as_opt="--fatal-warnings"
24294 xtensa*-*-*)
24295 conftest_s='
24296 .section ".tdata","awT",@progbits
24297 foo: .long 25
24298 .text
24299 movi a8, foo@TLSFUNC
24300 movi a10, foo@TLSARG
24301 callx8.tls a8, foo@TLSCALL'
24302 tls_first_major=2
24303 tls_first_minor=19
24305 esac
24306 set_have_as_tls=no
24307 if test "x$enable_tls" = xno ; then
24308 : # TLS explicitly disabled.
24309 elif test "x$enable_tls" = xyes ; then
24310 set_have_as_tls=yes # TLS explicitly enabled.
24311 elif test -z "$tls_first_major"; then
24312 : # If we don't have a check, assume no support.
24313 else
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24315 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24316 if test "${gcc_cv_as_tls+set}" = set; then :
24317 $as_echo_n "(cached) " >&6
24318 else
24319 gcc_cv_as_tls=no
24320 if test $in_tree_gas = yes; then
24321 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24322 then gcc_cv_as_tls=yes
24324 elif test x$gcc_cv_as != x; then
24325 $as_echo "$conftest_s" > conftest.s
24326 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24328 (eval $ac_try) 2>&5
24329 ac_status=$?
24330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24331 test $ac_status = 0; }; }
24332 then
24333 gcc_cv_as_tls=yes
24334 else
24335 echo "configure: failed program was" >&5
24336 cat conftest.s >&5
24338 rm -f conftest.o conftest.s
24341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24342 $as_echo "$gcc_cv_as_tls" >&6; }
24343 if test $gcc_cv_as_tls = yes; then
24344 set_have_as_tls=yes
24347 if test $set_have_as_tls = yes ; then
24349 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24353 # Target-specific assembler checks.
24355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24356 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24357 gcc_cv_ld_static_dynamic=no
24358 gcc_cv_ld_static_option='-Bstatic'
24359 gcc_cv_ld_dynamic_option='-Bdynamic'
24360 if test $in_tree_ld = yes ; then
24361 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
24362 gcc_cv_ld_static_dynamic=yes
24364 elif test x$gcc_cv_ld != x; then
24365 # Check if linker supports -Bstatic/-Bdynamic option
24366 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
24367 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
24368 gcc_cv_ld_static_dynamic=yes
24369 else
24370 case "$target" in
24371 # AIX ld uses -b flags
24372 *-*-aix4.[23]* | *-*-aix[5-9]*)
24373 gcc_cv_ld_static_dynamic=yes
24374 gcc_cv_ld_static_option="-bstatic"
24375 gcc_cv_ld_dynamic_option="-bdynamic"
24377 # HP-UX ld uses -a flags to select between shared and archive.
24378 *-*-hpux*)
24379 if test x"$gnu_ld" = xno; then
24380 gcc_cv_ld_static_dynamic=yes
24381 gcc_cv_ld_static_option="-aarchive_shared"
24382 gcc_cv_ld_dynamic_option="-adefault"
24385 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24386 *-*-solaris2*)
24387 gcc_cv_ld_static_dynamic=yes
24389 esac
24392 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24394 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24397 cat >>confdefs.h <<_ACEOF
24398 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24399 _ACEOF
24402 cat >>confdefs.h <<_ACEOF
24403 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24404 _ACEOF
24407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24408 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24410 if test x"$demangler_in_ld" = xyes; then
24411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24412 $as_echo_n "checking linker --demangle support... " >&6; }
24413 gcc_cv_ld_demangle=no
24414 if test $in_tree_ld = yes; then
24415 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 \
24416 gcc_cv_ld_demangle=yes
24418 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24419 # Check if the GNU linker supports --demangle option
24420 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24421 gcc_cv_ld_demangle=yes
24424 if test x"$gcc_cv_ld_demangle" = xyes; then
24426 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24430 $as_echo "$gcc_cv_ld_demangle" >&6; }
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24434 $as_echo_n "checking linker plugin support... " >&6; }
24435 gcc_cv_lto_plugin=0
24436 if test -f liblto_plugin.la; then
24437 save_ld_ver="$ld_ver"
24438 save_ld_vers_major="$ld_vers_major"
24439 save_ld_vers_minor="$ld_vers_minor"
24440 save_ld_is_gold="$ld_is_gold"
24442 ld_is_gold=no
24444 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24445 ld_ver="GNU ld"
24446 # FIXME: ld_is_gold?
24447 ld_vers_major="$gcc_cv_gld_major_version"
24448 ld_vers_minor="$gcc_cv_gld_minor_version"
24449 else
24450 # Determine plugin linker version.
24451 # FIXME: Partial duplicate from above, generalize.
24452 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24453 if echo "$ld_ver" | grep GNU > /dev/null; then
24454 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24455 ld_is_gold=yes
24456 ld_vers=`echo $ld_ver | sed -n \
24457 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24458 else
24459 ld_vers=`echo $ld_ver | sed -n \
24460 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24462 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24463 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24467 # Determine plugin support.
24468 if echo "$ld_ver" | grep GNU > /dev/null; then
24469 # Require GNU ld or gold 2.21+ for plugin support by default.
24470 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24471 gcc_cv_lto_plugin=2
24472 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24473 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24474 gcc_cv_lto_plugin=1
24478 ld_ver="$save_ld_ver"
24479 ld_vers_major="$save_ld_vers_major"
24480 ld_vers_minor="$save_ld_vers_minor"
24481 ld_is_gold="$save_ld_is_gold"
24484 cat >>confdefs.h <<_ACEOF
24485 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24486 _ACEOF
24488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24489 $as_echo "$gcc_cv_lto_plugin" >&6; }
24491 case "$target" in
24492 aarch64*-*-*)
24493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24494 $as_echo_n "checking assembler for -mabi option... " >&6; }
24495 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24496 $as_echo_n "(cached) " >&6
24497 else
24498 gcc_cv_as_aarch64_mabi=no
24499 if test x$gcc_cv_as != x; then
24500 $as_echo '.text' > conftest.s
24501 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24502 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24503 (eval $ac_try) 2>&5
24504 ac_status=$?
24505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24506 test $ac_status = 0; }; }
24507 then
24508 gcc_cv_as_aarch64_mabi=yes
24509 else
24510 echo "configure: failed program was" >&5
24511 cat conftest.s >&5
24513 rm -f conftest.o conftest.s
24516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24517 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24519 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24521 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24523 else
24524 if test x$with_abi = xilp32; then
24525 as_fn_error "Assembler does not support -mabi=ilp32.\
24526 Upgrade the Assembler." "$LINENO" 5
24528 if test x"$with_multilib_list" = xdefault; then
24529 TM_MULTILIB_CONFIG=lp64
24530 else
24531 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24532 for aarch64_multilib in ${aarch64_multilibs}; do
24533 case ${aarch64_multilib} in
24534 ilp32)
24535 as_fn_error "Assembler does not support -mabi=ilp32.\
24536 Upgrade the Assembler." "$LINENO" 5
24540 esac
24541 done
24544 # Check if we have binutils support for relocations types needed by -fpic
24545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24546 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24547 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24548 $as_echo_n "(cached) " >&6
24549 else
24550 gcc_cv_as_aarch64_picreloc=no
24551 if test x$gcc_cv_as != x; then
24552 $as_echo '
24553 .text
24554 ldr x0, [x2, #:gotpage_lo15:globalsym]
24555 ' > conftest.s
24556 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24558 (eval $ac_try) 2>&5
24559 ac_status=$?
24560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24561 test $ac_status = 0; }; }
24562 then
24563 gcc_cv_as_aarch64_picreloc=yes
24564 else
24565 echo "configure: failed program was" >&5
24566 cat conftest.s >&5
24568 rm -f conftest.o conftest.s
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24572 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24573 if test $gcc_cv_as_aarch64_picreloc = yes; then
24575 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24578 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24579 # Check whether --enable-fix-cortex-a53-835769 was given.
24580 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24581 enableval=$enable_fix_cortex_a53_835769;
24582 case $enableval in
24583 yes)
24584 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24589 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24590 Valid choices are 'yes' and 'no'." "$LINENO" 5
24593 esac
24597 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24598 # Check whether --enable-fix-cortex-a53-843419 was given.
24599 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24600 enableval=$enable_fix_cortex_a53_843419;
24601 case $enableval in
24602 yes)
24603 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24608 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24609 Valid choices are 'yes' and 'no'." "$LINENO" 5
24612 esac
24618 # All TARGET_ABI_OSF targets.
24619 alpha*-*-linux* | alpha*-*-*bsd*)
24620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24621 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24622 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24623 $as_echo_n "(cached) " >&6
24624 else
24625 gcc_cv_as_alpha_explicit_relocs=no
24626 if test $in_tree_gas = yes; then
24627 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24628 then gcc_cv_as_alpha_explicit_relocs=yes
24630 elif test x$gcc_cv_as != x; then
24631 $as_echo ' .set nomacro
24632 .text
24633 extbl $3, $2, $3 !lituse_bytoff!1
24634 ldq $2, a($29) !literal!1
24635 ldq $4, b($29) !literal!2
24636 ldq_u $3, 0($2) !lituse_base!1
24637 ldq $27, f($29) !literal!5
24638 jsr $26, ($27), f !lituse_jsr!5
24639 ldah $29, 0($26) !gpdisp!3
24640 lda $0, c($29) !gprel
24641 ldah $1, d($29) !gprelhigh
24642 lda $1, d($1) !gprellow
24643 lda $29, 0($29) !gpdisp!3' > conftest.s
24644 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24646 (eval $ac_try) 2>&5
24647 ac_status=$?
24648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24649 test $ac_status = 0; }; }
24650 then
24651 gcc_cv_as_alpha_explicit_relocs=yes
24652 else
24653 echo "configure: failed program was" >&5
24654 cat conftest.s >&5
24656 rm -f conftest.o conftest.s
24659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24660 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24661 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24663 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24667 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24668 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24669 $as_echo_n "(cached) " >&6
24670 else
24671 gcc_cv_as_alpha_jsrdirect_relocs=no
24672 if test $in_tree_gas = yes; then
24673 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24674 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24676 elif test x$gcc_cv_as != x; then
24677 $as_echo ' .set nomacro
24678 .text
24679 ldq $27, a($29) !literal!1
24680 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24681 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24683 (eval $ac_try) 2>&5
24684 ac_status=$?
24685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24686 test $ac_status = 0; }; }
24687 then
24688 gcc_cv_as_alpha_jsrdirect_relocs=yes
24689 else
24690 echo "configure: failed program was" >&5
24691 cat conftest.s >&5
24693 rm -f conftest.o conftest.s
24696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24697 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24698 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24700 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24705 avr-*-*)
24706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24707 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24708 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24709 $as_echo_n "(cached) " >&6
24710 else
24711 gcc_cv_as_avr_mlink_relax=no
24712 if test x$gcc_cv_as != x; then
24713 $as_echo '.text' > conftest.s
24714 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24716 (eval $ac_try) 2>&5
24717 ac_status=$?
24718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24719 test $ac_status = 0; }; }
24720 then
24721 gcc_cv_as_avr_mlink_relax=yes
24722 else
24723 echo "configure: failed program was" >&5
24724 cat conftest.s >&5
24726 rm -f conftest.o conftest.s
24729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24730 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24731 if test $gcc_cv_as_avr_mlink_relax = yes; then
24733 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24738 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24739 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24740 $as_echo_n "(cached) " >&6
24741 else
24742 gcc_cv_as_avr_mrmw=no
24743 if test x$gcc_cv_as != x; then
24744 $as_echo '.text' > conftest.s
24745 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24747 (eval $ac_try) 2>&5
24748 ac_status=$?
24749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24750 test $ac_status = 0; }; }
24751 then
24752 gcc_cv_as_avr_mrmw=yes
24753 else
24754 echo "configure: failed program was" >&5
24755 cat conftest.s >&5
24757 rm -f conftest.o conftest.s
24760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24761 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24762 if test $gcc_cv_as_avr_mrmw = yes; then
24764 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24769 cris-*-*)
24770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24771 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24772 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24773 $as_echo_n "(cached) " >&6
24774 else
24775 gcc_cv_as_cris_no_mul_bug=no
24776 if test $in_tree_gas = yes; then
24777 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24778 then gcc_cv_as_cris_no_mul_bug=yes
24780 elif test x$gcc_cv_as != x; then
24781 $as_echo '.text' > conftest.s
24782 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24784 (eval $ac_try) 2>&5
24785 ac_status=$?
24786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24787 test $ac_status = 0; }; }
24788 then
24789 gcc_cv_as_cris_no_mul_bug=yes
24790 else
24791 echo "configure: failed program was" >&5
24792 cat conftest.s >&5
24794 rm -f conftest.o conftest.s
24797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24798 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24799 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24801 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24806 sparc*-*-*)
24807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24808 $as_echo_n "checking assembler for .register... " >&6; }
24809 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24810 $as_echo_n "(cached) " >&6
24811 else
24812 gcc_cv_as_sparc_register_op=no
24813 if test x$gcc_cv_as != x; then
24814 $as_echo '.register %g2, #scratch' > conftest.s
24815 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24817 (eval $ac_try) 2>&5
24818 ac_status=$?
24819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24820 test $ac_status = 0; }; }
24821 then
24822 gcc_cv_as_sparc_register_op=yes
24823 else
24824 echo "configure: failed program was" >&5
24825 cat conftest.s >&5
24827 rm -f conftest.o conftest.s
24830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24831 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24832 if test $gcc_cv_as_sparc_register_op = yes; then
24834 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24839 $as_echo_n "checking assembler for -relax option... " >&6; }
24840 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24841 $as_echo_n "(cached) " >&6
24842 else
24843 gcc_cv_as_sparc_relax=no
24844 if test x$gcc_cv_as != x; then
24845 $as_echo '.text' > conftest.s
24846 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24847 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24848 (eval $ac_try) 2>&5
24849 ac_status=$?
24850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24851 test $ac_status = 0; }; }
24852 then
24853 gcc_cv_as_sparc_relax=yes
24854 else
24855 echo "configure: failed program was" >&5
24856 cat conftest.s >&5
24858 rm -f conftest.o conftest.s
24861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24862 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24863 if test $gcc_cv_as_sparc_relax = yes; then
24865 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24870 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24871 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24872 $as_echo_n "(cached) " >&6
24873 else
24874 gcc_cv_as_sparc_gotdata_op=no
24875 if test x$gcc_cv_as != x; then
24876 $as_echo '.text
24877 .align 4
24878 foo:
24880 bar:
24881 sethi %gdop_hix22(foo), %g1
24882 xor %g1, %gdop_lox10(foo), %g1
24883 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24884 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24886 (eval $ac_try) 2>&5
24887 ac_status=$?
24888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24889 test $ac_status = 0; }; }
24890 then
24891 if test x$gcc_cv_ld != x \
24892 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24893 if test x$gcc_cv_objdump != x; then
24894 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24895 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24896 gcc_cv_as_sparc_gotdata_op=no
24897 else
24898 gcc_cv_as_sparc_gotdata_op=yes
24902 rm -f conftest
24903 else
24904 echo "configure: failed program was" >&5
24905 cat conftest.s >&5
24907 rm -f conftest.o conftest.s
24910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24911 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24912 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24914 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24919 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24920 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24921 $as_echo_n "(cached) " >&6
24922 else
24923 gcc_cv_as_sparc_ua_pcrel=no
24924 if test x$gcc_cv_as != x; then
24925 $as_echo '.text
24926 foo:
24928 .data
24929 .align 4
24930 .byte 0
24931 .uaword %r_disp32(foo)' > conftest.s
24932 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24934 (eval $ac_try) 2>&5
24935 ac_status=$?
24936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24937 test $ac_status = 0; }; }
24938 then
24939 if test x$gcc_cv_ld != x \
24940 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24941 gcc_cv_as_sparc_ua_pcrel=yes
24943 rm -f conftest
24944 else
24945 echo "configure: failed program was" >&5
24946 cat conftest.s >&5
24948 rm -f conftest.o conftest.s
24951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24952 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24953 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24955 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24959 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24960 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24961 $as_echo_n "(cached) " >&6
24962 else
24963 gcc_cv_as_sparc_ua_pcrel_hidden=no
24964 if test x$gcc_cv_as != x; then
24965 $as_echo '.data
24966 .align 4
24967 .byte 0x31
24968 .uaword %r_disp32(foo)
24969 .byte 0x32, 0x33, 0x34
24970 .global foo
24971 .hidden foo
24972 foo:
24973 .skip 4' > conftest.s
24974 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24976 (eval $ac_try) 2>&5
24977 ac_status=$?
24978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24979 test $ac_status = 0; }; }
24980 then
24981 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24982 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24983 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24984 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24985 if $gcc_cv_objdump -R conftest 2> /dev/null \
24986 | grep 'DISP32' > /dev/null 2>&1; then
24988 else
24989 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24992 rm -f conftest
24993 else
24994 echo "configure: failed program was" >&5
24995 cat conftest.s >&5
24997 rm -f conftest.o conftest.s
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25001 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25002 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25004 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25008 fi # unaligned pcrel relocs
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25011 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25012 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25013 $as_echo_n "(cached) " >&6
25014 else
25015 gcc_cv_as_sparc_offsetable_lo10=no
25016 if test x$gcc_cv_as != x; then
25017 $as_echo '.text
25018 or %g1, %lo(ab) + 12, %g1
25019 or %g1, %lo(ab + 12), %g1' > conftest.s
25020 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25022 (eval $ac_try) 2>&5
25023 ac_status=$?
25024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25025 test $ac_status = 0; }; }
25026 then
25027 if test x$gcc_cv_objdump != x \
25028 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
25029 | grep ' 82106000 82106000' > /dev/null 2>&1; then
25030 gcc_cv_as_sparc_offsetable_lo10=yes
25032 else
25033 echo "configure: failed program was" >&5
25034 cat conftest.s >&5
25036 rm -f conftest.o conftest.s
25039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25040 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25041 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25043 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25048 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25049 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25050 $as_echo_n "(cached) " >&6
25051 else
25052 gcc_cv_as_sparc_fmaf=no
25053 if test x$gcc_cv_as != x; then
25054 $as_echo '.text
25055 .register %g2, #scratch
25056 .register %g3, #scratch
25057 .align 4
25058 fmaddd %f0, %f2, %f4, %f6
25059 addxccc %g1, %g2, %g3
25060 fsrl32 %f2, %f4, %f8
25061 fnaddd %f10, %f12, %f14' > conftest.s
25062 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25064 (eval $ac_try) 2>&5
25065 ac_status=$?
25066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25067 test $ac_status = 0; }; }
25068 then
25069 gcc_cv_as_sparc_fmaf=yes
25070 else
25071 echo "configure: failed program was" >&5
25072 cat conftest.s >&5
25074 rm -f conftest.o conftest.s
25077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25078 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25079 if test $gcc_cv_as_sparc_fmaf = yes; then
25081 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25086 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25087 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25088 $as_echo_n "(cached) " >&6
25089 else
25090 gcc_cv_as_sparc_sparc4=no
25091 if test x$gcc_cv_as != x; then
25092 $as_echo '.text
25093 .register %g2, #scratch
25094 .register %g3, #scratch
25095 .align 4
25096 cxbe %g2, %g3, 1f
25097 1: cwbneg %g2, %g3, 1f
25098 1: sha1
25100 aes_kexpand0 %f4, %f6, %f8
25101 des_round %f38, %f40, %f42, %f44
25102 camellia_f %f54, %f56, %f58, %f60
25103 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25104 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25106 (eval $ac_try) 2>&5
25107 ac_status=$?
25108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25109 test $ac_status = 0; }; }
25110 then
25111 gcc_cv_as_sparc_sparc4=yes
25112 else
25113 echo "configure: failed program was" >&5
25114 cat conftest.s >&5
25116 rm -f conftest.o conftest.s
25119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25120 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25121 if test $gcc_cv_as_sparc_sparc4 = yes; then
25123 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25128 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25129 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25130 $as_echo_n "(cached) " >&6
25131 else
25132 gcc_cv_as_sparc_leon=no
25133 if test x$gcc_cv_as != x; then
25134 $as_echo '.text
25135 .register %g2, #scratch
25136 .register %g3, #scratch
25137 .align 4
25138 smac %g2, %g3, %g1
25139 umac %g2, %g3, %g1
25140 casa [%g2] 0xb, %g3, %g1' > conftest.s
25141 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25143 (eval $ac_try) 2>&5
25144 ac_status=$?
25145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25146 test $ac_status = 0; }; }
25147 then
25148 gcc_cv_as_sparc_leon=yes
25149 else
25150 echo "configure: failed program was" >&5
25151 cat conftest.s >&5
25153 rm -f conftest.o conftest.s
25156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25157 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25158 if test $gcc_cv_as_sparc_leon = yes; then
25160 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25165 i[34567]86-*-* | x86_64-*-*)
25166 case $target_os in
25167 cygwin*)
25168 # Full C++ conformance when using a shared libstdc++-v3 requires some
25169 # support from the Cygwin DLL, which in more recent versions exports
25170 # wrappers to aid in interposing and redirecting operators new, delete,
25171 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25172 # are configuring for a version of Cygwin that exports the wrappers.
25173 if test x$host = x$target && test x$host_cpu = xi686; then
25174 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25175 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25176 gcc_ac_cygwin_dll_wrappers=yes
25177 else
25178 gcc_ac_cygwin_dll_wrappers=no
25181 else
25182 # Can't check presence of libc functions during cross-compile, so
25183 # we just have to assume we're building for an up-to-date target.
25184 gcc_ac_cygwin_dll_wrappers=yes
25187 cat >>confdefs.h <<_ACEOF
25188 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25189 _ACEOF
25191 esac
25192 case $target_os in
25193 cygwin* | pe | mingw32* | interix*)
25194 # Recent binutils allows the three-operand form of ".comm" on PE. This
25195 # definition is used unconditionally to initialise the default state of
25196 # the target option variable that governs usage of the feature.
25197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25198 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25199 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25200 $as_echo_n "(cached) " >&6
25201 else
25202 gcc_cv_as_comm_has_align=no
25203 if test $in_tree_gas = yes; then
25204 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25205 then gcc_cv_as_comm_has_align=yes
25207 elif test x$gcc_cv_as != x; then
25208 $as_echo '.comm foo,1,32' > conftest.s
25209 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25211 (eval $ac_try) 2>&5
25212 ac_status=$?
25213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25214 test $ac_status = 0; }; }
25215 then
25216 gcc_cv_as_comm_has_align=yes
25217 else
25218 echo "configure: failed program was" >&5
25219 cat conftest.s >&5
25221 rm -f conftest.o conftest.s
25224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25225 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25228 cat >>confdefs.h <<_ACEOF
25229 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25230 _ACEOF
25232 # Used for DWARF 2 in PE
25233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25234 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25235 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25236 $as_echo_n "(cached) " >&6
25237 else
25238 gcc_cv_as_ix86_pe_secrel32=no
25239 if test $in_tree_gas = yes; then
25240 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25241 then gcc_cv_as_ix86_pe_secrel32=yes
25243 elif test x$gcc_cv_as != x; then
25244 $as_echo '.text
25245 foo: nop
25246 .data
25247 .secrel32 foo' > conftest.s
25248 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25250 (eval $ac_try) 2>&5
25251 ac_status=$?
25252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25253 test $ac_status = 0; }; }
25254 then
25255 if test x$gcc_cv_ld != x \
25256 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25257 gcc_cv_as_ix86_pe_secrel32=yes
25259 rm -f conftest
25260 else
25261 echo "configure: failed program was" >&5
25262 cat conftest.s >&5
25264 rm -f conftest.o conftest.s
25267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25268 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25269 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25271 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25274 # Test if the assembler supports the extended form of the .section
25275 # directive that specifies section alignment. LTO support uses this,
25276 # but normally only after installation, so we warn but don't fail the
25277 # configure if LTO is enabled but the assembler does not support it.
25278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25279 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25280 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25281 $as_echo_n "(cached) " >&6
25282 else
25283 gcc_cv_as_section_has_align=no
25284 if test $in_tree_gas = yes; then
25285 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25286 then gcc_cv_as_section_has_align=yes
25288 elif test x$gcc_cv_as != x; then
25289 $as_echo '.section lto_test,"dr0"' > conftest.s
25290 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25292 (eval $ac_try) 2>&5
25293 ac_status=$?
25294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25295 test $ac_status = 0; }; }
25296 then
25297 gcc_cv_as_section_has_align=yes
25298 else
25299 echo "configure: failed program was" >&5
25300 cat conftest.s >&5
25302 rm -f conftest.o conftest.s
25305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25306 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25308 if test x$gcc_cv_as_section_has_align != xyes; then
25309 case ",$enable_languages," in
25310 *,lto,*)
25311 { $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
25312 $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;}
25314 esac
25317 esac
25319 # Test if the assembler supports the section flag 'e' for specifying
25320 # an excluded section.
25321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25322 $as_echo_n "checking assembler for .section with e... " >&6; }
25323 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25324 $as_echo_n "(cached) " >&6
25325 else
25326 gcc_cv_as_section_has_e=no
25327 if test $in_tree_gas = yes; then
25328 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25329 then gcc_cv_as_section_has_e=yes
25331 elif test x$gcc_cv_as != x; then
25332 $as_echo '.section foo1,"e"
25333 .byte 0,0,0,0' > conftest.s
25334 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25336 (eval $ac_try) 2>&5
25337 ac_status=$?
25338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25339 test $ac_status = 0; }; }
25340 then
25341 gcc_cv_as_section_has_e=yes
25342 else
25343 echo "configure: failed program was" >&5
25344 cat conftest.s >&5
25346 rm -f conftest.o conftest.s
25349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25350 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25353 cat >>confdefs.h <<_ACEOF
25354 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25355 _ACEOF
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25359 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25360 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25361 $as_echo_n "(cached) " >&6
25362 else
25363 gcc_cv_as_ix86_filds=no
25364 if test x$gcc_cv_as != x; then
25365 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25366 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25368 (eval $ac_try) 2>&5
25369 ac_status=$?
25370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25371 test $ac_status = 0; }; }
25372 then
25373 gcc_cv_as_ix86_filds=yes
25374 else
25375 echo "configure: failed program was" >&5
25376 cat conftest.s >&5
25378 rm -f conftest.o conftest.s
25381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25382 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25383 if test $gcc_cv_as_ix86_filds = yes; then
25385 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25390 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25391 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25392 $as_echo_n "(cached) " >&6
25393 else
25394 gcc_cv_as_ix86_fildq=no
25395 if test x$gcc_cv_as != x; then
25396 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25397 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25399 (eval $ac_try) 2>&5
25400 ac_status=$?
25401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25402 test $ac_status = 0; }; }
25403 then
25404 gcc_cv_as_ix86_fildq=yes
25405 else
25406 echo "configure: failed program was" >&5
25407 cat conftest.s >&5
25409 rm -f conftest.o conftest.s
25412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25413 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25414 if test $gcc_cv_as_ix86_fildq = yes; then
25416 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25421 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25422 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25423 $as_echo_n "(cached) " >&6
25424 else
25425 gcc_cv_as_ix86_cmov_sun_syntax=no
25426 if test x$gcc_cv_as != x; then
25427 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25428 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25430 (eval $ac_try) 2>&5
25431 ac_status=$?
25432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25433 test $ac_status = 0; }; }
25434 then
25435 gcc_cv_as_ix86_cmov_sun_syntax=yes
25436 else
25437 echo "configure: failed program was" >&5
25438 cat conftest.s >&5
25440 rm -f conftest.o conftest.s
25443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25444 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25445 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25447 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25452 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25453 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25454 $as_echo_n "(cached) " >&6
25455 else
25456 gcc_cv_as_ix86_ffreep=no
25457 if test x$gcc_cv_as != x; then
25458 $as_echo 'ffreep %st(1)' > conftest.s
25459 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25461 (eval $ac_try) 2>&5
25462 ac_status=$?
25463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25464 test $ac_status = 0; }; }
25465 then
25466 gcc_cv_as_ix86_ffreep=yes
25467 else
25468 echo "configure: failed program was" >&5
25469 cat conftest.s >&5
25471 rm -f conftest.o conftest.s
25474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25475 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25476 if test $gcc_cv_as_ix86_ffreep = yes; then
25478 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25483 $as_echo_n "checking assembler for .quad directive... " >&6; }
25484 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25485 $as_echo_n "(cached) " >&6
25486 else
25487 gcc_cv_as_ix86_quad=no
25488 if test x$gcc_cv_as != x; then
25489 $as_echo '.quad 0' > conftest.s
25490 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25492 (eval $ac_try) 2>&5
25493 ac_status=$?
25494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25495 test $ac_status = 0; }; }
25496 then
25497 gcc_cv_as_ix86_quad=yes
25498 else
25499 echo "configure: failed program was" >&5
25500 cat conftest.s >&5
25502 rm -f conftest.o conftest.s
25505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25506 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25507 if test $gcc_cv_as_ix86_quad = yes; then
25509 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25514 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25515 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25516 $as_echo_n "(cached) " >&6
25517 else
25518 gcc_cv_as_ix86_sahf=no
25519 if test x$gcc_cv_as != x; then
25520 $as_echo '.code64
25521 sahf' > conftest.s
25522 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25524 (eval $ac_try) 2>&5
25525 ac_status=$?
25526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25527 test $ac_status = 0; }; }
25528 then
25529 gcc_cv_as_ix86_sahf=yes
25530 else
25531 echo "configure: failed program was" >&5
25532 cat conftest.s >&5
25534 rm -f conftest.o conftest.s
25537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25538 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25539 if test $gcc_cv_as_ix86_sahf = yes; then
25541 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25546 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25547 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25548 $as_echo_n "(cached) " >&6
25549 else
25550 gcc_cv_as_ix86_interunit_movq=no
25551 if test x$gcc_cv_as != x; then
25552 $as_echo '.code64
25553 movq %mm0, %rax
25554 movq %rax, %xmm0' > conftest.s
25555 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25557 (eval $ac_try) 2>&5
25558 ac_status=$?
25559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25560 test $ac_status = 0; }; }
25561 then
25562 gcc_cv_as_ix86_interunit_movq=yes
25563 else
25564 echo "configure: failed program was" >&5
25565 cat conftest.s >&5
25567 rm -f conftest.o conftest.s
25570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25571 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25574 cat >>confdefs.h <<_ACEOF
25575 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25576 _ACEOF
25579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25580 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25581 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25582 $as_echo_n "(cached) " >&6
25583 else
25584 gcc_cv_as_ix86_hle=no
25585 if test x$gcc_cv_as != x; then
25586 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25587 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25589 (eval $ac_try) 2>&5
25590 ac_status=$?
25591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25592 test $ac_status = 0; }; }
25593 then
25594 gcc_cv_as_ix86_hle=yes
25595 else
25596 echo "configure: failed program was" >&5
25597 cat conftest.s >&5
25599 rm -f conftest.o conftest.s
25602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25603 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25604 if test $gcc_cv_as_ix86_hle = yes; then
25606 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25611 $as_echo_n "checking assembler for swap suffix... " >&6; }
25612 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25613 $as_echo_n "(cached) " >&6
25614 else
25615 gcc_cv_as_ix86_swap=no
25616 if test x$gcc_cv_as != x; then
25617 $as_echo 'movl.s %esp, %ebp' > conftest.s
25618 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25620 (eval $ac_try) 2>&5
25621 ac_status=$?
25622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25623 test $ac_status = 0; }; }
25624 then
25625 gcc_cv_as_ix86_swap=yes
25626 else
25627 echo "configure: failed program was" >&5
25628 cat conftest.s >&5
25630 rm -f conftest.o conftest.s
25633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25634 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25635 if test $gcc_cv_as_ix86_swap = yes; then
25637 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25642 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25643 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25644 $as_echo_n "(cached) " >&6
25645 else
25646 gcc_cv_as_ix86_diff_sect_delta=no
25647 if test x$gcc_cv_as != x; then
25648 $as_echo '.section .rodata
25649 .L1:
25650 .long .L2-.L1
25651 .long .L3-.L1
25652 .text
25653 .L3: nop
25654 .L2: nop' > conftest.s
25655 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25657 (eval $ac_try) 2>&5
25658 ac_status=$?
25659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25660 test $ac_status = 0; }; }
25661 then
25662 gcc_cv_as_ix86_diff_sect_delta=yes
25663 else
25664 echo "configure: failed program was" >&5
25665 cat conftest.s >&5
25667 rm -f conftest.o conftest.s
25670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25671 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25672 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25674 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25678 # These two are used unconditionally by i386.[ch]; it is to be defined
25679 # to 1 if the feature is present, 0 otherwise.
25680 as_ix86_gotoff_in_data_opt=
25681 if test x$gas = xyes; then
25682 as_ix86_gotoff_in_data_opt="--32"
25684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25685 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25686 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25687 $as_echo_n "(cached) " >&6
25688 else
25689 gcc_cv_as_ix86_gotoff_in_data=no
25690 if test $in_tree_gas = yes; then
25691 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25692 then gcc_cv_as_ix86_gotoff_in_data=yes
25694 elif test x$gcc_cv_as != x; then
25695 $as_echo ' .text
25696 .L0:
25698 .data
25699 .long .L0@GOTOFF' > conftest.s
25700 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25702 (eval $ac_try) 2>&5
25703 ac_status=$?
25704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25705 test $ac_status = 0; }; }
25706 then
25707 gcc_cv_as_ix86_gotoff_in_data=yes
25708 else
25709 echo "configure: failed program was" >&5
25710 cat conftest.s >&5
25712 rm -f conftest.o conftest.s
25715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25716 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25719 cat >>confdefs.h <<_ACEOF
25720 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25721 _ACEOF
25724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25725 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25726 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25727 $as_echo_n "(cached) " >&6
25728 else
25729 gcc_cv_as_ix86_rep_lock_prefix=no
25730 if test x$gcc_cv_as != x; then
25731 $as_echo 'rep movsl
25732 rep ret
25733 rep nop
25734 rep bsf %ecx, %eax
25735 rep bsr %ecx, %eax
25736 lock addl %edi, (%eax,%esi)
25737 lock orl $0, (%esp)' > conftest.s
25738 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25739 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25740 (eval $ac_try) 2>&5
25741 ac_status=$?
25742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25743 test $ac_status = 0; }; }
25744 then
25745 gcc_cv_as_ix86_rep_lock_prefix=yes
25746 else
25747 echo "configure: failed program was" >&5
25748 cat conftest.s >&5
25750 rm -f conftest.o conftest.s
25753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25754 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25755 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25757 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25762 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25763 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25764 $as_echo_n "(cached) " >&6
25765 else
25766 gcc_cv_as_ix86_ud2=no
25767 if test x$gcc_cv_as != x; then
25768 $as_echo 'ud2' > conftest.s
25769 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25771 (eval $ac_try) 2>&5
25772 ac_status=$?
25773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25774 test $ac_status = 0; }; }
25775 then
25776 gcc_cv_as_ix86_ud2=yes
25777 else
25778 echo "configure: failed program was" >&5
25779 cat conftest.s >&5
25781 rm -f conftest.o conftest.s
25784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25785 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25786 if test $gcc_cv_as_ix86_ud2 = yes; then
25788 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25793 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25794 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25795 $as_echo_n "(cached) " >&6
25796 else
25797 gcc_cv_as_ix86_tlsgdplt=no
25798 if test x$gcc_cv_as != x; then
25799 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25800 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25802 (eval $ac_try) 2>&5
25803 ac_status=$?
25804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25805 test $ac_status = 0; }; }
25806 then
25807 if test x$gcc_cv_ld != x \
25808 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25809 gcc_cv_as_ix86_tlsgdplt=yes
25811 rm -f conftest
25812 else
25813 echo "configure: failed program was" >&5
25814 cat conftest.s >&5
25816 rm -f conftest.o conftest.s
25819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25820 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25821 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25823 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25827 conftest_s='
25828 .section .tdata,"aw'$tls_section_flag'",@progbits
25829 tls_ld:
25830 .section .text,"ax",@progbits
25831 call tls_ld@tlsldmplt'
25832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25833 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25834 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25835 $as_echo_n "(cached) " >&6
25836 else
25837 gcc_cv_as_ix86_tlsldmplt=no
25838 if test x$gcc_cv_as != x; then
25839 $as_echo "$conftest_s" > conftest.s
25840 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25842 (eval $ac_try) 2>&5
25843 ac_status=$?
25844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25845 test $ac_status = 0; }; }
25846 then
25847 if test x$gcc_cv_ld != x \
25848 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25849 gcc_cv_as_ix86_tlsldmplt=yes
25851 rm -f conftest
25852 else
25853 echo "configure: failed program was" >&5
25854 cat conftest.s >&5
25856 rm -f conftest.o conftest.s
25859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25860 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25863 cat >>confdefs.h <<_ACEOF
25864 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25865 _ACEOF
25868 # Enforce 32-bit output with gas and gld.
25869 if test x$gas = xyes; then
25870 as_ix86_tls_ldm_opt="--32"
25872 if echo "$ld_ver" | grep GNU > /dev/null; then
25873 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25874 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25875 else
25876 ld_ix86_tls_ldm_opt="-melf_i386"
25879 conftest_s='
25880 .section .text,"ax",@progbits
25881 .globl _start
25882 .type _start, @function
25883 _start:
25884 leal value@tlsldm(%ebx), %eax
25885 call ___tls_get_addr@plt
25887 .section .tdata,"aw'$tls_section_flag'",@progbits
25888 .type value, @object
25889 value:'
25890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25891 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25892 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25893 $as_echo_n "(cached) " >&6
25894 else
25895 gcc_cv_as_ix86_tlsldm=no
25896 if test x$gcc_cv_as != x; then
25897 $as_echo "$conftest_s" > conftest.s
25898 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25900 (eval $ac_try) 2>&5
25901 ac_status=$?
25902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25903 test $ac_status = 0; }; }
25904 then
25905 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25906 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25907 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25908 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25909 gcc_cv_as_ix86_tlsldm=yes
25912 rm -f conftest
25913 else
25914 echo "configure: failed program was" >&5
25915 cat conftest.s >&5
25917 rm -f conftest.o conftest.s
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25921 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25924 cat >>confdefs.h <<_ACEOF
25925 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25926 _ACEOF
25931 ia64*-*-*)
25932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25933 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25934 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25935 $as_echo_n "(cached) " >&6
25936 else
25937 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25938 if test $in_tree_gas = yes; then
25939 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25940 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25942 elif test x$gcc_cv_as != x; then
25943 $as_echo ' .text
25944 addl r15 = @ltoffx(x#), gp
25946 ld8.mov r16 = [r15], x#' > conftest.s
25947 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25949 (eval $ac_try) 2>&5
25950 ac_status=$?
25951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25952 test $ac_status = 0; }; }
25953 then
25954 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25955 else
25956 echo "configure: failed program was" >&5
25957 cat conftest.s >&5
25959 rm -f conftest.o conftest.s
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25963 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25964 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25966 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25972 powerpc*-*-*)
25974 case $target in
25975 *-*-darwin*)
25976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25977 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25978 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25979 $as_echo_n "(cached) " >&6
25980 else
25981 gcc_cv_as_machine_directive=no
25982 if test x$gcc_cv_as != x; then
25983 $as_echo ' .machine ppc7400' > conftest.s
25984 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25986 (eval $ac_try) 2>&5
25987 ac_status=$?
25988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25989 test $ac_status = 0; }; }
25990 then
25991 gcc_cv_as_machine_directive=yes
25992 else
25993 echo "configure: failed program was" >&5
25994 cat conftest.s >&5
25996 rm -f conftest.o conftest.s
25999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26000 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26002 if test x$gcc_cv_as_machine_directive != xyes; then
26003 echo "*** This target requires an assembler supporting \".machine\"" >&2
26004 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
26005 test x$build = x$target && exit 1
26008 esac
26010 case $target in
26011 *-*-aix*) conftest_s=' .machine "pwr5"
26012 .csect .text[PR]
26013 mfcr 3,128';;
26014 *-*-darwin*) conftest_s=' .text
26015 mfcr r3,128';;
26016 *) conftest_s=' .machine power4
26017 .text
26018 mfcr 3,128';;
26019 esac
26021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26022 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26023 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26024 $as_echo_n "(cached) " >&6
26025 else
26026 gcc_cv_as_powerpc_mfcrf=no
26027 if test $in_tree_gas = yes; then
26028 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26029 then gcc_cv_as_powerpc_mfcrf=yes
26031 elif test x$gcc_cv_as != x; then
26032 $as_echo "$conftest_s" > conftest.s
26033 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26035 (eval $ac_try) 2>&5
26036 ac_status=$?
26037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26038 test $ac_status = 0; }; }
26039 then
26040 gcc_cv_as_powerpc_mfcrf=yes
26041 else
26042 echo "configure: failed program was" >&5
26043 cat conftest.s >&5
26045 rm -f conftest.o conftest.s
26048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26049 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26050 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26052 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26056 case $target in
26057 *-*-aix*) conftest_s=' .machine "pwr5"
26058 .csect .text[PR]
26059 popcntb 3,3';;
26060 *) conftest_s=' .machine power5
26061 .text
26062 popcntb 3,3';;
26063 esac
26065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26066 $as_echo_n "checking assembler for popcntb support... " >&6; }
26067 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26068 $as_echo_n "(cached) " >&6
26069 else
26070 gcc_cv_as_powerpc_popcntb=no
26071 if test $in_tree_gas = yes; then
26072 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26073 then gcc_cv_as_powerpc_popcntb=yes
26075 elif test x$gcc_cv_as != x; then
26076 $as_echo "$conftest_s" > conftest.s
26077 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26079 (eval $ac_try) 2>&5
26080 ac_status=$?
26081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26082 test $ac_status = 0; }; }
26083 then
26084 gcc_cv_as_powerpc_popcntb=yes
26085 else
26086 echo "configure: failed program was" >&5
26087 cat conftest.s >&5
26089 rm -f conftest.o conftest.s
26092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26093 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26094 if test $gcc_cv_as_powerpc_popcntb = yes; then
26096 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26100 case $target in
26101 *-*-aix*) conftest_s=' .machine "pwr5x"
26102 .csect .text[PR]
26103 frin 1,1';;
26104 *) conftest_s=' .machine power5
26105 .text
26106 frin 1,1';;
26107 esac
26109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26110 $as_echo_n "checking assembler for fp round support... " >&6; }
26111 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26112 $as_echo_n "(cached) " >&6
26113 else
26114 gcc_cv_as_powerpc_fprnd=no
26115 if test $in_tree_gas = yes; then
26116 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26117 then gcc_cv_as_powerpc_fprnd=yes
26119 elif test x$gcc_cv_as != x; then
26120 $as_echo "$conftest_s" > conftest.s
26121 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26123 (eval $ac_try) 2>&5
26124 ac_status=$?
26125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26126 test $ac_status = 0; }; }
26127 then
26128 gcc_cv_as_powerpc_fprnd=yes
26129 else
26130 echo "configure: failed program was" >&5
26131 cat conftest.s >&5
26133 rm -f conftest.o conftest.s
26136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26137 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26138 if test $gcc_cv_as_powerpc_fprnd = yes; then
26140 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26144 case $target in
26145 *-*-aix*) conftest_s=' .machine "pwr6"
26146 .csect .text[PR]
26147 mffgpr 1,3';;
26148 *) conftest_s=' .machine power6
26149 .text
26150 mffgpr 1,3';;
26151 esac
26153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26154 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26155 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26156 $as_echo_n "(cached) " >&6
26157 else
26158 gcc_cv_as_powerpc_mfpgpr=no
26159 if test $in_tree_gas = yes; then
26160 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26161 then gcc_cv_as_powerpc_mfpgpr=yes
26163 elif test x$gcc_cv_as != x; then
26164 $as_echo "$conftest_s" > conftest.s
26165 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26167 (eval $ac_try) 2>&5
26168 ac_status=$?
26169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26170 test $ac_status = 0; }; }
26171 then
26172 gcc_cv_as_powerpc_mfpgpr=yes
26173 else
26174 echo "configure: failed program was" >&5
26175 cat conftest.s >&5
26177 rm -f conftest.o conftest.s
26180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26181 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26182 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26184 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26188 case $target in
26189 *-*-aix*) conftest_s=' .csect .text[PR]
26190 LCF..0:
26191 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26192 *-*-darwin*)
26193 conftest_s=' .text
26194 LCF0:
26195 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26196 *) conftest_s=' .text
26197 .LCF0:
26198 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26199 esac
26201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26202 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26203 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26204 $as_echo_n "(cached) " >&6
26205 else
26206 gcc_cv_as_powerpc_rel16=no
26207 if test $in_tree_gas = yes; then
26208 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26209 then gcc_cv_as_powerpc_rel16=yes
26211 elif test x$gcc_cv_as != x; then
26212 $as_echo "$conftest_s" > conftest.s
26213 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26215 (eval $ac_try) 2>&5
26216 ac_status=$?
26217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26218 test $ac_status = 0; }; }
26219 then
26220 gcc_cv_as_powerpc_rel16=yes
26221 else
26222 echo "configure: failed program was" >&5
26223 cat conftest.s >&5
26225 rm -f conftest.o conftest.s
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26229 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26230 if test $gcc_cv_as_powerpc_rel16 = yes; then
26232 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26236 case $target in
26237 *-*-aix*) conftest_s=' .machine "pwr6"
26238 .csect .text[PR]
26239 cmpb 3,4,5';;
26240 *) conftest_s=' .machine power6
26241 .text
26242 cmpb 3,4,5';;
26243 esac
26245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26246 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26247 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26248 $as_echo_n "(cached) " >&6
26249 else
26250 gcc_cv_as_powerpc_cmpb=no
26251 if test $in_tree_gas = yes; then
26252 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26253 then gcc_cv_as_powerpc_cmpb=yes
26255 elif test x$gcc_cv_as != x; then
26256 $as_echo "$conftest_s" > conftest.s
26257 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26259 (eval $ac_try) 2>&5
26260 ac_status=$?
26261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26262 test $ac_status = 0; }; }
26263 then
26264 gcc_cv_as_powerpc_cmpb=yes
26265 else
26266 echo "configure: failed program was" >&5
26267 cat conftest.s >&5
26269 rm -f conftest.o conftest.s
26272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26273 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26274 if test $gcc_cv_as_powerpc_cmpb = yes; then
26276 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26280 case $target in
26281 *-*-aix*) conftest_s=' .machine "pwr6"
26282 .csect .text[PR]
26283 dadd 1,2,3';;
26284 *) conftest_s=' .machine power6
26285 .text
26286 dadd 1,2,3';;
26287 esac
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26290 $as_echo_n "checking assembler for decimal float support... " >&6; }
26291 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26292 $as_echo_n "(cached) " >&6
26293 else
26294 gcc_cv_as_powerpc_dfp=no
26295 if test $in_tree_gas = yes; then
26296 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26297 then gcc_cv_as_powerpc_dfp=yes
26299 elif test x$gcc_cv_as != x; then
26300 $as_echo "$conftest_s" > conftest.s
26301 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26303 (eval $ac_try) 2>&5
26304 ac_status=$?
26305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26306 test $ac_status = 0; }; }
26307 then
26308 gcc_cv_as_powerpc_dfp=yes
26309 else
26310 echo "configure: failed program was" >&5
26311 cat conftest.s >&5
26313 rm -f conftest.o conftest.s
26316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26317 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26318 if test $gcc_cv_as_powerpc_dfp = yes; then
26320 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26324 case $target in
26325 *-*-aix*) conftest_s=' .machine "pwr7"
26326 .csect .text[PR]
26327 lxvd2x 1,2,3';;
26328 *) conftest_s=' .machine power7
26329 .text
26330 lxvd2x 1,2,3';;
26331 esac
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26334 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26335 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26336 $as_echo_n "(cached) " >&6
26337 else
26338 gcc_cv_as_powerpc_vsx=no
26339 if test $in_tree_gas = yes; then
26340 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26341 then gcc_cv_as_powerpc_vsx=yes
26343 elif test x$gcc_cv_as != x; then
26344 $as_echo "$conftest_s" > conftest.s
26345 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26347 (eval $ac_try) 2>&5
26348 ac_status=$?
26349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26350 test $ac_status = 0; }; }
26351 then
26352 gcc_cv_as_powerpc_vsx=yes
26353 else
26354 echo "configure: failed program was" >&5
26355 cat conftest.s >&5
26357 rm -f conftest.o conftest.s
26360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26361 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26362 if test $gcc_cv_as_powerpc_vsx = yes; then
26364 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26368 case $target in
26369 *-*-aix*) conftest_s=' .machine "pwr7"
26370 .csect .text[PR]
26371 popcntd 3,3';;
26372 *) conftest_s=' .machine power7
26373 .text
26374 popcntd 3,3';;
26375 esac
26377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26378 $as_echo_n "checking assembler for popcntd support... " >&6; }
26379 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26380 $as_echo_n "(cached) " >&6
26381 else
26382 gcc_cv_as_powerpc_popcntd=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_popcntd=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 -a32 -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_popcntd=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_popcntd" >&5
26405 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26406 if test $gcc_cv_as_powerpc_popcntd = yes; then
26408 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26412 case $target in
26413 *-*-aix*) conftest_s=' .machine "pwr8"
26414 .csect .text[PR]';;
26415 *) conftest_s=' .machine power8
26416 .text';;
26417 esac
26419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26420 $as_echo_n "checking assembler for power8 support... " >&6; }
26421 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26422 $as_echo_n "(cached) " >&6
26423 else
26424 gcc_cv_as_powerpc_power8=no
26425 if test $in_tree_gas = yes; then
26426 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26427 then gcc_cv_as_powerpc_power8=yes
26429 elif test x$gcc_cv_as != x; then
26430 $as_echo "$conftest_s" > conftest.s
26431 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26433 (eval $ac_try) 2>&5
26434 ac_status=$?
26435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26436 test $ac_status = 0; }; }
26437 then
26438 gcc_cv_as_powerpc_power8=yes
26439 else
26440 echo "configure: failed program was" >&5
26441 cat conftest.s >&5
26443 rm -f conftest.o conftest.s
26446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26447 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26448 if test $gcc_cv_as_powerpc_power8 = yes; then
26450 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26454 case $target in
26455 *-*-aix*) conftest_s=' .machine "pwr9"
26456 .csect .text[PR]';;
26457 *) conftest_s=' .machine power9
26458 .text';;
26459 esac
26461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26462 $as_echo_n "checking assembler for power9 support... " >&6; }
26463 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26464 $as_echo_n "(cached) " >&6
26465 else
26466 gcc_cv_as_powerpc_power9=no
26467 if test $in_tree_gas = yes; then
26468 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26469 then gcc_cv_as_powerpc_power9=yes
26471 elif test x$gcc_cv_as != x; then
26472 $as_echo "$conftest_s" > conftest.s
26473 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26475 (eval $ac_try) 2>&5
26476 ac_status=$?
26477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26478 test $ac_status = 0; }; }
26479 then
26480 gcc_cv_as_powerpc_power9=yes
26481 else
26482 echo "configure: failed program was" >&5
26483 cat conftest.s >&5
26485 rm -f conftest.o conftest.s
26488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26489 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26490 if test $gcc_cv_as_powerpc_power9 = yes; then
26492 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26496 case $target in
26497 *-*-aix*) conftest_s=' .csect .text[PR]
26498 lwsync';;
26499 *) conftest_s=' .text
26500 lwsync';;
26501 esac
26503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26504 $as_echo_n "checking assembler for lwsync support... " >&6; }
26505 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26506 $as_echo_n "(cached) " >&6
26507 else
26508 gcc_cv_as_powerpc_lwsync=no
26509 if test $in_tree_gas = yes; then
26510 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26511 then gcc_cv_as_powerpc_lwsync=yes
26513 elif test x$gcc_cv_as != x; then
26514 $as_echo "$conftest_s" > conftest.s
26515 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26517 (eval $ac_try) 2>&5
26518 ac_status=$?
26519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26520 test $ac_status = 0; }; }
26521 then
26522 gcc_cv_as_powerpc_lwsync=yes
26523 else
26524 echo "configure: failed program was" >&5
26525 cat conftest.s >&5
26527 rm -f conftest.o conftest.s
26530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26531 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26532 if test $gcc_cv_as_powerpc_lwsync = yes; then
26534 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26538 case $target in
26539 *-*-aix*) conftest_s=' .machine "476"
26540 .csect .text[PR]
26541 dci 0';;
26542 *) conftest_s=' .machine "476"
26543 .text
26544 dci 0';;
26545 esac
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26548 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26549 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26550 $as_echo_n "(cached) " >&6
26551 else
26552 gcc_cv_as_powerpc_dci=no
26553 if test $in_tree_gas = yes; then
26554 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26555 then gcc_cv_as_powerpc_dci=yes
26557 elif test x$gcc_cv_as != x; then
26558 $as_echo "$conftest_s" > conftest.s
26559 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26561 (eval $ac_try) 2>&5
26562 ac_status=$?
26563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26564 test $ac_status = 0; }; }
26565 then
26566 gcc_cv_as_powerpc_dci=yes
26567 else
26568 echo "configure: failed program was" >&5
26569 cat conftest.s >&5
26571 rm -f conftest.o conftest.s
26574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26575 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26576 if test $gcc_cv_as_powerpc_dci = yes; then
26578 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26583 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26584 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26585 $as_echo_n "(cached) " >&6
26586 else
26587 gcc_cv_as_powerpc_gnu_attribute=no
26588 if test $in_tree_gas = yes; then
26589 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26590 then gcc_cv_as_powerpc_gnu_attribute=yes
26592 elif test x$gcc_cv_as != x; then
26593 $as_echo '.gnu_attribute 4,1' > conftest.s
26594 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26596 (eval $ac_try) 2>&5
26597 ac_status=$?
26598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26599 test $ac_status = 0; }; }
26600 then
26601 gcc_cv_as_powerpc_gnu_attribute=yes
26602 else
26603 echo "configure: failed program was" >&5
26604 cat conftest.s >&5
26606 rm -f conftest.o conftest.s
26609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26610 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26611 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26613 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26618 $as_echo_n "checking assembler for tls marker support... " >&6; }
26619 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26620 $as_echo_n "(cached) " >&6
26621 else
26622 gcc_cv_as_powerpc_tls_markers=no
26623 if test $in_tree_gas = yes; then
26624 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26625 then gcc_cv_as_powerpc_tls_markers=yes
26627 elif test x$gcc_cv_as != x; then
26628 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26629 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26631 (eval $ac_try) 2>&5
26632 ac_status=$?
26633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26634 test $ac_status = 0; }; }
26635 then
26636 gcc_cv_as_powerpc_tls_markers=yes
26637 else
26638 echo "configure: failed program was" >&5
26639 cat conftest.s >&5
26641 rm -f conftest.o conftest.s
26644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26645 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26646 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26648 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26653 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26654 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26655 $as_echo_n "(cached) " >&6
26656 else
26657 gcc_cv_as_powerpc_entry_markers=no
26658 if test $in_tree_gas = yes; then
26659 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26660 then gcc_cv_as_powerpc_entry_markers=yes
26662 elif test x$gcc_cv_as != x; then
26663 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26664 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26666 (eval $ac_try) 2>&5
26667 ac_status=$?
26668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26669 test $ac_status = 0; }; }
26670 then
26671 gcc_cv_as_powerpc_entry_markers=yes
26672 else
26673 echo "configure: failed program was" >&5
26674 cat conftest.s >&5
26676 rm -f conftest.o conftest.s
26679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26680 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26681 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26683 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26687 case $target in
26688 *-*-aix*)
26689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26690 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26691 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26692 $as_echo_n "(cached) " >&6
26693 else
26694 gcc_cv_as_aix_ref=no
26695 if test $in_tree_gas = yes; then
26696 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26697 then gcc_cv_as_aix_ref=yes
26699 elif test x$gcc_cv_as != x; then
26700 $as_echo ' .csect stuff[rw]
26701 stuff:
26702 .long 1
26703 .extern sym
26704 .ref sym
26705 ' > conftest.s
26706 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26708 (eval $ac_try) 2>&5
26709 ac_status=$?
26710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26711 test $ac_status = 0; }; }
26712 then
26713 gcc_cv_as_aix_ref=yes
26714 else
26715 echo "configure: failed program was" >&5
26716 cat conftest.s >&5
26718 rm -f conftest.o conftest.s
26721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26722 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26723 if test $gcc_cv_as_aix_ref = yes; then
26725 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26730 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26731 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26732 $as_echo_n "(cached) " >&6
26733 else
26734 gcc_cv_as_aix_dwloc=no
26735 if test $in_tree_gas = yes; then
26736 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26737 then gcc_cv_as_aix_dwloc=yes
26739 elif test x$gcc_cv_as != x; then
26740 $as_echo ' .dwsect 0xA0000
26741 Lframe..0:
26742 .vbyte 4,Lframe..0:
26743 ' > conftest.s
26744 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26745 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26746 (eval $ac_try) 2>&5
26747 ac_status=$?
26748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26749 test $ac_status = 0; }; }
26750 then
26751 gcc_cv_as_aix_dwloc=yes
26752 else
26753 echo "configure: failed program was" >&5
26754 cat conftest.s >&5
26756 rm -f conftest.o conftest.s
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26760 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26761 if test $gcc_cv_as_aix_dwloc = yes; then
26763 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26767 esac
26770 mips*-*-*)
26771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26772 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26773 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26774 $as_echo_n "(cached) " >&6
26775 else
26776 gcc_cv_as_mips_explicit_relocs=no
26777 if test $in_tree_gas = yes; then
26778 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26779 then gcc_cv_as_mips_explicit_relocs=yes
26781 elif test x$gcc_cv_as != x; then
26782 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26783 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26785 (eval $ac_try) 2>&5
26786 ac_status=$?
26787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26788 test $ac_status = 0; }; }
26789 then
26790 gcc_cv_as_mips_explicit_relocs=yes
26791 else
26792 echo "configure: failed program was" >&5
26793 cat conftest.s >&5
26795 rm -f conftest.o conftest.s
26798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26799 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26800 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26801 if test x$target_cpu_default = x
26802 then target_cpu_default=MASK_EXPLICIT_RELOCS
26803 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26808 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26809 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26810 $as_echo_n "(cached) " >&6
26811 else
26812 gcc_cv_as_mips_no_shared=no
26813 if test $in_tree_gas = yes; then
26814 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26815 then gcc_cv_as_mips_no_shared=yes
26817 elif test x$gcc_cv_as != x; then
26818 $as_echo 'nop' > conftest.s
26819 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26821 (eval $ac_try) 2>&5
26822 ac_status=$?
26823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26824 test $ac_status = 0; }; }
26825 then
26826 gcc_cv_as_mips_no_shared=yes
26827 else
26828 echo "configure: failed program was" >&5
26829 cat conftest.s >&5
26831 rm -f conftest.o conftest.s
26834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26835 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26836 if test $gcc_cv_as_mips_no_shared = yes; then
26838 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26843 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26844 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26845 $as_echo_n "(cached) " >&6
26846 else
26847 gcc_cv_as_mips_gnu_attribute=no
26848 if test $in_tree_gas = yes; then
26849 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26850 then gcc_cv_as_mips_gnu_attribute=yes
26852 elif test x$gcc_cv_as != x; then
26853 $as_echo '.gnu_attribute 4,1' > conftest.s
26854 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26856 (eval $ac_try) 2>&5
26857 ac_status=$?
26858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26859 test $ac_status = 0; }; }
26860 then
26861 gcc_cv_as_mips_gnu_attribute=yes
26862 else
26863 echo "configure: failed program was" >&5
26864 cat conftest.s >&5
26866 rm -f conftest.o conftest.s
26869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26870 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26871 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26873 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26878 $as_echo_n "checking assembler for .module support... " >&6; }
26879 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26880 $as_echo_n "(cached) " >&6
26881 else
26882 gcc_cv_as_mips_dot_module=no
26883 if test x$gcc_cv_as != x; then
26884 $as_echo '.module mips2
26885 .module fp=xx' > conftest.s
26886 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26888 (eval $ac_try) 2>&5
26889 ac_status=$?
26890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26891 test $ac_status = 0; }; }
26892 then
26893 gcc_cv_as_mips_dot_module=yes
26894 else
26895 echo "configure: failed program was" >&5
26896 cat conftest.s >&5
26898 rm -f conftest.o conftest.s
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26902 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26903 if test $gcc_cv_as_mips_dot_module = yes; then
26905 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26908 if test x$gcc_cv_as_mips_dot_module = xno \
26909 && test x$with_fp_32 != x; then
26910 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26914 $as_echo_n "checking assembler for .micromips support... " >&6; }
26915 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26916 $as_echo_n "(cached) " >&6
26917 else
26918 gcc_cv_as_micromips_support=no
26919 if test x$gcc_cv_as != x; then
26920 $as_echo '.set micromips' > conftest.s
26921 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26923 (eval $ac_try) 2>&5
26924 ac_status=$?
26925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26926 test $ac_status = 0; }; }
26927 then
26928 gcc_cv_as_micromips_support=yes
26929 else
26930 echo "configure: failed program was" >&5
26931 cat conftest.s >&5
26933 rm -f conftest.o conftest.s
26936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26937 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26938 if test $gcc_cv_as_micromips_support = yes; then
26940 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26945 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26946 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26947 $as_echo_n "(cached) " >&6
26948 else
26949 gcc_cv_as_mips_dtprelword=no
26950 if test $in_tree_gas = yes; then
26951 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26952 then gcc_cv_as_mips_dtprelword=yes
26954 elif test x$gcc_cv_as != x; then
26955 $as_echo '.section .tdata,"awT",@progbits
26957 .word 2
26958 .text
26959 .dtprelword x+0x8000' > conftest.s
26960 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26962 (eval $ac_try) 2>&5
26963 ac_status=$?
26964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26965 test $ac_status = 0; }; }
26966 then
26967 gcc_cv_as_mips_dtprelword=yes
26968 else
26969 echo "configure: failed program was" >&5
26970 cat conftest.s >&5
26972 rm -f conftest.o conftest.s
26975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26976 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26977 if test $gcc_cv_as_mips_dtprelword = yes; then
26979 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26984 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26985 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26986 $as_echo_n "(cached) " >&6
26987 else
26988 gcc_cv_as_mips_dspr1_mult=no
26989 if test x$gcc_cv_as != x; then
26990 $as_echo ' .set mips32r2
26991 .set nodspr2
26992 .set dsp
26993 madd $ac3,$4,$5
26994 maddu $ac3,$4,$5
26995 msub $ac3,$4,$5
26996 msubu $ac3,$4,$5
26997 mult $ac3,$4,$5
26998 multu $ac3,$4,$5' > conftest.s
26999 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27001 (eval $ac_try) 2>&5
27002 ac_status=$?
27003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27004 test $ac_status = 0; }; }
27005 then
27006 gcc_cv_as_mips_dspr1_mult=yes
27007 else
27008 echo "configure: failed program was" >&5
27009 cat conftest.s >&5
27011 rm -f conftest.o conftest.s
27014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27015 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27016 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27018 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27023 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27024 gcc_cv_as_ld_jalr_reloc=no
27025 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27026 if test $in_tree_ld = yes ; then
27027 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 \
27028 && test $in_tree_ld_is_elf = yes; then
27029 gcc_cv_as_ld_jalr_reloc=yes
27031 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
27032 echo ' .ent x' > conftest.s
27033 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27034 echo ' lw $25,%call16(y)($28)' >> conftest.s
27035 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27036 echo '1: jalr $25' >> conftest.s
27037 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27038 echo '1: jalr $25' >> conftest.s
27039 echo ' .end x' >> conftest.s
27040 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
27041 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
27042 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
27043 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
27044 gcc_cv_as_ld_jalr_reloc=yes
27047 rm -f conftest.*
27050 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27051 if test x$target_cpu_default = x; then
27052 target_cpu_default=MASK_RELAX_PIC_CALLS
27053 else
27054 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27058 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27061 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27062 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27063 $as_echo_n "(cached) " >&6
27064 else
27065 gcc_cv_ld_mips_personality_relaxation=no
27066 if test $in_tree_ld = yes ; then
27067 if test "$gcc_cv_gld_major_version" -eq 2 \
27068 -a "$gcc_cv_gld_minor_version" -ge 21 \
27069 -o "$gcc_cv_gld_major_version" -gt 2; then
27070 gcc_cv_ld_mips_personality_relaxation=yes
27072 elif test x$gcc_cv_as != x \
27073 -a x$gcc_cv_ld != x \
27074 -a x$gcc_cv_readelf != x ; then
27075 cat > conftest.s <<EOF
27076 .cfi_startproc
27077 .cfi_personality 0x80,indirect_ptr
27078 .ent test
27079 test:
27081 .end test
27082 .cfi_endproc
27084 .section .data,"aw",@progbits
27085 indirect_ptr:
27086 .dc.a personality
27088 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27089 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27090 if $gcc_cv_readelf -d conftest 2>&1 \
27091 | grep TEXTREL > /dev/null 2>&1; then
27093 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27094 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27096 else
27097 gcc_cv_ld_mips_personality_relaxation=yes
27101 rm -f conftest.s conftest.o conftest
27103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27104 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27105 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27107 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27112 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27113 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27114 $as_echo_n "(cached) " >&6
27115 else
27116 gcc_cv_as_mips_nan=no
27117 if test x$gcc_cv_as != x; then
27118 $as_echo '' > conftest.s
27119 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27121 (eval $ac_try) 2>&5
27122 ac_status=$?
27123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27124 test $ac_status = 0; }; }
27125 then
27126 gcc_cv_as_mips_nan=yes
27127 else
27128 echo "configure: failed program was" >&5
27129 cat conftest.s >&5
27131 rm -f conftest.o conftest.s
27134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27135 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27136 if test $gcc_cv_as_mips_nan = yes; then
27138 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27141 if test x$gcc_cv_as_mips_nan = xno \
27142 && test x$with_nan != x; then
27143 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27146 s390*-*-*)
27147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27148 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27149 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27150 $as_echo_n "(cached) " >&6
27151 else
27152 gcc_cv_as_s390_gnu_attribute=no
27153 if test $in_tree_gas = yes; then
27154 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27155 then gcc_cv_as_s390_gnu_attribute=yes
27157 elif test x$gcc_cv_as != x; then
27158 $as_echo '.gnu_attribute 8,1' > conftest.s
27159 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27161 (eval $ac_try) 2>&5
27162 ac_status=$?
27163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27164 test $ac_status = 0; }; }
27165 then
27166 gcc_cv_as_s390_gnu_attribute=yes
27167 else
27168 echo "configure: failed program was" >&5
27169 cat conftest.s >&5
27171 rm -f conftest.o conftest.s
27174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27175 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27176 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27178 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27182 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27183 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27184 $as_echo_n "(cached) " >&6
27185 else
27186 gcc_cv_as_s390_machine_machinemode=no
27187 if test $in_tree_gas = yes; then
27188 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27189 then gcc_cv_as_s390_machine_machinemode=yes
27191 elif test x$gcc_cv_as != x; then
27192 $as_echo ' .machinemode push
27193 .machinemode pop
27194 .machine push
27195 .machine pop' > conftest.s
27196 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27198 (eval $ac_try) 2>&5
27199 ac_status=$?
27200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27201 test $ac_status = 0; }; }
27202 then
27203 gcc_cv_as_s390_machine_machinemode=yes
27204 else
27205 echo "configure: failed program was" >&5
27206 cat conftest.s >&5
27208 rm -f conftest.o conftest.s
27211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27212 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27213 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27215 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27219 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27220 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27221 $as_echo_n "(cached) " >&6
27222 else
27223 gcc_cv_as_s390_architecture_modifiers=no
27224 if test $in_tree_gas = yes; then
27225 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27226 then gcc_cv_as_s390_architecture_modifiers=yes
27228 elif test x$gcc_cv_as != x; then
27229 $as_echo ' .machine z13+vx ' > conftest.s
27230 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27232 (eval $ac_try) 2>&5
27233 ac_status=$?
27234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27235 test $ac_status = 0; }; }
27236 then
27237 gcc_cv_as_s390_architecture_modifiers=yes
27238 else
27239 echo "configure: failed program was" >&5
27240 cat conftest.s >&5
27242 rm -f conftest.o conftest.s
27245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27246 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27247 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27249 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27253 esac
27255 # Mips and HP-UX need the GNU assembler.
27256 # Linux on IA64 might be able to use the Intel assembler.
27258 case "$target" in
27259 mips*-*-* | *-*-hpux* )
27260 if test x$gas_flag = xyes \
27261 || test x"$host" != x"$build" \
27262 || test ! -x "$gcc_cv_as" \
27263 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27265 else
27266 echo "*** This configuration requires the GNU assembler" >&2
27267 exit 1
27270 esac
27272 # ??? Not all targets support dwarf2 debug_line, even within a version
27273 # of gas. Moreover, we need to emit a valid instruction to trigger any
27274 # info to the output file. So, as supported targets are added to gas 2.11,
27275 # add some instruction here to (also) show we expect this might work.
27276 # ??? Once 2.11 is released, probably need to add first known working
27277 # version to the per-target configury.
27278 case "$cpu_type" in
27279 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
27280 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
27281 | visium | xstormy16 | xtensa)
27282 insn="nop"
27284 ia64 | s390)
27285 insn="nop 0"
27287 mmix)
27288 insn="swym 0"
27290 esac
27291 if test x"$insn" != x; then
27292 conftest_s="\
27293 .file 1 \"conftest.s\"
27294 .loc 1 3 0
27295 $insn"
27296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27297 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27298 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27299 $as_echo_n "(cached) " >&6
27300 else
27301 gcc_cv_as_dwarf2_debug_line=no
27302 if test $in_tree_gas = yes; then
27303 if test $in_tree_gas_is_elf = yes \
27304 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27305 then gcc_cv_as_dwarf2_debug_line=yes
27307 elif test x$gcc_cv_as != x; then
27308 $as_echo "$conftest_s" > conftest.s
27309 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27311 (eval $ac_try) 2>&5
27312 ac_status=$?
27313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27314 test $ac_status = 0; }; }
27315 then
27316 if test x$gcc_cv_objdump != x \
27317 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27318 | grep debug_line > /dev/null 2>&1; then
27319 gcc_cv_as_dwarf2_debug_line=yes
27321 else
27322 echo "configure: failed program was" >&5
27323 cat conftest.s >&5
27325 rm -f conftest.o conftest.s
27328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27329 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27332 # The .debug_line file table must be in the exact order that
27333 # we specified the files, since these indices are also used
27334 # by DW_AT_decl_file. Approximate this test by testing if
27335 # the assembler bitches if the same index is assigned twice.
27336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27337 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27338 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27339 $as_echo_n "(cached) " >&6
27340 else
27341 gcc_cv_as_dwarf2_file_buggy=no
27342 if test x$gcc_cv_as != x; then
27343 $as_echo ' .file 1 "foo.s"
27344 .file 1 "bar.s"' > conftest.s
27345 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27347 (eval $ac_try) 2>&5
27348 ac_status=$?
27349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27350 test $ac_status = 0; }; }
27351 then
27352 gcc_cv_as_dwarf2_file_buggy=yes
27353 else
27354 echo "configure: failed program was" >&5
27355 cat conftest.s >&5
27357 rm -f conftest.o conftest.s
27360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27361 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27364 if test $gcc_cv_as_dwarf2_debug_line = yes \
27365 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27367 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27372 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27373 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27374 $as_echo_n "(cached) " >&6
27375 else
27376 gcc_cv_as_gdwarf2_flag=no
27377 if test $in_tree_gas = yes; then
27378 if test $in_tree_gas_is_elf = yes \
27379 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27380 then gcc_cv_as_gdwarf2_flag=yes
27382 elif test x$gcc_cv_as != x; then
27383 $as_echo "$insn" > conftest.s
27384 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27386 (eval $ac_try) 2>&5
27387 ac_status=$?
27388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27389 test $ac_status = 0; }; }
27390 then
27391 gcc_cv_as_gdwarf2_flag=yes
27392 else
27393 echo "configure: failed program was" >&5
27394 cat conftest.s >&5
27396 rm -f conftest.o conftest.s
27399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27400 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27401 if test $gcc_cv_as_gdwarf2_flag = yes; then
27403 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27408 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27409 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27410 $as_echo_n "(cached) " >&6
27411 else
27412 gcc_cv_as_gstabs_flag=no
27413 if test $in_tree_gas = yes; then
27414 if test $in_tree_gas_is_elf = yes \
27415 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27416 then gcc_cv_as_gstabs_flag=yes
27418 elif test x$gcc_cv_as != x; then
27419 $as_echo "$insn" > conftest.s
27420 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27422 (eval $ac_try) 2>&5
27423 ac_status=$?
27424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27425 test $ac_status = 0; }; }
27426 then
27427 gcc_cv_as_gstabs_flag=yes
27428 else
27429 echo "configure: failed program was" >&5
27430 cat conftest.s >&5
27432 rm -f conftest.o conftest.s
27435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27436 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27437 if test $gcc_cv_as_gstabs_flag = yes; then
27439 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27444 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27445 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27446 $as_echo_n "(cached) " >&6
27447 else
27448 gcc_cv_as_debug_prefix_map_flag=no
27449 if test $in_tree_gas = yes; then
27450 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27451 then gcc_cv_as_debug_prefix_map_flag=yes
27453 elif test x$gcc_cv_as != x; then
27454 $as_echo "$insn" > conftest.s
27455 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27457 (eval $ac_try) 2>&5
27458 ac_status=$?
27459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27460 test $ac_status = 0; }; }
27461 then
27462 gcc_cv_as_debug_prefix_map_flag=yes
27463 else
27464 echo "configure: failed program was" >&5
27465 cat conftest.s >&5
27467 rm -f conftest.o conftest.s
27470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27471 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27472 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27474 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27480 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27481 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27482 $as_echo_n "(cached) " >&6
27483 else
27484 gcc_cv_as_compress_debug=no
27485 if test x$gcc_cv_as != x; then
27486 $as_echo '' > conftest.s
27487 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
27488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27489 (eval $ac_try) 2>&5
27490 ac_status=$?
27491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27492 test $ac_status = 0; }; }
27493 then
27494 # gas compiled without zlib cannot compress debug sections and warns
27495 # about it, but still exits successfully. So check for this, too.
27496 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27497 then
27498 gcc_cv_as_compress_debug=0
27499 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27500 then
27501 gcc_cv_as_compress_debug=1
27502 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27503 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27504 else
27505 gcc_cv_as_compress_debug=0
27506 # FIXME: Future gas versions will support ELF gABI style via
27507 # --compress-debug-sections[=type].
27509 else
27510 echo "configure: failed program was" >&5
27511 cat conftest.s >&5
27513 rm -f conftest.o conftest.s
27516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27517 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27520 cat >>confdefs.h <<_ACEOF
27521 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27522 _ACEOF
27525 cat >>confdefs.h <<_ACEOF
27526 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27527 _ACEOF
27530 cat >>confdefs.h <<_ACEOF
27531 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27532 _ACEOF
27535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27536 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27537 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27538 $as_echo_n "(cached) " >&6
27539 else
27540 gcc_cv_as_lcomm_with_alignment=no
27541 if test x$gcc_cv_as != x; then
27542 $as_echo '.lcomm bar,4,16' > conftest.s
27543 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27545 (eval $ac_try) 2>&5
27546 ac_status=$?
27547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27548 test $ac_status = 0; }; }
27549 then
27550 gcc_cv_as_lcomm_with_alignment=yes
27551 else
27552 echo "configure: failed program was" >&5
27553 cat conftest.s >&5
27555 rm -f conftest.o conftest.s
27558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27559 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27560 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27562 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27566 if test x$with_sysroot = x && test x$host = x$target \
27567 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27568 && test "$prefix" != "NONE"; then
27570 cat >>confdefs.h <<_ACEOF
27571 #define PREFIX_INCLUDE_DIR "$prefix/include"
27572 _ACEOF
27576 # Determine the version of glibc, if any, used on the target.
27577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27578 $as_echo_n "checking for target glibc version... " >&6; }
27580 # Check whether --with-glibc-version was given.
27581 if test "${with_glibc_version+set}" = set; then :
27582 withval=$with_glibc_version;
27583 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27584 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27585 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27586 else
27587 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27589 else
27591 glibc_version_major=0
27592 glibc_version_minor=0
27593 if test -f $target_header_dir/features.h \
27594 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27595 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27596 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27597 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27602 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27604 cat >>confdefs.h <<_ACEOF
27605 #define TARGET_GLIBC_MAJOR $glibc_version_major
27606 _ACEOF
27609 cat >>confdefs.h <<_ACEOF
27610 #define TARGET_GLIBC_MINOR $glibc_version_minor
27611 _ACEOF
27614 # Check whether --enable-gnu-unique-object was given.
27615 if test "${enable_gnu_unique_object+set}" = set; then :
27616 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27617 yes | no) ;;
27618 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27619 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27620 esac
27621 else
27622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27623 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27624 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27625 $as_echo_n "(cached) " >&6
27626 else
27627 gcc_cv_as_gnu_unique_object=no
27628 if test $in_tree_gas = yes; then
27629 if test $in_tree_gas_is_elf = yes \
27630 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27631 then gcc_cv_as_gnu_unique_object=yes
27633 elif test x$gcc_cv_as != x; then
27634 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27635 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27637 (eval $ac_try) 2>&5
27638 ac_status=$?
27639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27640 test $ac_status = 0; }; }
27641 then
27642 gcc_cv_as_gnu_unique_object=yes
27643 else
27644 echo "configure: failed program was" >&5
27645 cat conftest.s >&5
27647 rm -f conftest.o conftest.s
27650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27651 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27652 if test $gcc_cv_as_gnu_unique_object = yes; then
27653 # We need to unquote above to to use the definition from config.gcc.
27654 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27656 if test $glibc_version_major -gt 2 \
27657 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27658 enable_gnu_unique_object=yes
27664 if test x$enable_gnu_unique_object = xyes; then
27666 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27671 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27672 if test "${gcc_cv_as_line_zero+set}" = set; then :
27673 $as_echo_n "(cached) " >&6
27674 else
27675 gcc_cv_as_line_zero=no
27676 if test $in_tree_gas = yes; then
27677 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27678 then gcc_cv_as_line_zero=yes
27680 elif test "x$gcc_cv_as" != x; then
27681 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27682 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27684 (eval $ac_try) 2>&5
27685 ac_status=$?
27686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27687 test $ac_status = 0; }; } &&
27688 test "x`cat conftest.out`" = x
27689 then
27690 gcc_cv_as_line_zero=yes
27691 else
27692 echo "configure: failed program was" >&5
27693 cat conftest.s >&5
27694 echo "configure: error output was" >&5
27695 cat conftest.out >&5
27697 rm -f conftest.o conftest.s conftest.out
27700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27701 $as_echo "$gcc_cv_as_line_zero" >&6; }
27702 if test "x$gcc_cv_as_line_zero" = xyes; then
27704 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27709 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27710 gcc_cv_ld_eh_frame_hdr=no
27711 if test $in_tree_ld = yes ; then
27712 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 \
27713 && test $in_tree_ld_is_elf = yes; then
27714 gcc_cv_ld_eh_frame_hdr=yes
27716 elif test x$gcc_cv_ld != x; then
27717 if echo "$ld_ver" | grep GNU > /dev/null; then
27718 # Check if linker supports --eh-frame-hdr option
27719 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
27720 gcc_cv_ld_eh_frame_hdr=yes
27722 else
27723 case "$target" in
27724 *-*-solaris2*)
27725 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27726 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27727 gcc_cv_ld_eh_frame_hdr=yes
27730 esac
27734 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
27736 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27740 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27743 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27744 gcc_cv_ld_eh_frame_ciev3=no
27745 if test $in_tree_ld = yes ; then
27746 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 \
27747 && test $in_tree_ld_is_elf = yes; then
27748 gcc_cv_ld_eh_frame_ciev3=yes
27750 elif test x$gcc_cv_ld != x; then
27751 if echo "$ld_ver" | grep GNU > /dev/null; then
27752 gcc_cv_ld_eh_frame_ciev3=yes
27753 if test 0"$ld_date" -lt 20040513; then
27754 if test -n "$ld_date"; then
27755 # If there was date string, but was earlier than 2004-05-13, fail
27756 gcc_cv_ld_eh_frame_ciev3=no
27757 elif test "$ld_vers_major" -lt 2; then
27758 gcc_cv_ld_eh_frame_ciev3=no
27759 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27760 gcc_cv_ld_eh_frame_ciev3=no
27763 else
27764 case "$target" in
27765 *-*-solaris2*)
27766 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27767 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
27768 gcc_cv_ld_eh_frame_ciev3=yes
27771 esac
27775 cat >>confdefs.h <<_ACEOF
27776 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27777 _ACEOF
27779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27780 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27783 $as_echo_n "checking linker position independent executable support... " >&6; }
27784 gcc_cv_ld_pie=no
27785 if test $in_tree_ld = yes ; then
27786 case "$target" in
27787 # Full PIE support on Solaris was only introduced in gld 2.26.
27788 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
27789 *) gcc_gld_pie_min_version=15 ;;
27790 esac
27791 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 \
27792 && test $in_tree_ld_is_elf = yes; then
27793 gcc_cv_ld_pie=yes
27795 elif test x$gcc_cv_ld != x; then
27796 # Check if linker supports -pie option
27797 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27798 gcc_cv_ld_pie=yes
27799 case "$target" in
27800 *-*-solaris2*)
27801 if echo "$ld_ver" | grep GNU > /dev/null \
27802 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
27803 gcc_cv_ld_pie=no
27806 esac
27807 else
27808 case "$target" in
27809 *-*-solaris2.1[1-9]*)
27810 # Solaris 11.x and Solaris 12 added PIE support.
27811 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
27812 gcc_cv_ld_pie=yes
27815 esac
27818 if test x"$gcc_cv_ld_pie" = xyes; then
27820 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27824 $as_echo "$gcc_cv_ld_pie" >&6; }
27826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27827 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27828 gcc_cv_ld_pie_copyreloc=no
27829 if test $gcc_cv_ld_pie = yes ; then
27830 if test $in_tree_ld = yes ; then
27831 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
27832 gcc_cv_ld_pie_copyreloc=yes
27834 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27835 # Check if linker supports -pie option with copy reloc
27836 case "$target" in
27837 i?86-*-linux* | x86_64-*-linux*)
27838 cat > conftest1.s <<EOF
27839 .globl a_glob
27840 .data
27841 .type a_glob, @object
27842 .size a_glob, 4
27843 a_glob:
27844 .long 2
27846 cat > conftest2.s <<EOF
27847 .text
27848 .globl main
27849 .type main, @function
27850 main:
27851 movl %eax, a_glob(%rip)
27852 .size main, .-main
27853 .globl ptr
27854 .section .data.rel,"aw",@progbits
27855 .type ptr, @object
27856 ptr:
27857 .quad a_glob
27859 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27860 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
27861 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27862 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
27863 gcc_cv_ld_pie_copyreloc=yes
27865 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27867 esac
27871 cat >>confdefs.h <<_ACEOF
27872 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27873 _ACEOF
27875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27876 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27879 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27880 gcc_cv_ld_eh_gc_sections=no
27881 if test $in_tree_ld = yes ; then
27882 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 \
27883 && test $in_tree_ld_is_elf = yes; then
27884 gcc_cv_ld_eh_gc_sections=yes
27886 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27887 cat > conftest.s <<EOF
27888 .section .text
27889 .globl _start
27890 .type _start, @function
27891 _start:
27892 .long foo
27893 .size _start, .-_start
27894 .section .text.foo,"ax",@progbits
27895 .type foo, @function
27896 foo:
27897 .long 0
27898 .size foo, .-foo
27899 .section .gcc_except_table.foo,"a",@progbits
27900 .L0:
27901 .long 0
27902 .section .eh_frame,"a",@progbits
27903 .long .L0
27905 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27906 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27907 | grep "gc-sections option ignored" > /dev/null; then
27908 gcc_cv_ld_eh_gc_sections=no
27909 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27910 | grep gcc_except_table > /dev/null; then
27911 gcc_cv_ld_eh_gc_sections=yes
27912 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27913 if test x$gcc_cv_as_comdat_group != xyes; then
27914 gcc_cv_ld_eh_gc_sections=no
27915 cat > conftest.s <<EOF
27916 .section .text
27917 .globl _start
27918 .type _start, @function
27919 _start:
27920 .long foo
27921 .size _start, .-_start
27922 .section .gnu.linkonce.t.foo,"ax",@progbits
27923 .type foo, @function
27924 foo:
27925 .long 0
27926 .size foo, .-foo
27927 .section .gcc_except_table.foo,"a",@progbits
27928 .L0:
27929 .long 0
27930 .section .eh_frame,"a",@progbits
27931 .long .L0
27933 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27934 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27935 | grep "gc-sections option ignored" > /dev/null; then
27936 gcc_cv_ld_eh_gc_sections=no
27937 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27938 | grep gcc_except_table > /dev/null; then
27939 gcc_cv_ld_eh_gc_sections=yes
27945 rm -f conftest.s conftest.o conftest
27947 case "$target" in
27948 hppa*-*-linux*)
27949 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27950 gcc_cv_ld_eh_gc_sections=no
27952 esac
27953 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
27955 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27959 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27962 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27963 gcc_cv_ld_eh_gc_sections_bug=no
27964 if test $in_tree_ld = yes ; then
27965 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 \
27966 && test $in_tree_ld_is_elf = yes; then
27967 gcc_cv_ld_eh_gc_sections_bug=yes
27969 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
27970 gcc_cv_ld_eh_gc_sections_bug=yes
27971 cat > conftest.s <<EOF
27972 .section .text
27973 .globl _start
27974 .type _start, @function
27975 _start:
27976 .long foo
27977 .size _start, .-_start
27978 .section .text.startup.foo,"ax",@progbits
27979 .type foo, @function
27980 foo:
27981 .long 0
27982 .size foo, .-foo
27983 .section .gcc_except_table.foo,"a",@progbits
27984 .L0:
27985 .long 0
27986 .section .eh_frame,"a",@progbits
27987 .long .L0
27989 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27990 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27991 | grep "gc-sections option ignored" > /dev/null; then
27993 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27994 | grep gcc_except_table > /dev/null; then
27995 gcc_cv_ld_eh_gc_sections_bug=no
27998 rm -f conftest.s conftest.o conftest
28000 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
28002 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28006 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28009 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28010 # gold/gld support compressed debug sections since binutils 2.19/2.21
28011 if test $in_tree_ld = yes ; then
28012 gcc_cv_ld_compress_debug=0
28013 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 \
28014 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28015 gcc_cv_ld_compress_debug=2
28016 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28017 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 \
28018 && test $in_tree_ld_is_elf = yes; then
28019 gcc_cv_ld_compress_debug=1
28021 elif echo "$ld_ver" | grep GNU > /dev/null; then
28022 gcc_cv_ld_compress_debug=1
28023 if test 0"$ld_date" -lt 20050308; then
28024 if test -n "$ld_date"; then
28025 # If there was date string, but was earlier than 2005-03-08, fail
28026 gcc_cv_ld_compress_debug=0
28027 elif test "$ld_vers_major" -lt 2; then
28028 gcc_cv_ld_compress_debug=0
28029 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28030 gcc_cv_ld_compress_debug=0
28033 if test $ld_is_gold = yes; then
28034 gcc_cv_ld_compress_debug=2
28035 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
28037 else
28038 case "${target}" in
28039 *-*-solaris2*)
28040 # Introduced in Solaris 11.2.
28041 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
28042 gcc_cv_ld_compress_debug=3
28043 gcc_cv_ld_compress_debug_option="-z compress-sections"
28044 else
28045 gcc_cv_ld_compress_debug=0
28049 # Assume linkers other than GNU ld don't support compessed debug
28050 # sections.
28051 gcc_cv_ld_compress_debug=0
28053 esac
28056 cat >>confdefs.h <<_ACEOF
28057 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28058 _ACEOF
28061 cat >>confdefs.h <<_ACEOF
28062 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28063 _ACEOF
28065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28066 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28068 # --------
28069 # UNSORTED
28070 # --------
28072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28073 $as_echo_n "checking linker --as-needed support... " >&6; }
28074 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28075 $as_echo_n "(cached) " >&6
28076 else
28077 gcc_cv_ld_as_needed=no
28078 gcc_cv_ld_as_needed_option='--as-needed'
28079 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28080 if test $in_tree_ld = yes ; then
28081 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 \
28082 && test $in_tree_ld_is_elf = yes; then
28083 gcc_cv_ld_as_needed=yes
28085 elif test x$gcc_cv_ld != x; then
28086 # Check if linker supports --as-needed and --no-as-needed options
28087 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
28088 gcc_cv_ld_as_needed=yes
28089 else
28090 case "$target" in
28091 # Solaris 2 ld always supports -z ignore/-z record.
28092 *-*-solaris2*)
28093 gcc_cv_ld_as_needed=yes
28094 gcc_cv_ld_as_needed_option="-z ignore"
28095 gcc_cv_ld_no_as_needed_option="-z record"
28097 esac
28100 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28101 # dl_iterate_phdr, i.e. since Solaris 11.
28102 case "$target" in
28103 *-*-solaris2.1[1-9]*)
28104 case "$target" in
28105 i?86-*-* | x86_64-*-*)
28106 if echo "$ld_ver" | grep GNU > /dev/null; then
28107 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28108 gcc_cv_ld_as_needed=no
28111 esac
28113 *-*-solaris2*)
28114 gcc_cv_ld_as_needed=no
28116 esac
28119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28120 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28121 if test x"$gcc_cv_ld_as_needed" = xyes; then
28123 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28126 cat >>confdefs.h <<_ACEOF
28127 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28128 _ACEOF
28131 cat >>confdefs.h <<_ACEOF
28132 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28133 _ACEOF
28137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28138 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28139 saved_LDFLAGS="$LDFLAGS"
28140 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28141 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28143 /* end confdefs.h. */
28144 int main(void) {return 0;}
28145 _ACEOF
28146 if ac_fn_cxx_try_link "$LINENO"; then :
28147 gcc_cv_ld_clearcap=yes; break
28148 else
28149 gcc_cv_ld_clearcap=no
28151 rm -f core conftest.err conftest.$ac_objext \
28152 conftest$ac_exeext conftest.$ac_ext
28153 done
28154 LDFLAGS="$saved_LDFLAGS"
28155 if test "x$gcc_cv_ld_clearcap" = xyes; then
28157 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28159 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28163 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28165 case "$target:$tm_file" in
28166 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28167 case "$target" in
28168 *le-*-linux*)
28169 emul_name="-melf64lppc"
28171 *-*-linux*)
28172 emul_name="-melf64ppc"
28174 *-*-freebsd*)
28175 emul_name="-melf64ppc_fbsd"
28177 esac
28178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28179 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28180 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28181 $as_echo_n "(cached) " >&6
28182 else
28183 gcc_cv_ld_no_dot_syms=no
28184 if test x"$ld_is_gold" = xyes; then
28185 gcc_cv_ld_no_dot_syms=yes
28186 elif test $in_tree_ld = yes ; then
28187 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
28188 gcc_cv_ld_no_dot_syms=yes
28190 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28191 cat > conftest1.s <<EOF
28192 .text
28193 bl .foo
28195 cat > conftest2.s <<EOF
28196 .section ".opd","aw"
28197 .align 3
28198 .globl foo
28199 .type foo,@function
28200 foo:
28201 .quad .LEfoo,.TOC.@tocbase,0
28202 .text
28203 .LEfoo:
28205 .size foo,.-.LEfoo
28207 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28208 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28209 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28210 gcc_cv_ld_no_dot_syms=yes
28212 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28217 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28218 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28220 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28225 $as_echo_n "checking linker large toc support... " >&6; }
28226 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28227 $as_echo_n "(cached) " >&6
28228 else
28229 gcc_cv_ld_large_toc=no
28230 if test x"$ld_is_gold" = xyes; then
28231 gcc_cv_ld_large_toc=yes
28232 elif test $in_tree_ld = yes ; then
28233 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
28234 gcc_cv_ld_large_toc=yes
28236 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28237 cat > conftest.s <<EOF
28238 .section ".tbss","awT",@nobits
28239 .align 3
28240 ie0: .space 8
28241 .global _start
28242 .text
28243 _start:
28244 addis 9,13,ie0@got@tprel@ha
28245 ld 9,ie0@got@tprel@l(9)
28247 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28248 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28249 gcc_cv_ld_large_toc=yes
28251 rm -f conftest conftest.o conftest.s
28255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28256 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28257 if test x"$gcc_cv_ld_large_toc" = xyes; then
28259 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28264 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28265 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28266 $as_echo_n "(cached) " >&6
28267 else
28268 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28269 cat > conftest.s <<EOF
28270 .global _start
28271 .text
28272 _start:
28273 addis 9,2,x@got@ha
28274 .section .data.rel.ro,"aw",@progbits
28275 .p2align 16
28276 .space 32768
28277 x: .quad .TOC.
28279 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28280 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28281 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)) }'`
28283 rm -f conftest conftest.o conftest.s
28287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28288 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28289 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28291 cat >>confdefs.h <<_ACEOF
28292 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28293 _ACEOF
28297 esac
28299 case "$target" in
28300 *-*-aix*)
28301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28302 $as_echo_n "checking linker large toc support... " >&6; }
28303 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28304 $as_echo_n "(cached) " >&6
28305 else
28306 gcc_cv_ld_large_toc=no
28307 if test x$gcc_cv_as != x ; then
28308 cat > conftest.s <<EOF
28309 .toc
28310 LC..1:
28311 .tc a[TC],a[RW]
28312 .extern a[RW]
28313 .csect .text[PR]
28314 .largetoctest:
28315 addis 9,LC..1@u(2)
28316 ld 3,LC..1@l(9)
28318 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28319 gcc_cv_ld_large_toc=yes
28321 rm -f conftest conftest.o conftest.s
28325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28326 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28327 if test x"$gcc_cv_ld_large_toc" = xyes; then
28329 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28333 esac
28335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28336 $as_echo_n "checking linker --build-id support... " >&6; }
28337 if test "${gcc_cv_ld_buildid+set}" = set; then :
28338 $as_echo_n "(cached) " >&6
28339 else
28340 gcc_cv_ld_buildid=no
28341 if test $in_tree_ld = yes ; then
28342 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28343 "$gcc_cv_gld_minor_version" -ge 18 -o \
28344 "$gcc_cv_gld_major_version" -gt 2 \
28345 && test $in_tree_ld_is_elf = yes; then
28346 gcc_cv_ld_buildid=yes
28348 elif test x$gcc_cv_ld != x; then
28349 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
28350 gcc_cv_ld_buildid=yes
28354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28355 $as_echo "$gcc_cv_ld_buildid" >&6; }
28356 if test x"$gcc_cv_ld_buildid" = xyes; then
28358 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28362 # Check whether --enable-linker-build-id was given.
28363 if test "${enable_linker_build_id+set}" = set; then :
28364 enableval=$enable_linker_build_id;
28365 else
28366 enable_linker_build_id=no
28370 if test x"$enable_linker_build_id" = xyes; then
28371 if test x"$gcc_cv_ld_buildid" = xyes; then
28373 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28375 else
28376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28377 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28381 # In binutils 2.21, GNU ld gained support for new emulations fully
28382 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28384 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28385 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28386 $as_echo_n "(cached) " >&6
28387 else
28388 gcc_cv_ld_sol2_emulation=no
28389 if test $in_tree_ld = yes ; then
28390 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28391 "$gcc_cv_gld_minor_version" -ge 21 -o \
28392 "$gcc_cv_gld_major_version" -gt 2 \
28393 && test $in_tree_ld_is_elf = yes; then
28394 gcc_cv_ld_sol2_emulation=yes
28396 elif test x$gcc_cv_ld != x; then
28397 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28398 grep _sol2 > /dev/null; then
28399 gcc_cv_ld_sol2_emulation=yes
28403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28404 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28405 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28407 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28412 $as_echo_n "checking linker --sysroot support... " >&6; }
28413 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28414 $as_echo_n "(cached) " >&6
28415 else
28416 gcc_cv_ld_sysroot=no
28417 if test $in_tree_ld = yes ; then
28418 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
28419 gcc_cv_ld_sysroot=yes
28421 elif test x$gcc_cv_ld != x; then
28422 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
28423 gcc_cv_ld_sysroot=yes
28427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28428 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28429 if test x"$gcc_cv_ld_sysroot" = xyes; then
28431 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28435 case $target in
28436 *-*-solaris2*)
28437 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28439 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28440 if test "${gcc_cv_solaris_crts+set}" = set; then :
28441 $as_echo_n "(cached) " >&6
28442 else
28443 gcc_cv_solaris_crts=no
28444 if test x$host != x$target; then
28445 if test "x$with_sysroot" = xyes; then
28446 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
28447 else
28448 target_sysroot="${with_sysroot}"
28451 target_libdir="$target_sysroot/usr/lib"
28452 # At the time they were added, gcrt1.o became a symlink for backwards
28453 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28454 case $target in
28455 i?86-*-solaris2* | x86_64-*-solaris2*)
28456 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
28458 sparc*-*-solaris2*)
28459 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
28461 esac
28463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28464 $as_echo "$gcc_cv_solaris_crts" >&6; }
28466 esac
28467 if test x$gcc_cv_solaris_crts = xyes; then
28469 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28473 # Test for stack protector support in target C library.
28474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28475 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28476 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28477 $as_echo_n "(cached) " >&6
28478 else
28479 gcc_cv_libc_provides_ssp=no
28480 case "$target" in
28481 *-*-musl*)
28482 # All versions of musl provide stack protector
28483 gcc_cv_libc_provides_ssp=yes;;
28484 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
28485 # glibc 2.4 and later provides __stack_chk_fail and
28486 # either __stack_chk_guard, or TLS access to stack guard canary.
28488 if test $glibc_version_major -gt 2 \
28489 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28490 gcc_cv_libc_provides_ssp=yes
28491 else
28493 if test -f $target_header_dir/features.h \
28494 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28495 $target_header_dir/features.h > /dev/null; then
28496 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28497 $target_header_dir/features.h > /dev/null && \
28498 test -f $target_header_dir/bits/uClibc_config.h && \
28499 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28500 $target_header_dir/bits/uClibc_config.h > /dev/null; then
28501 gcc_cv_libc_provides_ssp=yes
28503 # all versions of Bionic support stack protector
28504 elif test -f $target_header_dir/sys/cdefs.h \
28505 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28506 $target_header_dir/sys/cdefs.h > /dev/null; then
28507 gcc_cv_libc_provides_ssp=yes
28511 *-*-gnu*)
28512 # Avoid complicated tests (see
28513 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28514 # simply assert that glibc does provide this, which is true for all
28515 # realistically usable GNU/Hurd configurations.
28516 # All supported versions of musl provide it as well
28517 gcc_cv_libc_provides_ssp=yes;;
28518 *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
28519 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28520 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
28521 gcc_cv_libc_provides_ssp=yes
28522 else
28523 echo "no __stack_chk_fail on this target"
28527 *) gcc_cv_libc_provides_ssp=no ;;
28528 esac
28530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28531 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28533 if test x$gcc_cv_libc_provides_ssp = xyes; then
28535 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28539 # Check whether --enable-default-ssp was given.
28540 # Check whether --enable-default-ssp was given.
28541 if test "${enable_default_ssp+set}" = set; then :
28542 enableval=$enable_default_ssp;
28543 if test x$gcc_cv_libc_provides_ssp = xyes; then
28544 case "$target" in
28545 ia64*-*-*) enable_default_ssp=no ;;
28546 *) enable_default_ssp=$enableval ;;
28547 esac
28548 else
28549 enable_default_ssp=no
28551 else
28552 enable_default_ssp=no
28555 if test x$enable_default_ssp = xyes ; then
28557 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28562 # Test for <sys/sdt.h> on the target.
28564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28565 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28566 have_sys_sdt_h=no
28567 if test -f $target_header_dir/sys/sdt.h; then
28568 have_sys_sdt_h=yes
28570 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28574 $as_echo "$have_sys_sdt_h" >&6; }
28576 # Check if TFmode long double should be used by default or not.
28577 # Some glibc targets used DFmode long double, but with glibc 2.4
28578 # and later they can use TFmode.
28579 case "$target" in
28580 powerpc*-*-linux* | \
28581 sparc*-*-linux* | \
28582 s390*-*-linux* | \
28583 alpha*-*-linux*)
28585 # Check whether --with-long-double-128 was given.
28586 if test "${with_long_double_128+set}" = set; then :
28587 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
28588 else
28590 if test $glibc_version_major -gt 2 \
28591 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28592 gcc_cv_target_ldbl128=yes
28593 else
28595 gcc_cv_target_ldbl128=no
28596 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28597 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
28598 && gcc_cv_target_ldbl128=yes
28604 esac
28605 if test x$gcc_cv_target_ldbl128 = xyes; then
28607 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28611 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
28612 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
28613 gcc_cv_libc_provides_hwcap_in_tcb=no
28614 case "$target" in
28615 powerpc*-*-linux*)
28617 if test $glibc_version_major -gt 2 \
28618 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
28619 gcc_cv_libc_provides_hwcap_in_tcb=yes
28622 esac
28623 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
28625 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
28629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28630 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28631 gcc_cv_target_dl_iterate_phdr=unknown
28632 case "$target" in
28633 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
28634 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
28635 # libdl there, both complicating its use and breaking compatibility
28636 # between Solaris 10 updates.
28637 *-*-solaris2.1[1-9]*)
28638 # <link.h> needs both a dl_iterate_phdr declaration and support for
28639 # compilation with largefile support.
28640 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
28641 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
28642 gcc_cv_target_dl_iterate_phdr=yes
28643 else
28644 gcc_cv_target_dl_iterate_phdr=no
28647 *-*-dragonfly* | *-*-freebsd*)
28648 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
28649 gcc_cv_target_dl_iterate_phdr=yes
28650 else
28651 gcc_cv_target_dl_iterate_phdr=no
28654 *-linux-musl*)
28655 gcc_cv_target_dl_iterate_phdr=yes
28657 esac
28659 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
28661 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28665 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28667 # We no longer support different GC mechanisms. Emit an error if
28668 # the user configures with --with-gc.
28670 # Check whether --with-gc was given.
28671 if test "${with_gc+set}" = set; then :
28672 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28676 # Libraries to use on the host. This will normally be set by the top
28677 # level Makefile. Here we simply capture the value for our Makefile.
28678 if test -z "${HOST_LIBS+set}"; then
28679 HOST_LIBS=
28683 # Use the system's zlib library.
28685 # Use the system's zlib library.
28686 zlibdir="-L\$(top_builddir)/../zlib"
28687 zlibinc="-I\$(top_srcdir)/../zlib"
28689 # Check whether --with-system-zlib was given.
28690 if test "${with_system_zlib+set}" = set; then :
28691 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
28692 zlibdir=
28693 zlibinc=
28703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28704 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28705 # Check whether --enable-maintainer-mode was given.
28706 if test "${enable_maintainer_mode+set}" = set; then :
28707 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
28708 else
28709 maintainer_mode=no
28713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28714 $as_echo "$maintainer_mode" >&6; }
28716 if test "$maintainer_mode" = "yes"; then
28717 MAINT=''
28718 else
28719 MAINT='#'
28723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28724 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28725 # Check whether --enable-link-mutex was given.
28726 if test "${enable_link_mutex+set}" = set; then :
28727 enableval=$enable_link_mutex; do_link_mutex=$enableval
28728 else
28729 do_link_mutex=no
28732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28733 $as_echo "$do_link_mutex" >&6; }
28735 if test "$do_link_mutex" = "yes"; then
28736 DO_LINK_MUTEX=true
28737 else
28738 DO_LINK_MUTEX=false
28742 # --------------
28743 # Language hooks
28744 # --------------
28746 # Make empty files to contain the specs and options for each language.
28747 # Then add #include lines to for a compiler that has specs and/or options.
28749 subdirs=
28750 lang_opt_files=
28751 lang_specs_files=
28752 lang_tree_files=
28753 # These (without "all_") are set in each config-lang.in.
28754 # `language' must be a single word so is spelled singularly.
28755 all_languages=
28756 all_compilers=
28757 all_outputs='Makefile'
28758 # List of language makefile fragments.
28759 all_lang_makefrags=
28760 # Additional files for gengtype
28761 all_gtfiles="$target_gtfiles"
28763 # These are the languages that are set in --enable-languages,
28764 # and are available in the GCC tree.
28765 all_selected_languages=
28767 # Add the language fragments.
28768 # Languages are added via two mechanisms. Some information must be
28769 # recorded in makefile variables, these are defined in config-lang.in.
28770 # We accumulate them and plug them into the main Makefile.
28771 # The other mechanism is a set of hooks for each of the main targets
28772 # like `clean', `install', etc.
28774 language_hooks="Make-hooks"
28776 for lang in ${srcdir}/*/config-lang.in
28778 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28780 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28781 if test "x$lang_alias" = x
28782 then
28783 echo "$lang doesn't set \$language." 1>&2
28784 exit 1
28786 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28787 subdirs="$subdirs $subdir"
28789 # $gcc_subdir is where the gcc integration files are to be found
28790 # for a language, both for internal compiler purposes (compiler
28791 # sources implementing front-end to GCC tree converters), and for
28792 # build infrastructure purposes (Make-lang.in, etc.)
28794 # This will be <subdir> (relative to $srcdir) if a line like
28795 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28796 # is found in <langdir>/config-lang.in, and will remain <langdir>
28797 # otherwise.
28799 # Except for the language alias (fetched above), the regular
28800 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28801 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28802 # only this and the language alias.
28804 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28805 if [ "$gcc_subdir" = "" ]; then
28806 gcc_subdir="$subdir"
28809 case ",$enable_languages," in
28810 *,$lang_alias,*)
28811 all_selected_languages="$all_selected_languages $lang_alias"
28812 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
28813 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28816 esac
28818 language=
28819 boot_language=
28820 compilers=
28821 outputs=
28822 gtfiles=
28823 subdir_requires=
28824 . ${srcdir}/$gcc_subdir/config-lang.in
28825 if test "x$language" = x
28826 then
28827 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28828 exit 1
28831 ok=:
28832 case ",$enable_languages," in
28833 *,$lang_alias,*) ;;
28835 for i in $subdir_requires; do
28836 test -f "${srcdir}/$i/config-lang.in" && continue
28837 ok=false
28838 break
28839 done
28841 esac
28842 $ok || continue
28844 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28845 if test -f $srcdir/$gcc_subdir/lang.opt; then
28846 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28847 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28849 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
28850 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28852 all_languages="$all_languages $language"
28853 all_compilers="$all_compilers $compilers"
28854 all_outputs="$all_outputs $outputs"
28855 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
28856 case ",$enable_languages," in
28857 *,lto,*)
28859 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28861 enable_lto=yes
28864 *) ;;
28865 esac
28866 done
28868 check_languages=
28869 for language in $all_selected_languages
28871 check_languages="$check_languages check-$language"
28872 done
28874 # We link each language in with a set of hooks, reached indirectly via
28875 # lang.${target}. Only do so for selected languages.
28877 rm -f Make-hooks
28878 touch Make-hooks
28879 target_list="all.cross start.encap rest.encap tags \
28880 install-common install-man install-info install-pdf install-html dvi \
28881 pdf html uninstall info man srcextra srcman srcinfo \
28882 mostlyclean clean distclean maintainer-clean install-plugin"
28884 for t in $target_list
28887 for lang in $all_selected_languages
28889 x="$x $lang.$t"
28890 done
28891 echo "lang.$t: $x" >> Make-hooks
28892 done
28894 # --------
28895 # Option include files
28896 # --------
28898 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
28899 option_includes="option-includes.mk"
28902 # --------
28903 # UNSORTED
28904 # --------
28906 # Create .gdbinit.
28908 echo "dir ." > .gdbinit
28909 echo "dir ${srcdir}" >> .gdbinit
28910 if test x$gdb_needs_out_file_path = xyes
28911 then
28912 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28914 if test "x$subdirs" != x; then
28915 for s in $subdirs
28917 echo "dir ${srcdir}/$s" >> .gdbinit
28918 done
28920 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28921 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
28923 # Put a breakpoint on __asan_report_error to help with debugging buffer
28924 # overflow.
28925 case "$CFLAGS" in
28926 *-fsanitize=address*)
28927 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28929 esac
28931 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28935 # Find a directory in which to install a shared libgcc.
28937 # Check whether --enable-version-specific-runtime-libs was given.
28938 if test "${enable_version_specific_runtime_libs+set}" = set; then :
28939 enableval=$enable_version_specific_runtime_libs;
28943 # Substitute configuration variables
29006 # Echo link setup.
29007 if test x${build} = x${host} ; then
29008 if test x${host} = x${target} ; then
29009 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29010 else
29011 echo "Links are now set up to build a cross-compiler" 1>&2
29012 echo " from ${host} to ${target}." 1>&2
29014 else
29015 if test x${host} = x${target} ; then
29016 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29017 echo " for ${target}." 1>&2
29018 else
29019 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29020 echo " from ${host} to ${target}." 1>&2
29029 if test "x${ISLLIBS}" != "x" ; then
29031 $as_echo "#define HAVE_isl 1" >>confdefs.h
29035 # Check whether isl_options_set_schedule_serialize_sccs is available;
29036 # it's new in isl 0.15.
29037 if test "x${ISLLIBS}" != "x" ; then
29038 saved_CXXFLAGS="$CXXFLAGS"
29039 CXXFLAGS="$CXXFLAGS $ISLINC $GMPINC"
29040 saved_LIBS="$LIBS"
29041 LIBS="$LIBS $ISLLIBS $GMPLIBS"
29043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
29044 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
29045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29046 /* end confdefs.h. */
29047 #include <isl/schedule.h>
29049 main ()
29051 isl_options_set_schedule_serialize_sccs (NULL, 0);
29053 return 0;
29055 _ACEOF
29056 if ac_fn_cxx_try_link "$LINENO"; then :
29057 ac_has_isl_options_set_schedule_serialize_sccs=yes
29058 else
29059 ac_has_isl_options_set_schedule_serialize_sccs=no
29061 rm -f core conftest.err conftest.$ac_objext \
29062 conftest$ac_exeext conftest.$ac_ext
29063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
29064 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
29066 LIBS="$saved_LIBS"
29067 CXXFLAGS="$saved_CXXFLAGS"
29069 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
29071 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
29076 # Check for plugin support
29077 # Check whether --enable-plugin was given.
29078 if test "${enable_plugin+set}" = set; then :
29079 enableval=$enable_plugin; enable_plugin=$enableval
29080 else
29081 enable_plugin=yes; default_plugin=yes
29085 pluginlibs=
29087 case "${host}" in
29088 *-*-darwin*)
29089 if test x$build = x$host; then
29090 export_sym_check="nm${exeext} -g"
29091 elif test x$host = x$target; then
29092 export_sym_check="$gcc_cv_nm -g"
29093 else
29094 export_sym_check=
29098 if test x$build = x$host; then
29099 export_sym_check="objdump${exeext} -T"
29100 elif test x$host = x$target; then
29101 export_sym_check="$gcc_cv_objdump -T"
29102 else
29103 export_sym_check=
29106 esac
29108 if test x"$enable_plugin" = x"yes"; then
29110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29111 $as_echo_n "checking for exported symbols... " >&6; }
29112 if test "x$export_sym_check" != x; then
29113 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29114 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29115 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29116 : # No need to use a flag
29117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29118 $as_echo "yes" >&6; }
29119 else
29120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29121 $as_echo "yes" >&6; }
29122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29123 $as_echo_n "checking for -rdynamic... " >&6; }
29124 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29125 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29126 plugin_rdynamic=yes
29127 pluginlibs="-rdynamic"
29128 else
29129 plugin_rdynamic=no
29130 enable_plugin=no
29132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29133 $as_echo "$plugin_rdynamic" >&6; }
29135 else
29136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29137 $as_echo "unable to check" >&6; }
29140 # Check -ldl
29141 saved_LIBS="$LIBS"
29142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29143 $as_echo_n "checking for library containing dlopen... " >&6; }
29144 if test "${ac_cv_search_dlopen+set}" = set; then :
29145 $as_echo_n "(cached) " >&6
29146 else
29147 ac_func_search_save_LIBS=$LIBS
29148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29149 /* end confdefs.h. */
29151 /* Override any GCC internal prototype to avoid an error.
29152 Use char because int might match the return type of a GCC
29153 builtin and then its argument prototype would still apply. */
29154 #ifdef __cplusplus
29155 extern "C"
29156 #endif
29157 char dlopen ();
29159 main ()
29161 return dlopen ();
29163 return 0;
29165 _ACEOF
29166 for ac_lib in '' dl; do
29167 if test -z "$ac_lib"; then
29168 ac_res="none required"
29169 else
29170 ac_res=-l$ac_lib
29171 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29173 if ac_fn_cxx_try_link "$LINENO"; then :
29174 ac_cv_search_dlopen=$ac_res
29176 rm -f core conftest.err conftest.$ac_objext \
29177 conftest$ac_exeext
29178 if test "${ac_cv_search_dlopen+set}" = set; then :
29179 break
29181 done
29182 if test "${ac_cv_search_dlopen+set}" = set; then :
29184 else
29185 ac_cv_search_dlopen=no
29187 rm conftest.$ac_ext
29188 LIBS=$ac_func_search_save_LIBS
29190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29191 $as_echo "$ac_cv_search_dlopen" >&6; }
29192 ac_res=$ac_cv_search_dlopen
29193 if test "$ac_res" != no; then :
29194 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29198 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29199 pluginlibs="$pluginlibs -ldl"
29201 LIBS="$saved_LIBS"
29203 # Check that we can build shared objects with -fPIC -shared
29204 saved_LDFLAGS="$LDFLAGS"
29205 saved_CFLAGS="$CFLAGS"
29206 case "${host}" in
29207 *-*-darwin*)
29208 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29209 CFLAGS="$CFLAGS -fPIC"
29210 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29213 CFLAGS="$CFLAGS -fPIC"
29214 LDFLAGS="$LDFLAGS -fPIC -shared"
29216 esac
29217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29218 $as_echo_n "checking for -fPIC -shared... " >&6; }
29219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29220 /* end confdefs.h. */
29221 extern int X;
29223 main ()
29225 return X == 0;
29227 return 0;
29229 _ACEOF
29230 if ac_fn_cxx_try_link "$LINENO"; then :
29231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29232 $as_echo "yes" >&6; }; have_pic_shared=yes
29233 else
29234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29235 $as_echo "no" >&6; }; have_pic_shared=no
29237 rm -f core conftest.err conftest.$ac_objext \
29238 conftest$ac_exeext conftest.$ac_ext
29239 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29240 pluginlibs=
29241 enable_plugin=no
29243 LDFLAGS="$saved_LDFLAGS"
29244 CFLAGS="$saved_CFLAGS"
29246 # If plugin support had been requested but not available, fail.
29247 if test x"$enable_plugin" = x"no" ; then
29248 if test x"$default_plugin" != x"yes"; then
29249 as_fn_error "
29250 Building GCC with plugin support requires a host that supports
29251 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29258 if test x"$enable_plugin" = x"yes"; then
29260 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29265 # Enable --enable-host-shared
29266 # Check whether --enable-host-shared was given.
29267 if test "${enable_host_shared+set}" = set; then :
29268 enableval=$enable_host_shared; PICFLAG=-fPIC
29269 else
29270 PICFLAG=
29277 # Check whether --enable-libquadmath-support was given.
29278 if test "${enable_libquadmath_support+set}" = set; then :
29279 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29280 else
29281 ENABLE_LIBQUADMATH_SUPPORT=yes
29284 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29286 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29291 # Specify what hash style to use by default.
29293 # Check whether --with-linker-hash-style was given.
29294 if test "${with_linker_hash_style+set}" = set; then :
29295 withval=$with_linker_hash_style; case x"$withval" in
29296 xsysv)
29297 LINKER_HASH_STYLE=sysv
29299 xgnu)
29300 LINKER_HASH_STYLE=gnu
29302 xboth)
29303 LINKER_HASH_STYLE=both
29306 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29308 esac
29309 else
29310 LINKER_HASH_STYLE=''
29313 if test x"${LINKER_HASH_STYLE}" != x; then
29315 cat >>confdefs.h <<_ACEOF
29316 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29317 _ACEOF
29321 # Specify what should be the default of -fdiagnostics-color option.
29323 # Check whether --with-diagnostics-color was given.
29324 if test "${with_diagnostics_color+set}" = set; then :
29325 withval=$with_diagnostics_color; case x"$withval" in
29326 xnever)
29327 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29329 xauto)
29330 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29332 xauto-if-env)
29333 DIAGNOSTICS_COLOR_DEFAULT=-1
29335 xalways)
29336 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29339 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29341 esac
29342 else
29343 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29347 cat >>confdefs.h <<_ACEOF
29348 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29349 _ACEOF
29352 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29353 # of jit/jit-playback.c.
29354 cat > gcc-driver-name.h <<EOF
29355 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29358 # Check whether --enable-default-pie was given.
29359 # Check whether --enable-default-pie was given.
29360 if test "${enable_default_pie+set}" = set; then :
29361 enableval=$enable_default_pie; enable_default_pie=$enableval
29362 else
29363 enable_default_pie=no
29366 if test x$enable_default_pie = xyes ; then
29368 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29373 # Check if -fno-PIE works.
29374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29375 $as_echo_n "checking for -fno-PIE option... " >&6; }
29376 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29377 $as_echo_n "(cached) " >&6
29378 else
29379 saved_CXXFLAGS="$CXXFLAGS"
29380 CXXFLAGS="$CXXFLAGS -fno-PIE"
29381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29382 /* end confdefs.h. */
29383 int main(void) {return 0;}
29384 _ACEOF
29385 if ac_fn_cxx_try_compile "$LINENO"; then :
29386 gcc_cv_c_no_fpie=yes
29387 else
29388 gcc_cv_c_no_fpie=no
29390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29391 CXXFLAGS="$saved_CXXFLAGS"
29393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29394 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29395 if test "$gcc_cv_c_no_fpie" = "yes"; then
29396 NO_PIE_CFLAGS="-fno-PIE"
29400 # Check if -no-pie works.
29401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29402 $as_echo_n "checking for -no-pie option... " >&6; }
29403 if test "${gcc_cv_no_pie+set}" = set; then :
29404 $as_echo_n "(cached) " >&6
29405 else
29406 saved_LDFLAGS="$LDFLAGS"
29407 LDFLAGS="$LDFLAGS -no-pie"
29408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29409 /* end confdefs.h. */
29410 int main(void) {return 0;}
29411 _ACEOF
29412 if ac_fn_cxx_try_link "$LINENO"; then :
29413 gcc_cv_no_pie=yes
29414 else
29415 gcc_cv_no_pie=no
29417 rm -f core conftest.err conftest.$ac_objext \
29418 conftest$ac_exeext conftest.$ac_ext
29419 LDFLAGS="$saved_LDFLAGS"
29421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29422 $as_echo "$gcc_cv_no_pie" >&6; }
29423 if test "$gcc_cv_no_pie" = "yes"; then
29424 NO_PIE_FLAG="-no-pie"
29428 # Check linker supports '-z bndplt'
29429 ld_bndplt_support=no
29430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29431 $as_echo_n "checking linker -z bndplt option... " >&6; }
29432 if test x"$ld_is_gold" = xno; then
29433 if test $in_tree_ld = yes ; then
29434 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
29435 ld_bndplt_support=yes
29437 elif test x$gcc_cv_ld != x; then
29438 # Check if linker supports -a bndplt option
29439 if $gcc_cv_ld --help 2>/dev/null | grep -- '-z bndplt' > /dev/null; then
29440 ld_bndplt_support=yes
29444 if test x"$ld_bndplt_support" = xyes; then
29446 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29450 $as_echo "$ld_bndplt_support" >&6; }
29452 # Configure the subdirectories
29453 # AC_CONFIG_SUBDIRS($subdirs)
29455 # Create the Makefile
29456 # and configure language subdirectories
29457 ac_config_files="$ac_config_files $all_outputs"
29460 ac_config_commands="$ac_config_commands default"
29462 cat >confcache <<\_ACEOF
29463 # This file is a shell script that caches the results of configure
29464 # tests run on this system so they can be shared between configure
29465 # scripts and configure runs, see configure's option --config-cache.
29466 # It is not useful on other systems. If it contains results you don't
29467 # want to keep, you may remove or edit it.
29469 # config.status only pays attention to the cache file if you give it
29470 # the --recheck option to rerun configure.
29472 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29473 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29474 # following values.
29476 _ACEOF
29478 # The following way of writing the cache mishandles newlines in values,
29479 # but we know of no workaround that is simple, portable, and efficient.
29480 # So, we kill variables containing newlines.
29481 # Ultrix sh set writes to stderr and can't be redirected directly,
29482 # and sets the high bit in the cache file unless we assign to the vars.
29484 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29485 eval ac_val=\$$ac_var
29486 case $ac_val in #(
29487 *${as_nl}*)
29488 case $ac_var in #(
29489 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29490 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29491 esac
29492 case $ac_var in #(
29493 _ | IFS | as_nl) ;; #(
29494 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29495 *) { eval $ac_var=; unset $ac_var;} ;;
29496 esac ;;
29497 esac
29498 done
29500 (set) 2>&1 |
29501 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29502 *${as_nl}ac_space=\ *)
29503 # `set' does not quote correctly, so add quotes: double-quote
29504 # substitution turns \\\\ into \\, and sed turns \\ into \.
29505 sed -n \
29506 "s/'/'\\\\''/g;
29507 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29508 ;; #(
29510 # `set' quotes correctly as required by POSIX, so do not add quotes.
29511 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29513 esac |
29514 sort
29516 sed '
29517 /^ac_cv_env_/b end
29518 t clear
29519 :clear
29520 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29521 t end
29522 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29523 :end' >>confcache
29524 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29525 if test -w "$cache_file"; then
29526 test "x$cache_file" != "x/dev/null" &&
29527 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29528 $as_echo "$as_me: updating cache $cache_file" >&6;}
29529 cat confcache >$cache_file
29530 else
29531 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29532 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29535 rm -f confcache
29537 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29538 # Let make expand exec_prefix.
29539 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29541 DEFS=-DHAVE_CONFIG_H
29543 ac_libobjs=
29544 ac_ltlibobjs=
29545 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29546 # 1. Remove the extension, and $U if already installed.
29547 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29548 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29549 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29550 # will be set to the directory where LIBOBJS objects are built.
29551 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29552 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29553 done
29554 LIBOBJS=$ac_libobjs
29556 LTLIBOBJS=$ac_ltlibobjs
29561 : ${CONFIG_STATUS=./config.status}
29562 ac_write_fail=0
29563 ac_clean_files_save=$ac_clean_files
29564 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29565 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29566 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29567 as_write_fail=0
29568 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29569 #! $SHELL
29570 # Generated by $as_me.
29571 # Run this file to recreate the current configuration.
29572 # Compiler output produced by configure, useful for debugging
29573 # configure, is in config.log if it exists.
29575 debug=false
29576 ac_cs_recheck=false
29577 ac_cs_silent=false
29579 SHELL=\${CONFIG_SHELL-$SHELL}
29580 export SHELL
29581 _ASEOF
29582 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29583 ## -------------------- ##
29584 ## M4sh Initialization. ##
29585 ## -------------------- ##
29587 # Be more Bourne compatible
29588 DUALCASE=1; export DUALCASE # for MKS sh
29589 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29590 emulate sh
29591 NULLCMD=:
29592 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29593 # is contrary to our usage. Disable this feature.
29594 alias -g '${1+"$@"}'='"$@"'
29595 setopt NO_GLOB_SUBST
29596 else
29597 case `(set -o) 2>/dev/null` in #(
29598 *posix*) :
29599 set -o posix ;; #(
29600 *) :
29602 esac
29606 as_nl='
29608 export as_nl
29609 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29610 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29611 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29612 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29613 # Prefer a ksh shell builtin over an external printf program on Solaris,
29614 # but without wasting forks for bash or zsh.
29615 if test -z "$BASH_VERSION$ZSH_VERSION" \
29616 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29617 as_echo='print -r --'
29618 as_echo_n='print -rn --'
29619 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29620 as_echo='printf %s\n'
29621 as_echo_n='printf %s'
29622 else
29623 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29624 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29625 as_echo_n='/usr/ucb/echo -n'
29626 else
29627 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29628 as_echo_n_body='eval
29629 arg=$1;
29630 case $arg in #(
29631 *"$as_nl"*)
29632 expr "X$arg" : "X\\(.*\\)$as_nl";
29633 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29634 esac;
29635 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29637 export as_echo_n_body
29638 as_echo_n='sh -c $as_echo_n_body as_echo'
29640 export as_echo_body
29641 as_echo='sh -c $as_echo_body as_echo'
29644 # The user is always right.
29645 if test "${PATH_SEPARATOR+set}" != set; then
29646 PATH_SEPARATOR=:
29647 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29648 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29649 PATH_SEPARATOR=';'
29654 # IFS
29655 # We need space, tab and new line, in precisely that order. Quoting is
29656 # there to prevent editors from complaining about space-tab.
29657 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29658 # splitting by setting IFS to empty value.)
29659 IFS=" "" $as_nl"
29661 # Find who we are. Look in the path if we contain no directory separator.
29662 case $0 in #((
29663 *[\\/]* ) as_myself=$0 ;;
29664 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29665 for as_dir in $PATH
29667 IFS=$as_save_IFS
29668 test -z "$as_dir" && as_dir=.
29669 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29670 done
29671 IFS=$as_save_IFS
29674 esac
29675 # We did not find ourselves, most probably we were run as `sh COMMAND'
29676 # in which case we are not to be found in the path.
29677 if test "x$as_myself" = x; then
29678 as_myself=$0
29680 if test ! -f "$as_myself"; then
29681 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29682 exit 1
29685 # Unset variables that we do not need and which cause bugs (e.g. in
29686 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29687 # suppresses any "Segmentation fault" message there. '((' could
29688 # trigger a bug in pdksh 5.2.14.
29689 for as_var in BASH_ENV ENV MAIL MAILPATH
29690 do eval test x\${$as_var+set} = xset \
29691 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29692 done
29693 PS1='$ '
29694 PS2='> '
29695 PS4='+ '
29697 # NLS nuisances.
29698 LC_ALL=C
29699 export LC_ALL
29700 LANGUAGE=C
29701 export LANGUAGE
29703 # CDPATH.
29704 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29707 # as_fn_error ERROR [LINENO LOG_FD]
29708 # ---------------------------------
29709 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29710 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29711 # script with status $?, using 1 if that was 0.
29712 as_fn_error ()
29714 as_status=$?; test $as_status -eq 0 && as_status=1
29715 if test "$3"; then
29716 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29717 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29719 $as_echo "$as_me: error: $1" >&2
29720 as_fn_exit $as_status
29721 } # as_fn_error
29724 # as_fn_set_status STATUS
29725 # -----------------------
29726 # Set $? to STATUS, without forking.
29727 as_fn_set_status ()
29729 return $1
29730 } # as_fn_set_status
29732 # as_fn_exit STATUS
29733 # -----------------
29734 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29735 as_fn_exit ()
29737 set +e
29738 as_fn_set_status $1
29739 exit $1
29740 } # as_fn_exit
29742 # as_fn_unset VAR
29743 # ---------------
29744 # Portably unset VAR.
29745 as_fn_unset ()
29747 { eval $1=; unset $1;}
29749 as_unset=as_fn_unset
29750 # as_fn_append VAR VALUE
29751 # ----------------------
29752 # Append the text in VALUE to the end of the definition contained in VAR. Take
29753 # advantage of any shell optimizations that allow amortized linear growth over
29754 # repeated appends, instead of the typical quadratic growth present in naive
29755 # implementations.
29756 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29757 eval 'as_fn_append ()
29759 eval $1+=\$2
29761 else
29762 as_fn_append ()
29764 eval $1=\$$1\$2
29766 fi # as_fn_append
29768 # as_fn_arith ARG...
29769 # ------------------
29770 # Perform arithmetic evaluation on the ARGs, and store the result in the
29771 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29772 # must be portable across $(()) and expr.
29773 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29774 eval 'as_fn_arith ()
29776 as_val=$(( $* ))
29778 else
29779 as_fn_arith ()
29781 as_val=`expr "$@" || test $? -eq 1`
29783 fi # as_fn_arith
29786 if expr a : '\(a\)' >/dev/null 2>&1 &&
29787 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29788 as_expr=expr
29789 else
29790 as_expr=false
29793 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29794 as_basename=basename
29795 else
29796 as_basename=false
29799 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29800 as_dirname=dirname
29801 else
29802 as_dirname=false
29805 as_me=`$as_basename -- "$0" ||
29806 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29807 X"$0" : 'X\(//\)$' \| \
29808 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29809 $as_echo X/"$0" |
29810 sed '/^.*\/\([^/][^/]*\)\/*$/{
29811 s//\1/
29814 /^X\/\(\/\/\)$/{
29815 s//\1/
29818 /^X\/\(\/\).*/{
29819 s//\1/
29822 s/.*/./; q'`
29824 # Avoid depending upon Character Ranges.
29825 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29826 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29827 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29828 as_cr_digits='0123456789'
29829 as_cr_alnum=$as_cr_Letters$as_cr_digits
29831 ECHO_C= ECHO_N= ECHO_T=
29832 case `echo -n x` in #(((((
29833 -n*)
29834 case `echo 'xy\c'` in
29835 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29836 xy) ECHO_C='\c';;
29837 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29838 ECHO_T=' ';;
29839 esac;;
29841 ECHO_N='-n';;
29842 esac
29844 rm -f conf$$ conf$$.exe conf$$.file
29845 if test -d conf$$.dir; then
29846 rm -f conf$$.dir/conf$$.file
29847 else
29848 rm -f conf$$.dir
29849 mkdir conf$$.dir 2>/dev/null
29851 if (echo >conf$$.file) 2>/dev/null; then
29852 if ln -s conf$$.file conf$$ 2>/dev/null; then
29853 as_ln_s='ln -s'
29854 # ... but there are two gotchas:
29855 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29856 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29857 # In both cases, we have to default to `cp -p'.
29858 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29859 as_ln_s='cp -p'
29860 elif ln conf$$.file conf$$ 2>/dev/null; then
29861 as_ln_s=ln
29862 else
29863 as_ln_s='cp -p'
29865 else
29866 as_ln_s='cp -p'
29868 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29869 rmdir conf$$.dir 2>/dev/null
29872 # as_fn_mkdir_p
29873 # -------------
29874 # Create "$as_dir" as a directory, including parents if necessary.
29875 as_fn_mkdir_p ()
29878 case $as_dir in #(
29879 -*) as_dir=./$as_dir;;
29880 esac
29881 test -d "$as_dir" || eval $as_mkdir_p || {
29882 as_dirs=
29883 while :; do
29884 case $as_dir in #(
29885 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29886 *) as_qdir=$as_dir;;
29887 esac
29888 as_dirs="'$as_qdir' $as_dirs"
29889 as_dir=`$as_dirname -- "$as_dir" ||
29890 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29891 X"$as_dir" : 'X\(//\)[^/]' \| \
29892 X"$as_dir" : 'X\(//\)$' \| \
29893 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29894 $as_echo X"$as_dir" |
29895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29896 s//\1/
29899 /^X\(\/\/\)[^/].*/{
29900 s//\1/
29903 /^X\(\/\/\)$/{
29904 s//\1/
29907 /^X\(\/\).*/{
29908 s//\1/
29911 s/.*/./; q'`
29912 test -d "$as_dir" && break
29913 done
29914 test -z "$as_dirs" || eval "mkdir $as_dirs"
29915 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29918 } # as_fn_mkdir_p
29919 if mkdir -p . 2>/dev/null; then
29920 as_mkdir_p='mkdir -p "$as_dir"'
29921 else
29922 test -d ./-p && rmdir ./-p
29923 as_mkdir_p=false
29926 if test -x / >/dev/null 2>&1; then
29927 as_test_x='test -x'
29928 else
29929 if ls -dL / >/dev/null 2>&1; then
29930 as_ls_L_option=L
29931 else
29932 as_ls_L_option=
29934 as_test_x='
29935 eval sh -c '\''
29936 if test -d "$1"; then
29937 test -d "$1/.";
29938 else
29939 case $1 in #(
29940 -*)set "./$1";;
29941 esac;
29942 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29943 ???[sx]*):;;*)false;;esac;fi
29944 '\'' sh
29947 as_executable_p=$as_test_x
29949 # Sed expression to map a string onto a valid CPP name.
29950 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29952 # Sed expression to map a string onto a valid variable name.
29953 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29956 exec 6>&1
29957 ## ----------------------------------- ##
29958 ## Main body of $CONFIG_STATUS script. ##
29959 ## ----------------------------------- ##
29960 _ASEOF
29961 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29964 # Save the log message, to keep $0 and so on meaningful, and to
29965 # report actual input values of CONFIG_FILES etc. instead of their
29966 # values after options handling.
29967 ac_log="
29968 This file was extended by $as_me, which was
29969 generated by GNU Autoconf 2.64. Invocation command line was
29971 CONFIG_FILES = $CONFIG_FILES
29972 CONFIG_HEADERS = $CONFIG_HEADERS
29973 CONFIG_LINKS = $CONFIG_LINKS
29974 CONFIG_COMMANDS = $CONFIG_COMMANDS
29975 $ $0 $@
29977 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29980 _ACEOF
29982 case $ac_config_files in *"
29983 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29984 esac
29986 case $ac_config_headers in *"
29987 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29988 esac
29991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29992 # Files that config.status was made for.
29993 config_files="$ac_config_files"
29994 config_headers="$ac_config_headers"
29995 config_links="$ac_config_links"
29996 config_commands="$ac_config_commands"
29998 _ACEOF
30000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30001 ac_cs_usage="\
30002 \`$as_me' instantiates files and other configuration actions
30003 from templates according to the current configuration. Unless the files
30004 and actions are specified as TAGs, all are instantiated by default.
30006 Usage: $0 [OPTION]... [TAG]...
30008 -h, --help print this help, then exit
30009 -V, --version print version number and configuration settings, then exit
30010 -q, --quiet, --silent
30011 do not print progress messages
30012 -d, --debug don't remove temporary files
30013 --recheck update $as_me by reconfiguring in the same conditions
30014 --file=FILE[:TEMPLATE]
30015 instantiate the configuration file FILE
30016 --header=FILE[:TEMPLATE]
30017 instantiate the configuration header FILE
30019 Configuration files:
30020 $config_files
30022 Configuration headers:
30023 $config_headers
30025 Configuration links:
30026 $config_links
30028 Configuration commands:
30029 $config_commands
30031 Report bugs to the package provider."
30033 _ACEOF
30034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30035 ac_cs_version="\\
30036 config.status
30037 configured by $0, generated by GNU Autoconf 2.64,
30038 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30040 Copyright (C) 2009 Free Software Foundation, Inc.
30041 This config.status script is free software; the Free Software Foundation
30042 gives unlimited permission to copy, distribute and modify it."
30044 ac_pwd='$ac_pwd'
30045 srcdir='$srcdir'
30046 AWK='$AWK'
30047 test -n "\$AWK" || AWK=awk
30048 _ACEOF
30050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30051 # The default lists apply if the user does not specify any file.
30052 ac_need_defaults=:
30053 while test $# != 0
30055 case $1 in
30056 --*=*)
30057 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30058 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30059 ac_shift=:
30062 ac_option=$1
30063 ac_optarg=$2
30064 ac_shift=shift
30066 esac
30068 case $ac_option in
30069 # Handling of the options.
30070 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30071 ac_cs_recheck=: ;;
30072 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30073 $as_echo "$ac_cs_version"; exit ;;
30074 --debug | --debu | --deb | --de | --d | -d )
30075 debug=: ;;
30076 --file | --fil | --fi | --f )
30077 $ac_shift
30078 case $ac_optarg in
30079 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30080 esac
30081 as_fn_append CONFIG_FILES " '$ac_optarg'"
30082 ac_need_defaults=false;;
30083 --header | --heade | --head | --hea )
30084 $ac_shift
30085 case $ac_optarg in
30086 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30087 esac
30088 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30089 ac_need_defaults=false;;
30090 --he | --h)
30091 # Conflict between --help and --header
30092 as_fn_error "ambiguous option: \`$1'
30093 Try \`$0 --help' for more information.";;
30094 --help | --hel | -h )
30095 $as_echo "$ac_cs_usage"; exit ;;
30096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30097 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30098 ac_cs_silent=: ;;
30100 # This is an error.
30101 -*) as_fn_error "unrecognized option: \`$1'
30102 Try \`$0 --help' for more information." ;;
30104 *) as_fn_append ac_config_targets " $1"
30105 ac_need_defaults=false ;;
30107 esac
30108 shift
30109 done
30111 ac_configure_extra_args=
30113 if $ac_cs_silent; then
30114 exec 6>/dev/null
30115 ac_configure_extra_args="$ac_configure_extra_args --silent"
30118 _ACEOF
30119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30120 if \$ac_cs_recheck; then
30121 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30122 shift
30123 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30124 CONFIG_SHELL='$SHELL'
30125 export CONFIG_SHELL
30126 exec "\$@"
30129 _ACEOF
30130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30131 exec 5>>config.log
30133 echo
30134 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30135 ## Running $as_me. ##
30136 _ASBOX
30137 $as_echo "$ac_log"
30138 } >&5
30140 _ACEOF
30141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30143 # INIT-COMMANDS
30145 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30146 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30147 subdirs='$subdirs'
30149 _ACEOF
30151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30153 # Handling of arguments.
30154 for ac_config_target in $ac_config_targets
30156 case $ac_config_target in
30157 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30158 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30159 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30160 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30161 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30162 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30163 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30164 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30165 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30167 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30168 esac
30169 done
30172 # If the user did not use the arguments to specify the items to instantiate,
30173 # then the envvar interface is used. Set only those that are not.
30174 # We use the long form for the default assignment because of an extremely
30175 # bizarre bug on SunOS 4.1.3.
30176 if $ac_need_defaults; then
30177 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30178 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30179 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30180 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30183 # Have a temporary directory for convenience. Make it in the build tree
30184 # simply because there is no reason against having it here, and in addition,
30185 # creating and moving files from /tmp can sometimes cause problems.
30186 # Hook for its removal unless debugging.
30187 # Note that there is a small window in which the directory will not be cleaned:
30188 # after its creation but before its name has been assigned to `$tmp'.
30189 $debug ||
30191 tmp=
30192 trap 'exit_status=$?
30193 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30195 trap 'as_fn_exit 1' 1 2 13 15
30197 # Create a (secure) tmp directory for tmp files.
30200 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30201 test -n "$tmp" && test -d "$tmp"
30202 } ||
30204 tmp=./conf$$-$RANDOM
30205 (umask 077 && mkdir "$tmp")
30206 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30208 # Set up the scripts for CONFIG_FILES section.
30209 # No need to generate them if there are no CONFIG_FILES.
30210 # This happens for instance with `./config.status config.h'.
30211 if test -n "$CONFIG_FILES"; then
30213 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30214 ac_cs_awk_getline=:
30215 ac_cs_awk_pipe_init=
30216 ac_cs_awk_read_file='
30217 while ((getline aline < (F[key])) > 0)
30218 print(aline)
30219 close(F[key])'
30220 ac_cs_awk_pipe_fini=
30221 else
30222 ac_cs_awk_getline=false
30223 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30224 ac_cs_awk_read_file='
30225 print "|#_!!_#|"
30226 print "cat " F[key] " &&"
30227 '$ac_cs_awk_pipe_init
30228 # The final `:' finishes the AND list.
30229 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30231 ac_cr=`echo X | tr X '\015'`
30232 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30233 # But we know of no other shell where ac_cr would be empty at this
30234 # point, so we can use a bashism as a fallback.
30235 if test "x$ac_cr" = x; then
30236 eval ac_cr=\$\'\\r\'
30238 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30239 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30240 ac_cs_awk_cr='\r'
30241 else
30242 ac_cs_awk_cr=$ac_cr
30245 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30246 _ACEOF
30248 # Create commands to substitute file output variables.
30250 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30251 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30252 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30253 echo "_ACAWK" &&
30254 echo "_ACEOF"
30255 } >conf$$files.sh &&
30256 . ./conf$$files.sh ||
30257 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30258 rm -f conf$$files.sh
30261 echo "cat >conf$$subs.awk <<_ACEOF" &&
30262 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30263 echo "_ACEOF"
30264 } >conf$$subs.sh ||
30265 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30266 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30267 ac_delim='%!_!# '
30268 for ac_last_try in false false false false false :; do
30269 . ./conf$$subs.sh ||
30270 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30272 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30273 if test $ac_delim_n = $ac_delim_num; then
30274 break
30275 elif $ac_last_try; then
30276 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30277 else
30278 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30280 done
30281 rm -f conf$$subs.sh
30283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30284 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30285 _ACEOF
30286 sed -n '
30288 s/^/S["/; s/!.*/"]=/
30291 s/^[^!]*!//
30292 :repl
30293 t repl
30294 s/'"$ac_delim"'$//
30295 t delim
30298 s/\(.\{148\}\).*/\1/
30299 t more1
30300 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30303 b repl
30304 :more1
30305 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30308 s/.\{148\}//
30309 t nl
30310 :delim
30312 s/\(.\{148\}\).*/\1/
30313 t more2
30314 s/["\\]/\\&/g; s/^/"/; s/$/"/
30317 :more2
30318 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30321 s/.\{148\}//
30322 t delim
30323 ' <conf$$subs.awk | sed '
30324 /^[^""]/{
30326 s/\n//
30328 ' >>$CONFIG_STATUS || ac_write_fail=1
30329 rm -f conf$$subs.awk
30330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30331 _ACAWK
30332 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30333 for (key in S) S_is_set[key] = 1
30334 FS = "\a"
30335 \$ac_cs_awk_pipe_init
30338 line = $ 0
30339 nfields = split(line, field, "@")
30340 substed = 0
30341 len = length(field[1])
30342 for (i = 2; i < nfields; i++) {
30343 key = field[i]
30344 keylen = length(key)
30345 if (S_is_set[key]) {
30346 value = S[key]
30347 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30348 len += length(value) + length(field[++i])
30349 substed = 1
30350 } else
30351 len += 1 + keylen
30353 if (nfields == 3 && !substed) {
30354 key = field[2]
30355 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30356 \$ac_cs_awk_read_file
30357 next
30360 print line
30362 \$ac_cs_awk_pipe_fini
30363 _ACAWK
30364 _ACEOF
30365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30366 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30367 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30368 else
30370 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30371 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30372 _ACEOF
30374 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30375 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30376 # trailing colons and then remove the whole line if VPATH becomes empty
30377 # (actually we leave an empty line to preserve line numbers).
30378 if test "x$srcdir" = x.; then
30379 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30380 s/:*\$(srcdir):*/:/
30381 s/:*\${srcdir}:*/:/
30382 s/:*@srcdir@:*/:/
30383 s/^\([^=]*=[ ]*\):*/\1/
30384 s/:*$//
30385 s/^[^=]*=[ ]*$//
30389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30390 fi # test -n "$CONFIG_FILES"
30392 # Set up the scripts for CONFIG_HEADERS section.
30393 # No need to generate them if there are no CONFIG_HEADERS.
30394 # This happens for instance with `./config.status Makefile'.
30395 if test -n "$CONFIG_HEADERS"; then
30396 cat >"$tmp/defines.awk" <<\_ACAWK ||
30397 BEGIN {
30398 _ACEOF
30400 # Transform confdefs.h into an awk script `defines.awk', embedded as
30401 # here-document in config.status, that substitutes the proper values into
30402 # config.h.in to produce config.h.
30404 # Create a delimiter string that does not exist in confdefs.h, to ease
30405 # handling of long lines.
30406 ac_delim='%!_!# '
30407 for ac_last_try in false false :; do
30408 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30409 if test -z "$ac_t"; then
30410 break
30411 elif $ac_last_try; then
30412 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30413 else
30414 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30416 done
30418 # For the awk script, D is an array of macro values keyed by name,
30419 # likewise P contains macro parameters if any. Preserve backslash
30420 # newline sequences.
30422 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30423 sed -n '
30424 s/.\{148\}/&'"$ac_delim"'/g
30425 t rset
30426 :rset
30427 s/^[ ]*#[ ]*define[ ][ ]*/ /
30428 t def
30430 :def
30431 s/\\$//
30432 t bsnl
30433 s/["\\]/\\&/g
30434 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30435 D["\1"]=" \3"/p
30436 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30438 :bsnl
30439 s/["\\]/\\&/g
30440 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30441 D["\1"]=" \3\\\\\\n"\\/p
30442 t cont
30443 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30444 t cont
30446 :cont
30448 s/.\{148\}/&'"$ac_delim"'/g
30449 t clear
30450 :clear
30451 s/\\$//
30452 t bsnlc
30453 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30455 :bsnlc
30456 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30457 b cont
30458 ' <confdefs.h | sed '
30459 s/'"$ac_delim"'/"\\\
30460 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30463 for (key in D) D_is_set[key] = 1
30464 FS = "\a"
30466 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30467 line = \$ 0
30468 split(line, arg, " ")
30469 if (arg[1] == "#") {
30470 defundef = arg[2]
30471 mac1 = arg[3]
30472 } else {
30473 defundef = substr(arg[1], 2)
30474 mac1 = arg[2]
30476 split(mac1, mac2, "(") #)
30477 macro = mac2[1]
30478 prefix = substr(line, 1, index(line, defundef) - 1)
30479 if (D_is_set[macro]) {
30480 # Preserve the white space surrounding the "#".
30481 print prefix "define", macro P[macro] D[macro]
30482 next
30483 } else {
30484 # Replace #undef with comments. This is necessary, for example,
30485 # in the case of _POSIX_SOURCE, which is predefined and required
30486 # on some systems where configure will not decide to define it.
30487 if (defundef == "undef") {
30488 print "/*", prefix defundef, macro, "*/"
30489 next
30493 { print }
30494 _ACAWK
30495 _ACEOF
30496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30497 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30498 fi # test -n "$CONFIG_HEADERS"
30501 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30502 shift
30503 for ac_tag
30505 case $ac_tag in
30506 :[FHLC]) ac_mode=$ac_tag; continue;;
30507 esac
30508 case $ac_mode$ac_tag in
30509 :[FHL]*:*);;
30510 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30511 :[FH]-) ac_tag=-:-;;
30512 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30513 esac
30514 ac_save_IFS=$IFS
30515 IFS=:
30516 set x $ac_tag
30517 IFS=$ac_save_IFS
30518 shift
30519 ac_file=$1
30520 shift
30522 case $ac_mode in
30523 :L) ac_source=$1;;
30524 :[FH])
30525 ac_file_inputs=
30526 for ac_f
30528 case $ac_f in
30529 -) ac_f="$tmp/stdin";;
30530 *) # Look for the file first in the build tree, then in the source tree
30531 # (if the path is not absolute). The absolute path cannot be DOS-style,
30532 # because $ac_f cannot contain `:'.
30533 test -f "$ac_f" ||
30534 case $ac_f in
30535 [\\/$]*) false;;
30536 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30537 esac ||
30538 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30539 esac
30540 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30541 as_fn_append ac_file_inputs " '$ac_f'"
30542 done
30544 # Let's still pretend it is `configure' which instantiates (i.e., don't
30545 # use $as_me), people would be surprised to read:
30546 # /* config.h. Generated by config.status. */
30547 configure_input='Generated from '`
30548 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30549 `' by configure.'
30550 if test x"$ac_file" != x-; then
30551 configure_input="$ac_file. $configure_input"
30552 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30553 $as_echo "$as_me: creating $ac_file" >&6;}
30555 # Neutralize special characters interpreted by sed in replacement strings.
30556 case $configure_input in #(
30557 *\&* | *\|* | *\\* )
30558 ac_sed_conf_input=`$as_echo "$configure_input" |
30559 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30560 *) ac_sed_conf_input=$configure_input;;
30561 esac
30563 case $ac_tag in
30564 *:-:* | *:-) cat >"$tmp/stdin" \
30565 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30566 esac
30568 esac
30570 ac_dir=`$as_dirname -- "$ac_file" ||
30571 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30572 X"$ac_file" : 'X\(//\)[^/]' \| \
30573 X"$ac_file" : 'X\(//\)$' \| \
30574 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30575 $as_echo X"$ac_file" |
30576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30577 s//\1/
30580 /^X\(\/\/\)[^/].*/{
30581 s//\1/
30584 /^X\(\/\/\)$/{
30585 s//\1/
30588 /^X\(\/\).*/{
30589 s//\1/
30592 s/.*/./; q'`
30593 as_dir="$ac_dir"; as_fn_mkdir_p
30594 ac_builddir=.
30596 case "$ac_dir" in
30597 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30599 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30600 # A ".." for each directory in $ac_dir_suffix.
30601 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30602 case $ac_top_builddir_sub in
30603 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30604 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30605 esac ;;
30606 esac
30607 ac_abs_top_builddir=$ac_pwd
30608 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30609 # for backward compatibility:
30610 ac_top_builddir=$ac_top_build_prefix
30612 case $srcdir in
30613 .) # We are building in place.
30614 ac_srcdir=.
30615 ac_top_srcdir=$ac_top_builddir_sub
30616 ac_abs_top_srcdir=$ac_pwd ;;
30617 [\\/]* | ?:[\\/]* ) # Absolute name.
30618 ac_srcdir=$srcdir$ac_dir_suffix;
30619 ac_top_srcdir=$srcdir
30620 ac_abs_top_srcdir=$srcdir ;;
30621 *) # Relative name.
30622 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30623 ac_top_srcdir=$ac_top_build_prefix$srcdir
30624 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30625 esac
30626 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30629 case $ac_mode in
30632 # CONFIG_FILE
30635 _ACEOF
30637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30638 # If the template does not know about datarootdir, expand it.
30639 # FIXME: This hack should be removed a few years after 2.60.
30640 ac_datarootdir_hack=; ac_datarootdir_seen=
30641 ac_sed_dataroot='
30642 /datarootdir/ {
30646 /@datadir@/p
30647 /@docdir@/p
30648 /@infodir@/p
30649 /@localedir@/p
30650 /@mandir@/p'
30651 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30652 *datarootdir*) ac_datarootdir_seen=yes;;
30653 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30655 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30656 _ACEOF
30657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30658 ac_datarootdir_hack='
30659 s&@datadir@&$datadir&g
30660 s&@docdir@&$docdir&g
30661 s&@infodir@&$infodir&g
30662 s&@localedir@&$localedir&g
30663 s&@mandir@&$mandir&g
30664 s&\\\${datarootdir}&$datarootdir&g' ;;
30665 esac
30666 _ACEOF
30668 # Neutralize VPATH when `$srcdir' = `.'.
30669 # Shell code in configure.ac might set extrasub.
30670 # FIXME: do we really want to maintain this feature?
30671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30672 ac_sed_extra="$ac_vpsub
30673 $extrasub
30674 _ACEOF
30675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30677 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30678 s|@configure_input@|$ac_sed_conf_input|;t t
30679 s&@top_builddir@&$ac_top_builddir_sub&;t t
30680 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30681 s&@srcdir@&$ac_srcdir&;t t
30682 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30683 s&@top_srcdir@&$ac_top_srcdir&;t t
30684 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30685 s&@builddir@&$ac_builddir&;t t
30686 s&@abs_builddir@&$ac_abs_builddir&;t t
30687 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30688 $ac_datarootdir_hack
30690 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30691 if $ac_cs_awk_getline; then
30692 $AWK -f "$tmp/subs.awk"
30693 else
30694 $AWK -f "$tmp/subs.awk" | $SHELL
30695 fi >$tmp/out \
30696 || as_fn_error "could not create $ac_file" "$LINENO" 5
30698 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30699 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30700 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30702 which seems to be undefined. Please make sure it is defined." >&5
30703 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30704 which seems to be undefined. Please make sure it is defined." >&2;}
30706 rm -f "$tmp/stdin"
30707 case $ac_file in
30708 -) cat "$tmp/out" && rm -f "$tmp/out";;
30709 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30710 esac \
30711 || as_fn_error "could not create $ac_file" "$LINENO" 5
30715 # CONFIG_HEADER
30717 if test x"$ac_file" != x-; then
30719 $as_echo "/* $configure_input */" \
30720 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30721 } >"$tmp/config.h" \
30722 || as_fn_error "could not create $ac_file" "$LINENO" 5
30723 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30724 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30725 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30726 else
30727 rm -f "$ac_file"
30728 mv "$tmp/config.h" "$ac_file" \
30729 || as_fn_error "could not create $ac_file" "$LINENO" 5
30731 else
30732 $as_echo "/* $configure_input */" \
30733 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30734 || as_fn_error "could not create -" "$LINENO" 5
30739 # CONFIG_LINK
30742 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30744 else
30745 # Prefer the file from the source tree if names are identical.
30746 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30747 ac_source=$srcdir/$ac_source
30750 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30751 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30753 if test ! -r "$ac_source"; then
30754 as_fn_error "$ac_source: file not found" "$LINENO" 5
30756 rm -f "$ac_file"
30758 # Try a relative symlink, then a hard link, then a copy.
30759 case $srcdir in
30760 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30761 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30762 esac
30763 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30764 ln "$ac_source" "$ac_file" 2>/dev/null ||
30765 cp -p "$ac_source" "$ac_file" ||
30766 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30769 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30770 $as_echo "$as_me: executing $ac_file commands" >&6;}
30772 esac
30775 case $ac_file$ac_mode in
30776 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30777 "gccdepdir":C)
30778 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30779 for lang in $subdirs c-family common
30781 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30782 done ;;
30783 "as":F) chmod +x as ;;
30784 "collect-ld":F) chmod +x collect-ld ;;
30785 "nm":F) chmod +x nm ;;
30786 "default":C)
30787 case ${CONFIG_HEADERS} in
30788 *auto-host.h:config.in*)
30789 echo > cstamp-h ;;
30790 esac
30791 # Make sure all the subdirs exist.
30792 for d in $subdirs doc build common c-family
30794 test -d $d || mkdir $d
30795 done
30798 esac
30799 done # for ac_tag
30802 as_fn_exit 0
30803 _ACEOF
30804 ac_clean_files=$ac_clean_files_save
30806 test $ac_write_fail = 0 ||
30807 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30810 # configure is writing to config.log, and then calls config.status.
30811 # config.status does its own redirection, appending to config.log.
30812 # Unfortunately, on DOS this fails, as config.log is still kept open
30813 # by configure, so config.status won't be able to write to it; its
30814 # output is simply discarded. So we exec the FD to /dev/null,
30815 # effectively closing config.log, so it can be properly (re)opened and
30816 # appended to by config.status. When coming back to configure, we
30817 # need to make the FD available again.
30818 if test "$no_create" != yes; then
30819 ac_cs_success=:
30820 ac_config_status_args=
30821 test "$silent" = yes &&
30822 ac_config_status_args="$ac_config_status_args --quiet"
30823 exec 5>/dev/null
30824 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30825 exec 5>>config.log
30826 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30827 # would make configure fail if this is the last instruction.
30828 $ac_cs_success || as_fn_exit $?
30830 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30832 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}