2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / configure
blob73c1850ee26e1181e97730666c472e20572ac3fd
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 target_os
826 target_vendor
827 target_cpu
828 target
829 host_os
830 host_vendor
831 host_cpu
832 host
833 build_os
834 build_vendor
835 build_cpu
836 build
837 target_alias
838 host_alias
839 build_alias
840 LIBS
841 ECHO_T
842 ECHO_N
843 ECHO_C
844 DEFS
845 mandir
846 localedir
847 libdir
848 psdir
849 pdfdir
850 dvidir
851 htmldir
852 infodir
853 docdir
854 oldincludedir
855 includedir
856 localstatedir
857 sharedstatedir
858 sysconfdir
859 datadir
860 datarootdir
861 libexecdir
862 sbindir
863 bindir
864 program_transform_name
865 prefix
866 exec_prefix
867 PACKAGE_URL
868 PACKAGE_BUGREPORT
869 PACKAGE_STRING
870 PACKAGE_VERSION
871 PACKAGE_TARNAME
872 PACKAGE_NAME
873 PATH_SEPARATOR
874 SHELL'
875 ac_subst_files='option_includes
876 language_hooks'
877 ac_user_opts='
878 enable_option_checking
879 with_build_libsubdir
880 with_local_prefix
881 with_native_system_header_dir
882 with_build_sysroot
883 with_sysroot
884 with_gxx_include_dir
885 with_cpp_install_dir
886 enable_generated_files_in_srcdir
887 with_gnu_ld
888 with_ld
889 with_demangler_in_ld
890 with_gnu_as
891 with_as
892 enable_largefile
893 enable_build_format_warnings
894 enable_werror_always
895 enable_checking
896 enable_coverage
897 enable_gather_detailed_mem_stats
898 enable_valgrind_annotations
899 with_stabs
900 enable_multilib
901 enable_multiarch
902 enable___cxa_atexit
903 enable_decimal_float
904 enable_fixed_point
905 enable_threads
906 enable_tls
907 enable_objc_gc
908 with_dwarf2
909 enable_shared
910 with_specs
911 with_pkgversion
912 with_bugurl
913 enable_languages
914 with_multilib_list
915 enable_rpath
916 with_libiconv_prefix
917 enable_sjlj_exceptions
918 enable_secureplt
919 enable_leading_mingw64_underscores
920 enable_cld
921 enable_frame_pointer
922 enable_win32_registry
923 enable_static
924 with_pic
925 enable_fast_install
926 enable_libtool_lock
927 enable_ld
928 enable_gold
929 with_plugin_ld
930 enable_gnu_indirect_function
931 enable_initfini_array
932 enable_comdat
933 enable_fix_cortex_a53_835769
934 enable_fix_cortex_a53_843419
935 with_glibc_version
936 enable_gnu_unique_object
937 enable_linker_build_id
938 enable_default_ssp
939 with_long_double_128
940 with_gc
941 with_system_zlib
942 enable_maintainer_mode
943 enable_link_mutex
944 enable_version_specific_runtime_libs
945 enable_plugin
946 enable_host_shared
947 enable_libquadmath_support
948 with_linker_hash_style
949 with_diagnostics_color
950 enable_default_pie
952 ac_precious_vars='build_alias
953 host_alias
954 target_alias
956 CFLAGS
957 LDFLAGS
958 LIBS
959 CPPFLAGS
961 CXXFLAGS
963 CXXCPP
965 GMPLIBS
966 GMPINC
967 ISLLIBS
968 ISLINC'
971 # Initialize some variables set by options.
972 ac_init_help=
973 ac_init_version=false
974 ac_unrecognized_opts=
975 ac_unrecognized_sep=
976 # The variables have the same names as the options, with
977 # dashes changed to underlines.
978 cache_file=/dev/null
979 exec_prefix=NONE
980 no_create=
981 no_recursion=
982 prefix=NONE
983 program_prefix=NONE
984 program_suffix=NONE
985 program_transform_name=s,x,x,
986 silent=
987 site=
988 srcdir=
989 verbose=
990 x_includes=NONE
991 x_libraries=NONE
993 # Installation directory options.
994 # These are left unexpanded so users can "make install exec_prefix=/foo"
995 # and all the variables that are supposed to be based on exec_prefix
996 # by default will actually change.
997 # Use braces instead of parens because sh, perl, etc. also accept them.
998 # (The list follows the same order as the GNU Coding Standards.)
999 bindir='${exec_prefix}/bin'
1000 sbindir='${exec_prefix}/sbin'
1001 libexecdir='${exec_prefix}/libexec'
1002 datarootdir='${prefix}/share'
1003 datadir='${datarootdir}'
1004 sysconfdir='${prefix}/etc'
1005 sharedstatedir='${prefix}/com'
1006 localstatedir='${prefix}/var'
1007 includedir='${prefix}/include'
1008 oldincludedir='/usr/include'
1009 docdir='${datarootdir}/doc/${PACKAGE}'
1010 infodir='${datarootdir}/info'
1011 htmldir='${docdir}'
1012 dvidir='${docdir}'
1013 pdfdir='${docdir}'
1014 psdir='${docdir}'
1015 libdir='${exec_prefix}/lib'
1016 localedir='${datarootdir}/locale'
1017 mandir='${datarootdir}/man'
1019 ac_prev=
1020 ac_dashdash=
1021 for ac_option
1023 # If the previous option needs an argument, assign it.
1024 if test -n "$ac_prev"; then
1025 eval $ac_prev=\$ac_option
1026 ac_prev=
1027 continue
1030 case $ac_option in
1031 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1032 *) ac_optarg=yes ;;
1033 esac
1035 # Accept the important Cygnus configure options, so we can diagnose typos.
1037 case $ac_dashdash$ac_option in
1039 ac_dashdash=yes ;;
1041 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1042 ac_prev=bindir ;;
1043 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1044 bindir=$ac_optarg ;;
1046 -build | --build | --buil | --bui | --bu)
1047 ac_prev=build_alias ;;
1048 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1049 build_alias=$ac_optarg ;;
1051 -cache-file | --cache-file | --cache-fil | --cache-fi \
1052 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1053 ac_prev=cache_file ;;
1054 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1055 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1056 cache_file=$ac_optarg ;;
1058 --config-cache | -C)
1059 cache_file=config.cache ;;
1061 -datadir | --datadir | --datadi | --datad)
1062 ac_prev=datadir ;;
1063 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1064 datadir=$ac_optarg ;;
1066 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1067 | --dataroo | --dataro | --datar)
1068 ac_prev=datarootdir ;;
1069 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1070 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1071 datarootdir=$ac_optarg ;;
1073 -disable-* | --disable-*)
1074 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077 as_fn_error "invalid feature name: $ac_useropt"
1078 ac_useropt_orig=$ac_useropt
1079 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080 case $ac_user_opts in
1082 "enable_$ac_useropt"
1083 "*) ;;
1084 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1085 ac_unrecognized_sep=', ';;
1086 esac
1087 eval enable_$ac_useropt=no ;;
1089 -docdir | --docdir | --docdi | --doc | --do)
1090 ac_prev=docdir ;;
1091 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1092 docdir=$ac_optarg ;;
1094 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1095 ac_prev=dvidir ;;
1096 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1097 dvidir=$ac_optarg ;;
1099 -enable-* | --enable-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error "invalid feature name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1108 "enable_$ac_useropt"
1109 "*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval enable_$ac_useropt=\$ac_optarg ;;
1115 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1116 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1117 | --exec | --exe | --ex)
1118 ac_prev=exec_prefix ;;
1119 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1120 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1121 | --exec=* | --exe=* | --ex=*)
1122 exec_prefix=$ac_optarg ;;
1124 -gas | --gas | --ga | --g)
1125 # Obsolete; use --with-gas.
1126 with_gas=yes ;;
1128 -help | --help | --hel | --he | -h)
1129 ac_init_help=long ;;
1130 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1131 ac_init_help=recursive ;;
1132 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1133 ac_init_help=short ;;
1135 -host | --host | --hos | --ho)
1136 ac_prev=host_alias ;;
1137 -host=* | --host=* | --hos=* | --ho=*)
1138 host_alias=$ac_optarg ;;
1140 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1141 ac_prev=htmldir ;;
1142 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1143 | --ht=*)
1144 htmldir=$ac_optarg ;;
1146 -includedir | --includedir | --includedi | --included | --include \
1147 | --includ | --inclu | --incl | --inc)
1148 ac_prev=includedir ;;
1149 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1150 | --includ=* | --inclu=* | --incl=* | --inc=*)
1151 includedir=$ac_optarg ;;
1153 -infodir | --infodir | --infodi | --infod | --info | --inf)
1154 ac_prev=infodir ;;
1155 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1156 infodir=$ac_optarg ;;
1158 -libdir | --libdir | --libdi | --libd)
1159 ac_prev=libdir ;;
1160 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1161 libdir=$ac_optarg ;;
1163 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1164 | --libexe | --libex | --libe)
1165 ac_prev=libexecdir ;;
1166 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1167 | --libexe=* | --libex=* | --libe=*)
1168 libexecdir=$ac_optarg ;;
1170 -localedir | --localedir | --localedi | --localed | --locale)
1171 ac_prev=localedir ;;
1172 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1173 localedir=$ac_optarg ;;
1175 -localstatedir | --localstatedir | --localstatedi | --localstated \
1176 | --localstate | --localstat | --localsta | --localst | --locals)
1177 ac_prev=localstatedir ;;
1178 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1179 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1180 localstatedir=$ac_optarg ;;
1182 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1183 ac_prev=mandir ;;
1184 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1185 mandir=$ac_optarg ;;
1187 -nfp | --nfp | --nf)
1188 # Obsolete; use --without-fp.
1189 with_fp=no ;;
1191 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1192 | --no-cr | --no-c | -n)
1193 no_create=yes ;;
1195 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1196 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1197 no_recursion=yes ;;
1199 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1200 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1201 | --oldin | --oldi | --old | --ol | --o)
1202 ac_prev=oldincludedir ;;
1203 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1204 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1205 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1206 oldincludedir=$ac_optarg ;;
1208 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1209 ac_prev=prefix ;;
1210 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1211 prefix=$ac_optarg ;;
1213 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1214 | --program-pre | --program-pr | --program-p)
1215 ac_prev=program_prefix ;;
1216 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1217 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1218 program_prefix=$ac_optarg ;;
1220 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1221 | --program-suf | --program-su | --program-s)
1222 ac_prev=program_suffix ;;
1223 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1224 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1225 program_suffix=$ac_optarg ;;
1227 -program-transform-name | --program-transform-name \
1228 | --program-transform-nam | --program-transform-na \
1229 | --program-transform-n | --program-transform- \
1230 | --program-transform | --program-transfor \
1231 | --program-transfo | --program-transf \
1232 | --program-trans | --program-tran \
1233 | --progr-tra | --program-tr | --program-t)
1234 ac_prev=program_transform_name ;;
1235 -program-transform-name=* | --program-transform-name=* \
1236 | --program-transform-nam=* | --program-transform-na=* \
1237 | --program-transform-n=* | --program-transform-=* \
1238 | --program-transform=* | --program-transfor=* \
1239 | --program-transfo=* | --program-transf=* \
1240 | --program-trans=* | --program-tran=* \
1241 | --progr-tra=* | --program-tr=* | --program-t=*)
1242 program_transform_name=$ac_optarg ;;
1244 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1245 ac_prev=pdfdir ;;
1246 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1247 pdfdir=$ac_optarg ;;
1249 -psdir | --psdir | --psdi | --psd | --ps)
1250 ac_prev=psdir ;;
1251 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1252 psdir=$ac_optarg ;;
1254 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1255 | -silent | --silent | --silen | --sile | --sil)
1256 silent=yes ;;
1258 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1259 ac_prev=sbindir ;;
1260 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1261 | --sbi=* | --sb=*)
1262 sbindir=$ac_optarg ;;
1264 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1265 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1266 | --sharedst | --shareds | --shared | --share | --shar \
1267 | --sha | --sh)
1268 ac_prev=sharedstatedir ;;
1269 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1270 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1271 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1272 | --sha=* | --sh=*)
1273 sharedstatedir=$ac_optarg ;;
1275 -site | --site | --sit)
1276 ac_prev=site ;;
1277 -site=* | --site=* | --sit=*)
1278 site=$ac_optarg ;;
1280 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1281 ac_prev=srcdir ;;
1282 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1283 srcdir=$ac_optarg ;;
1285 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1286 | --syscon | --sysco | --sysc | --sys | --sy)
1287 ac_prev=sysconfdir ;;
1288 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1289 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1290 sysconfdir=$ac_optarg ;;
1292 -target | --target | --targe | --targ | --tar | --ta | --t)
1293 ac_prev=target_alias ;;
1294 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1295 target_alias=$ac_optarg ;;
1297 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1298 verbose=yes ;;
1300 -version | --version | --versio | --versi | --vers | -V)
1301 ac_init_version=: ;;
1303 -with-* | --with-*)
1304 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1305 # Reject names that are not valid shell variable names.
1306 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1307 as_fn_error "invalid package name: $ac_useropt"
1308 ac_useropt_orig=$ac_useropt
1309 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1310 case $ac_user_opts in
1312 "with_$ac_useropt"
1313 "*) ;;
1314 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1315 ac_unrecognized_sep=', ';;
1316 esac
1317 eval with_$ac_useropt=\$ac_optarg ;;
1319 -without-* | --without-*)
1320 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1323 as_fn_error "invalid package name: $ac_useropt"
1324 ac_useropt_orig=$ac_useropt
1325 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1326 case $ac_user_opts in
1328 "with_$ac_useropt"
1329 "*) ;;
1330 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1331 ac_unrecognized_sep=', ';;
1332 esac
1333 eval with_$ac_useropt=no ;;
1335 --x)
1336 # Obsolete; use --with-x.
1337 with_x=yes ;;
1339 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1340 | --x-incl | --x-inc | --x-in | --x-i)
1341 ac_prev=x_includes ;;
1342 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1343 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1344 x_includes=$ac_optarg ;;
1346 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1347 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1348 ac_prev=x_libraries ;;
1349 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1350 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1351 x_libraries=$ac_optarg ;;
1353 -*) as_fn_error "unrecognized option: \`$ac_option'
1354 Try \`$0 --help' for more information."
1357 *=*)
1358 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1359 # Reject names that are not valid shell variable names.
1360 case $ac_envvar in #(
1361 '' | [0-9]* | *[!_$as_cr_alnum]* )
1362 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1363 esac
1364 eval $ac_envvar=\$ac_optarg
1365 export $ac_envvar ;;
1368 # FIXME: should be removed in autoconf 3.0.
1369 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1370 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1371 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1372 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1375 esac
1376 done
1378 if test -n "$ac_prev"; then
1379 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1380 as_fn_error "missing argument to $ac_option"
1383 if test -n "$ac_unrecognized_opts"; then
1384 case $enable_option_checking in
1385 no) ;;
1386 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1387 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1388 esac
1391 # Check all directory arguments for consistency.
1392 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1393 datadir sysconfdir sharedstatedir localstatedir includedir \
1394 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1395 libdir localedir mandir
1397 eval ac_val=\$$ac_var
1398 # Remove trailing slashes.
1399 case $ac_val in
1400 */ )
1401 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1402 eval $ac_var=\$ac_val;;
1403 esac
1404 # Be sure to have absolute directory names.
1405 case $ac_val in
1406 [\\/$]* | ?:[\\/]* ) continue;;
1407 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1408 esac
1409 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1410 done
1412 # There might be people who depend on the old broken behavior: `$host'
1413 # used to hold the argument of --host etc.
1414 # FIXME: To remove some day.
1415 build=$build_alias
1416 host=$host_alias
1417 target=$target_alias
1419 # FIXME: To remove some day.
1420 if test "x$host_alias" != x; then
1421 if test "x$build_alias" = x; then
1422 cross_compiling=maybe
1423 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1424 If a cross compiler is detected then cross compile mode will be used." >&2
1425 elif test "x$build_alias" != "x$host_alias"; then
1426 cross_compiling=yes
1430 ac_tool_prefix=
1431 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1433 test "$silent" = yes && exec 6>/dev/null
1436 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1437 ac_ls_di=`ls -di .` &&
1438 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1439 as_fn_error "working directory cannot be determined"
1440 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1441 as_fn_error "pwd does not report name of working directory"
1444 # Find the source files, if location was not specified.
1445 if test -z "$srcdir"; then
1446 ac_srcdir_defaulted=yes
1447 # Try the directory containing this script, then the parent directory.
1448 ac_confdir=`$as_dirname -- "$as_myself" ||
1449 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1450 X"$as_myself" : 'X\(//\)[^/]' \| \
1451 X"$as_myself" : 'X\(//\)$' \| \
1452 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1453 $as_echo X"$as_myself" |
1454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1455 s//\1/
1458 /^X\(\/\/\)[^/].*/{
1459 s//\1/
1462 /^X\(\/\/\)$/{
1463 s//\1/
1466 /^X\(\/\).*/{
1467 s//\1/
1470 s/.*/./; q'`
1471 srcdir=$ac_confdir
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1473 srcdir=..
1475 else
1476 ac_srcdir_defaulted=no
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1479 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1480 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1482 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1483 ac_abs_confdir=`(
1484 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1485 pwd)`
1486 # When building in place, set srcdir=.
1487 if test "$ac_abs_confdir" = "$ac_pwd"; then
1488 srcdir=.
1490 # Remove unnecessary trailing slashes from srcdir.
1491 # Double slashes in file names in object file debugging info
1492 # mess up M-x gdb in Emacs.
1493 case $srcdir in
1494 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1495 esac
1496 for ac_var in $ac_precious_vars; do
1497 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1498 eval ac_env_${ac_var}_value=\$${ac_var}
1499 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1500 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1501 done
1504 # Report the --help message.
1506 if test "$ac_init_help" = "long"; then
1507 # Omit some internal or obsolete options to make the list less imposing.
1508 # This message is too long to be a string in the A/UX 3.1 sh.
1509 cat <<_ACEOF
1510 \`configure' configures this package to adapt to many kinds of systems.
1512 Usage: $0 [OPTION]... [VAR=VALUE]...
1514 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1515 VAR=VALUE. See below for descriptions of some of the useful variables.
1517 Defaults for the options are specified in brackets.
1519 Configuration:
1520 -h, --help display this help and exit
1521 --help=short display options specific to this package
1522 --help=recursive display the short help of all the included packages
1523 -V, --version display version information and exit
1524 -q, --quiet, --silent do not print \`checking...' messages
1525 --cache-file=FILE cache test results in FILE [disabled]
1526 -C, --config-cache alias for \`--cache-file=config.cache'
1527 -n, --no-create do not create output files
1528 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1530 Installation directories:
1531 --prefix=PREFIX install architecture-independent files in PREFIX
1532 [$ac_default_prefix]
1533 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1534 [PREFIX]
1536 By default, \`make install' will install all the files in
1537 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1538 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1539 for instance \`--prefix=\$HOME'.
1541 For better control, use the options below.
1543 Fine tuning of the installation directories:
1544 --bindir=DIR user executables [EPREFIX/bin]
1545 --sbindir=DIR system admin executables [EPREFIX/sbin]
1546 --libexecdir=DIR program executables [EPREFIX/libexec]
1547 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1548 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1549 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1550 --libdir=DIR object code libraries [EPREFIX/lib]
1551 --includedir=DIR C header files [PREFIX/include]
1552 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1553 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1554 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1555 --infodir=DIR info documentation [DATAROOTDIR/info]
1556 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1557 --mandir=DIR man documentation [DATAROOTDIR/man]
1558 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1559 --htmldir=DIR html documentation [DOCDIR]
1560 --dvidir=DIR dvi documentation [DOCDIR]
1561 --pdfdir=DIR pdf documentation [DOCDIR]
1562 --psdir=DIR ps documentation [DOCDIR]
1563 _ACEOF
1565 cat <<\_ACEOF
1567 Program names:
1568 --program-prefix=PREFIX prepend PREFIX to installed program names
1569 --program-suffix=SUFFIX append SUFFIX to installed program names
1570 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1572 System types:
1573 --build=BUILD configure for building on BUILD [guessed]
1574 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1575 --target=TARGET configure for building compilers for TARGET [HOST]
1576 _ACEOF
1579 if test -n "$ac_init_help"; then
1581 cat <<\_ACEOF
1583 Optional Features:
1584 --disable-option-checking ignore unrecognized --enable/--with options
1585 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1586 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1587 --enable-generated-files-in-srcdir
1588 put copies of generated files in source dir intended
1589 for creating source tarballs for users without
1590 texinfo bison or flex
1591 --disable-largefile omit support for large files
1592 --disable-build-format-warnings
1593 don't use -Wformat while building GCC
1594 --enable-werror-always enable -Werror despite compiler version
1595 --enable-checking[=LIST]
1596 enable expensive run-time checks. With LIST, enable
1597 only specific categories of checks. Categories are:
1598 yes,no,all,none,release. Flags are:
1599 assert,df,fold,gc,gcac,gimple,misc,
1600 rtlflag,rtl,runtime,tree,valgrind,types
1601 --enable-coverage[=LEVEL]
1602 enable compiler's code coverage collection. Use to
1603 measure compiler performance and locate unused parts
1604 of the compiler. With LEVEL, specify optimization.
1605 Values are opt, noopt, default is noopt
1606 --enable-gather-detailed-mem-stats
1607 enable detailed memory allocation stats gathering
1608 --enable-valgrind-annotations
1609 enable valgrind runtime interaction
1610 --enable-multilib enable library support for multiple ABIs
1611 --enable-multiarch enable support for multiarch paths
1612 --enable-__cxa_atexit enable __cxa_atexit for C++
1613 --enable-decimal-float={no,yes,bid,dpd}
1614 enable decimal float extension to C. Selecting 'bid'
1615 or 'dpd' choses which decimal floating point format
1616 to use
1617 --enable-fixed-point enable fixed-point arithmetic extension to C
1618 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1619 package
1620 --enable-tls enable or disable generation of tls code overriding
1621 the assembler check for tls support
1622 --enable-objc-gc enable the use of Boehm's garbage collector with the
1623 GNU Objective-C runtime
1624 --disable-shared don't provide a shared libgcc
1625 --enable-languages=LIST specify which front-ends to build
1626 --disable-rpath do not hardcode runtime library paths
1627 --enable-sjlj-exceptions
1628 arrange to use setjmp/longjmp exception handling
1629 --enable-secureplt enable -msecure-plt by default for PowerPC
1630 --enable-leading-mingw64-underscores
1631 enable leading underscores on 64 bit mingw targets
1632 --enable-cld enable -mcld by default for 32bit x86
1633 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1635 --disable-win32-registry
1636 disable lookup of installation paths in the Registry
1637 on Windows hosts
1638 --enable-win32-registry enable registry lookup (default)
1639 --enable-win32-registry=KEY
1640 use KEY instead of GCC version as the last portion
1641 of the registry key
1642 --enable-shared[=PKGS] build shared libraries [default=yes]
1643 --enable-static[=PKGS] build static libraries [default=yes]
1644 --enable-fast-install[=PKGS]
1645 optimize for fast installation [default=yes]
1646 --disable-libtool-lock avoid locking (might break parallel builds)
1647 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1648 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1649 --enable-gnu-indirect-function
1650 enable the use of the @gnu_indirect_function to
1651 glibc systems
1652 --enable-initfini-array use .init_array/.fini_array sections
1653 --enable-comdat enable COMDAT group support
1655 --enable-fix-cortex-a53-835769
1656 enable workaround for AArch64 Cortex-A53 erratum
1657 835769 by default
1658 --disable-fix-cortex-a53-835769
1659 disable workaround for AArch64 Cortex-A53 erratum
1660 835769 by default
1663 --enable-fix-cortex-a53-843419
1664 enable workaround for AArch64 Cortex-A53 erratum
1665 843419 by default
1666 --disable-fix-cortex-a53-843419
1667 disable workaround for AArch64 Cortex-A53 erratum
1668 843419 by default
1670 --enable-gnu-unique-object
1671 enable the use of the @gnu_unique_object ELF
1672 extension on glibc systems
1673 --enable-linker-build-id
1674 compiler will always pass --build-id to linker
1675 --enable-default-ssp enable Stack Smashing Protection as default
1676 --enable-maintainer-mode
1677 enable make rules and dependencies not useful (and
1678 sometimes confusing) to the casual installer
1679 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1680 thrashing on the build machine
1681 --enable-version-specific-runtime-libs
1682 specify that runtime libraries should be installed
1683 in a compiler-specific directory
1684 --enable-plugin enable plugin support
1685 --enable-host-shared build host code as shared libraries
1686 --disable-libquadmath-support
1687 disable libquadmath support for Fortran
1688 --enable-default-pie enable Position Independent Executable as default
1690 Optional Packages:
1691 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1692 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1693 --with-build-libsubdir=DIR Directory where to find libraries for build system
1694 --with-local-prefix=DIR specifies directory to put local include
1695 --with-native-system-header-dir=dir
1696 use dir as the directory to look for standard
1697 system header files in. Defaults to /usr/include.
1698 --with-build-sysroot=sysroot
1699 use sysroot as the system root during the build
1700 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1701 --with-gxx-include-dir=DIR
1702 specifies directory to put g++ header files
1703 --with-cpp-install-dir=DIR
1704 install the user visible C preprocessor in DIR
1705 (relative to PREFIX) as well as PREFIX/bin
1706 --with-gnu-ld arrange to work with GNU ld
1707 --with-ld arrange to use the specified ld (full pathname)
1708 --with-demangler-in-ld try to use demangler in GNU ld
1709 --with-gnu-as arrange to work with GNU as
1710 --with-as arrange to use the specified as (full pathname)
1711 --with-stabs arrange to use stabs instead of host debug format
1712 --with-dwarf2 force the default debug format to be DWARF 2
1713 --with-specs=SPECS add SPECS to driver command-line processing
1714 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1715 --with-bugurl=URL Direct users to URL to report a bug
1716 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1717 --with-gnu-ld assume the C compiler uses GNU ld default=no
1718 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1719 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1720 --with-pic try to use only PIC/non-PIC objects [default=use
1721 both]
1722 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1723 --with-plugin-ld=[ARG] specify the plugin linker
1724 --with-glibc-version=M.N
1725 assume GCC used with glibc version M.N or later
1726 --with-long-double-128 use 128-bit long double by default
1727 --with-gc={page,zone} this option is not supported anymore. It used to
1728 choose the garbage collection mechanism to use with
1729 the compiler
1730 --with-system-zlib use installed libz
1731 --with-linker-hash-style={sysv,gnu,both}
1732 specify the linker hash style
1733 --with-diagnostics-color={never,auto,auto-if-env,always}
1734 specify the default of -fdiagnostics-color option
1735 auto-if-env stands for -fdiagnostics-color=auto if
1736 GCC_COLOR environment variable is present and
1737 -fdiagnostics-color=never otherwise
1739 Some influential environment variables:
1740 CC C compiler command
1741 CFLAGS C compiler flags
1742 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1743 nonstandard directory <lib dir>
1744 LIBS libraries to pass to the linker, e.g. -l<library>
1745 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1746 you have headers in a nonstandard directory <include dir>
1747 CXX C++ compiler command
1748 CXXFLAGS C++ compiler flags
1749 CXXCPP C++ preprocessor
1750 CPP C preprocessor
1751 GMPLIBS How to link GMP
1752 GMPINC How to find GMP include files
1753 ISLLIBS How to link isl
1754 ISLINC How to find isl include files
1756 Use these variables to override the choices made by `configure' or to help
1757 it to find libraries and programs with nonstandard names/locations.
1759 Report bugs to the package provider.
1760 _ACEOF
1761 ac_status=$?
1764 if test "$ac_init_help" = "recursive"; then
1765 # If there are subdirs, report their specific --help.
1766 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1767 test -d "$ac_dir" ||
1768 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1769 continue
1770 ac_builddir=.
1772 case "$ac_dir" in
1773 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1775 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1776 # A ".." for each directory in $ac_dir_suffix.
1777 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1778 case $ac_top_builddir_sub in
1779 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1780 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1781 esac ;;
1782 esac
1783 ac_abs_top_builddir=$ac_pwd
1784 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1785 # for backward compatibility:
1786 ac_top_builddir=$ac_top_build_prefix
1788 case $srcdir in
1789 .) # We are building in place.
1790 ac_srcdir=.
1791 ac_top_srcdir=$ac_top_builddir_sub
1792 ac_abs_top_srcdir=$ac_pwd ;;
1793 [\\/]* | ?:[\\/]* ) # Absolute name.
1794 ac_srcdir=$srcdir$ac_dir_suffix;
1795 ac_top_srcdir=$srcdir
1796 ac_abs_top_srcdir=$srcdir ;;
1797 *) # Relative name.
1798 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1799 ac_top_srcdir=$ac_top_build_prefix$srcdir
1800 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1801 esac
1802 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1804 cd "$ac_dir" || { ac_status=$?; continue; }
1805 # Check for guested configure.
1806 if test -f "$ac_srcdir/configure.gnu"; then
1807 echo &&
1808 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1809 elif test -f "$ac_srcdir/configure"; then
1810 echo &&
1811 $SHELL "$ac_srcdir/configure" --help=recursive
1812 else
1813 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1814 fi || ac_status=$?
1815 cd "$ac_pwd" || { ac_status=$?; break; }
1816 done
1819 test -n "$ac_init_help" && exit $ac_status
1820 if $ac_init_version; then
1821 cat <<\_ACEOF
1822 configure
1823 generated by GNU Autoconf 2.64
1825 Copyright (C) 2009 Free Software Foundation, Inc.
1826 This configure script is free software; the Free Software Foundation
1827 gives unlimited permission to copy, distribute and modify it.
1828 _ACEOF
1829 exit
1832 ## ------------------------ ##
1833 ## Autoconf initialization. ##
1834 ## ------------------------ ##
1836 # ac_fn_c_try_compile LINENO
1837 # --------------------------
1838 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_c_try_compile ()
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 rm -f conftest.$ac_objext
1843 if { { ac_try="$ac_compile"
1844 case "(($ac_try" in
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_compile") 2>conftest.err
1851 ac_status=$?
1852 if test -s conftest.err; then
1853 grep -v '^ *+' conftest.err >conftest.er1
1854 cat conftest.er1 >&5
1855 mv -f conftest.er1 conftest.err
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && {
1859 test -z "$ac_c_werror_flag" ||
1860 test ! -s conftest.err
1861 } && test -s conftest.$ac_objext; then :
1862 ac_retval=0
1863 else
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1867 ac_retval=1
1869 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870 return $ac_retval
1872 } # ac_fn_c_try_compile
1874 # ac_fn_cxx_try_compile LINENO
1875 # ----------------------------
1876 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1877 ac_fn_cxx_try_compile ()
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 rm -f conftest.$ac_objext
1881 if { { ac_try="$ac_compile"
1882 case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_compile") 2>conftest.err
1889 ac_status=$?
1890 if test -s conftest.err; then
1891 grep -v '^ *+' conftest.err >conftest.er1
1892 cat conftest.er1 >&5
1893 mv -f conftest.er1 conftest.err
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } && {
1897 test -z "$ac_cxx_werror_flag" ||
1898 test ! -s conftest.err
1899 } && test -s conftest.$ac_objext; then :
1900 ac_retval=0
1901 else
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1905 ac_retval=1
1907 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908 return $ac_retval
1910 } # ac_fn_cxx_try_compile
1912 # ac_fn_cxx_try_cpp LINENO
1913 # ------------------------
1914 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1915 ac_fn_cxx_try_cpp ()
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 if { { ac_try="$ac_cpp conftest.$ac_ext"
1919 case "(($ac_try" in
1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921 *) ac_try_echo=$ac_try;;
1922 esac
1923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924 $as_echo "$ac_try_echo"; } >&5
1925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1926 ac_status=$?
1927 if test -s conftest.err; then
1928 grep -v '^ *+' conftest.err >conftest.er1
1929 cat conftest.er1 >&5
1930 mv -f conftest.er1 conftest.err
1932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1933 test $ac_status = 0; } >/dev/null && {
1934 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1935 test ! -s conftest.err
1936 }; then :
1937 ac_retval=0
1938 else
1939 $as_echo "$as_me: failed program was:" >&5
1940 sed 's/^/| /' conftest.$ac_ext >&5
1942 ac_retval=1
1944 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1945 return $ac_retval
1947 } # ac_fn_cxx_try_cpp
1949 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1950 # ---------------------------------------------------------
1951 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1952 # the include files in INCLUDES and setting the cache variable VAR
1953 # accordingly.
1954 ac_fn_cxx_check_header_mongrel ()
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961 $as_echo_n "(cached) " >&6
1963 eval ac_res=\$$3
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 else
1967 # Is the header compilable?
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1969 $as_echo_n "checking $2 usability... " >&6; }
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1973 #include <$2>
1974 _ACEOF
1975 if ac_fn_cxx_try_compile "$LINENO"; then :
1976 ac_header_compiler=yes
1977 else
1978 ac_header_compiler=no
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1982 $as_echo "$ac_header_compiler" >&6; }
1984 # Is the header present?
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1986 $as_echo_n "checking $2 presence... " >&6; }
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1989 #include <$2>
1990 _ACEOF
1991 if ac_fn_cxx_try_cpp "$LINENO"; then :
1992 ac_header_preproc=yes
1993 else
1994 ac_header_preproc=no
1996 rm -f conftest.err conftest.$ac_ext
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1998 $as_echo "$ac_header_preproc" >&6; }
2000 # So? What about this header?
2001 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2002 yes:no: )
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2004 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2006 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2008 no:yes:* )
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2010 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2012 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2014 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2016 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2018 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2020 esac
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2024 $as_echo_n "(cached) " >&6
2025 else
2026 eval "$3=\$ac_header_compiler"
2028 eval ac_res=\$$3
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2032 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2034 } # ac_fn_cxx_check_header_mongrel
2036 # ac_fn_cxx_try_run LINENO
2037 # ------------------------
2038 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2039 # that executables *can* be run.
2040 ac_fn_cxx_try_run ()
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043 if { { ac_try="$ac_link"
2044 case "(($ac_try" in
2045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2046 *) ac_try_echo=$ac_try;;
2047 esac
2048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2049 $as_echo "$ac_try_echo"; } >&5
2050 (eval "$ac_link") 2>&5
2051 ac_status=$?
2052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2053 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2054 { { case "(($ac_try" in
2055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2056 *) ac_try_echo=$ac_try;;
2057 esac
2058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2059 $as_echo "$ac_try_echo"; } >&5
2060 (eval "$ac_try") 2>&5
2061 ac_status=$?
2062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063 test $ac_status = 0; }; }; then :
2064 ac_retval=0
2065 else
2066 $as_echo "$as_me: program exited with status $ac_status" >&5
2067 $as_echo "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.$ac_ext >&5
2070 ac_retval=$ac_status
2072 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2073 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2074 return $ac_retval
2076 } # ac_fn_cxx_try_run
2078 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2079 # ---------------------------------------------------------
2080 # Tests whether HEADER exists and can be compiled using the include files in
2081 # INCLUDES, setting the cache variable VAR accordingly.
2082 ac_fn_cxx_check_header_compile ()
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2086 $as_echo_n "checking for $2... " >&6; }
2087 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2088 $as_echo_n "(cached) " >&6
2089 else
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2093 #include <$2>
2094 _ACEOF
2095 if ac_fn_cxx_try_compile "$LINENO"; then :
2096 eval "$3=yes"
2097 else
2098 eval "$3=no"
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 eval ac_res=\$$3
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2105 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2107 } # ac_fn_cxx_check_header_compile
2109 # ac_fn_c_try_cpp LINENO
2110 # ----------------------
2111 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2112 ac_fn_c_try_cpp ()
2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115 if { { ac_try="$ac_cpp conftest.$ac_ext"
2116 case "(($ac_try" in
2117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2118 *) ac_try_echo=$ac_try;;
2119 esac
2120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2121 $as_echo "$ac_try_echo"; } >&5
2122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2123 ac_status=$?
2124 if test -s conftest.err; then
2125 grep -v '^ *+' conftest.err >conftest.er1
2126 cat conftest.er1 >&5
2127 mv -f conftest.er1 conftest.err
2129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2130 test $ac_status = 0; } >/dev/null && {
2131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2132 test ! -s conftest.err
2133 }; then :
2134 ac_retval=0
2135 else
2136 $as_echo "$as_me: failed program was:" >&5
2137 sed 's/^/| /' conftest.$ac_ext >&5
2139 ac_retval=1
2141 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2142 return $ac_retval
2144 } # ac_fn_c_try_cpp
2146 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2147 # ----------------------------------------------
2148 # Tries to find the compile-time value of EXPR in a program that includes
2149 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2150 # computed
2151 ac_fn_cxx_compute_int ()
2153 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154 if test "$cross_compiling" = yes; then
2155 # Depending upon the size, compute the lo and hi bounds.
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2160 main ()
2162 static int test_array [1 - 2 * !(($2) >= 0)];
2163 test_array [0] = 0
2166 return 0;
2168 _ACEOF
2169 if ac_fn_cxx_try_compile "$LINENO"; then :
2170 ac_lo=0 ac_mid=0
2171 while :; do
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2176 main ()
2178 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2179 test_array [0] = 0
2182 return 0;
2184 _ACEOF
2185 if ac_fn_cxx_try_compile "$LINENO"; then :
2186 ac_hi=$ac_mid; break
2187 else
2188 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2189 if test $ac_lo -le $ac_mid; then
2190 ac_lo= ac_hi=
2191 break
2193 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 done
2197 else
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2202 main ()
2204 static int test_array [1 - 2 * !(($2) < 0)];
2205 test_array [0] = 0
2208 return 0;
2210 _ACEOF
2211 if ac_fn_cxx_try_compile "$LINENO"; then :
2212 ac_hi=-1 ac_mid=-1
2213 while :; do
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2218 main ()
2220 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2221 test_array [0] = 0
2224 return 0;
2226 _ACEOF
2227 if ac_fn_cxx_try_compile "$LINENO"; then :
2228 ac_lo=$ac_mid; break
2229 else
2230 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2231 if test $ac_mid -le $ac_hi; then
2232 ac_lo= ac_hi=
2233 break
2235 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 done
2239 else
2240 ac_lo= ac_hi=
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 # Binary search between lo and hi bounds.
2246 while test "x$ac_lo" != "x$ac_hi"; do
2247 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2252 main ()
2254 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2255 test_array [0] = 0
2258 return 0;
2260 _ACEOF
2261 if ac_fn_cxx_try_compile "$LINENO"; then :
2262 ac_hi=$ac_mid
2263 else
2264 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 done
2268 case $ac_lo in #((
2269 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2270 '') ac_retval=1 ;;
2271 esac
2272 else
2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h. */
2276 static long int longval () { return $2; }
2277 static unsigned long int ulongval () { return $2; }
2278 #include <stdio.h>
2279 #include <stdlib.h>
2281 main ()
2284 FILE *f = fopen ("conftest.val", "w");
2285 if (! f)
2286 return 1;
2287 if (($2) < 0)
2289 long int i = longval ();
2290 if (i != ($2))
2291 return 1;
2292 fprintf (f, "%ld", i);
2294 else
2296 unsigned long int i = ulongval ();
2297 if (i != ($2))
2298 return 1;
2299 fprintf (f, "%lu", i);
2301 /* Do not output a trailing newline, as this causes \r\n confusion
2302 on some platforms. */
2303 return ferror (f) || fclose (f) != 0;
2306 return 0;
2308 _ACEOF
2309 if ac_fn_cxx_try_run "$LINENO"; then :
2310 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2311 else
2312 ac_retval=1
2314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2315 conftest.$ac_objext conftest.beam conftest.$ac_ext
2316 rm -f conftest.val
2319 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2320 return $ac_retval
2322 } # ac_fn_cxx_compute_int
2324 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2325 # ---------------------------------------------
2326 # Tests whether TYPE exists after having included INCLUDES, setting cache
2327 # variable VAR accordingly.
2328 ac_fn_cxx_check_type ()
2330 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2332 $as_echo_n "checking for $2... " >&6; }
2333 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2334 $as_echo_n "(cached) " >&6
2335 else
2336 eval "$3=no"
2337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h. */
2341 main ()
2343 if (sizeof ($2))
2344 return 0;
2346 return 0;
2348 _ACEOF
2349 if ac_fn_cxx_try_compile "$LINENO"; then :
2350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351 /* end confdefs.h. */
2354 main ()
2356 if (sizeof (($2)))
2357 return 0;
2359 return 0;
2361 _ACEOF
2362 if ac_fn_cxx_try_compile "$LINENO"; then :
2364 else
2365 eval "$3=yes"
2367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2371 eval ac_res=\$$3
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2373 $as_echo "$ac_res" >&6; }
2374 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2376 } # ac_fn_cxx_check_type
2378 # ac_fn_c_find_intX_t LINENO BITS VAR
2379 # -----------------------------------
2380 # Finds a signed integer type with width BITS, setting cache variable VAR
2381 # accordingly.
2382 ac_fn_c_find_intX_t ()
2384 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2386 $as_echo_n "checking for int$2_t... " >&6; }
2387 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2388 $as_echo_n "(cached) " >&6
2389 else
2390 eval "$3=no"
2391 for ac_type in int$2_t 'int' 'long int' \
2392 'long long int' 'short int' 'signed char'; do
2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h. */
2395 $ac_includes_default
2397 main ()
2399 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2400 test_array [0] = 0
2403 return 0;
2405 _ACEOF
2406 if ac_fn_cxx_try_compile "$LINENO"; then :
2407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2408 /* end confdefs.h. */
2409 $ac_includes_default
2411 main ()
2413 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2414 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2415 test_array [0] = 0
2418 return 0;
2420 _ACEOF
2421 if ac_fn_cxx_try_compile "$LINENO"; then :
2423 else
2424 case $ac_type in #(
2425 int$2_t) :
2426 eval "$3=yes" ;; #(
2427 *) :
2428 eval "$3=\$ac_type" ;;
2429 esac
2431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434 eval as_val=\$$3
2435 if test "x$as_val" = x""no; then :
2437 else
2438 break
2440 done
2442 eval ac_res=\$$3
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2444 $as_echo "$ac_res" >&6; }
2445 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2447 } # ac_fn_c_find_intX_t
2449 # ac_fn_cxx_try_link LINENO
2450 # -------------------------
2451 # Try to link conftest.$ac_ext, and return whether this succeeded.
2452 ac_fn_cxx_try_link ()
2454 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2455 rm -f conftest.$ac_objext conftest$ac_exeext
2456 if { { ac_try="$ac_link"
2457 case "(($ac_try" in
2458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459 *) ac_try_echo=$ac_try;;
2460 esac
2461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2462 $as_echo "$ac_try_echo"; } >&5
2463 (eval "$ac_link") 2>conftest.err
2464 ac_status=$?
2465 if test -s conftest.err; then
2466 grep -v '^ *+' conftest.err >conftest.er1
2467 cat conftest.er1 >&5
2468 mv -f conftest.er1 conftest.err
2470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2471 test $ac_status = 0; } && {
2472 test -z "$ac_cxx_werror_flag" ||
2473 test ! -s conftest.err
2474 } && test -s conftest$ac_exeext && {
2475 test "$cross_compiling" = yes ||
2476 $as_test_x conftest$ac_exeext
2477 }; then :
2478 ac_retval=0
2479 else
2480 $as_echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2483 ac_retval=1
2485 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2486 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2487 # interfere with the next link command; also delete a directory that is
2488 # left behind by Apple's compiler. We do this before executing the actions.
2489 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2490 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2491 return $ac_retval
2493 } # ac_fn_cxx_try_link
2495 # ac_fn_c_find_uintX_t LINENO BITS VAR
2496 # ------------------------------------
2497 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2498 # accordingly.
2499 ac_fn_c_find_uintX_t ()
2501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2503 $as_echo_n "checking for uint$2_t... " >&6; }
2504 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2505 $as_echo_n "(cached) " >&6
2506 else
2507 eval "$3=no"
2508 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2509 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2511 /* end confdefs.h. */
2512 $ac_includes_default
2514 main ()
2516 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2517 test_array [0] = 0
2520 return 0;
2522 _ACEOF
2523 if ac_fn_cxx_try_compile "$LINENO"; then :
2524 case $ac_type in #(
2525 uint$2_t) :
2526 eval "$3=yes" ;; #(
2527 *) :
2528 eval "$3=\$ac_type" ;;
2529 esac
2531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2532 eval as_val=\$$3
2533 if test "x$as_val" = x""no; then :
2535 else
2536 break
2538 done
2540 eval ac_res=\$$3
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2542 $as_echo "$ac_res" >&6; }
2543 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2545 } # ac_fn_c_find_uintX_t
2547 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2548 # ------------------------------------------------
2549 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2550 ac_fn_cxx_check_header_preproc ()
2552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2554 $as_echo_n "checking for $2... " >&6; }
2555 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2556 $as_echo_n "(cached) " >&6
2557 else
2558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559 /* end confdefs.h. */
2560 #include <$2>
2561 _ACEOF
2562 if ac_fn_cxx_try_cpp "$LINENO"; then :
2563 eval "$3=yes"
2564 else
2565 eval "$3=no"
2567 rm -f conftest.err conftest.$ac_ext
2569 eval ac_res=\$$3
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2571 $as_echo "$ac_res" >&6; }
2572 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2574 } # ac_fn_cxx_check_header_preproc
2576 # ac_fn_cxx_check_func LINENO FUNC VAR
2577 # ------------------------------------
2578 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2579 ac_fn_cxx_check_func ()
2581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2583 $as_echo_n "checking for $2... " >&6; }
2584 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2585 $as_echo_n "(cached) " >&6
2586 else
2587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2588 /* end confdefs.h. */
2589 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2591 #define $2 innocuous_$2
2593 /* System header to define __stub macros and hopefully few prototypes,
2594 which can conflict with char $2 (); below.
2595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2596 <limits.h> exists even on freestanding compilers. */
2598 #ifdef __STDC__
2599 # include <limits.h>
2600 #else
2601 # include <assert.h>
2602 #endif
2604 #undef $2
2606 /* Override any GCC internal prototype to avoid an error.
2607 Use char because int might match the return type of a GCC
2608 builtin and then its argument prototype would still apply. */
2609 #ifdef __cplusplus
2610 extern "C"
2611 #endif
2612 char $2 ();
2613 /* The GNU C library defines this for functions which it implements
2614 to always fail with ENOSYS. Some functions are actually named
2615 something starting with __ and the normal name is an alias. */
2616 #if defined __stub_$2 || defined __stub___$2
2617 choke me
2618 #endif
2621 main ()
2623 return $2 ();
2625 return 0;
2627 _ACEOF
2628 if ac_fn_cxx_try_link "$LINENO"; then :
2629 eval "$3=yes"
2630 else
2631 eval "$3=no"
2633 rm -f core conftest.err conftest.$ac_objext \
2634 conftest$ac_exeext conftest.$ac_ext
2636 eval ac_res=\$$3
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2638 $as_echo "$ac_res" >&6; }
2639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2641 } # ac_fn_cxx_check_func
2643 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2644 # --------------------------------------
2645 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2646 ac_fn_cxx_check_decl ()
2648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2649 as_decl_name=`echo $2|sed 's/ *(.*//'`
2650 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2652 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2653 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2654 $as_echo_n "(cached) " >&6
2655 else
2656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2657 /* end confdefs.h. */
2660 main ()
2662 #ifndef $as_decl_name
2663 #ifdef __cplusplus
2664 (void) $as_decl_use;
2665 #else
2666 (void) $as_decl_name;
2667 #endif
2668 #endif
2671 return 0;
2673 _ACEOF
2674 if ac_fn_cxx_try_compile "$LINENO"; then :
2675 eval "$3=yes"
2676 else
2677 eval "$3=no"
2679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2681 eval ac_res=\$$3
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2683 $as_echo "$ac_res" >&6; }
2684 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2686 } # ac_fn_cxx_check_decl
2688 # ac_fn_c_try_link LINENO
2689 # -----------------------
2690 # Try to link conftest.$ac_ext, and return whether this succeeded.
2691 ac_fn_c_try_link ()
2693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2694 rm -f conftest.$ac_objext conftest$ac_exeext
2695 if { { ac_try="$ac_link"
2696 case "(($ac_try" in
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2699 esac
2700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2701 $as_echo "$ac_try_echo"; } >&5
2702 (eval "$ac_link") 2>conftest.err
2703 ac_status=$?
2704 if test -s conftest.err; then
2705 grep -v '^ *+' conftest.err >conftest.er1
2706 cat conftest.er1 >&5
2707 mv -f conftest.er1 conftest.err
2709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2710 test $ac_status = 0; } && {
2711 test -z "$ac_c_werror_flag" ||
2712 test ! -s conftest.err
2713 } && test -s conftest$ac_exeext && {
2714 test "$cross_compiling" = yes ||
2715 $as_test_x conftest$ac_exeext
2716 }; then :
2717 ac_retval=0
2718 else
2719 $as_echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2722 ac_retval=1
2724 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2725 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2726 # interfere with the next link command; also delete a directory that is
2727 # left behind by Apple's compiler. We do this before executing the actions.
2728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2729 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2730 return $ac_retval
2732 } # ac_fn_c_try_link
2734 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2735 # ----------------------------------------------
2736 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2737 ac_fn_c_check_header_preproc ()
2739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2741 $as_echo_n "checking for $2... " >&6; }
2742 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2743 $as_echo_n "(cached) " >&6
2744 else
2745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2746 /* end confdefs.h. */
2747 #include <$2>
2748 _ACEOF
2749 if ac_fn_c_try_cpp "$LINENO"; then :
2750 eval "$3=yes"
2751 else
2752 eval "$3=no"
2754 rm -f conftest.err conftest.$ac_ext
2756 eval ac_res=\$$3
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2758 $as_echo "$ac_res" >&6; }
2759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2761 } # ac_fn_c_check_header_preproc
2763 # ac_fn_c_check_func LINENO FUNC VAR
2764 # ----------------------------------
2765 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2766 ac_fn_c_check_func ()
2768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2770 $as_echo_n "checking for $2... " >&6; }
2771 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2772 $as_echo_n "(cached) " >&6
2773 else
2774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2775 /* end confdefs.h. */
2776 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2778 #define $2 innocuous_$2
2780 /* System header to define __stub macros and hopefully few prototypes,
2781 which can conflict with char $2 (); below.
2782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2783 <limits.h> exists even on freestanding compilers. */
2785 #ifdef __STDC__
2786 # include <limits.h>
2787 #else
2788 # include <assert.h>
2789 #endif
2791 #undef $2
2793 /* Override any GCC internal prototype to avoid an error.
2794 Use char because int might match the return type of a GCC
2795 builtin and then its argument prototype would still apply. */
2796 #ifdef __cplusplus
2797 extern "C"
2798 #endif
2799 char $2 ();
2800 /* The GNU C library defines this for functions which it implements
2801 to always fail with ENOSYS. Some functions are actually named
2802 something starting with __ and the normal name is an alias. */
2803 #if defined __stub_$2 || defined __stub___$2
2804 choke me
2805 #endif
2808 main ()
2810 return $2 ();
2812 return 0;
2814 _ACEOF
2815 if ac_fn_c_try_link "$LINENO"; then :
2816 eval "$3=yes"
2817 else
2818 eval "$3=no"
2820 rm -f core conftest.err conftest.$ac_objext \
2821 conftest$ac_exeext conftest.$ac_ext
2823 eval ac_res=\$$3
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2825 $as_echo "$ac_res" >&6; }
2826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2828 } # ac_fn_c_check_func
2829 cat >config.log <<_ACEOF
2830 This file contains any messages produced by compilers while
2831 running configure, to aid debugging if configure makes a mistake.
2833 It was created by $as_me, which was
2834 generated by GNU Autoconf 2.64. Invocation command line was
2836 $ $0 $@
2838 _ACEOF
2839 exec 5>>config.log
2841 cat <<_ASUNAME
2842 ## --------- ##
2843 ## Platform. ##
2844 ## --------- ##
2846 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2847 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2848 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2849 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2850 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2852 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2853 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2855 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2856 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2857 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2858 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2859 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2860 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2861 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2863 _ASUNAME
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 $as_echo "PATH: $as_dir"
2871 done
2872 IFS=$as_save_IFS
2874 } >&5
2876 cat >&5 <<_ACEOF
2879 ## ----------- ##
2880 ## Core tests. ##
2881 ## ----------- ##
2883 _ACEOF
2886 # Keep a trace of the command line.
2887 # Strip out --no-create and --no-recursion so they do not pile up.
2888 # Strip out --silent because we don't want to record it for future runs.
2889 # Also quote any args containing shell meta-characters.
2890 # Make two passes to allow for proper duplicate-argument suppression.
2891 ac_configure_args=
2892 ac_configure_args0=
2893 ac_configure_args1=
2894 ac_must_keep_next=false
2895 for ac_pass in 1 2
2897 for ac_arg
2899 case $ac_arg in
2900 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2901 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2902 | -silent | --silent | --silen | --sile | --sil)
2903 continue ;;
2904 *\'*)
2905 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2906 esac
2907 case $ac_pass in
2908 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2910 as_fn_append ac_configure_args1 " '$ac_arg'"
2911 if test $ac_must_keep_next = true; then
2912 ac_must_keep_next=false # Got value, back to normal.
2913 else
2914 case $ac_arg in
2915 *=* | --config-cache | -C | -disable-* | --disable-* \
2916 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2917 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2918 | -with-* | --with-* | -without-* | --without-* | --x)
2919 case "$ac_configure_args0 " in
2920 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2921 esac
2923 -* ) ac_must_keep_next=true ;;
2924 esac
2926 as_fn_append ac_configure_args " '$ac_arg'"
2928 esac
2929 done
2930 done
2931 { ac_configure_args0=; unset ac_configure_args0;}
2932 { ac_configure_args1=; unset ac_configure_args1;}
2934 # When interrupted or exit'd, cleanup temporary files, and complete
2935 # config.log. We remove comments because anyway the quotes in there
2936 # would cause problems or look ugly.
2937 # WARNING: Use '\'' to represent an apostrophe within the trap.
2938 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2939 trap 'exit_status=$?
2940 # Save into config.log some information that might help in debugging.
2942 echo
2944 cat <<\_ASBOX
2945 ## ---------------- ##
2946 ## Cache variables. ##
2947 ## ---------------- ##
2948 _ASBOX
2949 echo
2950 # The following way of writing the cache mishandles newlines in values,
2952 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2953 eval ac_val=\$$ac_var
2954 case $ac_val in #(
2955 *${as_nl}*)
2956 case $ac_var in #(
2957 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2958 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2959 esac
2960 case $ac_var in #(
2961 _ | IFS | as_nl) ;; #(
2962 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2963 *) { eval $ac_var=; unset $ac_var;} ;;
2964 esac ;;
2965 esac
2966 done
2967 (set) 2>&1 |
2968 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2969 *${as_nl}ac_space=\ *)
2970 sed -n \
2971 "s/'\''/'\''\\\\'\'''\''/g;
2972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2973 ;; #(
2975 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2977 esac |
2978 sort
2980 echo
2982 cat <<\_ASBOX
2983 ## ----------------- ##
2984 ## Output variables. ##
2985 ## ----------------- ##
2986 _ASBOX
2987 echo
2988 for ac_var in $ac_subst_vars
2990 eval ac_val=\$$ac_var
2991 case $ac_val in
2992 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2993 esac
2994 $as_echo "$ac_var='\''$ac_val'\''"
2995 done | sort
2996 echo
2998 if test -n "$ac_subst_files"; then
2999 cat <<\_ASBOX
3000 ## ------------------- ##
3001 ## File substitutions. ##
3002 ## ------------------- ##
3003 _ASBOX
3004 echo
3005 for ac_var in $ac_subst_files
3007 eval ac_val=\$$ac_var
3008 case $ac_val in
3009 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3010 esac
3011 $as_echo "$ac_var='\''$ac_val'\''"
3012 done | sort
3013 echo
3016 if test -s confdefs.h; then
3017 cat <<\_ASBOX
3018 ## ----------- ##
3019 ## confdefs.h. ##
3020 ## ----------- ##
3021 _ASBOX
3022 echo
3023 cat confdefs.h
3024 echo
3026 test "$ac_signal" != 0 &&
3027 $as_echo "$as_me: caught signal $ac_signal"
3028 $as_echo "$as_me: exit $exit_status"
3029 } >&5
3030 rm -f core *.core core.conftest.* &&
3031 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3032 exit $exit_status
3034 for ac_signal in 1 2 13 15; do
3035 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3036 done
3037 ac_signal=0
3039 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3040 rm -f -r conftest* confdefs.h
3042 $as_echo "/* confdefs.h */" > confdefs.h
3044 # Predefined preprocessor variables.
3046 cat >>confdefs.h <<_ACEOF
3047 #define PACKAGE_NAME "$PACKAGE_NAME"
3048 _ACEOF
3050 cat >>confdefs.h <<_ACEOF
3051 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3052 _ACEOF
3054 cat >>confdefs.h <<_ACEOF
3055 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3056 _ACEOF
3058 cat >>confdefs.h <<_ACEOF
3059 #define PACKAGE_STRING "$PACKAGE_STRING"
3060 _ACEOF
3062 cat >>confdefs.h <<_ACEOF
3063 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3064 _ACEOF
3066 cat >>confdefs.h <<_ACEOF
3067 #define PACKAGE_URL "$PACKAGE_URL"
3068 _ACEOF
3071 # Let the site file select an alternate cache file if it wants to.
3072 # Prefer an explicitly selected file to automatically selected ones.
3073 ac_site_file1=NONE
3074 ac_site_file2=NONE
3075 if test -n "$CONFIG_SITE"; then
3076 ac_site_file1=$CONFIG_SITE
3077 elif test "x$prefix" != xNONE; then
3078 ac_site_file1=$prefix/share/config.site
3079 ac_site_file2=$prefix/etc/config.site
3080 else
3081 ac_site_file1=$ac_default_prefix/share/config.site
3082 ac_site_file2=$ac_default_prefix/etc/config.site
3084 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3086 test "x$ac_site_file" = xNONE && continue
3087 if test -r "$ac_site_file"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3089 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3090 sed 's/^/| /' "$ac_site_file" >&5
3091 . "$ac_site_file"
3093 done
3095 if test -r "$cache_file"; then
3096 # Some versions of bash will fail to source /dev/null (special
3097 # files actually), so we avoid doing that.
3098 if test -f "$cache_file"; then
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3100 $as_echo "$as_me: loading cache $cache_file" >&6;}
3101 case $cache_file in
3102 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3103 *) . "./$cache_file";;
3104 esac
3106 else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3108 $as_echo "$as_me: creating cache $cache_file" >&6;}
3109 >$cache_file
3112 # Check that the precious variables saved in the cache have kept the same
3113 # value.
3114 ac_cache_corrupted=false
3115 for ac_var in $ac_precious_vars; do
3116 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3117 eval ac_new_set=\$ac_env_${ac_var}_set
3118 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3119 eval ac_new_val=\$ac_env_${ac_var}_value
3120 case $ac_old_set,$ac_new_set in
3121 set,)
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3123 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3124 ac_cache_corrupted=: ;;
3125 ,set)
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3127 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3128 ac_cache_corrupted=: ;;
3129 ,);;
3131 if test "x$ac_old_val" != "x$ac_new_val"; then
3132 # differences in whitespace do not lead to failure.
3133 ac_old_val_w=`echo x $ac_old_val`
3134 ac_new_val_w=`echo x $ac_new_val`
3135 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3137 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3138 ac_cache_corrupted=:
3139 else
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3141 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3142 eval $ac_var=\$ac_old_val
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3145 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3147 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3148 fi;;
3149 esac
3150 # Pass precious variables to config.status.
3151 if test "$ac_new_set" = set; then
3152 case $ac_new_val in
3153 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3154 *) ac_arg=$ac_var=$ac_new_val ;;
3155 esac
3156 case " $ac_configure_args " in
3157 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3158 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3159 esac
3161 done
3162 if $ac_cache_corrupted; then
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3166 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3167 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3169 ## -------------------- ##
3170 ## Main body of script. ##
3171 ## -------------------- ##
3173 ac_ext=c
3174 ac_cpp='$CPP $CPPFLAGS'
3175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3184 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3187 gcc_version=`cat $srcdir/BASE-VER`
3189 # Determine the host, build, and target systems
3190 ac_aux_dir=
3191 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3192 for ac_t in install-sh install.sh shtool; do
3193 if test -f "$ac_dir/$ac_t"; then
3194 ac_aux_dir=$ac_dir
3195 ac_install_sh="$ac_aux_dir/$ac_t -c"
3196 break 2
3198 done
3199 done
3200 if test -z "$ac_aux_dir"; then
3201 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3204 # These three variables are undocumented and unsupported,
3205 # and are intended to be withdrawn in a future Autoconf release.
3206 # They can cause serious problems if a builder's source tree is in a directory
3207 # whose full name contains unusual characters.
3208 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3209 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3210 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3213 # Make sure we can run config.sub.
3214 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3215 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3218 $as_echo_n "checking build system type... " >&6; }
3219 if test "${ac_cv_build+set}" = set; then :
3220 $as_echo_n "(cached) " >&6
3221 else
3222 ac_build_alias=$build_alias
3223 test "x$ac_build_alias" = x &&
3224 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3225 test "x$ac_build_alias" = x &&
3226 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3227 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3228 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3232 $as_echo "$ac_cv_build" >&6; }
3233 case $ac_cv_build in
3234 *-*-*) ;;
3235 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3236 esac
3237 build=$ac_cv_build
3238 ac_save_IFS=$IFS; IFS='-'
3239 set x $ac_cv_build
3240 shift
3241 build_cpu=$1
3242 build_vendor=$2
3243 shift; shift
3244 # Remember, the first character of IFS is used to create $*,
3245 # except with old shells:
3246 build_os=$*
3247 IFS=$ac_save_IFS
3248 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3252 $as_echo_n "checking host system type... " >&6; }
3253 if test "${ac_cv_host+set}" = set; then :
3254 $as_echo_n "(cached) " >&6
3255 else
3256 if test "x$host_alias" = x; then
3257 ac_cv_host=$ac_cv_build
3258 else
3259 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3260 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3265 $as_echo "$ac_cv_host" >&6; }
3266 case $ac_cv_host in
3267 *-*-*) ;;
3268 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3269 esac
3270 host=$ac_cv_host
3271 ac_save_IFS=$IFS; IFS='-'
3272 set x $ac_cv_host
3273 shift
3274 host_cpu=$1
3275 host_vendor=$2
3276 shift; shift
3277 # Remember, the first character of IFS is used to create $*,
3278 # except with old shells:
3279 host_os=$*
3280 IFS=$ac_save_IFS
3281 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3285 $as_echo_n "checking target system type... " >&6; }
3286 if test "${ac_cv_target+set}" = set; then :
3287 $as_echo_n "(cached) " >&6
3288 else
3289 if test "x$target_alias" = x; then
3290 ac_cv_target=$ac_cv_host
3291 else
3292 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3293 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3298 $as_echo "$ac_cv_target" >&6; }
3299 case $ac_cv_target in
3300 *-*-*) ;;
3301 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3302 esac
3303 target=$ac_cv_target
3304 ac_save_IFS=$IFS; IFS='-'
3305 set x $ac_cv_target
3306 shift
3307 target_cpu=$1
3308 target_vendor=$2
3309 shift; shift
3310 # Remember, the first character of IFS is used to create $*,
3311 # except with old shells:
3312 target_os=$*
3313 IFS=$ac_save_IFS
3314 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3317 # The aliases save the names the user supplied, while $host etc.
3318 # will get canonicalized.
3319 test -n "$target_alias" &&
3320 test "$program_prefix$program_suffix$program_transform_name" = \
3321 NONENONEs,x,x, &&
3322 program_prefix=${target_alias}-
3324 # Determine the noncanonical target name, for directory use.
3325 case ${build_alias} in
3326 "") build_noncanonical=${build} ;;
3327 *) build_noncanonical=${build_alias} ;;
3328 esac
3330 case ${host_alias} in
3331 "") host_noncanonical=${build_noncanonical} ;;
3332 *) host_noncanonical=${host_alias} ;;
3333 esac
3335 case ${target_alias} in
3336 "") target_noncanonical=${host_noncanonical} ;;
3337 *) target_noncanonical=${target_alias} ;;
3338 esac
3343 # Used for constructing correct paths for offload compilers.
3344 real_target_noncanonical=${target_noncanonical}
3345 accel_dir_suffix=
3347 # Determine the target- and build-specific subdirectories
3349 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3350 # have matching libraries, they should use host libraries: Makefile.tpl
3351 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3352 # However, they still use the build modules, because the corresponding
3353 # host modules (e.g. bison) are only built for the host when bootstrap
3354 # finishes. So:
3355 # - build_subdir is where we find build modules, and never changes.
3356 # - build_libsubdir is where we find build libraries, and can be overridden.
3358 # Prefix 'build-' so this never conflicts with target_subdir.
3359 build_subdir="build-${build_noncanonical}"
3361 # Check whether --with-build-libsubdir was given.
3362 if test "${with_build_libsubdir+set}" = set; then :
3363 withval=$with_build_libsubdir; build_libsubdir="$withval"
3364 else
3365 build_libsubdir="$build_subdir"
3368 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3369 if ( test $srcdir = . && test -d gcc ) \
3370 || test -d $srcdir/../host-${host_noncanonical}; then
3371 host_subdir="host-${host_noncanonical}"
3372 else
3373 host_subdir=.
3375 # No prefix.
3376 target_subdir=${target_noncanonical}
3379 # Set program_transform_name
3380 test "$program_prefix" != NONE &&
3381 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3382 # Use a double $ so make ignores it.
3383 test "$program_suffix" != NONE &&
3384 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3385 # Double any \ or $.
3386 # By default was `s,x,x', remove it if useless.
3387 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3388 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3391 # Check for bogus environment variables.
3392 # Test if LIBRARY_PATH contains the notation for the current directory
3393 # since this would lead to problems installing/building glibc.
3394 # LIBRARY_PATH contains the current directory if one of the following
3395 # is true:
3396 # - one of the terminals (":" and ";") is the first or last sign
3397 # - two terminals occur directly after each other
3398 # - the path contains an element with a dot in it
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3400 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3401 case ${LIBRARY_PATH} in
3402 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3403 library_path_setting="contains current directory"
3406 library_path_setting="ok"
3408 esac
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3410 $as_echo "$library_path_setting" >&6; }
3411 if test "$library_path_setting" != "ok"; then
3412 as_fn_error "
3413 *** LIBRARY_PATH shouldn't contain the current directory when
3414 *** building gcc. Please change the environment variable
3415 *** and run configure again." "$LINENO" 5
3418 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3419 # since this would lead to problems installing/building glibc.
3420 # GCC_EXEC_PREFIX contains the current directory if one of the following
3421 # is true:
3422 # - one of the terminals (":" and ";") is the first or last sign
3423 # - two terminals occur directly after each other
3424 # - the path contains an element with a dot in it
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3426 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3427 case ${GCC_EXEC_PREFIX} in
3428 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3429 gcc_exec_prefix_setting="contains current directory"
3432 gcc_exec_prefix_setting="ok"
3434 esac
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3436 $as_echo "$gcc_exec_prefix_setting" >&6; }
3437 if test "$gcc_exec_prefix_setting" != "ok"; then
3438 as_fn_error "
3439 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3440 *** building gcc. Please change the environment variable
3441 *** and run configure again." "$LINENO" 5
3444 # -----------
3445 # Directories
3446 # -----------
3448 # Specify the local prefix
3449 local_prefix=
3451 # Check whether --with-local-prefix was given.
3452 if test "${with_local_prefix+set}" = set; then :
3453 withval=$with_local_prefix; case "${withval}" in
3454 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3455 no) ;;
3456 *) local_prefix=$with_local_prefix ;;
3457 esac
3461 # Default local prefix if it is empty
3462 if test x$local_prefix = x; then
3463 local_prefix=/usr/local
3467 # Check whether --with-native-system-header-dir was given.
3468 if test "${with_native_system_header_dir+set}" = set; then :
3469 withval=$with_native_system_header_dir;
3470 case ${with_native_system_header_dir} in
3471 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3472 /* | [A-Za-z]:[\\/]*) ;;
3473 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3474 esac
3475 configured_native_system_header_dir="${withval}"
3477 else
3478 configured_native_system_header_dir=
3483 # Check whether --with-build-sysroot was given.
3484 if test "${with_build_sysroot+set}" = set; then :
3485 withval=$with_build_sysroot; if test x"$withval" != x ; then
3486 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3488 else
3489 SYSROOT_CFLAGS_FOR_TARGET=
3494 if test "x$prefix" = xNONE; then
3495 test_prefix=/usr/local
3496 else
3497 test_prefix=$prefix
3499 if test "x$exec_prefix" = xNONE; then
3500 test_exec_prefix=$test_prefix
3501 else
3502 test_exec_prefix=$exec_prefix
3506 # Check whether --with-sysroot was given.
3507 if test "${with_sysroot+set}" = set; then :
3508 withval=$with_sysroot;
3509 case ${with_sysroot} in
3510 /) ;;
3511 */) with_sysroot=`echo $with_sysroot | sed 's,/$,,'` ;;
3512 esac
3513 case ${with_sysroot} in
3514 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3515 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3516 esac
3518 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3519 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3521 case ${TARGET_SYSTEM_ROOT} in
3522 "${test_prefix}"|"${test_prefix}/"*|\
3523 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3524 '${prefix}'|'${prefix}/'*|\
3525 '${exec_prefix}'|'${exec_prefix}/'*)
3526 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3527 TARGET_SYSTEM_ROOT_DEFINE="$t"
3529 esac
3531 else
3533 TARGET_SYSTEM_ROOT=
3534 TARGET_SYSTEM_ROOT_DEFINE=
3535 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
3543 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3544 # passed in by the toplevel make and thus we'd get different behavior
3545 # depending on where we built the sources.
3546 gcc_gxx_include_dir=
3547 # Specify the g++ header file directory
3549 # Check whether --with-gxx-include-dir was given.
3550 if test "${with_gxx_include_dir+set}" = set; then :
3551 withval=$with_gxx_include_dir; case "${withval}" in
3552 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3553 no) ;;
3554 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3555 esac
3559 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3560 if test x${gcc_gxx_include_dir} = x; then
3561 if test x${enable_version_specific_runtime_libs} = xyes; then
3562 gcc_gxx_include_dir='${libsubdir}/include/c++'
3563 else
3564 libstdcxx_incdir='include/c++/$(version)'
3565 if test x$host != x$target; then
3566 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3568 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3572 gcc_gxx_include_dir_add_sysroot=0
3573 if test "${with_sysroot+set}" = set; then
3574 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3575 if test "${gcc_gxx_without_sysroot}"; then
3576 if test x${with_sysroot} != x/; then
3577 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3579 gcc_gxx_include_dir_add_sysroot=1
3584 # Check whether --with-cpp_install_dir was given.
3585 if test "${with_cpp_install_dir+set}" = set; then :
3586 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3587 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3588 elif test x$withval != xno; then
3589 cpp_install_dir=$withval
3594 # We would like to our source tree to be readonly. However when releases or
3595 # pre-releases are generated, the flex/bison generated files as well as the
3596 # various formats of manuals need to be included along with the rest of the
3597 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3598 # just that.
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3601 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3602 # Check whether --enable-generated-files-in-srcdir was given.
3603 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3604 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3605 else
3606 generated_files_in_srcdir=no
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3611 $as_echo "$generated_files_in_srcdir" >&6; }
3613 if test "$generated_files_in_srcdir" = "yes"; then
3614 GENINSRC=''
3615 else
3616 GENINSRC='#'
3620 # -------------------
3621 # Find default linker
3622 # -------------------
3624 # With GNU ld
3626 # Check whether --with-gnu-ld was given.
3627 if test "${with_gnu_ld+set}" = set; then :
3628 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3629 else
3630 gnu_ld_flag=no
3634 # With pre-defined ld
3636 # Check whether --with-ld was given.
3637 if test "${with_ld+set}" = set; then :
3638 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3641 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3642 if test ! -x "$DEFAULT_LINKER"; then
3643 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3644 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3645 gnu_ld_flag=yes
3648 cat >>confdefs.h <<_ACEOF
3649 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3650 _ACEOF
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3655 $as_echo_n "checking whether a default linker was specified... " >&6; }
3656 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3657 if test x"$gnu_ld_flag" = x"no"; then
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3659 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3660 else
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3662 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3664 else
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 $as_echo "no" >&6; }
3669 # With demangler in GNU ld
3671 # Check whether --with-demangler-in-ld was given.
3672 if test "${with_demangler_in_ld+set}" = set; then :
3673 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3674 else
3675 demangler_in_ld=yes
3679 # ----------------------
3680 # Find default assembler
3681 # ----------------------
3683 # With GNU as
3685 # Check whether --with-gnu-as was given.
3686 if test "${with_gnu_as+set}" = set; then :
3687 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3688 else
3689 gas_flag=no
3694 # Check whether --with-as was given.
3695 if test "${with_as+set}" = set; then :
3696 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3699 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3700 if test ! -x "$DEFAULT_ASSEMBLER"; then
3701 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3702 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3703 gas_flag=yes
3706 cat >>confdefs.h <<_ACEOF
3707 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3708 _ACEOF
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3713 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3714 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3715 if test x"$gas_flag" = x"no"; then
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3717 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3718 else
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3720 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3722 else
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724 $as_echo "no" >&6; }
3727 # ---------------
3728 # Find C compiler
3729 # ---------------
3731 # If a non-executable a.out is present (e.g. created by GNU as above even if
3732 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3733 # file, even when creating an executable, so an execution test fails.
3734 # Remove possible default executable files to avoid this.
3736 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3737 # Autoconf includes it.
3738 rm -f a.out a.exe b.out
3740 # Find the native compiler
3741 ac_ext=c
3742 ac_cpp='$CPP $CPPFLAGS'
3743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746 if test -n "$ac_tool_prefix"; then
3747 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3748 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3750 $as_echo_n "checking for $ac_word... " >&6; }
3751 if test "${ac_cv_prog_CC+set}" = set; then :
3752 $as_echo_n "(cached) " >&6
3753 else
3754 if test -n "$CC"; then
3755 ac_cv_prog_CC="$CC" # Let the user override the test.
3756 else
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 for as_dir in $PATH
3760 IFS=$as_save_IFS
3761 test -z "$as_dir" && as_dir=.
3762 for ac_exec_ext in '' $ac_executable_extensions; do
3763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3764 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3766 break 2
3768 done
3769 done
3770 IFS=$as_save_IFS
3774 CC=$ac_cv_prog_CC
3775 if test -n "$CC"; then
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3777 $as_echo "$CC" >&6; }
3778 else
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780 $as_echo "no" >&6; }
3785 if test -z "$ac_cv_prog_CC"; then
3786 ac_ct_CC=$CC
3787 # Extract the first word of "gcc", so it can be a program name with args.
3788 set dummy gcc; ac_word=$2
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3790 $as_echo_n "checking for $ac_word... " >&6; }
3791 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3792 $as_echo_n "(cached) " >&6
3793 else
3794 if test -n "$ac_ct_CC"; then
3795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3796 else
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3804 ac_cv_prog_ac_ct_CC="gcc"
3805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 break 2
3808 done
3809 done
3810 IFS=$as_save_IFS
3814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3815 if test -n "$ac_ct_CC"; then
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3817 $as_echo "$ac_ct_CC" >&6; }
3818 else
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820 $as_echo "no" >&6; }
3823 if test "x$ac_ct_CC" = x; then
3824 CC=""
3825 else
3826 case $cross_compiling:$ac_tool_warned in
3827 yes:)
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3830 ac_tool_warned=yes ;;
3831 esac
3832 CC=$ac_ct_CC
3834 else
3835 CC="$ac_cv_prog_CC"
3838 if test -z "$CC"; then
3839 if test -n "$ac_tool_prefix"; then
3840 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3841 set dummy ${ac_tool_prefix}cc; ac_word=$2
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3843 $as_echo_n "checking for $ac_word... " >&6; }
3844 if test "${ac_cv_prog_CC+set}" = set; then :
3845 $as_echo_n "(cached) " >&6
3846 else
3847 if test -n "$CC"; then
3848 ac_cv_prog_CC="$CC" # Let the user override the test.
3849 else
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851 for as_dir in $PATH
3853 IFS=$as_save_IFS
3854 test -z "$as_dir" && as_dir=.
3855 for ac_exec_ext in '' $ac_executable_extensions; do
3856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3857 ac_cv_prog_CC="${ac_tool_prefix}cc"
3858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3859 break 2
3861 done
3862 done
3863 IFS=$as_save_IFS
3867 CC=$ac_cv_prog_CC
3868 if test -n "$CC"; then
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3870 $as_echo "$CC" >&6; }
3871 else
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3873 $as_echo "no" >&6; }
3879 if test -z "$CC"; then
3880 # Extract the first word of "cc", so it can be a program name with args.
3881 set dummy cc; ac_word=$2
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3883 $as_echo_n "checking for $ac_word... " >&6; }
3884 if test "${ac_cv_prog_CC+set}" = set; then :
3885 $as_echo_n "(cached) " >&6
3886 else
3887 if test -n "$CC"; then
3888 ac_cv_prog_CC="$CC" # Let the user override the test.
3889 else
3890 ac_prog_rejected=no
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3898 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3899 ac_prog_rejected=yes
3900 continue
3902 ac_cv_prog_CC="cc"
3903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 break 2
3906 done
3907 done
3908 IFS=$as_save_IFS
3910 if test $ac_prog_rejected = yes; then
3911 # We found a bogon in the path, so make sure we never use it.
3912 set dummy $ac_cv_prog_CC
3913 shift
3914 if test $# != 0; then
3915 # We chose a different compiler from the bogus one.
3916 # However, it has the same basename, so the bogon will be chosen
3917 # first if we set CC to just the basename; use the full file name.
3918 shift
3919 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3924 CC=$ac_cv_prog_CC
3925 if test -n "$CC"; then
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3927 $as_echo "$CC" >&6; }
3928 else
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930 $as_echo "no" >&6; }
3935 if test -z "$CC"; then
3936 if test -n "$ac_tool_prefix"; then
3937 for ac_prog in cl.exe
3939 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3940 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3942 $as_echo_n "checking for $ac_word... " >&6; }
3943 if test "${ac_cv_prog_CC+set}" = set; then :
3944 $as_echo_n "(cached) " >&6
3945 else
3946 if test -n "$CC"; then
3947 ac_cv_prog_CC="$CC" # Let the user override the test.
3948 else
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 for as_dir in $PATH
3952 IFS=$as_save_IFS
3953 test -z "$as_dir" && as_dir=.
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3956 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3958 break 2
3960 done
3961 done
3962 IFS=$as_save_IFS
3966 CC=$ac_cv_prog_CC
3967 if test -n "$CC"; then
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3969 $as_echo "$CC" >&6; }
3970 else
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972 $as_echo "no" >&6; }
3976 test -n "$CC" && break
3977 done
3979 if test -z "$CC"; then
3980 ac_ct_CC=$CC
3981 for ac_prog in cl.exe
3983 # Extract the first word of "$ac_prog", so it can be a program name with args.
3984 set dummy $ac_prog; ac_word=$2
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3986 $as_echo_n "checking for $ac_word... " >&6; }
3987 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3988 $as_echo_n "(cached) " >&6
3989 else
3990 if test -n "$ac_ct_CC"; then
3991 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3992 else
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH
3996 IFS=$as_save_IFS
3997 test -z "$as_dir" && as_dir=.
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4000 ac_cv_prog_ac_ct_CC="$ac_prog"
4001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 break 2
4004 done
4005 done
4006 IFS=$as_save_IFS
4010 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4011 if test -n "$ac_ct_CC"; then
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4013 $as_echo "$ac_ct_CC" >&6; }
4014 else
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4016 $as_echo "no" >&6; }
4020 test -n "$ac_ct_CC" && break
4021 done
4023 if test "x$ac_ct_CC" = x; then
4024 CC=""
4025 else
4026 case $cross_compiling:$ac_tool_warned in
4027 yes:)
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4030 ac_tool_warned=yes ;;
4031 esac
4032 CC=$ac_ct_CC
4039 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4041 as_fn_error "no acceptable C compiler found in \$PATH
4042 See \`config.log' for more details." "$LINENO" 5; }
4044 # Provide some information about the compiler.
4045 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4046 set X $ac_compile
4047 ac_compiler=$2
4048 for ac_option in --version -v -V -qversion; do
4049 { { ac_try="$ac_compiler $ac_option >&5"
4050 case "(($ac_try" in
4051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052 *) ac_try_echo=$ac_try;;
4053 esac
4054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4055 $as_echo "$ac_try_echo"; } >&5
4056 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4057 ac_status=$?
4058 if test -s conftest.err; then
4059 sed '10a\
4060 ... rest of stderr output deleted ...
4061 10q' conftest.err >conftest.er1
4062 cat conftest.er1 >&5
4063 rm -f conftest.er1 conftest.err
4065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066 test $ac_status = 0; }
4067 done
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4073 main ()
4077 return 0;
4079 _ACEOF
4080 ac_clean_files_save=$ac_clean_files
4081 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4082 # Try to create an executable without -o first, disregard a.out.
4083 # It will help us diagnose broken compilers, and finding out an intuition
4084 # of exeext.
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4086 $as_echo_n "checking for C compiler default output file name... " >&6; }
4087 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4089 # The possible output files:
4090 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4092 ac_rmfiles=
4093 for ac_file in $ac_files
4095 case $ac_file in
4096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4097 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4098 esac
4099 done
4100 rm -f $ac_rmfiles
4102 if { { ac_try="$ac_link_default"
4103 case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4106 esac
4107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4108 $as_echo "$ac_try_echo"; } >&5
4109 (eval "$ac_link_default") 2>&5
4110 ac_status=$?
4111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4112 test $ac_status = 0; }; then :
4113 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4114 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4115 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4116 # so that the user can short-circuit this test for compilers unknown to
4117 # Autoconf.
4118 for ac_file in $ac_files ''
4120 test -f "$ac_file" || continue
4121 case $ac_file in
4122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4124 [ab].out )
4125 # We found the default executable, but exeext='' is most
4126 # certainly right.
4127 break;;
4128 *.* )
4129 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4130 then :; else
4131 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4133 # We set ac_cv_exeext here because the later test for it is not
4134 # safe: cross compilers may not add the suffix if given an `-o'
4135 # argument, so we may need to know it at that point already.
4136 # Even if this section looks crufty: it has the advantage of
4137 # actually working.
4138 break;;
4140 break;;
4141 esac
4142 done
4143 test "$ac_cv_exeext" = no && ac_cv_exeext=
4145 else
4146 ac_file=''
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4149 $as_echo "$ac_file" >&6; }
4150 if test -z "$ac_file"; then :
4151 $as_echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4156 { as_fn_set_status 77
4157 as_fn_error "C compiler cannot create executables
4158 See \`config.log' for more details." "$LINENO" 5; }; }
4160 ac_exeext=$ac_cv_exeext
4162 # Check that the compiler produces executables we can run. If not, either
4163 # the compiler is broken, or we cross compile.
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4165 $as_echo_n "checking whether the C compiler works... " >&6; }
4166 # If not cross compiling, check that we can run a simple program.
4167 if test "$cross_compiling" != yes; then
4168 if { ac_try='./$ac_file'
4169 { { case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172 esac
4173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4174 $as_echo "$ac_try_echo"; } >&5
4175 (eval "$ac_try") 2>&5
4176 ac_status=$?
4177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4178 test $ac_status = 0; }; }; then
4179 cross_compiling=no
4180 else
4181 if test "$cross_compiling" = maybe; then
4182 cross_compiling=yes
4183 else
4184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4186 as_fn_error "cannot run C compiled programs.
4187 If you meant to cross compile, use \`--host'.
4188 See \`config.log' for more details." "$LINENO" 5; }
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4193 $as_echo "yes" >&6; }
4195 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4196 ac_clean_files=$ac_clean_files_save
4197 # Check that the compiler produces executables we can run. If not, either
4198 # the compiler is broken, or we cross compile.
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4200 $as_echo_n "checking whether we are cross compiling... " >&6; }
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4202 $as_echo "$cross_compiling" >&6; }
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4205 $as_echo_n "checking for suffix of executables... " >&6; }
4206 if { { ac_try="$ac_link"
4207 case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210 esac
4211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4212 $as_echo "$ac_try_echo"; } >&5
4213 (eval "$ac_link") 2>&5
4214 ac_status=$?
4215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4216 test $ac_status = 0; }; then :
4217 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4218 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4219 # work properly (i.e., refer to `conftest.exe'), while it won't with
4220 # `rm'.
4221 for ac_file in conftest.exe conftest conftest.*; do
4222 test -f "$ac_file" || continue
4223 case $ac_file in
4224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4225 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4226 break;;
4227 * ) break;;
4228 esac
4229 done
4230 else
4231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4233 as_fn_error "cannot compute suffix of executables: cannot compile and link
4234 See \`config.log' for more details." "$LINENO" 5; }
4236 rm -f conftest$ac_cv_exeext
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4238 $as_echo "$ac_cv_exeext" >&6; }
4240 rm -f conftest.$ac_ext
4241 EXEEXT=$ac_cv_exeext
4242 ac_exeext=$EXEEXT
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4244 $as_echo_n "checking for suffix of object files... " >&6; }
4245 if test "${ac_cv_objext+set}" = set; then :
4246 $as_echo_n "(cached) " >&6
4247 else
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h. */
4252 main ()
4256 return 0;
4258 _ACEOF
4259 rm -f conftest.o conftest.obj
4260 if { { ac_try="$ac_compile"
4261 case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4264 esac
4265 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4266 $as_echo "$ac_try_echo"; } >&5
4267 (eval "$ac_compile") 2>&5
4268 ac_status=$?
4269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4270 test $ac_status = 0; }; then :
4271 for ac_file in conftest.o conftest.obj conftest.*; do
4272 test -f "$ac_file" || continue;
4273 case $ac_file in
4274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4275 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4276 break;;
4277 esac
4278 done
4279 else
4280 $as_echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4285 as_fn_error "cannot compute suffix of object files: cannot compile
4286 See \`config.log' for more details." "$LINENO" 5; }
4288 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4291 $as_echo "$ac_cv_objext" >&6; }
4292 OBJEXT=$ac_cv_objext
4293 ac_objext=$OBJEXT
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4295 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4296 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4297 $as_echo_n "(cached) " >&6
4298 else
4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h. */
4303 main ()
4305 #ifndef __GNUC__
4306 choke me
4307 #endif
4310 return 0;
4312 _ACEOF
4313 if ac_fn_c_try_compile "$LINENO"; then :
4314 ac_compiler_gnu=yes
4315 else
4316 ac_compiler_gnu=no
4318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4323 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4324 if test $ac_compiler_gnu = yes; then
4325 GCC=yes
4326 else
4327 GCC=
4329 ac_test_CFLAGS=${CFLAGS+set}
4330 ac_save_CFLAGS=$CFLAGS
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4332 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4333 if test "${ac_cv_prog_cc_g+set}" = set; then :
4334 $as_echo_n "(cached) " >&6
4335 else
4336 ac_save_c_werror_flag=$ac_c_werror_flag
4337 ac_c_werror_flag=yes
4338 ac_cv_prog_cc_g=no
4339 CFLAGS="-g"
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4344 main ()
4348 return 0;
4350 _ACEOF
4351 if ac_fn_c_try_compile "$LINENO"; then :
4352 ac_cv_prog_cc_g=yes
4353 else
4354 CFLAGS=""
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h. */
4359 main ()
4363 return 0;
4365 _ACEOF
4366 if ac_fn_c_try_compile "$LINENO"; then :
4368 else
4369 ac_c_werror_flag=$ac_save_c_werror_flag
4370 CFLAGS="-g"
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4375 main ()
4379 return 0;
4381 _ACEOF
4382 if ac_fn_c_try_compile "$LINENO"; then :
4383 ac_cv_prog_cc_g=yes
4385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4390 ac_c_werror_flag=$ac_save_c_werror_flag
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4393 $as_echo "$ac_cv_prog_cc_g" >&6; }
4394 if test "$ac_test_CFLAGS" = set; then
4395 CFLAGS=$ac_save_CFLAGS
4396 elif test $ac_cv_prog_cc_g = yes; then
4397 if test "$GCC" = yes; then
4398 CFLAGS="-g -O2"
4399 else
4400 CFLAGS="-g"
4402 else
4403 if test "$GCC" = yes; then
4404 CFLAGS="-O2"
4405 else
4406 CFLAGS=
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4410 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4411 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4412 $as_echo_n "(cached) " >&6
4413 else
4414 ac_cv_prog_cc_c89=no
4415 ac_save_CC=$CC
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h. */
4418 #include <stdarg.h>
4419 #include <stdio.h>
4420 #include <sys/types.h>
4421 #include <sys/stat.h>
4422 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4423 struct buf { int x; };
4424 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4425 static char *e (p, i)
4426 char **p;
4427 int i;
4429 return p[i];
4431 static char *f (char * (*g) (char **, int), char **p, ...)
4433 char *s;
4434 va_list v;
4435 va_start (v,p);
4436 s = g (p, va_arg (v,int));
4437 va_end (v);
4438 return s;
4441 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4442 function prototypes and stuff, but not '\xHH' hex character constants.
4443 These don't provoke an error unfortunately, instead are silently treated
4444 as 'x'. The following induces an error, until -std is added to get
4445 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4446 array size at least. It's necessary to write '\x00'==0 to get something
4447 that's true only with -std. */
4448 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4450 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4451 inside strings and character constants. */
4452 #define FOO(x) 'x'
4453 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4455 int test (int i, double x);
4456 struct s1 {int (*f) (int a);};
4457 struct s2 {int (*f) (double a);};
4458 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4459 int argc;
4460 char **argv;
4462 main ()
4464 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4466 return 0;
4468 _ACEOF
4469 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4470 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4472 CC="$ac_save_CC $ac_arg"
4473 if ac_fn_c_try_compile "$LINENO"; then :
4474 ac_cv_prog_cc_c89=$ac_arg
4476 rm -f core conftest.err conftest.$ac_objext
4477 test "x$ac_cv_prog_cc_c89" != "xno" && break
4478 done
4479 rm -f conftest.$ac_ext
4480 CC=$ac_save_CC
4483 # AC_CACHE_VAL
4484 case "x$ac_cv_prog_cc_c89" in
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4487 $as_echo "none needed" >&6; } ;;
4488 xno)
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4490 $as_echo "unsupported" >&6; } ;;
4492 CC="$CC $ac_cv_prog_cc_c89"
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4494 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4495 esac
4496 if test "x$ac_cv_prog_cc_c89" != xno; then :
4500 ac_ext=c
4501 ac_cpp='$CPP $CPPFLAGS'
4502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4506 ac_ext=cpp
4507 ac_cpp='$CXXCPP $CPPFLAGS'
4508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4511 if test -z "$CXX"; then
4512 if test -n "$CCC"; then
4513 CXX=$CCC
4514 else
4515 if test -n "$ac_tool_prefix"; then
4516 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4521 $as_echo_n "checking for $ac_word... " >&6; }
4522 if test "${ac_cv_prog_CXX+set}" = set; then :
4523 $as_echo_n "(cached) " >&6
4524 else
4525 if test -n "$CXX"; then
4526 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4527 else
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4535 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 break 2
4539 done
4540 done
4541 IFS=$as_save_IFS
4545 CXX=$ac_cv_prog_CXX
4546 if test -n "$CXX"; then
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4548 $as_echo "$CXX" >&6; }
4549 else
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551 $as_echo "no" >&6; }
4555 test -n "$CXX" && break
4556 done
4558 if test -z "$CXX"; then
4559 ac_ct_CXX=$CXX
4560 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4562 # Extract the first word of "$ac_prog", so it can be a program name with args.
4563 set dummy $ac_prog; ac_word=$2
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4565 $as_echo_n "checking for $ac_word... " >&6; }
4566 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 if test -n "$ac_ct_CXX"; then
4570 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4571 else
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579 ac_cv_prog_ac_ct_CXX="$ac_prog"
4580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 break 2
4583 done
4584 done
4585 IFS=$as_save_IFS
4589 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4590 if test -n "$ac_ct_CXX"; then
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4592 $as_echo "$ac_ct_CXX" >&6; }
4593 else
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595 $as_echo "no" >&6; }
4599 test -n "$ac_ct_CXX" && break
4600 done
4602 if test "x$ac_ct_CXX" = x; then
4603 CXX="g++"
4604 else
4605 case $cross_compiling:$ac_tool_warned in
4606 yes:)
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4609 ac_tool_warned=yes ;;
4610 esac
4611 CXX=$ac_ct_CXX
4617 # Provide some information about the compiler.
4618 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4619 set X $ac_compile
4620 ac_compiler=$2
4621 for ac_option in --version -v -V -qversion; do
4622 { { ac_try="$ac_compiler $ac_option >&5"
4623 case "(($ac_try" in
4624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4626 esac
4627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4628 $as_echo "$ac_try_echo"; } >&5
4629 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4630 ac_status=$?
4631 if test -s conftest.err; then
4632 sed '10a\
4633 ... rest of stderr output deleted ...
4634 10q' conftest.err >conftest.er1
4635 cat conftest.er1 >&5
4636 rm -f conftest.er1 conftest.err
4638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4639 test $ac_status = 0; }
4640 done
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4643 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4644 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4645 $as_echo_n "(cached) " >&6
4646 else
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4651 main ()
4653 #ifndef __GNUC__
4654 choke me
4655 #endif
4658 return 0;
4660 _ACEOF
4661 if ac_fn_cxx_try_compile "$LINENO"; then :
4662 ac_compiler_gnu=yes
4663 else
4664 ac_compiler_gnu=no
4666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4667 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4671 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4672 if test $ac_compiler_gnu = yes; then
4673 GXX=yes
4674 else
4675 GXX=
4677 ac_test_CXXFLAGS=${CXXFLAGS+set}
4678 ac_save_CXXFLAGS=$CXXFLAGS
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4680 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4681 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4682 $as_echo_n "(cached) " >&6
4683 else
4684 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4685 ac_cxx_werror_flag=yes
4686 ac_cv_prog_cxx_g=no
4687 CXXFLAGS="-g"
4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h. */
4692 main ()
4696 return 0;
4698 _ACEOF
4699 if ac_fn_cxx_try_compile "$LINENO"; then :
4700 ac_cv_prog_cxx_g=yes
4701 else
4702 CXXFLAGS=""
4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h. */
4707 main ()
4711 return 0;
4713 _ACEOF
4714 if ac_fn_cxx_try_compile "$LINENO"; then :
4716 else
4717 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4718 CXXFLAGS="-g"
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4723 main ()
4727 return 0;
4729 _ACEOF
4730 if ac_fn_cxx_try_compile "$LINENO"; then :
4731 ac_cv_prog_cxx_g=yes
4733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4741 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4742 if test "$ac_test_CXXFLAGS" = set; then
4743 CXXFLAGS=$ac_save_CXXFLAGS
4744 elif test $ac_cv_prog_cxx_g = yes; then
4745 if test "$GXX" = yes; then
4746 CXXFLAGS="-g -O2"
4747 else
4748 CXXFLAGS="-g"
4750 else
4751 if test "$GXX" = yes; then
4752 CXXFLAGS="-O2"
4753 else
4754 CXXFLAGS=
4757 ac_ext=c
4758 ac_cpp='$CPP $CPPFLAGS'
4759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4766 if test -n "$ac_tool_prefix"; then
4767 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4768 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4770 $as_echo_n "checking for $ac_word... " >&6; }
4771 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4772 $as_echo_n "(cached) " >&6
4773 else
4774 if test -n "$GNATBIND"; then
4775 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4776 else
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4784 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 break 2
4788 done
4789 done
4790 IFS=$as_save_IFS
4794 GNATBIND=$ac_cv_prog_GNATBIND
4795 if test -n "$GNATBIND"; then
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4797 $as_echo "$GNATBIND" >&6; }
4798 else
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4800 $as_echo "no" >&6; }
4805 if test -z "$ac_cv_prog_GNATBIND"; then
4806 ac_ct_GNATBIND=$GNATBIND
4807 # Extract the first word of "gnatbind", so it can be a program name with args.
4808 set dummy gnatbind; ac_word=$2
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4810 $as_echo_n "checking for $ac_word... " >&6; }
4811 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4812 $as_echo_n "(cached) " >&6
4813 else
4814 if test -n "$ac_ct_GNATBIND"; then
4815 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4816 else
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 for as_dir in $PATH
4820 IFS=$as_save_IFS
4821 test -z "$as_dir" && as_dir=.
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4824 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 break 2
4828 done
4829 done
4830 IFS=$as_save_IFS
4834 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4835 if test -n "$ac_ct_GNATBIND"; then
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4837 $as_echo "$ac_ct_GNATBIND" >&6; }
4838 else
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840 $as_echo "no" >&6; }
4843 if test "x$ac_ct_GNATBIND" = x; then
4844 GNATBIND="no"
4845 else
4846 case $cross_compiling:$ac_tool_warned in
4847 yes:)
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4850 ac_tool_warned=yes ;;
4851 esac
4852 GNATBIND=$ac_ct_GNATBIND
4854 else
4855 GNATBIND="$ac_cv_prog_GNATBIND"
4858 if test -n "$ac_tool_prefix"; then
4859 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4860 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862 $as_echo_n "checking for $ac_word... " >&6; }
4863 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4864 $as_echo_n "(cached) " >&6
4865 else
4866 if test -n "$GNATMAKE"; then
4867 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4868 else
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 break 2
4880 done
4881 done
4882 IFS=$as_save_IFS
4886 GNATMAKE=$ac_cv_prog_GNATMAKE
4887 if test -n "$GNATMAKE"; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4889 $as_echo "$GNATMAKE" >&6; }
4890 else
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 $as_echo "no" >&6; }
4897 if test -z "$ac_cv_prog_GNATMAKE"; then
4898 ac_ct_GNATMAKE=$GNATMAKE
4899 # Extract the first word of "gnatmake", so it can be a program name with args.
4900 set dummy gnatmake; ac_word=$2
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4902 $as_echo_n "checking for $ac_word... " >&6; }
4903 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4904 $as_echo_n "(cached) " >&6
4905 else
4906 if test -n "$ac_ct_GNATMAKE"; then
4907 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4908 else
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 for as_dir in $PATH
4912 IFS=$as_save_IFS
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4916 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 break 2
4920 done
4921 done
4922 IFS=$as_save_IFS
4926 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4927 if test -n "$ac_ct_GNATMAKE"; then
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4929 $as_echo "$ac_ct_GNATMAKE" >&6; }
4930 else
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4932 $as_echo "no" >&6; }
4935 if test "x$ac_ct_GNATMAKE" = x; then
4936 GNATMAKE="no"
4937 else
4938 case $cross_compiling:$ac_tool_warned in
4939 yes:)
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4942 ac_tool_warned=yes ;;
4943 esac
4944 GNATMAKE=$ac_ct_GNATMAKE
4946 else
4947 GNATMAKE="$ac_cv_prog_GNATMAKE"
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4951 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4952 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 cat >conftest.adb <<EOF
4956 procedure conftest is begin null; end conftest;
4958 acx_cv_cc_gcc_supports_ada=no
4959 # There is a bug in old released versions of GCC which causes the
4960 # driver to exit successfully when the appropriate language module
4961 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4962 # Therefore we must check for the error message as well as an
4963 # unsuccessful exit.
4964 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4965 # given a .adb file, but produce no object file. So we must check
4966 # if an object file was really produced to guard against this.
4967 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4968 if test x"$errors" = x && test -f conftest.$ac_objext; then
4969 acx_cv_cc_gcc_supports_ada=yes
4971 rm -f conftest.*
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4974 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4976 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4977 have_gnat=yes
4978 else
4979 have_gnat=no
4983 # Do configure tests with the C++ compiler, since that's what we build with.
4984 ac_ext=cpp
4985 ac_cpp='$CXXCPP $CPPFLAGS'
4986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4991 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4992 # optimizations to be activated explicitly by the toplevel.
4993 case "$CC" in
4994 */prev-gcc/xgcc*) ;;
4995 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4996 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4997 esac
5001 # Determine PICFLAG for target gnatlib.
5006 case "${target}" in
5007 # PIC is the default on some targets or must not be used.
5008 *-*-darwin*)
5009 # For darwin, common symbols are not allowed in MH_DYLIB files
5010 case "${CFLAGS}" in
5011 # If we are using a compiler supporting mdynamic-no-pic
5012 # and the option has been tested as safe to add, then cancel
5013 # it here, since the code generated is incompatible with shared
5014 # libs.
5015 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET='-fno-common -mno-dynamic-no-pic' ;;
5016 *) PICFLAG_FOR_TARGET=-fno-common ;;
5017 esac
5019 alpha*-dec-osf5*)
5020 # PIC is the default.
5022 hppa*64*-*-hpux*)
5023 # PIC is the default for 64-bit PA HP-UX.
5025 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
5027 i[34567]86-*-mingw* | x86_64-*-mingw*)
5029 i[34567]86-*-interix[3-9]*)
5030 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5031 # Instead, we relocate shared libraries at runtime.
5033 i[34567]86-*-nto-qnx*)
5034 # QNX uses GNU C++, but need to define -shared option too, otherwise
5035 # it will coredump.
5036 PICFLAG_FOR_TARGET='-fPIC -shared'
5038 i[34567]86-pc-msdosdjgpp*)
5039 # DJGPP does not support shared libraries at all.
5041 ia64*-*-hpux*)
5042 # On IA64 HP-UX, PIC is the default but the pic flag
5043 # sets the default TLS model and affects inlining.
5044 PICFLAG_FOR_TARGET=-fPIC
5046 mips-sgi-irix6*)
5047 # PIC is the default.
5049 rs6000-ibm-aix* | powerpc-ibm-aix*)
5050 # All AIX code is PIC.
5053 # Some targets support both -fPIC and -fpic, but prefer the latter.
5054 # FIXME: Why?
5055 i[34567]86-*-* | x86_64-*-*)
5056 PICFLAG_FOR_TARGET=-fpic
5058 # FIXME: Override -fPIC default in libgcc only?
5059 sh-*-linux* | sh[2346lbe]*-*-linux*)
5060 PICFLAG_FOR_TARGET=-fpic
5062 # FIXME: Simplify to sh*-*-netbsd*?
5063 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
5064 sh64-*-netbsd* | sh64l*-*-netbsd*)
5065 PICFLAG_FOR_TARGET=-fpic
5067 # Default to -fPIC unless specified otherwise.
5069 PICFLAG_FOR_TARGET=-fPIC
5071 esac
5073 # If the user explicitly uses -fpic/-fPIC, keep that.
5074 case "${CFLAGS_FOR_TARGET}" in
5075 *-fpic*)
5076 PICFLAG_FOR_TARGET=-fpic
5078 *-fPIC*)
5079 PICFLAG_FOR_TARGET=-fPIC
5081 esac
5085 # -------------------------
5086 # Check C compiler features
5087 # -------------------------
5090 ac_ext=cpp
5091 ac_cpp='$CXXCPP $CPPFLAGS'
5092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5096 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5097 if test -z "$CXXCPP"; then
5098 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 # Double quotes because CXXCPP needs to be expanded
5102 for CXXCPP in "$CXX -E" "/lib/cpp"
5104 ac_preproc_ok=false
5105 for ac_cxx_preproc_warn_flag in '' yes
5107 # Use a header file that comes with gcc, so configuring glibc
5108 # with a fresh cross-compiler works.
5109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5110 # <limits.h> exists even on freestanding compilers.
5111 # On the NeXT, cc -E runs the code through the compiler's parser,
5112 # not just through cpp. "Syntax error" is here to catch this case.
5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5115 #ifdef __STDC__
5116 # include <limits.h>
5117 #else
5118 # include <assert.h>
5119 #endif
5120 Syntax error
5121 _ACEOF
5122 if ac_fn_cxx_try_cpp "$LINENO"; then :
5124 else
5125 # Broken: fails on valid input.
5126 continue
5128 rm -f conftest.err conftest.$ac_ext
5130 # OK, works on sane cases. Now check whether nonexistent headers
5131 # can be detected and how.
5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h. */
5134 #include <ac_nonexistent.h>
5135 _ACEOF
5136 if ac_fn_cxx_try_cpp "$LINENO"; then :
5137 # Broken: success on invalid input.
5138 continue
5139 else
5140 # Passes both tests.
5141 ac_preproc_ok=:
5142 break
5144 rm -f conftest.err conftest.$ac_ext
5146 done
5147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5148 rm -f conftest.err conftest.$ac_ext
5149 if $ac_preproc_ok; then :
5150 break
5153 done
5154 ac_cv_prog_CXXCPP=$CXXCPP
5157 CXXCPP=$ac_cv_prog_CXXCPP
5158 else
5159 ac_cv_prog_CXXCPP=$CXXCPP
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5162 $as_echo "$CXXCPP" >&6; }
5163 ac_preproc_ok=false
5164 for ac_cxx_preproc_warn_flag in '' yes
5166 # Use a header file that comes with gcc, so configuring glibc
5167 # with a fresh cross-compiler works.
5168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5169 # <limits.h> exists even on freestanding compilers.
5170 # On the NeXT, cc -E runs the code through the compiler's parser,
5171 # not just through cpp. "Syntax error" is here to catch this case.
5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h. */
5174 #ifdef __STDC__
5175 # include <limits.h>
5176 #else
5177 # include <assert.h>
5178 #endif
5179 Syntax error
5180 _ACEOF
5181 if ac_fn_cxx_try_cpp "$LINENO"; then :
5183 else
5184 # Broken: fails on valid input.
5185 continue
5187 rm -f conftest.err conftest.$ac_ext
5189 # OK, works on sane cases. Now check whether nonexistent headers
5190 # can be detected and how.
5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h. */
5193 #include <ac_nonexistent.h>
5194 _ACEOF
5195 if ac_fn_cxx_try_cpp "$LINENO"; then :
5196 # Broken: success on invalid input.
5197 continue
5198 else
5199 # Passes both tests.
5200 ac_preproc_ok=:
5201 break
5203 rm -f conftest.err conftest.$ac_ext
5205 done
5206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5207 rm -f conftest.err conftest.$ac_ext
5208 if $ac_preproc_ok; then :
5210 else
5211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5213 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
5214 See \`config.log' for more details." "$LINENO" 5; }
5217 ac_ext=cpp
5218 ac_cpp='$CXXCPP $CPPFLAGS'
5219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5225 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5226 if test "${ac_cv_path_GREP+set}" = set; then :
5227 $as_echo_n "(cached) " >&6
5228 else
5229 if test -z "$GREP"; then
5230 ac_path_GREP_found=false
5231 # Loop through the user's path and test for each of PROGNAME-LIST
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
5237 for ac_prog in grep ggrep; do
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5240 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5241 # Check for GNU ac_path_GREP and select it if it is found.
5242 # Check for GNU $ac_path_GREP
5243 case `"$ac_path_GREP" --version 2>&1` in
5244 *GNU*)
5245 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5247 ac_count=0
5248 $as_echo_n 0123456789 >"conftest.in"
5249 while :
5251 cat "conftest.in" "conftest.in" >"conftest.tmp"
5252 mv "conftest.tmp" "conftest.in"
5253 cp "conftest.in" "conftest.nl"
5254 $as_echo 'GREP' >> "conftest.nl"
5255 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5257 as_fn_arith $ac_count + 1 && ac_count=$as_val
5258 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5259 # Best one so far, save it but keep looking for a better one
5260 ac_cv_path_GREP="$ac_path_GREP"
5261 ac_path_GREP_max=$ac_count
5263 # 10*(2^10) chars as input seems more than enough
5264 test $ac_count -gt 10 && break
5265 done
5266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5267 esac
5269 $ac_path_GREP_found && break 3
5270 done
5271 done
5272 done
5273 IFS=$as_save_IFS
5274 if test -z "$ac_cv_path_GREP"; then
5275 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5277 else
5278 ac_cv_path_GREP=$GREP
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5283 $as_echo "$ac_cv_path_GREP" >&6; }
5284 GREP="$ac_cv_path_GREP"
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5288 $as_echo_n "checking for egrep... " >&6; }
5289 if test "${ac_cv_path_EGREP+set}" = set; then :
5290 $as_echo_n "(cached) " >&6
5291 else
5292 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5293 then ac_cv_path_EGREP="$GREP -E"
5294 else
5295 if test -z "$EGREP"; then
5296 ac_path_EGREP_found=false
5297 # Loop through the user's path and test for each of PROGNAME-LIST
5298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5301 IFS=$as_save_IFS
5302 test -z "$as_dir" && as_dir=.
5303 for ac_prog in egrep; do
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5306 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5307 # Check for GNU ac_path_EGREP and select it if it is found.
5308 # Check for GNU $ac_path_EGREP
5309 case `"$ac_path_EGREP" --version 2>&1` in
5310 *GNU*)
5311 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5313 ac_count=0
5314 $as_echo_n 0123456789 >"conftest.in"
5315 while :
5317 cat "conftest.in" "conftest.in" >"conftest.tmp"
5318 mv "conftest.tmp" "conftest.in"
5319 cp "conftest.in" "conftest.nl"
5320 $as_echo 'EGREP' >> "conftest.nl"
5321 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5323 as_fn_arith $ac_count + 1 && ac_count=$as_val
5324 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5325 # Best one so far, save it but keep looking for a better one
5326 ac_cv_path_EGREP="$ac_path_EGREP"
5327 ac_path_EGREP_max=$ac_count
5329 # 10*(2^10) chars as input seems more than enough
5330 test $ac_count -gt 10 && break
5331 done
5332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5333 esac
5335 $ac_path_EGREP_found && break 3
5336 done
5337 done
5338 done
5339 IFS=$as_save_IFS
5340 if test -z "$ac_cv_path_EGREP"; then
5341 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5343 else
5344 ac_cv_path_EGREP=$EGREP
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5350 $as_echo "$ac_cv_path_EGREP" >&6; }
5351 EGREP="$ac_cv_path_EGREP"
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5355 $as_echo_n "checking for ANSI C header files... " >&6; }
5356 if test "${ac_cv_header_stdc+set}" = set; then :
5357 $as_echo_n "(cached) " >&6
5358 else
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5361 #include <stdlib.h>
5362 #include <stdarg.h>
5363 #include <string.h>
5364 #include <float.h>
5367 main ()
5371 return 0;
5373 _ACEOF
5374 if ac_fn_cxx_try_compile "$LINENO"; then :
5375 ac_cv_header_stdc=yes
5376 else
5377 ac_cv_header_stdc=no
5379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5381 if test $ac_cv_header_stdc = yes; then
5382 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5385 #include <string.h>
5387 _ACEOF
5388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5389 $EGREP "memchr" >/dev/null 2>&1; then :
5391 else
5392 ac_cv_header_stdc=no
5394 rm -f conftest*
5398 if test $ac_cv_header_stdc = yes; then
5399 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h. */
5402 #include <stdlib.h>
5404 _ACEOF
5405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5406 $EGREP "free" >/dev/null 2>&1; then :
5408 else
5409 ac_cv_header_stdc=no
5411 rm -f conftest*
5415 if test $ac_cv_header_stdc = yes; then
5416 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5417 if test "$cross_compiling" = yes; then :
5419 else
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5422 #include <ctype.h>
5423 #include <stdlib.h>
5424 #if ((' ' & 0x0FF) == 0x020)
5425 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5426 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5427 #else
5428 # define ISLOWER(c) \
5429 (('a' <= (c) && (c) <= 'i') \
5430 || ('j' <= (c) && (c) <= 'r') \
5431 || ('s' <= (c) && (c) <= 'z'))
5432 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5433 #endif
5435 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5437 main ()
5439 int i;
5440 for (i = 0; i < 256; i++)
5441 if (XOR (islower (i), ISLOWER (i))
5442 || toupper (i) != TOUPPER (i))
5443 return 2;
5444 return 0;
5446 _ACEOF
5447 if ac_fn_cxx_try_run "$LINENO"; then :
5449 else
5450 ac_cv_header_stdc=no
5452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5453 conftest.$ac_objext conftest.beam conftest.$ac_ext
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5459 $as_echo "$ac_cv_header_stdc" >&6; }
5460 if test $ac_cv_header_stdc = yes; then
5462 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5466 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5467 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5468 inttypes.h stdint.h unistd.h
5469 do :
5470 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5471 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5473 eval as_val=\$$as_ac_Header
5474 if test "x$as_val" = x""yes; then :
5475 cat >>confdefs.h <<_ACEOF
5476 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5477 _ACEOF
5481 done
5485 ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5486 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5487 MINIX=yes
5488 else
5489 MINIX=
5493 if test "$MINIX" = yes; then
5495 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5498 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5501 $as_echo "#define _MINIX 1" >>confdefs.h
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5507 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5508 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5509 $as_echo_n "(cached) " >&6
5510 else
5511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512 /* end confdefs.h. */
5514 # define __EXTENSIONS__ 1
5515 $ac_includes_default
5517 main ()
5521 return 0;
5523 _ACEOF
5524 if ac_fn_cxx_try_compile "$LINENO"; then :
5525 ac_cv_safe_to_define___extensions__=yes
5526 else
5527 ac_cv_safe_to_define___extensions__=no
5529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5532 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5533 test $ac_cv_safe_to_define___extensions__ = yes &&
5534 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5536 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5538 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5540 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5542 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5545 ac_ext=c
5546 ac_cpp='$CPP $CPPFLAGS'
5547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5551 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5552 # On Suns, sometimes $CPP names a directory.
5553 if test -n "$CPP" && test -d "$CPP"; then
5554 CPP=
5556 if test -z "$CPP"; then
5557 if test "${ac_cv_prog_CPP+set}" = set; then :
5558 $as_echo_n "(cached) " >&6
5559 else
5560 # Double quotes because CPP needs to be expanded
5561 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5563 ac_preproc_ok=false
5564 for ac_c_preproc_warn_flag in '' yes
5566 # Use a header file that comes with gcc, so configuring glibc
5567 # with a fresh cross-compiler works.
5568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5569 # <limits.h> exists even on freestanding compilers.
5570 # On the NeXT, cc -E runs the code through the compiler's parser,
5571 # not just through cpp. "Syntax error" is here to catch this case.
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5574 #ifdef __STDC__
5575 # include <limits.h>
5576 #else
5577 # include <assert.h>
5578 #endif
5579 Syntax error
5580 _ACEOF
5581 if ac_fn_c_try_cpp "$LINENO"; then :
5583 else
5584 # Broken: fails on valid input.
5585 continue
5587 rm -f conftest.err conftest.$ac_ext
5589 # OK, works on sane cases. Now check whether nonexistent headers
5590 # can be detected and how.
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5593 #include <ac_nonexistent.h>
5594 _ACEOF
5595 if ac_fn_c_try_cpp "$LINENO"; then :
5596 # Broken: success on invalid input.
5597 continue
5598 else
5599 # Passes both tests.
5600 ac_preproc_ok=:
5601 break
5603 rm -f conftest.err conftest.$ac_ext
5605 done
5606 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5607 rm -f conftest.err conftest.$ac_ext
5608 if $ac_preproc_ok; then :
5609 break
5612 done
5613 ac_cv_prog_CPP=$CPP
5616 CPP=$ac_cv_prog_CPP
5617 else
5618 ac_cv_prog_CPP=$CPP
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5621 $as_echo "$CPP" >&6; }
5622 ac_preproc_ok=false
5623 for ac_c_preproc_warn_flag in '' yes
5625 # Use a header file that comes with gcc, so configuring glibc
5626 # with a fresh cross-compiler works.
5627 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5628 # <limits.h> exists even on freestanding compilers.
5629 # On the NeXT, cc -E runs the code through the compiler's parser,
5630 # not just through cpp. "Syntax error" is here to catch this case.
5631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5632 /* end confdefs.h. */
5633 #ifdef __STDC__
5634 # include <limits.h>
5635 #else
5636 # include <assert.h>
5637 #endif
5638 Syntax error
5639 _ACEOF
5640 if ac_fn_c_try_cpp "$LINENO"; then :
5642 else
5643 # Broken: fails on valid input.
5644 continue
5646 rm -f conftest.err conftest.$ac_ext
5648 # OK, works on sane cases. Now check whether nonexistent headers
5649 # can be detected and how.
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5652 #include <ac_nonexistent.h>
5653 _ACEOF
5654 if ac_fn_c_try_cpp "$LINENO"; then :
5655 # Broken: success on invalid input.
5656 continue
5657 else
5658 # Passes both tests.
5659 ac_preproc_ok=:
5660 break
5662 rm -f conftest.err conftest.$ac_ext
5664 done
5665 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5666 rm -f conftest.err conftest.$ac_ext
5667 if $ac_preproc_ok; then :
5669 else
5670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5672 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5673 See \`config.log' for more details." "$LINENO" 5; }
5676 ac_ext=cpp
5677 ac_cpp='$CXXCPP $CPPFLAGS'
5678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5683 $as_echo_n "checking for inline... " >&6; }
5684 if test "${ac_cv_c_inline+set}" = set; then :
5685 $as_echo_n "(cached) " >&6
5686 else
5687 ac_cv_c_inline=no
5688 for ac_kw in inline __inline__ __inline; do
5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h. */
5691 #ifndef __cplusplus
5692 typedef int foo_t;
5693 static $ac_kw foo_t static_foo () {return 0; }
5694 $ac_kw foo_t foo () {return 0; }
5695 #endif
5697 _ACEOF
5698 if ac_fn_cxx_try_compile "$LINENO"; then :
5699 ac_cv_c_inline=$ac_kw
5701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702 test "$ac_cv_c_inline" != no && break
5703 done
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5707 $as_echo "$ac_cv_c_inline" >&6; }
5709 case $ac_cv_c_inline in
5710 inline | yes) ;;
5712 case $ac_cv_c_inline in
5713 no) ac_val=;;
5714 *) ac_val=$ac_cv_c_inline;;
5715 esac
5716 cat >>confdefs.h <<_ACEOF
5717 #ifndef __cplusplus
5718 #define inline $ac_val
5719 #endif
5720 _ACEOF
5722 esac
5725 # Check whether --enable-largefile was given.
5726 if test "${enable_largefile+set}" = set; then :
5727 enableval=$enable_largefile;
5730 if test "$enable_largefile" != no; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5733 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5734 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5735 $as_echo_n "(cached) " >&6
5736 else
5737 ac_cv_sys_largefile_CC=no
5738 if test "$GCC" != yes; then
5739 ac_save_CC=$CC
5740 while :; do
5741 # IRIX 6.2 and later do not support large files by default,
5742 # so use the C compiler's -n32 option if that helps.
5743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744 /* end confdefs.h. */
5745 #include <sys/types.h>
5746 /* Check that off_t can represent 2**63 - 1 correctly.
5747 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5748 since some C++ compilers masquerading as C compilers
5749 incorrectly reject 9223372036854775807. */
5750 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5751 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5752 && LARGE_OFF_T % 2147483647 == 1)
5753 ? 1 : -1];
5755 main ()
5759 return 0;
5761 _ACEOF
5762 if ac_fn_cxx_try_compile "$LINENO"; then :
5763 break
5765 rm -f core conftest.err conftest.$ac_objext
5766 CC="$CC -n32"
5767 if ac_fn_cxx_try_compile "$LINENO"; then :
5768 ac_cv_sys_largefile_CC=' -n32'; break
5770 rm -f core conftest.err conftest.$ac_objext
5771 break
5772 done
5773 CC=$ac_save_CC
5774 rm -f conftest.$ac_ext
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5778 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5779 if test "$ac_cv_sys_largefile_CC" != no; then
5780 CC=$CC$ac_cv_sys_largefile_CC
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5784 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5785 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5786 $as_echo_n "(cached) " >&6
5787 else
5788 while :; do
5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5791 #include <sys/types.h>
5792 /* Check that off_t can represent 2**63 - 1 correctly.
5793 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5794 since some C++ compilers masquerading as C compilers
5795 incorrectly reject 9223372036854775807. */
5796 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5797 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5798 && LARGE_OFF_T % 2147483647 == 1)
5799 ? 1 : -1];
5801 main ()
5805 return 0;
5807 _ACEOF
5808 if ac_fn_cxx_try_compile "$LINENO"; then :
5809 ac_cv_sys_file_offset_bits=no; break
5811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5814 #define _FILE_OFFSET_BITS 64
5815 #include <sys/types.h>
5816 /* Check that off_t can represent 2**63 - 1 correctly.
5817 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5818 since some C++ compilers masquerading as C compilers
5819 incorrectly reject 9223372036854775807. */
5820 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5821 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5822 && LARGE_OFF_T % 2147483647 == 1)
5823 ? 1 : -1];
5825 main ()
5829 return 0;
5831 _ACEOF
5832 if ac_fn_cxx_try_compile "$LINENO"; then :
5833 ac_cv_sys_file_offset_bits=64; break
5835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5836 ac_cv_sys_file_offset_bits=unknown
5837 break
5838 done
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5841 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5842 case $ac_cv_sys_file_offset_bits in #(
5843 no | unknown) ;;
5845 cat >>confdefs.h <<_ACEOF
5846 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5847 _ACEOF
5849 esac
5850 rm -rf conftest*
5851 if test $ac_cv_sys_file_offset_bits = unknown; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5853 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5854 if test "${ac_cv_sys_large_files+set}" = set; then :
5855 $as_echo_n "(cached) " >&6
5856 else
5857 while :; do
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5860 #include <sys/types.h>
5861 /* Check that off_t can represent 2**63 - 1 correctly.
5862 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5863 since some C++ compilers masquerading as C compilers
5864 incorrectly reject 9223372036854775807. */
5865 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5866 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5867 && LARGE_OFF_T % 2147483647 == 1)
5868 ? 1 : -1];
5870 main ()
5874 return 0;
5876 _ACEOF
5877 if ac_fn_cxx_try_compile "$LINENO"; then :
5878 ac_cv_sys_large_files=no; break
5880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h. */
5883 #define _LARGE_FILES 1
5884 #include <sys/types.h>
5885 /* Check that off_t can represent 2**63 - 1 correctly.
5886 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5887 since some C++ compilers masquerading as C compilers
5888 incorrectly reject 9223372036854775807. */
5889 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5890 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5891 && LARGE_OFF_T % 2147483647 == 1)
5892 ? 1 : -1];
5894 main ()
5898 return 0;
5900 _ACEOF
5901 if ac_fn_cxx_try_compile "$LINENO"; then :
5902 ac_cv_sys_large_files=1; break
5904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905 ac_cv_sys_large_files=unknown
5906 break
5907 done
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5910 $as_echo "$ac_cv_sys_large_files" >&6; }
5911 case $ac_cv_sys_large_files in #(
5912 no | unknown) ;;
5914 cat >>confdefs.h <<_ACEOF
5915 #define _LARGE_FILES $ac_cv_sys_large_files
5916 _ACEOF
5918 esac
5919 rm -rf conftest*
5924 # sizeof(char) is 1 by definition.
5925 # The cast to long int works around a bug in the HP C Compiler
5926 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5927 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5928 # This bug is HP SR number 8606223364.
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5930 $as_echo_n "checking size of void *... " >&6; }
5931 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5932 $as_echo_n "(cached) " >&6
5933 else
5934 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5936 else
5937 if test "$ac_cv_type_void_p" = yes; then
5938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5940 { as_fn_set_status 77
5941 as_fn_error "cannot compute sizeof (void *)
5942 See \`config.log' for more details." "$LINENO" 5; }; }
5943 else
5944 ac_cv_sizeof_void_p=0
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5950 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5954 cat >>confdefs.h <<_ACEOF
5955 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5956 _ACEOF
5959 # The cast to long int works around a bug in the HP C Compiler
5960 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5961 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5962 # This bug is HP SR number 8606223364.
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5964 $as_echo_n "checking size of short... " >&6; }
5965 if test "${ac_cv_sizeof_short+set}" = set; then :
5966 $as_echo_n "(cached) " >&6
5967 else
5968 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5970 else
5971 if test "$ac_cv_type_short" = yes; then
5972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5974 { as_fn_set_status 77
5975 as_fn_error "cannot compute sizeof (short)
5976 See \`config.log' for more details." "$LINENO" 5; }; }
5977 else
5978 ac_cv_sizeof_short=0
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5984 $as_echo "$ac_cv_sizeof_short" >&6; }
5988 cat >>confdefs.h <<_ACEOF
5989 #define SIZEOF_SHORT $ac_cv_sizeof_short
5990 _ACEOF
5993 # The cast to long int works around a bug in the HP C Compiler
5994 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5995 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5996 # This bug is HP SR number 8606223364.
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5998 $as_echo_n "checking size of int... " >&6; }
5999 if test "${ac_cv_sizeof_int+set}" = set; then :
6000 $as_echo_n "(cached) " >&6
6001 else
6002 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6004 else
6005 if test "$ac_cv_type_int" = yes; then
6006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6008 { as_fn_set_status 77
6009 as_fn_error "cannot compute sizeof (int)
6010 See \`config.log' for more details." "$LINENO" 5; }; }
6011 else
6012 ac_cv_sizeof_int=0
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6018 $as_echo "$ac_cv_sizeof_int" >&6; }
6022 cat >>confdefs.h <<_ACEOF
6023 #define SIZEOF_INT $ac_cv_sizeof_int
6024 _ACEOF
6027 # The cast to long int works around a bug in the HP C Compiler
6028 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6029 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6030 # This bug is HP SR number 8606223364.
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6032 $as_echo_n "checking size of long... " >&6; }
6033 if test "${ac_cv_sizeof_long+set}" = set; then :
6034 $as_echo_n "(cached) " >&6
6035 else
6036 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6038 else
6039 if test "$ac_cv_type_long" = yes; then
6040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6042 { as_fn_set_status 77
6043 as_fn_error "cannot compute sizeof (long)
6044 See \`config.log' for more details." "$LINENO" 5; }; }
6045 else
6046 ac_cv_sizeof_long=0
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6052 $as_echo "$ac_cv_sizeof_long" >&6; }
6056 cat >>confdefs.h <<_ACEOF
6057 #define SIZEOF_LONG $ac_cv_sizeof_long
6058 _ACEOF
6061 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6062 if test "x$ac_cv_type_long_long" = x""yes; then :
6064 cat >>confdefs.h <<_ACEOF
6065 #define HAVE_LONG_LONG 1
6066 _ACEOF
6068 # The cast to long int works around a bug in the HP C Compiler
6069 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6070 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6071 # This bug is HP SR number 8606223364.
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6073 $as_echo_n "checking size of long long... " >&6; }
6074 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6075 $as_echo_n "(cached) " >&6
6076 else
6077 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6079 else
6080 if test "$ac_cv_type_long_long" = yes; then
6081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6083 { as_fn_set_status 77
6084 as_fn_error "cannot compute sizeof (long long)
6085 See \`config.log' for more details." "$LINENO" 5; }; }
6086 else
6087 ac_cv_sizeof_long_long=0
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6093 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6097 cat >>confdefs.h <<_ACEOF
6098 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6099 _ACEOF
6104 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6105 case $ac_cv_c_int8_t in #(
6106 no|yes) ;; #(
6109 cat >>confdefs.h <<_ACEOF
6110 #define int8_t $ac_cv_c_int8_t
6111 _ACEOF
6113 esac
6115 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6116 case $ac_cv_c_int16_t in #(
6117 no|yes) ;; #(
6120 cat >>confdefs.h <<_ACEOF
6121 #define int16_t $ac_cv_c_int16_t
6122 _ACEOF
6124 esac
6126 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6127 case $ac_cv_c_int32_t in #(
6128 no|yes) ;; #(
6131 cat >>confdefs.h <<_ACEOF
6132 #define int32_t $ac_cv_c_int32_t
6133 _ACEOF
6135 esac
6137 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6138 case $ac_cv_c_int64_t in #(
6139 no|yes) ;; #(
6142 cat >>confdefs.h <<_ACEOF
6143 #define int64_t $ac_cv_c_int64_t
6144 _ACEOF
6146 esac
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6150 $as_echo_n "checking for long long int... " >&6; }
6151 if test "${ac_cv_type_long_long_int+set}" = set; then :
6152 $as_echo_n "(cached) " >&6
6153 else
6154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6157 /* For now, do not test the preprocessor; as of 2007 there are too many
6158 implementations with broken preprocessors. Perhaps this can
6159 be revisited in 2012. In the meantime, code should not expect
6160 #if to work with literals wider than 32 bits. */
6161 /* Test literals. */
6162 long long int ll = 9223372036854775807ll;
6163 long long int nll = -9223372036854775807LL;
6164 unsigned long long int ull = 18446744073709551615ULL;
6165 /* Test constant expressions. */
6166 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6167 ? 1 : -1)];
6168 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6169 ? 1 : -1)];
6170 int i = 63;
6172 main ()
6174 /* Test availability of runtime routines for shift and division. */
6175 long long int llmax = 9223372036854775807ll;
6176 unsigned long long int ullmax = 18446744073709551615ull;
6177 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6178 | (llmax / ll) | (llmax % ll)
6179 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6180 | (ullmax / ull) | (ullmax % ull));
6182 return 0;
6185 _ACEOF
6186 if ac_fn_cxx_try_link "$LINENO"; then :
6187 if test "$cross_compiling" = yes; then :
6188 ac_cv_type_long_long_int=yes
6189 else
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6192 #include <limits.h>
6193 #ifndef LLONG_MAX
6194 # define HALF \
6195 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6196 # define LLONG_MAX (HALF - 1 + HALF)
6197 #endif
6199 main ()
6201 long long int n = 1;
6202 int i;
6203 for (i = 0; ; i++)
6205 long long int m = n << i;
6206 if (m >> i != n)
6207 return 1;
6208 if (LLONG_MAX / 2 < m)
6209 break;
6211 return 0;
6213 return 0;
6215 _ACEOF
6216 if ac_fn_cxx_try_run "$LINENO"; then :
6217 ac_cv_type_long_long_int=yes
6218 else
6219 ac_cv_type_long_long_int=no
6221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6222 conftest.$ac_objext conftest.beam conftest.$ac_ext
6225 else
6226 ac_cv_type_long_long_int=no
6228 rm -f core conftest.err conftest.$ac_objext \
6229 conftest$ac_exeext conftest.$ac_ext
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6232 $as_echo "$ac_cv_type_long_long_int" >&6; }
6233 if test $ac_cv_type_long_long_int = yes; then
6235 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6241 ac_fn_cxx_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6242 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6244 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6246 else
6247 test $ac_cv_type_long_long_int = yes \
6248 && ac_type='long long int' \
6249 || ac_type='long int'
6251 cat >>confdefs.h <<_ACEOF
6252 #define intmax_t $ac_type
6253 _ACEOF
6259 ac_fn_cxx_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6260 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6262 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6264 else
6265 for ac_type in 'int' 'long int' 'long long int'; do
6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h. */
6268 $ac_includes_default
6270 main ()
6272 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6273 test_array [0] = 0
6276 return 0;
6278 _ACEOF
6279 if ac_fn_cxx_try_compile "$LINENO"; then :
6281 cat >>confdefs.h <<_ACEOF
6282 #define intptr_t $ac_type
6283 _ACEOF
6285 ac_type=
6287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6288 test -z "$ac_type" && break
6289 done
6293 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6294 case $ac_cv_c_uint8_t in #(
6295 no|yes) ;; #(
6298 $as_echo "#define _UINT8_T 1" >>confdefs.h
6301 cat >>confdefs.h <<_ACEOF
6302 #define uint8_t $ac_cv_c_uint8_t
6303 _ACEOF
6305 esac
6307 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6308 case $ac_cv_c_uint16_t in #(
6309 no|yes) ;; #(
6313 cat >>confdefs.h <<_ACEOF
6314 #define uint16_t $ac_cv_c_uint16_t
6315 _ACEOF
6317 esac
6319 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6320 case $ac_cv_c_uint32_t in #(
6321 no|yes) ;; #(
6324 $as_echo "#define _UINT32_T 1" >>confdefs.h
6327 cat >>confdefs.h <<_ACEOF
6328 #define uint32_t $ac_cv_c_uint32_t
6329 _ACEOF
6331 esac
6333 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6334 case $ac_cv_c_uint64_t in #(
6335 no|yes) ;; #(
6338 $as_echo "#define _UINT64_T 1" >>confdefs.h
6341 cat >>confdefs.h <<_ACEOF
6342 #define uint64_t $ac_cv_c_uint64_t
6343 _ACEOF
6345 esac
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6349 $as_echo_n "checking for unsigned long long int... " >&6; }
6350 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6351 $as_echo_n "(cached) " >&6
6352 else
6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h. */
6356 /* For now, do not test the preprocessor; as of 2007 there are too many
6357 implementations with broken preprocessors. Perhaps this can
6358 be revisited in 2012. In the meantime, code should not expect
6359 #if to work with literals wider than 32 bits. */
6360 /* Test literals. */
6361 long long int ll = 9223372036854775807ll;
6362 long long int nll = -9223372036854775807LL;
6363 unsigned long long int ull = 18446744073709551615ULL;
6364 /* Test constant expressions. */
6365 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6366 ? 1 : -1)];
6367 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6368 ? 1 : -1)];
6369 int i = 63;
6371 main ()
6373 /* Test availability of runtime routines for shift and division. */
6374 long long int llmax = 9223372036854775807ll;
6375 unsigned long long int ullmax = 18446744073709551615ull;
6376 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6377 | (llmax / ll) | (llmax % ll)
6378 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6379 | (ullmax / ull) | (ullmax % ull));
6381 return 0;
6384 _ACEOF
6385 if ac_fn_cxx_try_link "$LINENO"; then :
6386 ac_cv_type_unsigned_long_long_int=yes
6387 else
6388 ac_cv_type_unsigned_long_long_int=no
6390 rm -f core conftest.err conftest.$ac_objext \
6391 conftest$ac_exeext conftest.$ac_ext
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6394 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6395 if test $ac_cv_type_unsigned_long_long_int = yes; then
6397 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6403 ac_fn_cxx_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6404 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6406 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6408 else
6409 test $ac_cv_type_unsigned_long_long_int = yes \
6410 && ac_type='unsigned long long int' \
6411 || ac_type='unsigned long int'
6413 cat >>confdefs.h <<_ACEOF
6414 #define uintmax_t $ac_type
6415 _ACEOF
6421 ac_fn_cxx_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6422 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6424 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6426 else
6427 for ac_type in 'unsigned int' 'unsigned long int' \
6428 'unsigned long long int'; do
6429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430 /* end confdefs.h. */
6431 $ac_includes_default
6433 main ()
6435 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6436 test_array [0] = 0
6439 return 0;
6441 _ACEOF
6442 if ac_fn_cxx_try_compile "$LINENO"; then :
6444 cat >>confdefs.h <<_ACEOF
6445 #define uintptr_t $ac_type
6446 _ACEOF
6448 ac_type=
6450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6451 test -z "$ac_type" && break
6452 done
6468 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6469 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6472 # check what underlying integer type int64_t uses
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6474 $as_echo_n "checking for int64_t underlying type... " >&6; }
6475 if test "${ac_cv_int64_t_type+set}" = set; then :
6476 $as_echo_n "(cached) " >&6
6477 else
6479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6480 /* end confdefs.h. */
6482 #ifdef HAVE_STDINT_H
6483 #include <stdint.h>
6484 #endif
6485 template <typename T> struct X { };
6486 template <>
6487 struct X<long> { typedef long t; };
6490 main ()
6492 X<int64_t>::t x;
6494 return 0;
6496 _ACEOF
6497 if ac_fn_cxx_try_compile "$LINENO"; then :
6498 ac_cv_int64_t_type=long
6499 else
6500 ac_cv_int64_t_type="long long"
6502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6505 $as_echo "$ac_cv_int64_t_type" >&6; }
6506 if test "$ac_cv_int64_t_type" = "long"; then
6508 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6510 else
6511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512 /* end confdefs.h. */
6514 #ifdef HAVE_STDINT_H
6515 #include <stdint.h>
6516 #endif
6517 template <typename T> struct X { };
6518 template <>
6519 struct X<long long> { typedef long long t; };
6522 main ()
6524 X<int64_t>::t x;
6526 return 0;
6528 _ACEOF
6529 if ac_fn_cxx_try_compile "$LINENO"; then :
6531 else
6532 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6537 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6538 # If the host compiler is affected by the bug, and we build with optimization
6539 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6540 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6541 # Since there is no reliable feature check for the presence of this bug,
6542 # we simply use a GCC version number check. (This should never trigger for
6543 # stages 2 or 3 of a native bootstrap.)
6544 aliasing_flags=
6545 if test "$GCC" = yes; then
6546 saved_CXXFLAGS="$CXXFLAGS"
6548 # The following test compilation will succeed if and only if $CXX accepts
6549 # -fno-strict-aliasing *and* is older than GCC 4.3.
6550 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6552 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h. */
6556 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6557 #error compiler not affected by placement new aliasing bug
6558 #endif
6560 _ACEOF
6561 if ac_fn_cxx_try_compile "$LINENO"; then :
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6563 $as_echo "yes" >&6; }; aliasing_flags='-fno-strict-aliasing'
6564 else
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6566 $as_echo "no" >&6; }
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570 CXXFLAGS="$saved_CXXFLAGS"
6576 # ---------------------
6577 # Warnings and checking
6578 # ---------------------
6580 # Check $CC warning features (if it's GCC).
6581 # We want to use -pedantic, but we don't want warnings about
6582 # * 'long long'
6583 # * variadic macros
6584 # * overlong strings
6585 # * C++11 narrowing conversions in { }
6586 # So, we only use -pedantic if we can disable those warnings.
6588 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6589 # Check whether --enable-build-format-warnings was given.
6590 if test "${enable_build_format_warnings+set}" = set; then :
6591 enableval=$enable_build_format_warnings;
6592 else
6593 enable_build_format_warnings=yes
6596 if test $enable_build_format_warnings = no; then :
6597 wf_opt=-Wno-format
6598 else
6599 wf_opt=
6601 ac_ext=cpp
6602 ac_cpp='$CXXCPP $CPPFLAGS'
6603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6607 loose_warn=
6608 save_CXXFLAGS="$CXXFLAGS"
6609 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6610 # Do the check with the no- prefix removed since gcc silently
6611 # accepts any -Wno-* option on purpose
6612 case $real_option in
6613 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6614 *) option=$real_option ;;
6615 esac
6616 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6619 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6620 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6621 $as_echo_n "(cached) " >&6
6622 else
6623 CXXFLAGS="$option"
6624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6625 /* end confdefs.h. */
6628 main ()
6632 return 0;
6634 _ACEOF
6635 if ac_fn_cxx_try_compile "$LINENO"; then :
6636 eval "$as_acx_Woption=yes"
6637 else
6638 eval "$as_acx_Woption=no"
6640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643 eval ac_res=\$$as_acx_Woption
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6645 $as_echo "$ac_res" >&6; }
6646 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6647 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6649 done
6650 CXXFLAGS="$save_CXXFLAGS"
6651 ac_ext=cpp
6652 ac_cpp='$CXXCPP $CPPFLAGS'
6653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6659 ac_ext=c
6660 ac_cpp='$CPP $CPPFLAGS'
6661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6665 c_loose_warn=
6666 save_CFLAGS="$CFLAGS"
6667 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6668 # Do the check with the no- prefix removed since gcc silently
6669 # accepts any -Wno-* option on purpose
6670 case $real_option in
6671 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6672 *) option=$real_option ;;
6673 esac
6674 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6677 $as_echo_n "checking whether $CC supports $option... " >&6; }
6678 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6679 $as_echo_n "(cached) " >&6
6680 else
6681 CFLAGS="$option"
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6686 main ()
6690 return 0;
6692 _ACEOF
6693 if ac_fn_c_try_compile "$LINENO"; then :
6694 eval "$as_acx_Woption=yes"
6695 else
6696 eval "$as_acx_Woption=no"
6698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6701 eval ac_res=\$$as_acx_Woption
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6703 $as_echo "$ac_res" >&6; }
6704 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6705 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6707 done
6708 CFLAGS="$save_CFLAGS"
6709 ac_ext=cpp
6710 ac_cpp='$CXXCPP $CPPFLAGS'
6711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6716 ac_ext=cpp
6717 ac_cpp='$CXXCPP $CPPFLAGS'
6718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6722 strict_warn=
6723 save_CXXFLAGS="$CXXFLAGS"
6724 for real_option in -Wmissing-format-attribute; do
6725 # Do the check with the no- prefix removed since gcc silently
6726 # accepts any -Wno-* option on purpose
6727 case $real_option in
6728 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6729 *) option=$real_option ;;
6730 esac
6731 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6734 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6735 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6736 $as_echo_n "(cached) " >&6
6737 else
6738 CXXFLAGS="$option"
6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740 /* end confdefs.h. */
6743 main ()
6747 return 0;
6749 _ACEOF
6750 if ac_fn_cxx_try_compile "$LINENO"; then :
6751 eval "$as_acx_Woption=yes"
6752 else
6753 eval "$as_acx_Woption=no"
6755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6758 eval ac_res=\$$as_acx_Woption
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6760 $as_echo "$ac_res" >&6; }
6761 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6762 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6764 done
6765 CXXFLAGS="$save_CXXFLAGS"
6766 ac_ext=cpp
6767 ac_cpp='$CXXCPP $CPPFLAGS'
6768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6773 ac_ext=cpp
6774 ac_cpp='$CXXCPP $CPPFLAGS'
6775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6779 save_CXXFLAGS="$CXXFLAGS"
6780 for real_option in -Woverloaded-virtual; do
6781 # Do the check with the no- prefix removed since gcc silently
6782 # accepts any -Wno-* option on purpose
6783 case $real_option in
6784 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6785 *) option=$real_option ;;
6786 esac
6787 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6790 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6791 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6792 $as_echo_n "(cached) " >&6
6793 else
6794 CXXFLAGS="$option"
6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796 /* end confdefs.h. */
6799 main ()
6803 return 0;
6805 _ACEOF
6806 if ac_fn_cxx_try_compile "$LINENO"; then :
6807 eval "$as_acx_Woption=yes"
6808 else
6809 eval "$as_acx_Woption=no"
6811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6814 eval ac_res=\$$as_acx_Woption
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6816 $as_echo "$ac_res" >&6; }
6817 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6818 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6820 done
6821 CXXFLAGS="$save_CXXFLAGS"
6822 ac_ext=cpp
6823 ac_cpp='$CXXCPP $CPPFLAGS'
6824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6829 ac_ext=c
6830 ac_cpp='$CPP $CPPFLAGS'
6831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6835 c_strict_warn=
6836 save_CFLAGS="$CFLAGS"
6837 for real_option in -Wold-style-definition -Wc++-compat; do
6838 # Do the check with the no- prefix removed since gcc silently
6839 # accepts any -Wno-* option on purpose
6840 case $real_option in
6841 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6842 *) option=$real_option ;;
6843 esac
6844 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6847 $as_echo_n "checking whether $CC supports $option... " >&6; }
6848 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6849 $as_echo_n "(cached) " >&6
6850 else
6851 CFLAGS="$option"
6852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853 /* end confdefs.h. */
6856 main ()
6860 return 0;
6862 _ACEOF
6863 if ac_fn_c_try_compile "$LINENO"; then :
6864 eval "$as_acx_Woption=yes"
6865 else
6866 eval "$as_acx_Woption=no"
6868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6871 eval ac_res=\$$as_acx_Woption
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6873 $as_echo "$ac_res" >&6; }
6874 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6875 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6877 done
6878 CFLAGS="$save_CFLAGS"
6879 ac_ext=cpp
6880 ac_cpp='$CXXCPP $CPPFLAGS'
6881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6886 ac_ext=cpp
6887 ac_cpp='$CXXCPP $CPPFLAGS'
6888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6892 # Do the check with the no- prefix removed from the warning options
6893 # since gcc silently accepts any -Wno-* option on purpose
6894 if test "$GXX" = yes; then :
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6896 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6897 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6898 $as_echo_n "(cached) " >&6
6899 else
6900 save_CXXFLAGS="$CXXFLAGS"
6901 CXXFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h. */
6906 main ()
6910 return 0;
6912 _ACEOF
6913 if ac_fn_cxx_try_compile "$LINENO"; then :
6914 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6915 else
6916 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6919 CXXFLAGS="$save_CXXFLAGS"
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6922 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6923 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6924 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6928 ac_ext=cpp
6929 ac_cpp='$CXXCPP $CPPFLAGS'
6930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6935 ac_ext=cpp
6936 ac_cpp='$CXXCPP $CPPFLAGS'
6937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6941 # Check whether --enable-werror-always was given.
6942 if test "${enable_werror_always+set}" = set; then :
6943 enableval=$enable_werror_always;
6944 else
6945 enable_werror_always=no
6948 if test $enable_werror_always = yes; then :
6949 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6952 ac_ext=cpp
6953 ac_cpp='$CXXCPP $CPPFLAGS'
6954 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6955 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6960 # The above macros do nothing if the compiler is not GCC. However, the
6961 # Makefile has more goo to add other flags, so these variables are used
6962 # to enable warnings only for GCC.
6963 warn_cflags=
6964 warn_cxxflags=
6965 if test "x$GCC" = "xyes"; then
6966 warn_cflags='$(GCC_WARN_CFLAGS)'
6967 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6972 # Disable exceptions and RTTI if building with g++
6973 ac_ext=c
6974 ac_cpp='$CPP $CPPFLAGS'
6975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6979 noexception_flags=
6980 save_CFLAGS="$CFLAGS"
6981 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6982 # Do the check with the no- prefix removed since gcc silently
6983 # accepts any -Wno-* option on purpose
6984 case $real_option in
6985 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6986 *) option=$real_option ;;
6987 esac
6988 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6991 $as_echo_n "checking whether $CC supports $option... " >&6; }
6992 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6993 $as_echo_n "(cached) " >&6
6994 else
6995 CFLAGS="$option"
6996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6997 /* end confdefs.h. */
7000 main ()
7004 return 0;
7006 _ACEOF
7007 if ac_fn_c_try_compile "$LINENO"; then :
7008 eval "$as_acx_Woption=yes"
7009 else
7010 eval "$as_acx_Woption=no"
7012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7015 eval ac_res=\$$as_acx_Woption
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7017 $as_echo "$ac_res" >&6; }
7018 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7019 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
7021 done
7022 CFLAGS="$save_CFLAGS"
7023 ac_ext=cpp
7024 ac_cpp='$CXXCPP $CPPFLAGS'
7025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7031 # Enable expensive internal checks
7032 is_release=
7033 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
7034 is_release=yes
7037 # Check whether --enable-checking was given.
7038 if test "${enable_checking+set}" = set; then :
7039 enableval=$enable_checking; ac_checking_flags="${enableval}"
7040 else
7042 # Determine the default checks.
7043 if test x$is_release = x ; then
7044 ac_checking_flags=yes
7045 else
7046 ac_checking_flags=release
7050 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7051 for check in release $ac_checking_flags
7053 case $check in
7054 # these set all the flags to specific states
7055 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
7056 ac_fold_checking= ; ac_gc_checking=1 ;
7057 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
7058 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7059 ac_tree_checking=1 ; ac_valgrind_checking= ;
7060 ac_types_checking=1 ;;
7061 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
7062 ac_fold_checking= ; ac_gc_checking= ;
7063 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7064 ac_rtlflag_checking= ; ac_runtime_checking= ;
7065 ac_tree_checking= ; ac_valgrind_checking= ;
7066 ac_types_checking= ;;
7067 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
7068 ac_fold_checking=1 ; ac_gc_checking=1 ;
7069 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
7070 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
7071 ac_tree_checking=1 ; ac_valgrind_checking= ;
7072 ac_types_checking=1 ;;
7073 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
7074 ac_fold_checking= ; ac_gc_checking= ;
7075 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
7076 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
7077 ac_tree_checking= ; ac_valgrind_checking= ;
7078 ac_types_checking= ;;
7079 # these enable particular checks
7080 assert) ac_assert_checking=1 ;;
7081 df) ac_df_checking=1 ;;
7082 fold) ac_fold_checking=1 ;;
7083 gc) ac_gc_checking=1 ;;
7084 gcac) ac_gc_always_collect=1 ;;
7085 gimple) ac_gimple_checking=1 ;;
7086 misc) ac_checking=1 ;;
7087 rtl) ac_rtl_checking=1 ;;
7088 rtlflag) ac_rtlflag_checking=1 ;;
7089 runtime) ac_runtime_checking=1 ;;
7090 tree) ac_tree_checking=1 ;;
7091 types) ac_types_checking=1 ;;
7092 valgrind) ac_valgrind_checking=1 ;;
7093 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
7094 esac
7095 done
7096 IFS="$ac_save_IFS"
7098 nocommon_flag=""
7099 if test x$ac_checking != x ; then
7101 $as_echo "#define CHECKING_P 1" >>confdefs.h
7103 nocommon_flag=-fno-common
7104 else
7105 $as_echo "#define CHECKING_P 0" >>confdefs.h
7109 if test x$ac_df_checking != x ; then
7111 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7114 if test x$ac_assert_checking != x ; then
7116 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7119 if test x$ac_gimple_checking != x ; then
7121 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7125 if test x$ac_runtime_checking != x ; then
7127 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7130 if test x$ac_tree_checking != x ; then
7132 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7134 TREECHECKING=yes
7136 if test x$ac_types_checking != x ; then
7138 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7142 if test x$ac_rtl_checking != x ; then
7144 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7147 if test x$ac_rtlflag_checking != x ; then
7149 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7152 if test x$ac_gc_checking != x ; then
7154 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7157 if test x$ac_gc_always_collect != x ; then
7159 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7162 if test x$ac_fold_checking != x ; then
7164 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7167 valgrind_path_defines=
7168 valgrind_command=
7170 ac_fn_cxx_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7171 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
7172 have_valgrind_h=yes
7173 else
7174 have_valgrind_h=no
7179 # It is certainly possible that there's valgrind but no valgrind.h.
7180 # GCC relies on making annotations so we must have both.
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7182 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184 /* end confdefs.h. */
7185 #include <valgrind/memcheck.h>
7186 #ifndef VALGRIND_DISCARD
7187 #error VALGRIND_DISCARD not defined
7188 #endif
7189 _ACEOF
7190 if ac_fn_cxx_try_cpp "$LINENO"; then :
7191 gcc_cv_header_valgrind_memcheck_h=yes
7192 else
7193 gcc_cv_header_valgrind_memcheck_h=no
7195 rm -f conftest.err conftest.$ac_ext
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7197 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7199 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201 /* end confdefs.h. */
7202 #include <memcheck.h>
7203 #ifndef VALGRIND_DISCARD
7204 #error VALGRIND_DISCARD not defined
7205 #endif
7206 _ACEOF
7207 if ac_fn_cxx_try_cpp "$LINENO"; then :
7208 gcc_cv_header_memcheck_h=yes
7209 else
7210 gcc_cv_header_memcheck_h=no
7212 rm -f conftest.err conftest.$ac_ext
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7214 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7215 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7217 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7220 if test $gcc_cv_header_memcheck_h = yes; then
7222 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7226 if test x$ac_valgrind_checking != x ; then
7228 # Prepare PATH_SEPARATOR.
7229 # The user is always right.
7230 if test "${PATH_SEPARATOR+set}" != set; then
7231 echo "#! /bin/sh" >conf$$.sh
7232 echo "exit 0" >>conf$$.sh
7233 chmod +x conf$$.sh
7234 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7235 PATH_SEPARATOR=';'
7236 else
7237 PATH_SEPARATOR=:
7239 rm -f conf$$.sh
7242 # Find out how to test for executable files. Don't use a zero-byte file,
7243 # as systems may use methods other than mode bits to determine executability.
7244 cat >conf$$.file <<_ASEOF
7245 #! /bin/sh
7246 exit 0
7247 _ASEOF
7248 chmod +x conf$$.file
7249 if test -x conf$$.file >/dev/null 2>&1; then
7250 ac_executable_p="test -x"
7251 else
7252 ac_executable_p="test -f"
7254 rm -f conf$$.file
7256 # Extract the first word of "valgrind", so it can be a program name with args.
7257 set dummy valgrind; ac_word=$2
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7259 $as_echo_n "checking for $ac_word... " >&6; }
7260 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7261 $as_echo_n "(cached) " >&6
7262 else
7263 case "$valgrind_path" in
7264 [\\/]* | ?:[\\/]*)
7265 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
7268 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7269 for ac_dir in $PATH; do
7270 IFS="$ac_save_IFS"
7271 test -z "$ac_dir" && ac_dir=.
7272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7274 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
7275 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
7276 break 2
7279 done
7280 done
7281 IFS="$ac_save_IFS"
7283 esac
7285 valgrind_path="$ac_cv_path_valgrind_path"
7286 if test -n "$valgrind_path"; then
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7288 $as_echo "$valgrind_path" >&6; }
7289 else
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291 $as_echo "no" >&6; }
7294 if test "x$valgrind_path" = "x" \
7295 || (test $have_valgrind_h = no \
7296 && test $gcc_cv_header_memcheck_h = no \
7297 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7298 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7300 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7301 valgrind_command="$valgrind_path -q"
7303 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7309 # Enable code coverage collection
7310 # Check whether --enable-coverage was given.
7311 if test "${enable_coverage+set}" = set; then :
7312 enableval=$enable_coverage; case "${enableval}" in
7313 yes|noopt)
7314 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7316 opt)
7317 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7320 # a.k.a. --disable-coverage
7321 coverage_flags=""
7324 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
7326 esac
7327 else
7328 coverage_flags=""
7333 # Check whether --enable-gather-detailed-mem-stats was given.
7334 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7335 enableval=$enable_gather_detailed_mem_stats;
7336 else
7337 enable_gather_detailed_mem_stats=no
7340 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7342 cat >>confdefs.h <<_ACEOF
7343 #define GATHER_STATISTICS $gather_stats
7344 _ACEOF
7347 # Check whether --enable-valgrind-annotations was given.
7348 if test "${enable_valgrind_annotations+set}" = set; then :
7349 enableval=$enable_valgrind_annotations;
7350 else
7351 enable_valgrind_annotations=no
7354 if test x$enable_valgrind_annotations != xno \
7355 || test x$ac_valgrind_checking != x; then
7356 if (test $have_valgrind_h = no \
7357 && test $gcc_cv_header_memcheck_h = no \
7358 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7359 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7362 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7366 # -------------------------------
7367 # Miscenalleous configure options
7368 # -------------------------------
7370 # With stabs
7372 # Check whether --with-stabs was given.
7373 if test "${with_stabs+set}" = set; then :
7374 withval=$with_stabs; stabs="$with_stabs"
7375 else
7376 stabs=no
7380 # Determine whether or not multilibs are enabled.
7381 # Check whether --enable-multilib was given.
7382 if test "${enable_multilib+set}" = set; then :
7383 enableval=$enable_multilib;
7384 else
7385 enable_multilib=yes
7390 # Determine whether or not multiarch is enabled.
7391 # Check whether --enable-multiarch was given.
7392 if test "${enable_multiarch+set}" = set; then :
7393 enableval=$enable_multiarch; case "${enableval}" in
7394 yes|no|auto) enable_multiarch=$enableval;;
7395 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7396 esac
7397 else
7398 enable_multiarch=auto
7401 if test x${enable_multiarch} = xauto; then
7402 if test x${with_native_system_header_dir} != x; then
7403 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7404 enable_multiarch=no
7406 if test x$host != x$target && test "x$with_sysroot" = x; then
7407 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7408 enable_multiarch=no
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7412 $as_echo_n "checking for multiarch configuration... " >&6; }
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7415 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7417 # needed for setting the multiarch name for soft-float/hard-float ABIs
7421 # Enable __cxa_atexit for C++.
7422 # Check whether --enable-__cxa_atexit was given.
7423 if test "${enable___cxa_atexit+set}" = set; then :
7424 enableval=$enable___cxa_atexit;
7428 # Enable C extension for decimal float if target supports it.
7430 # Check whether --enable-decimal-float was given.
7431 if test "${enable_decimal_float+set}" = set; then :
7432 enableval=$enable_decimal_float;
7433 case $enable_decimal_float in
7434 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7435 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7436 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7437 esac
7439 else
7441 case $target in
7442 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7443 i?86*-*-elfiamcu | i?86*-*-gnu* | \
7444 i?86*-*-mingw* | x86_64*-*-mingw* | \
7445 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7446 enable_decimal_float=yes
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7450 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7451 enable_decimal_float=no
7453 esac
7458 # x86's use BID format instead of DPD
7459 case x$enable_decimal_float in
7460 xyes)
7461 case $target in
7462 i?86*-*-* | x86_64*-*-*)
7463 enable_decimal_float=bid
7466 enable_decimal_float=dpd
7468 esac
7469 default_decimal_float=$enable_decimal_float
7471 xno)
7472 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7473 # dependency on libdecnumber.
7474 default_decimal_float=dpd
7476 esac
7481 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7483 cat >>confdefs.h <<_ACEOF
7484 #define ENABLE_DECIMAL_FLOAT $dfp
7485 _ACEOF
7488 # Use default_decimal_float for dependency.
7489 enable_decimal_float=$default_decimal_float
7491 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7493 cat >>confdefs.h <<_ACEOF
7494 #define ENABLE_DECIMAL_BID_FORMAT $bid
7495 _ACEOF
7498 # Enable C extension for fixed-point arithmetic.
7499 # Check whether --enable-fixed-point was given.
7500 if test "${enable_fixed_point+set}" = set; then :
7501 enableval=$enable_fixed_point;
7502 else
7504 case $target in
7505 arm*)
7506 enable_fixed_point=yes
7509 mips*-*-*)
7510 enable_fixed_point=yes
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7514 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7515 enable_fixed_point=no
7517 esac
7523 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7525 cat >>confdefs.h <<_ACEOF
7526 #define ENABLE_FIXED_POINT $fixedpoint
7527 _ACEOF
7530 # Enable threads
7531 # Pass with no value to take the default
7532 # Pass with a value to specify a thread package
7533 # Check whether --enable-threads was given.
7534 if test "${enable_threads+set}" = set; then :
7535 enableval=$enable_threads;
7536 else
7537 enable_threads=''
7541 # Check whether --enable-tls was given.
7542 if test "${enable_tls+set}" = set; then :
7543 enableval=$enable_tls;
7544 case $enable_tls in
7545 yes | no) ;;
7546 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7547 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7548 esac
7550 else
7551 enable_tls=''
7555 # Check whether --enable-objc-gc was given.
7556 if test "${enable_objc_gc+set}" = set; then :
7557 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7558 objc_boehm_gc=''
7559 else
7560 objc_boehm_gc=1
7562 else
7563 objc_boehm_gc=''
7568 # Check whether --with-dwarf2 was given.
7569 if test "${with_dwarf2+set}" = set; then :
7570 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7571 else
7572 dwarf2=no
7576 # Check whether --enable-shared was given.
7577 if test "${enable_shared+set}" = set; then :
7578 enableval=$enable_shared;
7579 case $enable_shared in
7580 yes | no) ;;
7582 enable_shared=no
7583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7584 for pkg in $enableval; do
7585 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7586 enable_shared=yes
7588 done
7589 IFS="$ac_save_ifs"
7591 esac
7593 else
7594 enable_shared=yes
7600 # Check whether --with-specs was given.
7601 if test "${with_specs+set}" = set; then :
7602 withval=$with_specs; CONFIGURE_SPECS=$withval
7603 else
7604 CONFIGURE_SPECS=
7612 # Check whether --with-pkgversion was given.
7613 if test "${with_pkgversion+set}" = set; then :
7614 withval=$with_pkgversion; case "$withval" in
7615 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7616 no) PKGVERSION= ;;
7617 *) PKGVERSION="($withval) " ;;
7618 esac
7619 else
7620 PKGVERSION="(GCC) "
7628 # Check whether --with-bugurl was given.
7629 if test "${with_bugurl+set}" = set; then :
7630 withval=$with_bugurl; case "$withval" in
7631 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7632 no) BUGURL=
7634 *) BUGURL="$withval"
7636 esac
7637 else
7638 BUGURL="http://gcc.gnu.org/bugs.html"
7642 case ${BUGURL} in
7644 REPORT_BUGS_TO=
7645 REPORT_BUGS_TEXI=
7648 REPORT_BUGS_TO="<$BUGURL>"
7649 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7651 esac;
7656 # Sanity check enable_languages in case someone does not run the toplevel
7657 # configure # script.
7658 # Check whether --enable-languages was given.
7659 if test "${enable_languages+set}" = set; then :
7660 enableval=$enable_languages; case ,${enable_languages}, in
7661 ,,|,yes,)
7662 # go safe -- we cannot be much sure without the toplevel
7663 # configure's
7664 # analysis of which target libs are present and usable
7665 enable_languages=c
7667 *,all,*)
7668 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7670 *,c,*)
7673 enable_languages=c,${enable_languages}
7675 esac
7676 else
7677 enable_languages=c
7681 if test x"$enable_as_accelerator_for" != x; then
7683 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7685 enable_as_accelerator=yes
7686 case "${target}" in
7687 *-intelmicemul-*)
7688 # In this case we expect offload compiler to be built as native, so we
7689 # need to rename the driver to avoid clashes with host's drivers.
7690 program_transform_name="s&^&${target}-&" ;;
7691 esac
7692 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7693 program_transform_name=`echo $program_transform_name | sed $sedscript`
7694 accel_dir_suffix=/accel/${target_noncanonical}
7695 real_target_noncanonical=${enable_as_accelerator_for}
7701 for tgt in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7702 tgt=`echo $tgt | sed 's/=.*//'`
7704 if echo "$tgt" | grep "^hsa" > /dev/null ; then
7705 enable_hsa=1
7706 else
7707 enable_offloading=1
7710 if test x"$offload_targets" = x; then
7711 offload_targets=$tgt
7712 else
7713 offload_targets="$offload_targets,$tgt"
7715 done
7717 cat >>confdefs.h <<_ACEOF
7718 #define OFFLOAD_TARGETS "$offload_targets"
7719 _ACEOF
7721 if test x"$enable_offloading" != x; then
7723 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7725 else
7727 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7731 if test x"$enable_hsa" = x1 ; then
7733 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7738 # Check whether --with-multilib-list was given.
7739 if test "${with_multilib_list+set}" = set; then :
7740 withval=$with_multilib_list; :
7741 else
7742 with_multilib_list=default
7746 # -------------------------
7747 # Checks for other programs
7748 # -------------------------
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7751 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7752 set x ${MAKE-make}
7753 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7754 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7755 $as_echo_n "(cached) " >&6
7756 else
7757 cat >conftest.make <<\_ACEOF
7758 SHELL = /bin/sh
7759 all:
7760 @echo '@@@%%%=$(MAKE)=@@@%%%'
7761 _ACEOF
7762 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7763 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7764 *@@@%%%=?*=@@@%%%*)
7765 eval ac_cv_prog_make_${ac_make}_set=yes;;
7767 eval ac_cv_prog_make_${ac_make}_set=no;;
7768 esac
7769 rm -f conftest.make
7771 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7773 $as_echo "yes" >&6; }
7774 SET_MAKE=
7775 else
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777 $as_echo "no" >&6; }
7778 SET_MAKE="MAKE=${MAKE-make}"
7782 # Find some useful tools
7783 for ac_prog in gawk mawk nawk awk
7785 # Extract the first word of "$ac_prog", so it can be a program name with args.
7786 set dummy $ac_prog; ac_word=$2
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7788 $as_echo_n "checking for $ac_word... " >&6; }
7789 if test "${ac_cv_prog_AWK+set}" = set; then :
7790 $as_echo_n "(cached) " >&6
7791 else
7792 if test -n "$AWK"; then
7793 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7794 else
7795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796 for as_dir in $PATH
7798 IFS=$as_save_IFS
7799 test -z "$as_dir" && as_dir=.
7800 for ac_exec_ext in '' $ac_executable_extensions; do
7801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7802 ac_cv_prog_AWK="$ac_prog"
7803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7804 break 2
7806 done
7807 done
7808 IFS=$as_save_IFS
7812 AWK=$ac_cv_prog_AWK
7813 if test -n "$AWK"; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7815 $as_echo "$AWK" >&6; }
7816 else
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818 $as_echo "no" >&6; }
7822 test -n "$AWK" && break
7823 done
7825 # We need awk to create options.c and options.h.
7826 # Bail out if it's missing.
7827 case ${AWK} in
7828 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7829 esac
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7832 $as_echo_n "checking whether ln -s works... " >&6; }
7833 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7834 $as_echo_n "(cached) " >&6
7835 else
7836 rm -f conftestdata_t
7837 echo >conftestdata_f
7838 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7839 then
7840 gcc_cv_prog_LN_S="ln -s"
7841 else
7842 if ln conftestdata_f conftestdata_t 2>/dev/null
7843 then
7844 gcc_cv_prog_LN_S=ln
7845 else
7846 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7847 then
7848 gcc_cv_prog_LN_S="cp -p"
7849 else
7850 gcc_cv_prog_LN_S=cp
7854 rm -f conftestdata_f conftestdata_t
7857 LN_S="$gcc_cv_prog_LN_S"
7858 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7860 $as_echo "yes" >&6; }
7861 else
7862 if test "$gcc_cv_prog_LN_S" = "ln"; then
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7864 $as_echo "no, using ln" >&6; }
7865 else
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7867 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7872 $as_echo_n "checking whether ln works... " >&6; }
7873 if test "${acx_cv_prog_LN+set}" = set; then :
7874 $as_echo_n "(cached) " >&6
7875 else
7876 rm -f conftestdata_t
7877 echo >conftestdata_f
7878 if ln conftestdata_f conftestdata_t 2>/dev/null
7879 then
7880 acx_cv_prog_LN=ln
7881 else
7882 acx_cv_prog_LN=no
7884 rm -f conftestdata_f conftestdata_t
7887 if test $acx_cv_prog_LN = no; then
7888 LN="$LN_S"
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7890 $as_echo "no, using $LN" >&6; }
7891 else
7892 LN="$acx_cv_prog_LN"
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7894 $as_echo "yes" >&6; }
7897 if test -n "$ac_tool_prefix"; then
7898 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7899 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7901 $as_echo_n "checking for $ac_word... " >&6; }
7902 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7903 $as_echo_n "(cached) " >&6
7904 else
7905 if test -n "$RANLIB"; then
7906 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7907 else
7908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909 for as_dir in $PATH
7911 IFS=$as_save_IFS
7912 test -z "$as_dir" && as_dir=.
7913 for ac_exec_ext in '' $ac_executable_extensions; do
7914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7915 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7917 break 2
7919 done
7920 done
7921 IFS=$as_save_IFS
7925 RANLIB=$ac_cv_prog_RANLIB
7926 if test -n "$RANLIB"; then
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7928 $as_echo "$RANLIB" >&6; }
7929 else
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931 $as_echo "no" >&6; }
7936 if test -z "$ac_cv_prog_RANLIB"; then
7937 ac_ct_RANLIB=$RANLIB
7938 # Extract the first word of "ranlib", so it can be a program name with args.
7939 set dummy ranlib; ac_word=$2
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7941 $as_echo_n "checking for $ac_word... " >&6; }
7942 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7943 $as_echo_n "(cached) " >&6
7944 else
7945 if test -n "$ac_ct_RANLIB"; then
7946 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7947 else
7948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949 for as_dir in $PATH
7951 IFS=$as_save_IFS
7952 test -z "$as_dir" && as_dir=.
7953 for ac_exec_ext in '' $ac_executable_extensions; do
7954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7955 ac_cv_prog_ac_ct_RANLIB="ranlib"
7956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7957 break 2
7959 done
7960 done
7961 IFS=$as_save_IFS
7965 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7966 if test -n "$ac_ct_RANLIB"; then
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7968 $as_echo "$ac_ct_RANLIB" >&6; }
7969 else
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971 $as_echo "no" >&6; }
7974 if test "x$ac_ct_RANLIB" = x; then
7975 RANLIB=":"
7976 else
7977 case $cross_compiling:$ac_tool_warned in
7978 yes:)
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7981 ac_tool_warned=yes ;;
7982 esac
7983 RANLIB=$ac_ct_RANLIB
7985 else
7986 RANLIB="$ac_cv_prog_RANLIB"
7989 ranlib_flags=""
7992 # Find a good install program. We prefer a C program (faster),
7993 # so one script is as good as another. But avoid the broken or
7994 # incompatible versions:
7995 # SysV /etc/install, /usr/sbin/install
7996 # SunOS /usr/etc/install
7997 # IRIX /sbin/install
7998 # AIX /bin/install
7999 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8000 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8001 # ./install, which can be erroneously created by make from ./install.sh.
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8003 $as_echo_n "checking for a BSD compatible install... " >&6; }
8004 if test -z "$INSTALL"; then
8005 if test "${ac_cv_path_install+set}" = set; then :
8006 $as_echo_n "(cached) " >&6
8007 else
8008 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
8009 for ac_dir in $PATH; do
8010 # Account for people who put trailing slashes in PATH elements.
8011 case "$ac_dir/" in
8012 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8014 # OSF1 and SCO ODT 3.0 have their own names for install.
8015 for ac_prog in ginstall scoinst install; do
8016 if test -f $ac_dir/$ac_prog; then
8017 if test $ac_prog = install &&
8018 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8019 # AIX install. It has an incompatible calling convention.
8020 # OSF/1 installbsd also uses dspmsg, but is usable.
8022 else
8023 ac_cv_path_install="$ac_dir/$ac_prog -c"
8024 break 2
8027 done
8029 esac
8030 done
8031 IFS="$ac_save_IFS"
8034 if test "${ac_cv_path_install+set}" = set; then
8035 INSTALL="$ac_cv_path_install"
8036 else
8037 # As a last resort, use the slow shell script. We don't cache a
8038 # path for INSTALL within a source directory, because that will
8039 # break other packages using the cache if that directory is
8040 # removed, or if the path is relative.
8041 INSTALL="$ac_install_sh"
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8045 $as_echo "$INSTALL" >&6; }
8047 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8048 # It thinks the first close brace ends the variable substitution.
8049 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8051 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8054 # See if cmp has --ignore-initial.
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8056 $as_echo_n "checking for cmp's capabilities... " >&6; }
8057 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8058 $as_echo_n "(cached) " >&6
8059 else
8060 echo abfoo >t1
8061 echo cdfoo >t2
8062 gcc_cv_prog_cmp_skip=slowcompare
8063 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
8064 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
8066 else
8067 gcc_cv_prog_cmp_skip=gnucompare
8070 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
8071 if cmp t1 t2 2 2 > /dev/null 2>&1; then
8072 if cmp t1 t2 1 1 > /dev/null 2>&1; then
8074 else
8075 gcc_cv_prog_cmp_skip=fastcompare
8079 rm t1 t2
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8083 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8084 make_compare_target=$gcc_cv_prog_cmp_skip
8088 # See if we have the mktemp command.
8089 # Extract the first word of "mktemp", so it can be a program name with args.
8090 set dummy mktemp; ac_word=$2
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8092 $as_echo_n "checking for $ac_word... " >&6; }
8093 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8094 $as_echo_n "(cached) " >&6
8095 else
8096 if test -n "$have_mktemp_command"; then
8097 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
8098 else
8099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100 for as_dir in $PATH
8102 IFS=$as_save_IFS
8103 test -z "$as_dir" && as_dir=.
8104 for ac_exec_ext in '' $ac_executable_extensions; do
8105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8106 ac_cv_prog_have_mktemp_command="yes"
8107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8108 break 2
8110 done
8111 done
8112 IFS=$as_save_IFS
8114 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
8117 have_mktemp_command=$ac_cv_prog_have_mktemp_command
8118 if test -n "$have_mktemp_command"; then
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8120 $as_echo "$have_mktemp_command" >&6; }
8121 else
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123 $as_echo "no" >&6; }
8128 # See if makeinfo has been installed and is modern enough
8129 # that we can use it.
8131 # Extract the first word of "makeinfo", so it can be a program name with args.
8132 set dummy makeinfo; ac_word=$2
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8134 $as_echo_n "checking for $ac_word... " >&6; }
8135 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8136 $as_echo_n "(cached) " >&6
8137 else
8138 if test -n "$MAKEINFO"; then
8139 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8140 else
8141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142 for as_dir in $PATH
8144 IFS=$as_save_IFS
8145 test -z "$as_dir" && as_dir=.
8146 for ac_exec_ext in '' $ac_executable_extensions; do
8147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8148 ac_cv_prog_MAKEINFO="makeinfo"
8149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8150 break 2
8152 done
8153 done
8154 IFS=$as_save_IFS
8158 MAKEINFO=$ac_cv_prog_MAKEINFO
8159 if test -n "$MAKEINFO"; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8161 $as_echo "$MAKEINFO" >&6; }
8162 else
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164 $as_echo "no" >&6; }
8168 if test -n "$MAKEINFO"; then
8169 # Found it, now check the version.
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8171 $as_echo_n "checking for modern makeinfo... " >&6; }
8172 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8173 $as_echo_n "(cached) " >&6
8174 else
8175 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
8176 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8178 case $ac_prog_version in
8179 '') gcc_cv_prog_makeinfo_modern=no;;
8180 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
8181 *) gcc_cv_prog_makeinfo_modern=no;;
8182 esac
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8186 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8187 else
8188 gcc_cv_prog_makeinfo_modern=no
8190 if test $gcc_cv_prog_makeinfo_modern = no; then
8191 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8194 if test $gcc_cv_prog_makeinfo_modern = no; then
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8196 *** Makeinfo is missing or too old.
8197 *** Info documentation will not be built." >&5
8198 $as_echo "$as_me: WARNING:
8199 *** Makeinfo is missing or too old.
8200 *** Info documentation will not be built." >&2;}
8201 BUILD_INFO=
8202 else
8203 BUILD_INFO=info
8207 # Is pod2man recent enough to regenerate manpages?
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8209 $as_echo_n "checking for recent Pod::Man... " >&6; }
8210 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8212 $as_echo "yes" >&6; }
8213 GENERATED_MANPAGES=generated-manpages
8214 else
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216 $as_echo "no" >&6; }
8217 GENERATED_MANPAGES=
8221 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8223 # How about lex?
8224 for ac_prog in flex
8226 # Extract the first word of "$ac_prog", so it can be a program name with args.
8227 set dummy $ac_prog; ac_word=$2
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8229 $as_echo_n "checking for $ac_word... " >&6; }
8230 if test "${ac_cv_prog_FLEX+set}" = set; then :
8231 $as_echo_n "(cached) " >&6
8232 else
8233 if test -n "$FLEX"; then
8234 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8235 else
8236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237 for as_dir in $PATH
8239 IFS=$as_save_IFS
8240 test -z "$as_dir" && as_dir=.
8241 for ac_exec_ext in '' $ac_executable_extensions; do
8242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8243 ac_cv_prog_FLEX="$ac_prog"
8244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8245 break 2
8247 done
8248 done
8249 IFS=$as_save_IFS
8253 FLEX=$ac_cv_prog_FLEX
8254 if test -n "$FLEX"; then
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8256 $as_echo "$FLEX" >&6; }
8257 else
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8259 $as_echo "no" >&6; }
8263 test -n "$FLEX" && break
8264 done
8265 test -n "$FLEX" || FLEX="$MISSING flex"
8268 # Bison?
8269 for ac_prog in bison
8271 # Extract the first word of "$ac_prog", so it can be a program name with args.
8272 set dummy $ac_prog; ac_word=$2
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274 $as_echo_n "checking for $ac_word... " >&6; }
8275 if test "${ac_cv_prog_BISON+set}" = set; then :
8276 $as_echo_n "(cached) " >&6
8277 else
8278 if test -n "$BISON"; then
8279 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8280 else
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282 for as_dir in $PATH
8284 IFS=$as_save_IFS
8285 test -z "$as_dir" && as_dir=.
8286 for ac_exec_ext in '' $ac_executable_extensions; do
8287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8288 ac_cv_prog_BISON="$ac_prog"
8289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8290 break 2
8292 done
8293 done
8294 IFS=$as_save_IFS
8298 BISON=$ac_cv_prog_BISON
8299 if test -n "$BISON"; then
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8301 $as_echo "$BISON" >&6; }
8302 else
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304 $as_echo "no" >&6; }
8308 test -n "$BISON" && break
8309 done
8310 test -n "$BISON" || BISON="$MISSING bison"
8313 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8314 # check for build == host before using them.
8316 # NM
8317 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8318 && test -d ../binutils ; then
8319 NM='${objdir}/../binutils/nm-new'
8320 else
8321 # Extract the first word of "nm", so it can be a program name with args.
8322 set dummy nm; ac_word=$2
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8324 $as_echo_n "checking for $ac_word... " >&6; }
8325 if test "${ac_cv_prog_NM+set}" = set; then :
8326 $as_echo_n "(cached) " >&6
8327 else
8328 if test -n "$NM"; then
8329 ac_cv_prog_NM="$NM" # Let the user override the test.
8330 else
8331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8332 for as_dir in $PATH
8334 IFS=$as_save_IFS
8335 test -z "$as_dir" && as_dir=.
8336 for ac_exec_ext in '' $ac_executable_extensions; do
8337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8338 ac_cv_prog_NM="nm"
8339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8340 break 2
8342 done
8343 done
8344 IFS=$as_save_IFS
8346 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8349 NM=$ac_cv_prog_NM
8350 if test -n "$NM"; then
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8352 $as_echo "$NM" >&6; }
8353 else
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355 $as_echo "no" >&6; }
8361 # AR
8362 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8363 && test -d ../binutils ; then
8364 AR='${objdir}/../binutils/ar'
8365 else
8366 # Extract the first word of "ar", so it can be a program name with args.
8367 set dummy ar; ac_word=$2
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8369 $as_echo_n "checking for $ac_word... " >&6; }
8370 if test "${ac_cv_prog_AR+set}" = set; then :
8371 $as_echo_n "(cached) " >&6
8372 else
8373 if test -n "$AR"; then
8374 ac_cv_prog_AR="$AR" # Let the user override the test.
8375 else
8376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8377 for as_dir in $PATH
8379 IFS=$as_save_IFS
8380 test -z "$as_dir" && as_dir=.
8381 for ac_exec_ext in '' $ac_executable_extensions; do
8382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8383 ac_cv_prog_AR="ar"
8384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8385 break 2
8387 done
8388 done
8389 IFS=$as_save_IFS
8391 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8394 AR=$ac_cv_prog_AR
8395 if test -n "$AR"; then
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8397 $as_echo "$AR" >&6; }
8398 else
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8400 $as_echo "no" >&6; }
8406 # The jit documentation looks better if built with sphinx, but can be
8407 # built with texinfo if sphinx is not available.
8408 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8409 # Extract the first word of "sphinx-build", so it can be a program name with args.
8410 set dummy sphinx-build; ac_word=$2
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8412 $as_echo_n "checking for $ac_word... " >&6; }
8413 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8414 $as_echo_n "(cached) " >&6
8415 else
8416 if test -n "$doc_build_sys"; then
8417 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8418 else
8419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420 for as_dir in $PATH
8422 IFS=$as_save_IFS
8423 test -z "$as_dir" && as_dir=.
8424 for ac_exec_ext in '' $ac_executable_extensions; do
8425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8426 ac_cv_prog_doc_build_sys="sphinx"
8427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8428 break 2
8430 done
8431 done
8432 IFS=$as_save_IFS
8434 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8437 doc_build_sys=$ac_cv_prog_doc_build_sys
8438 if test -n "$doc_build_sys"; then
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8440 $as_echo "$doc_build_sys" >&6; }
8441 else
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443 $as_echo "no" >&6; }
8448 # --------------------
8449 # Checks for C headers
8450 # --------------------
8452 # Need to reject headers which give warnings, so that the -Werror bootstrap
8453 # works later. *sigh* This needs to come before all header checks.
8455 ac_c_preproc_warn_flag=yes
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8458 $as_echo_n "checking for ANSI C header files... " >&6; }
8459 if test "${ac_cv_header_stdc+set}" = set; then :
8460 $as_echo_n "(cached) " >&6
8461 else
8462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8463 /* end confdefs.h. */
8464 #include <stdlib.h>
8465 #include <stdarg.h>
8466 #include <string.h>
8467 #include <float.h>
8470 main ()
8474 return 0;
8476 _ACEOF
8477 if ac_fn_cxx_try_compile "$LINENO"; then :
8478 ac_cv_header_stdc=yes
8479 else
8480 ac_cv_header_stdc=no
8482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8484 if test $ac_cv_header_stdc = yes; then
8485 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8488 #include <string.h>
8490 _ACEOF
8491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8492 $EGREP "memchr" >/dev/null 2>&1; then :
8494 else
8495 ac_cv_header_stdc=no
8497 rm -f conftest*
8501 if test $ac_cv_header_stdc = yes; then
8502 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8505 #include <stdlib.h>
8507 _ACEOF
8508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8509 $EGREP "free" >/dev/null 2>&1; then :
8511 else
8512 ac_cv_header_stdc=no
8514 rm -f conftest*
8518 if test $ac_cv_header_stdc = yes; then
8519 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8520 if test "$cross_compiling" = yes; then :
8522 else
8523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8524 /* end confdefs.h. */
8525 #include <ctype.h>
8526 #include <stdlib.h>
8527 #if ((' ' & 0x0FF) == 0x020)
8528 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8529 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8530 #else
8531 # define ISLOWER(c) \
8532 (('a' <= (c) && (c) <= 'i') \
8533 || ('j' <= (c) && (c) <= 'r') \
8534 || ('s' <= (c) && (c) <= 'z'))
8535 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8536 #endif
8538 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8540 main ()
8542 int i;
8543 for (i = 0; i < 256; i++)
8544 if (XOR (islower (i), ISLOWER (i))
8545 || toupper (i) != TOUPPER (i))
8546 return 2;
8547 return 0;
8549 _ACEOF
8550 if ac_fn_cxx_try_run "$LINENO"; then :
8552 else
8553 ac_cv_header_stdc=no
8555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8556 conftest.$ac_objext conftest.beam conftest.$ac_ext
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8562 $as_echo "$ac_cv_header_stdc" >&6; }
8563 if test $ac_cv_header_stdc = yes; then
8565 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8570 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8571 if test "${ac_cv_header_time+set}" = set; then :
8572 $as_echo_n "(cached) " >&6
8573 else
8574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575 /* end confdefs.h. */
8576 #include <sys/types.h>
8577 #include <sys/time.h>
8578 #include <time.h>
8581 main ()
8583 if ((struct tm *) 0)
8584 return 0;
8586 return 0;
8588 _ACEOF
8589 if ac_fn_cxx_try_compile "$LINENO"; then :
8590 ac_cv_header_time=yes
8591 else
8592 ac_cv_header_time=no
8594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8597 $as_echo "$ac_cv_header_time" >&6; }
8598 if test $ac_cv_header_time = yes; then
8600 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8605 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8606 if test "${gcc_cv_header_string+set}" = set; then :
8607 $as_echo_n "(cached) " >&6
8608 else
8609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610 /* end confdefs.h. */
8611 #include <string.h>
8612 #include <strings.h>
8614 main ()
8618 return 0;
8620 _ACEOF
8621 if ac_fn_cxx_try_compile "$LINENO"; then :
8622 gcc_cv_header_string=yes
8623 else
8624 gcc_cv_header_string=no
8626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8629 $as_echo "$gcc_cv_header_string" >&6; }
8630 if test $gcc_cv_header_string = yes; then
8632 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8637 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8638 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8639 $as_echo_n "(cached) " >&6
8640 else
8641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h. */
8643 #include <sys/types.h>
8644 #include <sys/wait.h>
8645 #ifndef WEXITSTATUS
8646 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8647 #endif
8648 #ifndef WIFEXITED
8649 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8650 #endif
8653 main ()
8655 int s;
8656 wait (&s);
8657 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8659 return 0;
8661 _ACEOF
8662 if ac_fn_cxx_try_compile "$LINENO"; then :
8663 ac_cv_header_sys_wait_h=yes
8664 else
8665 ac_cv_header_sys_wait_h=no
8667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8670 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8671 if test $ac_cv_header_sys_wait_h = yes; then
8673 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8678 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8679 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8680 $as_echo_n "(cached) " >&6
8681 else
8682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8683 /* end confdefs.h. */
8684 #include <sys/types.h>
8685 #include <termios.h>
8686 #ifdef TIOCGWINSZ
8688 #endif
8690 _ACEOF
8691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8692 $EGREP "yes" >/dev/null 2>&1; then :
8693 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8694 else
8695 ac_cv_sys_tiocgwinsz_in_termios_h=no
8697 rm -f conftest*
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8701 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8703 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8705 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8706 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8707 $as_echo_n "(cached) " >&6
8708 else
8709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8710 /* end confdefs.h. */
8711 #include <sys/types.h>
8712 #include <sys/ioctl.h>
8713 #ifdef TIOCGWINSZ
8715 #endif
8717 _ACEOF
8718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8719 $EGREP "yes" >/dev/null 2>&1; then :
8720 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8721 else
8722 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8724 rm -f conftest*
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8728 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8730 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8732 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8737 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8738 fcntl.h ftw.h unistd.h sys/file.h sys/time.h sys/mman.h \
8739 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8740 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8741 do :
8742 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8743 ac_fn_cxx_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8744 eval as_val=\$$as_ac_Header
8745 if test "x$as_val" = x""yes; then :
8746 cat >>confdefs.h <<_ACEOF
8747 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8748 _ACEOF
8751 done
8754 # Check for thread headers.
8755 ac_fn_cxx_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8756 if test "x$ac_cv_header_thread_h" = x""yes; then :
8757 have_thread_h=yes
8758 else
8759 have_thread_h=
8762 ac_fn_cxx_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8763 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8764 have_pthread_h=yes
8765 else
8766 have_pthread_h=
8770 # These tests can't be done till we know if we have limits.h.
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8772 $as_echo_n "checking for CHAR_BIT... " >&6; }
8773 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8774 $as_echo_n "(cached) " >&6
8775 else
8776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8777 /* end confdefs.h. */
8778 #ifdef HAVE_LIMITS_H
8779 #include <limits.h>
8780 #endif
8781 #ifdef CHAR_BIT
8782 found
8783 #endif
8784 _ACEOF
8785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8786 $EGREP "found" >/dev/null 2>&1; then :
8787 gcc_cv_decl_char_bit=yes
8788 else
8789 gcc_cv_decl_char_bit=no
8791 rm -f conftest*
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8796 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8797 if test $gcc_cv_decl_char_bit = no; then
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8799 $as_echo_n "checking number of bits in a byte... " >&6; }
8800 if test "${gcc_cv_c_nbby+set}" = set; then :
8801 $as_echo_n "(cached) " >&6
8802 else
8804 gcc_cv_c_nbby=
8805 while test $i -lt 65; do
8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807 /* end confdefs.h. */
8810 main ()
8812 switch(0) {
8813 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8814 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8817 return 0;
8819 _ACEOF
8820 if ac_fn_cxx_try_compile "$LINENO"; then :
8821 gcc_cv_c_nbby=$i; break
8823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8824 i=`expr $i + 1`
8825 done
8826 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8830 $as_echo "$gcc_cv_c_nbby" >&6; }
8831 if test $gcc_cv_c_nbby = failed; then
8832 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8833 else
8835 cat >>confdefs.h <<_ACEOF
8836 #define CHAR_BIT $gcc_cv_c_nbby
8837 _ACEOF
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8842 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8843 if test "${ac_cv_c_bigendian+set}" = set; then :
8844 $as_echo_n "(cached) " >&6
8845 else
8846 ac_cv_c_bigendian=unknown
8847 # See if we're dealing with a universal compiler.
8848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8849 /* end confdefs.h. */
8850 #ifndef __APPLE_CC__
8851 not a universal capable compiler
8852 #endif
8853 typedef int dummy;
8855 _ACEOF
8856 if ac_fn_cxx_try_compile "$LINENO"; then :
8858 # Check for potential -arch flags. It is not universal unless
8859 # there are at least two -arch flags with different values.
8860 ac_arch=
8861 ac_prev=
8862 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8863 if test -n "$ac_prev"; then
8864 case $ac_word in
8865 i?86 | x86_64 | ppc | ppc64)
8866 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8867 ac_arch=$ac_word
8868 else
8869 ac_cv_c_bigendian=universal
8870 break
8873 esac
8874 ac_prev=
8875 elif test "x$ac_word" = "x-arch"; then
8876 ac_prev=arch
8878 done
8880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8881 if test $ac_cv_c_bigendian = unknown; then
8882 # See if sys/param.h defines the BYTE_ORDER macro.
8883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8884 /* end confdefs.h. */
8885 #include <sys/types.h>
8886 #include <sys/param.h>
8889 main ()
8891 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8892 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8893 && LITTLE_ENDIAN)
8894 bogus endian macros
8895 #endif
8898 return 0;
8900 _ACEOF
8901 if ac_fn_cxx_try_compile "$LINENO"; then :
8902 # It does; now see whether it defined to BIG_ENDIAN or not.
8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8905 #include <sys/types.h>
8906 #include <sys/param.h>
8909 main ()
8911 #if BYTE_ORDER != BIG_ENDIAN
8912 not big endian
8913 #endif
8916 return 0;
8918 _ACEOF
8919 if ac_fn_cxx_try_compile "$LINENO"; then :
8920 ac_cv_c_bigendian=yes
8921 else
8922 ac_cv_c_bigendian=no
8924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8928 if test $ac_cv_c_bigendian = unknown; then
8929 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h. */
8932 #include <limits.h>
8935 main ()
8937 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8938 bogus endian macros
8939 #endif
8942 return 0;
8944 _ACEOF
8945 if ac_fn_cxx_try_compile "$LINENO"; then :
8946 # It does; now see whether it defined to _BIG_ENDIAN or not.
8947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8948 /* end confdefs.h. */
8949 #include <limits.h>
8952 main ()
8954 #ifndef _BIG_ENDIAN
8955 not big endian
8956 #endif
8959 return 0;
8961 _ACEOF
8962 if ac_fn_cxx_try_compile "$LINENO"; then :
8963 ac_cv_c_bigendian=yes
8964 else
8965 ac_cv_c_bigendian=no
8967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8971 if test $ac_cv_c_bigendian = unknown; then
8972 # Compile a test program.
8973 if test "$cross_compiling" = yes; then :
8974 # Try to guess by grepping values from an object file.
8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976 /* end confdefs.h. */
8977 short int ascii_mm[] =
8978 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8979 short int ascii_ii[] =
8980 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8981 int use_ascii (int i) {
8982 return ascii_mm[i] + ascii_ii[i];
8984 short int ebcdic_ii[] =
8985 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8986 short int ebcdic_mm[] =
8987 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8988 int use_ebcdic (int i) {
8989 return ebcdic_mm[i] + ebcdic_ii[i];
8991 extern int foo;
8994 main ()
8996 return use_ascii (foo) == use_ebcdic (foo);
8998 return 0;
9000 _ACEOF
9001 if ac_fn_cxx_try_compile "$LINENO"; then :
9002 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9003 ac_cv_c_bigendian=yes
9005 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9006 if test "$ac_cv_c_bigendian" = unknown; then
9007 ac_cv_c_bigendian=no
9008 else
9009 # finding both strings is unlikely to happen, but who knows?
9010 ac_cv_c_bigendian=unknown
9014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9015 else
9016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9017 /* end confdefs.h. */
9018 $ac_includes_default
9020 main ()
9023 /* Are we little or big endian? From Harbison&Steele. */
9024 union
9026 long int l;
9027 char c[sizeof (long int)];
9028 } u;
9029 u.l = 1;
9030 return u.c[sizeof (long int) - 1] == 1;
9033 return 0;
9035 _ACEOF
9036 if ac_fn_cxx_try_run "$LINENO"; then :
9037 ac_cv_c_bigendian=no
9038 else
9039 ac_cv_c_bigendian=yes
9041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9042 conftest.$ac_objext conftest.beam conftest.$ac_ext
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9048 $as_echo "$ac_cv_c_bigendian" >&6; }
9049 case $ac_cv_c_bigendian in #(
9050 yes)
9051 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9052 ;; #(
9054 ;; #(
9055 universal)
9057 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9059 ;; #(
9061 as_fn_error "unknown endianness
9062 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9063 esac
9066 # ----------------------
9067 # Checks for C++ headers
9068 # ----------------------
9070 ac_ext=cpp
9071 ac_cpp='$CXXCPP $CPPFLAGS'
9072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9076 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9077 if test -z "$CXXCPP"; then
9078 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9079 $as_echo_n "(cached) " >&6
9080 else
9081 # Double quotes because CXXCPP needs to be expanded
9082 for CXXCPP in "$CXX -E" "/lib/cpp"
9084 ac_preproc_ok=false
9085 for ac_cxx_preproc_warn_flag in '' yes
9087 # Use a header file that comes with gcc, so configuring glibc
9088 # with a fresh cross-compiler works.
9089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9090 # <limits.h> exists even on freestanding compilers.
9091 # On the NeXT, cc -E runs the code through the compiler's parser,
9092 # not just through cpp. "Syntax error" is here to catch this case.
9093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9094 /* end confdefs.h. */
9095 #ifdef __STDC__
9096 # include <limits.h>
9097 #else
9098 # include <assert.h>
9099 #endif
9100 Syntax error
9101 _ACEOF
9102 if ac_fn_cxx_try_cpp "$LINENO"; then :
9104 else
9105 # Broken: fails on valid input.
9106 continue
9108 rm -f conftest.err conftest.$ac_ext
9110 # OK, works on sane cases. Now check whether nonexistent headers
9111 # can be detected and how.
9112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9113 /* end confdefs.h. */
9114 #include <ac_nonexistent.h>
9115 _ACEOF
9116 if ac_fn_cxx_try_cpp "$LINENO"; then :
9117 # Broken: success on invalid input.
9118 continue
9119 else
9120 # Passes both tests.
9121 ac_preproc_ok=:
9122 break
9124 rm -f conftest.err conftest.$ac_ext
9126 done
9127 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9128 rm -f conftest.err conftest.$ac_ext
9129 if $ac_preproc_ok; then :
9130 break
9133 done
9134 ac_cv_prog_CXXCPP=$CXXCPP
9137 CXXCPP=$ac_cv_prog_CXXCPP
9138 else
9139 ac_cv_prog_CXXCPP=$CXXCPP
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9142 $as_echo "$CXXCPP" >&6; }
9143 ac_preproc_ok=false
9144 for ac_cxx_preproc_warn_flag in '' yes
9146 # Use a header file that comes with gcc, so configuring glibc
9147 # with a fresh cross-compiler works.
9148 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9149 # <limits.h> exists even on freestanding compilers.
9150 # On the NeXT, cc -E runs the code through the compiler's parser,
9151 # not just through cpp. "Syntax error" is here to catch this case.
9152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153 /* end confdefs.h. */
9154 #ifdef __STDC__
9155 # include <limits.h>
9156 #else
9157 # include <assert.h>
9158 #endif
9159 Syntax error
9160 _ACEOF
9161 if ac_fn_cxx_try_cpp "$LINENO"; then :
9163 else
9164 # Broken: fails on valid input.
9165 continue
9167 rm -f conftest.err conftest.$ac_ext
9169 # OK, works on sane cases. Now check whether nonexistent headers
9170 # can be detected and how.
9171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9172 /* end confdefs.h. */
9173 #include <ac_nonexistent.h>
9174 _ACEOF
9175 if ac_fn_cxx_try_cpp "$LINENO"; then :
9176 # Broken: success on invalid input.
9177 continue
9178 else
9179 # Passes both tests.
9180 ac_preproc_ok=:
9181 break
9183 rm -f conftest.err conftest.$ac_ext
9185 done
9186 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9187 rm -f conftest.err conftest.$ac_ext
9188 if $ac_preproc_ok; then :
9190 else
9191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9194 See \`config.log' for more details." >&5
9195 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9196 See \`config.log' for more details." >&2;}; }
9199 ac_ext=cpp
9200 ac_cpp='$CXXCPP $CPPFLAGS'
9201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9206 for ac_header in unordered_map
9207 do :
9208 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9209 if test "x$ac_cv_header_unordered_map" = x""yes; then :
9210 cat >>confdefs.h <<_ACEOF
9211 #define HAVE_UNORDERED_MAP 1
9212 _ACEOF
9215 done
9217 for ac_header in tr1/unordered_map
9218 do :
9219 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9220 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
9221 cat >>confdefs.h <<_ACEOF
9222 #define HAVE_TR1_UNORDERED_MAP 1
9223 _ACEOF
9226 done
9228 for ac_header in ext/hash_map
9229 do :
9230 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9231 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
9232 cat >>confdefs.h <<_ACEOF
9233 #define HAVE_EXT_HASH_MAP 1
9234 _ACEOF
9237 done
9240 # --------
9241 # Dependency checking.
9242 # --------
9244 rm -rf .tst 2>/dev/null
9245 mkdir .tst 2>/dev/null
9246 if test -d .tst; then
9247 am__leading_dot=.
9248 else
9249 am__leading_dot=_
9251 rmdir .tst 2>/dev/null
9253 DEPDIR="${am__leading_dot}deps"
9255 ac_config_commands="$ac_config_commands depdir"
9258 ac_config_commands="$ac_config_commands gccdepdir"
9261 depcc="$CXX" am_compiler_list=
9263 am_depcomp=$ac_aux_dir/depcomp
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9265 $as_echo_n "checking dependency style of $depcc... " >&6; }
9266 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9267 $as_echo_n "(cached) " >&6
9268 else
9269 if test -f "$am_depcomp"; then
9270 # We make a subdir and do the tests there. Otherwise we can end up
9271 # making bogus files that we don't know about and never remove. For
9272 # instance it was reported that on HP-UX the gcc test will end up
9273 # making a dummy file named `D' -- because `-MD' means `put the output
9274 # in D'.
9275 mkdir conftest.dir
9276 # Copy depcomp to subdir because otherwise we won't find it if we're
9277 # using a relative directory.
9278 cp "$am_depcomp" conftest.dir
9279 cd conftest.dir
9280 # We will build objects and dependencies in a subdirectory because
9281 # it helps to detect inapplicable dependency modes. For instance
9282 # both Tru64's cc and ICC support -MD to output dependencies as a
9283 # side effect of compilation, but ICC will put the dependencies in
9284 # the current directory while Tru64 will put them in the object
9285 # directory.
9286 mkdir sub
9288 am_cv_CXX_dependencies_compiler_type=none
9289 if test "$am_compiler_list" = ""; then
9290 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9292 for depmode in $am_compiler_list; do
9293 if test $depmode = none; then break; fi
9295 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9296 # Setup a source with many dependencies, because some compilers
9297 # like to wrap large dependency lists on column 80 (with \), and
9298 # we should not choose a depcomp mode which is confused by this.
9300 # We need to recreate these files for each test, as the compiler may
9301 # overwrite some of them when testing with obscure command lines.
9302 # This happens at least with the AIX C compiler.
9303 : > sub/conftest.c
9304 for i in 1 2 3 4 5 6; do
9305 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9306 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9307 # Solaris 8's {/usr,}/bin/sh.
9308 touch sub/conftst$i.h
9309 done
9310 echo "include sub/conftest.Po" > confmf
9312 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9313 # mode. It turns out that the SunPro C++ compiler does not properly
9314 # handle `-M -o', and we need to detect this.
9315 depcmd="depmode=$depmode \
9316 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9317 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9318 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9319 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9320 if env $depcmd > conftest.err 2>&1 &&
9321 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9322 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9323 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9324 # icc doesn't choke on unknown options, it will just issue warnings
9325 # or remarks (even with -Werror). So we grep stderr for any message
9326 # that says an option was ignored or not supported.
9327 # When given -MP, icc 7.0 and 7.1 complain thusly:
9328 # icc: Command line warning: ignoring option '-M'; no argument required
9329 # The diagnosis changed in icc 8.0:
9330 # icc: Command line remark: option '-MP' not supported
9331 if (grep 'ignoring option' conftest.err ||
9332 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9333 am_cv_CXX_dependencies_compiler_type=$depmode
9334 $as_echo "$as_me:$LINENO: success" >&5
9335 break
9338 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9339 sed -e 's/^/| /' < conftest.err >&5
9340 done
9342 cd ..
9343 rm -rf conftest.dir
9344 else
9345 am_cv_CXX_dependencies_compiler_type=none
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9350 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9351 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9352 then as_fn_error "no usable dependency style found" "$LINENO" 5
9353 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9358 # --------
9359 # UNSORTED
9360 # --------
9363 # These libraries may be used by collect2.
9364 # We may need a special search path to get them linked.
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9366 $as_echo_n "checking for collect2 libraries... " >&6; }
9367 if test "${gcc_cv_collect2_libs+set}" = set; then :
9368 $as_echo_n "(cached) " >&6
9369 else
9370 save_LIBS="$LIBS"
9371 for libs in '' -lld -lmld \
9372 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9373 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9375 LIBS="$libs"
9376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9377 /* end confdefs.h. */
9379 /* Override any GCC internal prototype to avoid an error.
9380 Use char because int might match the return type of a GCC
9381 builtin and then its argument prototype would still apply. */
9382 #ifdef __cplusplus
9383 extern "C"
9384 #endif
9385 char ldopen ();
9387 main ()
9389 return ldopen ();
9391 return 0;
9393 _ACEOF
9394 if ac_fn_cxx_try_link "$LINENO"; then :
9395 gcc_cv_collect2_libs="$libs"; break
9397 rm -f core conftest.err conftest.$ac_objext \
9398 conftest$ac_exeext conftest.$ac_ext
9399 done
9400 LIBS="$save_LIBS"
9401 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9404 $as_echo "$gcc_cv_collect2_libs" >&6; }
9405 case $gcc_cv_collect2_libs in
9406 "none required") ;;
9407 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9408 esac
9411 # When building Ada code on Alpha, we need exc_resume which is usually in
9412 # -lexc. So test for it.
9413 save_LIBS="$LIBS"
9414 LIBS=
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9416 $as_echo_n "checking for library containing exc_resume... " >&6; }
9417 if test "${ac_cv_search_exc_resume+set}" = set; then :
9418 $as_echo_n "(cached) " >&6
9419 else
9420 ac_func_search_save_LIBS=$LIBS
9421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422 /* end confdefs.h. */
9424 /* Override any GCC internal prototype to avoid an error.
9425 Use char because int might match the return type of a GCC
9426 builtin and then its argument prototype would still apply. */
9427 #ifdef __cplusplus
9428 extern "C"
9429 #endif
9430 char exc_resume ();
9432 main ()
9434 return exc_resume ();
9436 return 0;
9438 _ACEOF
9439 for ac_lib in '' exc; do
9440 if test -z "$ac_lib"; then
9441 ac_res="none required"
9442 else
9443 ac_res=-l$ac_lib
9444 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9446 if ac_fn_cxx_try_link "$LINENO"; then :
9447 ac_cv_search_exc_resume=$ac_res
9449 rm -f core conftest.err conftest.$ac_objext \
9450 conftest$ac_exeext
9451 if test "${ac_cv_search_exc_resume+set}" = set; then :
9452 break
9454 done
9455 if test "${ac_cv_search_exc_resume+set}" = set; then :
9457 else
9458 ac_cv_search_exc_resume=no
9460 rm conftest.$ac_ext
9461 LIBS=$ac_func_search_save_LIBS
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9464 $as_echo "$ac_cv_search_exc_resume" >&6; }
9465 ac_res=$ac_cv_search_exc_resume
9466 if test "$ac_res" != no; then :
9467 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9471 GNAT_LIBEXC="$LIBS"
9472 LIBS="$save_LIBS"
9475 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9476 save_LIBS="$LIBS"
9477 LIBS=
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9479 $as_echo_n "checking for library containing kstat_open... " >&6; }
9480 if test "${ac_cv_search_kstat_open+set}" = set; then :
9481 $as_echo_n "(cached) " >&6
9482 else
9483 ac_func_search_save_LIBS=$LIBS
9484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485 /* end confdefs.h. */
9487 /* Override any GCC internal prototype to avoid an error.
9488 Use char because int might match the return type of a GCC
9489 builtin and then its argument prototype would still apply. */
9490 #ifdef __cplusplus
9491 extern "C"
9492 #endif
9493 char kstat_open ();
9495 main ()
9497 return kstat_open ();
9499 return 0;
9501 _ACEOF
9502 for ac_lib in '' kstat; do
9503 if test -z "$ac_lib"; then
9504 ac_res="none required"
9505 else
9506 ac_res=-l$ac_lib
9507 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9509 if ac_fn_cxx_try_link "$LINENO"; then :
9510 ac_cv_search_kstat_open=$ac_res
9512 rm -f core conftest.err conftest.$ac_objext \
9513 conftest$ac_exeext
9514 if test "${ac_cv_search_kstat_open+set}" = set; then :
9515 break
9517 done
9518 if test "${ac_cv_search_kstat_open+set}" = set; then :
9520 else
9521 ac_cv_search_kstat_open=no
9523 rm conftest.$ac_ext
9524 LIBS=$ac_func_search_save_LIBS
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9527 $as_echo "$ac_cv_search_kstat_open" >&6; }
9528 ac_res=$ac_cv_search_kstat_open
9529 if test "$ac_res" != no; then :
9530 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9534 EXTRA_GCC_LIBS="$LIBS"
9535 LIBS="$save_LIBS"
9538 # Some systems put ldexp and frexp in libm instead of libc; assume
9539 # they're both in the same place. jcf-dump needs them.
9540 save_LIBS="$LIBS"
9541 LIBS=
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9543 $as_echo_n "checking for library containing ldexp... " >&6; }
9544 if test "${ac_cv_search_ldexp+set}" = set; then :
9545 $as_echo_n "(cached) " >&6
9546 else
9547 ac_func_search_save_LIBS=$LIBS
9548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9549 /* end confdefs.h. */
9551 /* Override any GCC internal prototype to avoid an error.
9552 Use char because int might match the return type of a GCC
9553 builtin and then its argument prototype would still apply. */
9554 #ifdef __cplusplus
9555 extern "C"
9556 #endif
9557 char ldexp ();
9559 main ()
9561 return ldexp ();
9563 return 0;
9565 _ACEOF
9566 for ac_lib in '' m; do
9567 if test -z "$ac_lib"; then
9568 ac_res="none required"
9569 else
9570 ac_res=-l$ac_lib
9571 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9573 if ac_fn_cxx_try_link "$LINENO"; then :
9574 ac_cv_search_ldexp=$ac_res
9576 rm -f core conftest.err conftest.$ac_objext \
9577 conftest$ac_exeext
9578 if test "${ac_cv_search_ldexp+set}" = set; then :
9579 break
9581 done
9582 if test "${ac_cv_search_ldexp+set}" = set; then :
9584 else
9585 ac_cv_search_ldexp=no
9587 rm conftest.$ac_ext
9588 LIBS=$ac_func_search_save_LIBS
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9591 $as_echo "$ac_cv_search_ldexp" >&6; }
9592 ac_res=$ac_cv_search_ldexp
9593 if test "$ac_res" != no; then :
9594 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9598 LDEXP_LIB="$LIBS"
9599 LIBS="$save_LIBS"
9602 # Use <inttypes.h> only if it exists,
9603 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9604 # PRId64
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9606 $as_echo_n "checking for inttypes.h... " >&6; }
9607 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9608 $as_echo_n "(cached) " >&6
9609 else
9610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9611 /* end confdefs.h. */
9612 #define __STDC_FORMAT_MACROS
9613 #include <sys/types.h>
9614 #include <inttypes.h>
9616 main ()
9618 intmax_t i = -1;
9619 #ifndef PRId64
9620 choke me
9621 #endif
9623 return 0;
9625 _ACEOF
9626 if ac_fn_cxx_try_compile "$LINENO"; then :
9627 gcc_cv_header_inttypes_h=yes
9628 else
9629 gcc_cv_header_inttypes_h=no
9631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9635 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9636 if test $gcc_cv_header_inttypes_h = yes; then
9638 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9644 for ac_func in times clock kill getrlimit setrlimit atoq \
9645 popen sysconf strsignal getrusage nl_langinfo \
9646 gettimeofday mbstowcs wcswidth mmap setlocale \
9647 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
9648 do :
9649 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9650 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9651 eval as_val=\$$as_ac_var
9652 if test "x$as_val" = x""yes; then :
9653 cat >>confdefs.h <<_ACEOF
9654 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9655 _ACEOF
9658 done
9661 if test x$ac_cv_func_mbstowcs = xyes; then
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9663 $as_echo_n "checking whether mbstowcs works... " >&6; }
9664 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9665 $as_echo_n "(cached) " >&6
9666 else
9667 if test "$cross_compiling" = yes; then :
9668 gcc_cv_func_mbstowcs_works=yes
9669 else
9670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9671 /* end confdefs.h. */
9672 #include <stdlib.h>
9673 int main()
9675 mbstowcs(0, "", 0);
9676 return 0;
9678 _ACEOF
9679 if ac_fn_cxx_try_run "$LINENO"; then :
9680 gcc_cv_func_mbstowcs_works=yes
9681 else
9682 gcc_cv_func_mbstowcs_works=no
9684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9685 conftest.$ac_objext conftest.beam conftest.$ac_ext
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9690 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9691 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9693 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9698 ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9699 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9701 else
9703 cat >>confdefs.h <<_ACEOF
9704 #define ssize_t int
9705 _ACEOF
9709 ac_fn_cxx_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9710 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9712 else
9714 cat >>confdefs.h <<_ACEOF
9715 #define caddr_t char *
9716 _ACEOF
9722 ac_fn_cxx_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9723 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9724 gcc_header_sys_mman_h=yes
9725 else
9726 gcc_header_sys_mman_h=no
9729 ac_fn_cxx_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9730 if test "x$ac_cv_func_mmap" = x""yes; then :
9731 gcc_func_mmap=yes
9732 else
9733 gcc_func_mmap=no
9736 if test "$gcc_header_sys_mman_h" != yes \
9737 || test "$gcc_func_mmap" != yes; then
9738 gcc_cv_func_mmap_file=no
9739 gcc_cv_func_mmap_dev_zero=no
9740 gcc_cv_func_mmap_anon=no
9741 else
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9743 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9744 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9745 $as_echo_n "(cached) " >&6
9746 else
9747 # Add a system to this blacklist if
9748 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9749 # memory area containing the same data that you'd get if you applied
9750 # read() to the same fd. The only system known to have a problem here
9751 # is VMS, where text files have record structure.
9752 case "$host_os" in
9753 *vms* | ultrix*)
9754 gcc_cv_func_mmap_file=no ;;
9756 gcc_cv_func_mmap_file=yes;;
9757 esac
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9760 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9762 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9763 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9764 $as_echo_n "(cached) " >&6
9765 else
9766 # Add a system to this blacklist if it has mmap() but /dev/zero
9767 # does not exist, or if mmapping /dev/zero does not give anonymous
9768 # zeroed pages with both the following properties:
9769 # 1. If you map N consecutive pages in with one call, and then
9770 # unmap any subset of those pages, the pages that were not
9771 # explicitly unmapped remain accessible.
9772 # 2. If you map two adjacent blocks of memory and then unmap them
9773 # both at once, they must both go away.
9774 # Systems known to be in this category are Windows (all variants),
9775 # VMS, and Darwin.
9776 case "$host_os" in
9777 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9778 gcc_cv_func_mmap_dev_zero=no ;;
9780 gcc_cv_func_mmap_dev_zero=yes;;
9781 esac
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9784 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9786 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9788 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9789 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9790 $as_echo_n "(cached) " >&6
9791 else
9792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9793 /* end confdefs.h. */
9794 #include <sys/types.h>
9795 #include <sys/mman.h>
9796 #include <unistd.h>
9798 #ifndef MAP_ANONYMOUS
9799 #define MAP_ANONYMOUS MAP_ANON
9800 #endif
9803 main ()
9805 int n = MAP_ANONYMOUS;
9807 return 0;
9809 _ACEOF
9810 if ac_fn_cxx_try_compile "$LINENO"; then :
9811 gcc_cv_decl_map_anon=yes
9812 else
9813 gcc_cv_decl_map_anon=no
9815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9818 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9820 if test $gcc_cv_decl_map_anon = no; then
9821 gcc_cv_func_mmap_anon=no
9822 else
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9824 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9825 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9826 $as_echo_n "(cached) " >&6
9827 else
9828 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9829 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9830 # doesn't give anonymous zeroed pages with the same properties listed
9831 # above for use of /dev/zero.
9832 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9833 case "$host_os" in
9834 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9835 gcc_cv_func_mmap_anon=no ;;
9837 gcc_cv_func_mmap_anon=yes;;
9838 esac
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9841 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9845 if test $gcc_cv_func_mmap_file = yes; then
9847 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9850 if test $gcc_cv_func_mmap_dev_zero = yes; then
9852 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9855 if test $gcc_cv_func_mmap_anon = yes; then
9857 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9862 case "${host}" in
9863 *-*-*vms*)
9864 # Under VMS, vfork works very differently than on Unix. The standard test
9865 # won't work, and it isn't easily adaptable. It makes more sense to
9866 # just force it.
9867 ac_cv_func_vfork_works=yes
9869 esac
9870 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9871 if test "x$ac_cv_type_pid_t" = x""yes; then :
9873 else
9875 cat >>confdefs.h <<_ACEOF
9876 #define pid_t int
9877 _ACEOF
9881 for ac_header in vfork.h
9882 do :
9883 ac_fn_cxx_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9884 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9885 cat >>confdefs.h <<_ACEOF
9886 #define HAVE_VFORK_H 1
9887 _ACEOF
9890 done
9892 for ac_func in fork vfork
9893 do :
9894 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9895 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
9896 eval as_val=\$$as_ac_var
9897 if test "x$as_val" = x""yes; then :
9898 cat >>confdefs.h <<_ACEOF
9899 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9900 _ACEOF
9903 done
9905 if test "x$ac_cv_func_fork" = xyes; then
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9907 $as_echo_n "checking for working fork... " >&6; }
9908 if test "${ac_cv_func_fork_works+set}" = set; then :
9909 $as_echo_n "(cached) " >&6
9910 else
9911 if test "$cross_compiling" = yes; then :
9912 ac_cv_func_fork_works=cross
9913 else
9914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9915 /* end confdefs.h. */
9916 $ac_includes_default
9918 main ()
9921 /* By Ruediger Kuhlmann. */
9922 return fork () < 0;
9925 return 0;
9927 _ACEOF
9928 if ac_fn_cxx_try_run "$LINENO"; then :
9929 ac_cv_func_fork_works=yes
9930 else
9931 ac_cv_func_fork_works=no
9933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9934 conftest.$ac_objext conftest.beam conftest.$ac_ext
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9939 $as_echo "$ac_cv_func_fork_works" >&6; }
9941 else
9942 ac_cv_func_fork_works=$ac_cv_func_fork
9944 if test "x$ac_cv_func_fork_works" = xcross; then
9945 case $host in
9946 *-*-amigaos* | *-*-msdosdjgpp*)
9947 # Override, as these systems have only a dummy fork() stub
9948 ac_cv_func_fork_works=no
9951 ac_cv_func_fork_works=yes
9953 esac
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9955 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9957 ac_cv_func_vfork_works=$ac_cv_func_vfork
9958 if test "x$ac_cv_func_vfork" = xyes; then
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9960 $as_echo_n "checking for working vfork... " >&6; }
9961 if test "${ac_cv_func_vfork_works+set}" = set; then :
9962 $as_echo_n "(cached) " >&6
9963 else
9964 if test "$cross_compiling" = yes; then :
9965 ac_cv_func_vfork_works=cross
9966 else
9967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968 /* end confdefs.h. */
9969 /* Thanks to Paul Eggert for this test. */
9970 $ac_includes_default
9971 #include <sys/wait.h>
9972 #ifdef HAVE_VFORK_H
9973 # include <vfork.h>
9974 #endif
9975 /* On some sparc systems, changes by the child to local and incoming
9976 argument registers are propagated back to the parent. The compiler
9977 is told about this with #include <vfork.h>, but some compilers
9978 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9979 static variable whose address is put into a register that is
9980 clobbered by the vfork. */
9981 static void
9982 #ifdef __cplusplus
9983 sparc_address_test (int arg)
9984 # else
9985 sparc_address_test (arg) int arg;
9986 #endif
9988 static pid_t child;
9989 if (!child) {
9990 child = vfork ();
9991 if (child < 0) {
9992 perror ("vfork");
9993 _exit(2);
9995 if (!child) {
9996 arg = getpid();
9997 write(-1, "", 0);
9998 _exit (arg);
10004 main ()
10006 pid_t parent = getpid ();
10007 pid_t child;
10009 sparc_address_test (0);
10011 child = vfork ();
10013 if (child == 0) {
10014 /* Here is another test for sparc vfork register problems. This
10015 test uses lots of local variables, at least as many local
10016 variables as main has allocated so far including compiler
10017 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10018 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10019 reuse the register of parent for one of the local variables,
10020 since it will think that parent can't possibly be used any more
10021 in this routine. Assigning to the local variable will thus
10022 munge parent in the parent process. */
10023 pid_t
10024 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10025 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10026 /* Convince the compiler that p..p7 are live; otherwise, it might
10027 use the same hardware register for all 8 local variables. */
10028 if (p != p1 || p != p2 || p != p3 || p != p4
10029 || p != p5 || p != p6 || p != p7)
10030 _exit(1);
10032 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10033 from child file descriptors. If the child closes a descriptor
10034 before it execs or exits, this munges the parent's descriptor
10035 as well. Test for this by closing stdout in the child. */
10036 _exit(close(fileno(stdout)) != 0);
10037 } else {
10038 int status;
10039 struct stat st;
10041 while (wait(&status) != child)
10043 return (
10044 /* Was there some problem with vforking? */
10045 child < 0
10047 /* Did the child fail? (This shouldn't happen.) */
10048 || status
10050 /* Did the vfork/compiler bug occur? */
10051 || parent != getpid()
10053 /* Did the file descriptor bug occur? */
10054 || fstat(fileno(stdout), &st) != 0
10058 _ACEOF
10059 if ac_fn_cxx_try_run "$LINENO"; then :
10060 ac_cv_func_vfork_works=yes
10061 else
10062 ac_cv_func_vfork_works=no
10064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10065 conftest.$ac_objext conftest.beam conftest.$ac_ext
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10070 $as_echo "$ac_cv_func_vfork_works" >&6; }
10073 if test "x$ac_cv_func_fork_works" = xcross; then
10074 ac_cv_func_vfork_works=$ac_cv_func_vfork
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10076 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10079 if test "x$ac_cv_func_vfork_works" = xyes; then
10081 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10083 else
10085 $as_echo "#define vfork fork" >>confdefs.h
10088 if test "x$ac_cv_func_fork_works" = xyes; then
10090 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10096 if test "X$prefix" = "XNONE"; then
10097 acl_final_prefix="$ac_default_prefix"
10098 else
10099 acl_final_prefix="$prefix"
10101 if test "X$exec_prefix" = "XNONE"; then
10102 acl_final_exec_prefix='${prefix}'
10103 else
10104 acl_final_exec_prefix="$exec_prefix"
10106 acl_save_prefix="$prefix"
10107 prefix="$acl_final_prefix"
10108 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10109 prefix="$acl_save_prefix"
10112 # Check whether --with-gnu-ld was given.
10113 if test "${with_gnu_ld+set}" = set; then :
10114 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10115 else
10116 with_gnu_ld=no
10119 # Prepare PATH_SEPARATOR.
10120 # The user is always right.
10121 if test "${PATH_SEPARATOR+set}" != set; then
10122 echo "#! /bin/sh" >conf$$.sh
10123 echo "exit 0" >>conf$$.sh
10124 chmod +x conf$$.sh
10125 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10126 PATH_SEPARATOR=';'
10127 else
10128 PATH_SEPARATOR=:
10130 rm -f conf$$.sh
10132 ac_prog=ld
10133 if test "$GCC" = yes; then
10134 # Check if gcc -print-prog-name=ld gives a path.
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10136 $as_echo_n "checking for ld used by GCC... " >&6; }
10137 case $host in
10138 *-*-mingw*)
10139 # gcc leaves a trailing carriage return which upsets mingw
10140 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10142 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10143 esac
10144 case $ac_prog in
10145 # Accept absolute paths.
10146 [\\/]* | [A-Za-z]:[\\/]*)
10147 re_direlt='/[^/][^/]*/\.\./'
10148 # Canonicalize the path of ld
10149 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10150 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10151 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10152 done
10153 test -z "$LD" && LD="$ac_prog"
10156 # If it fails, then pretend we aren't using GCC.
10157 ac_prog=ld
10160 # If it is relative, then search for the first ld in PATH.
10161 with_gnu_ld=unknown
10163 esac
10164 elif test "$with_gnu_ld" = yes; then
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10166 $as_echo_n "checking for GNU ld... " >&6; }
10167 else
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10169 $as_echo_n "checking for non-GNU ld... " >&6; }
10171 if test "${acl_cv_path_LD+set}" = set; then :
10172 $as_echo_n "(cached) " >&6
10173 else
10174 if test -z "$LD"; then
10175 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10176 for ac_dir in $PATH; do
10177 test -z "$ac_dir" && ac_dir=.
10178 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10179 acl_cv_path_LD="$ac_dir/$ac_prog"
10180 # Check to see if the program is GNU ld. I'd rather use --version,
10181 # but apparently some GNU ld's only accept -v.
10182 # Break only if it was the GNU/non-GNU ld that we prefer.
10183 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10184 test "$with_gnu_ld" != no && break
10185 else
10186 test "$with_gnu_ld" != yes && break
10189 done
10190 IFS="$ac_save_ifs"
10191 else
10192 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10196 LD="$acl_cv_path_LD"
10197 if test -n "$LD"; then
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10199 $as_echo "$LD" >&6; }
10200 else
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10202 $as_echo "no" >&6; }
10204 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10206 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10207 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10208 $as_echo_n "(cached) " >&6
10209 else
10210 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10211 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10212 acl_cv_prog_gnu_ld=yes
10213 else
10214 acl_cv_prog_gnu_ld=no
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10218 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10219 with_gnu_ld=$acl_cv_prog_gnu_ld
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10224 $as_echo_n "checking for shared library run path origin... " >&6; }
10225 if test "${acl_cv_rpath+set}" = set; then :
10226 $as_echo_n "(cached) " >&6
10227 else
10229 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10230 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10231 . ./conftest.sh
10232 rm -f ./conftest.sh
10233 acl_cv_rpath=done
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10237 $as_echo "$acl_cv_rpath" >&6; }
10238 wl="$acl_cv_wl"
10239 libext="$acl_cv_libext"
10240 shlibext="$acl_cv_shlibext"
10241 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10242 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10243 hardcode_direct="$acl_cv_hardcode_direct"
10244 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10245 # Check whether --enable-rpath was given.
10246 if test "${enable_rpath+set}" = set; then :
10247 enableval=$enable_rpath; :
10248 else
10249 enable_rpath=yes
10259 use_additional=yes
10261 acl_save_prefix="$prefix"
10262 prefix="$acl_final_prefix"
10263 acl_save_exec_prefix="$exec_prefix"
10264 exec_prefix="$acl_final_exec_prefix"
10266 eval additional_includedir=\"$includedir\"
10267 eval additional_libdir=\"$libdir\"
10269 exec_prefix="$acl_save_exec_prefix"
10270 prefix="$acl_save_prefix"
10273 # Check whether --with-libiconv-prefix was given.
10274 if test "${with_libiconv_prefix+set}" = set; then :
10275 withval=$with_libiconv_prefix;
10276 if test "X$withval" = "Xno"; then
10277 use_additional=no
10278 else
10279 if test "X$withval" = "X"; then
10281 acl_save_prefix="$prefix"
10282 prefix="$acl_final_prefix"
10283 acl_save_exec_prefix="$exec_prefix"
10284 exec_prefix="$acl_final_exec_prefix"
10286 eval additional_includedir=\"$includedir\"
10287 eval additional_libdir=\"$libdir\"
10289 exec_prefix="$acl_save_exec_prefix"
10290 prefix="$acl_save_prefix"
10292 else
10293 additional_includedir="$withval/include"
10294 additional_libdir="$withval/lib"
10300 LIBICONV=
10301 LTLIBICONV=
10302 INCICONV=
10303 rpathdirs=
10304 ltrpathdirs=
10305 names_already_handled=
10306 names_next_round='iconv '
10307 while test -n "$names_next_round"; do
10308 names_this_round="$names_next_round"
10309 names_next_round=
10310 for name in $names_this_round; do
10311 already_handled=
10312 for n in $names_already_handled; do
10313 if test "$n" = "$name"; then
10314 already_handled=yes
10315 break
10317 done
10318 if test -z "$already_handled"; then
10319 names_already_handled="$names_already_handled $name"
10320 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10321 eval value=\"\$HAVE_LIB$uppername\"
10322 if test -n "$value"; then
10323 if test "$value" = yes; then
10324 eval value=\"\$LIB$uppername\"
10325 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10326 eval value=\"\$LTLIB$uppername\"
10327 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10328 else
10331 else
10332 found_dir=
10333 found_la=
10334 found_so=
10335 found_a=
10336 if test $use_additional = yes; then
10337 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10338 found_dir="$additional_libdir"
10339 found_so="$additional_libdir/lib$name.$shlibext"
10340 if test -f "$additional_libdir/lib$name.la"; then
10341 found_la="$additional_libdir/lib$name.la"
10343 else
10344 if test -f "$additional_libdir/lib$name.$libext"; then
10345 found_dir="$additional_libdir"
10346 found_a="$additional_libdir/lib$name.$libext"
10347 if test -f "$additional_libdir/lib$name.la"; then
10348 found_la="$additional_libdir/lib$name.la"
10353 if test "X$found_dir" = "X"; then
10354 for x in $LDFLAGS $LTLIBICONV; do
10356 acl_save_prefix="$prefix"
10357 prefix="$acl_final_prefix"
10358 acl_save_exec_prefix="$exec_prefix"
10359 exec_prefix="$acl_final_exec_prefix"
10360 eval x=\"$x\"
10361 exec_prefix="$acl_save_exec_prefix"
10362 prefix="$acl_save_prefix"
10364 case "$x" in
10365 -L*)
10366 dir=`echo "X$x" | sed -e 's/^X-L//'`
10367 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10368 found_dir="$dir"
10369 found_so="$dir/lib$name.$shlibext"
10370 if test -f "$dir/lib$name.la"; then
10371 found_la="$dir/lib$name.la"
10373 else
10374 if test -f "$dir/lib$name.$libext"; then
10375 found_dir="$dir"
10376 found_a="$dir/lib$name.$libext"
10377 if test -f "$dir/lib$name.la"; then
10378 found_la="$dir/lib$name.la"
10383 esac
10384 if test "X$found_dir" != "X"; then
10385 break
10387 done
10389 if test "X$found_dir" != "X"; then
10390 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10391 if test "X$found_so" != "X"; then
10392 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10393 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10394 else
10395 haveit=
10396 for x in $ltrpathdirs; do
10397 if test "X$x" = "X$found_dir"; then
10398 haveit=yes
10399 break
10401 done
10402 if test -z "$haveit"; then
10403 ltrpathdirs="$ltrpathdirs $found_dir"
10405 if test "$hardcode_direct" = yes; then
10406 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10407 else
10408 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10409 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10410 haveit=
10411 for x in $rpathdirs; do
10412 if test "X$x" = "X$found_dir"; then
10413 haveit=yes
10414 break
10416 done
10417 if test -z "$haveit"; then
10418 rpathdirs="$rpathdirs $found_dir"
10420 else
10421 haveit=
10422 for x in $LDFLAGS $LIBICONV; do
10424 acl_save_prefix="$prefix"
10425 prefix="$acl_final_prefix"
10426 acl_save_exec_prefix="$exec_prefix"
10427 exec_prefix="$acl_final_exec_prefix"
10428 eval x=\"$x\"
10429 exec_prefix="$acl_save_exec_prefix"
10430 prefix="$acl_save_prefix"
10432 if test "X$x" = "X-L$found_dir"; then
10433 haveit=yes
10434 break
10436 done
10437 if test -z "$haveit"; then
10438 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10440 if test "$hardcode_minus_L" != no; then
10441 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10442 else
10443 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10448 else
10449 if test "X$found_a" != "X"; then
10450 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10451 else
10452 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10455 additional_includedir=
10456 case "$found_dir" in
10457 */lib | */lib/)
10458 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10459 additional_includedir="$basedir/include"
10461 esac
10462 if test "X$additional_includedir" != "X"; then
10463 if test "X$additional_includedir" != "X/usr/include"; then
10464 haveit=
10465 if test "X$additional_includedir" = "X/usr/local/include"; then
10466 if test -n "$GCC"; then
10467 case $host_os in
10468 linux*) haveit=yes;;
10469 esac
10472 if test -z "$haveit"; then
10473 for x in $CPPFLAGS $INCICONV; do
10475 acl_save_prefix="$prefix"
10476 prefix="$acl_final_prefix"
10477 acl_save_exec_prefix="$exec_prefix"
10478 exec_prefix="$acl_final_exec_prefix"
10479 eval x=\"$x\"
10480 exec_prefix="$acl_save_exec_prefix"
10481 prefix="$acl_save_prefix"
10483 if test "X$x" = "X-I$additional_includedir"; then
10484 haveit=yes
10485 break
10487 done
10488 if test -z "$haveit"; then
10489 if test -d "$additional_includedir"; then
10490 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10496 if test -n "$found_la"; then
10497 save_libdir="$libdir"
10498 case "$found_la" in
10499 */* | *\\*) . "$found_la" ;;
10500 *) . "./$found_la" ;;
10501 esac
10502 libdir="$save_libdir"
10503 for dep in $dependency_libs; do
10504 case "$dep" in
10505 -L*)
10506 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10507 if test "X$additional_libdir" != "X/usr/lib"; then
10508 haveit=
10509 if test "X$additional_libdir" = "X/usr/local/lib"; then
10510 if test -n "$GCC"; then
10511 case $host_os in
10512 linux*) haveit=yes;;
10513 esac
10516 if test -z "$haveit"; then
10517 haveit=
10518 for x in $LDFLAGS $LIBICONV; do
10520 acl_save_prefix="$prefix"
10521 prefix="$acl_final_prefix"
10522 acl_save_exec_prefix="$exec_prefix"
10523 exec_prefix="$acl_final_exec_prefix"
10524 eval x=\"$x\"
10525 exec_prefix="$acl_save_exec_prefix"
10526 prefix="$acl_save_prefix"
10528 if test "X$x" = "X-L$additional_libdir"; then
10529 haveit=yes
10530 break
10532 done
10533 if test -z "$haveit"; then
10534 if test -d "$additional_libdir"; then
10535 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10538 haveit=
10539 for x in $LDFLAGS $LTLIBICONV; do
10541 acl_save_prefix="$prefix"
10542 prefix="$acl_final_prefix"
10543 acl_save_exec_prefix="$exec_prefix"
10544 exec_prefix="$acl_final_exec_prefix"
10545 eval x=\"$x\"
10546 exec_prefix="$acl_save_exec_prefix"
10547 prefix="$acl_save_prefix"
10549 if test "X$x" = "X-L$additional_libdir"; then
10550 haveit=yes
10551 break
10553 done
10554 if test -z "$haveit"; then
10555 if test -d "$additional_libdir"; then
10556 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10562 -R*)
10563 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10564 if test "$enable_rpath" != no; then
10565 haveit=
10566 for x in $rpathdirs; do
10567 if test "X$x" = "X$dir"; then
10568 haveit=yes
10569 break
10571 done
10572 if test -z "$haveit"; then
10573 rpathdirs="$rpathdirs $dir"
10575 haveit=
10576 for x in $ltrpathdirs; do
10577 if test "X$x" = "X$dir"; then
10578 haveit=yes
10579 break
10581 done
10582 if test -z "$haveit"; then
10583 ltrpathdirs="$ltrpathdirs $dir"
10587 -l*)
10588 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10590 *.la)
10591 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10594 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10595 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10597 esac
10598 done
10600 else
10601 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10602 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10606 done
10607 done
10608 if test "X$rpathdirs" != "X"; then
10609 if test -n "$hardcode_libdir_separator"; then
10610 alldirs=
10611 for found_dir in $rpathdirs; do
10612 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10613 done
10614 acl_save_libdir="$libdir"
10615 libdir="$alldirs"
10616 eval flag=\"$hardcode_libdir_flag_spec\"
10617 libdir="$acl_save_libdir"
10618 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10619 else
10620 for found_dir in $rpathdirs; do
10621 acl_save_libdir="$libdir"
10622 libdir="$found_dir"
10623 eval flag=\"$hardcode_libdir_flag_spec\"
10624 libdir="$acl_save_libdir"
10625 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10626 done
10629 if test "X$ltrpathdirs" != "X"; then
10630 for found_dir in $ltrpathdirs; do
10631 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10632 done
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10642 $as_echo_n "checking for iconv... " >&6; }
10643 if test "${am_cv_func_iconv+set}" = set; then :
10644 $as_echo_n "(cached) " >&6
10645 else
10647 am_cv_func_iconv="no, consider installing GNU libiconv"
10648 am_cv_lib_iconv=no
10649 am_save_CPPFLAGS="$CPPFLAGS"
10650 CPPFLAGS="$CPPFLAGS $INCICONV"
10651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10652 /* end confdefs.h. */
10653 #include <stdlib.h>
10654 #include <iconv.h>
10656 main ()
10658 iconv_t cd = iconv_open("","");
10659 iconv(cd,NULL,NULL,NULL,NULL);
10660 iconv_close(cd);
10662 return 0;
10664 _ACEOF
10665 if ac_fn_cxx_try_link "$LINENO"; then :
10666 am_cv_func_iconv=yes
10668 rm -f core conftest.err conftest.$ac_objext \
10669 conftest$ac_exeext conftest.$ac_ext
10670 CPPFLAGS="$am_save_CPPFLAGS"
10672 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10673 for _libs in .libs _libs; do
10674 am_save_CPPFLAGS="$CPPFLAGS"
10675 am_save_LIBS="$LIBS"
10676 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
10677 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10679 /* end confdefs.h. */
10680 #include <stdlib.h>
10681 #include <iconv.h>
10683 main ()
10685 iconv_t cd = iconv_open("","");
10686 iconv(cd,NULL,NULL,NULL,NULL);
10687 iconv_close(cd);
10689 return 0;
10691 _ACEOF
10692 if ac_fn_cxx_try_link "$LINENO"; then :
10693 INCICONV="-I../libiconv/include"
10694 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
10695 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
10696 am_cv_lib_iconv=yes
10697 am_cv_func_iconv=yes
10699 rm -f core conftest.err conftest.$ac_objext \
10700 conftest$ac_exeext conftest.$ac_ext
10701 CPPFLAGS="$am_save_CPPFLAGS"
10702 LIBS="$am_save_LIBS"
10703 if test "$am_cv_func_iconv" = "yes"; then
10704 break
10706 done
10709 if test "$am_cv_func_iconv" != yes; then
10710 am_save_CPPFLAGS="$CPPFLAGS"
10711 am_save_LIBS="$LIBS"
10712 CPPFLAGS="$LIBS $INCICONV"
10713 LIBS="$LIBS $LIBICONV"
10714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10715 /* end confdefs.h. */
10716 #include <stdlib.h>
10717 #include <iconv.h>
10719 main ()
10721 iconv_t cd = iconv_open("","");
10722 iconv(cd,NULL,NULL,NULL,NULL);
10723 iconv_close(cd);
10725 return 0;
10727 _ACEOF
10728 if ac_fn_cxx_try_link "$LINENO"; then :
10729 am_cv_lib_iconv=yes
10730 am_cv_func_iconv=yes
10732 rm -f core conftest.err conftest.$ac_objext \
10733 conftest$ac_exeext conftest.$ac_ext
10734 CPPFLAGS="$am_save_CPPFLAGS"
10735 LIBS="$am_save_LIBS"
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10740 $as_echo "$am_cv_func_iconv" >&6; }
10741 if test "$am_cv_func_iconv" = yes; then
10743 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10746 if test "$am_cv_lib_iconv" = yes; then
10748 for element in $INCICONV; do
10749 haveit=
10750 for x in $CPPFLAGS; do
10752 acl_save_prefix="$prefix"
10753 prefix="$acl_final_prefix"
10754 acl_save_exec_prefix="$exec_prefix"
10755 exec_prefix="$acl_final_exec_prefix"
10756 eval x=\"$x\"
10757 exec_prefix="$acl_save_exec_prefix"
10758 prefix="$acl_save_prefix"
10760 if test "X$x" = "X$element"; then
10761 haveit=yes
10762 break
10764 done
10765 if test -z "$haveit"; then
10766 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10768 done
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10771 $as_echo_n "checking how to link with libiconv... " >&6; }
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10773 $as_echo "$LIBICONV" >&6; }
10774 else
10775 LIBICONV=
10776 LTLIBICONV=
10781 if test "$am_cv_func_iconv" = yes; then
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10783 $as_echo_n "checking for iconv declaration... " >&6; }
10784 if test "${am_cv_proto_iconv+set}" = set; then :
10785 $as_echo_n "(cached) " >&6
10786 else
10788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10789 /* end confdefs.h. */
10791 #include <stdlib.h>
10792 #include <iconv.h>
10793 extern
10794 #ifdef __cplusplus
10796 #endif
10797 #if defined(__STDC__) || defined(__cplusplus)
10798 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10799 #else
10800 size_t iconv();
10801 #endif
10804 main ()
10808 return 0;
10810 _ACEOF
10811 if ac_fn_cxx_try_compile "$LINENO"; then :
10812 am_cv_proto_iconv_arg1=""
10813 else
10814 am_cv_proto_iconv_arg1="const"
10816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10817 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);"
10820 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10822 }$am_cv_proto_iconv" >&5
10823 $as_echo "${ac_t:-
10824 }$am_cv_proto_iconv" >&6; }
10826 cat >>confdefs.h <<_ACEOF
10827 #define ICONV_CONST $am_cv_proto_iconv_arg1
10828 _ACEOF
10833 # Until we have in-tree GNU iconv:
10834 LIBICONV_DEP=
10835 if test -f "$LTLIBICONV"; then
10836 LIBICONV_DEP=$LTLIBICONV
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10842 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10843 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10844 $as_echo_n "(cached) " >&6
10845 else
10846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10847 /* end confdefs.h. */
10848 #include <locale.h>
10850 main ()
10852 return LC_MESSAGES
10854 return 0;
10856 _ACEOF
10857 if ac_fn_cxx_try_link "$LINENO"; then :
10858 am_cv_val_LC_MESSAGES=yes
10859 else
10860 am_cv_val_LC_MESSAGES=no
10862 rm -f core conftest.err conftest.$ac_objext \
10863 conftest$ac_exeext conftest.$ac_ext
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10866 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10867 if test $am_cv_val_LC_MESSAGES = yes; then
10869 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10876 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10877 if test "${am_cv_langinfo_codeset+set}" = set; then :
10878 $as_echo_n "(cached) " >&6
10879 else
10880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10881 /* end confdefs.h. */
10882 #include <langinfo.h>
10884 main ()
10886 char* cs = nl_langinfo(CODESET);
10888 return 0;
10890 _ACEOF
10891 if ac_fn_cxx_try_link "$LINENO"; then :
10892 am_cv_langinfo_codeset=yes
10893 else
10894 am_cv_langinfo_codeset=no
10896 rm -f core conftest.err conftest.$ac_objext \
10897 conftest$ac_exeext conftest.$ac_ext
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10901 $as_echo "$am_cv_langinfo_codeset" >&6; }
10902 if test $am_cv_langinfo_codeset = yes; then
10904 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10909 # We will need to find libiberty.h and ansidecl.h
10910 saved_CFLAGS="$CFLAGS"
10911 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10912 saved_CXXFLAGS="$CXXFLAGS"
10913 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10915 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10916 # normal autoconf function for these. But force definition of
10917 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10918 # basename handling in libiberty.h.
10919 ac_fn_cxx_check_decl "$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10920 #undef HAVE_DECL_BASENAME
10921 #define HAVE_DECL_BASENAME 1
10922 #include \"ansidecl.h\"
10923 #include \"system.h\"
10925 if test "x$ac_cv_have_decl_basename_const_charp_" = x""yes; then :
10926 ac_have_decl=1
10927 else
10928 ac_have_decl=0
10931 cat >>confdefs.h <<_ACEOF
10932 #define HAVE_DECL_BASENAME $ac_have_decl
10933 _ACEOF
10934 ac_fn_cxx_check_decl "$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10935 #undef HAVE_DECL_BASENAME
10936 #define HAVE_DECL_BASENAME 1
10937 #include \"ansidecl.h\"
10938 #include \"system.h\"
10940 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x""yes; then :
10941 ac_have_decl=1
10942 else
10943 ac_have_decl=0
10946 cat >>confdefs.h <<_ACEOF
10947 #define HAVE_DECL_STRSTR $ac_have_decl
10948 _ACEOF
10951 for ac_func in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10952 madvise stpcpy strnlen strsignal strverscmp \
10953 strtol strtoul strtoll strtoull setenv unsetenv \
10954 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10955 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
10957 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10959 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10960 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10961 $as_echo_n "(cached) " >&6
10962 else
10963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10964 /* end confdefs.h. */
10965 #undef $ac_tr_decl
10966 #define $ac_tr_decl 1
10968 #include "ansidecl.h"
10969 #include "system.h"
10972 main ()
10974 #ifndef $ac_func
10975 char *(*pfn) = (char *(*)) $ac_func ;
10976 #endif
10978 return 0;
10980 _ACEOF
10981 if ac_fn_cxx_try_compile "$LINENO"; then :
10982 eval "gcc_cv_have_decl_$ac_func=yes"
10983 else
10984 eval "gcc_cv_have_decl_$ac_func=no"
10986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10989 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10991 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10992 #define $ac_tr_decl 1
10993 _ACEOF
10995 else
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10997 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10998 #define $ac_tr_decl 0
10999 _ACEOF
11003 done
11006 for ac_func in getrlimit setrlimit getrusage
11008 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11010 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11011 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11012 $as_echo_n "(cached) " >&6
11013 else
11014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11015 /* end confdefs.h. */
11016 #undef $ac_tr_decl
11017 #define $ac_tr_decl 1
11019 #include "ansidecl.h"
11020 #include "system.h"
11021 #ifdef HAVE_SYS_RESOURCE_H
11022 #include <sys/resource.h>
11023 #endif
11027 main ()
11029 #ifndef $ac_func
11030 char *(*pfn) = (char *(*)) $ac_func ;
11031 #endif
11033 return 0;
11035 _ACEOF
11036 if ac_fn_cxx_try_compile "$LINENO"; then :
11037 eval "gcc_cv_have_decl_$ac_func=yes"
11038 else
11039 eval "gcc_cv_have_decl_$ac_func=no"
11041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11044 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11046 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11047 #define $ac_tr_decl 1
11048 _ACEOF
11050 else
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11053 #define $ac_tr_decl 0
11054 _ACEOF
11058 done
11061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11062 /* end confdefs.h. */
11064 #include "ansidecl.h"
11065 #include "system.h"
11066 #ifdef HAVE_SYS_RESOURCE_H
11067 #include <sys/resource.h>
11068 #endif
11071 main ()
11073 rlim_t l = 0;
11075 return 0;
11077 _ACEOF
11078 if ac_fn_cxx_try_compile "$LINENO"; then :
11080 else
11082 $as_echo "#define rlim_t long" >>confdefs.h
11085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11087 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11088 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11089 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11090 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11091 for ac_func in ldgetname
11093 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11095 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11096 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11097 $as_echo_n "(cached) " >&6
11098 else
11099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11100 /* end confdefs.h. */
11101 #undef $ac_tr_decl
11102 #define $ac_tr_decl 1
11104 #include "ansidecl.h"
11105 #include "system.h"
11106 #ifdef HAVE_LDFCN_H
11107 #undef FREAD
11108 #undef FWRITE
11109 #include <ldfcn.h>
11110 #endif
11114 main ()
11116 #ifndef $ac_func
11117 char *(*pfn) = (char *(*)) $ac_func ;
11118 #endif
11120 return 0;
11122 _ACEOF
11123 if ac_fn_cxx_try_compile "$LINENO"; then :
11124 eval "gcc_cv_have_decl_$ac_func=yes"
11125 else
11126 eval "gcc_cv_have_decl_$ac_func=no"
11128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11131 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11133 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11134 #define $ac_tr_decl 1
11135 _ACEOF
11137 else
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11139 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11140 #define $ac_tr_decl 0
11141 _ACEOF
11145 done
11148 for ac_func in times
11150 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11152 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11153 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11154 $as_echo_n "(cached) " >&6
11155 else
11156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157 /* end confdefs.h. */
11158 #undef $ac_tr_decl
11159 #define $ac_tr_decl 1
11161 #include "ansidecl.h"
11162 #include "system.h"
11163 #ifdef HAVE_SYS_TIMES_H
11164 #include <sys/times.h>
11165 #endif
11169 main ()
11171 #ifndef $ac_func
11172 char *(*pfn) = (char *(*)) $ac_func ;
11173 #endif
11175 return 0;
11177 _ACEOF
11178 if ac_fn_cxx_try_compile "$LINENO"; then :
11179 eval "gcc_cv_have_decl_$ac_func=yes"
11180 else
11181 eval "gcc_cv_have_decl_$ac_func=no"
11183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11186 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11188 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11189 #define $ac_tr_decl 1
11190 _ACEOF
11192 else
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11194 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11195 #define $ac_tr_decl 0
11196 _ACEOF
11200 done
11203 for ac_func in sigaltstack
11205 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11207 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11208 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11209 $as_echo_n "(cached) " >&6
11210 else
11211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11212 /* end confdefs.h. */
11213 #undef $ac_tr_decl
11214 #define $ac_tr_decl 1
11216 #include "ansidecl.h"
11217 #include "system.h"
11218 #include <signal.h>
11222 main ()
11224 #ifndef $ac_func
11225 char *(*pfn) = (char *(*)) $ac_func ;
11226 #endif
11228 return 0;
11230 _ACEOF
11231 if ac_fn_cxx_try_compile "$LINENO"; then :
11232 eval "gcc_cv_have_decl_$ac_func=yes"
11233 else
11234 eval "gcc_cv_have_decl_$ac_func=no"
11236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11239 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11241 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
11242 #define $ac_tr_decl 1
11243 _ACEOF
11245 else
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11247 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
11248 #define $ac_tr_decl 0
11249 _ACEOF
11253 done
11256 # More time-related stuff.
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11258 $as_echo_n "checking for struct tms... " >&6; }
11259 if test "${ac_cv_struct_tms+set}" = set; then :
11260 $as_echo_n "(cached) " >&6
11261 else
11263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11264 /* end confdefs.h. */
11266 #include "ansidecl.h"
11267 #include "system.h"
11268 #ifdef HAVE_SYS_TIMES_H
11269 #include <sys/times.h>
11270 #endif
11273 main ()
11275 struct tms tms;
11277 return 0;
11279 _ACEOF
11280 if ac_fn_cxx_try_compile "$LINENO"; then :
11281 ac_cv_struct_tms=yes
11282 else
11283 ac_cv_struct_tms=no
11285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11288 $as_echo "$ac_cv_struct_tms" >&6; }
11289 if test $ac_cv_struct_tms = yes; then
11291 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11295 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11296 # revisit after autoconf 2.50.
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11298 $as_echo_n "checking for clock_t... " >&6; }
11299 if test "${gcc_cv_type_clock_t+set}" = set; then :
11300 $as_echo_n "(cached) " >&6
11301 else
11303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11304 /* end confdefs.h. */
11306 #include "ansidecl.h"
11307 #include "system.h"
11310 main ()
11312 clock_t x;
11314 return 0;
11316 _ACEOF
11317 if ac_fn_cxx_try_compile "$LINENO"; then :
11318 gcc_cv_type_clock_t=yes
11319 else
11320 gcc_cv_type_clock_t=no
11322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11325 $as_echo "$gcc_cv_type_clock_t" >&6; }
11326 if test $gcc_cv_type_clock_t = yes; then
11328 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11332 # Check if F_SETLKW is supported by fcntl.
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11334 $as_echo_n "checking for F_SETLKW... " >&6; }
11335 if test "${ac_cv_f_setlkw+set}" = set; then :
11336 $as_echo_n "(cached) " >&6
11337 else
11339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340 /* end confdefs.h. */
11342 #include <fcntl.h>
11344 main ()
11347 struct flock fl;
11348 fl.l_whence = 0;
11349 fl.l_start = 0;
11350 fl.l_len = 0;
11351 fl.l_pid = 0;
11352 return fcntl (1, F_SETLKW, &fl);
11354 return 0;
11356 _ACEOF
11357 if ac_fn_cxx_try_compile "$LINENO"; then :
11358 ac_cv_f_setlkw=yes
11359 else
11360 ac_cv_f_setlkw=no
11362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11365 $as_echo "$ac_cv_f_setlkw" >&6; }
11366 if test $ac_cv_f_setlkw = yes; then
11368 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11372 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11373 CFLAGS="$saved_CFLAGS"
11374 CXXFLAGS="$saved_CXXFLAGS"
11376 # mkdir takes a single argument on some systems.
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11378 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11379 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11380 $as_echo_n "(cached) " >&6
11381 else
11382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11383 /* end confdefs.h. */
11385 #include <sys/types.h>
11386 #ifdef HAVE_SYS_STAT_H
11387 # include <sys/stat.h>
11388 #endif
11389 #ifdef HAVE_UNISTD_H
11390 # include <unistd.h>
11391 #endif
11392 #ifdef HAVE_DIRECT_H
11393 # include <direct.h>
11394 #endif
11396 main ()
11398 mkdir ("foo", 0);
11400 return 0;
11402 _ACEOF
11403 if ac_fn_cxx_try_compile "$LINENO"; then :
11404 gcc_cv_mkdir_takes_one_arg=no
11405 else
11406 gcc_cv_mkdir_takes_one_arg=yes
11408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11411 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11412 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11414 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11419 # File extensions
11420 manext='.1'
11421 objext='.o'
11425 # With Setjmp/Longjmp based exception handling.
11426 # Check whether --enable-sjlj-exceptions was given.
11427 if test "${enable_sjlj_exceptions+set}" = set; then :
11428 enableval=$enable_sjlj_exceptions; case $target in
11429 *-*-hpux10*)
11430 if test $enableval != yes; then
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11432 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11433 enableval=yes
11436 esac
11437 force_sjlj_exceptions=yes
11438 else
11439 case $target in
11440 *-*-hpux10*)
11441 force_sjlj_exceptions=yes
11442 enableval=yes
11444 lm32*-*-*)
11445 force_sjlj_exceptions=yes
11446 enableval=yes
11449 force_sjlj_exceptions=no
11451 esac
11454 if test $force_sjlj_exceptions = yes; then
11455 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11457 cat >>confdefs.h <<_ACEOF
11458 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11459 _ACEOF
11463 # --------------------------------------------------------
11464 # Build, host, and target specific configuration fragments
11465 # --------------------------------------------------------
11467 # Collect build-machine-specific information.
11468 . ${srcdir}/config.build
11470 # Collect host-machine-specific information.
11471 . ${srcdir}/config.host
11473 target_gtfiles=
11475 # Collect target-machine-specific information.
11476 . ${srcdir}/config.gcc
11478 extra_objs="${host_extra_objs} ${extra_objs}"
11479 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11481 # Default the target-machine variables that were not explicitly set.
11482 if test x"$tm_file" = x
11483 then tm_file=$cpu_type/$cpu_type.h; fi
11485 if test x"$extra_headers" = x
11486 then extra_headers=; fi
11488 if test x$md_file = x
11489 then md_file=$cpu_type/$cpu_type.md; fi
11491 if test x$out_file = x
11492 then out_file=$cpu_type/$cpu_type.c; fi
11494 if test x"$tmake_file" = x
11495 then tmake_file=$cpu_type/t-$cpu_type
11498 # Support --enable-initfini-array.
11499 if test x$enable_initfini_array != xno; then
11500 tm_file="${tm_file} initfini-array.h"
11503 if test x"$dwarf2" = xyes
11504 then tm_file="$tm_file tm-dwarf2.h"
11507 # Say what files are being used for the output code and MD file.
11508 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11509 echo "Using \`$srcdir/config/$md_file' as machine description file."
11511 # If any of the xm_file variables contain nonexistent files, warn
11512 # about them and drop them.
11515 for x in $build_xm_file; do
11516 if test -f $srcdir/config/$x
11517 then bx="$bx $x"
11518 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11519 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11521 done
11522 build_xm_file="$bx"
11525 for x in $host_xm_file; do
11526 if test -f $srcdir/config/$x
11527 then hx="$hx $x"
11528 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11529 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11531 done
11532 host_xm_file="$hx"
11535 for x in $xm_file; do
11536 if test -f $srcdir/config/$x
11537 then tx="$tx $x"
11538 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11539 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11541 done
11542 xm_file="$tx"
11544 count=a
11545 for f in $tm_file; do
11546 count=${count}x
11547 done
11548 if test $count = ax; then
11549 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11550 else
11551 echo "Using the following target machine macro files:"
11552 for f in $tm_file; do
11553 echo " $srcdir/config/$f"
11554 done
11557 if test x$use_long_long_for_widest_fast_int = xyes; then
11559 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11563 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11565 cat >>confdefs.h <<_ACEOF
11566 #define HAVE_GNU_LD $gnu_ld_bool
11567 _ACEOF
11570 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11572 cat >>confdefs.h <<_ACEOF
11573 #define HAVE_GNU_AS $gnu_as_bool
11574 _ACEOF
11577 count=a
11578 for f in $host_xm_file; do
11579 count=${count}x
11580 done
11581 if test $count = a; then
11583 elif test $count = ax; then
11584 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11585 else
11586 echo "Using the following host machine macro files:"
11587 for f in $host_xm_file; do
11588 echo " $srcdir/config/$f"
11589 done
11591 echo "Using ${out_host_hook_obj} for host machine hooks."
11593 if test "$host_xm_file" != "$build_xm_file"; then
11594 count=a
11595 for f in $build_xm_file; do
11596 count=${count}x
11597 done
11598 if test $count = a; then
11600 elif test $count = ax; then
11601 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11602 else
11603 echo "Using the following build machine macro files:"
11604 for f in $build_xm_file; do
11605 echo " $srcdir/config/$f"
11606 done
11610 if test -n "$configured_native_system_header_dir"; then
11611 native_system_header_dir=$configured_native_system_header_dir
11613 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11616 case ${host} in
11617 powerpc*-*-darwin*)
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11619 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11620 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11621 $as_echo_n "(cached) " >&6
11622 else
11623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11624 /* end confdefs.h. */
11626 #include <sys/cdefs.h>
11627 #include <sys/signal.h>
11628 #include <ucontext.h>
11629 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11631 _ACEOF
11632 if ac_fn_cxx_try_compile "$LINENO"; then :
11633 gcc_cv_mcontext_underscores=no
11634 else
11635 gcc_cv_mcontext_underscores=yes
11637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11640 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11641 if test $gcc_cv_mcontext_underscores = yes; then
11643 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11647 esac
11649 # ---------
11650 # Threading
11651 # ---------
11653 # Check if a valid thread package
11654 case ${enable_threads} in
11655 "" | no)
11656 # No threads
11657 target_thread_file='single'
11659 yes)
11660 # default
11661 target_thread_file='single'
11663 aix | dce | lynx | mipssde | posix | rtems | \
11664 single | tpf | vxworks | win32)
11665 target_thread_file=${enable_threads}
11668 echo "${enable_threads} is an unknown thread package" 1>&2
11669 exit 1
11671 esac
11673 if test x${thread_file} = x; then
11674 # No thread file set by target-specific clauses in config.gcc,
11675 # so use file chosen by default logic above
11676 thread_file=${target_thread_file}
11679 # --------
11680 # UNSORTED
11681 # --------
11683 use_cxa_atexit=no
11684 if test x$enable___cxa_atexit = xyes || \
11685 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11686 if test x$host = x$target; then
11687 case $host in
11688 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11689 # keyed to flag_use_cxa_atexit
11690 *-*-mingw32*)
11691 use_cxa_atexit=yes
11693 powerpc-ibm-aix*)
11694 use_cxa_atexit=yes
11697 ac_fn_cxx_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11698 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11699 use_cxa_atexit=yes
11700 else
11701 echo "__cxa_atexit can't be enabled on this target"
11705 esac
11706 else
11707 # We can't check for __cxa_atexit when building a cross, so assume
11708 # it is available
11709 use_cxa_atexit=yes
11711 if test x$use_cxa_atexit = xyes; then
11713 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11718 # Look for a file containing extra machine modes.
11719 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11720 extra_modes_file='$(srcdir)'/config/${extra_modes}
11723 cat >>confdefs.h <<_ACEOF
11724 #define EXTRA_MODES_FILE "config/$extra_modes"
11725 _ACEOF
11729 # Convert extra_options into a form suitable for Makefile use.
11730 extra_opt_files=
11731 all_opt_files=
11732 for f in $extra_options; do
11733 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11734 all_opt_files="$all_opt_files $srcdir/config/$f"
11735 done
11738 # auto-host.h is the file containing items generated by autoconf and is
11739 # the first file included by config.h.
11740 # If host=build, it is correct to have bconfig include auto-host.h
11741 # as well. If host!=build, we are in error and need to do more
11742 # work to find out the build config parameters.
11743 if test x$host = x$build
11744 then
11745 build_auto=auto-host.h
11746 else
11747 # We create a subdir, then run autoconf in the subdir.
11748 # To prevent recursion we set host and build for the new
11749 # invocation of configure to the build for this invocation
11750 # of configure.
11751 tempdir=build.$$
11752 rm -rf $tempdir
11753 mkdir $tempdir
11754 cd $tempdir
11755 case ${srcdir} in
11756 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11757 *) realsrcdir=../${srcdir};;
11758 esac
11759 # Clearing GMPINC is necessary to prevent host headers being
11760 # used by the build compiler. Defining GENERATOR_FILE stops
11761 # system.h from including gmp.h.
11762 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11763 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11764 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11765 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11766 ${realsrcdir}/configure \
11767 --enable-languages=${enable_languages-all} \
11768 --target=$target_alias --host=$build_alias --build=$build_alias
11770 # We just finished tests for the build machine, so rename
11771 # the file auto-build.h in the gcc directory.
11772 mv auto-host.h ../auto-build.h
11773 cd ..
11774 rm -rf $tempdir
11775 build_auto=auto-build.h
11779 tm_file="${tm_file} defaults.h"
11780 tm_p_file="${tm_p_file} tm-preds.h"
11781 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11782 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11783 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11784 # put this back in temporarily.
11785 xm_file="auto-host.h ansidecl.h ${xm_file}"
11787 # --------
11788 # UNSORTED
11789 # --------
11791 # Compile in configure arguments.
11792 if test -f configargs.h ; then
11793 # Being re-configured.
11794 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11795 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11796 else
11797 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11800 # Double all backslashes and backslash all quotes to turn
11801 # gcc_config_arguments into a C string.
11802 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11803 $gcc_config_arguments
11805 gcc_config_arguments_str=`cat conftest.out`
11806 rm -f conftest.out
11808 cat > configargs.h <<EOF
11809 /* Generated automatically. */
11810 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11811 static const char thread_model[] = "$thread_file";
11813 static const struct {
11814 const char *name, *value;
11815 } configure_default_options[] = $configure_default_options;
11818 gcc_BASEVER=`cat $srcdir/BASE-VER`
11819 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11820 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11821 if test -f $srcdir/REVISION ; then
11822 gcc_REVISION=`cat $srcdir/REVISION`
11823 else
11824 gcc_REVISION=""
11826 cat > plugin-version.h <<EOF
11827 #include "configargs.h"
11829 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11830 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11831 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11832 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11834 static char basever[] = "$gcc_BASEVER";
11835 static char datestamp[] = "$gcc_DATESTAMP";
11836 static char devphase[] = "$gcc_DEVPHASE";
11837 static char revision[] = "$gcc_REVISION";
11839 /* FIXME plugins: We should make the version information more precise.
11840 One way to do is to add a checksum. */
11842 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11843 devphase, revision,
11844 configuration_arguments};
11847 # Internationalization
11848 # If we haven't got the data from the intl directory,
11849 # assume NLS is disabled.
11850 USE_NLS=no
11851 LIBINTL=
11852 LIBINTL_DEP=
11853 INCINTL=
11854 XGETTEXT=
11855 GMSGFMT=
11856 POSUB=
11858 if test -f ../intl/config.intl; then
11859 . ../intl/config.intl
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11862 $as_echo_n "checking whether NLS is requested... " >&6; }
11863 if test x"$USE_NLS" != xyes; then
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11865 $as_echo "no" >&6; }
11866 else
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11868 $as_echo "yes" >&6; }
11870 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11874 $as_echo_n "checking for catalogs to be installed... " >&6; }
11875 # Look for .po and .gmo files in the source directory.
11876 CATALOGS=
11877 XLINGUAS=
11878 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11879 # If there aren't any .gmo files the shell will give us the
11880 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11881 # weeded out.
11882 case "$cat" in *\**)
11883 continue;;
11884 esac
11885 # The quadruple backslash is collapsed to a double backslash
11886 # by the backticks, then collapsed again by the double quotes,
11887 # leaving us with one backslash in the sed expression (right
11888 # before the dot that mustn't act as a wildcard).
11889 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11890 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11891 # The user is allowed to set LINGUAS to a list of languages to
11892 # install catalogs for. If it's empty that means "all of them."
11893 if test "x$LINGUAS" = x; then
11894 CATALOGS="$CATALOGS $cat"
11895 XLINGUAS="$XLINGUAS $lang"
11896 else
11897 case "$LINGUAS" in *$lang*)
11898 CATALOGS="$CATALOGS $cat"
11899 XLINGUAS="$XLINGUAS $lang"
11901 esac
11903 done
11904 LINGUAS="$XLINGUAS"
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11906 $as_echo "$LINGUAS" >&6; }
11909 DATADIRNAME=share
11911 INSTOBJEXT=.mo
11913 GENCAT=gencat
11915 CATOBJEXT=.gmo
11919 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11920 # -liconv on the link line twice.
11921 case "$LIBINTL" in *$LIBICONV*)
11922 LIBICONV= ;;
11923 esac
11925 # Check whether --enable-secureplt was given.
11926 if test "${enable_secureplt+set}" = set; then :
11927 enableval=$enable_secureplt;
11931 # Check whether --enable-leading-mingw64-underscores was given.
11932 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11933 enableval=$enable_leading_mingw64_underscores;
11936 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11938 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11942 # Check whether --enable-cld was given.
11943 if test "${enable_cld+set}" = set; then :
11944 enableval=$enable_cld;
11945 else
11946 enable_cld=no
11950 # Check whether --enable-frame-pointer was given.
11951 if test "${enable_frame_pointer+set}" = set; then :
11952 enableval=$enable_frame_pointer;
11953 else
11955 case $target_os in
11956 linux* | darwin[8912]*)
11957 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11958 # DWARF2.
11959 enable_frame_pointer=no
11962 enable_frame_pointer=yes
11964 esac
11969 # Windows32 Registry support for specifying GCC installation paths.
11970 # Check whether --enable-win32-registry was given.
11971 if test "${enable_win32_registry+set}" = set; then :
11972 enableval=$enable_win32_registry;
11976 case $host_os in
11977 win32 | pe | cygwin* | mingw32*)
11978 if test "x$enable_win32_registry" != xno; then
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11980 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11981 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11982 $as_echo_n "(cached) " >&6
11983 else
11984 ac_func_search_save_LIBS=$LIBS
11985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11986 /* end confdefs.h. */
11988 /* Override any GCC internal prototype to avoid an error.
11989 Use char because int might match the return type of a GCC
11990 builtin and then its argument prototype would still apply. */
11991 #ifdef __cplusplus
11992 extern "C"
11993 #endif
11994 char RegOpenKeyExA ();
11996 main ()
11998 return RegOpenKeyExA ();
12000 return 0;
12002 _ACEOF
12003 for ac_lib in '' advapi32; do
12004 if test -z "$ac_lib"; then
12005 ac_res="none required"
12006 else
12007 ac_res=-l$ac_lib
12008 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12010 if ac_fn_cxx_try_link "$LINENO"; then :
12011 ac_cv_search_RegOpenKeyExA=$ac_res
12013 rm -f core conftest.err conftest.$ac_objext \
12014 conftest$ac_exeext
12015 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12016 break
12018 done
12019 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12021 else
12022 ac_cv_search_RegOpenKeyExA=no
12024 rm conftest.$ac_ext
12025 LIBS=$ac_func_search_save_LIBS
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12028 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12029 ac_res=$ac_cv_search_RegOpenKeyExA
12030 if test "$ac_res" != no; then :
12031 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12033 else
12034 enable_win32_registry=no
12039 if test "x$enable_win32_registry" != xno; then
12041 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12044 if test "x$enable_win32_registry" != xyes \
12045 && test "x$enable_win32_registry" != x; then
12047 cat >>confdefs.h <<_ACEOF
12048 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12049 _ACEOF
12054 esac
12056 # Get an absolute path to the GCC top-level source directory
12057 holddir=`${PWDCMD-pwd}`
12058 cd $srcdir
12059 topdir=`${PWDCMD-pwd}`
12060 cd $holddir
12062 # Conditionalize the makefile for this host machine.
12063 xmake_file=
12064 for f in ${host_xmake_file}
12066 if test -f ${srcdir}/config/$f
12067 then
12068 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12070 done
12072 # Conditionalize the makefile for this target machine.
12073 tmake_file_=
12074 for f in ${tmake_file}
12076 if test -f ${srcdir}/config/$f
12077 then
12078 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12080 done
12081 tmake_file="${tmake_file_}"
12083 out_object_file=`basename $out_file .c`.o
12084 common_out_object_file=`basename $common_out_file .c`.o
12086 tm_file_list="options.h"
12087 tm_include_list="options.h insn-constants.h"
12088 for f in $tm_file; do
12089 case $f in
12090 ./* )
12091 f=`echo $f | sed 's/^..//'`
12092 tm_file_list="${tm_file_list} $f"
12093 tm_include_list="${tm_include_list} $f"
12095 defaults.h )
12096 tm_file_list="${tm_file_list} \$(srcdir)/$f"
12097 tm_include_list="${tm_include_list} $f"
12100 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12101 tm_include_list="${tm_include_list} config/$f"
12103 esac
12104 done
12106 tm_p_file_list=
12107 tm_p_include_list=
12108 for f in $tm_p_file; do
12109 case $f in
12110 tm-preds.h )
12111 tm_p_file_list="${tm_p_file_list} $f"
12112 tm_p_include_list="${tm_p_include_list} $f"
12115 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12116 tm_p_include_list="${tm_p_include_list} config/$f"
12117 esac
12118 done
12120 xm_file_list=
12121 xm_include_list=
12122 for f in $xm_file; do
12123 case $f in
12124 ansidecl.h )
12125 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12126 xm_include_list="${xm_include_list} $f"
12128 auto-host.h )
12129 xm_file_list="${xm_file_list} $f"
12130 xm_include_list="${xm_include_list} $f"
12133 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12134 xm_include_list="${xm_include_list} config/$f"
12136 esac
12137 done
12139 host_xm_file_list=
12140 host_xm_include_list=
12141 for f in $host_xm_file; do
12142 case $f in
12143 ansidecl.h )
12144 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12145 host_xm_include_list="${host_xm_include_list} $f"
12147 auto-host.h )
12148 host_xm_file_list="${host_xm_file_list} $f"
12149 host_xm_include_list="${host_xm_include_list} $f"
12152 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12153 host_xm_include_list="${host_xm_include_list} config/$f"
12155 esac
12156 done
12158 build_xm_file_list=
12159 for f in $build_xm_file; do
12160 case $f in
12161 ansidecl.h )
12162 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12163 build_xm_include_list="${build_xm_include_list} $f"
12165 auto-build.h | auto-host.h )
12166 build_xm_file_list="${build_xm_file_list} $f"
12167 build_xm_include_list="${build_xm_include_list} $f"
12170 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12171 build_xm_include_list="${build_xm_include_list} config/$f"
12173 esac
12174 done
12176 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12177 # cross-compiler which does not use the native headers and libraries.
12178 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12179 CROSS=
12180 ALL=all.internal
12181 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12183 if test "x$with_build_sysroot" != x; then
12184 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12185 else
12186 # This value is used, even on a native system, because
12187 # CROSS_SYSTEM_HEADER_DIR is just
12188 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12189 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12192 if test x$host != x$target
12193 then
12194 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
12195 ALL=all.cross
12196 SYSTEM_HEADER_DIR=$build_system_header_dir
12197 case "$host","$target" in
12198 # Darwin crosses can use the host system's libraries and headers,
12199 # because of the fat library support. Of course, it must be the
12200 # same version of Darwin on both sides. Allow the user to
12201 # just say --target=foo-darwin without a version number to mean
12202 # "the version on this system".
12203 *-*-darwin*,*-*-darwin*)
12204 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12205 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12206 if test $hostos = $targetos -o $targetos = darwin ; then
12207 CROSS=
12208 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12209 with_headers=yes
12213 i?86-*-*,x86_64-*-* \
12214 | powerpc*-*-*,powerpc64*-*-*)
12215 CROSS="$CROSS -DNATIVE_CROSS" ;;
12216 esac
12218 case $target in
12219 *-*-mingw*)
12220 if test "x$with_headers" = x; then
12221 with_headers=yes
12226 esac
12227 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12228 SYSTEM_HEADER_DIR=$build_system_header_dir
12231 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
12232 if test "x$with_headers" != x; then
12233 target_header_dir=$with_headers
12234 elif test "x$with_sysroot" = x; then
12235 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
12236 elif test "x$with_build_sysroot" != "x"; then
12237 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
12238 elif test "x$with_sysroot" = xyes; then
12239 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12240 else
12241 target_header_dir="${with_sysroot}${native_system_header_dir}"
12243 else
12244 target_header_dir=${native_system_header_dir}
12247 # If this is a cross-compiler that does not
12248 # have its own set of headers then define
12249 # inhibit_libc
12251 # If this is using newlib, without having the headers available now,
12252 # then define inhibit_libc in LIBGCC2_CFLAGS.
12253 # This prevents libgcc2 from containing any code which requires libc
12254 # support.
12255 : ${inhibit_libc=false}
12256 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12257 test x$with_newlib = xyes ; } &&
12258 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
12259 inhibit_libc=true
12263 # When building gcc with a cross-compiler, we need to adjust things so
12264 # that the generator programs are still built with the native compiler.
12265 # Also, we cannot run fixincludes.
12267 # These are the normal (build=host) settings:
12268 CC_FOR_BUILD='$(CC)'
12269 CXX_FOR_BUILD='$(CXX)'
12270 BUILD_CFLAGS='$(ALL_CFLAGS)'
12271 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12272 BUILD_LDFLAGS='$(LDFLAGS)'
12273 STMP_FIXINC=stmp-fixinc
12275 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS)'
12276 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG)'
12278 # And these apply if build != host, or we are generating coverage data
12279 if test x$build != x$host || test "x$coverage_flags" != x
12280 then
12281 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12282 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12283 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12285 NO_PIE_CFLAGS_FOR_BUILD=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12286 NO_PIE_FLAG_FOR_BUILD=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12287 BUILD_NO_PIE_CFLAGS='$(NO_PIE_CFLAGS_FOR_BUILD)'
12288 BUILD_NO_PIE_FLAG='$(NO_PIE_FLAG_FOR_BUILD)'
12293 # Expand extra_headers to include complete path.
12294 # This substitutes for lots of t-* files.
12295 extra_headers_list=
12296 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12297 for file in ${extra_headers} ; do
12298 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12299 done
12301 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12302 if test x"$use_gcc_tgmath" = xyes
12303 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12306 # Define collect2 in Makefile.
12307 case $host_can_use_collect2 in
12308 no) collect2= ;;
12309 *) collect2='collect2$(exeext)' ;;
12310 esac
12313 # Add a definition of USE_COLLECT2 if system wants one.
12314 case $use_collect2 in
12315 no) use_collect2= ;;
12316 "") ;;
12318 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12319 xm_defines="${xm_defines} USE_COLLECT2"
12320 case $host_can_use_collect2 in
12322 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12324 esac
12326 esac
12329 cat >>confdefs.h <<_ACEOF
12330 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12331 _ACEOF
12334 # ---------------------------
12335 # Assembler & linker features
12336 # ---------------------------
12338 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12339 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12340 # However when ld-new is first executed from the build tree, libtool will
12341 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12342 # to the build tree. While doing this we need to use the previous-stage
12343 # linker, or we have an infinite loop. The presence of a shell script as
12344 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12345 # the gcc/collect-ld script. So we need to know how libtool works, or
12346 # exec-tool will fail.
12349 case `pwd` in
12350 *\ * | *\ *)
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12352 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12353 esac
12357 macro_version='2.2.7a'
12358 macro_revision='1.3134'
12372 ltmain="$ac_aux_dir/ltmain.sh"
12374 # Backslashify metacharacters that are still active within
12375 # double-quoted strings.
12376 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12378 # Same as above, but do not quote variable references.
12379 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12381 # Sed substitution to delay expansion of an escaped shell variable in a
12382 # double_quote_subst'ed string.
12383 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12385 # Sed substitution to delay expansion of an escaped single quote.
12386 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12388 # Sed substitution to avoid accidental globbing in evaled expressions
12389 no_glob_subst='s/\*/\\\*/g'
12391 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12392 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12393 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12396 $as_echo_n "checking how to print strings... " >&6; }
12397 # Test print first, because it will be a builtin if present.
12398 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12399 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12400 ECHO='print -r --'
12401 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12402 ECHO='printf %s\n'
12403 else
12404 # Use this function as a fallback that always works.
12405 func_fallback_echo ()
12407 eval 'cat <<_LTECHO_EOF
12409 _LTECHO_EOF'
12411 ECHO='func_fallback_echo'
12414 # func_echo_all arg...
12415 # Invoke $ECHO with all args, space-separated.
12416 func_echo_all ()
12418 $ECHO ""
12421 case "$ECHO" in
12422 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12423 $as_echo "printf" >&6; } ;;
12424 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12425 $as_echo "print -r" >&6; } ;;
12426 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12427 $as_echo "cat" >&6; } ;;
12428 esac
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12444 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12445 if test "${ac_cv_path_SED+set}" = set; then :
12446 $as_echo_n "(cached) " >&6
12447 else
12448 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12449 for ac_i in 1 2 3 4 5 6 7; do
12450 ac_script="$ac_script$as_nl$ac_script"
12451 done
12452 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12453 { ac_script=; unset ac_script;}
12454 if test -z "$SED"; then
12455 ac_path_SED_found=false
12456 # Loop through the user's path and test for each of PROGNAME-LIST
12457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12458 for as_dir in $PATH
12460 IFS=$as_save_IFS
12461 test -z "$as_dir" && as_dir=.
12462 for ac_prog in sed gsed; do
12463 for ac_exec_ext in '' $ac_executable_extensions; do
12464 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12465 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12466 # Check for GNU ac_path_SED and select it if it is found.
12467 # Check for GNU $ac_path_SED
12468 case `"$ac_path_SED" --version 2>&1` in
12469 *GNU*)
12470 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12472 ac_count=0
12473 $as_echo_n 0123456789 >"conftest.in"
12474 while :
12476 cat "conftest.in" "conftest.in" >"conftest.tmp"
12477 mv "conftest.tmp" "conftest.in"
12478 cp "conftest.in" "conftest.nl"
12479 $as_echo '' >> "conftest.nl"
12480 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12481 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12482 as_fn_arith $ac_count + 1 && ac_count=$as_val
12483 if test $ac_count -gt ${ac_path_SED_max-0}; then
12484 # Best one so far, save it but keep looking for a better one
12485 ac_cv_path_SED="$ac_path_SED"
12486 ac_path_SED_max=$ac_count
12488 # 10*(2^10) chars as input seems more than enough
12489 test $ac_count -gt 10 && break
12490 done
12491 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12492 esac
12494 $ac_path_SED_found && break 3
12495 done
12496 done
12497 done
12498 IFS=$as_save_IFS
12499 if test -z "$ac_cv_path_SED"; then
12500 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12502 else
12503 ac_cv_path_SED=$SED
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12508 $as_echo "$ac_cv_path_SED" >&6; }
12509 SED="$ac_cv_path_SED"
12510 rm -f conftest.sed
12512 test -z "$SED" && SED=sed
12513 Xsed="$SED -e 1s/^X//"
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12526 $as_echo_n "checking for fgrep... " >&6; }
12527 if test "${ac_cv_path_FGREP+set}" = set; then :
12528 $as_echo_n "(cached) " >&6
12529 else
12530 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12531 then ac_cv_path_FGREP="$GREP -F"
12532 else
12533 if test -z "$FGREP"; then
12534 ac_path_FGREP_found=false
12535 # Loop through the user's path and test for each of PROGNAME-LIST
12536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12537 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12539 IFS=$as_save_IFS
12540 test -z "$as_dir" && as_dir=.
12541 for ac_prog in fgrep; do
12542 for ac_exec_ext in '' $ac_executable_extensions; do
12543 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12544 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12545 # Check for GNU ac_path_FGREP and select it if it is found.
12546 # Check for GNU $ac_path_FGREP
12547 case `"$ac_path_FGREP" --version 2>&1` in
12548 *GNU*)
12549 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12551 ac_count=0
12552 $as_echo_n 0123456789 >"conftest.in"
12553 while :
12555 cat "conftest.in" "conftest.in" >"conftest.tmp"
12556 mv "conftest.tmp" "conftest.in"
12557 cp "conftest.in" "conftest.nl"
12558 $as_echo 'FGREP' >> "conftest.nl"
12559 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12560 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12561 as_fn_arith $ac_count + 1 && ac_count=$as_val
12562 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12563 # Best one so far, save it but keep looking for a better one
12564 ac_cv_path_FGREP="$ac_path_FGREP"
12565 ac_path_FGREP_max=$ac_count
12567 # 10*(2^10) chars as input seems more than enough
12568 test $ac_count -gt 10 && break
12569 done
12570 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12571 esac
12573 $ac_path_FGREP_found && break 3
12574 done
12575 done
12576 done
12577 IFS=$as_save_IFS
12578 if test -z "$ac_cv_path_FGREP"; then
12579 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12581 else
12582 ac_cv_path_FGREP=$FGREP
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12588 $as_echo "$ac_cv_path_FGREP" >&6; }
12589 FGREP="$ac_cv_path_FGREP"
12592 test -z "$GREP" && GREP=grep
12612 # Check whether --with-gnu-ld was given.
12613 if test "${with_gnu_ld+set}" = set; then :
12614 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12615 else
12616 with_gnu_ld=no
12619 ac_prog=ld
12620 if test "$GCC" = yes; then
12621 # Check if gcc -print-prog-name=ld gives a path.
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12623 $as_echo_n "checking for ld used by $CC... " >&6; }
12624 case $host in
12625 *-*-mingw*)
12626 # gcc leaves a trailing carriage return which upsets mingw
12627 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12629 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12630 esac
12631 case $ac_prog in
12632 # Accept absolute paths.
12633 [\\/]* | ?:[\\/]*)
12634 re_direlt='/[^/][^/]*/\.\./'
12635 # Canonicalize the pathname of ld
12636 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12637 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12638 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12639 done
12640 test -z "$LD" && LD="$ac_prog"
12643 # If it fails, then pretend we aren't using GCC.
12644 ac_prog=ld
12647 # If it is relative, then search for the first ld in PATH.
12648 with_gnu_ld=unknown
12650 esac
12651 elif test "$with_gnu_ld" = yes; then
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12653 $as_echo_n "checking for GNU ld... " >&6; }
12654 else
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12656 $as_echo_n "checking for non-GNU ld... " >&6; }
12658 if test "${lt_cv_path_LD+set}" = set; then :
12659 $as_echo_n "(cached) " >&6
12660 else
12661 if test -z "$LD"; then
12662 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12663 for ac_dir in $PATH; do
12664 IFS="$lt_save_ifs"
12665 test -z "$ac_dir" && ac_dir=.
12666 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12667 lt_cv_path_LD="$ac_dir/$ac_prog"
12668 # Check to see if the program is GNU ld. I'd rather use --version,
12669 # but apparently some variants of GNU ld only accept -v.
12670 # Break only if it was the GNU/non-GNU ld that we prefer.
12671 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12672 *GNU* | *'with BFD'*)
12673 test "$with_gnu_ld" != no && break
12676 test "$with_gnu_ld" != yes && break
12678 esac
12680 done
12681 IFS="$lt_save_ifs"
12682 else
12683 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12687 LD="$lt_cv_path_LD"
12688 if test -n "$LD"; then
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12690 $as_echo "$LD" >&6; }
12691 else
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12693 $as_echo "no" >&6; }
12695 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12697 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12698 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12699 $as_echo_n "(cached) " >&6
12700 else
12701 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12702 case `$LD -v 2>&1 </dev/null` in
12703 *GNU* | *'with BFD'*)
12704 lt_cv_prog_gnu_ld=yes
12707 lt_cv_prog_gnu_ld=no
12709 esac
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12712 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12713 with_gnu_ld=$lt_cv_prog_gnu_ld
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12724 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12725 if test "${lt_cv_path_NM+set}" = set; then :
12726 $as_echo_n "(cached) " >&6
12727 else
12728 if test -n "$NM"; then
12729 # Let the user override the test.
12730 lt_cv_path_NM="$NM"
12731 else
12732 lt_nm_to_check="${ac_tool_prefix}nm"
12733 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12734 lt_nm_to_check="$lt_nm_to_check nm"
12736 for lt_tmp_nm in $lt_nm_to_check; do
12737 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12738 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12739 IFS="$lt_save_ifs"
12740 test -z "$ac_dir" && ac_dir=.
12741 tmp_nm="$ac_dir/$lt_tmp_nm"
12742 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12743 # Check to see if the nm accepts a BSD-compat flag.
12744 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12745 # nm: unknown option "B" ignored
12746 # Tru64's nm complains that /dev/null is an invalid object file
12747 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12748 */dev/null* | *'Invalid file or object type'*)
12749 lt_cv_path_NM="$tmp_nm -B"
12750 break
12753 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12754 */dev/null*)
12755 lt_cv_path_NM="$tmp_nm -p"
12756 break
12759 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12760 continue # so that we can try to find one that supports BSD flags
12762 esac
12764 esac
12766 done
12767 IFS="$lt_save_ifs"
12768 done
12769 : ${lt_cv_path_NM=no}
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12773 $as_echo "$lt_cv_path_NM" >&6; }
12774 if test "$lt_cv_path_NM" != "no"; then
12775 NM="$lt_cv_path_NM"
12776 else
12777 # Didn't find any BSD compatible name lister, look for dumpbin.
12778 if test -n "$DUMPBIN"; then :
12779 # Let the user override the test.
12780 else
12781 if test -n "$ac_tool_prefix"; then
12782 for ac_prog in dumpbin "link -dump"
12784 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12785 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12787 $as_echo_n "checking for $ac_word... " >&6; }
12788 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12789 $as_echo_n "(cached) " >&6
12790 else
12791 if test -n "$DUMPBIN"; then
12792 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12793 else
12794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12795 for as_dir in $PATH
12797 IFS=$as_save_IFS
12798 test -z "$as_dir" && as_dir=.
12799 for ac_exec_ext in '' $ac_executable_extensions; do
12800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12801 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12803 break 2
12805 done
12806 done
12807 IFS=$as_save_IFS
12811 DUMPBIN=$ac_cv_prog_DUMPBIN
12812 if test -n "$DUMPBIN"; then
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12814 $as_echo "$DUMPBIN" >&6; }
12815 else
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12817 $as_echo "no" >&6; }
12821 test -n "$DUMPBIN" && break
12822 done
12824 if test -z "$DUMPBIN"; then
12825 ac_ct_DUMPBIN=$DUMPBIN
12826 for ac_prog in dumpbin "link -dump"
12828 # Extract the first word of "$ac_prog", so it can be a program name with args.
12829 set dummy $ac_prog; ac_word=$2
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12831 $as_echo_n "checking for $ac_word... " >&6; }
12832 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12833 $as_echo_n "(cached) " >&6
12834 else
12835 if test -n "$ac_ct_DUMPBIN"; then
12836 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12837 else
12838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12839 for as_dir in $PATH
12841 IFS=$as_save_IFS
12842 test -z "$as_dir" && as_dir=.
12843 for ac_exec_ext in '' $ac_executable_extensions; do
12844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12845 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12847 break 2
12849 done
12850 done
12851 IFS=$as_save_IFS
12855 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12856 if test -n "$ac_ct_DUMPBIN"; then
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12858 $as_echo "$ac_ct_DUMPBIN" >&6; }
12859 else
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12861 $as_echo "no" >&6; }
12865 test -n "$ac_ct_DUMPBIN" && break
12866 done
12868 if test "x$ac_ct_DUMPBIN" = x; then
12869 DUMPBIN=":"
12870 else
12871 case $cross_compiling:$ac_tool_warned in
12872 yes:)
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12875 ac_tool_warned=yes ;;
12876 esac
12877 DUMPBIN=$ac_ct_DUMPBIN
12881 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12882 *COFF*)
12883 DUMPBIN="$DUMPBIN -symbols"
12886 DUMPBIN=:
12888 esac
12891 if test "$DUMPBIN" != ":"; then
12892 NM="$DUMPBIN"
12895 test -z "$NM" && NM=nm
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12903 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12904 if test "${lt_cv_nm_interface+set}" = set; then :
12905 $as_echo_n "(cached) " >&6
12906 else
12907 lt_cv_nm_interface="BSD nm"
12908 echo "int some_variable = 0;" > conftest.$ac_ext
12909 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12910 (eval "$ac_compile" 2>conftest.err)
12911 cat conftest.err >&5
12912 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12913 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12914 cat conftest.err >&5
12915 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12916 cat conftest.out >&5
12917 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12918 lt_cv_nm_interface="MS dumpbin"
12920 rm -f conftest*
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12923 $as_echo "$lt_cv_nm_interface" >&6; }
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12926 $as_echo_n "checking whether ln -s works... " >&6; }
12927 LN_S=$as_ln_s
12928 if test "$LN_S" = "ln -s"; then
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12930 $as_echo "yes" >&6; }
12931 else
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12933 $as_echo "no, using $LN_S" >&6; }
12936 # find the maximum length of command line arguments
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12938 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12939 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12940 $as_echo_n "(cached) " >&6
12941 else
12943 teststring="ABCD"
12945 case $build_os in
12946 msdosdjgpp*)
12947 # On DJGPP, this test can blow up pretty badly due to problems in libc
12948 # (any single argument exceeding 2000 bytes causes a buffer overrun
12949 # during glob expansion). Even if it were fixed, the result of this
12950 # check would be larger than it should be.
12951 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12954 gnu*)
12955 # Under GNU Hurd, this test is not required because there is
12956 # no limit to the length of command line arguments.
12957 # Libtool will interpret -1 as no limit whatsoever
12958 lt_cv_sys_max_cmd_len=-1;
12961 cygwin* | mingw* | cegcc*)
12962 # On Win9x/ME, this test blows up -- it succeeds, but takes
12963 # about 5 minutes as the teststring grows exponentially.
12964 # Worse, since 9x/ME are not pre-emptively multitasking,
12965 # you end up with a "frozen" computer, even though with patience
12966 # the test eventually succeeds (with a max line length of 256k).
12967 # Instead, let's just punt: use the minimum linelength reported by
12968 # all of the supported platforms: 8192 (on NT/2K/XP).
12969 lt_cv_sys_max_cmd_len=8192;
12972 mint*)
12973 # On MiNT this can take a long time and run out of memory.
12974 lt_cv_sys_max_cmd_len=8192;
12977 amigaos*)
12978 # On AmigaOS with pdksh, this test takes hours, literally.
12979 # So we just punt and use a minimum line length of 8192.
12980 lt_cv_sys_max_cmd_len=8192;
12983 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12984 # This has been around since 386BSD, at least. Likely further.
12985 if test -x /sbin/sysctl; then
12986 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12987 elif test -x /usr/sbin/sysctl; then
12988 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12989 else
12990 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12992 # And add a safety zone
12993 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12994 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12997 interix*)
12998 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12999 lt_cv_sys_max_cmd_len=196608
13002 osf*)
13003 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13004 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13005 # nice to cause kernel panics so lets avoid the loop below.
13006 # First set a reasonable default.
13007 lt_cv_sys_max_cmd_len=16384
13009 if test -x /sbin/sysconfig; then
13010 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13011 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13012 esac
13015 sco3.2v5*)
13016 lt_cv_sys_max_cmd_len=102400
13018 sysv5* | sco5v6* | sysv4.2uw2*)
13019 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13020 if test -n "$kargmax"; then
13021 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13022 else
13023 lt_cv_sys_max_cmd_len=32768
13027 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13028 if test -n "$lt_cv_sys_max_cmd_len"; then
13029 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13030 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13031 else
13032 # Make teststring a little bigger before we do anything with it.
13033 # a 1K string should be a reasonable start.
13034 for i in 1 2 3 4 5 6 7 8 ; do
13035 teststring=$teststring$teststring
13036 done
13037 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13038 # If test is not a shell built-in, we'll probably end up computing a
13039 # maximum length that is only half of the actual maximum length, but
13040 # we can't tell.
13041 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13042 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13043 test $i != 17 # 1/2 MB should be enough
13045 i=`expr $i + 1`
13046 teststring=$teststring$teststring
13047 done
13048 # Only check the string length outside the loop.
13049 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13050 teststring=
13051 # Add a significant safety factor because C++ compilers can tack on
13052 # massive amounts of additional arguments before passing them to the
13053 # linker. It appears as though 1/2 is a usable value.
13054 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13057 esac
13061 if test -n $lt_cv_sys_max_cmd_len ; then
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13063 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13064 else
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13066 $as_echo "none" >&6; }
13068 max_cmd_len=$lt_cv_sys_max_cmd_len
13075 : ${CP="cp -f"}
13076 : ${MV="mv -f"}
13077 : ${RM="rm -f"}
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13080 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13081 # Try some XSI features
13082 xsi_shell=no
13083 ( _lt_dummy="a/b/c"
13084 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13085 = c,a/b,, \
13086 && eval 'test $(( 1 + 1 )) -eq 2 \
13087 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13088 && xsi_shell=yes
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
13090 $as_echo "$xsi_shell" >&6; }
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
13094 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
13095 lt_shell_append=no
13096 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
13097 >/dev/null 2>&1 \
13098 && lt_shell_append=yes
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
13100 $as_echo "$lt_shell_append" >&6; }
13103 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13104 lt_unset=unset
13105 else
13106 lt_unset=false
13113 # test EBCDIC or ASCII
13114 case `echo X|tr X '\101'` in
13115 A) # ASCII based system
13116 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13117 lt_SP2NL='tr \040 \012'
13118 lt_NL2SP='tr \015\012 \040\040'
13120 *) # EBCDIC based system
13121 lt_SP2NL='tr \100 \n'
13122 lt_NL2SP='tr \r\n \100\100'
13124 esac
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13135 $as_echo_n "checking for $LD option to reload object files... " >&6; }
13136 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13137 $as_echo_n "(cached) " >&6
13138 else
13139 lt_cv_ld_reload_flag='-r'
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13142 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13143 reload_flag=$lt_cv_ld_reload_flag
13144 case $reload_flag in
13145 "" | " "*) ;;
13146 *) reload_flag=" $reload_flag" ;;
13147 esac
13148 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13149 case $host_os in
13150 darwin*)
13151 if test "$GCC" = yes; then
13152 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13153 else
13154 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13157 esac
13167 if test -n "$ac_tool_prefix"; then
13168 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13169 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13171 $as_echo_n "checking for $ac_word... " >&6; }
13172 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13173 $as_echo_n "(cached) " >&6
13174 else
13175 if test -n "$OBJDUMP"; then
13176 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13177 else
13178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13179 for as_dir in $PATH
13181 IFS=$as_save_IFS
13182 test -z "$as_dir" && as_dir=.
13183 for ac_exec_ext in '' $ac_executable_extensions; do
13184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13185 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13187 break 2
13189 done
13190 done
13191 IFS=$as_save_IFS
13195 OBJDUMP=$ac_cv_prog_OBJDUMP
13196 if test -n "$OBJDUMP"; then
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13198 $as_echo "$OBJDUMP" >&6; }
13199 else
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13201 $as_echo "no" >&6; }
13206 if test -z "$ac_cv_prog_OBJDUMP"; then
13207 ac_ct_OBJDUMP=$OBJDUMP
13208 # Extract the first word of "objdump", so it can be a program name with args.
13209 set dummy objdump; ac_word=$2
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13211 $as_echo_n "checking for $ac_word... " >&6; }
13212 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13213 $as_echo_n "(cached) " >&6
13214 else
13215 if test -n "$ac_ct_OBJDUMP"; then
13216 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13217 else
13218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13219 for as_dir in $PATH
13221 IFS=$as_save_IFS
13222 test -z "$as_dir" && as_dir=.
13223 for ac_exec_ext in '' $ac_executable_extensions; do
13224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13225 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13227 break 2
13229 done
13230 done
13231 IFS=$as_save_IFS
13235 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13236 if test -n "$ac_ct_OBJDUMP"; then
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13238 $as_echo "$ac_ct_OBJDUMP" >&6; }
13239 else
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13241 $as_echo "no" >&6; }
13244 if test "x$ac_ct_OBJDUMP" = x; then
13245 OBJDUMP="false"
13246 else
13247 case $cross_compiling:$ac_tool_warned in
13248 yes:)
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13251 ac_tool_warned=yes ;;
13252 esac
13253 OBJDUMP=$ac_ct_OBJDUMP
13255 else
13256 OBJDUMP="$ac_cv_prog_OBJDUMP"
13259 test -z "$OBJDUMP" && OBJDUMP=objdump
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13270 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13271 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13272 $as_echo_n "(cached) " >&6
13273 else
13274 lt_cv_file_magic_cmd='$MAGIC_CMD'
13275 lt_cv_file_magic_test_file=
13276 lt_cv_deplibs_check_method='unknown'
13277 # Need to set the preceding variable on all platforms that support
13278 # interlibrary dependencies.
13279 # 'none' -- dependencies not supported.
13280 # `unknown' -- same as none, but documents that we really don't know.
13281 # 'pass_all' -- all dependencies passed with no checks.
13282 # 'test_compile' -- check by making test program.
13283 # 'file_magic [[regex]]' -- check by looking for files in library path
13284 # which responds to the $file_magic_cmd with a given extended regex.
13285 # If you have `file' or equivalent on your system and you're not sure
13286 # whether `pass_all' will *always* work, you probably want this one.
13288 case $host_os in
13289 aix[4-9]*)
13290 lt_cv_deplibs_check_method=pass_all
13293 beos*)
13294 lt_cv_deplibs_check_method=pass_all
13297 bsdi[45]*)
13298 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13299 lt_cv_file_magic_cmd='/usr/bin/file -L'
13300 lt_cv_file_magic_test_file=/shlib/libc.so
13303 cygwin*)
13304 # func_win32_libid is a shell function defined in ltmain.sh
13305 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13306 lt_cv_file_magic_cmd='func_win32_libid'
13309 mingw* | pw32*)
13310 # Base MSYS/MinGW do not provide the 'file' command needed by
13311 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13312 # unless we find 'file', for example because we are cross-compiling.
13313 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13314 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13315 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13316 lt_cv_file_magic_cmd='func_win32_libid'
13317 else
13318 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13319 lt_cv_file_magic_cmd='$OBJDUMP -f'
13323 cegcc*)
13324 # use the weaker test based on 'objdump'. See mingw*.
13325 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13326 lt_cv_file_magic_cmd='$OBJDUMP -f'
13329 darwin* | rhapsody*)
13330 lt_cv_deplibs_check_method=pass_all
13333 freebsd* | dragonfly*)
13334 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13335 case $host_cpu in
13336 i*86 )
13337 # Not sure whether the presence of OpenBSD here was a mistake.
13338 # Let's accept both of them until this is cleared up.
13339 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13340 lt_cv_file_magic_cmd=/usr/bin/file
13341 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13343 esac
13344 else
13345 lt_cv_deplibs_check_method=pass_all
13349 gnu*)
13350 lt_cv_deplibs_check_method=pass_all
13353 haiku*)
13354 lt_cv_deplibs_check_method=pass_all
13357 hpux10.20* | hpux11*)
13358 lt_cv_file_magic_cmd=/usr/bin/file
13359 case $host_cpu in
13360 ia64*)
13361 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13362 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13364 hppa*64*)
13365 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]'
13366 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13369 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13370 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13372 esac
13375 interix[3-9]*)
13376 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13377 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13380 irix5* | irix6* | nonstopux*)
13381 case $LD in
13382 *-32|*"-32 ") libmagic=32-bit;;
13383 *-n32|*"-n32 ") libmagic=N32;;
13384 *-64|*"-64 ") libmagic=64-bit;;
13385 *) libmagic=never-match;;
13386 esac
13387 lt_cv_deplibs_check_method=pass_all
13390 # This must be Linux ELF.
13391 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13392 lt_cv_deplibs_check_method=pass_all
13395 netbsd*)
13396 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13397 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13398 else
13399 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13403 newos6*)
13404 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13405 lt_cv_file_magic_cmd=/usr/bin/file
13406 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13409 *nto* | *qnx*)
13410 lt_cv_deplibs_check_method=pass_all
13413 openbsd*)
13414 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13415 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13416 else
13417 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13421 osf3* | osf4* | osf5*)
13422 lt_cv_deplibs_check_method=pass_all
13425 rdos*)
13426 lt_cv_deplibs_check_method=pass_all
13429 solaris*)
13430 lt_cv_deplibs_check_method=pass_all
13433 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13434 lt_cv_deplibs_check_method=pass_all
13437 sysv4 | sysv4.3*)
13438 case $host_vendor in
13439 motorola)
13440 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]'
13441 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13443 ncr)
13444 lt_cv_deplibs_check_method=pass_all
13446 sequent)
13447 lt_cv_file_magic_cmd='/bin/file'
13448 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13450 sni)
13451 lt_cv_file_magic_cmd='/bin/file'
13452 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13453 lt_cv_file_magic_test_file=/lib/libc.so
13455 siemens)
13456 lt_cv_deplibs_check_method=pass_all
13459 lt_cv_deplibs_check_method=pass_all
13461 esac
13464 tpf*)
13465 lt_cv_deplibs_check_method=pass_all
13467 esac
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13471 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13472 file_magic_cmd=$lt_cv_file_magic_cmd
13473 deplibs_check_method=$lt_cv_deplibs_check_method
13474 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13487 if test -n "$ac_tool_prefix"; then
13488 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13489 set dummy ${ac_tool_prefix}ar; ac_word=$2
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13491 $as_echo_n "checking for $ac_word... " >&6; }
13492 if test "${ac_cv_prog_AR+set}" = set; then :
13493 $as_echo_n "(cached) " >&6
13494 else
13495 if test -n "$AR"; then
13496 ac_cv_prog_AR="$AR" # Let the user override the test.
13497 else
13498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13499 for as_dir in $PATH
13501 IFS=$as_save_IFS
13502 test -z "$as_dir" && as_dir=.
13503 for ac_exec_ext in '' $ac_executable_extensions; do
13504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13505 ac_cv_prog_AR="${ac_tool_prefix}ar"
13506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13507 break 2
13509 done
13510 done
13511 IFS=$as_save_IFS
13515 AR=$ac_cv_prog_AR
13516 if test -n "$AR"; then
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13518 $as_echo "$AR" >&6; }
13519 else
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13521 $as_echo "no" >&6; }
13526 if test -z "$ac_cv_prog_AR"; then
13527 ac_ct_AR=$AR
13528 # Extract the first word of "ar", so it can be a program name with args.
13529 set dummy ar; ac_word=$2
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13531 $as_echo_n "checking for $ac_word... " >&6; }
13532 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13533 $as_echo_n "(cached) " >&6
13534 else
13535 if test -n "$ac_ct_AR"; then
13536 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13537 else
13538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13539 for as_dir in $PATH
13541 IFS=$as_save_IFS
13542 test -z "$as_dir" && as_dir=.
13543 for ac_exec_ext in '' $ac_executable_extensions; do
13544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13545 ac_cv_prog_ac_ct_AR="ar"
13546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13547 break 2
13549 done
13550 done
13551 IFS=$as_save_IFS
13555 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13556 if test -n "$ac_ct_AR"; then
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13558 $as_echo "$ac_ct_AR" >&6; }
13559 else
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13561 $as_echo "no" >&6; }
13564 if test "x$ac_ct_AR" = x; then
13565 AR="false"
13566 else
13567 case $cross_compiling:$ac_tool_warned in
13568 yes:)
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13571 ac_tool_warned=yes ;;
13572 esac
13573 AR=$ac_ct_AR
13575 else
13576 AR="$ac_cv_prog_AR"
13579 test -z "$AR" && AR=ar
13580 test -z "$AR_FLAGS" && AR_FLAGS=cru
13592 if test -n "$ac_tool_prefix"; then
13593 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13594 set dummy ${ac_tool_prefix}strip; ac_word=$2
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13596 $as_echo_n "checking for $ac_word... " >&6; }
13597 if test "${ac_cv_prog_STRIP+set}" = set; then :
13598 $as_echo_n "(cached) " >&6
13599 else
13600 if test -n "$STRIP"; then
13601 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13602 else
13603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13604 for as_dir in $PATH
13606 IFS=$as_save_IFS
13607 test -z "$as_dir" && as_dir=.
13608 for ac_exec_ext in '' $ac_executable_extensions; do
13609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13610 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13612 break 2
13614 done
13615 done
13616 IFS=$as_save_IFS
13620 STRIP=$ac_cv_prog_STRIP
13621 if test -n "$STRIP"; then
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13623 $as_echo "$STRIP" >&6; }
13624 else
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13626 $as_echo "no" >&6; }
13631 if test -z "$ac_cv_prog_STRIP"; then
13632 ac_ct_STRIP=$STRIP
13633 # Extract the first word of "strip", so it can be a program name with args.
13634 set dummy strip; ac_word=$2
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13636 $as_echo_n "checking for $ac_word... " >&6; }
13637 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13638 $as_echo_n "(cached) " >&6
13639 else
13640 if test -n "$ac_ct_STRIP"; then
13641 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13642 else
13643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13644 for as_dir in $PATH
13646 IFS=$as_save_IFS
13647 test -z "$as_dir" && as_dir=.
13648 for ac_exec_ext in '' $ac_executable_extensions; do
13649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13650 ac_cv_prog_ac_ct_STRIP="strip"
13651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13652 break 2
13654 done
13655 done
13656 IFS=$as_save_IFS
13660 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13661 if test -n "$ac_ct_STRIP"; then
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13663 $as_echo "$ac_ct_STRIP" >&6; }
13664 else
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13666 $as_echo "no" >&6; }
13669 if test "x$ac_ct_STRIP" = x; then
13670 STRIP=":"
13671 else
13672 case $cross_compiling:$ac_tool_warned in
13673 yes:)
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13676 ac_tool_warned=yes ;;
13677 esac
13678 STRIP=$ac_ct_STRIP
13680 else
13681 STRIP="$ac_cv_prog_STRIP"
13684 test -z "$STRIP" && STRIP=:
13691 if test -n "$ac_tool_prefix"; then
13692 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13693 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13695 $as_echo_n "checking for $ac_word... " >&6; }
13696 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13697 $as_echo_n "(cached) " >&6
13698 else
13699 if test -n "$RANLIB"; then
13700 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13701 else
13702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13703 for as_dir in $PATH
13705 IFS=$as_save_IFS
13706 test -z "$as_dir" && as_dir=.
13707 for ac_exec_ext in '' $ac_executable_extensions; do
13708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13709 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13711 break 2
13713 done
13714 done
13715 IFS=$as_save_IFS
13719 RANLIB=$ac_cv_prog_RANLIB
13720 if test -n "$RANLIB"; then
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13722 $as_echo "$RANLIB" >&6; }
13723 else
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13725 $as_echo "no" >&6; }
13730 if test -z "$ac_cv_prog_RANLIB"; then
13731 ac_ct_RANLIB=$RANLIB
13732 # Extract the first word of "ranlib", so it can be a program name with args.
13733 set dummy ranlib; ac_word=$2
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13735 $as_echo_n "checking for $ac_word... " >&6; }
13736 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13737 $as_echo_n "(cached) " >&6
13738 else
13739 if test -n "$ac_ct_RANLIB"; then
13740 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13741 else
13742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13743 for as_dir in $PATH
13745 IFS=$as_save_IFS
13746 test -z "$as_dir" && as_dir=.
13747 for ac_exec_ext in '' $ac_executable_extensions; do
13748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13749 ac_cv_prog_ac_ct_RANLIB="ranlib"
13750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13751 break 2
13753 done
13754 done
13755 IFS=$as_save_IFS
13759 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13760 if test -n "$ac_ct_RANLIB"; then
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13762 $as_echo "$ac_ct_RANLIB" >&6; }
13763 else
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13765 $as_echo "no" >&6; }
13768 if test "x$ac_ct_RANLIB" = x; then
13769 RANLIB=":"
13770 else
13771 case $cross_compiling:$ac_tool_warned in
13772 yes:)
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13775 ac_tool_warned=yes ;;
13776 esac
13777 RANLIB=$ac_ct_RANLIB
13779 else
13780 RANLIB="$ac_cv_prog_RANLIB"
13783 test -z "$RANLIB" && RANLIB=:
13790 # Determine commands to create old-style static archives.
13791 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13792 old_postinstall_cmds='chmod 644 $oldlib'
13793 old_postuninstall_cmds=
13795 if test -n "$RANLIB"; then
13796 case $host_os in
13797 openbsd*)
13798 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13801 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13803 esac
13804 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13807 case $host_os in
13808 darwin*)
13809 lock_old_archive_extraction=yes ;;
13811 lock_old_archive_extraction=no ;;
13812 esac
13852 # If no C compiler was specified, use CC.
13853 LTCC=${LTCC-"$CC"}
13855 # If no C compiler flags were specified, use CFLAGS.
13856 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13858 # Allow CC to be a program name with arguments.
13859 compiler=$CC
13862 # Check for command to grab the raw symbol name followed by C symbol from nm.
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13864 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13865 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13866 $as_echo_n "(cached) " >&6
13867 else
13869 # These are sane defaults that work on at least a few old systems.
13870 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13872 # Character class describing NM global symbol codes.
13873 symcode='[BCDEGRST]'
13875 # Regexp to match symbols that can be accessed directly from C.
13876 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13878 # Define system-specific variables.
13879 case $host_os in
13880 aix*)
13881 symcode='[BCDT]'
13883 cygwin* | mingw* | pw32* | cegcc*)
13884 symcode='[ABCDGISTW]'
13886 hpux*)
13887 if test "$host_cpu" = ia64; then
13888 symcode='[ABCDEGRST]'
13891 irix* | nonstopux*)
13892 symcode='[BCDEGRST]'
13894 osf*)
13895 symcode='[BCDEGQRST]'
13897 solaris*)
13898 symcode='[BDRT]'
13900 sco3.2v5*)
13901 symcode='[DT]'
13903 sysv4.2uw2*)
13904 symcode='[DT]'
13906 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13907 symcode='[ABDT]'
13909 sysv4)
13910 symcode='[DFNSTU]'
13912 esac
13914 # If we're using GNU nm, then use its standard symbol codes.
13915 case `$NM -V 2>&1` in
13916 *GNU* | *'with BFD'*)
13917 symcode='[ABCDGIRSTW]' ;;
13918 esac
13920 # Transform an extracted symbol line into a proper C declaration.
13921 # Some systems (esp. on ia64) link data and code symbols differently,
13922 # so use this general approach.
13923 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13925 # Transform an extracted symbol line into symbol name and symbol address
13926 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13927 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'"
13929 # Handle CRLF in mingw tool chain
13930 opt_cr=
13931 case $build_os in
13932 mingw*)
13933 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13935 esac
13937 # Try without a prefix underscore, then with it.
13938 for ac_symprfx in "" "_"; do
13940 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13941 symxfrm="\\1 $ac_symprfx\\2 \\2"
13943 # Write the raw and C identifiers.
13944 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13945 # Fake it for dumpbin and say T for any non-static function
13946 # and D for any global variable.
13947 # Also find C++ and __fastcall symbols from MSVC++,
13948 # which start with @ or ?.
13949 lt_cv_sys_global_symbol_pipe="$AWK '"\
13950 " {last_section=section; section=\$ 3};"\
13951 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13952 " \$ 0!~/External *\|/{next};"\
13953 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13954 " {if(hide[section]) next};"\
13955 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13956 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13957 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13958 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13959 " ' prfx=^$ac_symprfx"
13960 else
13961 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13964 # Check to see that the pipe works correctly.
13965 pipe_works=no
13967 rm -f conftest*
13968 cat > conftest.$ac_ext <<_LT_EOF
13969 #ifdef __cplusplus
13970 extern "C" {
13971 #endif
13972 char nm_test_var;
13973 void nm_test_func(void);
13974 void nm_test_func(void){}
13975 #ifdef __cplusplus
13977 #endif
13978 int main(){nm_test_var='a';nm_test_func();return(0);}
13979 _LT_EOF
13981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13982 (eval $ac_compile) 2>&5
13983 ac_status=$?
13984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13985 test $ac_status = 0; }; then
13986 # Now try to grab the symbols.
13987 nlist=conftest.nm
13988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13989 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13990 ac_status=$?
13991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13992 test $ac_status = 0; } && test -s "$nlist"; then
13993 # Try sorting and uniquifying the output.
13994 if sort "$nlist" | uniq > "$nlist"T; then
13995 mv -f "$nlist"T "$nlist"
13996 else
13997 rm -f "$nlist"T
14000 # Make sure that we snagged all the symbols we need.
14001 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14002 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14003 cat <<_LT_EOF > conftest.$ac_ext
14004 #ifdef __cplusplus
14005 extern "C" {
14006 #endif
14008 _LT_EOF
14009 # Now generate the symbol file.
14010 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14012 cat <<_LT_EOF >> conftest.$ac_ext
14014 /* The mapping between symbol names and symbols. */
14015 const struct {
14016 const char *name;
14017 void *address;
14019 lt__PROGRAM__LTX_preloaded_symbols[] =
14021 { "@PROGRAM@", (void *) 0 },
14022 _LT_EOF
14023 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14024 cat <<\_LT_EOF >> conftest.$ac_ext
14025 {0, (void *) 0}
14028 /* This works around a problem in FreeBSD linker */
14029 #ifdef FREEBSD_WORKAROUND
14030 static const void *lt_preloaded_setup() {
14031 return lt__PROGRAM__LTX_preloaded_symbols;
14033 #endif
14035 #ifdef __cplusplus
14037 #endif
14038 _LT_EOF
14039 # Now try linking the two files.
14040 mv conftest.$ac_objext conftstm.$ac_objext
14041 lt_save_LIBS="$LIBS"
14042 lt_save_CFLAGS="$CFLAGS"
14043 LIBS="conftstm.$ac_objext"
14044 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14046 (eval $ac_link) 2>&5
14047 ac_status=$?
14048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14049 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14050 pipe_works=yes
14052 LIBS="$lt_save_LIBS"
14053 CFLAGS="$lt_save_CFLAGS"
14054 else
14055 echo "cannot find nm_test_func in $nlist" >&5
14057 else
14058 echo "cannot find nm_test_var in $nlist" >&5
14060 else
14061 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14063 else
14064 echo "$progname: failed program was:" >&5
14065 cat conftest.$ac_ext >&5
14067 rm -rf conftest* conftst*
14069 # Do not use the global_symbol_pipe unless it works.
14070 if test "$pipe_works" = yes; then
14071 break
14072 else
14073 lt_cv_sys_global_symbol_pipe=
14075 done
14079 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14080 lt_cv_sys_global_symbol_to_cdecl=
14082 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14084 $as_echo "failed" >&6; }
14085 else
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14087 $as_echo "ok" >&6; }
14111 # Check whether --enable-libtool-lock was given.
14112 if test "${enable_libtool_lock+set}" = set; then :
14113 enableval=$enable_libtool_lock;
14116 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14118 # Some flags need to be propagated to the compiler or linker for good
14119 # libtool support.
14120 case $host in
14121 ia64-*-hpux*)
14122 # Find out which ABI we are using.
14123 echo 'int i;' > conftest.$ac_ext
14124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14125 (eval $ac_compile) 2>&5
14126 ac_status=$?
14127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14128 test $ac_status = 0; }; then
14129 case `/usr/bin/file conftest.$ac_objext` in
14130 *ELF-32*)
14131 HPUX_IA64_MODE="32"
14133 *ELF-64*)
14134 HPUX_IA64_MODE="64"
14136 esac
14138 rm -rf conftest*
14140 *-*-irix6*)
14141 # Find out which ABI we are using.
14142 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14144 (eval $ac_compile) 2>&5
14145 ac_status=$?
14146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14147 test $ac_status = 0; }; then
14148 if test "$lt_cv_prog_gnu_ld" = yes; then
14149 case `/usr/bin/file conftest.$ac_objext` in
14150 *32-bit*)
14151 LD="${LD-ld} -melf32bsmip"
14153 *N32*)
14154 LD="${LD-ld} -melf32bmipn32"
14156 *64-bit*)
14157 LD="${LD-ld} -melf64bmip"
14159 esac
14160 else
14161 case `/usr/bin/file conftest.$ac_objext` in
14162 *32-bit*)
14163 LD="${LD-ld} -32"
14165 *N32*)
14166 LD="${LD-ld} -n32"
14168 *64-bit*)
14169 LD="${LD-ld} -64"
14171 esac
14174 rm -rf conftest*
14177 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14178 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14179 # Find out which ABI we are using.
14180 echo 'int i;' > conftest.$ac_ext
14181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14182 (eval $ac_compile) 2>&5
14183 ac_status=$?
14184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14185 test $ac_status = 0; }; then
14186 case `/usr/bin/file conftest.o` in
14187 *32-bit*)
14188 case $host in
14189 x86_64-*kfreebsd*-gnu)
14190 LD="${LD-ld} -m elf_i386_fbsd"
14192 x86_64-*linux*)
14193 case `/usr/bin/file conftest.o` in
14194 *x86-64*)
14195 LD="${LD-ld} -m elf32_x86_64"
14198 LD="${LD-ld} -m elf_i386"
14200 esac
14202 powerpc64le-*linux*)
14203 LD="${LD-ld} -m elf32lppclinux"
14205 powerpc64-*linux*)
14206 LD="${LD-ld} -m elf32ppclinux"
14208 s390x-*linux*)
14209 LD="${LD-ld} -m elf_s390"
14211 sparc64-*linux*)
14212 LD="${LD-ld} -m elf32_sparc"
14214 esac
14216 *64-bit*)
14217 case $host in
14218 x86_64-*kfreebsd*-gnu)
14219 LD="${LD-ld} -m elf_x86_64_fbsd"
14221 x86_64-*linux*)
14222 LD="${LD-ld} -m elf_x86_64"
14224 powerpcle-*linux*)
14225 LD="${LD-ld} -m elf64lppc"
14227 powerpc-*linux*)
14228 LD="${LD-ld} -m elf64ppc"
14230 s390*-*linux*|s390*-*tpf*)
14231 LD="${LD-ld} -m elf64_s390"
14233 sparc*-*linux*)
14234 LD="${LD-ld} -m elf64_sparc"
14236 esac
14238 esac
14240 rm -rf conftest*
14243 *-*-sco3.2v5*)
14244 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14245 SAVE_CFLAGS="$CFLAGS"
14246 CFLAGS="$CFLAGS -belf"
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14248 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14249 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14250 $as_echo_n "(cached) " >&6
14251 else
14252 ac_ext=c
14253 ac_cpp='$CPP $CPPFLAGS'
14254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14259 /* end confdefs.h. */
14262 main ()
14266 return 0;
14268 _ACEOF
14269 if ac_fn_c_try_link "$LINENO"; then :
14270 lt_cv_cc_needs_belf=yes
14271 else
14272 lt_cv_cc_needs_belf=no
14274 rm -f core conftest.err conftest.$ac_objext \
14275 conftest$ac_exeext conftest.$ac_ext
14276 ac_ext=c
14277 ac_cpp='$CPP $CPPFLAGS'
14278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14284 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14285 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14286 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14287 CFLAGS="$SAVE_CFLAGS"
14290 sparc*-*solaris*)
14291 # Find out which ABI we are using.
14292 echo 'int i;' > conftest.$ac_ext
14293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14294 (eval $ac_compile) 2>&5
14295 ac_status=$?
14296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14297 test $ac_status = 0; }; then
14298 case `/usr/bin/file conftest.o` in
14299 *64-bit*)
14300 case $lt_cv_prog_gnu_ld in
14301 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14303 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14304 LD="${LD-ld} -64"
14307 esac
14309 esac
14311 rm -rf conftest*
14313 esac
14315 need_locks="$enable_libtool_lock"
14318 case $host_os in
14319 rhapsody* | darwin*)
14320 if test -n "$ac_tool_prefix"; then
14321 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14322 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14324 $as_echo_n "checking for $ac_word... " >&6; }
14325 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14326 $as_echo_n "(cached) " >&6
14327 else
14328 if test -n "$DSYMUTIL"; then
14329 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14330 else
14331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14332 for as_dir in $PATH
14334 IFS=$as_save_IFS
14335 test -z "$as_dir" && as_dir=.
14336 for ac_exec_ext in '' $ac_executable_extensions; do
14337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14338 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14340 break 2
14342 done
14343 done
14344 IFS=$as_save_IFS
14348 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14349 if test -n "$DSYMUTIL"; then
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14351 $as_echo "$DSYMUTIL" >&6; }
14352 else
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14354 $as_echo "no" >&6; }
14359 if test -z "$ac_cv_prog_DSYMUTIL"; then
14360 ac_ct_DSYMUTIL=$DSYMUTIL
14361 # Extract the first word of "dsymutil", so it can be a program name with args.
14362 set dummy dsymutil; ac_word=$2
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14364 $as_echo_n "checking for $ac_word... " >&6; }
14365 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14366 $as_echo_n "(cached) " >&6
14367 else
14368 if test -n "$ac_ct_DSYMUTIL"; then
14369 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14370 else
14371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14372 for as_dir in $PATH
14374 IFS=$as_save_IFS
14375 test -z "$as_dir" && as_dir=.
14376 for ac_exec_ext in '' $ac_executable_extensions; do
14377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14378 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14380 break 2
14382 done
14383 done
14384 IFS=$as_save_IFS
14388 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14389 if test -n "$ac_ct_DSYMUTIL"; then
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14391 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14392 else
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14394 $as_echo "no" >&6; }
14397 if test "x$ac_ct_DSYMUTIL" = x; then
14398 DSYMUTIL=":"
14399 else
14400 case $cross_compiling:$ac_tool_warned in
14401 yes:)
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14404 ac_tool_warned=yes ;;
14405 esac
14406 DSYMUTIL=$ac_ct_DSYMUTIL
14408 else
14409 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14412 if test -n "$ac_tool_prefix"; then
14413 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14414 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14416 $as_echo_n "checking for $ac_word... " >&6; }
14417 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14418 $as_echo_n "(cached) " >&6
14419 else
14420 if test -n "$NMEDIT"; then
14421 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14422 else
14423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14424 for as_dir in $PATH
14426 IFS=$as_save_IFS
14427 test -z "$as_dir" && as_dir=.
14428 for ac_exec_ext in '' $ac_executable_extensions; do
14429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14430 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14432 break 2
14434 done
14435 done
14436 IFS=$as_save_IFS
14440 NMEDIT=$ac_cv_prog_NMEDIT
14441 if test -n "$NMEDIT"; then
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14443 $as_echo "$NMEDIT" >&6; }
14444 else
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14446 $as_echo "no" >&6; }
14451 if test -z "$ac_cv_prog_NMEDIT"; then
14452 ac_ct_NMEDIT=$NMEDIT
14453 # Extract the first word of "nmedit", so it can be a program name with args.
14454 set dummy nmedit; ac_word=$2
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14456 $as_echo_n "checking for $ac_word... " >&6; }
14457 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14458 $as_echo_n "(cached) " >&6
14459 else
14460 if test -n "$ac_ct_NMEDIT"; then
14461 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14462 else
14463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14464 for as_dir in $PATH
14466 IFS=$as_save_IFS
14467 test -z "$as_dir" && as_dir=.
14468 for ac_exec_ext in '' $ac_executable_extensions; do
14469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14470 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14472 break 2
14474 done
14475 done
14476 IFS=$as_save_IFS
14480 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14481 if test -n "$ac_ct_NMEDIT"; then
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14483 $as_echo "$ac_ct_NMEDIT" >&6; }
14484 else
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14486 $as_echo "no" >&6; }
14489 if test "x$ac_ct_NMEDIT" = x; then
14490 NMEDIT=":"
14491 else
14492 case $cross_compiling:$ac_tool_warned in
14493 yes:)
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14496 ac_tool_warned=yes ;;
14497 esac
14498 NMEDIT=$ac_ct_NMEDIT
14500 else
14501 NMEDIT="$ac_cv_prog_NMEDIT"
14504 if test -n "$ac_tool_prefix"; then
14505 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14506 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14508 $as_echo_n "checking for $ac_word... " >&6; }
14509 if test "${ac_cv_prog_LIPO+set}" = set; then :
14510 $as_echo_n "(cached) " >&6
14511 else
14512 if test -n "$LIPO"; then
14513 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14514 else
14515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14516 for as_dir in $PATH
14518 IFS=$as_save_IFS
14519 test -z "$as_dir" && as_dir=.
14520 for ac_exec_ext in '' $ac_executable_extensions; do
14521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14522 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14524 break 2
14526 done
14527 done
14528 IFS=$as_save_IFS
14532 LIPO=$ac_cv_prog_LIPO
14533 if test -n "$LIPO"; then
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14535 $as_echo "$LIPO" >&6; }
14536 else
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14538 $as_echo "no" >&6; }
14543 if test -z "$ac_cv_prog_LIPO"; then
14544 ac_ct_LIPO=$LIPO
14545 # Extract the first word of "lipo", so it can be a program name with args.
14546 set dummy lipo; ac_word=$2
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14548 $as_echo_n "checking for $ac_word... " >&6; }
14549 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14550 $as_echo_n "(cached) " >&6
14551 else
14552 if test -n "$ac_ct_LIPO"; then
14553 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14554 else
14555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14556 for as_dir in $PATH
14558 IFS=$as_save_IFS
14559 test -z "$as_dir" && as_dir=.
14560 for ac_exec_ext in '' $ac_executable_extensions; do
14561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14562 ac_cv_prog_ac_ct_LIPO="lipo"
14563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14564 break 2
14566 done
14567 done
14568 IFS=$as_save_IFS
14572 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14573 if test -n "$ac_ct_LIPO"; then
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14575 $as_echo "$ac_ct_LIPO" >&6; }
14576 else
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14578 $as_echo "no" >&6; }
14581 if test "x$ac_ct_LIPO" = x; then
14582 LIPO=":"
14583 else
14584 case $cross_compiling:$ac_tool_warned in
14585 yes:)
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14588 ac_tool_warned=yes ;;
14589 esac
14590 LIPO=$ac_ct_LIPO
14592 else
14593 LIPO="$ac_cv_prog_LIPO"
14596 if test -n "$ac_tool_prefix"; then
14597 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14598 set dummy ${ac_tool_prefix}otool; ac_word=$2
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14600 $as_echo_n "checking for $ac_word... " >&6; }
14601 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14602 $as_echo_n "(cached) " >&6
14603 else
14604 if test -n "$OTOOL"; then
14605 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14606 else
14607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14608 for as_dir in $PATH
14610 IFS=$as_save_IFS
14611 test -z "$as_dir" && as_dir=.
14612 for ac_exec_ext in '' $ac_executable_extensions; do
14613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14614 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14616 break 2
14618 done
14619 done
14620 IFS=$as_save_IFS
14624 OTOOL=$ac_cv_prog_OTOOL
14625 if test -n "$OTOOL"; then
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14627 $as_echo "$OTOOL" >&6; }
14628 else
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14630 $as_echo "no" >&6; }
14635 if test -z "$ac_cv_prog_OTOOL"; then
14636 ac_ct_OTOOL=$OTOOL
14637 # Extract the first word of "otool", so it can be a program name with args.
14638 set dummy otool; ac_word=$2
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14640 $as_echo_n "checking for $ac_word... " >&6; }
14641 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14642 $as_echo_n "(cached) " >&6
14643 else
14644 if test -n "$ac_ct_OTOOL"; then
14645 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14646 else
14647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14648 for as_dir in $PATH
14650 IFS=$as_save_IFS
14651 test -z "$as_dir" && as_dir=.
14652 for ac_exec_ext in '' $ac_executable_extensions; do
14653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14654 ac_cv_prog_ac_ct_OTOOL="otool"
14655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14656 break 2
14658 done
14659 done
14660 IFS=$as_save_IFS
14664 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14665 if test -n "$ac_ct_OTOOL"; then
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14667 $as_echo "$ac_ct_OTOOL" >&6; }
14668 else
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14670 $as_echo "no" >&6; }
14673 if test "x$ac_ct_OTOOL" = x; then
14674 OTOOL=":"
14675 else
14676 case $cross_compiling:$ac_tool_warned in
14677 yes:)
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14680 ac_tool_warned=yes ;;
14681 esac
14682 OTOOL=$ac_ct_OTOOL
14684 else
14685 OTOOL="$ac_cv_prog_OTOOL"
14688 if test -n "$ac_tool_prefix"; then
14689 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14690 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14692 $as_echo_n "checking for $ac_word... " >&6; }
14693 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14694 $as_echo_n "(cached) " >&6
14695 else
14696 if test -n "$OTOOL64"; then
14697 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14698 else
14699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14700 for as_dir in $PATH
14702 IFS=$as_save_IFS
14703 test -z "$as_dir" && as_dir=.
14704 for ac_exec_ext in '' $ac_executable_extensions; do
14705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14706 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14708 break 2
14710 done
14711 done
14712 IFS=$as_save_IFS
14716 OTOOL64=$ac_cv_prog_OTOOL64
14717 if test -n "$OTOOL64"; then
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14719 $as_echo "$OTOOL64" >&6; }
14720 else
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14722 $as_echo "no" >&6; }
14727 if test -z "$ac_cv_prog_OTOOL64"; then
14728 ac_ct_OTOOL64=$OTOOL64
14729 # Extract the first word of "otool64", so it can be a program name with args.
14730 set dummy otool64; ac_word=$2
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14732 $as_echo_n "checking for $ac_word... " >&6; }
14733 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14734 $as_echo_n "(cached) " >&6
14735 else
14736 if test -n "$ac_ct_OTOOL64"; then
14737 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14738 else
14739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14740 for as_dir in $PATH
14742 IFS=$as_save_IFS
14743 test -z "$as_dir" && as_dir=.
14744 for ac_exec_ext in '' $ac_executable_extensions; do
14745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14746 ac_cv_prog_ac_ct_OTOOL64="otool64"
14747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14748 break 2
14750 done
14751 done
14752 IFS=$as_save_IFS
14756 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14757 if test -n "$ac_ct_OTOOL64"; then
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14759 $as_echo "$ac_ct_OTOOL64" >&6; }
14760 else
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14762 $as_echo "no" >&6; }
14765 if test "x$ac_ct_OTOOL64" = x; then
14766 OTOOL64=":"
14767 else
14768 case $cross_compiling:$ac_tool_warned in
14769 yes:)
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14772 ac_tool_warned=yes ;;
14773 esac
14774 OTOOL64=$ac_ct_OTOOL64
14776 else
14777 OTOOL64="$ac_cv_prog_OTOOL64"
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14807 $as_echo_n "checking for -single_module linker flag... " >&6; }
14808 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14809 $as_echo_n "(cached) " >&6
14810 else
14811 lt_cv_apple_cc_single_mod=no
14812 if test -z "${LT_MULTI_MODULE}"; then
14813 # By default we will add the -single_module flag. You can override
14814 # by either setting the environment variable LT_MULTI_MODULE
14815 # non-empty at configure time, or by adding -multi_module to the
14816 # link flags.
14817 rm -rf libconftest.dylib*
14818 echo "int foo(void){return 1;}" > conftest.c
14819 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14820 -dynamiclib -Wl,-single_module conftest.c" >&5
14821 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14822 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14823 _lt_result=$?
14824 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14825 lt_cv_apple_cc_single_mod=yes
14826 else
14827 cat conftest.err >&5
14829 rm -rf libconftest.dylib*
14830 rm -f conftest.*
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14834 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14836 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14837 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14838 $as_echo_n "(cached) " >&6
14839 else
14840 lt_cv_ld_exported_symbols_list=no
14841 save_LDFLAGS=$LDFLAGS
14842 echo "_main" > conftest.sym
14843 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14845 /* end confdefs.h. */
14848 main ()
14852 return 0;
14854 _ACEOF
14855 if ac_fn_c_try_link "$LINENO"; then :
14856 lt_cv_ld_exported_symbols_list=yes
14857 else
14858 lt_cv_ld_exported_symbols_list=no
14860 rm -f core conftest.err conftest.$ac_objext \
14861 conftest$ac_exeext conftest.$ac_ext
14862 LDFLAGS="$save_LDFLAGS"
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14866 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14868 $as_echo_n "checking for -force_load linker flag... " >&6; }
14869 if test "${lt_cv_ld_force_load+set}" = set; then :
14870 $as_echo_n "(cached) " >&6
14871 else
14872 lt_cv_ld_force_load=no
14873 cat > conftest.c << _LT_EOF
14874 int forced_loaded() { return 2;}
14875 _LT_EOF
14876 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14877 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14878 echo "$AR cru libconftest.a conftest.o" >&5
14879 $AR cru libconftest.a conftest.o 2>&5
14880 cat > conftest.c << _LT_EOF
14881 int main() { return 0;}
14882 _LT_EOF
14883 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14884 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14885 _lt_result=$?
14886 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14887 lt_cv_ld_force_load=yes
14888 else
14889 cat conftest.err >&5
14891 rm -f conftest.err libconftest.a conftest conftest.c
14892 rm -rf conftest.dSYM
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14896 $as_echo "$lt_cv_ld_force_load" >&6; }
14897 case $host_os in
14898 rhapsody* | darwin1.[012])
14899 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14900 darwin1.*)
14901 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14902 darwin*) # darwin 5.x on
14903 # if running on 10.5 or later, the deployment target defaults
14904 # to the OS version, if on x86, and 10.4, the deployment
14905 # target defaults to 10.4. Don't you love it?
14906 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14907 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14908 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14909 10.[012][,.]*)
14910 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14911 10.*)
14912 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14913 esac
14915 esac
14916 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14917 _lt_dar_single_mod='$single_module'
14919 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14920 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14921 else
14922 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14924 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14925 _lt_dsymutil='~$DSYMUTIL $lib || :'
14926 else
14927 _lt_dsymutil=
14930 esac
14933 for ac_header in dlfcn.h
14934 do :
14935 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14936 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14937 cat >>confdefs.h <<_ACEOF
14938 #define HAVE_DLFCN_H 1
14939 _ACEOF
14942 done
14948 # Set options
14952 enable_dlopen=no
14955 enable_win32_dll=no
14958 # Check whether --enable-shared was given.
14959 if test "${enable_shared+set}" = set; then :
14960 enableval=$enable_shared; p=${PACKAGE-default}
14961 case $enableval in
14962 yes) enable_shared=yes ;;
14963 no) enable_shared=no ;;
14965 enable_shared=no
14966 # Look at the argument we got. We use all the common list separators.
14967 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14968 for pkg in $enableval; do
14969 IFS="$lt_save_ifs"
14970 if test "X$pkg" = "X$p"; then
14971 enable_shared=yes
14973 done
14974 IFS="$lt_save_ifs"
14976 esac
14977 else
14978 enable_shared=yes
14989 # Check whether --enable-static was given.
14990 if test "${enable_static+set}" = set; then :
14991 enableval=$enable_static; p=${PACKAGE-default}
14992 case $enableval in
14993 yes) enable_static=yes ;;
14994 no) enable_static=no ;;
14996 enable_static=no
14997 # Look at the argument we got. We use all the common list separators.
14998 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14999 for pkg in $enableval; do
15000 IFS="$lt_save_ifs"
15001 if test "X$pkg" = "X$p"; then
15002 enable_static=yes
15004 done
15005 IFS="$lt_save_ifs"
15007 esac
15008 else
15009 enable_static=yes
15021 # Check whether --with-pic was given.
15022 if test "${with_pic+set}" = set; then :
15023 withval=$with_pic; pic_mode="$withval"
15024 else
15025 pic_mode=default
15029 test -z "$pic_mode" && pic_mode=default
15037 # Check whether --enable-fast-install was given.
15038 if test "${enable_fast_install+set}" = set; then :
15039 enableval=$enable_fast_install; p=${PACKAGE-default}
15040 case $enableval in
15041 yes) enable_fast_install=yes ;;
15042 no) enable_fast_install=no ;;
15044 enable_fast_install=no
15045 # Look at the argument we got. We use all the common list separators.
15046 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15047 for pkg in $enableval; do
15048 IFS="$lt_save_ifs"
15049 if test "X$pkg" = "X$p"; then
15050 enable_fast_install=yes
15052 done
15053 IFS="$lt_save_ifs"
15055 esac
15056 else
15057 enable_fast_install=yes
15070 # This can be used to rebuild libtool when needed
15071 LIBTOOL_DEPS="$ltmain"
15073 # Always use our own libtool.
15074 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15101 test -z "$LN_S" && LN_S="ln -s"
15116 if test -n "${ZSH_VERSION+set}" ; then
15117 setopt NO_GLOB_SUBST
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15121 $as_echo_n "checking for objdir... " >&6; }
15122 if test "${lt_cv_objdir+set}" = set; then :
15123 $as_echo_n "(cached) " >&6
15124 else
15125 rm -f .libs 2>/dev/null
15126 mkdir .libs 2>/dev/null
15127 if test -d .libs; then
15128 lt_cv_objdir=.libs
15129 else
15130 # MS-DOS does not allow filenames that begin with a dot.
15131 lt_cv_objdir=_libs
15133 rmdir .libs 2>/dev/null
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15136 $as_echo "$lt_cv_objdir" >&6; }
15137 objdir=$lt_cv_objdir
15143 cat >>confdefs.h <<_ACEOF
15144 #define LT_OBJDIR "$lt_cv_objdir/"
15145 _ACEOF
15150 case $host_os in
15151 aix3*)
15152 # AIX sometimes has problems with the GCC collect2 program. For some
15153 # reason, if we set the COLLECT_NAMES environment variable, the problems
15154 # vanish in a puff of smoke.
15155 if test "X${COLLECT_NAMES+set}" != Xset; then
15156 COLLECT_NAMES=
15157 export COLLECT_NAMES
15160 esac
15162 # Global variables:
15163 ofile=libtool
15164 can_build_shared=yes
15166 # All known linkers require a `.a' archive for static linking (except MSVC,
15167 # which needs '.lib').
15168 libext=a
15170 with_gnu_ld="$lt_cv_prog_gnu_ld"
15172 old_CC="$CC"
15173 old_CFLAGS="$CFLAGS"
15175 # Set sane defaults for various variables
15176 test -z "$CC" && CC=cc
15177 test -z "$LTCC" && LTCC=$CC
15178 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15179 test -z "$LD" && LD=ld
15180 test -z "$ac_objext" && ac_objext=o
15182 for cc_temp in $compiler""; do
15183 case $cc_temp in
15184 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15185 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15186 \-*) ;;
15187 *) break;;
15188 esac
15189 done
15190 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15193 # Only perform the check for file, if the check method requires it
15194 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15195 case $deplibs_check_method in
15196 file_magic*)
15197 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15199 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15200 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15201 $as_echo_n "(cached) " >&6
15202 else
15203 case $MAGIC_CMD in
15204 [\\/*] | ?:[\\/]*)
15205 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15208 lt_save_MAGIC_CMD="$MAGIC_CMD"
15209 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15210 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15211 for ac_dir in $ac_dummy; do
15212 IFS="$lt_save_ifs"
15213 test -z "$ac_dir" && ac_dir=.
15214 if test -f $ac_dir/${ac_tool_prefix}file; then
15215 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15216 if test -n "$file_magic_test_file"; then
15217 case $deplibs_check_method in
15218 "file_magic "*)
15219 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15220 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15221 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15222 $EGREP "$file_magic_regex" > /dev/null; then
15224 else
15225 cat <<_LT_EOF 1>&2
15227 *** Warning: the command libtool uses to detect shared libraries,
15228 *** $file_magic_cmd, produces output that libtool cannot recognize.
15229 *** The result is that libtool may fail to recognize shared libraries
15230 *** as such. This will affect the creation of libtool libraries that
15231 *** depend on shared libraries, but programs linked with such libtool
15232 *** libraries will work regardless of this problem. Nevertheless, you
15233 *** may want to report the problem to your system manager and/or to
15234 *** bug-libtool@gnu.org
15236 _LT_EOF
15237 fi ;;
15238 esac
15240 break
15242 done
15243 IFS="$lt_save_ifs"
15244 MAGIC_CMD="$lt_save_MAGIC_CMD"
15246 esac
15249 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15250 if test -n "$MAGIC_CMD"; then
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15252 $as_echo "$MAGIC_CMD" >&6; }
15253 else
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15255 $as_echo "no" >&6; }
15262 if test -z "$lt_cv_path_MAGIC_CMD"; then
15263 if test -n "$ac_tool_prefix"; then
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15265 $as_echo_n "checking for file... " >&6; }
15266 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15267 $as_echo_n "(cached) " >&6
15268 else
15269 case $MAGIC_CMD in
15270 [\\/*] | ?:[\\/]*)
15271 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15274 lt_save_MAGIC_CMD="$MAGIC_CMD"
15275 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15276 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15277 for ac_dir in $ac_dummy; do
15278 IFS="$lt_save_ifs"
15279 test -z "$ac_dir" && ac_dir=.
15280 if test -f $ac_dir/file; then
15281 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15282 if test -n "$file_magic_test_file"; then
15283 case $deplibs_check_method in
15284 "file_magic "*)
15285 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15286 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15287 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15288 $EGREP "$file_magic_regex" > /dev/null; then
15290 else
15291 cat <<_LT_EOF 1>&2
15293 *** Warning: the command libtool uses to detect shared libraries,
15294 *** $file_magic_cmd, produces output that libtool cannot recognize.
15295 *** The result is that libtool may fail to recognize shared libraries
15296 *** as such. This will affect the creation of libtool libraries that
15297 *** depend on shared libraries, but programs linked with such libtool
15298 *** libraries will work regardless of this problem. Nevertheless, you
15299 *** may want to report the problem to your system manager and/or to
15300 *** bug-libtool@gnu.org
15302 _LT_EOF
15303 fi ;;
15304 esac
15306 break
15308 done
15309 IFS="$lt_save_ifs"
15310 MAGIC_CMD="$lt_save_MAGIC_CMD"
15312 esac
15315 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15316 if test -n "$MAGIC_CMD"; then
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15318 $as_echo "$MAGIC_CMD" >&6; }
15319 else
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15321 $as_echo "no" >&6; }
15325 else
15326 MAGIC_CMD=:
15332 esac
15334 # Use C for the default configuration in the libtool script
15336 lt_save_CC="$CC"
15337 ac_ext=c
15338 ac_cpp='$CPP $CPPFLAGS'
15339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15344 # Source file extension for C test sources.
15345 ac_ext=c
15347 # Object file extension for compiled C test sources.
15348 objext=o
15349 objext=$objext
15351 # Code to be used in simple compile tests
15352 lt_simple_compile_test_code="int some_variable = 0;"
15354 # Code to be used in simple link tests
15355 lt_simple_link_test_code='int main(){return(0);}'
15363 # If no C compiler was specified, use CC.
15364 LTCC=${LTCC-"$CC"}
15366 # If no C compiler flags were specified, use CFLAGS.
15367 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15369 # Allow CC to be a program name with arguments.
15370 compiler=$CC
15372 # Save the default compiler, since it gets overwritten when the other
15373 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15374 compiler_DEFAULT=$CC
15376 # save warnings/boilerplate of simple test code
15377 ac_outfile=conftest.$ac_objext
15378 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15379 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15380 _lt_compiler_boilerplate=`cat conftest.err`
15381 $RM conftest*
15383 ac_outfile=conftest.$ac_objext
15384 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15385 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15386 _lt_linker_boilerplate=`cat conftest.err`
15387 $RM -r conftest*
15390 ## CAVEAT EMPTOR:
15391 ## There is no encapsulation within the following macros, do not change
15392 ## the running order or otherwise move them around unless you know exactly
15393 ## what you are doing...
15394 if test -n "$compiler"; then
15396 lt_prog_compiler_no_builtin_flag=
15398 if test "$GCC" = yes; then
15399 case $cc_basename in
15400 nvcc*)
15401 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15403 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15404 esac
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15407 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15408 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15409 $as_echo_n "(cached) " >&6
15410 else
15411 lt_cv_prog_compiler_rtti_exceptions=no
15412 ac_outfile=conftest.$ac_objext
15413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15414 lt_compiler_flag="-fno-rtti -fno-exceptions"
15415 # Insert the option either (1) after the last *FLAGS variable, or
15416 # (2) before a word containing "conftest.", or (3) at the end.
15417 # Note that $ac_compile itself does not contain backslashes and begins
15418 # with a dollar sign (not a hyphen), so the echo should work correctly.
15419 # The option is referenced via a variable to avoid confusing sed.
15420 lt_compile=`echo "$ac_compile" | $SED \
15421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15423 -e 's:$: $lt_compiler_flag:'`
15424 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15425 (eval "$lt_compile" 2>conftest.err)
15426 ac_status=$?
15427 cat conftest.err >&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 if (exit $ac_status) && test -s "$ac_outfile"; then
15430 # The compiler can only warn and ignore the option if not recognized
15431 # So say no if there are warnings other than the usual output.
15432 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15433 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15434 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15435 lt_cv_prog_compiler_rtti_exceptions=yes
15438 $RM conftest*
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15442 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15444 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15445 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15446 else
15457 lt_prog_compiler_wl=
15458 lt_prog_compiler_pic=
15459 lt_prog_compiler_static=
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15462 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15464 if test "$GCC" = yes; then
15465 lt_prog_compiler_wl='-Wl,'
15466 lt_prog_compiler_static='-static'
15468 case $host_os in
15469 aix*)
15470 # All AIX code is PIC.
15471 if test "$host_cpu" = ia64; then
15472 # AIX 5 now supports IA64 processor
15473 lt_prog_compiler_static='-Bstatic'
15475 lt_prog_compiler_pic='-fPIC'
15478 amigaos*)
15479 case $host_cpu in
15480 powerpc)
15481 # see comment about AmigaOS4 .so support
15482 lt_prog_compiler_pic='-fPIC'
15484 m68k)
15485 # FIXME: we need at least 68020 code to build shared libraries, but
15486 # adding the `-m68020' flag to GCC prevents building anything better,
15487 # like `-m68040'.
15488 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15490 esac
15493 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15494 # PIC is the default for these OSes.
15497 mingw* | cygwin* | pw32* | os2* | cegcc*)
15498 # This hack is so that the source file can tell whether it is being
15499 # built for inclusion in a dll (and should export symbols for example).
15500 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15501 # (--disable-auto-import) libraries
15502 lt_prog_compiler_pic='-DDLL_EXPORT'
15505 darwin* | rhapsody*)
15506 # PIC is the default on this platform
15507 # Common symbols not allowed in MH_DYLIB files
15508 lt_prog_compiler_pic='-fno-common'
15511 haiku*)
15512 # PIC is the default for Haiku.
15513 # The "-static" flag exists, but is broken.
15514 lt_prog_compiler_static=
15517 hpux*)
15518 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15519 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15520 # sets the default TLS model and affects inlining.
15521 case $host_cpu in
15522 hppa*64*)
15523 # +Z the default
15526 lt_prog_compiler_pic='-fPIC'
15528 esac
15531 interix[3-9]*)
15532 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15533 # Instead, we relocate shared libraries at runtime.
15536 msdosdjgpp*)
15537 # Just because we use GCC doesn't mean we suddenly get shared libraries
15538 # on systems that don't support them.
15539 lt_prog_compiler_can_build_shared=no
15540 enable_shared=no
15543 *nto* | *qnx*)
15544 # QNX uses GNU C++, but need to define -shared option too, otherwise
15545 # it will coredump.
15546 lt_prog_compiler_pic='-fPIC -shared'
15549 sysv4*MP*)
15550 if test -d /usr/nec; then
15551 lt_prog_compiler_pic=-Kconform_pic
15556 lt_prog_compiler_pic='-fPIC'
15558 esac
15560 case $cc_basename in
15561 nvcc*) # Cuda Compiler Driver 2.2
15562 lt_prog_compiler_wl='-Xlinker '
15563 lt_prog_compiler_pic='-Xcompiler -fPIC'
15565 esac
15566 else
15567 # PORTME Check for flag to pass linker flags through the system compiler.
15568 case $host_os in
15569 aix*)
15570 lt_prog_compiler_wl='-Wl,'
15571 if test "$host_cpu" = ia64; then
15572 # AIX 5 now supports IA64 processor
15573 lt_prog_compiler_static='-Bstatic'
15574 else
15575 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15579 mingw* | cygwin* | pw32* | os2* | cegcc*)
15580 # This hack is so that the source file can tell whether it is being
15581 # built for inclusion in a dll (and should export symbols for example).
15582 lt_prog_compiler_pic='-DDLL_EXPORT'
15585 hpux9* | hpux10* | hpux11*)
15586 lt_prog_compiler_wl='-Wl,'
15587 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15588 # not for PA HP-UX.
15589 case $host_cpu in
15590 hppa*64*|ia64*)
15591 # +Z the default
15594 lt_prog_compiler_pic='+Z'
15596 esac
15597 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15598 lt_prog_compiler_static='${wl}-a ${wl}archive'
15601 irix5* | irix6* | nonstopux*)
15602 lt_prog_compiler_wl='-Wl,'
15603 # PIC (with -KPIC) is the default.
15604 lt_prog_compiler_static='-non_shared'
15607 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15608 case $cc_basename in
15609 # old Intel for x86_64 which still supported -KPIC.
15610 ecc*)
15611 lt_prog_compiler_wl='-Wl,'
15612 lt_prog_compiler_pic='-KPIC'
15613 lt_prog_compiler_static='-static'
15615 # icc used to be incompatible with GCC.
15616 # ICC 10 doesn't accept -KPIC any more.
15617 icc* | ifort*)
15618 lt_prog_compiler_wl='-Wl,'
15619 lt_prog_compiler_pic='-fPIC'
15620 lt_prog_compiler_static='-static'
15622 # Lahey Fortran 8.1.
15623 lf95*)
15624 lt_prog_compiler_wl='-Wl,'
15625 lt_prog_compiler_pic='--shared'
15626 lt_prog_compiler_static='--static'
15628 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15629 # Portland Group compilers (*not* the Pentium gcc compiler,
15630 # which looks to be a dead project)
15631 lt_prog_compiler_wl='-Wl,'
15632 lt_prog_compiler_pic='-fpic'
15633 lt_prog_compiler_static='-Bstatic'
15635 ccc*)
15636 lt_prog_compiler_wl='-Wl,'
15637 # All Alpha code is PIC.
15638 lt_prog_compiler_static='-non_shared'
15640 xl* | bgxl* | bgf* | mpixl*)
15641 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15642 lt_prog_compiler_wl='-Wl,'
15643 lt_prog_compiler_pic='-qpic'
15644 lt_prog_compiler_static='-qstaticlink'
15647 case `$CC -V 2>&1 | sed 5q` in
15648 *Sun\ F* | *Sun*Fortran*)
15649 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15650 lt_prog_compiler_pic='-KPIC'
15651 lt_prog_compiler_static='-Bstatic'
15652 lt_prog_compiler_wl=''
15654 *Sun\ C*)
15655 # Sun C 5.9
15656 lt_prog_compiler_pic='-KPIC'
15657 lt_prog_compiler_static='-Bstatic'
15658 lt_prog_compiler_wl='-Wl,'
15660 esac
15662 esac
15665 newsos6)
15666 lt_prog_compiler_pic='-KPIC'
15667 lt_prog_compiler_static='-Bstatic'
15670 *nto* | *qnx*)
15671 # QNX uses GNU C++, but need to define -shared option too, otherwise
15672 # it will coredump.
15673 lt_prog_compiler_pic='-fPIC -shared'
15676 osf3* | osf4* | osf5*)
15677 lt_prog_compiler_wl='-Wl,'
15678 # All OSF/1 code is PIC.
15679 lt_prog_compiler_static='-non_shared'
15682 rdos*)
15683 lt_prog_compiler_static='-non_shared'
15686 solaris*)
15687 lt_prog_compiler_pic='-KPIC'
15688 lt_prog_compiler_static='-Bstatic'
15689 case $cc_basename in
15690 f77* | f90* | f95*)
15691 lt_prog_compiler_wl='-Qoption ld ';;
15693 lt_prog_compiler_wl='-Wl,';;
15694 esac
15697 sunos4*)
15698 lt_prog_compiler_wl='-Qoption ld '
15699 lt_prog_compiler_pic='-PIC'
15700 lt_prog_compiler_static='-Bstatic'
15703 sysv4 | sysv4.2uw2* | sysv4.3*)
15704 lt_prog_compiler_wl='-Wl,'
15705 lt_prog_compiler_pic='-KPIC'
15706 lt_prog_compiler_static='-Bstatic'
15709 sysv4*MP*)
15710 if test -d /usr/nec ;then
15711 lt_prog_compiler_pic='-Kconform_pic'
15712 lt_prog_compiler_static='-Bstatic'
15716 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15717 lt_prog_compiler_wl='-Wl,'
15718 lt_prog_compiler_pic='-KPIC'
15719 lt_prog_compiler_static='-Bstatic'
15722 unicos*)
15723 lt_prog_compiler_wl='-Wl,'
15724 lt_prog_compiler_can_build_shared=no
15727 uts4*)
15728 lt_prog_compiler_pic='-pic'
15729 lt_prog_compiler_static='-Bstatic'
15733 lt_prog_compiler_can_build_shared=no
15735 esac
15738 case $host_os in
15739 # For platforms which do not support PIC, -DPIC is meaningless:
15740 *djgpp*)
15741 lt_prog_compiler_pic=
15744 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15746 esac
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15748 $as_echo "$lt_prog_compiler_pic" >&6; }
15756 # Check to make sure the PIC flag actually works.
15758 if test -n "$lt_prog_compiler_pic"; then
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15760 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15761 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15762 $as_echo_n "(cached) " >&6
15763 else
15764 lt_cv_prog_compiler_pic_works=no
15765 ac_outfile=conftest.$ac_objext
15766 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15767 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15768 # Insert the option either (1) after the last *FLAGS variable, or
15769 # (2) before a word containing "conftest.", or (3) at the end.
15770 # Note that $ac_compile itself does not contain backslashes and begins
15771 # with a dollar sign (not a hyphen), so the echo should work correctly.
15772 # The option is referenced via a variable to avoid confusing sed.
15773 lt_compile=`echo "$ac_compile" | $SED \
15774 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15775 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15776 -e 's:$: $lt_compiler_flag:'`
15777 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15778 (eval "$lt_compile" 2>conftest.err)
15779 ac_status=$?
15780 cat conftest.err >&5
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 if (exit $ac_status) && test -s "$ac_outfile"; then
15783 # The compiler can only warn and ignore the option if not recognized
15784 # So say no if there are warnings other than the usual output.
15785 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15786 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15787 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15788 lt_cv_prog_compiler_pic_works=yes
15791 $RM conftest*
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15795 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15797 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15798 case $lt_prog_compiler_pic in
15799 "" | " "*) ;;
15800 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15801 esac
15802 else
15803 lt_prog_compiler_pic=
15804 lt_prog_compiler_can_build_shared=no
15815 # Check to make sure the static flag actually works.
15817 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15819 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15820 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15821 $as_echo_n "(cached) " >&6
15822 else
15823 lt_cv_prog_compiler_static_works=no
15824 save_LDFLAGS="$LDFLAGS"
15825 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15826 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15827 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15828 # The linker can only warn and ignore the option if not recognized
15829 # So say no if there are warnings
15830 if test -s conftest.err; then
15831 # Append any errors to the config.log.
15832 cat conftest.err 1>&5
15833 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15834 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15835 if diff conftest.exp conftest.er2 >/dev/null; then
15836 lt_cv_prog_compiler_static_works=yes
15838 else
15839 lt_cv_prog_compiler_static_works=yes
15842 $RM -r conftest*
15843 LDFLAGS="$save_LDFLAGS"
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15847 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15849 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15851 else
15852 lt_prog_compiler_static=
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15862 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15863 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15864 $as_echo_n "(cached) " >&6
15865 else
15866 lt_cv_prog_compiler_c_o=no
15867 $RM -r conftest 2>/dev/null
15868 mkdir conftest
15869 cd conftest
15870 mkdir out
15871 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15873 lt_compiler_flag="-o out/conftest2.$ac_objext"
15874 # Insert the option either (1) after the last *FLAGS variable, or
15875 # (2) before a word containing "conftest.", or (3) at the end.
15876 # Note that $ac_compile itself does not contain backslashes and begins
15877 # with a dollar sign (not a hyphen), so the echo should work correctly.
15878 lt_compile=`echo "$ac_compile" | $SED \
15879 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15881 -e 's:$: $lt_compiler_flag:'`
15882 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15883 (eval "$lt_compile" 2>out/conftest.err)
15884 ac_status=$?
15885 cat out/conftest.err >&5
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15888 then
15889 # The compiler can only warn and ignore the option if not recognized
15890 # So say no if there are warnings
15891 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15892 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15893 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15894 lt_cv_prog_compiler_c_o=yes
15897 chmod u+w . 2>&5
15898 $RM conftest*
15899 # SGI C++ compiler will create directory out/ii_files/ for
15900 # template instantiation
15901 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15902 $RM out/* && rmdir out
15903 cd ..
15904 $RM -r conftest
15905 $RM conftest*
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15909 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15917 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15918 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15919 $as_echo_n "(cached) " >&6
15920 else
15921 lt_cv_prog_compiler_c_o=no
15922 $RM -r conftest 2>/dev/null
15923 mkdir conftest
15924 cd conftest
15925 mkdir out
15926 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15928 lt_compiler_flag="-o out/conftest2.$ac_objext"
15929 # Insert the option either (1) after the last *FLAGS variable, or
15930 # (2) before a word containing "conftest.", or (3) at the end.
15931 # Note that $ac_compile itself does not contain backslashes and begins
15932 # with a dollar sign (not a hyphen), so the echo should work correctly.
15933 lt_compile=`echo "$ac_compile" | $SED \
15934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15936 -e 's:$: $lt_compiler_flag:'`
15937 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15938 (eval "$lt_compile" 2>out/conftest.err)
15939 ac_status=$?
15940 cat out/conftest.err >&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15943 then
15944 # The compiler can only warn and ignore the option if not recognized
15945 # So say no if there are warnings
15946 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15947 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15948 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15949 lt_cv_prog_compiler_c_o=yes
15952 chmod u+w . 2>&5
15953 $RM conftest*
15954 # SGI C++ compiler will create directory out/ii_files/ for
15955 # template instantiation
15956 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15957 $RM out/* && rmdir out
15958 cd ..
15959 $RM -r conftest
15960 $RM conftest*
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15964 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15969 hard_links="nottested"
15970 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15971 # do not overwrite the value of need_locks provided by the user
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15973 $as_echo_n "checking if we can lock with hard links... " >&6; }
15974 hard_links=yes
15975 $RM conftest*
15976 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15977 touch conftest.a
15978 ln conftest.a conftest.b 2>&5 || hard_links=no
15979 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15981 $as_echo "$hard_links" >&6; }
15982 if test "$hard_links" = no; then
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15984 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15985 need_locks=warn
15987 else
15988 need_locks=no
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15997 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15999 runpath_var=
16000 allow_undefined_flag=
16001 always_export_symbols=no
16002 archive_cmds=
16003 archive_expsym_cmds=
16004 compiler_needs_object=no
16005 enable_shared_with_static_runtimes=no
16006 export_dynamic_flag_spec=
16007 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16008 hardcode_automatic=no
16009 hardcode_direct=no
16010 hardcode_direct_absolute=no
16011 hardcode_libdir_flag_spec=
16012 hardcode_libdir_flag_spec_ld=
16013 hardcode_libdir_separator=
16014 hardcode_minus_L=no
16015 hardcode_shlibpath_var=unsupported
16016 inherit_rpath=no
16017 link_all_deplibs=unknown
16018 module_cmds=
16019 module_expsym_cmds=
16020 old_archive_from_new_cmds=
16021 old_archive_from_expsyms_cmds=
16022 thread_safe_flag_spec=
16023 whole_archive_flag_spec=
16024 # include_expsyms should be a list of space-separated symbols to be *always*
16025 # included in the symbol list
16026 include_expsyms=
16027 # exclude_expsyms can be an extended regexp of symbols to exclude
16028 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16029 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16030 # as well as any symbol that contains `d'.
16031 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16032 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16033 # platforms (ab)use it in PIC code, but their linkers get confused if
16034 # the symbol is explicitly referenced. Since portable code cannot
16035 # rely on this symbol name, it's probably fine to never include it in
16036 # preloaded symbol tables.
16037 # Exclude shared library initialization/finalization symbols.
16038 extract_expsyms_cmds=
16040 case $host_os in
16041 cygwin* | mingw* | pw32* | cegcc*)
16042 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16043 # When not using gcc, we currently assume that we are using
16044 # Microsoft Visual C++.
16045 if test "$GCC" != yes; then
16046 with_gnu_ld=no
16049 interix*)
16050 # we just hope/assume this is gcc and not c89 (= MSVC++)
16051 with_gnu_ld=yes
16053 openbsd*)
16054 with_gnu_ld=no
16056 esac
16058 ld_shlibs=yes
16060 # On some targets, GNU ld is compatible enough with the native linker
16061 # that we're better off using the native interface for both.
16062 lt_use_gnu_ld_interface=no
16063 if test "$with_gnu_ld" = yes; then
16064 case $host_os in
16065 aix*)
16066 # The AIX port of GNU ld has always aspired to compatibility
16067 # with the native linker. However, as the warning in the GNU ld
16068 # block says, versions before 2.19.5* couldn't really create working
16069 # shared libraries, regardless of the interface used.
16070 case `$LD -v 2>&1` in
16071 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16072 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16073 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16075 lt_use_gnu_ld_interface=yes
16077 esac
16080 lt_use_gnu_ld_interface=yes
16082 esac
16085 if test "$lt_use_gnu_ld_interface" = yes; then
16086 # If archive_cmds runs LD, not CC, wlarc should be empty
16087 wlarc='${wl}'
16089 # Set some defaults for GNU ld with shared library support. These
16090 # are reset later if shared libraries are not supported. Putting them
16091 # here allows them to be overridden if necessary.
16092 runpath_var=LD_RUN_PATH
16093 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16094 export_dynamic_flag_spec='${wl}--export-dynamic'
16095 # ancient GNU ld didn't support --whole-archive et. al.
16096 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16097 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16098 else
16099 whole_archive_flag_spec=
16101 supports_anon_versioning=no
16102 case `$LD -v 2>&1` in
16103 *GNU\ gold*) supports_anon_versioning=yes ;;
16104 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16105 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16106 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16107 *\ 2.11.*) ;; # other 2.11 versions
16108 *) supports_anon_versioning=yes ;;
16109 esac
16111 # See if GNU ld supports shared libraries.
16112 case $host_os in
16113 aix[3-9]*)
16114 # On AIX/PPC, the GNU linker is very broken
16115 if test "$host_cpu" != ia64; then
16116 ld_shlibs=no
16117 cat <<_LT_EOF 1>&2
16119 *** Warning: the GNU linker, at least up to release 2.19, is reported
16120 *** to be unable to reliably create shared libraries on AIX.
16121 *** Therefore, libtool is disabling shared libraries support. If you
16122 *** really care for shared libraries, you may want to install binutils
16123 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16124 *** You will then need to restart the configuration process.
16126 _LT_EOF
16130 amigaos*)
16131 case $host_cpu in
16132 powerpc)
16133 # see comment about AmigaOS4 .so support
16134 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16135 archive_expsym_cmds=''
16137 m68k)
16138 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)'
16139 hardcode_libdir_flag_spec='-L$libdir'
16140 hardcode_minus_L=yes
16142 esac
16145 beos*)
16146 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16147 allow_undefined_flag=unsupported
16148 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16149 # support --undefined. This deserves some investigation. FIXME
16150 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16151 else
16152 ld_shlibs=no
16156 cygwin* | mingw* | pw32* | cegcc*)
16157 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16158 # as there is no search path for DLLs.
16159 hardcode_libdir_flag_spec='-L$libdir'
16160 export_dynamic_flag_spec='${wl}--export-all-symbols'
16161 allow_undefined_flag=unsupported
16162 always_export_symbols=no
16163 enable_shared_with_static_runtimes=yes
16164 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16166 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16167 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16168 # If the export-symbols file already is a .def file (1st line
16169 # is EXPORTS), use it as is; otherwise, prepend...
16170 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16171 cp $export_symbols $output_objdir/$soname.def;
16172 else
16173 echo EXPORTS > $output_objdir/$soname.def;
16174 cat $export_symbols >> $output_objdir/$soname.def;
16176 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16177 else
16178 ld_shlibs=no
16182 haiku*)
16183 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16184 link_all_deplibs=yes
16187 interix[3-9]*)
16188 hardcode_direct=no
16189 hardcode_shlibpath_var=no
16190 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16191 export_dynamic_flag_spec='${wl}-E'
16192 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16193 # Instead, shared libraries are loaded at an image base (0x10000000 by
16194 # default) and relocated if they conflict, which is a slow very memory
16195 # consuming and fragmenting process. To avoid this, we pick a random,
16196 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16197 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16198 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16199 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'
16202 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16203 tmp_diet=no
16204 if test "$host_os" = linux-dietlibc; then
16205 case $cc_basename in
16206 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16207 esac
16209 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16210 && test "$tmp_diet" = no
16211 then
16212 tmp_addflag=' $pic_flag'
16213 tmp_sharedflag='-shared'
16214 case $cc_basename,$host_cpu in
16215 pgcc*) # Portland Group C compiler
16216 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'
16217 tmp_addflag=' $pic_flag'
16219 pgf77* | pgf90* | pgf95* | pgfortran*)
16220 # Portland Group f77 and f90 compilers
16221 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'
16222 tmp_addflag=' $pic_flag -Mnomain' ;;
16223 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16224 tmp_addflag=' -i_dynamic' ;;
16225 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16226 tmp_addflag=' -i_dynamic -nofor_main' ;;
16227 ifc* | ifort*) # Intel Fortran compiler
16228 tmp_addflag=' -nofor_main' ;;
16229 lf95*) # Lahey Fortran 8.1
16230 whole_archive_flag_spec=
16231 tmp_sharedflag='--shared' ;;
16232 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16233 tmp_sharedflag='-qmkshrobj'
16234 tmp_addflag= ;;
16235 nvcc*) # Cuda Compiler Driver 2.2
16236 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'
16237 compiler_needs_object=yes
16239 esac
16240 case `$CC -V 2>&1 | sed 5q` in
16241 *Sun\ C*) # Sun C 5.9
16242 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'
16243 compiler_needs_object=yes
16244 tmp_sharedflag='-G' ;;
16245 *Sun\ F*) # Sun Fortran 8.3
16246 tmp_sharedflag='-G' ;;
16247 esac
16248 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16250 if test "x$supports_anon_versioning" = xyes; then
16251 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16252 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16253 echo "local: *; };" >> $output_objdir/$libname.ver~
16254 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16257 case $cc_basename in
16258 xlf* | bgf* | bgxlf* | mpixlf*)
16259 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16260 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16261 hardcode_libdir_flag_spec=
16262 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16263 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16264 if test "x$supports_anon_versioning" = xyes; then
16265 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16266 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16267 echo "local: *; };" >> $output_objdir/$libname.ver~
16268 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16271 esac
16272 else
16273 ld_shlibs=no
16277 netbsd*)
16278 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16279 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16280 wlarc=
16281 else
16282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16283 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16287 solaris*)
16288 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16289 ld_shlibs=no
16290 cat <<_LT_EOF 1>&2
16292 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16293 *** create shared libraries on Solaris systems. Therefore, libtool
16294 *** is disabling shared libraries support. We urge you to upgrade GNU
16295 *** binutils to release 2.9.1 or newer. Another option is to modify
16296 *** your PATH or compiler configuration so that the native linker is
16297 *** used, and then restart.
16299 _LT_EOF
16300 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16301 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16302 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16303 else
16304 ld_shlibs=no
16308 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16309 case `$LD -v 2>&1` in
16310 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16311 ld_shlibs=no
16312 cat <<_LT_EOF 1>&2
16314 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16315 *** reliably create shared libraries on SCO systems. Therefore, libtool
16316 *** is disabling shared libraries support. We urge you to upgrade GNU
16317 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16318 *** your PATH or compiler configuration so that the native linker is
16319 *** used, and then restart.
16321 _LT_EOF
16324 # For security reasons, it is highly recommended that you always
16325 # use absolute paths for naming shared libraries, and exclude the
16326 # DT_RUNPATH tag from executables and libraries. But doing so
16327 # requires that you compile everything twice, which is a pain.
16328 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16329 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16330 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16331 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16332 else
16333 ld_shlibs=no
16336 esac
16339 sunos4*)
16340 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16341 wlarc=
16342 hardcode_direct=yes
16343 hardcode_shlibpath_var=no
16347 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16348 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16349 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16350 else
16351 ld_shlibs=no
16354 esac
16356 if test "$ld_shlibs" = no; then
16357 runpath_var=
16358 hardcode_libdir_flag_spec=
16359 export_dynamic_flag_spec=
16360 whole_archive_flag_spec=
16362 else
16363 # PORTME fill in a description of your system's linker (not GNU ld)
16364 case $host_os in
16365 aix3*)
16366 allow_undefined_flag=unsupported
16367 always_export_symbols=yes
16368 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'
16369 # Note: this linker hardcodes the directories in LIBPATH if there
16370 # are no directories specified by -L.
16371 hardcode_minus_L=yes
16372 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16373 # Neither direct hardcoding nor static linking is supported with a
16374 # broken collect2.
16375 hardcode_direct=unsupported
16379 aix[4-9]*)
16380 if test "$host_cpu" = ia64; then
16381 # On IA64, the linker does run time linking by default, so we don't
16382 # have to do anything special.
16383 aix_use_runtimelinking=no
16384 exp_sym_flag='-Bexport'
16385 no_entry_flag=""
16386 else
16387 # If we're using GNU nm, then we don't want the "-C" option.
16388 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16389 # Also, AIX nm treats weak defined symbols like other global
16390 # defined symbols, whereas GNU nm marks them as "W".
16391 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16392 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'
16393 else
16394 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'
16396 aix_use_runtimelinking=no
16398 # Test if we are trying to use run time linking or normal
16399 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16400 # need to do runtime linking.
16401 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16402 for ld_flag in $LDFLAGS; do
16403 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16404 aix_use_runtimelinking=yes
16405 break
16407 done
16409 esac
16411 exp_sym_flag='-bexport'
16412 no_entry_flag='-bnoentry'
16415 # When large executables or shared objects are built, AIX ld can
16416 # have problems creating the table of contents. If linking a library
16417 # or program results in "error TOC overflow" add -mminimal-toc to
16418 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16419 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16421 archive_cmds=''
16422 hardcode_direct=yes
16423 hardcode_direct_absolute=yes
16424 hardcode_libdir_separator=':'
16425 link_all_deplibs=yes
16426 file_list_spec='${wl}-f,'
16428 if test "$GCC" = yes; then
16429 case $host_os in aix4.[012]|aix4.[012].*)
16430 # We only want to do this on AIX 4.2 and lower, the check
16431 # below for broken collect2 doesn't work under 4.3+
16432 collect2name=`${CC} -print-prog-name=collect2`
16433 if test -f "$collect2name" &&
16434 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16435 then
16436 # We have reworked collect2
16438 else
16439 # We have old collect2
16440 hardcode_direct=unsupported
16441 # It fails to find uninstalled libraries when the uninstalled
16442 # path is not listed in the libpath. Setting hardcode_minus_L
16443 # to unsupported forces relinking
16444 hardcode_minus_L=yes
16445 hardcode_libdir_flag_spec='-L$libdir'
16446 hardcode_libdir_separator=
16449 esac
16450 shared_flag='-shared'
16451 if test "$aix_use_runtimelinking" = yes; then
16452 shared_flag="$shared_flag "'${wl}-G'
16454 else
16455 # not using gcc
16456 if test "$host_cpu" = ia64; then
16457 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16458 # chokes on -Wl,-G. The following line is correct:
16459 shared_flag='-G'
16460 else
16461 if test "$aix_use_runtimelinking" = yes; then
16462 shared_flag='${wl}-G'
16463 else
16464 shared_flag='${wl}-bM:SRE'
16469 export_dynamic_flag_spec='${wl}-bexpall'
16470 # It seems that -bexpall does not export symbols beginning with
16471 # underscore (_), so it is better to generate a list of symbols to export.
16472 always_export_symbols=yes
16473 if test "$aix_use_runtimelinking" = yes; then
16474 # Warning - without using the other runtime loading flags (-brtl),
16475 # -berok will link without error, but may produce a broken library.
16476 allow_undefined_flag='-berok'
16477 # Determine the default libpath from the value encoded in an
16478 # empty executable.
16479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16480 /* end confdefs.h. */
16483 main ()
16487 return 0;
16489 _ACEOF
16490 if ac_fn_c_try_link "$LINENO"; then :
16492 lt_aix_libpath_sed='
16493 /Import File Strings/,/^$/ {
16494 /^0/ {
16495 s/^0 *\(.*\)$/\1/
16499 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16500 # Check for a 64-bit object if we didn't find anything.
16501 if test -z "$aix_libpath"; then
16502 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16505 rm -f core conftest.err conftest.$ac_objext \
16506 conftest$ac_exeext conftest.$ac_ext
16507 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16509 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16510 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"
16511 else
16512 if test "$host_cpu" = ia64; then
16513 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16514 allow_undefined_flag="-z nodefs"
16515 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"
16516 else
16517 # Determine the default libpath from the value encoded in an
16518 # empty executable.
16519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16520 /* end confdefs.h. */
16523 main ()
16527 return 0;
16529 _ACEOF
16530 if ac_fn_c_try_link "$LINENO"; then :
16532 lt_aix_libpath_sed='
16533 /Import File Strings/,/^$/ {
16534 /^0/ {
16535 s/^0 *\(.*\)$/\1/
16539 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16540 # Check for a 64-bit object if we didn't find anything.
16541 if test -z "$aix_libpath"; then
16542 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16545 rm -f core conftest.err conftest.$ac_objext \
16546 conftest$ac_exeext conftest.$ac_ext
16547 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16549 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16550 # Warning - without using the other run time loading flags,
16551 # -berok will link without error, but may produce a broken library.
16552 no_undefined_flag=' ${wl}-bernotok'
16553 allow_undefined_flag=' ${wl}-berok'
16554 if test "$with_gnu_ld" = yes; then
16555 # We only use this code for GNU lds that support --whole-archive.
16556 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16557 else
16558 # Exported symbols can be pulled into shared objects from archives
16559 whole_archive_flag_spec='$convenience'
16561 archive_cmds_need_lc=yes
16562 # This is similar to how AIX traditionally builds its shared libraries.
16563 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'
16568 amigaos*)
16569 case $host_cpu in
16570 powerpc)
16571 # see comment about AmigaOS4 .so support
16572 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16573 archive_expsym_cmds=''
16575 m68k)
16576 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)'
16577 hardcode_libdir_flag_spec='-L$libdir'
16578 hardcode_minus_L=yes
16580 esac
16583 bsdi[45]*)
16584 export_dynamic_flag_spec=-rdynamic
16587 cygwin* | mingw* | pw32* | cegcc*)
16588 # When not using gcc, we currently assume that we are using
16589 # Microsoft Visual C++.
16590 # hardcode_libdir_flag_spec is actually meaningless, as there is
16591 # no search path for DLLs.
16592 hardcode_libdir_flag_spec=' '
16593 allow_undefined_flag=unsupported
16594 # Tell ltmain to make .lib files, not .a files.
16595 libext=lib
16596 # Tell ltmain to make .dll files, not .so files.
16597 shrext_cmds=".dll"
16598 # FIXME: Setting linknames here is a bad hack.
16599 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16600 # The linker will automatically build a .lib file if we build a DLL.
16601 old_archive_from_new_cmds='true'
16602 # FIXME: Should let the user specify the lib program.
16603 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16604 fix_srcfile_path='`cygpath -w "$srcfile"`'
16605 enable_shared_with_static_runtimes=yes
16608 darwin* | rhapsody*)
16611 archive_cmds_need_lc=no
16612 hardcode_direct=no
16613 hardcode_automatic=yes
16614 hardcode_shlibpath_var=unsupported
16615 if test "$lt_cv_ld_force_load" = "yes"; then
16616 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\"`'
16617 else
16618 whole_archive_flag_spec=''
16620 link_all_deplibs=yes
16621 allow_undefined_flag="$_lt_dar_allow_undefined"
16622 case $cc_basename in
16623 ifort*) _lt_dar_can_shared=yes ;;
16624 *) _lt_dar_can_shared=$GCC ;;
16625 esac
16626 if test "$_lt_dar_can_shared" = "yes"; then
16627 output_verbose_link_cmd=func_echo_all
16628 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16629 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16630 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}"
16631 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}"
16633 else
16634 ld_shlibs=no
16639 dgux*)
16640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16641 hardcode_libdir_flag_spec='-L$libdir'
16642 hardcode_shlibpath_var=no
16645 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16646 # support. Future versions do this automatically, but an explicit c++rt0.o
16647 # does not break anything, and helps significantly (at the cost of a little
16648 # extra space).
16649 freebsd2.2*)
16650 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16651 hardcode_libdir_flag_spec='-R$libdir'
16652 hardcode_direct=yes
16653 hardcode_shlibpath_var=no
16656 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16657 freebsd2.*)
16658 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16659 hardcode_direct=yes
16660 hardcode_minus_L=yes
16661 hardcode_shlibpath_var=no
16664 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16665 freebsd* | dragonfly*)
16666 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16667 hardcode_libdir_flag_spec='-R$libdir'
16668 hardcode_direct=yes
16669 hardcode_shlibpath_var=no
16672 hpux9*)
16673 if test "$GCC" = yes; then
16674 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'
16675 else
16676 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'
16678 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16679 hardcode_libdir_separator=:
16680 hardcode_direct=yes
16682 # hardcode_minus_L: Not really in the search PATH,
16683 # but as the default location of the library.
16684 hardcode_minus_L=yes
16685 export_dynamic_flag_spec='${wl}-E'
16688 hpux10*)
16689 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16690 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16691 else
16692 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16694 if test "$with_gnu_ld" = no; then
16695 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16696 hardcode_libdir_flag_spec_ld='+b $libdir'
16697 hardcode_libdir_separator=:
16698 hardcode_direct=yes
16699 hardcode_direct_absolute=yes
16700 export_dynamic_flag_spec='${wl}-E'
16701 # hardcode_minus_L: Not really in the search PATH,
16702 # but as the default location of the library.
16703 hardcode_minus_L=yes
16707 hpux11*)
16708 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16709 case $host_cpu in
16710 hppa*64*)
16711 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16713 ia64*)
16714 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16717 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16719 esac
16720 else
16721 case $host_cpu in
16722 hppa*64*)
16723 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16725 ia64*)
16726 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16730 # Older versions of the 11.00 compiler do not understand -b yet
16731 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16733 $as_echo_n "checking if $CC understands -b... " >&6; }
16734 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16735 $as_echo_n "(cached) " >&6
16736 else
16737 lt_cv_prog_compiler__b=no
16738 save_LDFLAGS="$LDFLAGS"
16739 LDFLAGS="$LDFLAGS -b"
16740 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16741 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16742 # The linker can only warn and ignore the option if not recognized
16743 # So say no if there are warnings
16744 if test -s conftest.err; then
16745 # Append any errors to the config.log.
16746 cat conftest.err 1>&5
16747 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16748 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16749 if diff conftest.exp conftest.er2 >/dev/null; then
16750 lt_cv_prog_compiler__b=yes
16752 else
16753 lt_cv_prog_compiler__b=yes
16756 $RM -r conftest*
16757 LDFLAGS="$save_LDFLAGS"
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16761 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16763 if test x"$lt_cv_prog_compiler__b" = xyes; then
16764 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16765 else
16766 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16770 esac
16772 if test "$with_gnu_ld" = no; then
16773 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16774 hardcode_libdir_separator=:
16776 case $host_cpu in
16777 hppa*64*|ia64*)
16778 hardcode_direct=no
16779 hardcode_shlibpath_var=no
16782 hardcode_direct=yes
16783 hardcode_direct_absolute=yes
16784 export_dynamic_flag_spec='${wl}-E'
16786 # hardcode_minus_L: Not really in the search PATH,
16787 # but as the default location of the library.
16788 hardcode_minus_L=yes
16790 esac
16794 irix5* | irix6* | nonstopux*)
16795 if test "$GCC" = yes; then
16796 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'
16797 # Try to use the -exported_symbol ld option, if it does not
16798 # work, assume that -exports_file does not work either and
16799 # implicitly export all symbols.
16800 save_LDFLAGS="$LDFLAGS"
16801 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16803 /* end confdefs.h. */
16804 int foo(void) {}
16805 _ACEOF
16806 if ac_fn_c_try_link "$LINENO"; then :
16807 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'
16810 rm -f core conftest.err conftest.$ac_objext \
16811 conftest$ac_exeext conftest.$ac_ext
16812 LDFLAGS="$save_LDFLAGS"
16813 else
16814 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'
16815 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'
16817 archive_cmds_need_lc='no'
16818 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16819 hardcode_libdir_separator=:
16820 inherit_rpath=yes
16821 link_all_deplibs=yes
16824 netbsd*)
16825 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16826 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16827 else
16828 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16830 hardcode_libdir_flag_spec='-R$libdir'
16831 hardcode_direct=yes
16832 hardcode_shlibpath_var=no
16835 newsos6)
16836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16837 hardcode_direct=yes
16838 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16839 hardcode_libdir_separator=:
16840 hardcode_shlibpath_var=no
16843 *nto* | *qnx*)
16846 openbsd*)
16847 if test -f /usr/libexec/ld.so; then
16848 hardcode_direct=yes
16849 hardcode_shlibpath_var=no
16850 hardcode_direct_absolute=yes
16851 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16852 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16853 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16854 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16855 export_dynamic_flag_spec='${wl}-E'
16856 else
16857 case $host_os in
16858 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16859 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16860 hardcode_libdir_flag_spec='-R$libdir'
16863 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16864 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16866 esac
16868 else
16869 ld_shlibs=no
16873 os2*)
16874 hardcode_libdir_flag_spec='-L$libdir'
16875 hardcode_minus_L=yes
16876 allow_undefined_flag=unsupported
16877 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'
16878 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16881 osf3*)
16882 if test "$GCC" = yes; then
16883 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16884 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'
16885 else
16886 allow_undefined_flag=' -expect_unresolved \*'
16887 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'
16889 archive_cmds_need_lc='no'
16890 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16891 hardcode_libdir_separator=:
16894 osf4* | osf5*) # as osf3* with the addition of -msym flag
16895 if test "$GCC" = yes; then
16896 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16897 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'
16898 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16899 else
16900 allow_undefined_flag=' -expect_unresolved \*'
16901 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'
16902 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~
16903 $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'
16905 # Both c and cxx compiler support -rpath directly
16906 hardcode_libdir_flag_spec='-rpath $libdir'
16908 archive_cmds_need_lc='no'
16909 hardcode_libdir_separator=:
16912 solaris*)
16913 no_undefined_flag=' -z defs'
16914 if test "$GCC" = yes; then
16915 wlarc='${wl}'
16916 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16917 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16918 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16919 else
16920 case `$CC -V 2>&1` in
16921 *"Compilers 5.0"*)
16922 wlarc=''
16923 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16924 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16925 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16928 wlarc='${wl}'
16929 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16930 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16931 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16933 esac
16935 hardcode_libdir_flag_spec='-R$libdir'
16936 hardcode_shlibpath_var=no
16937 case $host_os in
16938 solaris2.[0-5] | solaris2.[0-5].*) ;;
16940 # The compiler driver will combine and reorder linker options,
16941 # but understands `-z linker_flag'. GCC discards it without `$wl',
16942 # but is careful enough not to reorder.
16943 # Supported since Solaris 2.6 (maybe 2.5.1?)
16944 if test "$GCC" = yes; then
16945 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16946 else
16947 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16950 esac
16951 link_all_deplibs=yes
16954 sunos4*)
16955 if test "x$host_vendor" = xsequent; then
16956 # Use $CC to link under sequent, because it throws in some extra .o
16957 # files that make .init and .fini sections work.
16958 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16959 else
16960 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16962 hardcode_libdir_flag_spec='-L$libdir'
16963 hardcode_direct=yes
16964 hardcode_minus_L=yes
16965 hardcode_shlibpath_var=no
16968 sysv4)
16969 case $host_vendor in
16970 sni)
16971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16972 hardcode_direct=yes # is this really true???
16974 siemens)
16975 ## LD is ld it makes a PLAMLIB
16976 ## CC just makes a GrossModule.
16977 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16978 reload_cmds='$CC -r -o $output$reload_objs'
16979 hardcode_direct=no
16981 motorola)
16982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16983 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16985 esac
16986 runpath_var='LD_RUN_PATH'
16987 hardcode_shlibpath_var=no
16990 sysv4.3*)
16991 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16992 hardcode_shlibpath_var=no
16993 export_dynamic_flag_spec='-Bexport'
16996 sysv4*MP*)
16997 if test -d /usr/nec; then
16998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16999 hardcode_shlibpath_var=no
17000 runpath_var=LD_RUN_PATH
17001 hardcode_runpath_var=yes
17002 ld_shlibs=yes
17006 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17007 no_undefined_flag='${wl}-z,text'
17008 archive_cmds_need_lc=no
17009 hardcode_shlibpath_var=no
17010 runpath_var='LD_RUN_PATH'
17012 if test "$GCC" = yes; then
17013 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17014 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17015 else
17016 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17017 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17021 sysv5* | sco3.2v5* | sco5v6*)
17022 # Note: We can NOT use -z defs as we might desire, because we do not
17023 # link with -lc, and that would cause any symbols used from libc to
17024 # always be unresolved, which means just about no library would
17025 # ever link correctly. If we're not using GNU ld we use -z text
17026 # though, which does catch some bad symbols but isn't as heavy-handed
17027 # as -z defs.
17028 no_undefined_flag='${wl}-z,text'
17029 allow_undefined_flag='${wl}-z,nodefs'
17030 archive_cmds_need_lc=no
17031 hardcode_shlibpath_var=no
17032 hardcode_libdir_flag_spec='${wl}-R,$libdir'
17033 hardcode_libdir_separator=':'
17034 link_all_deplibs=yes
17035 export_dynamic_flag_spec='${wl}-Bexport'
17036 runpath_var='LD_RUN_PATH'
17038 if test "$GCC" = yes; then
17039 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17040 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17041 else
17042 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17043 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17047 uts4*)
17048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17049 hardcode_libdir_flag_spec='-L$libdir'
17050 hardcode_shlibpath_var=no
17054 ld_shlibs=no
17056 esac
17058 if test x$host_vendor = xsni; then
17059 case $host in
17060 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17061 export_dynamic_flag_spec='${wl}-Blargedynsym'
17063 esac
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17068 $as_echo "$ld_shlibs" >&6; }
17069 test "$ld_shlibs" = no && can_build_shared=no
17071 with_gnu_ld=$with_gnu_ld
17088 # Do we need to explicitly link libc?
17090 case "x$archive_cmds_need_lc" in
17091 x|xyes)
17092 # Assume -lc should be added
17093 archive_cmds_need_lc=yes
17095 if test "$enable_shared" = yes && test "$GCC" = yes; then
17096 case $archive_cmds in
17097 *'~'*)
17098 # FIXME: we may have to deal with multi-command sequences.
17100 '$CC '*)
17101 # Test whether the compiler implicitly links with -lc since on some
17102 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17103 # to ld, don't add -lc before -lgcc.
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17105 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17106 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17107 $as_echo_n "(cached) " >&6
17108 else
17109 $RM conftest*
17110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17113 (eval $ac_compile) 2>&5
17114 ac_status=$?
17115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17116 test $ac_status = 0; } 2>conftest.err; then
17117 soname=conftest
17118 lib=conftest
17119 libobjs=conftest.$ac_objext
17120 deplibs=
17121 wl=$lt_prog_compiler_wl
17122 pic_flag=$lt_prog_compiler_pic
17123 compiler_flags=-v
17124 linker_flags=-v
17125 verstring=
17126 output_objdir=.
17127 libname=conftest
17128 lt_save_allow_undefined_flag=$allow_undefined_flag
17129 allow_undefined_flag=
17130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17131 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17132 ac_status=$?
17133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17134 test $ac_status = 0; }
17135 then
17136 lt_cv_archive_cmds_need_lc=no
17137 else
17138 lt_cv_archive_cmds_need_lc=yes
17140 allow_undefined_flag=$lt_save_allow_undefined_flag
17141 else
17142 cat conftest.err 1>&5
17144 $RM conftest*
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17148 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17149 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17151 esac
17154 esac
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17313 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17315 if test "$GCC" = yes; then
17316 case $host_os in
17317 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17318 *) lt_awk_arg="/^libraries:/" ;;
17319 esac
17320 case $host_os in
17321 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17322 *) lt_sed_strip_eq="s,=/,/,g" ;;
17323 esac
17324 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17325 case $lt_search_path_spec in
17326 *\;*)
17327 # if the path contains ";" then we assume it to be the separator
17328 # otherwise default to the standard path separator (i.e. ":") - it is
17329 # assumed that no part of a normal pathname contains ";" but that should
17330 # okay in the real world where ";" in dirpaths is itself problematic.
17331 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17334 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17336 esac
17337 # Ok, now we have the path, separated by spaces, we can step through it
17338 # and add multilib dir if necessary.
17339 lt_tmp_lt_search_path_spec=
17340 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17341 for lt_sys_path in $lt_search_path_spec; do
17342 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17343 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17344 else
17345 test -d "$lt_sys_path" && \
17346 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17348 done
17349 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17350 BEGIN {RS=" "; FS="/|\n";} {
17351 lt_foo="";
17352 lt_count=0;
17353 for (lt_i = NF; lt_i > 0; lt_i--) {
17354 if ($lt_i != "" && $lt_i != ".") {
17355 if ($lt_i == "..") {
17356 lt_count++;
17357 } else {
17358 if (lt_count == 0) {
17359 lt_foo="/" $lt_i lt_foo;
17360 } else {
17361 lt_count--;
17366 if (lt_foo != "") { lt_freq[lt_foo]++; }
17367 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17369 # AWK program above erroneously prepends '/' to C:/dos/paths
17370 # for these hosts.
17371 case $host_os in
17372 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17373 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17374 esac
17375 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17376 else
17377 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17379 library_names_spec=
17380 libname_spec='lib$name'
17381 soname_spec=
17382 shrext_cmds=".so"
17383 postinstall_cmds=
17384 postuninstall_cmds=
17385 finish_cmds=
17386 finish_eval=
17387 shlibpath_var=
17388 shlibpath_overrides_runpath=unknown
17389 version_type=none
17390 dynamic_linker="$host_os ld.so"
17391 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17392 need_lib_prefix=unknown
17393 hardcode_into_libs=no
17395 # when you set need_version to no, make sure it does not cause -set_version
17396 # flags to be left without arguments
17397 need_version=unknown
17399 case $host_os in
17400 aix3*)
17401 version_type=linux
17402 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17403 shlibpath_var=LIBPATH
17405 # AIX 3 has no versioning support, so we append a major version to the name.
17406 soname_spec='${libname}${release}${shared_ext}$major'
17409 aix[4-9]*)
17410 version_type=linux
17411 need_lib_prefix=no
17412 need_version=no
17413 hardcode_into_libs=yes
17414 if test "$host_cpu" = ia64; then
17415 # AIX 5 supports IA64
17416 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17417 shlibpath_var=LD_LIBRARY_PATH
17418 else
17419 # With GCC up to 2.95.x, collect2 would create an import file
17420 # for dependence libraries. The import file would start with
17421 # the line `#! .'. This would cause the generated library to
17422 # depend on `.', always an invalid library. This was fixed in
17423 # development snapshots of GCC prior to 3.0.
17424 case $host_os in
17425 aix4 | aix4.[01] | aix4.[01].*)
17426 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17427 echo ' yes '
17428 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17430 else
17431 can_build_shared=no
17434 esac
17435 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17436 # soname into executable. Probably we can add versioning support to
17437 # collect2, so additional links can be useful in future.
17438 if test "$aix_use_runtimelinking" = yes; then
17439 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17440 # instead of lib<name>.a to let people know that these are not
17441 # typical AIX shared libraries.
17442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17443 else
17444 # We preserve .a as extension for shared libraries through AIX4.2
17445 # and later when we are not doing run time linking.
17446 library_names_spec='${libname}${release}.a $libname.a'
17447 soname_spec='${libname}${release}${shared_ext}$major'
17449 shlibpath_var=LIBPATH
17453 amigaos*)
17454 case $host_cpu in
17455 powerpc)
17456 # Since July 2007 AmigaOS4 officially supports .so libraries.
17457 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17460 m68k)
17461 library_names_spec='$libname.ixlibrary $libname.a'
17462 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17463 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'
17465 esac
17468 beos*)
17469 library_names_spec='${libname}${shared_ext}'
17470 dynamic_linker="$host_os ld.so"
17471 shlibpath_var=LIBRARY_PATH
17474 bsdi[45]*)
17475 version_type=linux
17476 need_version=no
17477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17478 soname_spec='${libname}${release}${shared_ext}$major'
17479 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17480 shlibpath_var=LD_LIBRARY_PATH
17481 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17482 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17483 # the default ld.so.conf also contains /usr/contrib/lib and
17484 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17485 # libtool to hard-code these into programs
17488 cygwin* | mingw* | pw32* | cegcc*)
17489 version_type=windows
17490 shrext_cmds=".dll"
17491 need_version=no
17492 need_lib_prefix=no
17494 case $GCC,$host_os in
17495 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17496 library_names_spec='$libname.dll.a'
17497 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17498 postinstall_cmds='base_file=`basename \${file}`~
17499 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17500 dldir=$destdir/`dirname \$dlpath`~
17501 test -d \$dldir || mkdir -p \$dldir~
17502 $install_prog $dir/$dlname \$dldir/$dlname~
17503 chmod a+x \$dldir/$dlname~
17504 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17505 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17507 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17508 dlpath=$dir/\$dldll~
17509 $RM \$dlpath'
17510 shlibpath_overrides_runpath=yes
17512 case $host_os in
17513 cygwin*)
17514 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17515 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17517 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17519 mingw* | cegcc*)
17520 # MinGW DLLs use traditional 'lib' prefix
17521 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17523 pw32*)
17524 # pw32 DLLs use 'pw' prefix rather than 'lib'
17525 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17527 esac
17531 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17533 esac
17534 dynamic_linker='Win32 ld.exe'
17535 # FIXME: first we should search . and the directory the executable is in
17536 shlibpath_var=PATH
17539 darwin* | rhapsody*)
17540 dynamic_linker="$host_os dyld"
17541 version_type=darwin
17542 need_lib_prefix=no
17543 need_version=no
17544 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17545 soname_spec='${libname}${release}${major}$shared_ext'
17546 shlibpath_overrides_runpath=yes
17547 shlibpath_var=DYLD_LIBRARY_PATH
17548 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17550 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17551 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17554 dgux*)
17555 version_type=linux
17556 need_lib_prefix=no
17557 need_version=no
17558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17559 soname_spec='${libname}${release}${shared_ext}$major'
17560 shlibpath_var=LD_LIBRARY_PATH
17563 freebsd* | dragonfly*)
17564 # DragonFly does not have aout. When/if they implement a new
17565 # versioning mechanism, adjust this.
17566 if test -x /usr/bin/objformat; then
17567 objformat=`/usr/bin/objformat`
17568 else
17569 case $host_os in
17570 freebsd[23].*) objformat=aout ;;
17571 *) objformat=elf ;;
17572 esac
17574 version_type=freebsd-$objformat
17575 case $version_type in
17576 freebsd-elf*)
17577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17578 need_version=no
17579 need_lib_prefix=no
17581 freebsd-*)
17582 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17583 need_version=yes
17585 esac
17586 shlibpath_var=LD_LIBRARY_PATH
17587 case $host_os in
17588 freebsd2.*)
17589 shlibpath_overrides_runpath=yes
17591 freebsd3.[01]* | freebsdelf3.[01]*)
17592 shlibpath_overrides_runpath=yes
17593 hardcode_into_libs=yes
17595 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17596 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17597 shlibpath_overrides_runpath=no
17598 hardcode_into_libs=yes
17600 *) # from 4.6 on, and DragonFly
17601 shlibpath_overrides_runpath=yes
17602 hardcode_into_libs=yes
17604 esac
17607 gnu*)
17608 version_type=linux
17609 need_lib_prefix=no
17610 need_version=no
17611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17612 soname_spec='${libname}${release}${shared_ext}$major'
17613 shlibpath_var=LD_LIBRARY_PATH
17614 hardcode_into_libs=yes
17617 haiku*)
17618 version_type=linux
17619 need_lib_prefix=no
17620 need_version=no
17621 dynamic_linker="$host_os runtime_loader"
17622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17623 soname_spec='${libname}${release}${shared_ext}$major'
17624 shlibpath_var=LIBRARY_PATH
17625 shlibpath_overrides_runpath=yes
17626 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17627 hardcode_into_libs=yes
17630 hpux9* | hpux10* | hpux11*)
17631 # Give a soname corresponding to the major version so that dld.sl refuses to
17632 # link against other versions.
17633 version_type=sunos
17634 need_lib_prefix=no
17635 need_version=no
17636 case $host_cpu in
17637 ia64*)
17638 shrext_cmds='.so'
17639 hardcode_into_libs=yes
17640 dynamic_linker="$host_os dld.so"
17641 shlibpath_var=LD_LIBRARY_PATH
17642 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17644 soname_spec='${libname}${release}${shared_ext}$major'
17645 if test "X$HPUX_IA64_MODE" = X32; then
17646 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17647 else
17648 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17650 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17652 hppa*64*)
17653 shrext_cmds='.sl'
17654 hardcode_into_libs=yes
17655 dynamic_linker="$host_os dld.sl"
17656 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17657 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17659 soname_spec='${libname}${release}${shared_ext}$major'
17660 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17661 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17664 shrext_cmds='.sl'
17665 dynamic_linker="$host_os dld.sl"
17666 shlibpath_var=SHLIB_PATH
17667 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17669 soname_spec='${libname}${release}${shared_ext}$major'
17671 esac
17672 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17673 postinstall_cmds='chmod 555 $lib'
17674 # or fails outright, so override atomically:
17675 install_override_mode=555
17678 interix[3-9]*)
17679 version_type=linux
17680 need_lib_prefix=no
17681 need_version=no
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17685 shlibpath_var=LD_LIBRARY_PATH
17686 shlibpath_overrides_runpath=no
17687 hardcode_into_libs=yes
17690 irix5* | irix6* | nonstopux*)
17691 case $host_os in
17692 nonstopux*) version_type=nonstopux ;;
17694 if test "$lt_cv_prog_gnu_ld" = yes; then
17695 version_type=linux
17696 else
17697 version_type=irix
17698 fi ;;
17699 esac
17700 need_lib_prefix=no
17701 need_version=no
17702 soname_spec='${libname}${release}${shared_ext}$major'
17703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17704 case $host_os in
17705 irix5* | nonstopux*)
17706 libsuff= shlibsuff=
17709 case $LD in # libtool.m4 will add one of these switches to LD
17710 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17711 libsuff= shlibsuff= libmagic=32-bit;;
17712 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17713 libsuff=32 shlibsuff=N32 libmagic=N32;;
17714 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17715 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17716 *) libsuff= shlibsuff= libmagic=never-match;;
17717 esac
17719 esac
17720 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17721 shlibpath_overrides_runpath=no
17722 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17723 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17724 hardcode_into_libs=yes
17727 # No shared lib support for Linux oldld, aout, or coff.
17728 linux*oldld* | linux*aout* | linux*coff*)
17729 dynamic_linker=no
17732 # This must be Linux ELF.
17733 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17734 version_type=linux
17735 need_lib_prefix=no
17736 need_version=no
17737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17738 soname_spec='${libname}${release}${shared_ext}$major'
17739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17740 shlibpath_var=LD_LIBRARY_PATH
17741 shlibpath_overrides_runpath=no
17743 # Some binutils ld are patched to set DT_RUNPATH
17744 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17745 $as_echo_n "(cached) " >&6
17746 else
17747 lt_cv_shlibpath_overrides_runpath=no
17748 save_LDFLAGS=$LDFLAGS
17749 save_libdir=$libdir
17750 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17751 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17753 /* end confdefs.h. */
17756 main ()
17760 return 0;
17762 _ACEOF
17763 if ac_fn_c_try_link "$LINENO"; then :
17764 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17765 lt_cv_shlibpath_overrides_runpath=yes
17768 rm -f core conftest.err conftest.$ac_objext \
17769 conftest$ac_exeext conftest.$ac_ext
17770 LDFLAGS=$save_LDFLAGS
17771 libdir=$save_libdir
17775 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17777 # This implies no fast_install, which is unacceptable.
17778 # Some rework will be needed to allow for fast_install
17779 # before this can be enabled.
17780 hardcode_into_libs=yes
17782 # Append ld.so.conf contents to the search path
17783 if test -f /etc/ld.so.conf; then
17784 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' ' '`
17785 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17788 # We used to test for /lib/ld.so.1 and disable shared libraries on
17789 # powerpc, because MkLinux only supported shared libraries with the
17790 # GNU dynamic linker. Since this was broken with cross compilers,
17791 # most powerpc-linux boxes support dynamic linking these days and
17792 # people can always --disable-shared, the test was removed, and we
17793 # assume the GNU/Linux dynamic linker is in use.
17794 dynamic_linker='GNU/Linux ld.so'
17797 netbsd*)
17798 version_type=sunos
17799 need_lib_prefix=no
17800 need_version=no
17801 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17803 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17804 dynamic_linker='NetBSD (a.out) ld.so'
17805 else
17806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17807 soname_spec='${libname}${release}${shared_ext}$major'
17808 dynamic_linker='NetBSD ld.elf_so'
17810 shlibpath_var=LD_LIBRARY_PATH
17811 shlibpath_overrides_runpath=yes
17812 hardcode_into_libs=yes
17815 newsos6)
17816 version_type=linux
17817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17818 shlibpath_var=LD_LIBRARY_PATH
17819 shlibpath_overrides_runpath=yes
17822 *nto* | *qnx*)
17823 version_type=qnx
17824 need_lib_prefix=no
17825 need_version=no
17826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17827 soname_spec='${libname}${release}${shared_ext}$major'
17828 shlibpath_var=LD_LIBRARY_PATH
17829 shlibpath_overrides_runpath=no
17830 hardcode_into_libs=yes
17831 dynamic_linker='ldqnx.so'
17834 openbsd*)
17835 version_type=sunos
17836 sys_lib_dlsearch_path_spec="/usr/lib"
17837 need_lib_prefix=no
17838 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17839 case $host_os in
17840 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17841 *) need_version=no ;;
17842 esac
17843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17845 shlibpath_var=LD_LIBRARY_PATH
17846 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17847 case $host_os in
17848 openbsd2.[89] | openbsd2.[89].*)
17849 shlibpath_overrides_runpath=no
17852 shlibpath_overrides_runpath=yes
17854 esac
17855 else
17856 shlibpath_overrides_runpath=yes
17860 os2*)
17861 libname_spec='$name'
17862 shrext_cmds=".dll"
17863 need_lib_prefix=no
17864 library_names_spec='$libname${shared_ext} $libname.a'
17865 dynamic_linker='OS/2 ld.exe'
17866 shlibpath_var=LIBPATH
17869 osf3* | osf4* | osf5*)
17870 version_type=osf
17871 need_lib_prefix=no
17872 need_version=no
17873 soname_spec='${libname}${release}${shared_ext}$major'
17874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17875 shlibpath_var=LD_LIBRARY_PATH
17876 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17877 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17880 rdos*)
17881 dynamic_linker=no
17884 solaris*)
17885 version_type=linux
17886 need_lib_prefix=no
17887 need_version=no
17888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17889 soname_spec='${libname}${release}${shared_ext}$major'
17890 shlibpath_var=LD_LIBRARY_PATH
17891 shlibpath_overrides_runpath=yes
17892 hardcode_into_libs=yes
17893 # ldd complains unless libraries are executable
17894 postinstall_cmds='chmod +x $lib'
17897 sunos4*)
17898 version_type=sunos
17899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17900 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17901 shlibpath_var=LD_LIBRARY_PATH
17902 shlibpath_overrides_runpath=yes
17903 if test "$with_gnu_ld" = yes; then
17904 need_lib_prefix=no
17906 need_version=yes
17909 sysv4 | sysv4.3*)
17910 version_type=linux
17911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17912 soname_spec='${libname}${release}${shared_ext}$major'
17913 shlibpath_var=LD_LIBRARY_PATH
17914 case $host_vendor in
17915 sni)
17916 shlibpath_overrides_runpath=no
17917 need_lib_prefix=no
17918 runpath_var=LD_RUN_PATH
17920 siemens)
17921 need_lib_prefix=no
17923 motorola)
17924 need_lib_prefix=no
17925 need_version=no
17926 shlibpath_overrides_runpath=no
17927 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17929 esac
17932 sysv4*MP*)
17933 if test -d /usr/nec ;then
17934 version_type=linux
17935 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17936 soname_spec='$libname${shared_ext}.$major'
17937 shlibpath_var=LD_LIBRARY_PATH
17941 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17942 version_type=freebsd-elf
17943 need_lib_prefix=no
17944 need_version=no
17945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17946 soname_spec='${libname}${release}${shared_ext}$major'
17947 shlibpath_var=LD_LIBRARY_PATH
17948 shlibpath_overrides_runpath=yes
17949 hardcode_into_libs=yes
17950 if test "$with_gnu_ld" = yes; then
17951 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17952 else
17953 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17954 case $host_os in
17955 sco3.2v5*)
17956 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17958 esac
17960 sys_lib_dlsearch_path_spec='/usr/lib'
17963 tpf*)
17964 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17965 version_type=linux
17966 need_lib_prefix=no
17967 need_version=no
17968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17969 shlibpath_var=LD_LIBRARY_PATH
17970 shlibpath_overrides_runpath=no
17971 hardcode_into_libs=yes
17974 uts4*)
17975 version_type=linux
17976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17977 soname_spec='${libname}${release}${shared_ext}$major'
17978 shlibpath_var=LD_LIBRARY_PATH
17982 dynamic_linker=no
17984 esac
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17986 $as_echo "$dynamic_linker" >&6; }
17987 test "$dynamic_linker" = no && can_build_shared=no
17989 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17990 if test "$GCC" = yes; then
17991 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17994 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17995 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17997 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17998 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18093 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18094 hardcode_action=
18095 if test -n "$hardcode_libdir_flag_spec" ||
18096 test -n "$runpath_var" ||
18097 test "X$hardcode_automatic" = "Xyes" ; then
18099 # We can hardcode non-existent directories.
18100 if test "$hardcode_direct" != no &&
18101 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18102 # have to relink, otherwise we might link with an installed library
18103 # when we should be linking with a yet-to-be-installed one
18104 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18105 test "$hardcode_minus_L" != no; then
18106 # Linking always hardcodes the temporary library directory.
18107 hardcode_action=relink
18108 else
18109 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18110 hardcode_action=immediate
18112 else
18113 # We cannot hardcode anything, or else we can only hardcode existing
18114 # directories.
18115 hardcode_action=unsupported
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18118 $as_echo "$hardcode_action" >&6; }
18120 if test "$hardcode_action" = relink ||
18121 test "$inherit_rpath" = yes; then
18122 # Fast installation is not supported
18123 enable_fast_install=no
18124 elif test "$shlibpath_overrides_runpath" = yes ||
18125 test "$enable_shared" = no; then
18126 # Fast installation is not necessary
18127 enable_fast_install=needless
18135 if test "x$enable_dlopen" != xyes; then
18136 enable_dlopen=unknown
18137 enable_dlopen_self=unknown
18138 enable_dlopen_self_static=unknown
18139 else
18140 lt_cv_dlopen=no
18141 lt_cv_dlopen_libs=
18143 case $host_os in
18144 beos*)
18145 lt_cv_dlopen="load_add_on"
18146 lt_cv_dlopen_libs=
18147 lt_cv_dlopen_self=yes
18150 mingw* | pw32* | cegcc*)
18151 lt_cv_dlopen="LoadLibrary"
18152 lt_cv_dlopen_libs=
18155 cygwin*)
18156 lt_cv_dlopen="dlopen"
18157 lt_cv_dlopen_libs=
18160 darwin*)
18161 # if libdl is installed we need to link against it
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18163 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18164 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18165 $as_echo_n "(cached) " >&6
18166 else
18167 ac_check_lib_save_LIBS=$LIBS
18168 LIBS="-ldl $LIBS"
18169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18170 /* end confdefs.h. */
18172 /* Override any GCC internal prototype to avoid an error.
18173 Use char because int might match the return type of a GCC
18174 builtin and then its argument prototype would still apply. */
18175 #ifdef __cplusplus
18176 extern "C"
18177 #endif
18178 char dlopen ();
18180 main ()
18182 return dlopen ();
18184 return 0;
18186 _ACEOF
18187 if ac_fn_c_try_link "$LINENO"; then :
18188 ac_cv_lib_dl_dlopen=yes
18189 else
18190 ac_cv_lib_dl_dlopen=no
18192 rm -f core conftest.err conftest.$ac_objext \
18193 conftest$ac_exeext conftest.$ac_ext
18194 LIBS=$ac_check_lib_save_LIBS
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18197 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18198 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18199 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18200 else
18202 lt_cv_dlopen="dyld"
18203 lt_cv_dlopen_libs=
18204 lt_cv_dlopen_self=yes
18211 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18212 if test "x$ac_cv_func_shl_load" = x""yes; then :
18213 lt_cv_dlopen="shl_load"
18214 else
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18216 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18217 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18218 $as_echo_n "(cached) " >&6
18219 else
18220 ac_check_lib_save_LIBS=$LIBS
18221 LIBS="-ldld $LIBS"
18222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18223 /* end confdefs.h. */
18225 /* Override any GCC internal prototype to avoid an error.
18226 Use char because int might match the return type of a GCC
18227 builtin and then its argument prototype would still apply. */
18228 #ifdef __cplusplus
18229 extern "C"
18230 #endif
18231 char shl_load ();
18233 main ()
18235 return shl_load ();
18237 return 0;
18239 _ACEOF
18240 if ac_fn_c_try_link "$LINENO"; then :
18241 ac_cv_lib_dld_shl_load=yes
18242 else
18243 ac_cv_lib_dld_shl_load=no
18245 rm -f core conftest.err conftest.$ac_objext \
18246 conftest$ac_exeext conftest.$ac_ext
18247 LIBS=$ac_check_lib_save_LIBS
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18250 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18251 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18252 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
18253 else
18254 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18255 if test "x$ac_cv_func_dlopen" = x""yes; then :
18256 lt_cv_dlopen="dlopen"
18257 else
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18259 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18260 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18261 $as_echo_n "(cached) " >&6
18262 else
18263 ac_check_lib_save_LIBS=$LIBS
18264 LIBS="-ldl $LIBS"
18265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18266 /* end confdefs.h. */
18268 /* Override any GCC internal prototype to avoid an error.
18269 Use char because int might match the return type of a GCC
18270 builtin and then its argument prototype would still apply. */
18271 #ifdef __cplusplus
18272 extern "C"
18273 #endif
18274 char dlopen ();
18276 main ()
18278 return dlopen ();
18280 return 0;
18282 _ACEOF
18283 if ac_fn_c_try_link "$LINENO"; then :
18284 ac_cv_lib_dl_dlopen=yes
18285 else
18286 ac_cv_lib_dl_dlopen=no
18288 rm -f core conftest.err conftest.$ac_objext \
18289 conftest$ac_exeext conftest.$ac_ext
18290 LIBS=$ac_check_lib_save_LIBS
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18293 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18294 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18295 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18296 else
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18298 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18299 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18300 $as_echo_n "(cached) " >&6
18301 else
18302 ac_check_lib_save_LIBS=$LIBS
18303 LIBS="-lsvld $LIBS"
18304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18305 /* end confdefs.h. */
18307 /* Override any GCC internal prototype to avoid an error.
18308 Use char because int might match the return type of a GCC
18309 builtin and then its argument prototype would still apply. */
18310 #ifdef __cplusplus
18311 extern "C"
18312 #endif
18313 char dlopen ();
18315 main ()
18317 return dlopen ();
18319 return 0;
18321 _ACEOF
18322 if ac_fn_c_try_link "$LINENO"; then :
18323 ac_cv_lib_svld_dlopen=yes
18324 else
18325 ac_cv_lib_svld_dlopen=no
18327 rm -f core conftest.err conftest.$ac_objext \
18328 conftest$ac_exeext conftest.$ac_ext
18329 LIBS=$ac_check_lib_save_LIBS
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18332 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18333 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18334 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18335 else
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18337 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18338 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18339 $as_echo_n "(cached) " >&6
18340 else
18341 ac_check_lib_save_LIBS=$LIBS
18342 LIBS="-ldld $LIBS"
18343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18344 /* end confdefs.h. */
18346 /* Override any GCC internal prototype to avoid an error.
18347 Use char because int might match the return type of a GCC
18348 builtin and then its argument prototype would still apply. */
18349 #ifdef __cplusplus
18350 extern "C"
18351 #endif
18352 char dld_link ();
18354 main ()
18356 return dld_link ();
18358 return 0;
18360 _ACEOF
18361 if ac_fn_c_try_link "$LINENO"; then :
18362 ac_cv_lib_dld_dld_link=yes
18363 else
18364 ac_cv_lib_dld_dld_link=no
18366 rm -f core conftest.err conftest.$ac_objext \
18367 conftest$ac_exeext conftest.$ac_ext
18368 LIBS=$ac_check_lib_save_LIBS
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18371 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18372 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18373 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18392 esac
18394 if test "x$lt_cv_dlopen" != xno; then
18395 enable_dlopen=yes
18396 else
18397 enable_dlopen=no
18400 case $lt_cv_dlopen in
18401 dlopen)
18402 save_CPPFLAGS="$CPPFLAGS"
18403 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18405 save_LDFLAGS="$LDFLAGS"
18406 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18408 save_LIBS="$LIBS"
18409 LIBS="$lt_cv_dlopen_libs $LIBS"
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18412 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18413 if test "${lt_cv_dlopen_self+set}" = set; then :
18414 $as_echo_n "(cached) " >&6
18415 else
18416 if test "$cross_compiling" = yes; then :
18417 lt_cv_dlopen_self=cross
18418 else
18419 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18420 lt_status=$lt_dlunknown
18421 cat > conftest.$ac_ext <<_LT_EOF
18422 #line 18422 "configure"
18423 #include "confdefs.h"
18425 #if HAVE_DLFCN_H
18426 #include <dlfcn.h>
18427 #endif
18429 #include <stdio.h>
18431 #ifdef RTLD_GLOBAL
18432 # define LT_DLGLOBAL RTLD_GLOBAL
18433 #else
18434 # ifdef DL_GLOBAL
18435 # define LT_DLGLOBAL DL_GLOBAL
18436 # else
18437 # define LT_DLGLOBAL 0
18438 # endif
18439 #endif
18441 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18442 find out it does not work in some platform. */
18443 #ifndef LT_DLLAZY_OR_NOW
18444 # ifdef RTLD_LAZY
18445 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18446 # else
18447 # ifdef DL_LAZY
18448 # define LT_DLLAZY_OR_NOW DL_LAZY
18449 # else
18450 # ifdef RTLD_NOW
18451 # define LT_DLLAZY_OR_NOW RTLD_NOW
18452 # else
18453 # ifdef DL_NOW
18454 # define LT_DLLAZY_OR_NOW DL_NOW
18455 # else
18456 # define LT_DLLAZY_OR_NOW 0
18457 # endif
18458 # endif
18459 # endif
18460 # endif
18461 #endif
18463 /* When -fvisbility=hidden is used, assume the code has been annotated
18464 correspondingly for the symbols needed. */
18465 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18466 void fnord () __attribute__((visibility("default")));
18467 #endif
18469 void fnord () { int i=42; }
18470 int main ()
18472 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18473 int status = $lt_dlunknown;
18475 if (self)
18477 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18478 else
18480 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18481 else puts (dlerror ());
18483 /* dlclose (self); */
18485 else
18486 puts (dlerror ());
18488 return status;
18490 _LT_EOF
18491 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18492 (eval $ac_link) 2>&5
18493 ac_status=$?
18494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18495 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18496 (./conftest; exit; ) >&5 2>/dev/null
18497 lt_status=$?
18498 case x$lt_status in
18499 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18500 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18501 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18502 esac
18503 else :
18504 # compilation failed
18505 lt_cv_dlopen_self=no
18508 rm -fr conftest*
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18513 $as_echo "$lt_cv_dlopen_self" >&6; }
18515 if test "x$lt_cv_dlopen_self" = xyes; then
18516 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18518 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18519 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18520 $as_echo_n "(cached) " >&6
18521 else
18522 if test "$cross_compiling" = yes; then :
18523 lt_cv_dlopen_self_static=cross
18524 else
18525 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18526 lt_status=$lt_dlunknown
18527 cat > conftest.$ac_ext <<_LT_EOF
18528 #line 18528 "configure"
18529 #include "confdefs.h"
18531 #if HAVE_DLFCN_H
18532 #include <dlfcn.h>
18533 #endif
18535 #include <stdio.h>
18537 #ifdef RTLD_GLOBAL
18538 # define LT_DLGLOBAL RTLD_GLOBAL
18539 #else
18540 # ifdef DL_GLOBAL
18541 # define LT_DLGLOBAL DL_GLOBAL
18542 # else
18543 # define LT_DLGLOBAL 0
18544 # endif
18545 #endif
18547 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18548 find out it does not work in some platform. */
18549 #ifndef LT_DLLAZY_OR_NOW
18550 # ifdef RTLD_LAZY
18551 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18552 # else
18553 # ifdef DL_LAZY
18554 # define LT_DLLAZY_OR_NOW DL_LAZY
18555 # else
18556 # ifdef RTLD_NOW
18557 # define LT_DLLAZY_OR_NOW RTLD_NOW
18558 # else
18559 # ifdef DL_NOW
18560 # define LT_DLLAZY_OR_NOW DL_NOW
18561 # else
18562 # define LT_DLLAZY_OR_NOW 0
18563 # endif
18564 # endif
18565 # endif
18566 # endif
18567 #endif
18569 /* When -fvisbility=hidden is used, assume the code has been annotated
18570 correspondingly for the symbols needed. */
18571 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18572 void fnord () __attribute__((visibility("default")));
18573 #endif
18575 void fnord () { int i=42; }
18576 int main ()
18578 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18579 int status = $lt_dlunknown;
18581 if (self)
18583 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18584 else
18586 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18587 else puts (dlerror ());
18589 /* dlclose (self); */
18591 else
18592 puts (dlerror ());
18594 return status;
18596 _LT_EOF
18597 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18598 (eval $ac_link) 2>&5
18599 ac_status=$?
18600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18601 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18602 (./conftest; exit; ) >&5 2>/dev/null
18603 lt_status=$?
18604 case x$lt_status in
18605 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18606 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18607 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18608 esac
18609 else :
18610 # compilation failed
18611 lt_cv_dlopen_self_static=no
18614 rm -fr conftest*
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18619 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18622 CPPFLAGS="$save_CPPFLAGS"
18623 LDFLAGS="$save_LDFLAGS"
18624 LIBS="$save_LIBS"
18626 esac
18628 case $lt_cv_dlopen_self in
18629 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18630 *) enable_dlopen_self=unknown ;;
18631 esac
18633 case $lt_cv_dlopen_self_static in
18634 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18635 *) enable_dlopen_self_static=unknown ;;
18636 esac
18655 striplib=
18656 old_striplib=
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18658 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18659 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18660 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18661 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18663 $as_echo "yes" >&6; }
18664 else
18665 # FIXME - insert some real tests, host_os isn't really good enough
18666 case $host_os in
18667 darwin*)
18668 if test -n "$STRIP" ; then
18669 striplib="$STRIP -x"
18670 old_striplib="$STRIP -S"
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18672 $as_echo "yes" >&6; }
18673 else
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18675 $as_echo "no" >&6; }
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18680 $as_echo "no" >&6; }
18682 esac
18696 # Report which library types will actually be built
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18698 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18700 $as_echo "$can_build_shared" >&6; }
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18703 $as_echo_n "checking whether to build shared libraries... " >&6; }
18704 test "$can_build_shared" = "no" && enable_shared=no
18706 # On AIX, shared libraries and static libraries use the same namespace, and
18707 # are all built from PIC.
18708 case $host_os in
18709 aix3*)
18710 test "$enable_shared" = yes && enable_static=no
18711 if test -n "$RANLIB"; then
18712 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18713 postinstall_cmds='$RANLIB $lib'
18717 aix[4-9]*)
18718 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18719 test "$enable_shared" = yes && enable_static=no
18722 esac
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18724 $as_echo "$enable_shared" >&6; }
18726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18727 $as_echo_n "checking whether to build static libraries... " >&6; }
18728 # Make sure either enable_shared or enable_static is yes.
18729 test "$enable_shared" = yes || enable_static=yes
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18731 $as_echo "$enable_static" >&6; }
18737 ac_ext=cpp
18738 ac_cpp='$CXXCPP $CPPFLAGS'
18739 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18740 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18741 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18743 CC="$lt_save_CC"
18745 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18746 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18747 (test "X$CXX" != "Xg++"))) ; then
18748 ac_ext=cpp
18749 ac_cpp='$CXXCPP $CPPFLAGS'
18750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18754 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18755 if test -z "$CXXCPP"; then
18756 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18757 $as_echo_n "(cached) " >&6
18758 else
18759 # Double quotes because CXXCPP needs to be expanded
18760 for CXXCPP in "$CXX -E" "/lib/cpp"
18762 ac_preproc_ok=false
18763 for ac_cxx_preproc_warn_flag in '' yes
18765 # Use a header file that comes with gcc, so configuring glibc
18766 # with a fresh cross-compiler works.
18767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18768 # <limits.h> exists even on freestanding compilers.
18769 # On the NeXT, cc -E runs the code through the compiler's parser,
18770 # not just through cpp. "Syntax error" is here to catch this case.
18771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18772 /* end confdefs.h. */
18773 #ifdef __STDC__
18774 # include <limits.h>
18775 #else
18776 # include <assert.h>
18777 #endif
18778 Syntax error
18779 _ACEOF
18780 if ac_fn_cxx_try_cpp "$LINENO"; then :
18782 else
18783 # Broken: fails on valid input.
18784 continue
18786 rm -f conftest.err conftest.$ac_ext
18788 # OK, works on sane cases. Now check whether nonexistent headers
18789 # can be detected and how.
18790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18791 /* end confdefs.h. */
18792 #include <ac_nonexistent.h>
18793 _ACEOF
18794 if ac_fn_cxx_try_cpp "$LINENO"; then :
18795 # Broken: success on invalid input.
18796 continue
18797 else
18798 # Passes both tests.
18799 ac_preproc_ok=:
18800 break
18802 rm -f conftest.err conftest.$ac_ext
18804 done
18805 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18806 rm -f conftest.err conftest.$ac_ext
18807 if $ac_preproc_ok; then :
18808 break
18811 done
18812 ac_cv_prog_CXXCPP=$CXXCPP
18815 CXXCPP=$ac_cv_prog_CXXCPP
18816 else
18817 ac_cv_prog_CXXCPP=$CXXCPP
18819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18820 $as_echo "$CXXCPP" >&6; }
18821 ac_preproc_ok=false
18822 for ac_cxx_preproc_warn_flag in '' yes
18824 # Use a header file that comes with gcc, so configuring glibc
18825 # with a fresh cross-compiler works.
18826 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18827 # <limits.h> exists even on freestanding compilers.
18828 # On the NeXT, cc -E runs the code through the compiler's parser,
18829 # not just through cpp. "Syntax error" is here to catch this case.
18830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18831 /* end confdefs.h. */
18832 #ifdef __STDC__
18833 # include <limits.h>
18834 #else
18835 # include <assert.h>
18836 #endif
18837 Syntax error
18838 _ACEOF
18839 if ac_fn_cxx_try_cpp "$LINENO"; then :
18841 else
18842 # Broken: fails on valid input.
18843 continue
18845 rm -f conftest.err conftest.$ac_ext
18847 # OK, works on sane cases. Now check whether nonexistent headers
18848 # can be detected and how.
18849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18850 /* end confdefs.h. */
18851 #include <ac_nonexistent.h>
18852 _ACEOF
18853 if ac_fn_cxx_try_cpp "$LINENO"; then :
18854 # Broken: success on invalid input.
18855 continue
18856 else
18857 # Passes both tests.
18858 ac_preproc_ok=:
18859 break
18861 rm -f conftest.err conftest.$ac_ext
18863 done
18864 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18865 rm -f conftest.err conftest.$ac_ext
18866 if $ac_preproc_ok; then :
18868 else
18869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18871 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18872 See \`config.log' for more details." "$LINENO" 5; }
18875 ac_ext=cpp
18876 ac_cpp='$CXXCPP $CPPFLAGS'
18877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18881 else
18882 _lt_caught_CXX_error=yes
18885 ac_ext=cpp
18886 ac_cpp='$CXXCPP $CPPFLAGS'
18887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18891 archive_cmds_need_lc_CXX=no
18892 allow_undefined_flag_CXX=
18893 always_export_symbols_CXX=no
18894 archive_expsym_cmds_CXX=
18895 compiler_needs_object_CXX=no
18896 export_dynamic_flag_spec_CXX=
18897 hardcode_direct_CXX=no
18898 hardcode_direct_absolute_CXX=no
18899 hardcode_libdir_flag_spec_CXX=
18900 hardcode_libdir_flag_spec_ld_CXX=
18901 hardcode_libdir_separator_CXX=
18902 hardcode_minus_L_CXX=no
18903 hardcode_shlibpath_var_CXX=unsupported
18904 hardcode_automatic_CXX=no
18905 inherit_rpath_CXX=no
18906 module_cmds_CXX=
18907 module_expsym_cmds_CXX=
18908 link_all_deplibs_CXX=unknown
18909 old_archive_cmds_CXX=$old_archive_cmds
18910 reload_flag_CXX=$reload_flag
18911 reload_cmds_CXX=$reload_cmds
18912 no_undefined_flag_CXX=
18913 whole_archive_flag_spec_CXX=
18914 enable_shared_with_static_runtimes_CXX=no
18916 # Source file extension for C++ test sources.
18917 ac_ext=cpp
18919 # Object file extension for compiled C++ test sources.
18920 objext=o
18921 objext_CXX=$objext
18923 # No sense in running all these tests if we already determined that
18924 # the CXX compiler isn't working. Some variables (like enable_shared)
18925 # are currently assumed to apply to all compilers on this platform,
18926 # and will be corrupted by setting them based on a non-working compiler.
18927 if test "$_lt_caught_CXX_error" != yes; then
18928 # Code to be used in simple compile tests
18929 lt_simple_compile_test_code="int some_variable = 0;"
18931 # Code to be used in simple link tests
18932 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18934 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18941 # If no C compiler was specified, use CC.
18942 LTCC=${LTCC-"$CC"}
18944 # If no C compiler flags were specified, use CFLAGS.
18945 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18947 # Allow CC to be a program name with arguments.
18948 compiler=$CC
18951 # save warnings/boilerplate of simple test code
18952 ac_outfile=conftest.$ac_objext
18953 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18954 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18955 _lt_compiler_boilerplate=`cat conftest.err`
18956 $RM conftest*
18958 ac_outfile=conftest.$ac_objext
18959 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18960 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18961 _lt_linker_boilerplate=`cat conftest.err`
18962 $RM -r conftest*
18965 # Allow CC to be a program name with arguments.
18966 lt_save_CC=$CC
18967 lt_save_LD=$LD
18968 lt_save_GCC=$GCC
18969 GCC=$GXX
18970 lt_save_with_gnu_ld=$with_gnu_ld
18971 lt_save_path_LD=$lt_cv_path_LD
18972 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18973 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18974 else
18975 $as_unset lt_cv_prog_gnu_ld
18977 if test -n "${lt_cv_path_LDCXX+set}"; then
18978 lt_cv_path_LD=$lt_cv_path_LDCXX
18979 else
18980 $as_unset lt_cv_path_LD
18982 test -z "${LDCXX+set}" || LD=$LDCXX
18983 CC=${CXX-"c++"}
18984 compiler=$CC
18985 compiler_CXX=$CC
18986 for cc_temp in $compiler""; do
18987 case $cc_temp in
18988 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18989 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18990 \-*) ;;
18991 *) break;;
18992 esac
18993 done
18994 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18997 if test -n "$compiler"; then
18998 # We don't want -fno-exception when compiling C++ code, so set the
18999 # no_builtin_flag separately
19000 if test "$GXX" = yes; then
19001 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19002 else
19003 lt_prog_compiler_no_builtin_flag_CXX=
19006 if test "$GXX" = yes; then
19007 # Set up default GNU C++ configuration
19011 # Check whether --with-gnu-ld was given.
19012 if test "${with_gnu_ld+set}" = set; then :
19013 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19014 else
19015 with_gnu_ld=no
19018 ac_prog=ld
19019 if test "$GCC" = yes; then
19020 # Check if gcc -print-prog-name=ld gives a path.
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19022 $as_echo_n "checking for ld used by $CC... " >&6; }
19023 case $host in
19024 *-*-mingw*)
19025 # gcc leaves a trailing carriage return which upsets mingw
19026 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19028 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19029 esac
19030 case $ac_prog in
19031 # Accept absolute paths.
19032 [\\/]* | ?:[\\/]*)
19033 re_direlt='/[^/][^/]*/\.\./'
19034 # Canonicalize the pathname of ld
19035 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19036 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19037 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19038 done
19039 test -z "$LD" && LD="$ac_prog"
19042 # If it fails, then pretend we aren't using GCC.
19043 ac_prog=ld
19046 # If it is relative, then search for the first ld in PATH.
19047 with_gnu_ld=unknown
19049 esac
19050 elif test "$with_gnu_ld" = yes; then
19051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19052 $as_echo_n "checking for GNU ld... " >&6; }
19053 else
19054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19055 $as_echo_n "checking for non-GNU ld... " >&6; }
19057 if test "${lt_cv_path_LD+set}" = set; then :
19058 $as_echo_n "(cached) " >&6
19059 else
19060 if test -z "$LD"; then
19061 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19062 for ac_dir in $PATH; do
19063 IFS="$lt_save_ifs"
19064 test -z "$ac_dir" && ac_dir=.
19065 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19066 lt_cv_path_LD="$ac_dir/$ac_prog"
19067 # Check to see if the program is GNU ld. I'd rather use --version,
19068 # but apparently some variants of GNU ld only accept -v.
19069 # Break only if it was the GNU/non-GNU ld that we prefer.
19070 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19071 *GNU* | *'with BFD'*)
19072 test "$with_gnu_ld" != no && break
19075 test "$with_gnu_ld" != yes && break
19077 esac
19079 done
19080 IFS="$lt_save_ifs"
19081 else
19082 lt_cv_path_LD="$LD" # Let the user override the test with a path.
19086 LD="$lt_cv_path_LD"
19087 if test -n "$LD"; then
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19089 $as_echo "$LD" >&6; }
19090 else
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19092 $as_echo "no" >&6; }
19094 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19096 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19097 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19098 $as_echo_n "(cached) " >&6
19099 else
19100 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19101 case `$LD -v 2>&1 </dev/null` in
19102 *GNU* | *'with BFD'*)
19103 lt_cv_prog_gnu_ld=yes
19106 lt_cv_prog_gnu_ld=no
19108 esac
19110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19111 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19112 with_gnu_ld=$lt_cv_prog_gnu_ld
19120 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19121 # archiving commands below assume that GNU ld is being used.
19122 if test "$with_gnu_ld" = yes; then
19123 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19124 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'
19126 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19127 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19129 # If archive_cmds runs LD, not CC, wlarc should be empty
19130 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19131 # investigate it a little bit more. (MM)
19132 wlarc='${wl}'
19134 # ancient GNU ld didn't support --whole-archive et. al.
19135 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19136 $GREP 'no-whole-archive' > /dev/null; then
19137 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19138 else
19139 whole_archive_flag_spec_CXX=
19141 else
19142 with_gnu_ld=no
19143 wlarc=
19145 # A generic and very simple default shared library creation
19146 # command for GNU C++ for the case where it uses the native
19147 # linker, instead of GNU ld. If possible, this setting should
19148 # overridden to take advantage of the native linker features on
19149 # the platform it is being used on.
19150 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19153 # Commands to make compiler produce verbose output that lists
19154 # what "hidden" libraries, object files and flags are used when
19155 # linking a shared library.
19156 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19158 else
19159 GXX=no
19160 with_gnu_ld=no
19161 wlarc=
19164 # PORTME: fill in a description of your system's C++ link characteristics
19165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19166 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19167 ld_shlibs_CXX=yes
19168 case $host_os in
19169 aix3*)
19170 # FIXME: insert proper C++ library support
19171 ld_shlibs_CXX=no
19173 aix[4-9]*)
19174 if test "$host_cpu" = ia64; then
19175 # On IA64, the linker does run time linking by default, so we don't
19176 # have to do anything special.
19177 aix_use_runtimelinking=no
19178 exp_sym_flag='-Bexport'
19179 no_entry_flag=""
19180 else
19181 aix_use_runtimelinking=no
19183 # Test if we are trying to use run time linking or normal
19184 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19185 # need to do runtime linking.
19186 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19187 for ld_flag in $LDFLAGS; do
19188 case $ld_flag in
19189 *-brtl*)
19190 aix_use_runtimelinking=yes
19191 break
19193 esac
19194 done
19196 esac
19198 exp_sym_flag='-bexport'
19199 no_entry_flag='-bnoentry'
19202 # When large executables or shared objects are built, AIX ld can
19203 # have problems creating the table of contents. If linking a library
19204 # or program results in "error TOC overflow" add -mminimal-toc to
19205 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19206 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19208 archive_cmds_CXX=''
19209 hardcode_direct_CXX=yes
19210 hardcode_direct_absolute_CXX=yes
19211 hardcode_libdir_separator_CXX=':'
19212 link_all_deplibs_CXX=yes
19213 file_list_spec_CXX='${wl}-f,'
19215 if test "$GXX" = yes; then
19216 case $host_os in aix4.[012]|aix4.[012].*)
19217 # We only want to do this on AIX 4.2 and lower, the check
19218 # below for broken collect2 doesn't work under 4.3+
19219 collect2name=`${CC} -print-prog-name=collect2`
19220 if test -f "$collect2name" &&
19221 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19222 then
19223 # We have reworked collect2
19225 else
19226 # We have old collect2
19227 hardcode_direct_CXX=unsupported
19228 # It fails to find uninstalled libraries when the uninstalled
19229 # path is not listed in the libpath. Setting hardcode_minus_L
19230 # to unsupported forces relinking
19231 hardcode_minus_L_CXX=yes
19232 hardcode_libdir_flag_spec_CXX='-L$libdir'
19233 hardcode_libdir_separator_CXX=
19235 esac
19236 shared_flag='-shared'
19237 if test "$aix_use_runtimelinking" = yes; then
19238 shared_flag="$shared_flag "'${wl}-G'
19240 else
19241 # not using gcc
19242 if test "$host_cpu" = ia64; then
19243 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19244 # chokes on -Wl,-G. The following line is correct:
19245 shared_flag='-G'
19246 else
19247 if test "$aix_use_runtimelinking" = yes; then
19248 shared_flag='${wl}-G'
19249 else
19250 shared_flag='${wl}-bM:SRE'
19255 export_dynamic_flag_spec_CXX='${wl}-bexpall'
19256 # It seems that -bexpall does not export symbols beginning with
19257 # underscore (_), so it is better to generate a list of symbols to
19258 # export.
19259 always_export_symbols_CXX=yes
19260 if test "$aix_use_runtimelinking" = yes; then
19261 # Warning - without using the other runtime loading flags (-brtl),
19262 # -berok will link without error, but may produce a broken library.
19263 allow_undefined_flag_CXX='-berok'
19264 # Determine the default libpath from the value encoded in an empty
19265 # executable.
19266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19267 /* end confdefs.h. */
19270 main ()
19274 return 0;
19276 _ACEOF
19277 if ac_fn_cxx_try_link "$LINENO"; then :
19279 lt_aix_libpath_sed='
19280 /Import File Strings/,/^$/ {
19281 /^0/ {
19282 s/^0 *\(.*\)$/\1/
19286 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19287 # Check for a 64-bit object if we didn't find anything.
19288 if test -z "$aix_libpath"; then
19289 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19292 rm -f core conftest.err conftest.$ac_objext \
19293 conftest$ac_exeext conftest.$ac_ext
19294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19296 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19298 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"
19299 else
19300 if test "$host_cpu" = ia64; then
19301 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19302 allow_undefined_flag_CXX="-z nodefs"
19303 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"
19304 else
19305 # Determine the default libpath from the value encoded in an
19306 # empty executable.
19307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19308 /* end confdefs.h. */
19311 main ()
19315 return 0;
19317 _ACEOF
19318 if ac_fn_cxx_try_link "$LINENO"; then :
19320 lt_aix_libpath_sed='
19321 /Import File Strings/,/^$/ {
19322 /^0/ {
19323 s/^0 *\(.*\)$/\1/
19327 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19328 # Check for a 64-bit object if we didn't find anything.
19329 if test -z "$aix_libpath"; then
19330 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19333 rm -f core conftest.err conftest.$ac_objext \
19334 conftest$ac_exeext conftest.$ac_ext
19335 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19337 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19338 # Warning - without using the other run time loading flags,
19339 # -berok will link without error, but may produce a broken library.
19340 no_undefined_flag_CXX=' ${wl}-bernotok'
19341 allow_undefined_flag_CXX=' ${wl}-berok'
19342 if test "$with_gnu_ld" = yes; then
19343 # We only use this code for GNU lds that support --whole-archive.
19344 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19345 else
19346 # Exported symbols can be pulled into shared objects from archives
19347 whole_archive_flag_spec_CXX='$convenience'
19349 archive_cmds_need_lc_CXX=yes
19350 # This is similar to how AIX traditionally builds its shared
19351 # libraries.
19352 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'
19357 beos*)
19358 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19359 allow_undefined_flag_CXX=unsupported
19360 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19361 # support --undefined. This deserves some investigation. FIXME
19362 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19363 else
19364 ld_shlibs_CXX=no
19368 chorus*)
19369 case $cc_basename in
19371 # FIXME: insert proper C++ library support
19372 ld_shlibs_CXX=no
19374 esac
19377 cygwin* | mingw* | pw32* | cegcc*)
19378 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19379 # as there is no search path for DLLs.
19380 hardcode_libdir_flag_spec_CXX='-L$libdir'
19381 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19382 allow_undefined_flag_CXX=unsupported
19383 always_export_symbols_CXX=no
19384 enable_shared_with_static_runtimes_CXX=yes
19386 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19387 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'
19388 # If the export-symbols file already is a .def file (1st line
19389 # is EXPORTS), use it as is; otherwise, prepend...
19390 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19391 cp $export_symbols $output_objdir/$soname.def;
19392 else
19393 echo EXPORTS > $output_objdir/$soname.def;
19394 cat $export_symbols >> $output_objdir/$soname.def;
19396 $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'
19397 else
19398 ld_shlibs_CXX=no
19401 darwin* | rhapsody*)
19404 archive_cmds_need_lc_CXX=no
19405 hardcode_direct_CXX=no
19406 hardcode_automatic_CXX=yes
19407 hardcode_shlibpath_var_CXX=unsupported
19408 if test "$lt_cv_ld_force_load" = "yes"; then
19409 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\"`'
19410 else
19411 whole_archive_flag_spec_CXX=''
19413 link_all_deplibs_CXX=yes
19414 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19415 case $cc_basename in
19416 ifort*) _lt_dar_can_shared=yes ;;
19417 *) _lt_dar_can_shared=$GCC ;;
19418 esac
19419 if test "$_lt_dar_can_shared" = "yes"; then
19420 output_verbose_link_cmd=func_echo_all
19421 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}"
19422 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19423 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}"
19424 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}"
19425 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19426 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}"
19427 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}"
19430 else
19431 ld_shlibs_CXX=no
19436 dgux*)
19437 case $cc_basename in
19438 ec++*)
19439 # FIXME: insert proper C++ library support
19440 ld_shlibs_CXX=no
19442 ghcx*)
19443 # Green Hills C++ Compiler
19444 # FIXME: insert proper C++ library support
19445 ld_shlibs_CXX=no
19448 # FIXME: insert proper C++ library support
19449 ld_shlibs_CXX=no
19451 esac
19454 freebsd2.*)
19455 # C++ shared libraries reported to be fairly broken before
19456 # switch to ELF
19457 ld_shlibs_CXX=no
19460 freebsd-elf*)
19461 archive_cmds_need_lc_CXX=no
19464 freebsd* | dragonfly*)
19465 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19466 # conventions
19467 ld_shlibs_CXX=yes
19470 gnu*)
19473 haiku*)
19474 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19475 link_all_deplibs_CXX=yes
19478 hpux9*)
19479 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19480 hardcode_libdir_separator_CXX=:
19481 export_dynamic_flag_spec_CXX='${wl}-E'
19482 hardcode_direct_CXX=yes
19483 hardcode_minus_L_CXX=yes # Not in the search PATH,
19484 # but as the default
19485 # location of the library.
19487 case $cc_basename in
19488 CC*)
19489 # FIXME: insert proper C++ library support
19490 ld_shlibs_CXX=no
19492 aCC*)
19493 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'
19494 # Commands to make compiler produce verbose output that lists
19495 # what "hidden" libraries, object files and flags are used when
19496 # linking a shared library.
19498 # There doesn't appear to be a way to prevent this compiler from
19499 # explicitly linking system object files so we need to strip them
19500 # from the output so that they don't get included in the library
19501 # dependencies.
19502 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"'
19505 if test "$GXX" = yes; then
19506 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'
19507 else
19508 # FIXME: insert proper C++ library support
19509 ld_shlibs_CXX=no
19512 esac
19515 hpux10*|hpux11*)
19516 if test $with_gnu_ld = no; then
19517 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19518 hardcode_libdir_separator_CXX=:
19520 case $host_cpu in
19521 hppa*64*|ia64*)
19524 export_dynamic_flag_spec_CXX='${wl}-E'
19526 esac
19528 case $host_cpu in
19529 hppa*64*|ia64*)
19530 hardcode_direct_CXX=no
19531 hardcode_shlibpath_var_CXX=no
19534 hardcode_direct_CXX=yes
19535 hardcode_direct_absolute_CXX=yes
19536 hardcode_minus_L_CXX=yes # Not in the search PATH,
19537 # but as the default
19538 # location of the library.
19540 esac
19542 case $cc_basename in
19543 CC*)
19544 # FIXME: insert proper C++ library support
19545 ld_shlibs_CXX=no
19547 aCC*)
19548 case $host_cpu in
19549 hppa*64*)
19550 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19552 ia64*)
19553 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19556 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19558 esac
19559 # Commands to make compiler produce verbose output that lists
19560 # what "hidden" libraries, object files and flags are used when
19561 # linking a shared library.
19563 # There doesn't appear to be a way to prevent this compiler from
19564 # explicitly linking system object files so we need to strip them
19565 # from the output so that they don't get included in the library
19566 # dependencies.
19567 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"'
19570 if test "$GXX" = yes; then
19571 if test $with_gnu_ld = no; then
19572 case $host_cpu in
19573 hppa*64*)
19574 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19576 ia64*)
19577 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19580 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'
19582 esac
19584 else
19585 # FIXME: insert proper C++ library support
19586 ld_shlibs_CXX=no
19589 esac
19592 interix[3-9]*)
19593 hardcode_direct_CXX=no
19594 hardcode_shlibpath_var_CXX=no
19595 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19596 export_dynamic_flag_spec_CXX='${wl}-E'
19597 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19598 # Instead, shared libraries are loaded at an image base (0x10000000 by
19599 # default) and relocated if they conflict, which is a slow very memory
19600 # consuming and fragmenting process. To avoid this, we pick a random,
19601 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19602 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19603 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'
19604 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'
19606 irix5* | irix6*)
19607 case $cc_basename in
19608 CC*)
19609 # SGI C++
19610 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'
19612 # Archives containing C++ object files must be created using
19613 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19614 # necessary to make sure instantiated templates are included
19615 # in the archive.
19616 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19619 if test "$GXX" = yes; then
19620 if test "$with_gnu_ld" = no; then
19621 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'
19622 else
19623 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'
19626 link_all_deplibs_CXX=yes
19628 esac
19629 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19630 hardcode_libdir_separator_CXX=:
19631 inherit_rpath_CXX=yes
19634 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19635 case $cc_basename in
19636 KCC*)
19637 # Kuck and Associates, Inc. (KAI) C++ Compiler
19639 # KCC will only create a shared library if the output file
19640 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19641 # to its proper name (with version) after linking.
19642 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'
19643 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'
19644 # Commands to make compiler produce verbose output that lists
19645 # what "hidden" libraries, object files and flags are used when
19646 # linking a shared library.
19648 # There doesn't appear to be a way to prevent this compiler from
19649 # explicitly linking system object files so we need to strip them
19650 # from the output so that they don't get included in the library
19651 # dependencies.
19652 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"'
19654 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19655 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19657 # Archives containing C++ object files must be created using
19658 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19659 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19661 icpc* | ecpc* )
19662 # Intel C++
19663 with_gnu_ld=yes
19664 # version 8.0 and above of icpc choke on multiply defined symbols
19665 # if we add $predep_objects and $postdep_objects, however 7.1 and
19666 # earlier do not add the objects themselves.
19667 case `$CC -V 2>&1` in
19668 *"Version 7."*)
19669 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19670 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'
19672 *) # Version 8.0 or newer
19673 tmp_idyn=
19674 case $host_cpu in
19675 ia64*) tmp_idyn=' -i_dynamic';;
19676 esac
19677 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19678 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'
19680 esac
19681 archive_cmds_need_lc_CXX=no
19682 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19683 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19684 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19686 pgCC* | pgcpp*)
19687 # Portland Group C++ compiler
19688 case `$CC -V` in
19689 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19690 prelink_cmds_CXX='tpldir=Template.dir~
19691 rm -rf $tpldir~
19692 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19693 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19694 old_archive_cmds_CXX='tpldir=Template.dir~
19695 rm -rf $tpldir~
19696 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19697 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19698 $RANLIB $oldlib'
19699 archive_cmds_CXX='tpldir=Template.dir~
19700 rm -rf $tpldir~
19701 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19702 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19703 archive_expsym_cmds_CXX='tpldir=Template.dir~
19704 rm -rf $tpldir~
19705 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19706 $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'
19708 *) # Version 6 and above use weak symbols
19709 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19710 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'
19712 esac
19714 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19715 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19716 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'
19718 cxx*)
19719 # Compaq C++
19720 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19721 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'
19723 runpath_var=LD_RUN_PATH
19724 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19725 hardcode_libdir_separator_CXX=:
19727 # Commands to make compiler produce verbose output that lists
19728 # what "hidden" libraries, object files and flags are used when
19729 # linking a shared library.
19731 # There doesn't appear to be a way to prevent this compiler from
19732 # explicitly linking system object files so we need to strip them
19733 # from the output so that they don't get included in the library
19734 # dependencies.
19735 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'
19737 xl* | mpixl* | bgxl*)
19738 # IBM XL 8.0 on PPC, with GNU ld
19739 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19740 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19741 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19742 if test "x$supports_anon_versioning" = xyes; then
19743 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19744 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19745 echo "local: *; };" >> $output_objdir/$libname.ver~
19746 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19750 case `$CC -V 2>&1 | sed 5q` in
19751 *Sun\ C*)
19752 # Sun C++ 5.9
19753 no_undefined_flag_CXX=' -zdefs'
19754 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19755 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'
19756 hardcode_libdir_flag_spec_CXX='-R$libdir'
19757 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'
19758 compiler_needs_object_CXX=yes
19760 # Not sure whether something based on
19761 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19762 # would be better.
19763 output_verbose_link_cmd='func_echo_all'
19765 # Archives containing C++ object files must be created using
19766 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19767 # necessary to make sure instantiated templates are included
19768 # in the archive.
19769 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19771 esac
19773 esac
19776 lynxos*)
19777 # FIXME: insert proper C++ library support
19778 ld_shlibs_CXX=no
19781 m88k*)
19782 # FIXME: insert proper C++ library support
19783 ld_shlibs_CXX=no
19786 mvs*)
19787 case $cc_basename in
19788 cxx*)
19789 # FIXME: insert proper C++ library support
19790 ld_shlibs_CXX=no
19793 # FIXME: insert proper C++ library support
19794 ld_shlibs_CXX=no
19796 esac
19799 netbsd*)
19800 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19801 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19802 wlarc=
19803 hardcode_libdir_flag_spec_CXX='-R$libdir'
19804 hardcode_direct_CXX=yes
19805 hardcode_shlibpath_var_CXX=no
19807 # Workaround some broken pre-1.5 toolchains
19808 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19811 *nto* | *qnx*)
19812 ld_shlibs_CXX=yes
19815 openbsd2*)
19816 # C++ shared libraries are fairly broken
19817 ld_shlibs_CXX=no
19820 openbsd*)
19821 if test -f /usr/libexec/ld.so; then
19822 hardcode_direct_CXX=yes
19823 hardcode_shlibpath_var_CXX=no
19824 hardcode_direct_absolute_CXX=yes
19825 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19826 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19827 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19828 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19829 export_dynamic_flag_spec_CXX='${wl}-E'
19830 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19832 output_verbose_link_cmd=func_echo_all
19833 else
19834 ld_shlibs_CXX=no
19838 osf3* | osf4* | osf5*)
19839 case $cc_basename in
19840 KCC*)
19841 # Kuck and Associates, Inc. (KAI) C++ Compiler
19843 # KCC will only create a shared library if the output file
19844 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19845 # to its proper name (with version) after linking.
19846 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'
19848 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19849 hardcode_libdir_separator_CXX=:
19851 # Archives containing C++ object files must be created using
19852 # the KAI C++ compiler.
19853 case $host in
19854 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19855 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19856 esac
19858 RCC*)
19859 # Rational C++ 2.4.1
19860 # FIXME: insert proper C++ library support
19861 ld_shlibs_CXX=no
19863 cxx*)
19864 case $host in
19865 osf3*)
19866 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19867 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'
19868 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19871 allow_undefined_flag_CXX=' -expect_unresolved \*'
19872 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'
19873 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19874 echo "-hidden">> $lib.exp~
19875 $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~
19876 $RM $lib.exp'
19877 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19879 esac
19881 hardcode_libdir_separator_CXX=:
19883 # Commands to make compiler produce verbose output that lists
19884 # what "hidden" libraries, object files and flags are used when
19885 # linking a shared library.
19887 # There doesn't appear to be a way to prevent this compiler from
19888 # explicitly linking system object files so we need to strip them
19889 # from the output so that they don't get included in the library
19890 # dependencies.
19891 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"'
19894 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19895 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19896 case $host in
19897 osf3*)
19898 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'
19901 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'
19903 esac
19905 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19906 hardcode_libdir_separator_CXX=:
19908 # Commands to make compiler produce verbose output that lists
19909 # what "hidden" libraries, object files and flags are used when
19910 # linking a shared library.
19911 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19913 else
19914 # FIXME: insert proper C++ library support
19915 ld_shlibs_CXX=no
19918 esac
19921 psos*)
19922 # FIXME: insert proper C++ library support
19923 ld_shlibs_CXX=no
19926 sunos4*)
19927 case $cc_basename in
19928 CC*)
19929 # Sun C++ 4.x
19930 # FIXME: insert proper C++ library support
19931 ld_shlibs_CXX=no
19933 lcc*)
19934 # Lucid
19935 # FIXME: insert proper C++ library support
19936 ld_shlibs_CXX=no
19939 # FIXME: insert proper C++ library support
19940 ld_shlibs_CXX=no
19942 esac
19945 solaris*)
19946 case $cc_basename in
19947 CC*)
19948 # Sun C++ 4.2, 5.x and Centerline C++
19949 archive_cmds_need_lc_CXX=yes
19950 no_undefined_flag_CXX=' -zdefs'
19951 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19952 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19953 $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'
19955 hardcode_libdir_flag_spec_CXX='-R$libdir'
19956 hardcode_shlibpath_var_CXX=no
19957 case $host_os in
19958 solaris2.[0-5] | solaris2.[0-5].*) ;;
19960 # The compiler driver will combine and reorder linker options,
19961 # but understands `-z linker_flag'.
19962 # Supported since Solaris 2.6 (maybe 2.5.1?)
19963 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19965 esac
19966 link_all_deplibs_CXX=yes
19968 output_verbose_link_cmd='func_echo_all'
19970 # Archives containing C++ object files must be created using
19971 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19972 # necessary to make sure instantiated templates are included
19973 # in the archive.
19974 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19976 gcx*)
19977 # Green Hills C++ Compiler
19978 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19980 # The C++ compiler must be used to create the archive.
19981 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19984 # GNU C++ compiler with Solaris linker
19985 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19986 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19987 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19988 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19989 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19990 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19992 # Commands to make compiler produce verbose output that lists
19993 # what "hidden" libraries, object files and flags are used when
19994 # linking a shared library.
19995 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19996 else
19997 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19998 # platform.
19999 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20000 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20001 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20003 # Commands to make compiler produce verbose output that lists
20004 # what "hidden" libraries, object files and flags are used when
20005 # linking a shared library.
20006 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20009 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
20010 case $host_os in
20011 solaris2.[0-5] | solaris2.[0-5].*) ;;
20013 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20015 esac
20018 esac
20021 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20022 no_undefined_flag_CXX='${wl}-z,text'
20023 archive_cmds_need_lc_CXX=no
20024 hardcode_shlibpath_var_CXX=no
20025 runpath_var='LD_RUN_PATH'
20027 case $cc_basename in
20028 CC*)
20029 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20030 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20033 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20034 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20036 esac
20039 sysv5* | sco3.2v5* | sco5v6*)
20040 # Note: We can NOT use -z defs as we might desire, because we do not
20041 # link with -lc, and that would cause any symbols used from libc to
20042 # always be unresolved, which means just about no library would
20043 # ever link correctly. If we're not using GNU ld we use -z text
20044 # though, which does catch some bad symbols but isn't as heavy-handed
20045 # as -z defs.
20046 no_undefined_flag_CXX='${wl}-z,text'
20047 allow_undefined_flag_CXX='${wl}-z,nodefs'
20048 archive_cmds_need_lc_CXX=no
20049 hardcode_shlibpath_var_CXX=no
20050 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
20051 hardcode_libdir_separator_CXX=':'
20052 link_all_deplibs_CXX=yes
20053 export_dynamic_flag_spec_CXX='${wl}-Bexport'
20054 runpath_var='LD_RUN_PATH'
20056 case $cc_basename in
20057 CC*)
20058 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20059 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20060 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20061 '"$old_archive_cmds_CXX"
20062 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20063 '"$reload_cmds_CXX"
20066 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20067 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20069 esac
20072 tandem*)
20073 case $cc_basename in
20074 NCC*)
20075 # NonStop-UX NCC 3.20
20076 # FIXME: insert proper C++ library support
20077 ld_shlibs_CXX=no
20080 # FIXME: insert proper C++ library support
20081 ld_shlibs_CXX=no
20083 esac
20086 vxworks*)
20087 # FIXME: insert proper C++ library support
20088 ld_shlibs_CXX=no
20092 # FIXME: insert proper C++ library support
20093 ld_shlibs_CXX=no
20095 esac
20097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20098 $as_echo "$ld_shlibs_CXX" >&6; }
20099 test "$ld_shlibs_CXX" = no && can_build_shared=no
20101 GCC_CXX="$GXX"
20102 LD_CXX="$LD"
20104 ## CAVEAT EMPTOR:
20105 ## There is no encapsulation within the following macros, do not change
20106 ## the running order or otherwise move them around unless you know exactly
20107 ## what you are doing...
20108 # Dependencies to place before and after the object being linked:
20109 predep_objects_CXX=
20110 postdep_objects_CXX=
20111 predeps_CXX=
20112 postdeps_CXX=
20113 compiler_lib_search_path_CXX=
20115 cat > conftest.$ac_ext <<_LT_EOF
20116 class Foo
20118 public:
20119 Foo (void) { a = 0; }
20120 private:
20121 int a;
20123 _LT_EOF
20125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20126 (eval $ac_compile) 2>&5
20127 ac_status=$?
20128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20129 test $ac_status = 0; }; then
20130 # Parse the compiler output and extract the necessary
20131 # objects, libraries and library flags.
20133 # Sentinel used to keep track of whether or not we are before
20134 # the conftest object file.
20135 pre_test_object_deps_done=no
20137 for p in `eval "$output_verbose_link_cmd"`; do
20138 case $p in
20140 -L* | -R* | -l*)
20141 # Some compilers place space between "-{L,R}" and the path.
20142 # Remove the space.
20143 if test $p = "-L" ||
20144 test $p = "-R"; then
20145 prev=$p
20146 continue
20147 else
20148 prev=
20151 if test "$pre_test_object_deps_done" = no; then
20152 case $p in
20153 -L* | -R*)
20154 # Internal compiler library paths should come after those
20155 # provided the user. The postdeps already come after the
20156 # user supplied libs so there is no need to process them.
20157 if test -z "$compiler_lib_search_path_CXX"; then
20158 compiler_lib_search_path_CXX="${prev}${p}"
20159 else
20160 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
20163 # The "-l" case would never come before the object being
20164 # linked, so don't bother handling this case.
20165 esac
20166 else
20167 if test -z "$postdeps_CXX"; then
20168 postdeps_CXX="${prev}${p}"
20169 else
20170 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
20175 *.$objext)
20176 # This assumes that the test object file only shows up
20177 # once in the compiler output.
20178 if test "$p" = "conftest.$objext"; then
20179 pre_test_object_deps_done=yes
20180 continue
20183 if test "$pre_test_object_deps_done" = no; then
20184 if test -z "$predep_objects_CXX"; then
20185 predep_objects_CXX="$p"
20186 else
20187 predep_objects_CXX="$predep_objects_CXX $p"
20189 else
20190 if test -z "$postdep_objects_CXX"; then
20191 postdep_objects_CXX="$p"
20192 else
20193 postdep_objects_CXX="$postdep_objects_CXX $p"
20198 *) ;; # Ignore the rest.
20200 esac
20201 done
20203 # Clean up.
20204 rm -f a.out a.exe
20205 else
20206 echo "libtool.m4: error: problem compiling CXX test program"
20209 $RM -f confest.$objext
20211 # PORTME: override above test on systems where it is broken
20212 case $host_os in
20213 interix[3-9]*)
20214 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20215 # hack all around it, let's just trust "g++" to DTRT.
20216 predep_objects_CXX=
20217 postdep_objects_CXX=
20218 postdeps_CXX=
20221 linux*)
20222 case `$CC -V 2>&1 | sed 5q` in
20223 *Sun\ C*)
20224 # Sun C++ 5.9
20226 # The more standards-conforming stlport4 library is
20227 # incompatible with the Cstd library. Avoid specifying
20228 # it if it's in CXXFLAGS. Ignore libCrun as
20229 # -library=stlport4 depends on it.
20230 case " $CXX $CXXFLAGS " in
20231 *" -library=stlport4 "*)
20232 solaris_use_stlport4=yes
20234 esac
20236 if test "$solaris_use_stlport4" != yes; then
20237 postdeps_CXX='-library=Cstd -library=Crun'
20240 esac
20243 solaris*)
20244 case $cc_basename in
20245 CC*)
20246 # The more standards-conforming stlport4 library is
20247 # incompatible with the Cstd library. Avoid specifying
20248 # it if it's in CXXFLAGS. Ignore libCrun as
20249 # -library=stlport4 depends on it.
20250 case " $CXX $CXXFLAGS " in
20251 *" -library=stlport4 "*)
20252 solaris_use_stlport4=yes
20254 esac
20256 # Adding this requires a known-good setup of shared libraries for
20257 # Sun compiler versions before 5.6, else PIC objects from an old
20258 # archive will be linked into the output, leading to subtle bugs.
20259 if test "$solaris_use_stlport4" != yes; then
20260 postdeps_CXX='-library=Cstd -library=Crun'
20263 esac
20265 esac
20268 case " $postdeps_CXX " in
20269 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20270 esac
20271 compiler_lib_search_dirs_CXX=
20272 if test -n "${compiler_lib_search_path_CXX}"; then
20273 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20306 lt_prog_compiler_wl_CXX=
20307 lt_prog_compiler_pic_CXX=
20308 lt_prog_compiler_static_CXX=
20310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20311 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20313 # C++ specific cases for pic, static, wl, etc.
20314 if test "$GXX" = yes; then
20315 lt_prog_compiler_wl_CXX='-Wl,'
20316 lt_prog_compiler_static_CXX='-static'
20318 case $host_os in
20319 aix*)
20320 # All AIX code is PIC.
20321 if test "$host_cpu" = ia64; then
20322 # AIX 5 now supports IA64 processor
20323 lt_prog_compiler_static_CXX='-Bstatic'
20325 lt_prog_compiler_pic_CXX='-fPIC'
20328 amigaos*)
20329 case $host_cpu in
20330 powerpc)
20331 # see comment about AmigaOS4 .so support
20332 lt_prog_compiler_pic_CXX='-fPIC'
20334 m68k)
20335 # FIXME: we need at least 68020 code to build shared libraries, but
20336 # adding the `-m68020' flag to GCC prevents building anything better,
20337 # like `-m68040'.
20338 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20340 esac
20343 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20344 # PIC is the default for these OSes.
20346 mingw* | cygwin* | os2* | pw32* | cegcc*)
20347 # This hack is so that the source file can tell whether it is being
20348 # built for inclusion in a dll (and should export symbols for example).
20349 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20350 # (--disable-auto-import) libraries
20351 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20353 darwin* | rhapsody*)
20354 # PIC is the default on this platform
20355 # Common symbols not allowed in MH_DYLIB files
20356 lt_prog_compiler_pic_CXX='-fno-common'
20358 *djgpp*)
20359 # DJGPP does not support shared libraries at all
20360 lt_prog_compiler_pic_CXX=
20362 haiku*)
20363 # PIC is the default for Haiku.
20364 # The "-static" flag exists, but is broken.
20365 lt_prog_compiler_static_CXX=
20367 interix[3-9]*)
20368 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20369 # Instead, we relocate shared libraries at runtime.
20371 sysv4*MP*)
20372 if test -d /usr/nec; then
20373 lt_prog_compiler_pic_CXX=-Kconform_pic
20376 hpux*)
20377 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20378 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20379 # sets the default TLS model and affects inlining.
20380 case $host_cpu in
20381 hppa*64*)
20384 lt_prog_compiler_pic_CXX='-fPIC'
20386 esac
20388 *qnx* | *nto*)
20389 # QNX uses GNU C++, but need to define -shared option too, otherwise
20390 # it will coredump.
20391 lt_prog_compiler_pic_CXX='-fPIC -shared'
20394 lt_prog_compiler_pic_CXX='-fPIC'
20396 esac
20397 else
20398 case $host_os in
20399 aix[4-9]*)
20400 # All AIX code is PIC.
20401 if test "$host_cpu" = ia64; then
20402 # AIX 5 now supports IA64 processor
20403 lt_prog_compiler_static_CXX='-Bstatic'
20404 else
20405 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20408 chorus*)
20409 case $cc_basename in
20410 cxch68*)
20411 # Green Hills C++ Compiler
20412 # _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"
20414 esac
20416 dgux*)
20417 case $cc_basename in
20418 ec++*)
20419 lt_prog_compiler_pic_CXX='-KPIC'
20421 ghcx*)
20422 # Green Hills C++ Compiler
20423 lt_prog_compiler_pic_CXX='-pic'
20427 esac
20429 freebsd* | dragonfly*)
20430 # FreeBSD uses GNU C++
20432 hpux9* | hpux10* | hpux11*)
20433 case $cc_basename in
20434 CC*)
20435 lt_prog_compiler_wl_CXX='-Wl,'
20436 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20437 if test "$host_cpu" != ia64; then
20438 lt_prog_compiler_pic_CXX='+Z'
20441 aCC*)
20442 lt_prog_compiler_wl_CXX='-Wl,'
20443 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20444 case $host_cpu in
20445 hppa*64*|ia64*)
20446 # +Z the default
20449 lt_prog_compiler_pic_CXX='+Z'
20451 esac
20455 esac
20457 interix*)
20458 # This is c89, which is MS Visual C++ (no shared libs)
20459 # Anyone wants to do a port?
20461 irix5* | irix6* | nonstopux*)
20462 case $cc_basename in
20463 CC*)
20464 lt_prog_compiler_wl_CXX='-Wl,'
20465 lt_prog_compiler_static_CXX='-non_shared'
20466 # CC pic flag -KPIC is the default.
20470 esac
20472 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20473 case $cc_basename in
20474 KCC*)
20475 # KAI C++ Compiler
20476 lt_prog_compiler_wl_CXX='--backend -Wl,'
20477 lt_prog_compiler_pic_CXX='-fPIC'
20479 ecpc* )
20480 # old Intel C++ for x86_64 which still supported -KPIC.
20481 lt_prog_compiler_wl_CXX='-Wl,'
20482 lt_prog_compiler_pic_CXX='-KPIC'
20483 lt_prog_compiler_static_CXX='-static'
20485 icpc* )
20486 # Intel C++, used to be incompatible with GCC.
20487 # ICC 10 doesn't accept -KPIC any more.
20488 lt_prog_compiler_wl_CXX='-Wl,'
20489 lt_prog_compiler_pic_CXX='-fPIC'
20490 lt_prog_compiler_static_CXX='-static'
20492 pgCC* | pgcpp*)
20493 # Portland Group C++ compiler
20494 lt_prog_compiler_wl_CXX='-Wl,'
20495 lt_prog_compiler_pic_CXX='-fpic'
20496 lt_prog_compiler_static_CXX='-Bstatic'
20498 cxx*)
20499 # Compaq C++
20500 # Make sure the PIC flag is empty. It appears that all Alpha
20501 # Linux and Compaq Tru64 Unix objects are PIC.
20502 lt_prog_compiler_pic_CXX=
20503 lt_prog_compiler_static_CXX='-non_shared'
20505 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20506 # IBM XL 8.0, 9.0 on PPC and BlueGene
20507 lt_prog_compiler_wl_CXX='-Wl,'
20508 lt_prog_compiler_pic_CXX='-qpic'
20509 lt_prog_compiler_static_CXX='-qstaticlink'
20512 case `$CC -V 2>&1 | sed 5q` in
20513 *Sun\ C*)
20514 # Sun C++ 5.9
20515 lt_prog_compiler_pic_CXX='-KPIC'
20516 lt_prog_compiler_static_CXX='-Bstatic'
20517 lt_prog_compiler_wl_CXX='-Qoption ld '
20519 esac
20521 esac
20523 lynxos*)
20525 m88k*)
20527 mvs*)
20528 case $cc_basename in
20529 cxx*)
20530 lt_prog_compiler_pic_CXX='-W c,exportall'
20534 esac
20536 netbsd*)
20538 *qnx* | *nto*)
20539 # QNX uses GNU C++, but need to define -shared option too, otherwise
20540 # it will coredump.
20541 lt_prog_compiler_pic_CXX='-fPIC -shared'
20543 osf3* | osf4* | osf5*)
20544 case $cc_basename in
20545 KCC*)
20546 lt_prog_compiler_wl_CXX='--backend -Wl,'
20548 RCC*)
20549 # Rational C++ 2.4.1
20550 lt_prog_compiler_pic_CXX='-pic'
20552 cxx*)
20553 # Digital/Compaq C++
20554 lt_prog_compiler_wl_CXX='-Wl,'
20555 # Make sure the PIC flag is empty. It appears that all Alpha
20556 # Linux and Compaq Tru64 Unix objects are PIC.
20557 lt_prog_compiler_pic_CXX=
20558 lt_prog_compiler_static_CXX='-non_shared'
20562 esac
20564 psos*)
20566 solaris*)
20567 case $cc_basename in
20568 CC*)
20569 # Sun C++ 4.2, 5.x and Centerline C++
20570 lt_prog_compiler_pic_CXX='-KPIC'
20571 lt_prog_compiler_static_CXX='-Bstatic'
20572 lt_prog_compiler_wl_CXX='-Qoption ld '
20574 gcx*)
20575 # Green Hills C++ Compiler
20576 lt_prog_compiler_pic_CXX='-PIC'
20580 esac
20582 sunos4*)
20583 case $cc_basename in
20584 CC*)
20585 # Sun C++ 4.x
20586 lt_prog_compiler_pic_CXX='-pic'
20587 lt_prog_compiler_static_CXX='-Bstatic'
20589 lcc*)
20590 # Lucid
20591 lt_prog_compiler_pic_CXX='-pic'
20595 esac
20597 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20598 case $cc_basename in
20599 CC*)
20600 lt_prog_compiler_wl_CXX='-Wl,'
20601 lt_prog_compiler_pic_CXX='-KPIC'
20602 lt_prog_compiler_static_CXX='-Bstatic'
20604 esac
20606 tandem*)
20607 case $cc_basename in
20608 NCC*)
20609 # NonStop-UX NCC 3.20
20610 lt_prog_compiler_pic_CXX='-KPIC'
20614 esac
20616 vxworks*)
20619 lt_prog_compiler_can_build_shared_CXX=no
20621 esac
20624 case $host_os in
20625 # For platforms which do not support PIC, -DPIC is meaningless:
20626 *djgpp*)
20627 lt_prog_compiler_pic_CXX=
20630 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20632 esac
20633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20634 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20639 # Check to make sure the PIC flag actually works.
20641 if test -n "$lt_prog_compiler_pic_CXX"; then
20642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20643 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20644 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20645 $as_echo_n "(cached) " >&6
20646 else
20647 lt_cv_prog_compiler_pic_works_CXX=no
20648 ac_outfile=conftest.$ac_objext
20649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20650 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20651 # Insert the option either (1) after the last *FLAGS variable, or
20652 # (2) before a word containing "conftest.", or (3) at the end.
20653 # Note that $ac_compile itself does not contain backslashes and begins
20654 # with a dollar sign (not a hyphen), so the echo should work correctly.
20655 # The option is referenced via a variable to avoid confusing sed.
20656 lt_compile=`echo "$ac_compile" | $SED \
20657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20659 -e 's:$: $lt_compiler_flag:'`
20660 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20661 (eval "$lt_compile" 2>conftest.err)
20662 ac_status=$?
20663 cat conftest.err >&5
20664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 if (exit $ac_status) && test -s "$ac_outfile"; then
20666 # The compiler can only warn and ignore the option if not recognized
20667 # So say no if there are warnings other than the usual output.
20668 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20670 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20671 lt_cv_prog_compiler_pic_works_CXX=yes
20674 $RM conftest*
20677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20678 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20680 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20681 case $lt_prog_compiler_pic_CXX in
20682 "" | " "*) ;;
20683 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20684 esac
20685 else
20686 lt_prog_compiler_pic_CXX=
20687 lt_prog_compiler_can_build_shared_CXX=no
20695 # Check to make sure the static flag actually works.
20697 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20699 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20700 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20701 $as_echo_n "(cached) " >&6
20702 else
20703 lt_cv_prog_compiler_static_works_CXX=no
20704 save_LDFLAGS="$LDFLAGS"
20705 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20706 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20707 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20708 # The linker can only warn and ignore the option if not recognized
20709 # So say no if there are warnings
20710 if test -s conftest.err; then
20711 # Append any errors to the config.log.
20712 cat conftest.err 1>&5
20713 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20714 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20715 if diff conftest.exp conftest.er2 >/dev/null; then
20716 lt_cv_prog_compiler_static_works_CXX=yes
20718 else
20719 lt_cv_prog_compiler_static_works_CXX=yes
20722 $RM -r conftest*
20723 LDFLAGS="$save_LDFLAGS"
20726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20727 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20729 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20731 else
20732 lt_prog_compiler_static_CXX=
20738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20739 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20740 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20741 $as_echo_n "(cached) " >&6
20742 else
20743 lt_cv_prog_compiler_c_o_CXX=no
20744 $RM -r conftest 2>/dev/null
20745 mkdir conftest
20746 cd conftest
20747 mkdir out
20748 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20750 lt_compiler_flag="-o out/conftest2.$ac_objext"
20751 # Insert the option either (1) after the last *FLAGS variable, or
20752 # (2) before a word containing "conftest.", or (3) at the end.
20753 # Note that $ac_compile itself does not contain backslashes and begins
20754 # with a dollar sign (not a hyphen), so the echo should work correctly.
20755 lt_compile=`echo "$ac_compile" | $SED \
20756 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20757 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20758 -e 's:$: $lt_compiler_flag:'`
20759 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20760 (eval "$lt_compile" 2>out/conftest.err)
20761 ac_status=$?
20762 cat out/conftest.err >&5
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20765 then
20766 # The compiler can only warn and ignore the option if not recognized
20767 # So say no if there are warnings
20768 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20769 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20770 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20771 lt_cv_prog_compiler_c_o_CXX=yes
20774 chmod u+w . 2>&5
20775 $RM conftest*
20776 # SGI C++ compiler will create directory out/ii_files/ for
20777 # template instantiation
20778 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20779 $RM out/* && rmdir out
20780 cd ..
20781 $RM -r conftest
20782 $RM conftest*
20785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20786 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20791 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20792 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20793 $as_echo_n "(cached) " >&6
20794 else
20795 lt_cv_prog_compiler_c_o_CXX=no
20796 $RM -r conftest 2>/dev/null
20797 mkdir conftest
20798 cd conftest
20799 mkdir out
20800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20802 lt_compiler_flag="-o out/conftest2.$ac_objext"
20803 # Insert the option either (1) after the last *FLAGS variable, or
20804 # (2) before a word containing "conftest.", or (3) at the end.
20805 # Note that $ac_compile itself does not contain backslashes and begins
20806 # with a dollar sign (not a hyphen), so the echo should work correctly.
20807 lt_compile=`echo "$ac_compile" | $SED \
20808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20810 -e 's:$: $lt_compiler_flag:'`
20811 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20812 (eval "$lt_compile" 2>out/conftest.err)
20813 ac_status=$?
20814 cat out/conftest.err >&5
20815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20817 then
20818 # The compiler can only warn and ignore the option if not recognized
20819 # So say no if there are warnings
20820 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20821 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20822 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20823 lt_cv_prog_compiler_c_o_CXX=yes
20826 chmod u+w . 2>&5
20827 $RM conftest*
20828 # SGI C++ compiler will create directory out/ii_files/ for
20829 # template instantiation
20830 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20831 $RM out/* && rmdir out
20832 cd ..
20833 $RM -r conftest
20834 $RM conftest*
20837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20838 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20843 hard_links="nottested"
20844 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20845 # do not overwrite the value of need_locks provided by the user
20846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20847 $as_echo_n "checking if we can lock with hard links... " >&6; }
20848 hard_links=yes
20849 $RM conftest*
20850 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20851 touch conftest.a
20852 ln conftest.a conftest.b 2>&5 || hard_links=no
20853 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20855 $as_echo "$hard_links" >&6; }
20856 if test "$hard_links" = no; then
20857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20858 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20859 need_locks=warn
20861 else
20862 need_locks=no
20867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20868 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20870 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20871 case $host_os in
20872 aix[4-9]*)
20873 # If we're using GNU nm, then we don't want the "-C" option.
20874 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20875 # Also, AIX nm treats weak defined symbols like other global defined
20876 # symbols, whereas GNU nm marks them as "W".
20877 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20878 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'
20879 else
20880 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'
20883 pw32*)
20884 export_symbols_cmds_CXX="$ltdll_cmds"
20886 cygwin* | mingw* | cegcc*)
20887 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'
20890 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20892 esac
20893 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20896 $as_echo "$ld_shlibs_CXX" >&6; }
20897 test "$ld_shlibs_CXX" = no && can_build_shared=no
20899 with_gnu_ld_CXX=$with_gnu_ld
20907 # Do we need to explicitly link libc?
20909 case "x$archive_cmds_need_lc_CXX" in
20910 x|xyes)
20911 # Assume -lc should be added
20912 archive_cmds_need_lc_CXX=yes
20914 if test "$enable_shared" = yes && test "$GCC" = yes; then
20915 case $archive_cmds_CXX in
20916 *'~'*)
20917 # FIXME: we may have to deal with multi-command sequences.
20919 '$CC '*)
20920 # Test whether the compiler implicitly links with -lc since on some
20921 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20922 # to ld, don't add -lc before -lgcc.
20923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20924 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20925 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20926 $as_echo_n "(cached) " >&6
20927 else
20928 $RM conftest*
20929 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20932 (eval $ac_compile) 2>&5
20933 ac_status=$?
20934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20935 test $ac_status = 0; } 2>conftest.err; then
20936 soname=conftest
20937 lib=conftest
20938 libobjs=conftest.$ac_objext
20939 deplibs=
20940 wl=$lt_prog_compiler_wl_CXX
20941 pic_flag=$lt_prog_compiler_pic_CXX
20942 compiler_flags=-v
20943 linker_flags=-v
20944 verstring=
20945 output_objdir=.
20946 libname=conftest
20947 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20948 allow_undefined_flag_CXX=
20949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20950 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20951 ac_status=$?
20952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20953 test $ac_status = 0; }
20954 then
20955 lt_cv_archive_cmds_need_lc_CXX=no
20956 else
20957 lt_cv_archive_cmds_need_lc_CXX=yes
20959 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20960 else
20961 cat conftest.err 1>&5
20963 $RM conftest*
20966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20967 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20968 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20970 esac
20973 esac
21038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21039 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21041 library_names_spec=
21042 libname_spec='lib$name'
21043 soname_spec=
21044 shrext_cmds=".so"
21045 postinstall_cmds=
21046 postuninstall_cmds=
21047 finish_cmds=
21048 finish_eval=
21049 shlibpath_var=
21050 shlibpath_overrides_runpath=unknown
21051 version_type=none
21052 dynamic_linker="$host_os ld.so"
21053 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21054 need_lib_prefix=unknown
21055 hardcode_into_libs=no
21057 # when you set need_version to no, make sure it does not cause -set_version
21058 # flags to be left without arguments
21059 need_version=unknown
21061 case $host_os in
21062 aix3*)
21063 version_type=linux
21064 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21065 shlibpath_var=LIBPATH
21067 # AIX 3 has no versioning support, so we append a major version to the name.
21068 soname_spec='${libname}${release}${shared_ext}$major'
21071 aix[4-9]*)
21072 version_type=linux
21073 need_lib_prefix=no
21074 need_version=no
21075 hardcode_into_libs=yes
21076 if test "$host_cpu" = ia64; then
21077 # AIX 5 supports IA64
21078 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21079 shlibpath_var=LD_LIBRARY_PATH
21080 else
21081 # With GCC up to 2.95.x, collect2 would create an import file
21082 # for dependence libraries. The import file would start with
21083 # the line `#! .'. This would cause the generated library to
21084 # depend on `.', always an invalid library. This was fixed in
21085 # development snapshots of GCC prior to 3.0.
21086 case $host_os in
21087 aix4 | aix4.[01] | aix4.[01].*)
21088 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21089 echo ' yes '
21090 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21092 else
21093 can_build_shared=no
21096 esac
21097 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21098 # soname into executable. Probably we can add versioning support to
21099 # collect2, so additional links can be useful in future.
21100 if test "$aix_use_runtimelinking" = yes; then
21101 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21102 # instead of lib<name>.a to let people know that these are not
21103 # typical AIX shared libraries.
21104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21105 else
21106 # We preserve .a as extension for shared libraries through AIX4.2
21107 # and later when we are not doing run time linking.
21108 library_names_spec='${libname}${release}.a $libname.a'
21109 soname_spec='${libname}${release}${shared_ext}$major'
21111 shlibpath_var=LIBPATH
21115 amigaos*)
21116 case $host_cpu in
21117 powerpc)
21118 # Since July 2007 AmigaOS4 officially supports .so libraries.
21119 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21122 m68k)
21123 library_names_spec='$libname.ixlibrary $libname.a'
21124 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21125 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'
21127 esac
21130 beos*)
21131 library_names_spec='${libname}${shared_ext}'
21132 dynamic_linker="$host_os ld.so"
21133 shlibpath_var=LIBRARY_PATH
21136 bsdi[45]*)
21137 version_type=linux
21138 need_version=no
21139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21140 soname_spec='${libname}${release}${shared_ext}$major'
21141 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21142 shlibpath_var=LD_LIBRARY_PATH
21143 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21144 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21145 # the default ld.so.conf also contains /usr/contrib/lib and
21146 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21147 # libtool to hard-code these into programs
21150 cygwin* | mingw* | pw32* | cegcc*)
21151 version_type=windows
21152 shrext_cmds=".dll"
21153 need_version=no
21154 need_lib_prefix=no
21156 case $GCC,$host_os in
21157 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21158 library_names_spec='$libname.dll.a'
21159 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21160 postinstall_cmds='base_file=`basename \${file}`~
21161 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21162 dldir=$destdir/`dirname \$dlpath`~
21163 test -d \$dldir || mkdir -p \$dldir~
21164 $install_prog $dir/$dlname \$dldir/$dlname~
21165 chmod a+x \$dldir/$dlname~
21166 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21167 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21169 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21170 dlpath=$dir/\$dldll~
21171 $RM \$dlpath'
21172 shlibpath_overrides_runpath=yes
21174 case $host_os in
21175 cygwin*)
21176 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21177 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21180 mingw* | cegcc*)
21181 # MinGW DLLs use traditional 'lib' prefix
21182 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21184 pw32*)
21185 # pw32 DLLs use 'pw' prefix rather than 'lib'
21186 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21188 esac
21192 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21194 esac
21195 dynamic_linker='Win32 ld.exe'
21196 # FIXME: first we should search . and the directory the executable is in
21197 shlibpath_var=PATH
21200 darwin* | rhapsody*)
21201 dynamic_linker="$host_os dyld"
21202 version_type=darwin
21203 need_lib_prefix=no
21204 need_version=no
21205 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21206 soname_spec='${libname}${release}${major}$shared_ext'
21207 shlibpath_overrides_runpath=yes
21208 shlibpath_var=DYLD_LIBRARY_PATH
21209 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21211 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21214 dgux*)
21215 version_type=linux
21216 need_lib_prefix=no
21217 need_version=no
21218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21219 soname_spec='${libname}${release}${shared_ext}$major'
21220 shlibpath_var=LD_LIBRARY_PATH
21223 freebsd* | dragonfly*)
21224 # DragonFly does not have aout. When/if they implement a new
21225 # versioning mechanism, adjust this.
21226 if test -x /usr/bin/objformat; then
21227 objformat=`/usr/bin/objformat`
21228 else
21229 case $host_os in
21230 freebsd[23].*) objformat=aout ;;
21231 *) objformat=elf ;;
21232 esac
21234 version_type=freebsd-$objformat
21235 case $version_type in
21236 freebsd-elf*)
21237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21238 need_version=no
21239 need_lib_prefix=no
21241 freebsd-*)
21242 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21243 need_version=yes
21245 esac
21246 shlibpath_var=LD_LIBRARY_PATH
21247 case $host_os in
21248 freebsd2.*)
21249 shlibpath_overrides_runpath=yes
21251 freebsd3.[01]* | freebsdelf3.[01]*)
21252 shlibpath_overrides_runpath=yes
21253 hardcode_into_libs=yes
21255 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21256 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21257 shlibpath_overrides_runpath=no
21258 hardcode_into_libs=yes
21260 *) # from 4.6 on, and DragonFly
21261 shlibpath_overrides_runpath=yes
21262 hardcode_into_libs=yes
21264 esac
21267 gnu*)
21268 version_type=linux
21269 need_lib_prefix=no
21270 need_version=no
21271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21272 soname_spec='${libname}${release}${shared_ext}$major'
21273 shlibpath_var=LD_LIBRARY_PATH
21274 hardcode_into_libs=yes
21277 haiku*)
21278 version_type=linux
21279 need_lib_prefix=no
21280 need_version=no
21281 dynamic_linker="$host_os runtime_loader"
21282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21283 soname_spec='${libname}${release}${shared_ext}$major'
21284 shlibpath_var=LIBRARY_PATH
21285 shlibpath_overrides_runpath=yes
21286 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21287 hardcode_into_libs=yes
21290 hpux9* | hpux10* | hpux11*)
21291 # Give a soname corresponding to the major version so that dld.sl refuses to
21292 # link against other versions.
21293 version_type=sunos
21294 need_lib_prefix=no
21295 need_version=no
21296 case $host_cpu in
21297 ia64*)
21298 shrext_cmds='.so'
21299 hardcode_into_libs=yes
21300 dynamic_linker="$host_os dld.so"
21301 shlibpath_var=LD_LIBRARY_PATH
21302 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21304 soname_spec='${libname}${release}${shared_ext}$major'
21305 if test "X$HPUX_IA64_MODE" = X32; then
21306 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21307 else
21308 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21310 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21312 hppa*64*)
21313 shrext_cmds='.sl'
21314 hardcode_into_libs=yes
21315 dynamic_linker="$host_os dld.sl"
21316 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21317 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21319 soname_spec='${libname}${release}${shared_ext}$major'
21320 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21321 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21324 shrext_cmds='.sl'
21325 dynamic_linker="$host_os dld.sl"
21326 shlibpath_var=SHLIB_PATH
21327 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21329 soname_spec='${libname}${release}${shared_ext}$major'
21331 esac
21332 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21333 postinstall_cmds='chmod 555 $lib'
21334 # or fails outright, so override atomically:
21335 install_override_mode=555
21338 interix[3-9]*)
21339 version_type=linux
21340 need_lib_prefix=no
21341 need_version=no
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21345 shlibpath_var=LD_LIBRARY_PATH
21346 shlibpath_overrides_runpath=no
21347 hardcode_into_libs=yes
21350 irix5* | irix6* | nonstopux*)
21351 case $host_os in
21352 nonstopux*) version_type=nonstopux ;;
21354 if test "$lt_cv_prog_gnu_ld" = yes; then
21355 version_type=linux
21356 else
21357 version_type=irix
21358 fi ;;
21359 esac
21360 need_lib_prefix=no
21361 need_version=no
21362 soname_spec='${libname}${release}${shared_ext}$major'
21363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21364 case $host_os in
21365 irix5* | nonstopux*)
21366 libsuff= shlibsuff=
21369 case $LD in # libtool.m4 will add one of these switches to LD
21370 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21371 libsuff= shlibsuff= libmagic=32-bit;;
21372 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21373 libsuff=32 shlibsuff=N32 libmagic=N32;;
21374 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21375 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21376 *) libsuff= shlibsuff= libmagic=never-match;;
21377 esac
21379 esac
21380 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21381 shlibpath_overrides_runpath=no
21382 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21383 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21384 hardcode_into_libs=yes
21387 # No shared lib support for Linux oldld, aout, or coff.
21388 linux*oldld* | linux*aout* | linux*coff*)
21389 dynamic_linker=no
21392 # This must be Linux ELF.
21393 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21394 version_type=linux
21395 need_lib_prefix=no
21396 need_version=no
21397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21398 soname_spec='${libname}${release}${shared_ext}$major'
21399 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21400 shlibpath_var=LD_LIBRARY_PATH
21401 shlibpath_overrides_runpath=no
21403 # Some binutils ld are patched to set DT_RUNPATH
21404 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21405 $as_echo_n "(cached) " >&6
21406 else
21407 lt_cv_shlibpath_overrides_runpath=no
21408 save_LDFLAGS=$LDFLAGS
21409 save_libdir=$libdir
21410 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21411 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21413 /* end confdefs.h. */
21416 main ()
21420 return 0;
21422 _ACEOF
21423 if ac_fn_cxx_try_link "$LINENO"; then :
21424 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21425 lt_cv_shlibpath_overrides_runpath=yes
21428 rm -f core conftest.err conftest.$ac_objext \
21429 conftest$ac_exeext conftest.$ac_ext
21430 LDFLAGS=$save_LDFLAGS
21431 libdir=$save_libdir
21435 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21437 # This implies no fast_install, which is unacceptable.
21438 # Some rework will be needed to allow for fast_install
21439 # before this can be enabled.
21440 hardcode_into_libs=yes
21442 # Append ld.so.conf contents to the search path
21443 if test -f /etc/ld.so.conf; then
21444 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' ' '`
21445 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21448 # We used to test for /lib/ld.so.1 and disable shared libraries on
21449 # powerpc, because MkLinux only supported shared libraries with the
21450 # GNU dynamic linker. Since this was broken with cross compilers,
21451 # most powerpc-linux boxes support dynamic linking these days and
21452 # people can always --disable-shared, the test was removed, and we
21453 # assume the GNU/Linux dynamic linker is in use.
21454 dynamic_linker='GNU/Linux ld.so'
21457 netbsd*)
21458 version_type=sunos
21459 need_lib_prefix=no
21460 need_version=no
21461 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21463 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21464 dynamic_linker='NetBSD (a.out) ld.so'
21465 else
21466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21467 soname_spec='${libname}${release}${shared_ext}$major'
21468 dynamic_linker='NetBSD ld.elf_so'
21470 shlibpath_var=LD_LIBRARY_PATH
21471 shlibpath_overrides_runpath=yes
21472 hardcode_into_libs=yes
21475 newsos6)
21476 version_type=linux
21477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21478 shlibpath_var=LD_LIBRARY_PATH
21479 shlibpath_overrides_runpath=yes
21482 *nto* | *qnx*)
21483 version_type=qnx
21484 need_lib_prefix=no
21485 need_version=no
21486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21487 soname_spec='${libname}${release}${shared_ext}$major'
21488 shlibpath_var=LD_LIBRARY_PATH
21489 shlibpath_overrides_runpath=no
21490 hardcode_into_libs=yes
21491 dynamic_linker='ldqnx.so'
21494 openbsd*)
21495 version_type=sunos
21496 sys_lib_dlsearch_path_spec="/usr/lib"
21497 need_lib_prefix=no
21498 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21499 case $host_os in
21500 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21501 *) need_version=no ;;
21502 esac
21503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21505 shlibpath_var=LD_LIBRARY_PATH
21506 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21507 case $host_os in
21508 openbsd2.[89] | openbsd2.[89].*)
21509 shlibpath_overrides_runpath=no
21512 shlibpath_overrides_runpath=yes
21514 esac
21515 else
21516 shlibpath_overrides_runpath=yes
21520 os2*)
21521 libname_spec='$name'
21522 shrext_cmds=".dll"
21523 need_lib_prefix=no
21524 library_names_spec='$libname${shared_ext} $libname.a'
21525 dynamic_linker='OS/2 ld.exe'
21526 shlibpath_var=LIBPATH
21529 osf3* | osf4* | osf5*)
21530 version_type=osf
21531 need_lib_prefix=no
21532 need_version=no
21533 soname_spec='${libname}${release}${shared_ext}$major'
21534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21535 shlibpath_var=LD_LIBRARY_PATH
21536 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21537 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21540 rdos*)
21541 dynamic_linker=no
21544 solaris*)
21545 version_type=linux
21546 need_lib_prefix=no
21547 need_version=no
21548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21549 soname_spec='${libname}${release}${shared_ext}$major'
21550 shlibpath_var=LD_LIBRARY_PATH
21551 shlibpath_overrides_runpath=yes
21552 hardcode_into_libs=yes
21553 # ldd complains unless libraries are executable
21554 postinstall_cmds='chmod +x $lib'
21557 sunos4*)
21558 version_type=sunos
21559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21560 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21561 shlibpath_var=LD_LIBRARY_PATH
21562 shlibpath_overrides_runpath=yes
21563 if test "$with_gnu_ld" = yes; then
21564 need_lib_prefix=no
21566 need_version=yes
21569 sysv4 | sysv4.3*)
21570 version_type=linux
21571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21572 soname_spec='${libname}${release}${shared_ext}$major'
21573 shlibpath_var=LD_LIBRARY_PATH
21574 case $host_vendor in
21575 sni)
21576 shlibpath_overrides_runpath=no
21577 need_lib_prefix=no
21578 runpath_var=LD_RUN_PATH
21580 siemens)
21581 need_lib_prefix=no
21583 motorola)
21584 need_lib_prefix=no
21585 need_version=no
21586 shlibpath_overrides_runpath=no
21587 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21589 esac
21592 sysv4*MP*)
21593 if test -d /usr/nec ;then
21594 version_type=linux
21595 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21596 soname_spec='$libname${shared_ext}.$major'
21597 shlibpath_var=LD_LIBRARY_PATH
21601 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21602 version_type=freebsd-elf
21603 need_lib_prefix=no
21604 need_version=no
21605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21606 soname_spec='${libname}${release}${shared_ext}$major'
21607 shlibpath_var=LD_LIBRARY_PATH
21608 shlibpath_overrides_runpath=yes
21609 hardcode_into_libs=yes
21610 if test "$with_gnu_ld" = yes; then
21611 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21612 else
21613 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21614 case $host_os in
21615 sco3.2v5*)
21616 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21618 esac
21620 sys_lib_dlsearch_path_spec='/usr/lib'
21623 tpf*)
21624 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21625 version_type=linux
21626 need_lib_prefix=no
21627 need_version=no
21628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21629 shlibpath_var=LD_LIBRARY_PATH
21630 shlibpath_overrides_runpath=no
21631 hardcode_into_libs=yes
21634 uts4*)
21635 version_type=linux
21636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21637 soname_spec='${libname}${release}${shared_ext}$major'
21638 shlibpath_var=LD_LIBRARY_PATH
21642 dynamic_linker=no
21644 esac
21645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21646 $as_echo "$dynamic_linker" >&6; }
21647 test "$dynamic_linker" = no && can_build_shared=no
21649 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21650 if test "$GCC" = yes; then
21651 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21654 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21655 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21657 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21658 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21699 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21700 hardcode_action_CXX=
21701 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21702 test -n "$runpath_var_CXX" ||
21703 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21705 # We can hardcode non-existent directories.
21706 if test "$hardcode_direct_CXX" != no &&
21707 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21708 # have to relink, otherwise we might link with an installed library
21709 # when we should be linking with a yet-to-be-installed one
21710 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21711 test "$hardcode_minus_L_CXX" != no; then
21712 # Linking always hardcodes the temporary library directory.
21713 hardcode_action_CXX=relink
21714 else
21715 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21716 hardcode_action_CXX=immediate
21718 else
21719 # We cannot hardcode anything, or else we can only hardcode existing
21720 # directories.
21721 hardcode_action_CXX=unsupported
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21724 $as_echo "$hardcode_action_CXX" >&6; }
21726 if test "$hardcode_action_CXX" = relink ||
21727 test "$inherit_rpath_CXX" = yes; then
21728 # Fast installation is not supported
21729 enable_fast_install=no
21730 elif test "$shlibpath_overrides_runpath" = yes ||
21731 test "$enable_shared" = no; then
21732 # Fast installation is not necessary
21733 enable_fast_install=needless
21742 fi # test -n "$compiler"
21744 CC=$lt_save_CC
21745 LDCXX=$LD
21746 LD=$lt_save_LD
21747 GCC=$lt_save_GCC
21748 with_gnu_ld=$lt_save_with_gnu_ld
21749 lt_cv_path_LDCXX=$lt_cv_path_LD
21750 lt_cv_path_LD=$lt_save_path_LD
21751 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21752 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21753 fi # test "$_lt_caught_CXX_error" != yes
21755 ac_ext=cpp
21756 ac_cpp='$CXXCPP $CPPFLAGS'
21757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21776 # Only expand once:
21782 # Identify the assembler which will work hand-in-glove with the newly
21783 # built GCC, so that we can examine its features. This is the assembler
21784 # which will be driven by the driver program.
21786 # If build != host, and we aren't building gas in-tree, we identify a
21787 # build->target assembler and hope that it will have the same features
21788 # as the host->target assembler we'll be using.
21789 gcc_cv_gas_major_version=
21790 gcc_cv_gas_minor_version=
21791 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21793 if test "${gcc_cv_as+set}" = set; then :
21795 else
21797 if test -x "$DEFAULT_ASSEMBLER"; then
21798 gcc_cv_as="$DEFAULT_ASSEMBLER"
21799 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21800 && test -f ../gas/Makefile \
21801 && test x$build = x$host; then
21802 gcc_cv_as=../gas/as-new$build_exeext
21803 elif test -x as$build_exeext; then
21804 # Build using assembler in the current directory.
21805 gcc_cv_as=./as$build_exeext
21806 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21807 gcc_cv_as="$AS_FOR_TARGET"
21808 else
21809 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21810 set dummy $AS_FOR_TARGET; ac_word=$2
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21812 $as_echo_n "checking for $ac_word... " >&6; }
21813 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21814 $as_echo_n "(cached) " >&6
21815 else
21816 case $gcc_cv_as in
21817 [\\/]* | ?:[\\/]*)
21818 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21822 for as_dir in $PATH
21824 IFS=$as_save_IFS
21825 test -z "$as_dir" && as_dir=.
21826 for ac_exec_ext in '' $ac_executable_extensions; do
21827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21828 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21830 break 2
21832 done
21833 done
21834 IFS=$as_save_IFS
21837 esac
21839 gcc_cv_as=$ac_cv_path_gcc_cv_as
21840 if test -n "$gcc_cv_as"; then
21841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21842 $as_echo "$gcc_cv_as" >&6; }
21843 else
21844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21845 $as_echo "no" >&6; }
21852 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21854 case "$ORIGINAL_AS_FOR_TARGET" in
21855 ./as | ./as$build_exeext) ;;
21856 *) ac_config_files="$ac_config_files as:exec-tool.in"
21858 esac
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21861 $as_echo_n "checking what assembler to use... " >&6; }
21862 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21863 # Single tree build which includes gas. We want to prefer it
21864 # over whatever linker top-level may have detected, since
21865 # we'll use what we're building after installation anyway.
21866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21867 $as_echo "newly built gas" >&6; }
21868 in_tree_gas=yes
21869 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21870 for f in $gcc_cv_as_bfd_srcdir/configure \
21871 $gcc_cv_as_gas_srcdir/configure \
21872 $gcc_cv_as_gas_srcdir/configure.ac \
21873 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21874 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21875 if test x$gcc_cv_gas_version != x; then
21876 break
21878 done
21879 case $gcc_cv_gas_version in
21880 VERSION=[0-9]*) ;;
21881 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21882 esac
21883 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21884 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21885 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21886 case $gcc_cv_gas_patch_version in
21887 "") gcc_cv_gas_patch_version="0" ;;
21888 esac
21889 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21890 + $gcc_cv_gas_minor_version \) \* 1000 \
21891 + $gcc_cv_gas_patch_version`
21893 in_tree_gas_is_elf=no
21894 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21895 || (grep 'obj_format = multi' ../gas/Makefile \
21896 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21897 then
21898 in_tree_gas_is_elf=yes
21900 else
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21902 $as_echo "$gcc_cv_as" >&6; }
21903 in_tree_gas=no
21906 default_ld=
21907 # Check whether --enable-ld was given.
21908 if test "${enable_ld+set}" = set; then :
21909 enableval=$enable_ld; case "${enableval}" in
21911 default_ld=ld.gold
21913 esac
21917 install_gold_as_default=no
21918 # Check whether --enable-gold was given.
21919 if test "${enable_gold+set}" = set; then :
21920 enableval=$enable_gold; case "${enableval}" in
21921 default)
21922 install_gold_as_default=yes
21924 yes)
21925 if test x${default_ld} != x; then
21926 install_gold_as_default=yes
21932 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21934 esac
21938 # Identify the linker which will work hand-in-glove with the newly
21939 # built GCC, so that we can examine its features. This is the linker
21940 # which will be driven by the driver program.
21942 # If build != host, and we aren't building gas in-tree, we identify a
21943 # build->target linker and hope that it will have the same features
21944 # as the host->target linker we'll be using.
21945 gcc_cv_gld_major_version=
21946 gcc_cv_gld_minor_version=
21947 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21948 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21949 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21951 if test "${gcc_cv_ld+set}" = set; then :
21953 else
21955 if test -x "$DEFAULT_LINKER"; then
21956 gcc_cv_ld="$DEFAULT_LINKER"
21957 elif test $install_gold_as_default = yes \
21958 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21959 && test -f ../gold/Makefile \
21960 && test x$build = x$host; then
21961 gcc_cv_ld=../gold/ld-new$build_exeext
21962 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21963 && test -f ../ld/Makefile \
21964 && test x$build = x$host; then
21965 gcc_cv_ld=../ld/ld-new$build_exeext
21966 elif test -x collect-ld$build_exeext; then
21967 # Build using linker in the current directory.
21968 gcc_cv_ld=./collect-ld$build_exeext
21969 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21970 gcc_cv_ld="$LD_FOR_TARGET"
21971 else
21972 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21973 set dummy $LD_FOR_TARGET; ac_word=$2
21974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21975 $as_echo_n "checking for $ac_word... " >&6; }
21976 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21977 $as_echo_n "(cached) " >&6
21978 else
21979 case $gcc_cv_ld in
21980 [\\/]* | ?:[\\/]*)
21981 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21985 for as_dir in $PATH
21987 IFS=$as_save_IFS
21988 test -z "$as_dir" && as_dir=.
21989 for ac_exec_ext in '' $ac_executable_extensions; do
21990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21991 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21993 break 2
21995 done
21996 done
21997 IFS=$as_save_IFS
22000 esac
22002 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
22003 if test -n "$gcc_cv_ld"; then
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22005 $as_echo "$gcc_cv_ld" >&6; }
22006 else
22007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22008 $as_echo "no" >&6; }
22015 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
22016 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22017 # if the PLUGIN_LD is set ld-new, just have it as ld
22018 # as that is the installed named.
22019 if test x$PLUGIN_LD_SUFFIX = xld-new \
22020 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
22021 PLUGIN_LD_SUFFIX=ld
22024 # Check whether --with-plugin-ld was given.
22025 if test "${with_plugin_ld+set}" = set; then :
22026 withval=$with_plugin_ld; if test x"$withval" != x; then
22027 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
22028 PLUGIN_LD_SUFFIX="$withval"
22034 cat >>confdefs.h <<_ACEOF
22035 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22036 _ACEOF
22039 # Check to see if we are using gold instead of ld
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22041 $as_echo_n "checking whether we are using gold... " >&6; }
22042 ld_is_gold=no
22043 if test x$gcc_cv_ld != x; then
22044 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
22045 | grep "GNU gold" > /dev/null; then
22046 ld_is_gold=yes
22049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22050 $as_echo "$ld_is_gold" >&6; }
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22053 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22054 # Check to see if default ld is not gold, but gold is
22055 # available and has support for split stack. If gcc was configured
22056 # with gold then no checking is done.
22058 if test x$ld_is_gold = xno && which ${gcc_cv_ld}.gold >/dev/null 2>&1; then
22060 # For platforms other than powerpc64*, enable as appropriate.
22062 gold_non_default=no
22063 ld_gold=`which ${gcc_cv_ld}.gold`
22064 # Make sure this gold has minimal split stack support
22065 if $ld_gold --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
22066 ld_vers=`$ld_gold --version | sed 1q`
22067 gold_vers=`echo $ld_vers | sed -n \
22068 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22069 case $target in
22070 # check that the gold version contains the complete split stack support
22071 # on powerpc64 big and little endian
22072 powerpc64*-*-*)
22073 case "$gold_vers" in
22074 2.25.[1-9]*|2.2[6-9][.0-9]*|2.[3-9][.0-9]*|[3-9].[.0-9]*) gold_non_default=yes
22076 *) gold_non_default=no
22078 esac
22080 esac
22082 if test $gold_non_default = yes; then
22084 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22089 $as_echo "$gold_non_default" >&6; }
22091 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
22093 case "$ORIGINAL_LD_FOR_TARGET" in
22094 ./collect-ld | ./collect-ld$build_exeext) ;;
22095 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
22097 esac
22099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22100 $as_echo_n "checking what linker to use... " >&6; }
22101 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
22102 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
22103 # Single tree build which includes ld. We want to prefer it
22104 # over whatever linker top-level may have detected, since
22105 # we'll use what we're building after installation anyway.
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22107 $as_echo "newly built ld" >&6; }
22108 in_tree_ld=yes
22109 in_tree_ld_is_elf=no
22110 if (grep 'EMUL = .*elf' ../ld/Makefile \
22111 || grep 'EMUL = .*linux' ../ld/Makefile \
22112 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
22113 in_tree_ld_is_elf=yes
22114 elif test "$ld_is_gold" = yes; then
22115 in_tree_ld_is_elf=yes
22117 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
22119 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22120 if test x$gcc_cv_gld_version != x; then
22121 break
22123 done
22124 case $gcc_cv_gld_version in
22125 VERSION=[0-9]*) ;;
22126 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
22127 esac
22128 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22129 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22130 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
22131 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
22132 else
22133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22134 $as_echo "$gcc_cv_ld" >&6; }
22135 in_tree_ld=no
22136 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22137 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
22138 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
22144 # Figure out what nm we will be using.
22145 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22146 if test "${gcc_cv_nm+set}" = set; then :
22148 else
22150 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22151 && test -f ../binutils/Makefile \
22152 && test x$build = x$host; then
22153 gcc_cv_nm=../binutils/nm-new$build_exeext
22154 elif test -x nm$build_exeext; then
22155 gcc_cv_nm=./nm$build_exeext
22156 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
22157 gcc_cv_nm="$NM_FOR_TARGET"
22158 else
22159 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22160 set dummy $NM_FOR_TARGET; ac_word=$2
22161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22162 $as_echo_n "checking for $ac_word... " >&6; }
22163 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22164 $as_echo_n "(cached) " >&6
22165 else
22166 case $gcc_cv_nm in
22167 [\\/]* | ?:[\\/]*)
22168 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
22171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22172 for as_dir in $PATH
22174 IFS=$as_save_IFS
22175 test -z "$as_dir" && as_dir=.
22176 for ac_exec_ext in '' $ac_executable_extensions; do
22177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22178 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
22179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22180 break 2
22182 done
22183 done
22184 IFS=$as_save_IFS
22187 esac
22189 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
22190 if test -n "$gcc_cv_nm"; then
22191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22192 $as_echo "$gcc_cv_nm" >&6; }
22193 else
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22195 $as_echo "no" >&6; }
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22203 $as_echo_n "checking what nm to use... " >&6; }
22204 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
22205 # Single tree build which includes binutils.
22206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22207 $as_echo "newly built nm" >&6; }
22208 in_tree_nm=yes
22209 else
22210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22211 $as_echo "$gcc_cv_nm" >&6; }
22212 in_tree_nm=no
22215 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
22217 case "$ORIGINAL_NM_FOR_TARGET" in
22218 ./nm | ./nm$build_exeext) ;;
22219 *) ac_config_files="$ac_config_files nm:exec-tool.in"
22221 esac
22224 # Figure out what objdump we will be using.
22225 if test "${gcc_cv_objdump+set}" = set; then :
22227 else
22229 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22230 && test -f ../binutils/Makefile \
22231 && test x$build = x$host; then
22232 # Single tree build which includes binutils.
22233 gcc_cv_objdump=../binutils/objdump$build_exeext
22234 elif test -x objdump$build_exeext; then
22235 gcc_cv_objdump=./objdump$build_exeext
22236 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
22237 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
22238 else
22239 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22240 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22242 $as_echo_n "checking for $ac_word... " >&6; }
22243 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22244 $as_echo_n "(cached) " >&6
22245 else
22246 case $gcc_cv_objdump in
22247 [\\/]* | ?:[\\/]*)
22248 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
22251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22252 for as_dir in $PATH
22254 IFS=$as_save_IFS
22255 test -z "$as_dir" && as_dir=.
22256 for ac_exec_ext in '' $ac_executable_extensions; do
22257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22258 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
22259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22260 break 2
22262 done
22263 done
22264 IFS=$as_save_IFS
22267 esac
22269 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
22270 if test -n "$gcc_cv_objdump"; then
22271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22272 $as_echo "$gcc_cv_objdump" >&6; }
22273 else
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22275 $as_echo "no" >&6; }
22282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22283 $as_echo_n "checking what objdump to use... " >&6; }
22284 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
22285 # Single tree build which includes binutils.
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22287 $as_echo "newly built objdump" >&6; }
22288 elif test x$gcc_cv_objdump = x; then
22289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22290 $as_echo "not found" >&6; }
22291 else
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22293 $as_echo "$gcc_cv_objdump" >&6; }
22296 # Figure out what readelf we will be using.
22297 if test "${gcc_cv_readelf+set}" = set; then :
22299 else
22301 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22302 && test -f ../binutils/Makefile \
22303 && test x$build = x$host; then
22304 # Single tree build which includes binutils.
22305 gcc_cv_readelf=../binutils/readelf$build_exeext
22306 elif test -x readelf$build_exeext; then
22307 gcc_cv_readelf=./readelf$build_exeext
22308 elif ( set dummy $READELF_FOR_TARGET; test -x $2 ); then
22309 gcc_cv_readelf="$READELF_FOR_TARGET"
22310 else
22311 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22312 set dummy $READELF_FOR_TARGET; ac_word=$2
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22314 $as_echo_n "checking for $ac_word... " >&6; }
22315 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22316 $as_echo_n "(cached) " >&6
22317 else
22318 case $gcc_cv_readelf in
22319 [\\/]* | ?:[\\/]*)
22320 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22324 for as_dir in $PATH
22326 IFS=$as_save_IFS
22327 test -z "$as_dir" && as_dir=.
22328 for ac_exec_ext in '' $ac_executable_extensions; do
22329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22330 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22332 break 2
22334 done
22335 done
22336 IFS=$as_save_IFS
22339 esac
22341 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22342 if test -n "$gcc_cv_readelf"; then
22343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22344 $as_echo "$gcc_cv_readelf" >&6; }
22345 else
22346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22347 $as_echo "no" >&6; }
22354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22355 $as_echo_n "checking what readelf to use... " >&6; }
22356 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22357 # Single tree build which includes binutils.
22358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22359 $as_echo "newly built readelf" >&6; }
22360 elif test x$gcc_cv_readelf = x; then
22361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22362 $as_echo "not found" >&6; }
22363 else
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22365 $as_echo "$gcc_cv_readelf" >&6; }
22368 # Figure out what assembler alignment features are present.
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22370 $as_echo_n "checking assembler flags... " >&6; }
22371 if test "${gcc_cv_as_flags+set}" = set; then :
22372 $as_echo_n "(cached) " >&6
22373 else
22374 case "$target" in
22375 i[34567]86-*-linux*)
22376 gcc_cv_as_flags=--32
22378 x86_64-*-linux-gnux32)
22379 gcc_cv_as_flags=--x32
22381 x86_64-*-linux*)
22382 gcc_cv_as_flags=--64
22384 powerpc*-*-darwin*)
22385 gcc_cv_as_flags="-arch ppc"
22388 gcc_cv_as_flags=" "
22390 esac
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22393 $as_echo "$gcc_cv_as_flags" >&6; }
22395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22396 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22397 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22398 $as_echo_n "(cached) " >&6
22399 else
22400 gcc_cv_as_balign_and_p2align=no
22401 if test $in_tree_gas = yes; then
22402 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22403 then gcc_cv_as_balign_and_p2align=yes
22405 elif test x$gcc_cv_as != x; then
22406 $as_echo '.balign 4
22407 .p2align 2' > conftest.s
22408 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22410 (eval $ac_try) 2>&5
22411 ac_status=$?
22412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22413 test $ac_status = 0; }; }
22414 then
22415 gcc_cv_as_balign_and_p2align=yes
22416 else
22417 echo "configure: failed program was" >&5
22418 cat conftest.s >&5
22420 rm -f conftest.o conftest.s
22423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22424 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22425 if test $gcc_cv_as_balign_and_p2align = yes; then
22427 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22432 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22433 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22434 $as_echo_n "(cached) " >&6
22435 else
22436 gcc_cv_as_max_skip_p2align=no
22437 if test $in_tree_gas = yes; then
22438 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22439 then gcc_cv_as_max_skip_p2align=yes
22441 elif test x$gcc_cv_as != x; then
22442 $as_echo '.p2align 4,,7' > conftest.s
22443 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22445 (eval $ac_try) 2>&5
22446 ac_status=$?
22447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22448 test $ac_status = 0; }; }
22449 then
22450 gcc_cv_as_max_skip_p2align=yes
22451 else
22452 echo "configure: failed program was" >&5
22453 cat conftest.s >&5
22455 rm -f conftest.o conftest.s
22458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22459 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22460 if test $gcc_cv_as_max_skip_p2align = yes; then
22462 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22467 $as_echo_n "checking assembler for .literal16... " >&6; }
22468 if test "${gcc_cv_as_literal16+set}" = set; then :
22469 $as_echo_n "(cached) " >&6
22470 else
22471 gcc_cv_as_literal16=no
22472 if test $in_tree_gas = yes; then
22473 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22474 then gcc_cv_as_literal16=yes
22476 elif test x$gcc_cv_as != x; then
22477 $as_echo '.literal16' > conftest.s
22478 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22480 (eval $ac_try) 2>&5
22481 ac_status=$?
22482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22483 test $ac_status = 0; }; }
22484 then
22485 gcc_cv_as_literal16=yes
22486 else
22487 echo "configure: failed program was" >&5
22488 cat conftest.s >&5
22490 rm -f conftest.o conftest.s
22493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22494 $as_echo "$gcc_cv_as_literal16" >&6; }
22495 if test $gcc_cv_as_literal16 = yes; then
22497 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22502 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22503 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22504 $as_echo_n "(cached) " >&6
22505 else
22506 gcc_cv_as_subsection_m1=no
22507 if test $in_tree_gas = yes; then
22508 if test $in_tree_gas_is_elf = yes \
22509 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22510 then gcc_cv_as_subsection_m1=yes
22512 elif test x$gcc_cv_as != x; then
22513 $as_echo 'conftest_label1: .word 0
22514 .subsection -1
22515 conftest_label2: .word 0
22516 .previous' > conftest.s
22517 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22519 (eval $ac_try) 2>&5
22520 ac_status=$?
22521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22522 test $ac_status = 0; }; }
22523 then
22524 if test x$gcc_cv_nm != x; then
22525 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22526 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22527 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22528 then :
22529 else gcc_cv_as_subsection_m1=yes
22531 rm -f conftest.nm1 conftest.nm2
22533 else
22534 echo "configure: failed program was" >&5
22535 cat conftest.s >&5
22537 rm -f conftest.o conftest.s
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22541 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22542 if test $gcc_cv_as_subsection_m1 = yes; then
22544 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22549 $as_echo_n "checking assembler for .weak... " >&6; }
22550 if test "${gcc_cv_as_weak+set}" = set; then :
22551 $as_echo_n "(cached) " >&6
22552 else
22553 gcc_cv_as_weak=no
22554 if test $in_tree_gas = yes; then
22555 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22556 then gcc_cv_as_weak=yes
22558 elif test x$gcc_cv_as != x; then
22559 $as_echo ' .weak foobar' > conftest.s
22560 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22562 (eval $ac_try) 2>&5
22563 ac_status=$?
22564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22565 test $ac_status = 0; }; }
22566 then
22567 gcc_cv_as_weak=yes
22568 else
22569 echo "configure: failed program was" >&5
22570 cat conftest.s >&5
22572 rm -f conftest.o conftest.s
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22576 $as_echo "$gcc_cv_as_weak" >&6; }
22577 if test $gcc_cv_as_weak = yes; then
22579 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22584 $as_echo_n "checking assembler for .weakref... " >&6; }
22585 if test "${gcc_cv_as_weakref+set}" = set; then :
22586 $as_echo_n "(cached) " >&6
22587 else
22588 gcc_cv_as_weakref=no
22589 if test $in_tree_gas = yes; then
22590 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22591 then gcc_cv_as_weakref=yes
22593 elif test x$gcc_cv_as != x; then
22594 $as_echo ' .weakref foobar, barfnot' > conftest.s
22595 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22597 (eval $ac_try) 2>&5
22598 ac_status=$?
22599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22600 test $ac_status = 0; }; }
22601 then
22602 gcc_cv_as_weakref=yes
22603 else
22604 echo "configure: failed program was" >&5
22605 cat conftest.s >&5
22607 rm -f conftest.o conftest.s
22610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22611 $as_echo "$gcc_cv_as_weakref" >&6; }
22612 if test $gcc_cv_as_weakref = yes; then
22614 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22619 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22620 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22621 $as_echo_n "(cached) " >&6
22622 else
22623 gcc_cv_as_nsubspa_comdat=no
22624 if test $in_tree_gas = yes; then
22625 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22626 then gcc_cv_as_nsubspa_comdat=yes
22628 elif test x$gcc_cv_as != x; then
22629 $as_echo ' .SPACE $TEXT$
22630 .NSUBSPA $CODE$,COMDAT' > conftest.s
22631 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22633 (eval $ac_try) 2>&5
22634 ac_status=$?
22635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22636 test $ac_status = 0; }; }
22637 then
22638 gcc_cv_as_nsubspa_comdat=yes
22639 else
22640 echo "configure: failed program was" >&5
22641 cat conftest.s >&5
22643 rm -f conftest.o conftest.s
22646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22647 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22648 if test $gcc_cv_as_nsubspa_comdat = yes; then
22650 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22654 # .hidden needs to be supported in both the assembler and the linker,
22655 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22656 # This is irritatingly difficult to feature test for; we have to check the
22657 # date string after the version number. If we've got an in-tree
22658 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22659 # to be safe.
22660 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22662 $as_echo_n "checking assembler for .hidden... " >&6; }
22663 if test "${gcc_cv_as_hidden+set}" = set; then :
22664 $as_echo_n "(cached) " >&6
22665 else
22666 gcc_cv_as_hidden=no
22667 if test $in_tree_gas = yes; then
22668 if test $in_tree_gas_is_elf = yes \
22669 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22670 then gcc_cv_as_hidden=yes
22672 elif test x$gcc_cv_as != x; then
22673 $as_echo ' .hidden foobar
22674 foobar:' > conftest.s
22675 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22677 (eval $ac_try) 2>&5
22678 ac_status=$?
22679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22680 test $ac_status = 0; }; }
22681 then
22682 gcc_cv_as_hidden=yes
22683 else
22684 echo "configure: failed program was" >&5
22685 cat conftest.s >&5
22687 rm -f conftest.o conftest.s
22690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22691 $as_echo "$gcc_cv_as_hidden" >&6; }
22693 case "${target}" in
22694 *-*-darwin*)
22695 # Darwin as has some visibility support, though with a different syntax.
22696 gcc_cv_as_hidden=yes
22698 esac
22700 # gnu_indirect_function type is an extension proposed at
22701 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22702 # selection of function implementation
22703 # Check whether --enable-gnu-indirect-function was given.
22704 if test "${enable_gnu_indirect_function+set}" = set; then :
22705 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22706 yes | no) ;;
22707 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22708 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22709 esac
22710 else
22711 enable_gnu_indirect_function="$default_gnu_indirect_function"
22715 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22717 cat >>confdefs.h <<_ACEOF
22718 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22719 _ACEOF
22723 if test $in_tree_ld != yes ; then
22724 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22725 if echo "$ld_ver" | grep GNU > /dev/null; then
22726 if test x"$ld_is_gold" = xyes; then
22727 # GNU gold --version looks like this:
22729 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22731 # We extract the binutils version which is more familiar and specific
22732 # than the gold version.
22733 ld_vers=`echo $ld_ver | sed -n \
22734 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22735 else
22736 # GNU ld --version looks like this:
22738 # GNU ld (GNU Binutils) 2.21.51.20110225
22739 ld_vers=`echo $ld_ver | sed -n \
22740 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22742 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'`
22743 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22744 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22745 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22746 else
22747 case "${target}" in
22748 *-*-solaris2*)
22749 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22750 # format.
22752 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22753 # /usr/ccs/bin/ld has been configured.
22754 ld_ver=`$gcc_cv_ld -V 2>&1`
22755 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22756 ld_vers=`echo $ld_ver | sed -n \
22757 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22758 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22759 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22762 esac
22766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22767 $as_echo_n "checking linker for .hidden support... " >&6; }
22768 if test "${gcc_cv_ld_hidden+set}" = set; then :
22769 $as_echo_n "(cached) " >&6
22770 else
22771 if test $in_tree_ld = yes ; then
22772 gcc_cv_ld_hidden=no
22773 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 \
22774 && test $in_tree_ld_is_elf = yes; then
22775 gcc_cv_ld_hidden=yes
22777 else
22778 gcc_cv_ld_hidden=yes
22779 if test x"$ld_is_gold" = xyes; then
22781 elif echo "$ld_ver" | grep GNU > /dev/null; then
22782 case "${target}" in
22783 mmix-knuth-mmixware)
22784 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22785 gcc_cv_ld_hidden=no
22787 esac
22788 if test 0"$ld_date" -lt 20020404; then
22789 if test -n "$ld_date"; then
22790 # If there was date string, but was earlier than 2002-04-04, fail
22791 gcc_cv_ld_hidden=no
22792 elif test -z "$ld_vers"; then
22793 # If there was no date string nor ld version number, something is wrong
22794 gcc_cv_ld_hidden=no
22795 else
22796 test -z "$ld_vers_patch" && ld_vers_patch=0
22797 if test "$ld_vers_major" -lt 2; then
22798 gcc_cv_ld_hidden=no
22799 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22800 gcc_cv_ld_hidden="no"
22801 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22802 gcc_cv_ld_hidden=no
22806 else
22807 case "${target}" in
22808 *-*-darwin*)
22809 # Darwin ld has some visibility support.
22810 gcc_cv_ld_hidden=yes
22812 hppa64*-*-hpux* | ia64*-*-hpux*)
22813 gcc_cv_ld_hidden=yes
22815 *-*-solaris2.1[0-9]*)
22816 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22817 # .symbolic was only added in Solaris 9 12/02.
22818 gcc_cv_ld_hidden=yes
22821 gcc_cv_ld_hidden=no
22823 esac
22827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22828 $as_echo "$gcc_cv_ld_hidden" >&6; }
22829 libgcc_visibility=no
22832 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22833 libgcc_visibility=yes
22835 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22840 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22841 gcc_cv_ld_ro_rw_mix=unknown
22842 if test $in_tree_ld = yes ; then
22843 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 \
22844 && test $in_tree_ld_is_elf = yes; then
22845 gcc_cv_ld_ro_rw_mix=read-write
22847 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22848 echo '.section myfoosect, "a"' > conftest1.s
22849 echo '.section myfoosect, "aw"' > conftest2.s
22850 echo '.byte 1' >> conftest2.s
22851 echo '.section myfoosect, "a"' > conftest3.s
22852 echo '.byte 0' >> conftest3.s
22853 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22854 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22855 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22856 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22857 conftest2.o conftest3.o > /dev/null 2>&1; then
22858 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22859 | sed -e '/myfoosect/!d' -e N`
22860 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22861 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22862 gcc_cv_ld_ro_rw_mix=read-only
22863 else
22864 gcc_cv_ld_ro_rw_mix=read-write
22868 rm -f conftest.* conftest[123].*
22870 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22872 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22876 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22878 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22879 case "${target}" in
22880 *-*-solaris2*)
22882 # Solaris 2 ld -V output looks like this for a regular version:
22884 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22886 # but test versions add stuff at the end:
22888 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22890 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22891 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22892 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22893 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22894 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22895 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22898 esac
22901 # Check whether --enable-initfini-array was given.
22902 if test "${enable_initfini_array+set}" = set; then :
22903 enableval=$enable_initfini_array;
22904 else
22906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22907 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22908 if test "${gcc_cv_initfini_array+set}" = set; then :
22909 $as_echo_n "(cached) " >&6
22910 else
22911 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22912 case "${target}" in
22913 ia64-*)
22914 if test "$cross_compiling" = yes; then :
22915 gcc_cv_initfini_array=no
22916 else
22917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22918 /* end confdefs.h. */
22920 #ifndef __ELF__
22921 #error Not an ELF OS
22922 #endif
22923 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22924 if it can be used. */
22925 static int x = -1;
22926 int main (void) { return x; }
22927 int foo (void) { x = 0; }
22928 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22930 _ACEOF
22931 if ac_fn_cxx_try_run "$LINENO"; then :
22932 gcc_cv_initfini_array=yes
22933 else
22934 gcc_cv_initfini_array=no
22936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22937 conftest.$ac_objext conftest.beam conftest.$ac_ext
22941 gcc_cv_initfini_array=no
22942 if test $in_tree_ld = yes ; then
22943 if test "$gcc_cv_gld_major_version" -eq 2 \
22944 -a "$gcc_cv_gld_minor_version" -ge 22 \
22945 -o "$gcc_cv_gld_major_version" -gt 2 \
22946 && test $in_tree_ld_is_elf = yes; then
22947 gcc_cv_initfini_array=yes
22949 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22950 case $target:$gas in
22951 *:yes)
22952 sh_flags='"a"'
22953 sh_type='%progbits'
22955 i?86-*-solaris2*:no | x86_64-*-solaris2*:no)
22956 sh_flags='"a"'
22957 sh_type='@progbits'
22959 sparc*-*-solaris2*:no)
22960 sh_flags='#alloc'
22961 sh_type='#progbits'
22962 sh_quote='"'
22964 esac
22965 case "$target:$gnu_ld" in
22966 *:yes)
22967 cat > conftest.s <<EOF
22968 .section .dtors,$sh_flags,$sh_type
22969 .balign 4
22970 .byte 'A', 'A', 'A', 'A'
22971 .section .ctors,$sh_flags,$sh_type
22972 .balign 4
22973 .byte 'B', 'B', 'B', 'B'
22974 .section .fini_array.65530,$sh_flags,$sh_type
22975 .balign 4
22976 .byte 'C', 'C', 'C', 'C'
22977 .section .init_array.65530,$sh_flags,$sh_type
22978 .balign 4
22979 .byte 'D', 'D', 'D', 'D'
22980 .section .dtors.64528,$sh_flags,$sh_type
22981 .balign 4
22982 .byte 'E', 'E', 'E', 'E'
22983 .section .ctors.64528,$sh_flags,$sh_type
22984 .balign 4
22985 .byte 'F', 'F', 'F', 'F'
22986 .section .fini_array.01005,$sh_flags,$sh_type
22987 .balign 4
22988 .byte 'G', 'G', 'G', 'G'
22989 .section .init_array.01005,$sh_flags,$sh_type
22990 .balign 4
22991 .byte 'H', 'H', 'H', 'H'
22992 .text
22993 .globl _start
22994 _start:
22996 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22997 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22998 && $gcc_cv_objdump -s -j .init_array conftest \
22999 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
23000 && $gcc_cv_objdump -s -j .fini_array conftest \
23001 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
23002 gcc_cv_initfini_array=yes
23005 *-*-solaris2*:no)
23006 # When Solaris ld added constructor priority support, it was
23007 # decided to only handle .init_array.N/.fini_array.N since
23008 # there was no need for backwards compatibility with
23009 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23010 # sections with correct execution order resp. to
23011 # .init_array/.fini_array, while gld merges them into
23012 # .init_array/.fini_array.
23013 cat > conftest.s <<EOF
23014 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23015 .align 4
23016 .byte 'C', 'C', 'C', 'C'
23017 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23018 .align 4
23019 .byte 'D', 'D', 'D', 'D'
23020 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23021 .align 4
23022 .byte 'G', 'G', 'G', 'G'
23023 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23024 .align 4
23025 .byte 'H', 'H', 'H', 'H'
23026 .text
23027 .globl _start
23028 _start:
23030 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
23031 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
23032 && $gcc_cv_objdump -s -j .init_array conftest \
23033 | grep HHHHDDDD > /dev/null 2>&1 \
23034 && $gcc_cv_objdump -s -j .fini_array conftest \
23035 | grep GGGGCCCC > /dev/null 2>&1; then
23036 gcc_cv_initfini_array=yes
23039 esac
23040 rm -f conftest conftest.*
23042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23043 /* end confdefs.h. */
23045 #ifndef __ELF__
23046 # error Not an ELF OS
23047 #endif
23048 #include <stdlib.h>
23049 #if defined __GLIBC_PREREQ
23050 # if __GLIBC_PREREQ (2, 4)
23051 # else
23052 # error GLIBC 2.4 required
23053 # endif
23054 #else
23055 # if defined __sun__ && defined __svr4__
23056 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23057 # else
23058 # error The C library not known to support .init_array/.fini_array
23059 # endif
23060 #endif
23062 _ACEOF
23063 if ac_fn_cxx_try_cpp "$LINENO"; then :
23065 else
23066 gcc_cv_initfini_array=no
23068 rm -f conftest.err conftest.$ac_ext;;
23069 esac
23070 else
23071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23072 $as_echo_n "checking cross compile... guessing... " >&6; }
23073 gcc_cv_initfini_array=no
23076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23077 $as_echo "$gcc_cv_initfini_array" >&6; }
23078 enable_initfini_array=$gcc_cv_initfini_array
23083 cat >>confdefs.h <<_ACEOF
23084 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23085 _ACEOF
23089 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23091 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23092 if test "${gcc_cv_as_leb128+set}" = set; then :
23093 $as_echo_n "(cached) " >&6
23094 else
23095 gcc_cv_as_leb128=no
23096 if test $in_tree_gas = yes; then
23097 if test $in_tree_gas_is_elf = yes \
23098 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23099 then gcc_cv_as_leb128=yes
23101 elif test x$gcc_cv_as != x; then
23102 $as_echo ' .data
23103 .uleb128 L2 - L1
23105 .uleb128 1280
23106 .sleb128 -1010
23107 L2:' > conftest.s
23108 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23110 (eval $ac_try) 2>&5
23111 ac_status=$?
23112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23113 test $ac_status = 0; }; }
23114 then
23115 # GAS versions before 2.11 do not support uleb128,
23116 # despite appearing to.
23117 # ??? There exists an elf-specific test that will crash
23118 # the assembler. Perhaps it's better to figure out whether
23119 # arbitrary sections are supported and try the test.
23120 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23121 if echo "$as_ver" | grep GNU > /dev/null; then
23122 as_vers=`echo $as_ver | sed -n \
23123 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23124 as_major=`expr "$as_vers" : '\([0-9]*\)'`
23125 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23126 if test $as_major -eq 2 && test $as_minor -lt 11
23127 then :
23128 else gcc_cv_as_leb128=yes
23131 else
23132 echo "configure: failed program was" >&5
23133 cat conftest.s >&5
23135 rm -f conftest.o conftest.s
23138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23139 $as_echo "$gcc_cv_as_leb128" >&6; }
23140 if test $gcc_cv_as_leb128 = yes; then
23142 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23146 # Check if we have assembler support for unwind directives.
23147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23148 $as_echo_n "checking assembler for cfi directives... " >&6; }
23149 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23150 $as_echo_n "(cached) " >&6
23151 else
23152 gcc_cv_as_cfi_directive=no
23153 if test x$gcc_cv_as != x; then
23154 $as_echo ' .text
23155 .cfi_startproc
23156 .cfi_offset 0, 0
23157 .cfi_same_value 1
23158 .cfi_def_cfa 1, 2
23159 .cfi_escape 1, 2, 3, 4, 5
23160 .cfi_endproc' > conftest.s
23161 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23162 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23163 (eval $ac_try) 2>&5
23164 ac_status=$?
23165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23166 test $ac_status = 0; }; }
23167 then
23168 case "$target" in
23169 *-*-solaris*)
23170 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23171 # read-only and read-write sections, we need to make sure that the
23172 # assembler used emits read-write .eh_frame sections.
23173 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
23174 if test "x$gcc_cv_objdump" != x; then
23175 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23176 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
23177 gcc_cv_as_cfi_directive=no
23178 else
23179 case "$target" in
23180 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
23181 # On Solaris/x86, make sure that GCC and assembler agree on using
23182 # read-only .eh_frame sections for 64-bit.
23183 if test x$gas = xyes; then
23184 as_ix86_64_opt="--64"
23185 else
23186 as_ix86_64_opt="-xarch=amd64"
23188 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
23189 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
23190 sed -e /.eh_frame/!d -e N | \
23191 grep READONLY > /dev/null; then
23192 gcc_cv_as_cfi_directive=yes
23193 else
23194 gcc_cv_as_cfi_directive=no
23198 gcc_cv_as_cfi_directive=yes
23200 esac
23202 else
23203 # no objdump, err on the side of caution
23204 gcc_cv_as_cfi_directive=no
23206 else
23207 gcc_cv_as_cfi_directive=yes
23210 *-*-*)
23211 gcc_cv_as_cfi_directive=yes
23213 esac
23214 else
23215 echo "configure: failed program was" >&5
23216 cat conftest.s >&5
23218 rm -f conftest.o conftest.s
23221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23222 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23224 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
23225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23226 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23227 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23228 $as_echo_n "(cached) " >&6
23229 else
23230 gcc_cv_as_cfi_advance_working=no
23231 if test x$gcc_cv_as != x; then
23232 $as_echo ' .text
23233 .cfi_startproc
23234 .cfi_adjust_cfa_offset 64
23235 .skip 75040, 0
23236 .cfi_adjust_cfa_offset 128
23237 .cfi_endproc' > conftest.s
23238 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23240 (eval $ac_try) 2>&5
23241 ac_status=$?
23242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23243 test $ac_status = 0; }; }
23244 then
23246 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
23247 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
23248 gcc_cv_as_cfi_advance_working=yes
23251 else
23252 echo "configure: failed program was" >&5
23253 cat conftest.s >&5
23255 rm -f conftest.o conftest.s
23258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23259 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23261 else
23262 # no objdump, err on the side of caution
23263 gcc_cv_as_cfi_advance_working=no
23267 cat >>confdefs.h <<_ACEOF
23268 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23269 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23270 _ACEOF
23274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23275 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23276 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23277 $as_echo_n "(cached) " >&6
23278 else
23279 gcc_cv_as_cfi_personality_directive=no
23280 if test x$gcc_cv_as != x; then
23281 $as_echo ' .text
23282 .cfi_startproc
23283 .cfi_personality 0, symbol
23284 .cfi_endproc' > conftest.s
23285 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23287 (eval $ac_try) 2>&5
23288 ac_status=$?
23289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23290 test $ac_status = 0; }; }
23291 then
23292 gcc_cv_as_cfi_personality_directive=yes
23293 else
23294 echo "configure: failed program was" >&5
23295 cat conftest.s >&5
23297 rm -f conftest.o conftest.s
23300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23301 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23304 cat >>confdefs.h <<_ACEOF
23305 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23306 then echo 1; else echo 0; fi`
23307 _ACEOF
23310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23311 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23312 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23313 $as_echo_n "(cached) " >&6
23314 else
23315 gcc_cv_as_cfi_sections_directive=no
23316 if test x$gcc_cv_as != x; then
23317 $as_echo ' .text
23318 .cfi_sections .debug_frame, .eh_frame
23319 .cfi_startproc
23320 .cfi_endproc' > conftest.s
23321 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23323 (eval $ac_try) 2>&5
23324 ac_status=$?
23325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23326 test $ac_status = 0; }; }
23327 then
23328 case $target_os in
23329 win32 | pe | cygwin* | mingw32*)
23330 # Need to check that we generated the correct relocation for the
23331 # .debug_frame section. This was fixed for binutils 2.21.
23332 gcc_cv_as_cfi_sections_directive=no
23333 if test "x$gcc_cv_objdump" != x; then
23334 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
23335 grep secrel > /dev/null; then
23336 gcc_cv_as_cfi_sections_directive=yes
23341 gcc_cv_as_cfi_sections_directive=yes
23343 esac
23344 else
23345 echo "configure: failed program was" >&5
23346 cat conftest.s >&5
23348 rm -f conftest.o conftest.s
23351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23352 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23356 cat >>confdefs.h <<_ACEOF
23357 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23358 then echo 1; else echo 0; fi`
23359 _ACEOF
23362 # GAS versions up to and including 2.11.0 may mis-optimize
23363 # .eh_frame data.
23364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23365 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23366 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23367 $as_echo_n "(cached) " >&6
23368 else
23369 gcc_cv_as_eh_frame=no
23370 if test $in_tree_gas = yes; then
23371 if test $in_tree_gas_is_elf = yes \
23372 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23373 then gcc_cv_as_eh_frame=yes
23375 elif test x$gcc_cv_as != x; then
23376 $as_echo ' .text
23377 .LFB1:
23378 .4byte 0
23379 .L1:
23380 .4byte 0
23381 .LFE1:
23382 .section .eh_frame,"aw",@progbits
23383 __FRAME_BEGIN__:
23384 .4byte .LECIE1-.LSCIE1
23385 .LSCIE1:
23386 .4byte 0x0
23387 .byte 0x1
23388 .ascii "z\0"
23389 .byte 0x1
23390 .byte 0x78
23391 .byte 0x1a
23392 .byte 0x0
23393 .byte 0x4
23394 .4byte 1
23395 .p2align 1
23396 .LECIE1:
23397 .LSFDE1:
23398 .4byte .LEFDE1-.LASFDE1
23399 .LASFDE1:
23400 .4byte .LASFDE1-__FRAME_BEGIN__
23401 .4byte .LFB1
23402 .4byte .LFE1-.LFB1
23403 .byte 0x4
23404 .4byte .LFE1-.LFB1
23405 .byte 0x4
23406 .4byte .L1-.LFB1
23407 .LEFDE1:' > conftest.s
23408 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23410 (eval $ac_try) 2>&5
23411 ac_status=$?
23412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23413 test $ac_status = 0; }; }
23414 then
23415 cat > conftest.lit <<EOF
23416 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23417 0010 01000000 12000000 18000000 00000000 ................
23418 0020 08000000 04080000 0044 .........D
23420 cat > conftest.big <<EOF
23421 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23422 0010 00000001 00000012 00000018 00000000 ................
23423 0020 00000008 04000000 0844 .........D
23425 # If the assembler didn't choke, and we can objdump,
23426 # and we got the correct data, then succeed.
23427 # The text in the here-document typically retains its unix-style line
23428 # endings, while the output of objdump will use host line endings.
23429 # Therefore, use diff -b for the comparisons.
23430 if test x$gcc_cv_objdump != x \
23431 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23432 | tail -3 > conftest.got \
23433 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23434 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23435 then
23436 gcc_cv_as_eh_frame=yes
23437 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23439 (eval $ac_try) 2>&5
23440 ac_status=$?
23441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23442 test $ac_status = 0; }; }; then
23443 gcc_cv_as_eh_frame=buggy
23444 else
23445 # Uh oh, what do we do now?
23446 gcc_cv_as_eh_frame=no
23448 else
23449 echo "configure: failed program was" >&5
23450 cat conftest.s >&5
23452 rm -f conftest.o conftest.s
23455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23456 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23459 if test $gcc_cv_as_eh_frame = buggy; then
23461 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23466 $as_echo_n "checking assembler for section merging support... " >&6; }
23467 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23468 $as_echo_n "(cached) " >&6
23469 else
23470 gcc_cv_as_shf_merge=no
23471 if test $in_tree_gas = yes; then
23472 if test $in_tree_gas_is_elf = yes \
23473 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23474 then gcc_cv_as_shf_merge=yes
23476 elif test x$gcc_cv_as != x; then
23477 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23478 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23480 (eval $ac_try) 2>&5
23481 ac_status=$?
23482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23483 test $ac_status = 0; }; }
23484 then
23485 gcc_cv_as_shf_merge=yes
23486 else
23487 echo "configure: failed program was" >&5
23488 cat conftest.s >&5
23490 rm -f conftest.o conftest.s
23493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23494 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23496 if test $gcc_cv_as_shf_merge = no; then
23497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23498 $as_echo_n "checking assembler for section merging support... " >&6; }
23499 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23500 $as_echo_n "(cached) " >&6
23501 else
23502 gcc_cv_as_shf_merge=no
23503 if test $in_tree_gas = yes; then
23504 if test $in_tree_gas_is_elf = yes \
23505 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23506 then gcc_cv_as_shf_merge=yes
23508 elif test x$gcc_cv_as != x; then
23509 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23510 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23511 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23512 (eval $ac_try) 2>&5
23513 ac_status=$?
23514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23515 test $ac_status = 0; }; }
23516 then
23517 gcc_cv_as_shf_merge=yes
23518 else
23519 echo "configure: failed program was" >&5
23520 cat conftest.s >&5
23522 rm -f conftest.o conftest.s
23525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23526 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23530 cat >>confdefs.h <<_ACEOF
23531 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23532 _ACEOF
23535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23536 $as_echo_n "checking assembler for stabs directive... " >&6; }
23537 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23538 $as_echo_n "(cached) " >&6
23539 else
23540 gcc_cv_as_stabs_directive=no
23541 if test x$gcc_cv_as != x; then
23542 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23543 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23545 (eval $ac_try) 2>&5
23546 ac_status=$?
23547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23548 test $ac_status = 0; }; }
23549 then
23550 gcc_cv_as_stabs_directive=yes
23551 else
23552 echo "configure: failed program was" >&5
23553 cat conftest.s >&5
23555 rm -f conftest.o conftest.s
23558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23559 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23560 if test $gcc_cv_as_stabs_directive = yes; then
23562 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23567 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23568 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23569 $as_echo_n "(cached) " >&6
23570 else
23571 gcc_cv_as_comdat_group=no
23572 if test $in_tree_gas = yes; then
23573 if test $in_tree_gas_is_elf = yes \
23574 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23575 then gcc_cv_as_comdat_group=yes
23577 elif test x$gcc_cv_as != x; then
23578 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23579 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23581 (eval $ac_try) 2>&5
23582 ac_status=$?
23583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23584 test $ac_status = 0; }; }
23585 then
23586 gcc_cv_as_comdat_group=yes
23587 else
23588 echo "configure: failed program was" >&5
23589 cat conftest.s >&5
23591 rm -f conftest.o conftest.s
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23595 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23597 if test $gcc_cv_as_comdat_group = yes; then
23598 gcc_cv_as_comdat_group_percent=no
23599 gcc_cv_as_comdat_group_group=no
23600 else
23601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23602 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23603 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23604 $as_echo_n "(cached) " >&6
23605 else
23606 gcc_cv_as_comdat_group_percent=no
23607 if test $in_tree_gas = yes; then
23608 if test $in_tree_gas_is_elf = yes \
23609 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23610 then gcc_cv_as_comdat_group_percent=yes
23612 elif test x$gcc_cv_as != x; then
23613 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23614 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23616 (eval $ac_try) 2>&5
23617 ac_status=$?
23618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23619 test $ac_status = 0; }; }
23620 then
23621 gcc_cv_as_comdat_group_percent=yes
23622 else
23623 echo "configure: failed program was" >&5
23624 cat conftest.s >&5
23626 rm -f conftest.o conftest.s
23629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23630 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23632 if test $gcc_cv_as_comdat_group_percent = yes; then
23633 gcc_cv_as_comdat_group_group=no
23634 else
23635 case "${target}" in
23636 # Sun as uses a completely different syntax.
23637 *-*-solaris2*)
23638 case "${target}" in
23639 sparc*-*-solaris2*)
23640 conftest_s='
23641 .group foo,".text%foo",#comdat
23642 .section ".text%foo", #alloc,#execinstr,#progbits
23643 .globl foo
23644 foo:
23647 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23648 conftest_s='
23649 .group foo,.text%foo,#comdat
23650 .section .text%foo, "ax", @progbits
23651 .globl foo
23652 foo:
23655 esac
23656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23657 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23658 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23659 $as_echo_n "(cached) " >&6
23660 else
23661 gcc_cv_as_comdat_group_group=no
23662 if test x$gcc_cv_as != x; then
23663 $as_echo "$conftest_s" > conftest.s
23664 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23666 (eval $ac_try) 2>&5
23667 ac_status=$?
23668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23669 test $ac_status = 0; }; }
23670 then
23671 gcc_cv_as_comdat_group_group=yes
23672 else
23673 echo "configure: failed program was" >&5
23674 cat conftest.s >&5
23676 rm -f conftest.o conftest.s
23679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23680 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23683 esac
23684 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23685 gcc_cv_as_comdat_group_group=no
23689 if test x"$ld_is_gold" = xyes; then
23690 comdat_group=yes
23691 elif test $in_tree_ld = yes ; then
23692 comdat_group=no
23693 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 \
23694 && test $in_tree_ld_is_elf = yes; then
23695 comdat_group=yes
23697 elif echo "$ld_ver" | grep GNU > /dev/null; then
23698 comdat_group=yes
23699 if test 0"$ld_date" -lt 20050308; then
23700 if test -n "$ld_date"; then
23701 # If there was date string, but was earlier than 2005-03-08, fail
23702 comdat_group=no
23703 elif test "$ld_vers_major" -lt 2; then
23704 comdat_group=no
23705 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23706 comdat_group=no
23709 else
23710 case "${target}" in
23711 *-*-solaris2.1[1-9]*)
23712 comdat_group=no
23713 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23714 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23715 # version 1.688.
23717 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23718 # least ld version 1.2267.
23719 if test "$ld_vers_major" -gt 1; then
23720 comdat_group=yes
23721 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23722 comdat_group=yes
23723 elif test "$ld_vers_minor" -ge 2267; then
23724 comdat_group=yes
23728 # Assume linkers other than GNU ld don't support COMDAT group.
23729 comdat_group=no
23731 esac
23733 # Allow overriding the automatic COMDAT group tests above.
23734 # Check whether --enable-comdat was given.
23735 if test "${enable_comdat+set}" = set; then :
23736 enableval=$enable_comdat; comdat_group="$enable_comdat"
23739 if test $comdat_group = no; then
23740 gcc_cv_as_comdat_group=no
23741 gcc_cv_as_comdat_group_percent=no
23742 gcc_cv_as_comdat_group_group=no
23745 cat >>confdefs.h <<_ACEOF
23746 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23747 || test $gcc_cv_as_comdat_group_percent = yes \
23748 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23749 _ACEOF
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23753 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23754 if test "${gcc_cv_as_discriminator+set}" = set; then :
23755 $as_echo_n "(cached) " >&6
23756 else
23757 gcc_cv_as_discriminator=no
23758 if test $in_tree_gas = yes; then
23759 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23760 then gcc_cv_as_discriminator=yes
23762 elif test x$gcc_cv_as != x; then
23763 $as_echo ' .text
23764 .file 1 "conf.c"
23765 .loc 1 1 0 discriminator 1' > conftest.s
23766 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23768 (eval $ac_try) 2>&5
23769 ac_status=$?
23770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23771 test $ac_status = 0; }; }
23772 then
23773 gcc_cv_as_discriminator=yes
23774 else
23775 echo "configure: failed program was" >&5
23776 cat conftest.s >&5
23778 rm -f conftest.o conftest.s
23781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23782 $as_echo "$gcc_cv_as_discriminator" >&6; }
23783 if test $gcc_cv_as_discriminator = yes; then
23785 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23789 # Thread-local storage - the check is heavily parameterized.
23790 conftest_s=
23791 tls_first_major=
23792 tls_first_minor=
23793 tls_as_opt=
23794 case "$target" in
23795 alpha*-*-*)
23796 conftest_s='
23797 .section ".tdata","awT",@progbits
23798 foo: .long 25
23799 .text
23800 ldq $27,__tls_get_addr($29) !literal!1
23801 lda $16,foo($29) !tlsgd!1
23802 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23803 ldq $27,__tls_get_addr($29) !literal!2
23804 lda $16,foo($29) !tlsldm!2
23805 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23806 ldq $1,foo($29) !gotdtprel
23807 ldah $2,foo($29) !dtprelhi
23808 lda $3,foo($2) !dtprello
23809 lda $4,foo($29) !dtprel
23810 ldq $1,foo($29) !gottprel
23811 ldah $2,foo($29) !tprelhi
23812 lda $3,foo($2) !tprello
23813 lda $4,foo($29) !tprel'
23814 tls_first_major=2
23815 tls_first_minor=13
23816 tls_as_opt=--fatal-warnings
23818 cris-*-*|crisv32-*-*)
23819 conftest_s='
23820 .section ".tdata","awT",@progbits
23821 x: .long 25
23822 .text
23823 move.d x:IE,$r10
23824 nop'
23825 tls_first_major=2
23826 tls_first_minor=20
23827 tls_as_opt=--fatal-warnings
23829 frv*-*-*)
23830 conftest_s='
23831 .section ".tdata","awT",@progbits
23832 x: .long 25
23833 .text
23834 call #gettlsoff(x)'
23835 tls_first_major=2
23836 tls_first_minor=14
23838 hppa*-*-linux*)
23839 conftest_s='
23840 t1: .reg %r20
23841 t2: .reg %r21
23842 gp: .reg %r19
23843 .section ".tdata","awT",@progbits
23844 foo: .long 25
23845 .text
23846 .align 4
23847 addil LT%foo-$tls_gdidx$,gp
23848 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23849 b __tls_get_addr
23851 addil LT%foo-$tls_ldidx$,gp
23852 b __tls_get_addr
23853 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23854 addil LR%foo-$tls_dtpoff$,%ret0
23855 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23856 mfctl %cr27,%t1
23857 addil LT%foo-$tls_ieoff$,gp
23858 ldw RT%foo-$tls_ieoff$(%r1),%t2
23859 add %t1,%t2,%t3
23860 mfctl %cr27,%t1
23861 addil LR%foo-$tls_leoff$,%t1
23862 ldo RR%foo-$tls_leoff$(%r1),%t2'
23863 tls_first_major=2
23864 tls_first_minor=15
23865 tls_as_opt=--fatal-warnings
23867 arm*-*-*)
23868 conftest_s='
23869 .section ".tdata","awT",%progbits
23870 foo: .long 25
23871 .text
23872 .word foo(gottpoff)
23873 .word foo(tpoff)
23874 .word foo(tlsgd)
23875 .word foo(tlsldm)
23876 .word foo(tlsldo)'
23877 tls_first_major=2
23878 tls_first_minor=17
23880 i[34567]86-*-* | x86_64-*-*)
23881 case "$target" in
23882 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23883 on_solaris=yes
23886 on_solaris=no
23888 esac
23889 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23890 conftest_s='
23891 .section .tdata,"awt",@progbits'
23892 tls_first_major=0
23893 tls_first_minor=0
23894 tls_section_flag=t
23896 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23898 else
23899 conftest_s='
23900 .section ".tdata","awT",@progbits'
23901 tls_first_major=2
23902 tls_first_minor=14
23903 tls_section_flag=T
23904 tls_as_opt="--fatal-warnings"
23906 case "$target" in
23907 i[34567]86-*-*)
23908 conftest_s="$conftest_s
23909 foo: .long 25
23910 .text
23911 movl %gs:0, %eax
23912 leal foo@tlsgd(,%ebx,1), %eax
23913 leal foo@tlsldm(%ebx), %eax
23914 leal foo@dtpoff(%eax), %edx
23915 movl foo@gottpoff(%ebx), %eax
23916 subl foo@gottpoff(%ebx), %eax
23917 addl foo@gotntpoff(%ebx), %eax
23918 movl foo@indntpoff, %eax
23919 movl \$foo@tpoff, %eax
23920 subl \$foo@tpoff, %eax
23921 leal foo@ntpoff(%ecx), %eax"
23923 x86_64-*-*)
23924 if test x$on_solaris = xyes; then
23925 case $gas_flag in
23926 yes) tls_as_opt="$tls_as_opt --64" ;;
23927 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23928 esac
23930 conftest_s="$conftest_s
23931 foo: .long 25
23932 .text
23933 movq %fs:0, %rax
23934 leaq foo@tlsgd(%rip), %rdi
23935 leaq foo@tlsld(%rip), %rdi
23936 leaq foo@dtpoff(%rax), %rdx
23937 movq foo@gottpoff(%rip), %rax
23938 movq \$foo@tpoff, %rax"
23940 esac
23942 ia64-*-*)
23943 conftest_s='
23944 .section ".tdata","awT",@progbits
23945 foo: data8 25
23946 .text
23947 addl r16 = @ltoff(@dtpmod(foo#)), gp
23948 addl r17 = @ltoff(@dtprel(foo#)), gp
23949 addl r18 = @ltoff(@tprel(foo#)), gp
23950 addl r19 = @dtprel(foo#), gp
23951 adds r21 = @dtprel(foo#), r13
23952 movl r23 = @dtprel(foo#)
23953 addl r20 = @tprel(foo#), gp
23954 adds r22 = @tprel(foo#), r13
23955 movl r24 = @tprel(foo#)'
23956 tls_first_major=2
23957 tls_first_minor=13
23958 tls_as_opt=--fatal-warnings
23960 microblaze*-*-*)
23961 conftest_s='
23962 .section .tdata,"awT",@progbits
23964 .word 2
23965 .text
23966 addik r5,r20,x@TLSGD
23967 addik r5,r20,x@TLSLDM'
23968 tls_first_major=2
23969 tls_first_minor=20
23970 tls_as_opt='--fatal-warnings'
23972 mips*-*-*)
23973 conftest_s='
23974 .section .tdata,"awT",@progbits
23976 .word 2
23977 .text
23978 addiu $4, $28, %tlsgd(x)
23979 addiu $4, $28, %tlsldm(x)
23980 lui $4, %dtprel_hi(x)
23981 addiu $4, $4, %dtprel_lo(x)
23982 lw $4, %gottprel(x)($28)
23983 lui $4, %tprel_hi(x)
23984 addiu $4, $4, %tprel_lo(x)'
23985 tls_first_major=2
23986 tls_first_minor=16
23987 tls_as_opt='-32 --fatal-warnings'
23989 m68k-*-*)
23990 conftest_s='
23991 .section .tdata,"awT",@progbits
23993 .word 2
23994 .text
23995 foo:
23996 move.l x@TLSGD(%a5),%a0
23997 move.l x@TLSLDM(%a5),%a0
23998 move.l x@TLSLDO(%a5),%a0
23999 move.l x@TLSIE(%a5),%a0
24000 move.l x@TLSLE(%a5),%a0'
24001 tls_first_major=2
24002 tls_first_minor=19
24003 tls_as_opt='--fatal-warnings'
24005 nios2-*-*)
24006 conftest_s='
24007 .section ".tdata","awT",@progbits'
24008 tls_first_major=2
24009 tls_first_minor=23
24010 tls_as_opt="--fatal-warnings"
24012 aarch64*-*-*)
24013 conftest_s='
24014 .section ".tdata","awT",%progbits
24015 foo: .long 25
24016 .text
24017 adrp x0, :tlsgd:x
24018 add x0, x0, #:tlsgd_lo12:x
24019 bl __tls_get_addr
24020 nop'
24021 tls_first_major=2
24022 tls_first_minor=20
24023 tls_as_opt='--fatal-warnings'
24025 powerpc-ibm-aix*)
24026 conftest_s='
24027 .extern __get_tpointer
24028 .toc
24029 LC..1:
24030 .tc a[TC],a[TL]@le
24031 .csect .text[PR]
24032 .tlstest:
24033 lwz 9,LC..1(2)
24034 bla __get_tpointer
24035 lwzx 3,9,3
24036 .globl a
24037 .csect a[TL],4
24039 .space 4'
24040 tls_first_major=0
24041 tls_first_minor=0
24043 powerpc64*-*-*)
24044 conftest_s='
24045 .section ".tdata","awT",@progbits
24046 .align 3
24047 ld0: .space 8
24048 ld1: .space 8
24049 x1: .space 8
24050 x2: .space 8
24051 x3: .space 8
24052 .text
24053 addi 3,2,ld0@got@tlsgd
24054 bl .__tls_get_addr
24056 addi 3,2,ld1@toc
24057 bl .__tls_get_addr
24059 addi 3,2,x1@got@tlsld
24060 bl .__tls_get_addr
24062 addi 9,3,x1@dtprel
24063 bl .__tls_get_addr
24065 addis 9,3,x2@dtprel@ha
24066 addi 9,9,x2@dtprel@l
24067 bl .__tls_get_addr
24069 ld 9,x3@got@dtprel(2)
24070 add 9,9,3
24071 bl .__tls_get_addr
24072 nop'
24073 tls_first_major=2
24074 tls_first_minor=14
24075 tls_as_opt="-a64 --fatal-warnings"
24077 powerpc*-*-*)
24078 conftest_s='
24079 .section ".tdata","awT",@progbits
24080 .align 2
24081 ld0: .space 4
24082 ld1: .space 4
24083 x1: .space 4
24084 x2: .space 4
24085 x3: .space 4
24086 .text
24087 addi 3,31,ld0@got@tlsgd
24088 bl __tls_get_addr
24089 addi 3,31,x1@got@tlsld
24090 bl __tls_get_addr
24091 addi 9,3,x1@dtprel
24092 addis 9,3,x2@dtprel@ha
24093 addi 9,9,x2@dtprel@l
24094 lwz 9,x3@got@tprel(31)
24095 add 9,9,x@tls
24096 addi 9,2,x1@tprel
24097 addis 9,2,x2@tprel@ha
24098 addi 9,9,x2@tprel@l'
24099 tls_first_major=2
24100 tls_first_minor=14
24101 tls_as_opt="-a32 --fatal-warnings"
24103 s390-*-*)
24104 conftest_s='
24105 .section ".tdata","awT",@progbits
24106 foo: .long 25
24107 .text
24108 .long foo@TLSGD
24109 .long foo@TLSLDM
24110 .long foo@DTPOFF
24111 .long foo@NTPOFF
24112 .long foo@GOTNTPOFF
24113 .long foo@INDNTPOFF
24114 l %r1,foo@GOTNTPOFF(%r12)
24115 l %r1,0(%r1):tls_load:foo
24116 bas %r14,0(%r1,%r13):tls_gdcall:foo
24117 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24118 tls_first_major=2
24119 tls_first_minor=14
24120 tls_as_opt="-m31 --fatal-warnings"
24122 s390x-*-*)
24123 conftest_s='
24124 .section ".tdata","awT",@progbits
24125 foo: .long 25
24126 .text
24127 .quad foo@TLSGD
24128 .quad foo@TLSLDM
24129 .quad foo@DTPOFF
24130 .quad foo@NTPOFF
24131 .quad foo@GOTNTPOFF
24132 lg %r1,foo@GOTNTPOFF(%r12)
24133 larl %r1,foo@INDNTPOFF
24134 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24135 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24136 tls_first_major=2
24137 tls_first_minor=14
24138 tls_as_opt="-m64 -Aesame --fatal-warnings"
24140 sh-*-* | sh[123456789lbe]*-*-*)
24141 conftest_s='
24142 .section ".tdata","awT",@progbits
24143 foo: .long 25
24144 .text
24145 .long foo@TLSGD
24146 .long foo@TLSLDM
24147 .long foo@DTPOFF
24148 .long foo@GOTTPOFF
24149 .long foo@TPOFF'
24150 tls_first_major=2
24151 tls_first_minor=13
24152 tls_as_opt=--fatal-warnings
24154 sparc*-*-*)
24155 case "$target" in
24156 sparc*-sun-solaris2.*)
24157 on_solaris=yes
24160 on_solaris=no
24162 esac
24163 if test x$on_solaris = xyes && test x$gas_flag = xno; then
24164 conftest_s='
24165 .section ".tdata",#alloc,#write,#tls'
24166 tls_first_major=0
24167 tls_first_minor=0
24168 else
24169 conftest_s='
24170 .section ".tdata","awT",@progbits'
24171 tls_first_major=2
24172 tls_first_minor=14
24173 tls_as_opt="-32 --fatal-warnings"
24175 conftest_s="$conftest_s
24176 foo: .long 25
24177 .text
24178 sethi %tgd_hi22(foo), %o0
24179 add %o0, %tgd_lo10(foo), %o1
24180 add %l7, %o1, %o0, %tgd_add(foo)
24181 call __tls_get_addr, %tgd_call(foo)
24182 sethi %tldm_hi22(foo), %l1
24183 add %l1, %tldm_lo10(foo), %l2
24184 add %l7, %l2, %o0, %tldm_add(foo)
24185 call __tls_get_addr, %tldm_call(foo)
24186 sethi %tldo_hix22(foo), %l3
24187 xor %l3, %tldo_lox10(foo), %l4
24188 add %o0, %l4, %l5, %tldo_add(foo)
24189 sethi %tie_hi22(foo), %o3
24190 add %o3, %tie_lo10(foo), %o3
24191 ld [%l7 + %o3], %o2, %tie_ld(foo)
24192 add %g7, %o2, %o4, %tie_add(foo)
24193 sethi %tle_hix22(foo), %l1
24194 xor %l1, %tle_lox10(foo), %o5
24195 ld [%g7 + %o5], %o1"
24197 tilepro*-*-*)
24198 conftest_s='
24199 .section ".tdata","awT",@progbits
24200 foo: .long 25
24201 .text
24202 addli r0, zero, tls_gd(foo)
24203 auli r0, zero, tls_gd_ha16(foo)
24204 addli r0, r0, tls_gd_lo16(foo)
24205 jal __tls_get_addr
24206 addli r0, zero, tls_ie(foo)
24207 auli r0, r0, tls_ie_ha16(foo)
24208 addli r0, r0, tls_ie_lo16(foo)'
24209 tls_first_major=2
24210 tls_first_minor=22
24211 tls_as_opt="--fatal-warnings"
24213 tilegx*-*-*)
24214 conftest_s='
24215 .section ".tdata","awT",@progbits
24216 foo: .long 25
24217 .text
24218 shl16insli r0, zero, hw0_last_tls_gd(foo)
24219 shl16insli r0, zero, hw1_last_tls_gd(foo)
24220 shl16insli r0, r0, hw0_tls_gd(foo)
24221 jal __tls_get_addr
24222 shl16insli r0, zero, hw1_last_tls_ie(foo)
24223 shl16insli r0, r0, hw0_tls_ie(foo)'
24224 tls_first_major=2
24225 tls_first_minor=22
24226 tls_as_opt="--fatal-warnings"
24228 xtensa*-*-*)
24229 conftest_s='
24230 .section ".tdata","awT",@progbits
24231 foo: .long 25
24232 .text
24233 movi a8, foo@TLSFUNC
24234 movi a10, foo@TLSARG
24235 callx8.tls a8, foo@TLSCALL'
24236 tls_first_major=2
24237 tls_first_minor=19
24239 esac
24240 set_have_as_tls=no
24241 if test "x$enable_tls" = xno ; then
24242 : # TLS explicitly disabled.
24243 elif test "x$enable_tls" = xyes ; then
24244 set_have_as_tls=yes # TLS explicitly enabled.
24245 elif test -z "$tls_first_major"; then
24246 : # If we don't have a check, assume no support.
24247 else
24248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24249 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24250 if test "${gcc_cv_as_tls+set}" = set; then :
24251 $as_echo_n "(cached) " >&6
24252 else
24253 gcc_cv_as_tls=no
24254 if test $in_tree_gas = yes; then
24255 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24256 then gcc_cv_as_tls=yes
24258 elif test x$gcc_cv_as != x; then
24259 $as_echo "$conftest_s" > conftest.s
24260 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24262 (eval $ac_try) 2>&5
24263 ac_status=$?
24264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24265 test $ac_status = 0; }; }
24266 then
24267 gcc_cv_as_tls=yes
24268 else
24269 echo "configure: failed program was" >&5
24270 cat conftest.s >&5
24272 rm -f conftest.o conftest.s
24275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24276 $as_echo "$gcc_cv_as_tls" >&6; }
24277 if test $gcc_cv_as_tls = yes; then
24278 set_have_as_tls=yes
24281 if test $set_have_as_tls = yes ; then
24283 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24287 # Target-specific assembler checks.
24289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24290 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24291 gcc_cv_ld_static_dynamic=no
24292 gcc_cv_ld_static_option='-Bstatic'
24293 gcc_cv_ld_dynamic_option='-Bdynamic'
24294 if test $in_tree_ld = yes ; then
24295 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
24296 gcc_cv_ld_static_dynamic=yes
24298 elif test x$gcc_cv_ld != x; then
24299 # Check if linker supports -Bstatic/-Bdynamic option
24300 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
24301 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
24302 gcc_cv_ld_static_dynamic=yes
24303 else
24304 case "$target" in
24305 # AIX ld uses -b flags
24306 *-*-aix4.[23]* | *-*-aix[5-9]*)
24307 gcc_cv_ld_static_dynamic=yes
24308 gcc_cv_ld_static_option="-bstatic"
24309 gcc_cv_ld_dynamic_option="-bdynamic"
24311 # HP-UX ld uses -a flags to select between shared and archive.
24312 *-*-hpux*)
24313 if test x"$gnu_ld" = xno; then
24314 gcc_cv_ld_static_dynamic=yes
24315 gcc_cv_ld_static_option="-aarchive_shared"
24316 gcc_cv_ld_dynamic_option="-adefault"
24319 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24320 *-*-solaris2*)
24321 gcc_cv_ld_static_dynamic=yes
24323 esac
24326 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24328 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24331 cat >>confdefs.h <<_ACEOF
24332 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24333 _ACEOF
24336 cat >>confdefs.h <<_ACEOF
24337 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24338 _ACEOF
24341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24342 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24344 if test x"$demangler_in_ld" = xyes; then
24345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24346 $as_echo_n "checking linker --demangle support... " >&6; }
24347 gcc_cv_ld_demangle=no
24348 if test $in_tree_ld = yes; then
24349 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 \
24350 gcc_cv_ld_demangle=yes
24352 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24353 # Check if the GNU linker supports --demangle option
24354 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24355 gcc_cv_ld_demangle=yes
24358 if test x"$gcc_cv_ld_demangle" = xyes; then
24360 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24364 $as_echo "$gcc_cv_ld_demangle" >&6; }
24367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24368 $as_echo_n "checking linker plugin support... " >&6; }
24369 gcc_cv_lto_plugin=0
24370 if test -f liblto_plugin.la; then
24371 save_ld_ver="$ld_ver"
24372 save_ld_vers_major="$ld_vers_major"
24373 save_ld_vers_minor="$ld_vers_minor"
24374 save_ld_is_gold="$ld_is_gold"
24376 ld_is_gold=no
24378 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24379 ld_ver="GNU ld"
24380 # FIXME: ld_is_gold?
24381 ld_vers_major="$gcc_cv_gld_major_version"
24382 ld_vers_minor="$gcc_cv_gld_minor_version"
24383 else
24384 # Determine plugin linker version.
24385 # FIXME: Partial duplicate from above, generalize.
24386 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24387 if echo "$ld_ver" | grep GNU > /dev/null; then
24388 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24389 ld_is_gold=yes
24390 ld_vers=`echo $ld_ver | sed -n \
24391 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24392 else
24393 ld_vers=`echo $ld_ver | sed -n \
24394 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24396 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24397 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24401 # Determine plugin support.
24402 if echo "$ld_ver" | grep GNU > /dev/null; then
24403 # Require GNU ld or gold 2.21+ for plugin support by default.
24404 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24405 gcc_cv_lto_plugin=2
24406 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24407 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24408 gcc_cv_lto_plugin=1
24412 ld_ver="$save_ld_ver"
24413 ld_vers_major="$save_ld_vers_major"
24414 ld_vers_minor="$save_ld_vers_minor"
24415 ld_is_gold="$save_ld_is_gold"
24418 cat >>confdefs.h <<_ACEOF
24419 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24420 _ACEOF
24422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24423 $as_echo "$gcc_cv_lto_plugin" >&6; }
24425 case "$target" in
24426 aarch64*-*-*)
24427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24428 $as_echo_n "checking assembler for -mabi option... " >&6; }
24429 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24430 $as_echo_n "(cached) " >&6
24431 else
24432 gcc_cv_as_aarch64_mabi=no
24433 if test x$gcc_cv_as != x; then
24434 $as_echo '.text' > conftest.s
24435 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24437 (eval $ac_try) 2>&5
24438 ac_status=$?
24439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24440 test $ac_status = 0; }; }
24441 then
24442 gcc_cv_as_aarch64_mabi=yes
24443 else
24444 echo "configure: failed program was" >&5
24445 cat conftest.s >&5
24447 rm -f conftest.o conftest.s
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24451 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24453 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24455 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24457 else
24458 if test x$with_abi = xilp32; then
24459 as_fn_error "Assembler does not support -mabi=ilp32.\
24460 Upgrade the Assembler." "$LINENO" 5
24462 if test x"$with_multilib_list" = xdefault; then
24463 TM_MULTILIB_CONFIG=lp64
24464 else
24465 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24466 for aarch64_multilib in ${aarch64_multilibs}; do
24467 case ${aarch64_multilib} in
24468 ilp32)
24469 as_fn_error "Assembler does not support -mabi=ilp32.\
24470 Upgrade the Assembler." "$LINENO" 5
24474 esac
24475 done
24478 # Check if we have binutils support for relocations types needed by -fpic
24479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24480 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24481 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24482 $as_echo_n "(cached) " >&6
24483 else
24484 gcc_cv_as_aarch64_picreloc=no
24485 if test x$gcc_cv_as != x; then
24486 $as_echo '
24487 .text
24488 ldr x0, [x2, #:gotpage_lo15:globalsym]
24489 ' > conftest.s
24490 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24492 (eval $ac_try) 2>&5
24493 ac_status=$?
24494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24495 test $ac_status = 0; }; }
24496 then
24497 gcc_cv_as_aarch64_picreloc=yes
24498 else
24499 echo "configure: failed program was" >&5
24500 cat conftest.s >&5
24502 rm -f conftest.o conftest.s
24505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24506 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24507 if test $gcc_cv_as_aarch64_picreloc = yes; then
24509 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24512 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24513 # Check whether --enable-fix-cortex-a53-835769 was given.
24514 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24515 enableval=$enable_fix_cortex_a53_835769;
24516 case $enableval in
24517 yes)
24518 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24523 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24524 Valid choices are 'yes' and 'no'." "$LINENO" 5
24527 esac
24531 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24532 # Check whether --enable-fix-cortex-a53-843419 was given.
24533 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24534 enableval=$enable_fix_cortex_a53_843419;
24535 case $enableval in
24536 yes)
24537 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24542 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24543 Valid choices are 'yes' and 'no'." "$LINENO" 5
24546 esac
24552 # All TARGET_ABI_OSF targets.
24553 alpha*-*-linux* | alpha*-*-*bsd*)
24554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24555 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24556 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24557 $as_echo_n "(cached) " >&6
24558 else
24559 gcc_cv_as_alpha_explicit_relocs=no
24560 if test $in_tree_gas = yes; then
24561 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24562 then gcc_cv_as_alpha_explicit_relocs=yes
24564 elif test x$gcc_cv_as != x; then
24565 $as_echo ' .set nomacro
24566 .text
24567 extbl $3, $2, $3 !lituse_bytoff!1
24568 ldq $2, a($29) !literal!1
24569 ldq $4, b($29) !literal!2
24570 ldq_u $3, 0($2) !lituse_base!1
24571 ldq $27, f($29) !literal!5
24572 jsr $26, ($27), f !lituse_jsr!5
24573 ldah $29, 0($26) !gpdisp!3
24574 lda $0, c($29) !gprel
24575 ldah $1, d($29) !gprelhigh
24576 lda $1, d($1) !gprellow
24577 lda $29, 0($29) !gpdisp!3' > conftest.s
24578 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24580 (eval $ac_try) 2>&5
24581 ac_status=$?
24582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24583 test $ac_status = 0; }; }
24584 then
24585 gcc_cv_as_alpha_explicit_relocs=yes
24586 else
24587 echo "configure: failed program was" >&5
24588 cat conftest.s >&5
24590 rm -f conftest.o conftest.s
24593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24594 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24595 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24597 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24601 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24602 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24603 $as_echo_n "(cached) " >&6
24604 else
24605 gcc_cv_as_alpha_jsrdirect_relocs=no
24606 if test $in_tree_gas = yes; then
24607 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24608 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24610 elif test x$gcc_cv_as != x; then
24611 $as_echo ' .set nomacro
24612 .text
24613 ldq $27, a($29) !literal!1
24614 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24615 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24617 (eval $ac_try) 2>&5
24618 ac_status=$?
24619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24620 test $ac_status = 0; }; }
24621 then
24622 gcc_cv_as_alpha_jsrdirect_relocs=yes
24623 else
24624 echo "configure: failed program was" >&5
24625 cat conftest.s >&5
24627 rm -f conftest.o conftest.s
24630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24631 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24632 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24634 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24639 avr-*-*)
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24641 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24642 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24643 $as_echo_n "(cached) " >&6
24644 else
24645 gcc_cv_as_avr_mlink_relax=no
24646 if test x$gcc_cv_as != x; then
24647 $as_echo '.text' > conftest.s
24648 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24650 (eval $ac_try) 2>&5
24651 ac_status=$?
24652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24653 test $ac_status = 0; }; }
24654 then
24655 gcc_cv_as_avr_mlink_relax=yes
24656 else
24657 echo "configure: failed program was" >&5
24658 cat conftest.s >&5
24660 rm -f conftest.o conftest.s
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24664 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24665 if test $gcc_cv_as_avr_mlink_relax = yes; then
24667 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24672 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24673 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24674 $as_echo_n "(cached) " >&6
24675 else
24676 gcc_cv_as_avr_mrmw=no
24677 if test x$gcc_cv_as != x; then
24678 $as_echo '.text' > conftest.s
24679 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24681 (eval $ac_try) 2>&5
24682 ac_status=$?
24683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24684 test $ac_status = 0; }; }
24685 then
24686 gcc_cv_as_avr_mrmw=yes
24687 else
24688 echo "configure: failed program was" >&5
24689 cat conftest.s >&5
24691 rm -f conftest.o conftest.s
24694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24695 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24696 if test $gcc_cv_as_avr_mrmw = yes; then
24698 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24703 cris-*-*)
24704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24705 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24706 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24707 $as_echo_n "(cached) " >&6
24708 else
24709 gcc_cv_as_cris_no_mul_bug=no
24710 if test $in_tree_gas = yes; then
24711 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24712 then gcc_cv_as_cris_no_mul_bug=yes
24714 elif test x$gcc_cv_as != x; then
24715 $as_echo '.text' > conftest.s
24716 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24718 (eval $ac_try) 2>&5
24719 ac_status=$?
24720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24721 test $ac_status = 0; }; }
24722 then
24723 gcc_cv_as_cris_no_mul_bug=yes
24724 else
24725 echo "configure: failed program was" >&5
24726 cat conftest.s >&5
24728 rm -f conftest.o conftest.s
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24732 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24733 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24735 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24740 sparc*-*-*)
24741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24742 $as_echo_n "checking assembler for .register... " >&6; }
24743 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24744 $as_echo_n "(cached) " >&6
24745 else
24746 gcc_cv_as_sparc_register_op=no
24747 if test x$gcc_cv_as != x; then
24748 $as_echo '.register %g2, #scratch' > conftest.s
24749 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24751 (eval $ac_try) 2>&5
24752 ac_status=$?
24753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24754 test $ac_status = 0; }; }
24755 then
24756 gcc_cv_as_sparc_register_op=yes
24757 else
24758 echo "configure: failed program was" >&5
24759 cat conftest.s >&5
24761 rm -f conftest.o conftest.s
24764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24765 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24766 if test $gcc_cv_as_sparc_register_op = yes; then
24768 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24773 $as_echo_n "checking assembler for -relax option... " >&6; }
24774 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24775 $as_echo_n "(cached) " >&6
24776 else
24777 gcc_cv_as_sparc_relax=no
24778 if test x$gcc_cv_as != x; then
24779 $as_echo '.text' > conftest.s
24780 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24782 (eval $ac_try) 2>&5
24783 ac_status=$?
24784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24785 test $ac_status = 0; }; }
24786 then
24787 gcc_cv_as_sparc_relax=yes
24788 else
24789 echo "configure: failed program was" >&5
24790 cat conftest.s >&5
24792 rm -f conftest.o conftest.s
24795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24796 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24797 if test $gcc_cv_as_sparc_relax = yes; then
24799 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24804 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24805 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24806 $as_echo_n "(cached) " >&6
24807 else
24808 gcc_cv_as_sparc_gotdata_op=no
24809 if test x$gcc_cv_as != x; then
24810 $as_echo '.text
24811 .align 4
24812 foo:
24814 bar:
24815 sethi %gdop_hix22(foo), %g1
24816 xor %g1, %gdop_lox10(foo), %g1
24817 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24818 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24820 (eval $ac_try) 2>&5
24821 ac_status=$?
24822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24823 test $ac_status = 0; }; }
24824 then
24825 if test x$gcc_cv_ld != x \
24826 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24827 if test x$gcc_cv_objdump != x; then
24828 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24829 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24830 gcc_cv_as_sparc_gotdata_op=no
24831 else
24832 gcc_cv_as_sparc_gotdata_op=yes
24836 rm -f conftest
24837 else
24838 echo "configure: failed program was" >&5
24839 cat conftest.s >&5
24841 rm -f conftest.o conftest.s
24844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24845 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24846 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24848 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24853 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24854 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24855 $as_echo_n "(cached) " >&6
24856 else
24857 gcc_cv_as_sparc_ua_pcrel=no
24858 if test x$gcc_cv_as != x; then
24859 $as_echo '.text
24860 foo:
24862 .data
24863 .align 4
24864 .byte 0
24865 .uaword %r_disp32(foo)' > conftest.s
24866 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24868 (eval $ac_try) 2>&5
24869 ac_status=$?
24870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24871 test $ac_status = 0; }; }
24872 then
24873 if test x$gcc_cv_ld != x \
24874 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24875 gcc_cv_as_sparc_ua_pcrel=yes
24877 rm -f conftest
24878 else
24879 echo "configure: failed program was" >&5
24880 cat conftest.s >&5
24882 rm -f conftest.o conftest.s
24885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24886 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24887 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24889 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24893 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24894 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24895 $as_echo_n "(cached) " >&6
24896 else
24897 gcc_cv_as_sparc_ua_pcrel_hidden=no
24898 if test x$gcc_cv_as != x; then
24899 $as_echo '.data
24900 .align 4
24901 .byte 0x31
24902 .uaword %r_disp32(foo)
24903 .byte 0x32, 0x33, 0x34
24904 .global foo
24905 .hidden foo
24906 foo:
24907 .skip 4' > conftest.s
24908 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24910 (eval $ac_try) 2>&5
24911 ac_status=$?
24912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24913 test $ac_status = 0; }; }
24914 then
24915 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24916 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24917 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24918 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24919 if $gcc_cv_objdump -R conftest 2> /dev/null \
24920 | grep 'DISP32' > /dev/null 2>&1; then
24922 else
24923 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24926 rm -f conftest
24927 else
24928 echo "configure: failed program was" >&5
24929 cat conftest.s >&5
24931 rm -f conftest.o conftest.s
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24935 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24936 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24938 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24942 fi # unaligned pcrel relocs
24944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24945 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24946 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24947 $as_echo_n "(cached) " >&6
24948 else
24949 gcc_cv_as_sparc_offsetable_lo10=no
24950 if test x$gcc_cv_as != x; then
24951 $as_echo '.text
24952 or %g1, %lo(ab) + 12, %g1
24953 or %g1, %lo(ab + 12), %g1' > conftest.s
24954 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24956 (eval $ac_try) 2>&5
24957 ac_status=$?
24958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24959 test $ac_status = 0; }; }
24960 then
24961 if test x$gcc_cv_objdump != x \
24962 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24963 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24964 gcc_cv_as_sparc_offsetable_lo10=yes
24966 else
24967 echo "configure: failed program was" >&5
24968 cat conftest.s >&5
24970 rm -f conftest.o conftest.s
24973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24974 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24975 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24977 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24982 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24983 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24984 $as_echo_n "(cached) " >&6
24985 else
24986 gcc_cv_as_sparc_fmaf=no
24987 if test x$gcc_cv_as != x; then
24988 $as_echo '.text
24989 .register %g2, #scratch
24990 .register %g3, #scratch
24991 .align 4
24992 fmaddd %f0, %f2, %f4, %f6
24993 addxccc %g1, %g2, %g3
24994 fsrl32 %f2, %f4, %f8
24995 fnaddd %f10, %f12, %f14' > conftest.s
24996 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24998 (eval $ac_try) 2>&5
24999 ac_status=$?
25000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25001 test $ac_status = 0; }; }
25002 then
25003 gcc_cv_as_sparc_fmaf=yes
25004 else
25005 echo "configure: failed program was" >&5
25006 cat conftest.s >&5
25008 rm -f conftest.o conftest.s
25011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25012 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25013 if test $gcc_cv_as_sparc_fmaf = yes; then
25015 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25020 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25021 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25022 $as_echo_n "(cached) " >&6
25023 else
25024 gcc_cv_as_sparc_sparc4=no
25025 if test x$gcc_cv_as != x; then
25026 $as_echo '.text
25027 .register %g2, #scratch
25028 .register %g3, #scratch
25029 .align 4
25030 cxbe %g2, %g3, 1f
25031 1: cwbneg %g2, %g3, 1f
25032 1: sha1
25034 aes_kexpand0 %f4, %f6, %f8
25035 des_round %f38, %f40, %f42, %f44
25036 camellia_f %f54, %f56, %f58, %f60
25037 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25038 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25040 (eval $ac_try) 2>&5
25041 ac_status=$?
25042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25043 test $ac_status = 0; }; }
25044 then
25045 gcc_cv_as_sparc_sparc4=yes
25046 else
25047 echo "configure: failed program was" >&5
25048 cat conftest.s >&5
25050 rm -f conftest.o conftest.s
25053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25054 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25055 if test $gcc_cv_as_sparc_sparc4 = yes; then
25057 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25062 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25063 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25064 $as_echo_n "(cached) " >&6
25065 else
25066 gcc_cv_as_sparc_leon=no
25067 if test x$gcc_cv_as != x; then
25068 $as_echo '.text
25069 .register %g2, #scratch
25070 .register %g3, #scratch
25071 .align 4
25072 smac %g2, %g3, %g1
25073 umac %g2, %g3, %g1
25074 casa [%g2] 0xb, %g3, %g1' > conftest.s
25075 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25077 (eval $ac_try) 2>&5
25078 ac_status=$?
25079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25080 test $ac_status = 0; }; }
25081 then
25082 gcc_cv_as_sparc_leon=yes
25083 else
25084 echo "configure: failed program was" >&5
25085 cat conftest.s >&5
25087 rm -f conftest.o conftest.s
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25091 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25092 if test $gcc_cv_as_sparc_leon = yes; then
25094 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25099 i[34567]86-*-* | x86_64-*-*)
25100 case $target_os in
25101 cygwin*)
25102 # Full C++ conformance when using a shared libstdc++-v3 requires some
25103 # support from the Cygwin DLL, which in more recent versions exports
25104 # wrappers to aid in interposing and redirecting operators new, delete,
25105 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25106 # are configuring for a version of Cygwin that exports the wrappers.
25107 if test x$host = x$target && test x$host_cpu = xi686; then
25108 ac_fn_cxx_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25109 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
25110 gcc_ac_cygwin_dll_wrappers=yes
25111 else
25112 gcc_ac_cygwin_dll_wrappers=no
25115 else
25116 # Can't check presence of libc functions during cross-compile, so
25117 # we just have to assume we're building for an up-to-date target.
25118 gcc_ac_cygwin_dll_wrappers=yes
25121 cat >>confdefs.h <<_ACEOF
25122 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25123 _ACEOF
25125 esac
25126 case $target_os in
25127 cygwin* | pe | mingw32* | interix*)
25128 # Recent binutils allows the three-operand form of ".comm" on PE. This
25129 # definition is used unconditionally to initialise the default state of
25130 # the target option variable that governs usage of the feature.
25131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25132 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25133 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25134 $as_echo_n "(cached) " >&6
25135 else
25136 gcc_cv_as_comm_has_align=no
25137 if test $in_tree_gas = yes; then
25138 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25139 then gcc_cv_as_comm_has_align=yes
25141 elif test x$gcc_cv_as != x; then
25142 $as_echo '.comm foo,1,32' > conftest.s
25143 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25145 (eval $ac_try) 2>&5
25146 ac_status=$?
25147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25148 test $ac_status = 0; }; }
25149 then
25150 gcc_cv_as_comm_has_align=yes
25151 else
25152 echo "configure: failed program was" >&5
25153 cat conftest.s >&5
25155 rm -f conftest.o conftest.s
25158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25159 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25162 cat >>confdefs.h <<_ACEOF
25163 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25164 _ACEOF
25166 # Used for DWARF 2 in PE
25167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25168 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25169 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25170 $as_echo_n "(cached) " >&6
25171 else
25172 gcc_cv_as_ix86_pe_secrel32=no
25173 if test $in_tree_gas = yes; then
25174 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25175 then gcc_cv_as_ix86_pe_secrel32=yes
25177 elif test x$gcc_cv_as != x; then
25178 $as_echo '.text
25179 foo: nop
25180 .data
25181 .secrel32 foo' > conftest.s
25182 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25184 (eval $ac_try) 2>&5
25185 ac_status=$?
25186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25187 test $ac_status = 0; }; }
25188 then
25189 if test x$gcc_cv_ld != x \
25190 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
25191 gcc_cv_as_ix86_pe_secrel32=yes
25193 rm -f conftest
25194 else
25195 echo "configure: failed program was" >&5
25196 cat conftest.s >&5
25198 rm -f conftest.o conftest.s
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25202 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25203 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25205 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25208 # Test if the assembler supports the extended form of the .section
25209 # directive that specifies section alignment. LTO support uses this,
25210 # but normally only after installation, so we warn but don't fail the
25211 # configure if LTO is enabled but the assembler does not support it.
25212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25213 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25214 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25215 $as_echo_n "(cached) " >&6
25216 else
25217 gcc_cv_as_section_has_align=no
25218 if test $in_tree_gas = yes; then
25219 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25220 then gcc_cv_as_section_has_align=yes
25222 elif test x$gcc_cv_as != x; then
25223 $as_echo '.section lto_test,"dr0"' > conftest.s
25224 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25226 (eval $ac_try) 2>&5
25227 ac_status=$?
25228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25229 test $ac_status = 0; }; }
25230 then
25231 gcc_cv_as_section_has_align=yes
25232 else
25233 echo "configure: failed program was" >&5
25234 cat conftest.s >&5
25236 rm -f conftest.o conftest.s
25239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25240 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25242 if test x$gcc_cv_as_section_has_align != xyes; then
25243 case ",$enable_languages," in
25244 *,lto,*)
25245 { $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
25246 $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;}
25248 esac
25251 esac
25253 # Test if the assembler supports the section flag 'e' for specifying
25254 # an excluded section.
25255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25256 $as_echo_n "checking assembler for .section with e... " >&6; }
25257 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25258 $as_echo_n "(cached) " >&6
25259 else
25260 gcc_cv_as_section_has_e=no
25261 if test $in_tree_gas = yes; then
25262 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25263 then gcc_cv_as_section_has_e=yes
25265 elif test x$gcc_cv_as != x; then
25266 $as_echo '.section foo1,"e"
25267 .byte 0,0,0,0' > conftest.s
25268 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25270 (eval $ac_try) 2>&5
25271 ac_status=$?
25272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25273 test $ac_status = 0; }; }
25274 then
25275 gcc_cv_as_section_has_e=yes
25276 else
25277 echo "configure: failed program was" >&5
25278 cat conftest.s >&5
25280 rm -f conftest.o conftest.s
25283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25284 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25287 cat >>confdefs.h <<_ACEOF
25288 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25289 _ACEOF
25292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25293 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25294 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25295 $as_echo_n "(cached) " >&6
25296 else
25297 gcc_cv_as_ix86_filds=no
25298 if test x$gcc_cv_as != x; then
25299 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25300 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25302 (eval $ac_try) 2>&5
25303 ac_status=$?
25304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25305 test $ac_status = 0; }; }
25306 then
25307 gcc_cv_as_ix86_filds=yes
25308 else
25309 echo "configure: failed program was" >&5
25310 cat conftest.s >&5
25312 rm -f conftest.o conftest.s
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25316 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25317 if test $gcc_cv_as_ix86_filds = yes; then
25319 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25324 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25325 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25326 $as_echo_n "(cached) " >&6
25327 else
25328 gcc_cv_as_ix86_fildq=no
25329 if test x$gcc_cv_as != x; then
25330 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25331 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25333 (eval $ac_try) 2>&5
25334 ac_status=$?
25335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25336 test $ac_status = 0; }; }
25337 then
25338 gcc_cv_as_ix86_fildq=yes
25339 else
25340 echo "configure: failed program was" >&5
25341 cat conftest.s >&5
25343 rm -f conftest.o conftest.s
25346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25347 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25348 if test $gcc_cv_as_ix86_fildq = yes; then
25350 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25355 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25356 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25357 $as_echo_n "(cached) " >&6
25358 else
25359 gcc_cv_as_ix86_cmov_sun_syntax=no
25360 if test x$gcc_cv_as != x; then
25361 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25362 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25364 (eval $ac_try) 2>&5
25365 ac_status=$?
25366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25367 test $ac_status = 0; }; }
25368 then
25369 gcc_cv_as_ix86_cmov_sun_syntax=yes
25370 else
25371 echo "configure: failed program was" >&5
25372 cat conftest.s >&5
25374 rm -f conftest.o conftest.s
25377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25378 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25379 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25381 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25386 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25387 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25388 $as_echo_n "(cached) " >&6
25389 else
25390 gcc_cv_as_ix86_ffreep=no
25391 if test x$gcc_cv_as != x; then
25392 $as_echo 'ffreep %st(1)' > conftest.s
25393 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25395 (eval $ac_try) 2>&5
25396 ac_status=$?
25397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25398 test $ac_status = 0; }; }
25399 then
25400 gcc_cv_as_ix86_ffreep=yes
25401 else
25402 echo "configure: failed program was" >&5
25403 cat conftest.s >&5
25405 rm -f conftest.o conftest.s
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25409 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25410 if test $gcc_cv_as_ix86_ffreep = yes; then
25412 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25417 $as_echo_n "checking assembler for .quad directive... " >&6; }
25418 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25419 $as_echo_n "(cached) " >&6
25420 else
25421 gcc_cv_as_ix86_quad=no
25422 if test x$gcc_cv_as != x; then
25423 $as_echo '.quad 0' > conftest.s
25424 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25426 (eval $ac_try) 2>&5
25427 ac_status=$?
25428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25429 test $ac_status = 0; }; }
25430 then
25431 gcc_cv_as_ix86_quad=yes
25432 else
25433 echo "configure: failed program was" >&5
25434 cat conftest.s >&5
25436 rm -f conftest.o conftest.s
25439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25440 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25441 if test $gcc_cv_as_ix86_quad = yes; then
25443 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25448 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25449 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25450 $as_echo_n "(cached) " >&6
25451 else
25452 gcc_cv_as_ix86_sahf=no
25453 if test x$gcc_cv_as != x; then
25454 $as_echo '.code64
25455 sahf' > conftest.s
25456 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25458 (eval $ac_try) 2>&5
25459 ac_status=$?
25460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25461 test $ac_status = 0; }; }
25462 then
25463 gcc_cv_as_ix86_sahf=yes
25464 else
25465 echo "configure: failed program was" >&5
25466 cat conftest.s >&5
25468 rm -f conftest.o conftest.s
25471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25472 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25473 if test $gcc_cv_as_ix86_sahf = yes; then
25475 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25480 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25481 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25482 $as_echo_n "(cached) " >&6
25483 else
25484 gcc_cv_as_ix86_interunit_movq=no
25485 if test x$gcc_cv_as != x; then
25486 $as_echo '.code64
25487 movq %mm0, %rax
25488 movq %rax, %xmm0' > conftest.s
25489 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25491 (eval $ac_try) 2>&5
25492 ac_status=$?
25493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25494 test $ac_status = 0; }; }
25495 then
25496 gcc_cv_as_ix86_interunit_movq=yes
25497 else
25498 echo "configure: failed program was" >&5
25499 cat conftest.s >&5
25501 rm -f conftest.o conftest.s
25504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25505 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25508 cat >>confdefs.h <<_ACEOF
25509 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25510 _ACEOF
25513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25514 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25515 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25516 $as_echo_n "(cached) " >&6
25517 else
25518 gcc_cv_as_ix86_hle=no
25519 if test x$gcc_cv_as != x; then
25520 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25521 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25523 (eval $ac_try) 2>&5
25524 ac_status=$?
25525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25526 test $ac_status = 0; }; }
25527 then
25528 gcc_cv_as_ix86_hle=yes
25529 else
25530 echo "configure: failed program was" >&5
25531 cat conftest.s >&5
25533 rm -f conftest.o conftest.s
25536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25537 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25538 if test $gcc_cv_as_ix86_hle = yes; then
25540 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25545 $as_echo_n "checking assembler for swap suffix... " >&6; }
25546 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25547 $as_echo_n "(cached) " >&6
25548 else
25549 gcc_cv_as_ix86_swap=no
25550 if test x$gcc_cv_as != x; then
25551 $as_echo 'movl.s %esp, %ebp' > conftest.s
25552 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25554 (eval $ac_try) 2>&5
25555 ac_status=$?
25556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25557 test $ac_status = 0; }; }
25558 then
25559 gcc_cv_as_ix86_swap=yes
25560 else
25561 echo "configure: failed program was" >&5
25562 cat conftest.s >&5
25564 rm -f conftest.o conftest.s
25567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25568 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25569 if test $gcc_cv_as_ix86_swap = yes; then
25571 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25576 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25577 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25578 $as_echo_n "(cached) " >&6
25579 else
25580 gcc_cv_as_ix86_diff_sect_delta=no
25581 if test x$gcc_cv_as != x; then
25582 $as_echo '.section .rodata
25583 .L1:
25584 .long .L2-.L1
25585 .long .L3-.L1
25586 .text
25587 .L3: nop
25588 .L2: nop' > conftest.s
25589 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25591 (eval $ac_try) 2>&5
25592 ac_status=$?
25593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25594 test $ac_status = 0; }; }
25595 then
25596 gcc_cv_as_ix86_diff_sect_delta=yes
25597 else
25598 echo "configure: failed program was" >&5
25599 cat conftest.s >&5
25601 rm -f conftest.o conftest.s
25604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25605 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25606 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25608 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25612 # These two are used unconditionally by i386.[ch]; it is to be defined
25613 # to 1 if the feature is present, 0 otherwise.
25614 as_ix86_gotoff_in_data_opt=
25615 if test x$gas = xyes; then
25616 as_ix86_gotoff_in_data_opt="--32"
25618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25619 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25620 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25621 $as_echo_n "(cached) " >&6
25622 else
25623 gcc_cv_as_ix86_gotoff_in_data=no
25624 if test $in_tree_gas = yes; then
25625 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25626 then gcc_cv_as_ix86_gotoff_in_data=yes
25628 elif test x$gcc_cv_as != x; then
25629 $as_echo ' .text
25630 .L0:
25632 .data
25633 .long .L0@GOTOFF' > conftest.s
25634 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25636 (eval $ac_try) 2>&5
25637 ac_status=$?
25638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25639 test $ac_status = 0; }; }
25640 then
25641 gcc_cv_as_ix86_gotoff_in_data=yes
25642 else
25643 echo "configure: failed program was" >&5
25644 cat conftest.s >&5
25646 rm -f conftest.o conftest.s
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25650 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25653 cat >>confdefs.h <<_ACEOF
25654 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25655 _ACEOF
25658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25659 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25660 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25661 $as_echo_n "(cached) " >&6
25662 else
25663 gcc_cv_as_ix86_rep_lock_prefix=no
25664 if test x$gcc_cv_as != x; then
25665 $as_echo 'rep movsl
25666 rep ret
25667 rep nop
25668 rep bsf %ecx, %eax
25669 rep bsr %ecx, %eax
25670 lock addl %edi, (%eax,%esi)
25671 lock orl $0, (%esp)' > conftest.s
25672 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25674 (eval $ac_try) 2>&5
25675 ac_status=$?
25676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25677 test $ac_status = 0; }; }
25678 then
25679 gcc_cv_as_ix86_rep_lock_prefix=yes
25680 else
25681 echo "configure: failed program was" >&5
25682 cat conftest.s >&5
25684 rm -f conftest.o conftest.s
25687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25688 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25689 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25691 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25696 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25697 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25698 $as_echo_n "(cached) " >&6
25699 else
25700 gcc_cv_as_ix86_ud2=no
25701 if test x$gcc_cv_as != x; then
25702 $as_echo 'ud2' > conftest.s
25703 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25705 (eval $ac_try) 2>&5
25706 ac_status=$?
25707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25708 test $ac_status = 0; }; }
25709 then
25710 gcc_cv_as_ix86_ud2=yes
25711 else
25712 echo "configure: failed program was" >&5
25713 cat conftest.s >&5
25715 rm -f conftest.o conftest.s
25718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25719 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25720 if test $gcc_cv_as_ix86_ud2 = yes; then
25722 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25727 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25728 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25729 $as_echo_n "(cached) " >&6
25730 else
25731 gcc_cv_as_ix86_tlsgdplt=no
25732 if test x$gcc_cv_as != x; then
25733 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25734 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25736 (eval $ac_try) 2>&5
25737 ac_status=$?
25738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25739 test $ac_status = 0; }; }
25740 then
25741 if test x$gcc_cv_ld != x \
25742 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25743 gcc_cv_as_ix86_tlsgdplt=yes
25745 rm -f conftest
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_tlsgdplt" >&5
25754 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25755 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25757 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25761 conftest_s='
25762 .section .tdata,"aw'$tls_section_flag'",@progbits
25763 tls_ld:
25764 .section .text,"ax",@progbits
25765 call tls_ld@tlsldmplt'
25766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25767 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25768 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25769 $as_echo_n "(cached) " >&6
25770 else
25771 gcc_cv_as_ix86_tlsldmplt=no
25772 if test x$gcc_cv_as != x; then
25773 $as_echo "$conftest_s" > conftest.s
25774 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25776 (eval $ac_try) 2>&5
25777 ac_status=$?
25778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25779 test $ac_status = 0; }; }
25780 then
25781 if test x$gcc_cv_ld != x \
25782 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25783 gcc_cv_as_ix86_tlsldmplt=yes
25785 rm -f conftest
25786 else
25787 echo "configure: failed program was" >&5
25788 cat conftest.s >&5
25790 rm -f conftest.o conftest.s
25793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25794 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25797 cat >>confdefs.h <<_ACEOF
25798 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25799 _ACEOF
25802 # Enforce 32-bit output with gas and gld.
25803 if test x$gas = xyes; then
25804 as_ix86_tls_ldm_opt="--32"
25806 if echo "$ld_ver" | grep GNU > /dev/null; then
25807 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25808 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25809 else
25810 ld_ix86_tls_ldm_opt="-melf_i386"
25813 conftest_s='
25814 .section .text,"ax",@progbits
25815 .globl _start
25816 .type _start, @function
25817 _start:
25818 leal value@tlsldm(%ebx), %eax
25819 call ___tls_get_addr@plt
25821 .section .tdata,"aw'$tls_section_flag'",@progbits
25822 .type value, @object
25823 value:'
25824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25825 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25826 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25827 $as_echo_n "(cached) " >&6
25828 else
25829 gcc_cv_as_ix86_tlsldm=no
25830 if test x$gcc_cv_as != x; then
25831 $as_echo "$conftest_s" > conftest.s
25832 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25834 (eval $ac_try) 2>&5
25835 ac_status=$?
25836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25837 test $ac_status = 0; }; }
25838 then
25839 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25840 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25841 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25842 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25843 gcc_cv_as_ix86_tlsldm=yes
25846 rm -f conftest
25847 else
25848 echo "configure: failed program was" >&5
25849 cat conftest.s >&5
25851 rm -f conftest.o conftest.s
25854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25855 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25858 cat >>confdefs.h <<_ACEOF
25859 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25860 _ACEOF
25865 ia64*-*-*)
25866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25867 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25868 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25869 $as_echo_n "(cached) " >&6
25870 else
25871 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25872 if test $in_tree_gas = yes; then
25873 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25874 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25876 elif test x$gcc_cv_as != x; then
25877 $as_echo ' .text
25878 addl r15 = @ltoffx(x#), gp
25880 ld8.mov r16 = [r15], x#' > conftest.s
25881 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25883 (eval $ac_try) 2>&5
25884 ac_status=$?
25885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25886 test $ac_status = 0; }; }
25887 then
25888 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25889 else
25890 echo "configure: failed program was" >&5
25891 cat conftest.s >&5
25893 rm -f conftest.o conftest.s
25896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25897 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25898 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25900 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25906 powerpc*-*-*)
25907 case $target in
25908 *-*-aix*) conftest_s=' .machine "pwr5"
25909 .csect .text[PR]
25910 mfcr 3,128';;
25911 *-*-darwin*)
25912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25913 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25914 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25915 $as_echo_n "(cached) " >&6
25916 else
25917 gcc_cv_as_machine_directive=no
25918 if test x$gcc_cv_as != x; then
25919 $as_echo ' .machine ppc7400' > conftest.s
25920 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25922 (eval $ac_try) 2>&5
25923 ac_status=$?
25924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25925 test $ac_status = 0; }; }
25926 then
25927 gcc_cv_as_machine_directive=yes
25928 else
25929 echo "configure: failed program was" >&5
25930 cat conftest.s >&5
25932 rm -f conftest.o conftest.s
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25936 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25938 if test x$gcc_cv_as_machine_directive != xyes; then
25939 echo "*** This target requires an assembler supporting \".machine\"" >&2
25940 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25941 test x$build = x$target && exit 1
25943 conftest_s=' .text
25944 mfcr r3,128';;
25945 *) conftest_s=' .machine power4
25946 .text
25947 mfcr 3,128';;
25948 esac
25950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25951 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25952 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25953 $as_echo_n "(cached) " >&6
25954 else
25955 gcc_cv_as_powerpc_mfcrf=no
25956 if test $in_tree_gas = yes; then
25957 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25958 then gcc_cv_as_powerpc_mfcrf=yes
25960 elif test x$gcc_cv_as != x; then
25961 $as_echo "$conftest_s" > conftest.s
25962 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25964 (eval $ac_try) 2>&5
25965 ac_status=$?
25966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25967 test $ac_status = 0; }; }
25968 then
25969 gcc_cv_as_powerpc_mfcrf=yes
25970 else
25971 echo "configure: failed program was" >&5
25972 cat conftest.s >&5
25974 rm -f conftest.o conftest.s
25977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25978 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25979 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25981 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25985 case $target in
25986 *-*-aix*) conftest_s=' .machine "pwr5"
25987 .csect .text[PR]
25988 popcntb 3,3';;
25989 *) conftest_s=' .machine power5
25990 .text
25991 popcntb 3,3';;
25992 esac
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25995 $as_echo_n "checking assembler for popcntb support... " >&6; }
25996 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25997 $as_echo_n "(cached) " >&6
25998 else
25999 gcc_cv_as_powerpc_popcntb=no
26000 if test $in_tree_gas = yes; then
26001 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26002 then gcc_cv_as_powerpc_popcntb=yes
26004 elif test x$gcc_cv_as != x; then
26005 $as_echo "$conftest_s" > conftest.s
26006 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26008 (eval $ac_try) 2>&5
26009 ac_status=$?
26010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26011 test $ac_status = 0; }; }
26012 then
26013 gcc_cv_as_powerpc_popcntb=yes
26014 else
26015 echo "configure: failed program was" >&5
26016 cat conftest.s >&5
26018 rm -f conftest.o conftest.s
26021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26022 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26023 if test $gcc_cv_as_powerpc_popcntb = yes; then
26025 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26029 case $target in
26030 *-*-aix*) conftest_s=' .machine "pwr5x"
26031 .csect .text[PR]
26032 frin 1,1';;
26033 *) conftest_s=' .machine power5
26034 .text
26035 frin 1,1';;
26036 esac
26038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26039 $as_echo_n "checking assembler for fp round support... " >&6; }
26040 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26041 $as_echo_n "(cached) " >&6
26042 else
26043 gcc_cv_as_powerpc_fprnd=no
26044 if test $in_tree_gas = yes; then
26045 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26046 then gcc_cv_as_powerpc_fprnd=yes
26048 elif test x$gcc_cv_as != x; then
26049 $as_echo "$conftest_s" > conftest.s
26050 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26052 (eval $ac_try) 2>&5
26053 ac_status=$?
26054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26055 test $ac_status = 0; }; }
26056 then
26057 gcc_cv_as_powerpc_fprnd=yes
26058 else
26059 echo "configure: failed program was" >&5
26060 cat conftest.s >&5
26062 rm -f conftest.o conftest.s
26065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26066 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26067 if test $gcc_cv_as_powerpc_fprnd = yes; then
26069 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26073 case $target in
26074 *-*-aix*) conftest_s=' .machine "pwr6"
26075 .csect .text[PR]
26076 mffgpr 1,3';;
26077 *) conftest_s=' .machine power6
26078 .text
26079 mffgpr 1,3';;
26080 esac
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26083 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26084 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26085 $as_echo_n "(cached) " >&6
26086 else
26087 gcc_cv_as_powerpc_mfpgpr=no
26088 if test $in_tree_gas = yes; then
26089 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26090 then gcc_cv_as_powerpc_mfpgpr=yes
26092 elif test x$gcc_cv_as != x; then
26093 $as_echo "$conftest_s" > conftest.s
26094 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26096 (eval $ac_try) 2>&5
26097 ac_status=$?
26098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26099 test $ac_status = 0; }; }
26100 then
26101 gcc_cv_as_powerpc_mfpgpr=yes
26102 else
26103 echo "configure: failed program was" >&5
26104 cat conftest.s >&5
26106 rm -f conftest.o conftest.s
26109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26110 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26111 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26113 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26117 case $target in
26118 *-*-aix*) conftest_s=' .csect .text[PR]
26119 LCF..0:
26120 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26121 *-*-darwin*)
26122 conftest_s=' .text
26123 LCF0:
26124 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26125 *) conftest_s=' .text
26126 .LCF0:
26127 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26128 esac
26130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26131 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26132 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26133 $as_echo_n "(cached) " >&6
26134 else
26135 gcc_cv_as_powerpc_rel16=no
26136 if test $in_tree_gas = yes; then
26137 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26138 then gcc_cv_as_powerpc_rel16=yes
26140 elif test x$gcc_cv_as != x; then
26141 $as_echo "$conftest_s" > conftest.s
26142 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26144 (eval $ac_try) 2>&5
26145 ac_status=$?
26146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26147 test $ac_status = 0; }; }
26148 then
26149 gcc_cv_as_powerpc_rel16=yes
26150 else
26151 echo "configure: failed program was" >&5
26152 cat conftest.s >&5
26154 rm -f conftest.o conftest.s
26157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26158 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26159 if test $gcc_cv_as_powerpc_rel16 = yes; then
26161 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26165 case $target in
26166 *-*-aix*) conftest_s=' .machine "pwr6"
26167 .csect .text[PR]
26168 cmpb 3,4,5';;
26169 *) conftest_s=' .machine power6
26170 .text
26171 cmpb 3,4,5';;
26172 esac
26174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26175 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26176 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26177 $as_echo_n "(cached) " >&6
26178 else
26179 gcc_cv_as_powerpc_cmpb=no
26180 if test $in_tree_gas = yes; then
26181 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26182 then gcc_cv_as_powerpc_cmpb=yes
26184 elif test x$gcc_cv_as != x; then
26185 $as_echo "$conftest_s" > conftest.s
26186 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26188 (eval $ac_try) 2>&5
26189 ac_status=$?
26190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26191 test $ac_status = 0; }; }
26192 then
26193 gcc_cv_as_powerpc_cmpb=yes
26194 else
26195 echo "configure: failed program was" >&5
26196 cat conftest.s >&5
26198 rm -f conftest.o conftest.s
26201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26202 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26203 if test $gcc_cv_as_powerpc_cmpb = yes; then
26205 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26209 case $target in
26210 *-*-aix*) conftest_s=' .machine "pwr6"
26211 .csect .text[PR]
26212 dadd 1,2,3';;
26213 *) conftest_s=' .machine power6
26214 .text
26215 dadd 1,2,3';;
26216 esac
26218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26219 $as_echo_n "checking assembler for decimal float support... " >&6; }
26220 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26221 $as_echo_n "(cached) " >&6
26222 else
26223 gcc_cv_as_powerpc_dfp=no
26224 if test $in_tree_gas = yes; then
26225 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26226 then gcc_cv_as_powerpc_dfp=yes
26228 elif test x$gcc_cv_as != x; then
26229 $as_echo "$conftest_s" > conftest.s
26230 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26232 (eval $ac_try) 2>&5
26233 ac_status=$?
26234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26235 test $ac_status = 0; }; }
26236 then
26237 gcc_cv_as_powerpc_dfp=yes
26238 else
26239 echo "configure: failed program was" >&5
26240 cat conftest.s >&5
26242 rm -f conftest.o conftest.s
26245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26246 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26247 if test $gcc_cv_as_powerpc_dfp = yes; then
26249 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26253 case $target in
26254 *-*-aix*) conftest_s=' .machine "pwr7"
26255 .csect .text[PR]
26256 lxvd2x 1,2,3';;
26257 *) conftest_s=' .machine power7
26258 .text
26259 lxvd2x 1,2,3';;
26260 esac
26262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26263 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26264 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26265 $as_echo_n "(cached) " >&6
26266 else
26267 gcc_cv_as_powerpc_vsx=no
26268 if test $in_tree_gas = yes; then
26269 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26270 then gcc_cv_as_powerpc_vsx=yes
26272 elif test x$gcc_cv_as != x; then
26273 $as_echo "$conftest_s" > conftest.s
26274 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26276 (eval $ac_try) 2>&5
26277 ac_status=$?
26278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26279 test $ac_status = 0; }; }
26280 then
26281 gcc_cv_as_powerpc_vsx=yes
26282 else
26283 echo "configure: failed program was" >&5
26284 cat conftest.s >&5
26286 rm -f conftest.o conftest.s
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26290 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26291 if test $gcc_cv_as_powerpc_vsx = yes; then
26293 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26297 case $target in
26298 *-*-aix*) conftest_s=' .machine "pwr7"
26299 .csect .text[PR]
26300 popcntd 3,3';;
26301 *) conftest_s=' .machine power7
26302 .text
26303 popcntd 3,3';;
26304 esac
26306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26307 $as_echo_n "checking assembler for popcntd support... " >&6; }
26308 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26309 $as_echo_n "(cached) " >&6
26310 else
26311 gcc_cv_as_powerpc_popcntd=no
26312 if test $in_tree_gas = yes; then
26313 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26314 then gcc_cv_as_powerpc_popcntd=yes
26316 elif test x$gcc_cv_as != x; then
26317 $as_echo "$conftest_s" > conftest.s
26318 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26320 (eval $ac_try) 2>&5
26321 ac_status=$?
26322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26323 test $ac_status = 0; }; }
26324 then
26325 gcc_cv_as_powerpc_popcntd=yes
26326 else
26327 echo "configure: failed program was" >&5
26328 cat conftest.s >&5
26330 rm -f conftest.o conftest.s
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26334 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26335 if test $gcc_cv_as_powerpc_popcntd = yes; then
26337 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26341 case $target in
26342 *-*-aix*) conftest_s=' .machine "pwr8"
26343 .csect .text[PR]';;
26344 *) conftest_s=' .machine power8
26345 .text';;
26346 esac
26348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26349 $as_echo_n "checking assembler for power8 support... " >&6; }
26350 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26351 $as_echo_n "(cached) " >&6
26352 else
26353 gcc_cv_as_powerpc_power8=no
26354 if test $in_tree_gas = yes; then
26355 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26356 then gcc_cv_as_powerpc_power8=yes
26358 elif test x$gcc_cv_as != x; then
26359 $as_echo "$conftest_s" > conftest.s
26360 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26362 (eval $ac_try) 2>&5
26363 ac_status=$?
26364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26365 test $ac_status = 0; }; }
26366 then
26367 gcc_cv_as_powerpc_power8=yes
26368 else
26369 echo "configure: failed program was" >&5
26370 cat conftest.s >&5
26372 rm -f conftest.o conftest.s
26375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26376 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26377 if test $gcc_cv_as_powerpc_power8 = yes; then
26379 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26383 case $target in
26384 *-*-aix*) conftest_s=' .machine "pwr9"
26385 .csect .text[PR]';;
26386 *) conftest_s=' .machine power9
26387 .text';;
26388 esac
26390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26391 $as_echo_n "checking assembler for power9 support... " >&6; }
26392 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26393 $as_echo_n "(cached) " >&6
26394 else
26395 gcc_cv_as_powerpc_power9=no
26396 if test $in_tree_gas = yes; then
26397 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26398 then gcc_cv_as_powerpc_power9=yes
26400 elif test x$gcc_cv_as != x; then
26401 $as_echo "$conftest_s" > conftest.s
26402 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26403 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26404 (eval $ac_try) 2>&5
26405 ac_status=$?
26406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26407 test $ac_status = 0; }; }
26408 then
26409 gcc_cv_as_powerpc_power9=yes
26410 else
26411 echo "configure: failed program was" >&5
26412 cat conftest.s >&5
26414 rm -f conftest.o conftest.s
26417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26418 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26419 if test $gcc_cv_as_powerpc_power9 = yes; then
26421 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26425 case $target in
26426 *-*-aix*) conftest_s=' .csect .text[PR]
26427 lwsync';;
26428 *) conftest_s=' .text
26429 lwsync';;
26430 esac
26432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26433 $as_echo_n "checking assembler for lwsync support... " >&6; }
26434 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26435 $as_echo_n "(cached) " >&6
26436 else
26437 gcc_cv_as_powerpc_lwsync=no
26438 if test $in_tree_gas = yes; then
26439 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26440 then gcc_cv_as_powerpc_lwsync=yes
26442 elif test x$gcc_cv_as != x; then
26443 $as_echo "$conftest_s" > conftest.s
26444 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26446 (eval $ac_try) 2>&5
26447 ac_status=$?
26448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26449 test $ac_status = 0; }; }
26450 then
26451 gcc_cv_as_powerpc_lwsync=yes
26452 else
26453 echo "configure: failed program was" >&5
26454 cat conftest.s >&5
26456 rm -f conftest.o conftest.s
26459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26460 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26461 if test $gcc_cv_as_powerpc_lwsync = yes; then
26463 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26467 case $target in
26468 *-*-aix*) conftest_s=' .machine "476"
26469 .csect .text[PR]
26470 dci 0';;
26471 *) conftest_s=' .machine "476"
26472 .text
26473 dci 0';;
26474 esac
26476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26477 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26478 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26479 $as_echo_n "(cached) " >&6
26480 else
26481 gcc_cv_as_powerpc_dci=no
26482 if test $in_tree_gas = yes; then
26483 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26484 then gcc_cv_as_powerpc_dci=yes
26486 elif test x$gcc_cv_as != x; then
26487 $as_echo "$conftest_s" > conftest.s
26488 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26490 (eval $ac_try) 2>&5
26491 ac_status=$?
26492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26493 test $ac_status = 0; }; }
26494 then
26495 gcc_cv_as_powerpc_dci=yes
26496 else
26497 echo "configure: failed program was" >&5
26498 cat conftest.s >&5
26500 rm -f conftest.o conftest.s
26503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26504 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26505 if test $gcc_cv_as_powerpc_dci = yes; then
26507 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26512 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26513 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26514 $as_echo_n "(cached) " >&6
26515 else
26516 gcc_cv_as_powerpc_gnu_attribute=no
26517 if test $in_tree_gas = yes; then
26518 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26519 then gcc_cv_as_powerpc_gnu_attribute=yes
26521 elif test x$gcc_cv_as != x; then
26522 $as_echo '.gnu_attribute 4,1' > conftest.s
26523 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26525 (eval $ac_try) 2>&5
26526 ac_status=$?
26527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26528 test $ac_status = 0; }; }
26529 then
26530 gcc_cv_as_powerpc_gnu_attribute=yes
26531 else
26532 echo "configure: failed program was" >&5
26533 cat conftest.s >&5
26535 rm -f conftest.o conftest.s
26538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26539 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26540 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26542 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26547 $as_echo_n "checking assembler for tls marker support... " >&6; }
26548 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26549 $as_echo_n "(cached) " >&6
26550 else
26551 gcc_cv_as_powerpc_tls_markers=no
26552 if test $in_tree_gas = yes; then
26553 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26554 then gcc_cv_as_powerpc_tls_markers=yes
26556 elif test x$gcc_cv_as != x; then
26557 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26558 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26560 (eval $ac_try) 2>&5
26561 ac_status=$?
26562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26563 test $ac_status = 0; }; }
26564 then
26565 gcc_cv_as_powerpc_tls_markers=yes
26566 else
26567 echo "configure: failed program was" >&5
26568 cat conftest.s >&5
26570 rm -f conftest.o conftest.s
26573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26574 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26575 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26577 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26582 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26583 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26584 $as_echo_n "(cached) " >&6
26585 else
26586 gcc_cv_as_powerpc_entry_markers=no
26587 if test $in_tree_gas = yes; then
26588 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26589 then gcc_cv_as_powerpc_entry_markers=yes
26591 elif test x$gcc_cv_as != x; then
26592 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26593 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26595 (eval $ac_try) 2>&5
26596 ac_status=$?
26597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26598 test $ac_status = 0; }; }
26599 then
26600 gcc_cv_as_powerpc_entry_markers=yes
26601 else
26602 echo "configure: failed program was" >&5
26603 cat conftest.s >&5
26605 rm -f conftest.o conftest.s
26608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26609 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26610 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26612 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26616 case $target in
26617 *-*-aix*)
26618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26619 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26620 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26621 $as_echo_n "(cached) " >&6
26622 else
26623 gcc_cv_as_aix_ref=no
26624 if test $in_tree_gas = yes; then
26625 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26626 then gcc_cv_as_aix_ref=yes
26628 elif test x$gcc_cv_as != x; then
26629 $as_echo ' .csect stuff[rw]
26630 stuff:
26631 .long 1
26632 .extern sym
26633 .ref sym
26634 ' > conftest.s
26635 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26637 (eval $ac_try) 2>&5
26638 ac_status=$?
26639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26640 test $ac_status = 0; }; }
26641 then
26642 gcc_cv_as_aix_ref=yes
26643 else
26644 echo "configure: failed program was" >&5
26645 cat conftest.s >&5
26647 rm -f conftest.o conftest.s
26650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26651 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26652 if test $gcc_cv_as_aix_ref = yes; then
26654 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26659 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26660 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26661 $as_echo_n "(cached) " >&6
26662 else
26663 gcc_cv_as_aix_dwloc=no
26664 if test $in_tree_gas = yes; then
26665 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26666 then gcc_cv_as_aix_dwloc=yes
26668 elif test x$gcc_cv_as != x; then
26669 $as_echo ' .dwsect 0xA0000
26670 Lframe..0:
26671 .vbyte 4,Lframe..0:
26672 ' > conftest.s
26673 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26674 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26675 (eval $ac_try) 2>&5
26676 ac_status=$?
26677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26678 test $ac_status = 0; }; }
26679 then
26680 gcc_cv_as_aix_dwloc=yes
26681 else
26682 echo "configure: failed program was" >&5
26683 cat conftest.s >&5
26685 rm -f conftest.o conftest.s
26688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26689 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26690 if test $gcc_cv_as_aix_dwloc = yes; then
26692 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26696 esac
26699 mips*-*-*)
26700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26701 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26702 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26703 $as_echo_n "(cached) " >&6
26704 else
26705 gcc_cv_as_mips_explicit_relocs=no
26706 if test $in_tree_gas = yes; then
26707 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26708 then gcc_cv_as_mips_explicit_relocs=yes
26710 elif test x$gcc_cv_as != x; then
26711 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26712 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26714 (eval $ac_try) 2>&5
26715 ac_status=$?
26716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26717 test $ac_status = 0; }; }
26718 then
26719 gcc_cv_as_mips_explicit_relocs=yes
26720 else
26721 echo "configure: failed program was" >&5
26722 cat conftest.s >&5
26724 rm -f conftest.o conftest.s
26727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26728 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26729 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26730 if test x$target_cpu_default = x
26731 then target_cpu_default=MASK_EXPLICIT_RELOCS
26732 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26737 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26738 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26739 $as_echo_n "(cached) " >&6
26740 else
26741 gcc_cv_as_mips_no_shared=no
26742 if test $in_tree_gas = yes; then
26743 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26744 then gcc_cv_as_mips_no_shared=yes
26746 elif test x$gcc_cv_as != x; then
26747 $as_echo 'nop' > conftest.s
26748 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26750 (eval $ac_try) 2>&5
26751 ac_status=$?
26752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26753 test $ac_status = 0; }; }
26754 then
26755 gcc_cv_as_mips_no_shared=yes
26756 else
26757 echo "configure: failed program was" >&5
26758 cat conftest.s >&5
26760 rm -f conftest.o conftest.s
26763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26764 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26765 if test $gcc_cv_as_mips_no_shared = yes; then
26767 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26772 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26773 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26774 $as_echo_n "(cached) " >&6
26775 else
26776 gcc_cv_as_mips_gnu_attribute=no
26777 if test $in_tree_gas = yes; then
26778 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26779 then gcc_cv_as_mips_gnu_attribute=yes
26781 elif test x$gcc_cv_as != x; then
26782 $as_echo '.gnu_attribute 4,1' > 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_gnu_attribute=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_gnu_attribute" >&5
26799 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26800 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26802 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26807 $as_echo_n "checking assembler for .module support... " >&6; }
26808 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26809 $as_echo_n "(cached) " >&6
26810 else
26811 gcc_cv_as_mips_dot_module=no
26812 if test x$gcc_cv_as != x; then
26813 $as_echo '.module mips2
26814 .module fp=xx' > conftest.s
26815 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26817 (eval $ac_try) 2>&5
26818 ac_status=$?
26819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26820 test $ac_status = 0; }; }
26821 then
26822 gcc_cv_as_mips_dot_module=yes
26823 else
26824 echo "configure: failed program was" >&5
26825 cat conftest.s >&5
26827 rm -f conftest.o conftest.s
26830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26831 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26832 if test $gcc_cv_as_mips_dot_module = yes; then
26834 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26837 if test x$gcc_cv_as_mips_dot_module = xno \
26838 && test x$with_fp_32 != x; then
26839 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26843 $as_echo_n "checking assembler for .micromips support... " >&6; }
26844 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26845 $as_echo_n "(cached) " >&6
26846 else
26847 gcc_cv_as_micromips_support=no
26848 if test x$gcc_cv_as != x; then
26849 $as_echo '.set micromips' > conftest.s
26850 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26852 (eval $ac_try) 2>&5
26853 ac_status=$?
26854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26855 test $ac_status = 0; }; }
26856 then
26857 gcc_cv_as_micromips_support=yes
26858 else
26859 echo "configure: failed program was" >&5
26860 cat conftest.s >&5
26862 rm -f conftest.o conftest.s
26865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26866 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26867 if test $gcc_cv_as_micromips_support = yes; then
26869 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26874 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26875 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26876 $as_echo_n "(cached) " >&6
26877 else
26878 gcc_cv_as_mips_dtprelword=no
26879 if test $in_tree_gas = yes; then
26880 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26881 then gcc_cv_as_mips_dtprelword=yes
26883 elif test x$gcc_cv_as != x; then
26884 $as_echo '.section .tdata,"awT",@progbits
26886 .word 2
26887 .text
26888 .dtprelword x+0x8000' > conftest.s
26889 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26891 (eval $ac_try) 2>&5
26892 ac_status=$?
26893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26894 test $ac_status = 0; }; }
26895 then
26896 gcc_cv_as_mips_dtprelword=yes
26897 else
26898 echo "configure: failed program was" >&5
26899 cat conftest.s >&5
26901 rm -f conftest.o conftest.s
26904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26905 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26906 if test $gcc_cv_as_mips_dtprelword = yes; then
26908 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26913 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26914 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26915 $as_echo_n "(cached) " >&6
26916 else
26917 gcc_cv_as_mips_dspr1_mult=no
26918 if test x$gcc_cv_as != x; then
26919 $as_echo ' .set mips32r2
26920 .set nodspr2
26921 .set dsp
26922 madd $ac3,$4,$5
26923 maddu $ac3,$4,$5
26924 msub $ac3,$4,$5
26925 msubu $ac3,$4,$5
26926 mult $ac3,$4,$5
26927 multu $ac3,$4,$5' > conftest.s
26928 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26930 (eval $ac_try) 2>&5
26931 ac_status=$?
26932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26933 test $ac_status = 0; }; }
26934 then
26935 gcc_cv_as_mips_dspr1_mult=yes
26936 else
26937 echo "configure: failed program was" >&5
26938 cat conftest.s >&5
26940 rm -f conftest.o conftest.s
26943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26944 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26945 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26947 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26952 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26953 gcc_cv_as_ld_jalr_reloc=no
26954 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26955 if test $in_tree_ld = yes ; then
26956 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 \
26957 && test $in_tree_ld_is_elf = yes; then
26958 gcc_cv_as_ld_jalr_reloc=yes
26960 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26961 echo ' .ent x' > conftest.s
26962 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26963 echo ' lw $25,%call16(y)($28)' >> conftest.s
26964 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26965 echo '1: jalr $25' >> conftest.s
26966 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26967 echo '1: jalr $25' >> conftest.s
26968 echo ' .end x' >> conftest.s
26969 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26970 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26971 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26972 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26973 gcc_cv_as_ld_jalr_reloc=yes
26976 rm -f conftest.*
26979 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26980 if test x$target_cpu_default = x; then
26981 target_cpu_default=MASK_RELAX_PIC_CALLS
26982 else
26983 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26987 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26990 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26991 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26992 $as_echo_n "(cached) " >&6
26993 else
26994 gcc_cv_ld_mips_personality_relaxation=no
26995 if test $in_tree_ld = yes ; then
26996 if test "$gcc_cv_gld_major_version" -eq 2 \
26997 -a "$gcc_cv_gld_minor_version" -ge 21 \
26998 -o "$gcc_cv_gld_major_version" -gt 2; then
26999 gcc_cv_ld_mips_personality_relaxation=yes
27001 elif test x$gcc_cv_as != x \
27002 -a x$gcc_cv_ld != x \
27003 -a x$gcc_cv_readelf != x ; then
27004 cat > conftest.s <<EOF
27005 .cfi_startproc
27006 .cfi_personality 0x80,indirect_ptr
27007 .ent test
27008 test:
27010 .end test
27011 .cfi_endproc
27013 .section .data,"aw",@progbits
27014 indirect_ptr:
27015 .dc.a personality
27017 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
27018 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
27019 if $gcc_cv_readelf -d conftest 2>&1 \
27020 | grep TEXTREL > /dev/null 2>&1; then
27022 elif $gcc_cv_readelf --relocs conftest 2>&1 \
27023 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
27025 else
27026 gcc_cv_ld_mips_personality_relaxation=yes
27030 rm -f conftest.s conftest.o conftest
27032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27033 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27034 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
27036 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27041 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27042 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27043 $as_echo_n "(cached) " >&6
27044 else
27045 gcc_cv_as_mips_nan=no
27046 if test x$gcc_cv_as != x; then
27047 $as_echo '' > conftest.s
27048 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27049 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27050 (eval $ac_try) 2>&5
27051 ac_status=$?
27052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27053 test $ac_status = 0; }; }
27054 then
27055 gcc_cv_as_mips_nan=yes
27056 else
27057 echo "configure: failed program was" >&5
27058 cat conftest.s >&5
27060 rm -f conftest.o conftest.s
27063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27064 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27065 if test $gcc_cv_as_mips_nan = yes; then
27067 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27070 if test x$gcc_cv_as_mips_nan = xno \
27071 && test x$with_nan != x; then
27072 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27075 s390*-*-*)
27076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27077 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27078 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27079 $as_echo_n "(cached) " >&6
27080 else
27081 gcc_cv_as_s390_gnu_attribute=no
27082 if test $in_tree_gas = yes; then
27083 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27084 then gcc_cv_as_s390_gnu_attribute=yes
27086 elif test x$gcc_cv_as != x; then
27087 $as_echo '.gnu_attribute 8,1' > conftest.s
27088 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27090 (eval $ac_try) 2>&5
27091 ac_status=$?
27092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27093 test $ac_status = 0; }; }
27094 then
27095 gcc_cv_as_s390_gnu_attribute=yes
27096 else
27097 echo "configure: failed program was" >&5
27098 cat conftest.s >&5
27100 rm -f conftest.o conftest.s
27103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27104 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27105 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27107 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27111 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27112 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27113 $as_echo_n "(cached) " >&6
27114 else
27115 gcc_cv_as_s390_machine_machinemode=no
27116 if test $in_tree_gas = yes; then
27117 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27118 then gcc_cv_as_s390_machine_machinemode=yes
27120 elif test x$gcc_cv_as != x; then
27121 $as_echo ' .machinemode push
27122 .machinemode pop
27123 .machine push
27124 .machine pop' > conftest.s
27125 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27127 (eval $ac_try) 2>&5
27128 ac_status=$?
27129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27130 test $ac_status = 0; }; }
27131 then
27132 gcc_cv_as_s390_machine_machinemode=yes
27133 else
27134 echo "configure: failed program was" >&5
27135 cat conftest.s >&5
27137 rm -f conftest.o conftest.s
27140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27141 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27142 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27144 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27148 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27149 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27150 $as_echo_n "(cached) " >&6
27151 else
27152 gcc_cv_as_s390_architecture_modifiers=no
27153 if test $in_tree_gas = yes; then
27154 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27155 then gcc_cv_as_s390_architecture_modifiers=yes
27157 elif test x$gcc_cv_as != x; then
27158 $as_echo ' .machine z13+vx ' > 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_architecture_modifiers=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_architecture_modifiers" >&5
27175 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27176 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27178 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27182 esac
27184 # Mips and HP-UX need the GNU assembler.
27185 # Linux on IA64 might be able to use the Intel assembler.
27187 case "$target" in
27188 mips*-*-* | *-*-hpux* )
27189 if test x$gas_flag = xyes \
27190 || test x"$host" != x"$build" \
27191 || test ! -x "$gcc_cv_as" \
27192 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
27194 else
27195 echo "*** This configuration requires the GNU assembler" >&2
27196 exit 1
27199 esac
27201 # ??? Not all targets support dwarf2 debug_line, even within a version
27202 # of gas. Moreover, we need to emit a valid instruction to trigger any
27203 # info to the output file. So, as supported targets are added to gas 2.11,
27204 # add some instruction here to (also) show we expect this might work.
27205 # ??? Once 2.11 is released, probably need to add first known working
27206 # version to the per-target configury.
27207 case "$cpu_type" in
27208 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
27209 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
27210 | visium | xstormy16 | xtensa)
27211 insn="nop"
27213 ia64 | s390)
27214 insn="nop 0"
27216 mmix)
27217 insn="swym 0"
27219 esac
27220 if test x"$insn" != x; then
27221 conftest_s="\
27222 .file 1 \"conftest.s\"
27223 .loc 1 3 0
27224 $insn"
27225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27226 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27227 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27228 $as_echo_n "(cached) " >&6
27229 else
27230 gcc_cv_as_dwarf2_debug_line=no
27231 if test $in_tree_gas = yes; then
27232 if test $in_tree_gas_is_elf = yes \
27233 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27234 then gcc_cv_as_dwarf2_debug_line=yes
27236 elif test x$gcc_cv_as != x; then
27237 $as_echo "$conftest_s" > conftest.s
27238 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27240 (eval $ac_try) 2>&5
27241 ac_status=$?
27242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27243 test $ac_status = 0; }; }
27244 then
27245 if test x$gcc_cv_objdump != x \
27246 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
27247 | grep debug_line > /dev/null 2>&1; then
27248 gcc_cv_as_dwarf2_debug_line=yes
27250 else
27251 echo "configure: failed program was" >&5
27252 cat conftest.s >&5
27254 rm -f conftest.o conftest.s
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27258 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27261 # The .debug_line file table must be in the exact order that
27262 # we specified the files, since these indices are also used
27263 # by DW_AT_decl_file. Approximate this test by testing if
27264 # the assembler bitches if the same index is assigned twice.
27265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27266 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27267 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27268 $as_echo_n "(cached) " >&6
27269 else
27270 gcc_cv_as_dwarf2_file_buggy=no
27271 if test x$gcc_cv_as != x; then
27272 $as_echo ' .file 1 "foo.s"
27273 .file 1 "bar.s"' > conftest.s
27274 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27276 (eval $ac_try) 2>&5
27277 ac_status=$?
27278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27279 test $ac_status = 0; }; }
27280 then
27281 gcc_cv_as_dwarf2_file_buggy=yes
27282 else
27283 echo "configure: failed program was" >&5
27284 cat conftest.s >&5
27286 rm -f conftest.o conftest.s
27289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27290 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27293 if test $gcc_cv_as_dwarf2_debug_line = yes \
27294 && test $gcc_cv_as_dwarf2_file_buggy = no; then
27296 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27301 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27302 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27303 $as_echo_n "(cached) " >&6
27304 else
27305 gcc_cv_as_gdwarf2_flag=no
27306 if test $in_tree_gas = yes; then
27307 if test $in_tree_gas_is_elf = yes \
27308 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27309 then gcc_cv_as_gdwarf2_flag=yes
27311 elif test x$gcc_cv_as != x; then
27312 $as_echo "$insn" > conftest.s
27313 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27315 (eval $ac_try) 2>&5
27316 ac_status=$?
27317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27318 test $ac_status = 0; }; }
27319 then
27320 gcc_cv_as_gdwarf2_flag=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_gdwarf2_flag" >&5
27329 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27330 if test $gcc_cv_as_gdwarf2_flag = yes; then
27332 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27337 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27338 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27339 $as_echo_n "(cached) " >&6
27340 else
27341 gcc_cv_as_gstabs_flag=no
27342 if test $in_tree_gas = yes; then
27343 if test $in_tree_gas_is_elf = yes \
27344 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27345 then gcc_cv_as_gstabs_flag=yes
27347 elif test x$gcc_cv_as != x; then
27348 $as_echo "$insn" > conftest.s
27349 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27351 (eval $ac_try) 2>&5
27352 ac_status=$?
27353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27354 test $ac_status = 0; }; }
27355 then
27356 gcc_cv_as_gstabs_flag=yes
27357 else
27358 echo "configure: failed program was" >&5
27359 cat conftest.s >&5
27361 rm -f conftest.o conftest.s
27364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27365 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27366 if test $gcc_cv_as_gstabs_flag = yes; then
27368 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27373 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27374 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27375 $as_echo_n "(cached) " >&6
27376 else
27377 gcc_cv_as_debug_prefix_map_flag=no
27378 if test $in_tree_gas = yes; then
27379 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27380 then gcc_cv_as_debug_prefix_map_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 --debug-prefix-map /a=/b -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_debug_prefix_map_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_debug_prefix_map_flag" >&5
27400 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27401 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27403 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27409 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27410 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27411 $as_echo_n "(cached) " >&6
27412 else
27413 gcc_cv_as_compress_debug=no
27414 if test x$gcc_cv_as != x; then
27415 $as_echo '' > conftest.s
27416 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
27417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27418 (eval $ac_try) 2>&5
27419 ac_status=$?
27420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27421 test $ac_status = 0; }; }
27422 then
27423 # gas compiled without zlib cannot compress debug sections and warns
27424 # about it, but still exits successfully. So check for this, too.
27425 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
27426 then
27427 gcc_cv_as_compress_debug=0
27428 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
27429 then
27430 gcc_cv_as_compress_debug=1
27431 gcc_cv_as_compress_debug_option="--compress-debug-sections"
27432 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
27433 else
27434 gcc_cv_as_compress_debug=0
27435 # FIXME: Future gas versions will support ELF gABI style via
27436 # --compress-debug-sections[=type].
27438 else
27439 echo "configure: failed program was" >&5
27440 cat conftest.s >&5
27442 rm -f conftest.o conftest.s
27445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27446 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27449 cat >>confdefs.h <<_ACEOF
27450 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27451 _ACEOF
27454 cat >>confdefs.h <<_ACEOF
27455 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27456 _ACEOF
27459 cat >>confdefs.h <<_ACEOF
27460 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27461 _ACEOF
27464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27465 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27466 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27467 $as_echo_n "(cached) " >&6
27468 else
27469 gcc_cv_as_lcomm_with_alignment=no
27470 if test x$gcc_cv_as != x; then
27471 $as_echo '.lcomm bar,4,16' > conftest.s
27472 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27474 (eval $ac_try) 2>&5
27475 ac_status=$?
27476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27477 test $ac_status = 0; }; }
27478 then
27479 gcc_cv_as_lcomm_with_alignment=yes
27480 else
27481 echo "configure: failed program was" >&5
27482 cat conftest.s >&5
27484 rm -f conftest.o conftest.s
27487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27488 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27489 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27491 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27495 if test x$with_sysroot = x && test x$host = x$target \
27496 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27497 && test "$prefix" != "NONE"; then
27499 cat >>confdefs.h <<_ACEOF
27500 #define PREFIX_INCLUDE_DIR "$prefix/include"
27501 _ACEOF
27505 # Determine the version of glibc, if any, used on the target.
27506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27507 $as_echo_n "checking for target glibc version... " >&6; }
27509 # Check whether --with-glibc-version was given.
27510 if test "${with_glibc_version+set}" = set; then :
27511 withval=$with_glibc_version;
27512 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27513 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27514 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27515 else
27516 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
27518 else
27520 glibc_version_major=0
27521 glibc_version_minor=0
27522 if test -f $target_header_dir/features.h \
27523 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27524 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27525 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27526 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27531 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27533 cat >>confdefs.h <<_ACEOF
27534 #define TARGET_GLIBC_MAJOR $glibc_version_major
27535 _ACEOF
27538 cat >>confdefs.h <<_ACEOF
27539 #define TARGET_GLIBC_MINOR $glibc_version_minor
27540 _ACEOF
27543 # Check whether --enable-gnu-unique-object was given.
27544 if test "${enable_gnu_unique_object+set}" = set; then :
27545 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27546 yes | no) ;;
27547 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27548 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27549 esac
27550 else
27551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27552 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27553 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27554 $as_echo_n "(cached) " >&6
27555 else
27556 gcc_cv_as_gnu_unique_object=no
27557 if test $in_tree_gas = yes; then
27558 if test $in_tree_gas_is_elf = yes \
27559 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27560 then gcc_cv_as_gnu_unique_object=yes
27562 elif test x$gcc_cv_as != x; then
27563 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27564 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27566 (eval $ac_try) 2>&5
27567 ac_status=$?
27568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27569 test $ac_status = 0; }; }
27570 then
27571 gcc_cv_as_gnu_unique_object=yes
27572 else
27573 echo "configure: failed program was" >&5
27574 cat conftest.s >&5
27576 rm -f conftest.o conftest.s
27579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27580 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27581 if test $gcc_cv_as_gnu_unique_object = yes; then
27582 # We need to unquote above to to use the definition from config.gcc.
27583 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27585 if test $glibc_version_major -gt 2 \
27586 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27587 enable_gnu_unique_object=yes
27593 if test x$enable_gnu_unique_object = xyes; then
27595 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27600 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27601 if test "${gcc_cv_as_line_zero+set}" = set; then :
27602 $as_echo_n "(cached) " >&6
27603 else
27604 gcc_cv_as_line_zero=no
27605 if test $in_tree_gas = yes; then
27606 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27607 then gcc_cv_as_line_zero=yes
27609 elif test "x$gcc_cv_as" != x; then
27610 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27611 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27613 (eval $ac_try) 2>&5
27614 ac_status=$?
27615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27616 test $ac_status = 0; }; } &&
27617 test "x`cat conftest.out`" = x
27618 then
27619 gcc_cv_as_line_zero=yes
27620 else
27621 echo "configure: failed program was" >&5
27622 cat conftest.s >&5
27623 echo "configure: error output was" >&5
27624 cat conftest.out >&5
27626 rm -f conftest.o conftest.s conftest.out
27629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27630 $as_echo "$gcc_cv_as_line_zero" >&6; }
27631 if test "x$gcc_cv_as_line_zero" = xyes; then
27633 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27638 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27639 gcc_cv_ld_eh_frame_hdr=no
27640 if test $in_tree_ld = yes ; then
27641 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 \
27642 && test $in_tree_ld_is_elf = yes; then
27643 gcc_cv_ld_eh_frame_hdr=yes
27645 elif test x$gcc_cv_ld != x; then
27646 if echo "$ld_ver" | grep GNU > /dev/null; then
27647 # Check if linker supports --eh-frame-hdr option
27648 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
27649 gcc_cv_ld_eh_frame_hdr=yes
27651 else
27652 case "$target" in
27653 *-*-solaris2*)
27654 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27655 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
27656 gcc_cv_ld_eh_frame_hdr=yes
27659 esac
27663 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
27665 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27669 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27672 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27673 gcc_cv_ld_eh_frame_ciev3=no
27674 if test $in_tree_ld = yes ; then
27675 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 \
27676 && test $in_tree_ld_is_elf = yes; then
27677 gcc_cv_ld_eh_frame_ciev3=yes
27679 elif test x$gcc_cv_ld != x; then
27680 if echo "$ld_ver" | grep GNU > /dev/null; then
27681 gcc_cv_ld_eh_frame_ciev3=yes
27682 if test 0"$ld_date" -lt 20040513; then
27683 if test -n "$ld_date"; then
27684 # If there was date string, but was earlier than 2004-05-13, fail
27685 gcc_cv_ld_eh_frame_ciev3=no
27686 elif test "$ld_vers_major" -lt 2; then
27687 gcc_cv_ld_eh_frame_ciev3=no
27688 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27689 gcc_cv_ld_eh_frame_ciev3=no
27692 else
27693 case "$target" in
27694 *-*-solaris2*)
27695 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27696 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
27697 gcc_cv_ld_eh_frame_ciev3=yes
27700 esac
27704 cat >>confdefs.h <<_ACEOF
27705 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27706 _ACEOF
27708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27709 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27712 $as_echo_n "checking linker position independent executable support... " >&6; }
27713 gcc_cv_ld_pie=no
27714 if test $in_tree_ld = yes ; then
27715 case "$target" in
27716 # Full PIE support on Solaris was only introduced in gld 2.26.
27717 *-*-solaris2*) gcc_gld_pie_min_version=26 ;;
27718 *) gcc_gld_pie_min_version=15 ;;
27719 esac
27720 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 \
27721 && test $in_tree_ld_is_elf = yes; then
27722 gcc_cv_ld_pie=yes
27724 elif test x$gcc_cv_ld != x; then
27725 # Check if linker supports -pie option
27726 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27727 gcc_cv_ld_pie=yes
27728 case "$target" in
27729 *-*-solaris2*)
27730 if echo "$ld_ver" | grep GNU > /dev/null \
27731 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
27732 gcc_cv_ld_pie=no
27735 esac
27736 else
27737 case "$target" in
27738 *-*-solaris2.1[1-9]*)
27739 # Solaris 11.x and Solaris 12 added PIE support.
27740 if $gcc_cv_ld -z help 2>&1 | grep -- type.*pie > /dev/null; then
27741 gcc_cv_ld_pie=yes
27744 esac
27747 if test x"$gcc_cv_ld_pie" = xyes; then
27749 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27753 $as_echo "$gcc_cv_ld_pie" >&6; }
27755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27756 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27757 gcc_cv_ld_pie_copyreloc=no
27758 if test $gcc_cv_ld_pie = yes ; then
27759 if test $in_tree_ld = yes ; then
27760 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
27761 gcc_cv_ld_pie_copyreloc=yes
27763 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27764 # Check if linker supports -pie option with copy reloc
27765 case "$target" in
27766 i?86-*-linux* | x86_64-*-linux*)
27767 cat > conftest1.s <<EOF
27768 .globl a_glob
27769 .data
27770 .type a_glob, @object
27771 .size a_glob, 4
27772 a_glob:
27773 .long 2
27775 cat > conftest2.s <<EOF
27776 .text
27777 .globl main
27778 .type main, @function
27779 main:
27780 movl %eax, a_glob(%rip)
27781 .size main, .-main
27782 .globl ptr
27783 .section .data.rel,"aw",@progbits
27784 .type ptr, @object
27785 ptr:
27786 .quad a_glob
27788 if $gcc_cv_as --64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27789 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o > /dev/null 2>&1 \
27790 && $gcc_cv_as --64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27791 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so > /dev/null 2>&1; then
27792 gcc_cv_ld_pie_copyreloc=yes
27794 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27796 esac
27800 cat >>confdefs.h <<_ACEOF
27801 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27802 _ACEOF
27804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27805 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27808 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27809 gcc_cv_ld_eh_gc_sections=no
27810 if test $in_tree_ld = yes ; then
27811 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 \
27812 && test $in_tree_ld_is_elf = yes; then
27813 gcc_cv_ld_eh_gc_sections=yes
27815 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27816 cat > conftest.s <<EOF
27817 .section .text
27818 .globl _start
27819 .type _start, @function
27820 _start:
27821 .long foo
27822 .size _start, .-_start
27823 .section .text.foo,"ax",@progbits
27824 .type foo, @function
27825 foo:
27826 .long 0
27827 .size foo, .-foo
27828 .section .gcc_except_table.foo,"a",@progbits
27829 .L0:
27830 .long 0
27831 .section .eh_frame,"a",@progbits
27832 .long .L0
27834 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27835 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27836 | grep "gc-sections option ignored" > /dev/null; then
27837 gcc_cv_ld_eh_gc_sections=no
27838 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27839 | grep gcc_except_table > /dev/null; then
27840 gcc_cv_ld_eh_gc_sections=yes
27841 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27842 if test x$gcc_cv_as_comdat_group != xyes; then
27843 gcc_cv_ld_eh_gc_sections=no
27844 cat > conftest.s <<EOF
27845 .section .text
27846 .globl _start
27847 .type _start, @function
27848 _start:
27849 .long foo
27850 .size _start, .-_start
27851 .section .gnu.linkonce.t.foo,"ax",@progbits
27852 .type foo, @function
27853 foo:
27854 .long 0
27855 .size foo, .-foo
27856 .section .gcc_except_table.foo,"a",@progbits
27857 .L0:
27858 .long 0
27859 .section .eh_frame,"a",@progbits
27860 .long .L0
27862 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27863 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27864 | grep "gc-sections option ignored" > /dev/null; then
27865 gcc_cv_ld_eh_gc_sections=no
27866 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27867 | grep gcc_except_table > /dev/null; then
27868 gcc_cv_ld_eh_gc_sections=yes
27874 rm -f conftest.s conftest.o conftest
27876 case "$target" in
27877 hppa*-*-linux*)
27878 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27879 gcc_cv_ld_eh_gc_sections=no
27881 esac
27882 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
27884 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27888 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27891 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27892 gcc_cv_ld_eh_gc_sections_bug=no
27893 if test $in_tree_ld = yes ; then
27894 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 \
27895 && test $in_tree_ld_is_elf = yes; then
27896 gcc_cv_ld_eh_gc_sections_bug=yes
27898 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
27899 gcc_cv_ld_eh_gc_sections_bug=yes
27900 cat > conftest.s <<EOF
27901 .section .text
27902 .globl _start
27903 .type _start, @function
27904 _start:
27905 .long foo
27906 .size _start, .-_start
27907 .section .text.startup.foo,"ax",@progbits
27908 .type foo, @function
27909 foo:
27910 .long 0
27911 .size foo, .-foo
27912 .section .gcc_except_table.foo,"a",@progbits
27913 .L0:
27914 .long 0
27915 .section .eh_frame,"a",@progbits
27916 .long .L0
27918 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27919 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27920 | grep "gc-sections option ignored" > /dev/null; then
27922 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27923 | grep gcc_except_table > /dev/null; then
27924 gcc_cv_ld_eh_gc_sections_bug=no
27927 rm -f conftest.s conftest.o conftest
27929 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27931 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27935 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27938 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27939 # gold/gld support compressed debug sections since binutils 2.19/2.21
27940 if test $in_tree_ld = yes ; then
27941 gcc_cv_ld_compress_debug=0
27942 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 \
27943 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27944 gcc_cv_ld_compress_debug=2
27945 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27946 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 \
27947 && test $in_tree_ld_is_elf = yes; then
27948 gcc_cv_ld_compress_debug=1
27950 elif echo "$ld_ver" | grep GNU > /dev/null; then
27951 gcc_cv_ld_compress_debug=1
27952 if test 0"$ld_date" -lt 20050308; then
27953 if test -n "$ld_date"; then
27954 # If there was date string, but was earlier than 2005-03-08, fail
27955 gcc_cv_ld_compress_debug=0
27956 elif test "$ld_vers_major" -lt 2; then
27957 gcc_cv_ld_compress_debug=0
27958 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27959 gcc_cv_ld_compress_debug=0
27962 if test $ld_is_gold = yes; then
27963 gcc_cv_ld_compress_debug=2
27964 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27966 else
27967 case "${target}" in
27968 *-*-solaris2*)
27969 # Introduced in Solaris 11.2.
27970 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
27971 gcc_cv_ld_compress_debug=3
27972 gcc_cv_ld_compress_debug_option="-z compress-sections"
27973 else
27974 gcc_cv_ld_compress_debug=0
27978 # Assume linkers other than GNU ld don't support compessed debug
27979 # sections.
27980 gcc_cv_ld_compress_debug=0
27982 esac
27985 cat >>confdefs.h <<_ACEOF
27986 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27987 _ACEOF
27990 cat >>confdefs.h <<_ACEOF
27991 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27992 _ACEOF
27994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27995 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27997 # --------
27998 # UNSORTED
27999 # --------
28001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28002 $as_echo_n "checking linker --as-needed support... " >&6; }
28003 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28004 $as_echo_n "(cached) " >&6
28005 else
28006 gcc_cv_ld_as_needed=no
28007 gcc_cv_ld_as_needed_option='--as-needed'
28008 gcc_cv_ld_no_as_needed_option='--no-as-needed'
28009 if test $in_tree_ld = yes ; then
28010 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 \
28011 && test $in_tree_ld_is_elf = yes; then
28012 gcc_cv_ld_as_needed=yes
28014 elif test x$gcc_cv_ld != x; then
28015 # Check if linker supports --as-needed and --no-as-needed options
28016 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
28017 gcc_cv_ld_as_needed=yes
28018 else
28019 case "$target" in
28020 # Solaris 2 ld always supports -z ignore/-z record.
28021 *-*-solaris2*)
28022 gcc_cv_ld_as_needed=yes
28023 gcc_cv_ld_as_needed_option="-z ignore"
28024 gcc_cv_ld_no_as_needed_option="-z record"
28026 esac
28029 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28030 # dl_iterate_phdr, i.e. since Solaris 11.
28031 case "$target" in
28032 *-*-solaris2.1[1-9]*)
28033 case "$target" in
28034 i?86-*-* | x86_64-*-*)
28035 if echo "$ld_ver" | grep GNU > /dev/null; then
28036 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28037 gcc_cv_ld_as_needed=no
28040 esac
28042 *-*-solaris2*)
28043 gcc_cv_ld_as_needed=no
28045 esac
28048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28049 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28050 if test x"$gcc_cv_ld_as_needed" = xyes; then
28052 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28055 cat >>confdefs.h <<_ACEOF
28056 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28057 _ACEOF
28060 cat >>confdefs.h <<_ACEOF
28061 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28062 _ACEOF
28066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28067 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28068 saved_LDFLAGS="$LDFLAGS"
28069 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
28070 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28072 /* end confdefs.h. */
28073 int main(void) {return 0;}
28074 _ACEOF
28075 if ac_fn_cxx_try_link "$LINENO"; then :
28076 gcc_cv_ld_clearcap=yes; break
28077 else
28078 gcc_cv_ld_clearcap=no
28080 rm -f core conftest.err conftest.$ac_objext \
28081 conftest$ac_exeext conftest.$ac_ext
28082 done
28083 LDFLAGS="$saved_LDFLAGS"
28084 if test "x$gcc_cv_ld_clearcap" = xyes; then
28086 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28088 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28092 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28094 case "$target:$tm_file" in
28095 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
28096 case "$target" in
28097 *le-*-linux*)
28098 emul_name="-melf64lppc"
28100 *-*-linux*)
28101 emul_name="-melf64ppc"
28103 *-*-freebsd*)
28104 emul_name="-melf64ppc_fbsd"
28106 esac
28107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28108 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28109 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28110 $as_echo_n "(cached) " >&6
28111 else
28112 gcc_cv_ld_no_dot_syms=no
28113 if test x"$ld_is_gold" = xyes; then
28114 gcc_cv_ld_no_dot_syms=yes
28115 elif test $in_tree_ld = yes ; then
28116 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
28117 gcc_cv_ld_no_dot_syms=yes
28119 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28120 cat > conftest1.s <<EOF
28121 .text
28122 bl .foo
28124 cat > conftest2.s <<EOF
28125 .section ".opd","aw"
28126 .align 3
28127 .globl foo
28128 .type foo,@function
28129 foo:
28130 .quad .LEfoo,.TOC.@tocbase,0
28131 .text
28132 .LEfoo:
28134 .size foo,.-.LEfoo
28136 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
28137 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
28138 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
28139 gcc_cv_ld_no_dot_syms=yes
28141 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28146 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28147 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
28149 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28154 $as_echo_n "checking linker large toc support... " >&6; }
28155 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28156 $as_echo_n "(cached) " >&6
28157 else
28158 gcc_cv_ld_large_toc=no
28159 if test x"$ld_is_gold" = xyes; then
28160 gcc_cv_ld_large_toc=yes
28161 elif test $in_tree_ld = yes ; then
28162 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
28163 gcc_cv_ld_large_toc=yes
28165 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
28166 cat > conftest.s <<EOF
28167 .section ".tbss","awT",@nobits
28168 .align 3
28169 ie0: .space 8
28170 .global _start
28171 .text
28172 _start:
28173 addis 9,13,ie0@got@tprel@ha
28174 ld 9,ie0@got@tprel@l(9)
28176 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28177 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
28178 gcc_cv_ld_large_toc=yes
28180 rm -f conftest conftest.o conftest.s
28184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28185 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28186 if test x"$gcc_cv_ld_large_toc" = xyes; then
28188 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28193 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28194 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28195 $as_echo_n "(cached) " >&6
28196 else
28197 if test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_nm != x; then
28198 cat > conftest.s <<EOF
28199 .global _start
28200 .text
28201 _start:
28202 addis 9,2,x@got@ha
28203 .section .data.rel.ro,"aw",@progbits
28204 .p2align 16
28205 .space 32768
28206 x: .quad .TOC.
28208 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
28209 && $gcc_cv_ld $emul_name -z norelro -o conftest conftest.o > /dev/null 2>&1; then
28210 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)) }'`
28212 rm -f conftest conftest.o conftest.s
28216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28217 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28218 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28220 cat >>confdefs.h <<_ACEOF
28221 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28222 _ACEOF
28226 esac
28228 case "$target" in
28229 *-*-aix*)
28230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28231 $as_echo_n "checking linker large toc support... " >&6; }
28232 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28233 $as_echo_n "(cached) " >&6
28234 else
28235 gcc_cv_ld_large_toc=no
28236 if test x$gcc_cv_as != x ; then
28237 cat > conftest.s <<EOF
28238 .toc
28239 LC..1:
28240 .tc a[TC],a[RW]
28241 .extern a[RW]
28242 .csect .text[PR]
28243 .largetoctest:
28244 addis 9,LC..1@u(2)
28245 ld 3,LC..1@l(9)
28247 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
28248 gcc_cv_ld_large_toc=yes
28250 rm -f conftest conftest.o conftest.s
28254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28255 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28256 if test x"$gcc_cv_ld_large_toc" = xyes; then
28258 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28262 esac
28264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28265 $as_echo_n "checking linker --build-id support... " >&6; }
28266 if test "${gcc_cv_ld_buildid+set}" = set; then :
28267 $as_echo_n "(cached) " >&6
28268 else
28269 gcc_cv_ld_buildid=no
28270 if test $in_tree_ld = yes ; then
28271 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28272 "$gcc_cv_gld_minor_version" -ge 18 -o \
28273 "$gcc_cv_gld_major_version" -gt 2 \
28274 && test $in_tree_ld_is_elf = yes; then
28275 gcc_cv_ld_buildid=yes
28277 elif test x$gcc_cv_ld != x; then
28278 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
28279 gcc_cv_ld_buildid=yes
28283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28284 $as_echo "$gcc_cv_ld_buildid" >&6; }
28285 if test x"$gcc_cv_ld_buildid" = xyes; then
28287 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28291 # Check whether --enable-linker-build-id was given.
28292 if test "${enable_linker_build_id+set}" = set; then :
28293 enableval=$enable_linker_build_id;
28294 else
28295 enable_linker_build_id=no
28299 if test x"$enable_linker_build_id" = xyes; then
28300 if test x"$gcc_cv_ld_buildid" = xyes; then
28302 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28304 else
28305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28306 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28310 # In binutils 2.21, GNU ld gained support for new emulations fully
28311 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28313 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28314 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28315 $as_echo_n "(cached) " >&6
28316 else
28317 gcc_cv_ld_sol2_emulation=no
28318 if test $in_tree_ld = yes ; then
28319 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28320 "$gcc_cv_gld_minor_version" -ge 21 -o \
28321 "$gcc_cv_gld_major_version" -gt 2 \
28322 && test $in_tree_ld_is_elf = yes; then
28323 gcc_cv_ld_sol2_emulation=yes
28325 elif test x$gcc_cv_ld != x; then
28326 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
28327 grep _sol2 > /dev/null; then
28328 gcc_cv_ld_sol2_emulation=yes
28332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28333 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28334 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
28336 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28341 $as_echo_n "checking linker --sysroot support... " >&6; }
28342 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28343 $as_echo_n "(cached) " >&6
28344 else
28345 gcc_cv_ld_sysroot=no
28346 if test $in_tree_ld = yes ; then
28347 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
28348 gcc_cv_ld_sysroot=yes
28350 elif test x$gcc_cv_ld != x; then
28351 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
28352 gcc_cv_ld_sysroot=yes
28356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28357 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28358 if test x"$gcc_cv_ld_sysroot" = xyes; then
28360 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28364 case $target in
28365 *-*-solaris2*)
28366 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28368 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28369 if test "${gcc_cv_solaris_crts+set}" = set; then :
28370 $as_echo_n "(cached) " >&6
28371 else
28372 gcc_cv_solaris_crts=no
28373 if test x$host != x$target; then
28374 if test "x$with_sysroot" = xyes; then
28375 target_sysroot="${test_exec_prefix}/${target_noncanonical}/sys-root"
28376 else
28377 target_sysroot="${with_sysroot}"
28380 target_libdir="$target_sysroot/usr/lib"
28381 # At the time they were added, gcrt1.o became a symlink for backwards
28382 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28383 case $target in
28384 i?86-*-solaris2* | x86_64-*-solaris2*)
28385 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts=yes; fi
28387 sparc*-*-solaris2*)
28388 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts=yes; fi
28390 esac
28392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28393 $as_echo "$gcc_cv_solaris_crts" >&6; }
28395 esac
28396 if test x$gcc_cv_solaris_crts = xyes; then
28398 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28402 # Test for stack protector support in target C library.
28403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28404 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28405 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28406 $as_echo_n "(cached) " >&6
28407 else
28408 gcc_cv_libc_provides_ssp=no
28409 case "$target" in
28410 *-*-musl*)
28411 # All versions of musl provide stack protector
28412 gcc_cv_libc_provides_ssp=yes;;
28413 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
28414 # glibc 2.4 and later provides __stack_chk_fail and
28415 # either __stack_chk_guard, or TLS access to stack guard canary.
28417 if test $glibc_version_major -gt 2 \
28418 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28419 gcc_cv_libc_provides_ssp=yes
28420 else
28422 if test -f $target_header_dir/features.h \
28423 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28424 $target_header_dir/features.h > /dev/null; then
28425 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28426 $target_header_dir/features.h > /dev/null && \
28427 test -f $target_header_dir/bits/uClibc_config.h && \
28428 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28429 $target_header_dir/bits/uClibc_config.h > /dev/null; then
28430 gcc_cv_libc_provides_ssp=yes
28432 # all versions of Bionic support stack protector
28433 elif test -f $target_header_dir/sys/cdefs.h \
28434 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28435 $target_header_dir/sys/cdefs.h > /dev/null; then
28436 gcc_cv_libc_provides_ssp=yes
28440 *-*-gnu*)
28441 # Avoid complicated tests (see
28442 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28443 # simply assert that glibc does provide this, which is true for all
28444 # realistically usable GNU/Hurd configurations.
28445 # All supported versions of musl provide it as well
28446 gcc_cv_libc_provides_ssp=yes;;
28447 *-*-darwin* | *-*-freebsd*)
28448 ac_fn_cxx_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28449 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
28450 gcc_cv_libc_provides_ssp=yes
28451 else
28452 echo "no __stack_chk_fail on this target"
28456 *) gcc_cv_libc_provides_ssp=no ;;
28457 esac
28459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28460 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28462 if test x$gcc_cv_libc_provides_ssp = xyes; then
28464 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28468 # Check whether --enable-default-ssp was given.
28469 # Check whether --enable-default-ssp was given.
28470 if test "${enable_default_ssp+set}" = set; then :
28471 enableval=$enable_default_ssp;
28472 if test x$gcc_cv_libc_provides_ssp = xyes; then
28473 case "$target" in
28474 ia64*-*-*) enable_default_ssp=no ;;
28475 *) enable_default_ssp=$enableval ;;
28476 esac
28477 else
28478 enable_default_ssp=no
28480 else
28481 enable_default_ssp=no
28484 if test x$enable_default_ssp = xyes ; then
28486 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28491 # Test for <sys/sdt.h> on the target.
28493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28494 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28495 have_sys_sdt_h=no
28496 if test -f $target_header_dir/sys/sdt.h; then
28497 have_sys_sdt_h=yes
28499 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28503 $as_echo "$have_sys_sdt_h" >&6; }
28505 # Check if TFmode long double should be used by default or not.
28506 # Some glibc targets used DFmode long double, but with glibc 2.4
28507 # and later they can use TFmode.
28508 case "$target" in
28509 powerpc*-*-linux* | \
28510 sparc*-*-linux* | \
28511 s390*-*-linux* | \
28512 alpha*-*-linux*)
28514 # Check whether --with-long-double-128 was given.
28515 if test "${with_long_double_128+set}" = set; then :
28516 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
28517 else
28519 if test $glibc_version_major -gt 2 \
28520 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28521 gcc_cv_target_ldbl128=yes
28522 else
28524 gcc_cv_target_ldbl128=no
28525 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28526 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
28527 && gcc_cv_target_ldbl128=yes
28533 esac
28534 if test x$gcc_cv_target_ldbl128 = xyes; then
28536 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28540 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
28541 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
28542 gcc_cv_libc_provides_hwcap_in_tcb=no
28543 case "$target" in
28544 powerpc*-*-linux*)
28546 if test $glibc_version_major -gt 2 \
28547 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
28548 gcc_cv_libc_provides_hwcap_in_tcb=yes
28551 esac
28552 if test x$gcc_cv_libc_provides_hwcap_in_tcb = xyes; then
28554 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
28558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28559 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28560 gcc_cv_target_dl_iterate_phdr=unknown
28561 case "$target" in
28562 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
28563 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
28564 # libdl there, both complicating its use and breaking compatibility
28565 # between Solaris 10 updates.
28566 *-*-solaris2.1[1-9]*)
28567 # <link.h> needs both a dl_iterate_phdr declaration and support for
28568 # compilation with largefile support.
28569 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
28570 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
28571 gcc_cv_target_dl_iterate_phdr=yes
28572 else
28573 gcc_cv_target_dl_iterate_phdr=no
28576 *-*-dragonfly* | *-*-freebsd*)
28577 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
28578 gcc_cv_target_dl_iterate_phdr=yes
28579 else
28580 gcc_cv_target_dl_iterate_phdr=no
28583 *-linux-musl*)
28584 gcc_cv_target_dl_iterate_phdr=yes
28586 esac
28588 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
28590 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28594 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28596 # We no longer support different GC mechanisms. Emit an error if
28597 # the user configures with --with-gc.
28599 # Check whether --with-gc was given.
28600 if test "${with_gc+set}" = set; then :
28601 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28605 # Libraries to use on the host. This will normally be set by the top
28606 # level Makefile. Here we simply capture the value for our Makefile.
28607 if test -z "${HOST_LIBS+set}"; then
28608 HOST_LIBS=
28612 # Use the system's zlib library.
28614 # Use the system's zlib library.
28615 zlibdir="-L\$(top_builddir)/../zlib"
28616 zlibinc="-I\$(top_srcdir)/../zlib"
28618 # Check whether --with-system-zlib was given.
28619 if test "${with_system_zlib+set}" = set; then :
28620 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
28621 zlibdir=
28622 zlibinc=
28632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28633 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28634 # Check whether --enable-maintainer-mode was given.
28635 if test "${enable_maintainer_mode+set}" = set; then :
28636 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
28637 else
28638 maintainer_mode=no
28642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28643 $as_echo "$maintainer_mode" >&6; }
28645 if test "$maintainer_mode" = "yes"; then
28646 MAINT=''
28647 else
28648 MAINT='#'
28652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28653 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28654 # Check whether --enable-link-mutex was given.
28655 if test "${enable_link_mutex+set}" = set; then :
28656 enableval=$enable_link_mutex; do_link_mutex=$enableval
28657 else
28658 do_link_mutex=no
28661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28662 $as_echo "$do_link_mutex" >&6; }
28664 if test "$do_link_mutex" = "yes"; then
28665 DO_LINK_MUTEX=true
28666 else
28667 DO_LINK_MUTEX=false
28671 # --------------
28672 # Language hooks
28673 # --------------
28675 # Make empty files to contain the specs and options for each language.
28676 # Then add #include lines to for a compiler that has specs and/or options.
28678 subdirs=
28679 lang_opt_files=
28680 lang_specs_files=
28681 lang_tree_files=
28682 # These (without "all_") are set in each config-lang.in.
28683 # `language' must be a single word so is spelled singularly.
28684 all_languages=
28685 all_compilers=
28686 all_outputs='Makefile'
28687 # List of language makefile fragments.
28688 all_lang_makefrags=
28689 # Additional files for gengtype
28690 all_gtfiles="$target_gtfiles"
28692 # These are the languages that are set in --enable-languages,
28693 # and are available in the GCC tree.
28694 all_selected_languages=
28696 # Add the language fragments.
28697 # Languages are added via two mechanisms. Some information must be
28698 # recorded in makefile variables, these are defined in config-lang.in.
28699 # We accumulate them and plug them into the main Makefile.
28700 # The other mechanism is a set of hooks for each of the main targets
28701 # like `clean', `install', etc.
28703 language_hooks="Make-hooks"
28705 for lang in ${srcdir}/*/config-lang.in
28707 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28709 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28710 if test "x$lang_alias" = x
28711 then
28712 echo "$lang doesn't set \$language." 1>&2
28713 exit 1
28715 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28716 subdirs="$subdirs $subdir"
28718 # $gcc_subdir is where the gcc integration files are to be found
28719 # for a language, both for internal compiler purposes (compiler
28720 # sources implementing front-end to GCC tree converters), and for
28721 # build infrastructure purposes (Make-lang.in, etc.)
28723 # This will be <subdir> (relative to $srcdir) if a line like
28724 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28725 # is found in <langdir>/config-lang.in, and will remain <langdir>
28726 # otherwise.
28728 # Except for the language alias (fetched above), the regular
28729 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28730 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28731 # only this and the language alias.
28733 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28734 if [ "$gcc_subdir" = "" ]; then
28735 gcc_subdir="$subdir"
28738 case ",$enable_languages," in
28739 *,$lang_alias,*)
28740 all_selected_languages="$all_selected_languages $lang_alias"
28741 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
28742 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28745 esac
28747 language=
28748 boot_language=
28749 compilers=
28750 outputs=
28751 gtfiles=
28752 subdir_requires=
28753 . ${srcdir}/$gcc_subdir/config-lang.in
28754 if test "x$language" = x
28755 then
28756 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28757 exit 1
28760 ok=:
28761 case ",$enable_languages," in
28762 *,$lang_alias,*) ;;
28764 for i in $subdir_requires; do
28765 test -f "${srcdir}/$i/config-lang.in" && continue
28766 ok=false
28767 break
28768 done
28770 esac
28771 $ok || continue
28773 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28774 if test -f $srcdir/$gcc_subdir/lang.opt; then
28775 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28776 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28778 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
28779 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28781 all_languages="$all_languages $language"
28782 all_compilers="$all_compilers $compilers"
28783 all_outputs="$all_outputs $outputs"
28784 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
28785 case ",$enable_languages," in
28786 *,lto,*)
28788 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28790 enable_lto=yes
28793 *) ;;
28794 esac
28795 done
28797 check_languages=
28798 for language in $all_selected_languages
28800 check_languages="$check_languages check-$language"
28801 done
28803 # We link each language in with a set of hooks, reached indirectly via
28804 # lang.${target}. Only do so for selected languages.
28806 rm -f Make-hooks
28807 touch Make-hooks
28808 target_list="all.cross start.encap rest.encap tags \
28809 install-common install-man install-info install-pdf install-html dvi \
28810 pdf html uninstall info man srcextra srcman srcinfo \
28811 mostlyclean clean distclean maintainer-clean install-plugin"
28813 for t in $target_list
28816 for lang in $all_selected_languages
28818 x="$x $lang.$t"
28819 done
28820 echo "lang.$t: $x" >> Make-hooks
28821 done
28823 # --------
28824 # Option include files
28825 # --------
28827 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
28828 option_includes="option-includes.mk"
28831 # --------
28832 # UNSORTED
28833 # --------
28835 # Create .gdbinit.
28837 echo "dir ." > .gdbinit
28838 echo "dir ${srcdir}" >> .gdbinit
28839 if test x$gdb_needs_out_file_path = xyes
28840 then
28841 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28843 if test "x$subdirs" != x; then
28844 for s in $subdirs
28846 echo "dir ${srcdir}/$s" >> .gdbinit
28847 done
28849 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28850 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
28852 # Put a breakpoint on __asan_report_error to help with debugging buffer
28853 # overflow.
28854 case "$CFLAGS" in
28855 *-fsanitize=address*)
28856 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28858 esac
28860 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28864 # Find a directory in which to install a shared libgcc.
28866 # Check whether --enable-version-specific-runtime-libs was given.
28867 if test "${enable_version_specific_runtime_libs+set}" = set; then :
28868 enableval=$enable_version_specific_runtime_libs;
28872 # Substitute configuration variables
28935 # Echo link setup.
28936 if test x${build} = x${host} ; then
28937 if test x${host} = x${target} ; then
28938 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28939 else
28940 echo "Links are now set up to build a cross-compiler" 1>&2
28941 echo " from ${host} to ${target}." 1>&2
28943 else
28944 if test x${host} = x${target} ; then
28945 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28946 echo " for ${target}." 1>&2
28947 else
28948 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28949 echo " from ${host} to ${target}." 1>&2
28958 if test "x${ISLLIBS}" != "x" ; then
28960 $as_echo "#define HAVE_isl 1" >>confdefs.h
28964 # Check whether isl_options_set_schedule_serialize_sccs is available;
28965 # it's new in isl 0.15.
28966 if test "x${ISLLIBS}" != "x" ; then
28967 saved_CXXFLAGS="$CXXFLAGS"
28968 CXXFLAGS="$CXXFLAGS $ISLINC $GMPINC"
28969 saved_LIBS="$LIBS"
28970 LIBS="$LIBS $ISLLIBS $GMPLIBS"
28972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
28973 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
28974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28975 /* end confdefs.h. */
28976 #include <isl/schedule.h>
28978 main ()
28980 isl_options_set_schedule_serialize_sccs (NULL, 0);
28982 return 0;
28984 _ACEOF
28985 if ac_fn_cxx_try_link "$LINENO"; then :
28986 ac_has_isl_options_set_schedule_serialize_sccs=yes
28987 else
28988 ac_has_isl_options_set_schedule_serialize_sccs=no
28990 rm -f core conftest.err conftest.$ac_objext \
28991 conftest$ac_exeext conftest.$ac_ext
28992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
28993 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
28995 LIBS="$saved_LIBS"
28996 CXXFLAGS="$saved_CXXFLAGS"
28998 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
29000 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
29005 # Check for plugin support
29006 # Check whether --enable-plugin was given.
29007 if test "${enable_plugin+set}" = set; then :
29008 enableval=$enable_plugin; enable_plugin=$enableval
29009 else
29010 enable_plugin=yes; default_plugin=yes
29014 pluginlibs=
29016 case "${host}" in
29017 *-*-darwin*)
29018 if test x$build = x$host; then
29019 export_sym_check="nm${exeext} -g"
29020 elif test x$host = x$target; then
29021 export_sym_check="$gcc_cv_nm -g"
29022 else
29023 export_sym_check=
29027 if test x$build = x$host; then
29028 export_sym_check="objdump${exeext} -T"
29029 elif test x$host = x$target; then
29030 export_sym_check="$gcc_cv_objdump -T"
29031 else
29032 export_sym_check=
29035 esac
29037 if test x"$enable_plugin" = x"yes"; then
29039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29040 $as_echo_n "checking for exported symbols... " >&6; }
29041 if test "x$export_sym_check" != x; then
29042 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29043 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29044 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29045 : # No need to use a flag
29046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29047 $as_echo "yes" >&6; }
29048 else
29049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29050 $as_echo "yes" >&6; }
29051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29052 $as_echo_n "checking for -rdynamic... " >&6; }
29053 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
29054 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
29055 plugin_rdynamic=yes
29056 pluginlibs="-rdynamic"
29057 else
29058 plugin_rdynamic=no
29059 enable_plugin=no
29061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29062 $as_echo "$plugin_rdynamic" >&6; }
29064 else
29065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29066 $as_echo "unable to check" >&6; }
29069 # Check -ldl
29070 saved_LIBS="$LIBS"
29071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29072 $as_echo_n "checking for library containing dlopen... " >&6; }
29073 if test "${ac_cv_search_dlopen+set}" = set; then :
29074 $as_echo_n "(cached) " >&6
29075 else
29076 ac_func_search_save_LIBS=$LIBS
29077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29078 /* end confdefs.h. */
29080 /* Override any GCC internal prototype to avoid an error.
29081 Use char because int might match the return type of a GCC
29082 builtin and then its argument prototype would still apply. */
29083 #ifdef __cplusplus
29084 extern "C"
29085 #endif
29086 char dlopen ();
29088 main ()
29090 return dlopen ();
29092 return 0;
29094 _ACEOF
29095 for ac_lib in '' dl; do
29096 if test -z "$ac_lib"; then
29097 ac_res="none required"
29098 else
29099 ac_res=-l$ac_lib
29100 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29102 if ac_fn_cxx_try_link "$LINENO"; then :
29103 ac_cv_search_dlopen=$ac_res
29105 rm -f core conftest.err conftest.$ac_objext \
29106 conftest$ac_exeext
29107 if test "${ac_cv_search_dlopen+set}" = set; then :
29108 break
29110 done
29111 if test "${ac_cv_search_dlopen+set}" = set; then :
29113 else
29114 ac_cv_search_dlopen=no
29116 rm conftest.$ac_ext
29117 LIBS=$ac_func_search_save_LIBS
29119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29120 $as_echo "$ac_cv_search_dlopen" >&6; }
29121 ac_res=$ac_cv_search_dlopen
29122 if test "$ac_res" != no; then :
29123 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29127 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
29128 pluginlibs="$pluginlibs -ldl"
29130 LIBS="$saved_LIBS"
29132 # Check that we can build shared objects with -fPIC -shared
29133 saved_LDFLAGS="$LDFLAGS"
29134 saved_CFLAGS="$CFLAGS"
29135 case "${host}" in
29136 *-*-darwin*)
29137 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29138 CFLAGS="$CFLAGS -fPIC"
29139 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
29142 CFLAGS="$CFLAGS -fPIC"
29143 LDFLAGS="$LDFLAGS -fPIC -shared"
29145 esac
29146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29147 $as_echo_n "checking for -fPIC -shared... " >&6; }
29148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29149 /* end confdefs.h. */
29150 extern int X;
29152 main ()
29154 return X == 0;
29156 return 0;
29158 _ACEOF
29159 if ac_fn_cxx_try_link "$LINENO"; then :
29160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29161 $as_echo "yes" >&6; }; have_pic_shared=yes
29162 else
29163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29164 $as_echo "no" >&6; }; have_pic_shared=no
29166 rm -f core conftest.err conftest.$ac_objext \
29167 conftest$ac_exeext conftest.$ac_ext
29168 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
29169 pluginlibs=
29170 enable_plugin=no
29172 LDFLAGS="$saved_LDFLAGS"
29173 CFLAGS="$saved_CFLAGS"
29175 # If plugin support had been requested but not available, fail.
29176 if test x"$enable_plugin" = x"no" ; then
29177 if test x"$default_plugin" != x"yes"; then
29178 as_fn_error "
29179 Building GCC with plugin support requires a host that supports
29180 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29187 if test x"$enable_plugin" = x"yes"; then
29189 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29194 # Enable --enable-host-shared
29195 # Check whether --enable-host-shared was given.
29196 if test "${enable_host_shared+set}" = set; then :
29197 enableval=$enable_host_shared; PICFLAG=-fPIC
29198 else
29199 PICFLAG=
29206 # Check whether --enable-libquadmath-support was given.
29207 if test "${enable_libquadmath_support+set}" = set; then :
29208 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
29209 else
29210 ENABLE_LIBQUADMATH_SUPPORT=yes
29213 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29215 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29220 # Specify what hash style to use by default.
29222 # Check whether --with-linker-hash-style was given.
29223 if test "${with_linker_hash_style+set}" = set; then :
29224 withval=$with_linker_hash_style; case x"$withval" in
29225 xsysv)
29226 LINKER_HASH_STYLE=sysv
29228 xgnu)
29229 LINKER_HASH_STYLE=gnu
29231 xboth)
29232 LINKER_HASH_STYLE=both
29235 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29237 esac
29238 else
29239 LINKER_HASH_STYLE=''
29242 if test x"${LINKER_HASH_STYLE}" != x; then
29244 cat >>confdefs.h <<_ACEOF
29245 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29246 _ACEOF
29250 # Specify what should be the default of -fdiagnostics-color option.
29252 # Check whether --with-diagnostics-color was given.
29253 if test "${with_diagnostics_color+set}" = set; then :
29254 withval=$with_diagnostics_color; case x"$withval" in
29255 xnever)
29256 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_NO
29258 xauto)
29259 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29261 xauto-if-env)
29262 DIAGNOSTICS_COLOR_DEFAULT=-1
29264 xalways)
29265 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_YES
29268 as_fn_error "$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29270 esac
29271 else
29272 DIAGNOSTICS_COLOR_DEFAULT=DIAGNOSTICS_COLOR_AUTO
29276 cat >>confdefs.h <<_ACEOF
29277 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29278 _ACEOF
29281 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29282 # of jit/jit-playback.c.
29283 cat > gcc-driver-name.h <<EOF
29284 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29287 # Check whether --enable-default-pie was given.
29288 # Check whether --enable-default-pie was given.
29289 if test "${enable_default_pie+set}" = set; then :
29290 enableval=$enable_default_pie; enable_default_pie=$enableval
29291 else
29292 enable_default_pie=no
29295 if test x$enable_default_pie = xyes ; then
29297 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29302 # Check if -fno-PIE works.
29303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29304 $as_echo_n "checking for -fno-PIE option... " >&6; }
29305 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29306 $as_echo_n "(cached) " >&6
29307 else
29308 saved_CXXFLAGS="$CXXFLAGS"
29309 CXXFLAGS="$CXXFLAGS -fno-PIE"
29310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29311 /* end confdefs.h. */
29312 int main(void) {return 0;}
29313 _ACEOF
29314 if ac_fn_cxx_try_compile "$LINENO"; then :
29315 gcc_cv_c_no_fpie=yes
29316 else
29317 gcc_cv_c_no_fpie=no
29319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29320 CXXFLAGS="$saved_CXXFLAGS"
29322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29323 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29324 if test "$gcc_cv_c_no_fpie" = "yes"; then
29325 NO_PIE_CFLAGS="-fno-PIE"
29329 # Check if -no-pie works.
29330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29331 $as_echo_n "checking for -no-pie option... " >&6; }
29332 if test "${gcc_cv_no_pie+set}" = set; then :
29333 $as_echo_n "(cached) " >&6
29334 else
29335 saved_LDFLAGS="$LDFLAGS"
29336 LDFLAGS="$LDFLAGS -no-pie"
29337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29338 /* end confdefs.h. */
29339 int main(void) {return 0;}
29340 _ACEOF
29341 if ac_fn_cxx_try_link "$LINENO"; then :
29342 gcc_cv_no_pie=yes
29343 else
29344 gcc_cv_no_pie=no
29346 rm -f core conftest.err conftest.$ac_objext \
29347 conftest$ac_exeext conftest.$ac_ext
29348 LDFLAGS="$saved_LDFLAGS"
29350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29351 $as_echo "$gcc_cv_no_pie" >&6; }
29352 if test "$gcc_cv_no_pie" = "yes"; then
29353 NO_PIE_FLAG="-no-pie"
29357 # Check linker supports '-z bndplt'
29358 ld_bndplt_support=no
29359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29360 $as_echo_n "checking linker -z bndplt option... " >&6; }
29361 if test x"$ld_is_gold" = xno; then
29362 if test $in_tree_ld = yes ; then
29363 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
29364 ld_bndplt_support=yes
29366 elif test x$gcc_cv_ld != x; then
29367 # Check if linker supports -a bndplt option
29368 if $gcc_cv_ld --help 2>/dev/null | grep -- '-z bndplt' > /dev/null; then
29369 ld_bndplt_support=yes
29373 if test x"$ld_bndplt_support" = xyes; then
29375 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29379 $as_echo "$ld_bndplt_support" >&6; }
29381 # Configure the subdirectories
29382 # AC_CONFIG_SUBDIRS($subdirs)
29384 # Create the Makefile
29385 # and configure language subdirectories
29386 ac_config_files="$ac_config_files $all_outputs"
29389 ac_config_commands="$ac_config_commands default"
29391 cat >confcache <<\_ACEOF
29392 # This file is a shell script that caches the results of configure
29393 # tests run on this system so they can be shared between configure
29394 # scripts and configure runs, see configure's option --config-cache.
29395 # It is not useful on other systems. If it contains results you don't
29396 # want to keep, you may remove or edit it.
29398 # config.status only pays attention to the cache file if you give it
29399 # the --recheck option to rerun configure.
29401 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29402 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29403 # following values.
29405 _ACEOF
29407 # The following way of writing the cache mishandles newlines in values,
29408 # but we know of no workaround that is simple, portable, and efficient.
29409 # So, we kill variables containing newlines.
29410 # Ultrix sh set writes to stderr and can't be redirected directly,
29411 # and sets the high bit in the cache file unless we assign to the vars.
29413 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29414 eval ac_val=\$$ac_var
29415 case $ac_val in #(
29416 *${as_nl}*)
29417 case $ac_var in #(
29418 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29419 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29420 esac
29421 case $ac_var in #(
29422 _ | IFS | as_nl) ;; #(
29423 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29424 *) { eval $ac_var=; unset $ac_var;} ;;
29425 esac ;;
29426 esac
29427 done
29429 (set) 2>&1 |
29430 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29431 *${as_nl}ac_space=\ *)
29432 # `set' does not quote correctly, so add quotes: double-quote
29433 # substitution turns \\\\ into \\, and sed turns \\ into \.
29434 sed -n \
29435 "s/'/'\\\\''/g;
29436 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29437 ;; #(
29439 # `set' quotes correctly as required by POSIX, so do not add quotes.
29440 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29442 esac |
29443 sort
29445 sed '
29446 /^ac_cv_env_/b end
29447 t clear
29448 :clear
29449 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29450 t end
29451 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29452 :end' >>confcache
29453 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29454 if test -w "$cache_file"; then
29455 test "x$cache_file" != "x/dev/null" &&
29456 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29457 $as_echo "$as_me: updating cache $cache_file" >&6;}
29458 cat confcache >$cache_file
29459 else
29460 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29461 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29464 rm -f confcache
29466 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29467 # Let make expand exec_prefix.
29468 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29470 DEFS=-DHAVE_CONFIG_H
29472 ac_libobjs=
29473 ac_ltlibobjs=
29474 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29475 # 1. Remove the extension, and $U if already installed.
29476 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29477 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29478 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29479 # will be set to the directory where LIBOBJS objects are built.
29480 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29481 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29482 done
29483 LIBOBJS=$ac_libobjs
29485 LTLIBOBJS=$ac_ltlibobjs
29490 : ${CONFIG_STATUS=./config.status}
29491 ac_write_fail=0
29492 ac_clean_files_save=$ac_clean_files
29493 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29494 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29495 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29496 as_write_fail=0
29497 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29498 #! $SHELL
29499 # Generated by $as_me.
29500 # Run this file to recreate the current configuration.
29501 # Compiler output produced by configure, useful for debugging
29502 # configure, is in config.log if it exists.
29504 debug=false
29505 ac_cs_recheck=false
29506 ac_cs_silent=false
29508 SHELL=\${CONFIG_SHELL-$SHELL}
29509 export SHELL
29510 _ASEOF
29511 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29512 ## -------------------- ##
29513 ## M4sh Initialization. ##
29514 ## -------------------- ##
29516 # Be more Bourne compatible
29517 DUALCASE=1; export DUALCASE # for MKS sh
29518 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29519 emulate sh
29520 NULLCMD=:
29521 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29522 # is contrary to our usage. Disable this feature.
29523 alias -g '${1+"$@"}'='"$@"'
29524 setopt NO_GLOB_SUBST
29525 else
29526 case `(set -o) 2>/dev/null` in #(
29527 *posix*) :
29528 set -o posix ;; #(
29529 *) :
29531 esac
29535 as_nl='
29537 export as_nl
29538 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29539 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29540 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29541 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29542 # Prefer a ksh shell builtin over an external printf program on Solaris,
29543 # but without wasting forks for bash or zsh.
29544 if test -z "$BASH_VERSION$ZSH_VERSION" \
29545 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29546 as_echo='print -r --'
29547 as_echo_n='print -rn --'
29548 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29549 as_echo='printf %s\n'
29550 as_echo_n='printf %s'
29551 else
29552 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29553 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29554 as_echo_n='/usr/ucb/echo -n'
29555 else
29556 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29557 as_echo_n_body='eval
29558 arg=$1;
29559 case $arg in #(
29560 *"$as_nl"*)
29561 expr "X$arg" : "X\\(.*\\)$as_nl";
29562 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29563 esac;
29564 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29566 export as_echo_n_body
29567 as_echo_n='sh -c $as_echo_n_body as_echo'
29569 export as_echo_body
29570 as_echo='sh -c $as_echo_body as_echo'
29573 # The user is always right.
29574 if test "${PATH_SEPARATOR+set}" != set; then
29575 PATH_SEPARATOR=:
29576 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29577 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29578 PATH_SEPARATOR=';'
29583 # IFS
29584 # We need space, tab and new line, in precisely that order. Quoting is
29585 # there to prevent editors from complaining about space-tab.
29586 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29587 # splitting by setting IFS to empty value.)
29588 IFS=" "" $as_nl"
29590 # Find who we are. Look in the path if we contain no directory separator.
29591 case $0 in #((
29592 *[\\/]* ) as_myself=$0 ;;
29593 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29594 for as_dir in $PATH
29596 IFS=$as_save_IFS
29597 test -z "$as_dir" && as_dir=.
29598 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29599 done
29600 IFS=$as_save_IFS
29603 esac
29604 # We did not find ourselves, most probably we were run as `sh COMMAND'
29605 # in which case we are not to be found in the path.
29606 if test "x$as_myself" = x; then
29607 as_myself=$0
29609 if test ! -f "$as_myself"; then
29610 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29611 exit 1
29614 # Unset variables that we do not need and which cause bugs (e.g. in
29615 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29616 # suppresses any "Segmentation fault" message there. '((' could
29617 # trigger a bug in pdksh 5.2.14.
29618 for as_var in BASH_ENV ENV MAIL MAILPATH
29619 do eval test x\${$as_var+set} = xset \
29620 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29621 done
29622 PS1='$ '
29623 PS2='> '
29624 PS4='+ '
29626 # NLS nuisances.
29627 LC_ALL=C
29628 export LC_ALL
29629 LANGUAGE=C
29630 export LANGUAGE
29632 # CDPATH.
29633 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29636 # as_fn_error ERROR [LINENO LOG_FD]
29637 # ---------------------------------
29638 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29639 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29640 # script with status $?, using 1 if that was 0.
29641 as_fn_error ()
29643 as_status=$?; test $as_status -eq 0 && as_status=1
29644 if test "$3"; then
29645 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29646 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29648 $as_echo "$as_me: error: $1" >&2
29649 as_fn_exit $as_status
29650 } # as_fn_error
29653 # as_fn_set_status STATUS
29654 # -----------------------
29655 # Set $? to STATUS, without forking.
29656 as_fn_set_status ()
29658 return $1
29659 } # as_fn_set_status
29661 # as_fn_exit STATUS
29662 # -----------------
29663 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29664 as_fn_exit ()
29666 set +e
29667 as_fn_set_status $1
29668 exit $1
29669 } # as_fn_exit
29671 # as_fn_unset VAR
29672 # ---------------
29673 # Portably unset VAR.
29674 as_fn_unset ()
29676 { eval $1=; unset $1;}
29678 as_unset=as_fn_unset
29679 # as_fn_append VAR VALUE
29680 # ----------------------
29681 # Append the text in VALUE to the end of the definition contained in VAR. Take
29682 # advantage of any shell optimizations that allow amortized linear growth over
29683 # repeated appends, instead of the typical quadratic growth present in naive
29684 # implementations.
29685 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29686 eval 'as_fn_append ()
29688 eval $1+=\$2
29690 else
29691 as_fn_append ()
29693 eval $1=\$$1\$2
29695 fi # as_fn_append
29697 # as_fn_arith ARG...
29698 # ------------------
29699 # Perform arithmetic evaluation on the ARGs, and store the result in the
29700 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29701 # must be portable across $(()) and expr.
29702 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29703 eval 'as_fn_arith ()
29705 as_val=$(( $* ))
29707 else
29708 as_fn_arith ()
29710 as_val=`expr "$@" || test $? -eq 1`
29712 fi # as_fn_arith
29715 if expr a : '\(a\)' >/dev/null 2>&1 &&
29716 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29717 as_expr=expr
29718 else
29719 as_expr=false
29722 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29723 as_basename=basename
29724 else
29725 as_basename=false
29728 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29729 as_dirname=dirname
29730 else
29731 as_dirname=false
29734 as_me=`$as_basename -- "$0" ||
29735 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29736 X"$0" : 'X\(//\)$' \| \
29737 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29738 $as_echo X/"$0" |
29739 sed '/^.*\/\([^/][^/]*\)\/*$/{
29740 s//\1/
29743 /^X\/\(\/\/\)$/{
29744 s//\1/
29747 /^X\/\(\/\).*/{
29748 s//\1/
29751 s/.*/./; q'`
29753 # Avoid depending upon Character Ranges.
29754 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29755 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29756 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29757 as_cr_digits='0123456789'
29758 as_cr_alnum=$as_cr_Letters$as_cr_digits
29760 ECHO_C= ECHO_N= ECHO_T=
29761 case `echo -n x` in #(((((
29762 -n*)
29763 case `echo 'xy\c'` in
29764 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29765 xy) ECHO_C='\c';;
29766 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29767 ECHO_T=' ';;
29768 esac;;
29770 ECHO_N='-n';;
29771 esac
29773 rm -f conf$$ conf$$.exe conf$$.file
29774 if test -d conf$$.dir; then
29775 rm -f conf$$.dir/conf$$.file
29776 else
29777 rm -f conf$$.dir
29778 mkdir conf$$.dir 2>/dev/null
29780 if (echo >conf$$.file) 2>/dev/null; then
29781 if ln -s conf$$.file conf$$ 2>/dev/null; then
29782 as_ln_s='ln -s'
29783 # ... but there are two gotchas:
29784 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29785 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29786 # In both cases, we have to default to `cp -p'.
29787 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29788 as_ln_s='cp -p'
29789 elif ln conf$$.file conf$$ 2>/dev/null; then
29790 as_ln_s=ln
29791 else
29792 as_ln_s='cp -p'
29794 else
29795 as_ln_s='cp -p'
29797 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29798 rmdir conf$$.dir 2>/dev/null
29801 # as_fn_mkdir_p
29802 # -------------
29803 # Create "$as_dir" as a directory, including parents if necessary.
29804 as_fn_mkdir_p ()
29807 case $as_dir in #(
29808 -*) as_dir=./$as_dir;;
29809 esac
29810 test -d "$as_dir" || eval $as_mkdir_p || {
29811 as_dirs=
29812 while :; do
29813 case $as_dir in #(
29814 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29815 *) as_qdir=$as_dir;;
29816 esac
29817 as_dirs="'$as_qdir' $as_dirs"
29818 as_dir=`$as_dirname -- "$as_dir" ||
29819 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29820 X"$as_dir" : 'X\(//\)[^/]' \| \
29821 X"$as_dir" : 'X\(//\)$' \| \
29822 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29823 $as_echo X"$as_dir" |
29824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29825 s//\1/
29828 /^X\(\/\/\)[^/].*/{
29829 s//\1/
29832 /^X\(\/\/\)$/{
29833 s//\1/
29836 /^X\(\/\).*/{
29837 s//\1/
29840 s/.*/./; q'`
29841 test -d "$as_dir" && break
29842 done
29843 test -z "$as_dirs" || eval "mkdir $as_dirs"
29844 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29847 } # as_fn_mkdir_p
29848 if mkdir -p . 2>/dev/null; then
29849 as_mkdir_p='mkdir -p "$as_dir"'
29850 else
29851 test -d ./-p && rmdir ./-p
29852 as_mkdir_p=false
29855 if test -x / >/dev/null 2>&1; then
29856 as_test_x='test -x'
29857 else
29858 if ls -dL / >/dev/null 2>&1; then
29859 as_ls_L_option=L
29860 else
29861 as_ls_L_option=
29863 as_test_x='
29864 eval sh -c '\''
29865 if test -d "$1"; then
29866 test -d "$1/.";
29867 else
29868 case $1 in #(
29869 -*)set "./$1";;
29870 esac;
29871 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29872 ???[sx]*):;;*)false;;esac;fi
29873 '\'' sh
29876 as_executable_p=$as_test_x
29878 # Sed expression to map a string onto a valid CPP name.
29879 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29881 # Sed expression to map a string onto a valid variable name.
29882 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29885 exec 6>&1
29886 ## ----------------------------------- ##
29887 ## Main body of $CONFIG_STATUS script. ##
29888 ## ----------------------------------- ##
29889 _ASEOF
29890 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29893 # Save the log message, to keep $0 and so on meaningful, and to
29894 # report actual input values of CONFIG_FILES etc. instead of their
29895 # values after options handling.
29896 ac_log="
29897 This file was extended by $as_me, which was
29898 generated by GNU Autoconf 2.64. Invocation command line was
29900 CONFIG_FILES = $CONFIG_FILES
29901 CONFIG_HEADERS = $CONFIG_HEADERS
29902 CONFIG_LINKS = $CONFIG_LINKS
29903 CONFIG_COMMANDS = $CONFIG_COMMANDS
29904 $ $0 $@
29906 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29909 _ACEOF
29911 case $ac_config_files in *"
29912 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29913 esac
29915 case $ac_config_headers in *"
29916 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29917 esac
29920 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29921 # Files that config.status was made for.
29922 config_files="$ac_config_files"
29923 config_headers="$ac_config_headers"
29924 config_links="$ac_config_links"
29925 config_commands="$ac_config_commands"
29927 _ACEOF
29929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29930 ac_cs_usage="\
29931 \`$as_me' instantiates files and other configuration actions
29932 from templates according to the current configuration. Unless the files
29933 and actions are specified as TAGs, all are instantiated by default.
29935 Usage: $0 [OPTION]... [TAG]...
29937 -h, --help print this help, then exit
29938 -V, --version print version number and configuration settings, then exit
29939 -q, --quiet, --silent
29940 do not print progress messages
29941 -d, --debug don't remove temporary files
29942 --recheck update $as_me by reconfiguring in the same conditions
29943 --file=FILE[:TEMPLATE]
29944 instantiate the configuration file FILE
29945 --header=FILE[:TEMPLATE]
29946 instantiate the configuration header FILE
29948 Configuration files:
29949 $config_files
29951 Configuration headers:
29952 $config_headers
29954 Configuration links:
29955 $config_links
29957 Configuration commands:
29958 $config_commands
29960 Report bugs to the package provider."
29962 _ACEOF
29963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29964 ac_cs_version="\\
29965 config.status
29966 configured by $0, generated by GNU Autoconf 2.64,
29967 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29969 Copyright (C) 2009 Free Software Foundation, Inc.
29970 This config.status script is free software; the Free Software Foundation
29971 gives unlimited permission to copy, distribute and modify it."
29973 ac_pwd='$ac_pwd'
29974 srcdir='$srcdir'
29975 AWK='$AWK'
29976 test -n "\$AWK" || AWK=awk
29977 _ACEOF
29979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29980 # The default lists apply if the user does not specify any file.
29981 ac_need_defaults=:
29982 while test $# != 0
29984 case $1 in
29985 --*=*)
29986 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29987 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29988 ac_shift=:
29991 ac_option=$1
29992 ac_optarg=$2
29993 ac_shift=shift
29995 esac
29997 case $ac_option in
29998 # Handling of the options.
29999 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30000 ac_cs_recheck=: ;;
30001 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30002 $as_echo "$ac_cs_version"; exit ;;
30003 --debug | --debu | --deb | --de | --d | -d )
30004 debug=: ;;
30005 --file | --fil | --fi | --f )
30006 $ac_shift
30007 case $ac_optarg in
30008 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30009 esac
30010 as_fn_append CONFIG_FILES " '$ac_optarg'"
30011 ac_need_defaults=false;;
30012 --header | --heade | --head | --hea )
30013 $ac_shift
30014 case $ac_optarg in
30015 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30016 esac
30017 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30018 ac_need_defaults=false;;
30019 --he | --h)
30020 # Conflict between --help and --header
30021 as_fn_error "ambiguous option: \`$1'
30022 Try \`$0 --help' for more information.";;
30023 --help | --hel | -h )
30024 $as_echo "$ac_cs_usage"; exit ;;
30025 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30026 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30027 ac_cs_silent=: ;;
30029 # This is an error.
30030 -*) as_fn_error "unrecognized option: \`$1'
30031 Try \`$0 --help' for more information." ;;
30033 *) as_fn_append ac_config_targets " $1"
30034 ac_need_defaults=false ;;
30036 esac
30037 shift
30038 done
30040 ac_configure_extra_args=
30042 if $ac_cs_silent; then
30043 exec 6>/dev/null
30044 ac_configure_extra_args="$ac_configure_extra_args --silent"
30047 _ACEOF
30048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30049 if \$ac_cs_recheck; then
30050 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30051 shift
30052 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30053 CONFIG_SHELL='$SHELL'
30054 export CONFIG_SHELL
30055 exec "\$@"
30058 _ACEOF
30059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30060 exec 5>>config.log
30062 echo
30063 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30064 ## Running $as_me. ##
30065 _ASBOX
30066 $as_echo "$ac_log"
30067 } >&5
30069 _ACEOF
30070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30072 # INIT-COMMANDS
30074 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30075 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30076 subdirs='$subdirs'
30078 _ACEOF
30080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30082 # Handling of arguments.
30083 for ac_config_target in $ac_config_targets
30085 case $ac_config_target in
30086 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
30087 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
30088 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
30089 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
30090 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30091 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
30092 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30093 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
30094 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30096 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30097 esac
30098 done
30101 # If the user did not use the arguments to specify the items to instantiate,
30102 # then the envvar interface is used. Set only those that are not.
30103 # We use the long form for the default assignment because of an extremely
30104 # bizarre bug on SunOS 4.1.3.
30105 if $ac_need_defaults; then
30106 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30107 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30108 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30109 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30112 # Have a temporary directory for convenience. Make it in the build tree
30113 # simply because there is no reason against having it here, and in addition,
30114 # creating and moving files from /tmp can sometimes cause problems.
30115 # Hook for its removal unless debugging.
30116 # Note that there is a small window in which the directory will not be cleaned:
30117 # after its creation but before its name has been assigned to `$tmp'.
30118 $debug ||
30120 tmp=
30121 trap 'exit_status=$?
30122 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30124 trap 'as_fn_exit 1' 1 2 13 15
30126 # Create a (secure) tmp directory for tmp files.
30129 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30130 test -n "$tmp" && test -d "$tmp"
30131 } ||
30133 tmp=./conf$$-$RANDOM
30134 (umask 077 && mkdir "$tmp")
30135 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30137 # Set up the scripts for CONFIG_FILES section.
30138 # No need to generate them if there are no CONFIG_FILES.
30139 # This happens for instance with `./config.status config.h'.
30140 if test -n "$CONFIG_FILES"; then
30142 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30143 ac_cs_awk_getline=:
30144 ac_cs_awk_pipe_init=
30145 ac_cs_awk_read_file='
30146 while ((getline aline < (F[key])) > 0)
30147 print(aline)
30148 close(F[key])'
30149 ac_cs_awk_pipe_fini=
30150 else
30151 ac_cs_awk_getline=false
30152 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30153 ac_cs_awk_read_file='
30154 print "|#_!!_#|"
30155 print "cat " F[key] " &&"
30156 '$ac_cs_awk_pipe_init
30157 # The final `:' finishes the AND list.
30158 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30160 ac_cr=`echo X | tr X '\015'`
30161 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30162 # But we know of no other shell where ac_cr would be empty at this
30163 # point, so we can use a bashism as a fallback.
30164 if test "x$ac_cr" = x; then
30165 eval ac_cr=\$\'\\r\'
30167 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30168 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30169 ac_cs_awk_cr='\r'
30170 else
30171 ac_cs_awk_cr=$ac_cr
30174 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30175 _ACEOF
30177 # Create commands to substitute file output variables.
30179 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30180 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30181 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30182 echo "_ACAWK" &&
30183 echo "_ACEOF"
30184 } >conf$$files.sh &&
30185 . ./conf$$files.sh ||
30186 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30187 rm -f conf$$files.sh
30190 echo "cat >conf$$subs.awk <<_ACEOF" &&
30191 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30192 echo "_ACEOF"
30193 } >conf$$subs.sh ||
30194 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30195 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30196 ac_delim='%!_!# '
30197 for ac_last_try in false false false false false :; do
30198 . ./conf$$subs.sh ||
30199 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30201 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30202 if test $ac_delim_n = $ac_delim_num; then
30203 break
30204 elif $ac_last_try; then
30205 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30206 else
30207 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30209 done
30210 rm -f conf$$subs.sh
30212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30213 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30214 _ACEOF
30215 sed -n '
30217 s/^/S["/; s/!.*/"]=/
30220 s/^[^!]*!//
30221 :repl
30222 t repl
30223 s/'"$ac_delim"'$//
30224 t delim
30227 s/\(.\{148\}\).*/\1/
30228 t more1
30229 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30232 b repl
30233 :more1
30234 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30237 s/.\{148\}//
30238 t nl
30239 :delim
30241 s/\(.\{148\}\).*/\1/
30242 t more2
30243 s/["\\]/\\&/g; s/^/"/; s/$/"/
30246 :more2
30247 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30250 s/.\{148\}//
30251 t delim
30252 ' <conf$$subs.awk | sed '
30253 /^[^""]/{
30255 s/\n//
30257 ' >>$CONFIG_STATUS || ac_write_fail=1
30258 rm -f conf$$subs.awk
30259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30260 _ACAWK
30261 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30262 for (key in S) S_is_set[key] = 1
30263 FS = "\a"
30264 \$ac_cs_awk_pipe_init
30267 line = $ 0
30268 nfields = split(line, field, "@")
30269 substed = 0
30270 len = length(field[1])
30271 for (i = 2; i < nfields; i++) {
30272 key = field[i]
30273 keylen = length(key)
30274 if (S_is_set[key]) {
30275 value = S[key]
30276 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30277 len += length(value) + length(field[++i])
30278 substed = 1
30279 } else
30280 len += 1 + keylen
30282 if (nfields == 3 && !substed) {
30283 key = field[2]
30284 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30285 \$ac_cs_awk_read_file
30286 next
30289 print line
30291 \$ac_cs_awk_pipe_fini
30292 _ACAWK
30293 _ACEOF
30294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30295 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30296 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30297 else
30299 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30300 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30301 _ACEOF
30303 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30304 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30305 # trailing colons and then remove the whole line if VPATH becomes empty
30306 # (actually we leave an empty line to preserve line numbers).
30307 if test "x$srcdir" = x.; then
30308 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30309 s/:*\$(srcdir):*/:/
30310 s/:*\${srcdir}:*/:/
30311 s/:*@srcdir@:*/:/
30312 s/^\([^=]*=[ ]*\):*/\1/
30313 s/:*$//
30314 s/^[^=]*=[ ]*$//
30318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30319 fi # test -n "$CONFIG_FILES"
30321 # Set up the scripts for CONFIG_HEADERS section.
30322 # No need to generate them if there are no CONFIG_HEADERS.
30323 # This happens for instance with `./config.status Makefile'.
30324 if test -n "$CONFIG_HEADERS"; then
30325 cat >"$tmp/defines.awk" <<\_ACAWK ||
30326 BEGIN {
30327 _ACEOF
30329 # Transform confdefs.h into an awk script `defines.awk', embedded as
30330 # here-document in config.status, that substitutes the proper values into
30331 # config.h.in to produce config.h.
30333 # Create a delimiter string that does not exist in confdefs.h, to ease
30334 # handling of long lines.
30335 ac_delim='%!_!# '
30336 for ac_last_try in false false :; do
30337 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30338 if test -z "$ac_t"; then
30339 break
30340 elif $ac_last_try; then
30341 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30342 else
30343 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30345 done
30347 # For the awk script, D is an array of macro values keyed by name,
30348 # likewise P contains macro parameters if any. Preserve backslash
30349 # newline sequences.
30351 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30352 sed -n '
30353 s/.\{148\}/&'"$ac_delim"'/g
30354 t rset
30355 :rset
30356 s/^[ ]*#[ ]*define[ ][ ]*/ /
30357 t def
30359 :def
30360 s/\\$//
30361 t bsnl
30362 s/["\\]/\\&/g
30363 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30364 D["\1"]=" \3"/p
30365 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30367 :bsnl
30368 s/["\\]/\\&/g
30369 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30370 D["\1"]=" \3\\\\\\n"\\/p
30371 t cont
30372 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30373 t cont
30375 :cont
30377 s/.\{148\}/&'"$ac_delim"'/g
30378 t clear
30379 :clear
30380 s/\\$//
30381 t bsnlc
30382 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30384 :bsnlc
30385 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30386 b cont
30387 ' <confdefs.h | sed '
30388 s/'"$ac_delim"'/"\\\
30389 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30392 for (key in D) D_is_set[key] = 1
30393 FS = "\a"
30395 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30396 line = \$ 0
30397 split(line, arg, " ")
30398 if (arg[1] == "#") {
30399 defundef = arg[2]
30400 mac1 = arg[3]
30401 } else {
30402 defundef = substr(arg[1], 2)
30403 mac1 = arg[2]
30405 split(mac1, mac2, "(") #)
30406 macro = mac2[1]
30407 prefix = substr(line, 1, index(line, defundef) - 1)
30408 if (D_is_set[macro]) {
30409 # Preserve the white space surrounding the "#".
30410 print prefix "define", macro P[macro] D[macro]
30411 next
30412 } else {
30413 # Replace #undef with comments. This is necessary, for example,
30414 # in the case of _POSIX_SOURCE, which is predefined and required
30415 # on some systems where configure will not decide to define it.
30416 if (defundef == "undef") {
30417 print "/*", prefix defundef, macro, "*/"
30418 next
30422 { print }
30423 _ACAWK
30424 _ACEOF
30425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30426 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30427 fi # test -n "$CONFIG_HEADERS"
30430 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30431 shift
30432 for ac_tag
30434 case $ac_tag in
30435 :[FHLC]) ac_mode=$ac_tag; continue;;
30436 esac
30437 case $ac_mode$ac_tag in
30438 :[FHL]*:*);;
30439 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30440 :[FH]-) ac_tag=-:-;;
30441 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30442 esac
30443 ac_save_IFS=$IFS
30444 IFS=:
30445 set x $ac_tag
30446 IFS=$ac_save_IFS
30447 shift
30448 ac_file=$1
30449 shift
30451 case $ac_mode in
30452 :L) ac_source=$1;;
30453 :[FH])
30454 ac_file_inputs=
30455 for ac_f
30457 case $ac_f in
30458 -) ac_f="$tmp/stdin";;
30459 *) # Look for the file first in the build tree, then in the source tree
30460 # (if the path is not absolute). The absolute path cannot be DOS-style,
30461 # because $ac_f cannot contain `:'.
30462 test -f "$ac_f" ||
30463 case $ac_f in
30464 [\\/$]*) false;;
30465 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30466 esac ||
30467 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30468 esac
30469 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30470 as_fn_append ac_file_inputs " '$ac_f'"
30471 done
30473 # Let's still pretend it is `configure' which instantiates (i.e., don't
30474 # use $as_me), people would be surprised to read:
30475 # /* config.h. Generated by config.status. */
30476 configure_input='Generated from '`
30477 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30478 `' by configure.'
30479 if test x"$ac_file" != x-; then
30480 configure_input="$ac_file. $configure_input"
30481 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30482 $as_echo "$as_me: creating $ac_file" >&6;}
30484 # Neutralize special characters interpreted by sed in replacement strings.
30485 case $configure_input in #(
30486 *\&* | *\|* | *\\* )
30487 ac_sed_conf_input=`$as_echo "$configure_input" |
30488 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30489 *) ac_sed_conf_input=$configure_input;;
30490 esac
30492 case $ac_tag in
30493 *:-:* | *:-) cat >"$tmp/stdin" \
30494 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30495 esac
30497 esac
30499 ac_dir=`$as_dirname -- "$ac_file" ||
30500 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30501 X"$ac_file" : 'X\(//\)[^/]' \| \
30502 X"$ac_file" : 'X\(//\)$' \| \
30503 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30504 $as_echo X"$ac_file" |
30505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30506 s//\1/
30509 /^X\(\/\/\)[^/].*/{
30510 s//\1/
30513 /^X\(\/\/\)$/{
30514 s//\1/
30517 /^X\(\/\).*/{
30518 s//\1/
30521 s/.*/./; q'`
30522 as_dir="$ac_dir"; as_fn_mkdir_p
30523 ac_builddir=.
30525 case "$ac_dir" in
30526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30528 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30529 # A ".." for each directory in $ac_dir_suffix.
30530 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30531 case $ac_top_builddir_sub in
30532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30534 esac ;;
30535 esac
30536 ac_abs_top_builddir=$ac_pwd
30537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30538 # for backward compatibility:
30539 ac_top_builddir=$ac_top_build_prefix
30541 case $srcdir in
30542 .) # We are building in place.
30543 ac_srcdir=.
30544 ac_top_srcdir=$ac_top_builddir_sub
30545 ac_abs_top_srcdir=$ac_pwd ;;
30546 [\\/]* | ?:[\\/]* ) # Absolute name.
30547 ac_srcdir=$srcdir$ac_dir_suffix;
30548 ac_top_srcdir=$srcdir
30549 ac_abs_top_srcdir=$srcdir ;;
30550 *) # Relative name.
30551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30552 ac_top_srcdir=$ac_top_build_prefix$srcdir
30553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30554 esac
30555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30558 case $ac_mode in
30561 # CONFIG_FILE
30564 _ACEOF
30566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30567 # If the template does not know about datarootdir, expand it.
30568 # FIXME: This hack should be removed a few years after 2.60.
30569 ac_datarootdir_hack=; ac_datarootdir_seen=
30570 ac_sed_dataroot='
30571 /datarootdir/ {
30575 /@datadir@/p
30576 /@docdir@/p
30577 /@infodir@/p
30578 /@localedir@/p
30579 /@mandir@/p'
30580 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30581 *datarootdir*) ac_datarootdir_seen=yes;;
30582 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30584 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30585 _ACEOF
30586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30587 ac_datarootdir_hack='
30588 s&@datadir@&$datadir&g
30589 s&@docdir@&$docdir&g
30590 s&@infodir@&$infodir&g
30591 s&@localedir@&$localedir&g
30592 s&@mandir@&$mandir&g
30593 s&\\\${datarootdir}&$datarootdir&g' ;;
30594 esac
30595 _ACEOF
30597 # Neutralize VPATH when `$srcdir' = `.'.
30598 # Shell code in configure.ac might set extrasub.
30599 # FIXME: do we really want to maintain this feature?
30600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30601 ac_sed_extra="$ac_vpsub
30602 $extrasub
30603 _ACEOF
30604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30606 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30607 s|@configure_input@|$ac_sed_conf_input|;t t
30608 s&@top_builddir@&$ac_top_builddir_sub&;t t
30609 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30610 s&@srcdir@&$ac_srcdir&;t t
30611 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30612 s&@top_srcdir@&$ac_top_srcdir&;t t
30613 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30614 s&@builddir@&$ac_builddir&;t t
30615 s&@abs_builddir@&$ac_abs_builddir&;t t
30616 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30617 $ac_datarootdir_hack
30619 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30620 if $ac_cs_awk_getline; then
30621 $AWK -f "$tmp/subs.awk"
30622 else
30623 $AWK -f "$tmp/subs.awk" | $SHELL
30624 fi >$tmp/out \
30625 || as_fn_error "could not create $ac_file" "$LINENO" 5
30627 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30628 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30629 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30631 which seems to be undefined. Please make sure it is defined." >&5
30632 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30633 which seems to be undefined. Please make sure it is defined." >&2;}
30635 rm -f "$tmp/stdin"
30636 case $ac_file in
30637 -) cat "$tmp/out" && rm -f "$tmp/out";;
30638 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30639 esac \
30640 || as_fn_error "could not create $ac_file" "$LINENO" 5
30644 # CONFIG_HEADER
30646 if test x"$ac_file" != x-; then
30648 $as_echo "/* $configure_input */" \
30649 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30650 } >"$tmp/config.h" \
30651 || as_fn_error "could not create $ac_file" "$LINENO" 5
30652 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30653 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30654 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30655 else
30656 rm -f "$ac_file"
30657 mv "$tmp/config.h" "$ac_file" \
30658 || as_fn_error "could not create $ac_file" "$LINENO" 5
30660 else
30661 $as_echo "/* $configure_input */" \
30662 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30663 || as_fn_error "could not create -" "$LINENO" 5
30668 # CONFIG_LINK
30671 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30673 else
30674 # Prefer the file from the source tree if names are identical.
30675 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30676 ac_source=$srcdir/$ac_source
30679 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30680 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30682 if test ! -r "$ac_source"; then
30683 as_fn_error "$ac_source: file not found" "$LINENO" 5
30685 rm -f "$ac_file"
30687 # Try a relative symlink, then a hard link, then a copy.
30688 case $srcdir in
30689 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30690 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30691 esac
30692 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30693 ln "$ac_source" "$ac_file" 2>/dev/null ||
30694 cp -p "$ac_source" "$ac_file" ||
30695 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30698 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30699 $as_echo "$as_me: executing $ac_file commands" >&6;}
30701 esac
30704 case $ac_file$ac_mode in
30705 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30706 "gccdepdir":C)
30707 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30708 for lang in $subdirs c-family common
30710 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30711 done ;;
30712 "as":F) chmod +x as ;;
30713 "collect-ld":F) chmod +x collect-ld ;;
30714 "nm":F) chmod +x nm ;;
30715 "default":C)
30716 case ${CONFIG_HEADERS} in
30717 *auto-host.h:config.in*)
30718 echo > cstamp-h ;;
30719 esac
30720 # Make sure all the subdirs exist.
30721 for d in $subdirs doc build common c-family
30723 test -d $d || mkdir $d
30724 done
30727 esac
30728 done # for ac_tag
30731 as_fn_exit 0
30732 _ACEOF
30733 ac_clean_files=$ac_clean_files_save
30735 test $ac_write_fail = 0 ||
30736 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30739 # configure is writing to config.log, and then calls config.status.
30740 # config.status does its own redirection, appending to config.log.
30741 # Unfortunately, on DOS this fails, as config.log is still kept open
30742 # by configure, so config.status won't be able to write to it; its
30743 # output is simply discarded. So we exec the FD to /dev/null,
30744 # effectively closing config.log, so it can be properly (re)opened and
30745 # appended to by config.status. When coming back to configure, we
30746 # need to make the FD available again.
30747 if test "$no_create" != yes; then
30748 ac_cs_success=:
30749 ac_config_status_args=
30750 test "$silent" = yes &&
30751 ac_config_status_args="$ac_config_status_args --quiet"
30752 exec 5>/dev/null
30753 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30754 exec 5>>config.log
30755 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30756 # would make configure fail if this is the last instruction.
30757 $ac_cs_success || as_fn_exit $?
30759 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30761 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}