* lto-partition.c (add_symbol_to_partition_1,
[official-gcc.git] / gcc / configure
blobcab3e926d9f8fb073a91fec13ba99bb771b0720d
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 PICFLAG
604 enable_host_shared
605 enable_plugin
606 pluginlibs
607 CLOOGINC
608 CLOOGLIBS
609 ISLINC
610 ISLLIBS
611 GMPINC
612 GMPLIBS
613 target_cpu_default
614 fortran_target_objs
615 cxx_target_objs
616 c_target_objs
617 use_gcc_stdint
618 xm_defines
619 xm_include_list
620 xm_file_list
621 tm_p_include_list
622 tm_p_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 common_out_object_file
627 common_out_file
628 out_object_file
629 out_file
630 objc_boehm_gc
631 md_file
632 local_prefix
633 lang_tree_files
634 lang_specs_files
635 lang_opt_files
636 install
637 out_host_hook_obj
638 host_xm_defines
639 host_xm_include_list
640 host_xm_file_list
641 host_exeext
642 gcc_gxx_include_dir_add_sysroot
643 gcc_gxx_include_dir
644 gcc_config_arguments
645 float_h_file
646 extra_programs
647 extra_objs
648 extra_headers_list
649 user_headers_inc_next_post
650 user_headers_inc_next_pre
651 extra_gcc_objs
652 TM_MULTILIB_EXCEPTIONS_CONFIG
653 TM_MULTILIB_CONFIG
654 TM_ENDIAN_CONFIG
655 tmake_file
656 xmake_file
657 cpp_install_dir
658 check_languages
659 build_file_translate
660 build_xm_defines
661 build_xm_include_list
662 build_xm_file_list
663 build_install_headers_dir
664 build_exeext
665 all_selected_languages
666 all_languages
667 all_lang_makefrags
668 all_gtfiles
669 all_compilers
670 srcdir
671 subdirs
672 dollar
673 gcc_tooldir
674 enable_lto
675 DO_LINK_MUTEX
676 MAINT
677 zlibinc
678 zlibdir
679 HOST_LIBS
680 libgcc_visibility
681 gcc_cv_readelf
682 gcc_cv_objdump
683 ORIGINAL_NM_FOR_TARGET
684 gcc_cv_nm
685 ORIGINAL_LD_GOLD_FOR_TARGET
686 ORIGINAL_LD_BFD_FOR_TARGET
687 ORIGINAL_LD_FOR_TARGET
688 ORIGINAL_PLUGIN_LD_FOR_TARGET
689 gcc_cv_ld
690 ORIGINAL_AS_FOR_TARGET
691 gcc_cv_as
692 enable_fast_install
693 objdir
694 OTOOL64
695 OTOOL
696 LIPO
697 NMEDIT
698 DSYMUTIL
699 STRIP
700 OBJDUMP
701 ac_ct_DUMPBIN
702 DUMPBIN
704 FGREP
706 LIBTOOL
707 collect2
708 STMP_FIXINC
709 BUILD_LDFLAGS
710 BUILD_CXXFLAGS
711 BUILD_CFLAGS
712 CXX_FOR_BUILD
713 CC_FOR_BUILD
714 inhibit_libc
715 SYSTEM_HEADER_DIR
717 CROSS
718 CATOBJEXT
719 GENCAT
720 INSTOBJEXT
721 DATADIRNAME
722 CATALOGS
723 POSUB
724 GMSGFMT
725 XGETTEXT
726 INCINTL
727 LIBINTL_DEP
728 LIBINTL
729 USE_NLS
730 extra_opt_files
731 extra_modes_file
732 NATIVE_SYSTEM_HEADER_DIR
733 objext
734 manext
735 LIBICONV_DEP
736 LTLIBICONV
737 LIBICONV
738 LDEXP_LIB
739 EXTRA_GCC_LIBS
740 GNAT_LIBEXC
741 COLLECT2_LIBS
742 CXXDEPMODE
743 DEPDIR
744 am__leading_dot
745 CXXCPP
748 BISON
749 FLEX
750 GENERATED_MANPAGES
751 BUILD_INFO
752 MAKEINFO
753 have_mktemp_command
754 make_compare_target
755 INSTALL_DATA
756 INSTALL_PROGRAM
757 INSTALL
758 ranlib_flags
759 RANLIB
761 LN_S
763 SET_MAKE
764 REPORT_BUGS_TEXI
765 REPORT_BUGS_TO
766 PKGVERSION
767 CONFIGURE_SPECS
768 CROSS_SYSTEM_HEADER_DIR
769 TARGET_SYSTEM_ROOT_DEFINE
770 TARGET_SYSTEM_ROOT
771 SYSROOT_CFLAGS_FOR_TARGET
772 enable_shared
773 enable_fixed_point
774 enable_decimal_float
775 with_float
776 with_cpu
777 enable_multiarch
778 enable_multilib
779 coverage_flags
780 valgrind_command
781 valgrind_path_defines
782 valgrind_path
783 TREECHECKING
784 TREEBROWSER
785 nocommon_flag
786 noexception_flags
787 warn_cxxflags
788 warn_cflags
789 c_strict_warn
790 strict_warn
791 c_loose_warn
792 loose_warn
793 EGREP
794 GREP
796 PICFLAG_FOR_TARGET
797 GNATMAKE
798 GNATBIND
799 ac_ct_CXX
800 CXXFLAGS
802 OBJEXT
803 EXEEXT
804 ac_ct_CC
805 CPPFLAGS
806 LDFLAGS
807 CFLAGS
809 GENINSRC
810 target_subdir
811 host_subdir
812 build_subdir
813 build_libsubdir
814 target_noncanonical
815 target_os
816 target_vendor
817 target_cpu
818 target
819 host_os
820 host_vendor
821 host_cpu
822 host
823 build_os
824 build_vendor
825 build_cpu
826 build
827 target_alias
828 host_alias
829 build_alias
830 LIBS
831 ECHO_T
832 ECHO_N
833 ECHO_C
834 DEFS
835 mandir
836 localedir
837 libdir
838 psdir
839 pdfdir
840 dvidir
841 htmldir
842 infodir
843 docdir
844 oldincludedir
845 includedir
846 localstatedir
847 sharedstatedir
848 sysconfdir
849 datadir
850 datarootdir
851 libexecdir
852 sbindir
853 bindir
854 program_transform_name
855 prefix
856 exec_prefix
857 PACKAGE_URL
858 PACKAGE_BUGREPORT
859 PACKAGE_STRING
860 PACKAGE_VERSION
861 PACKAGE_TARNAME
862 PACKAGE_NAME
863 PATH_SEPARATOR
864 SHELL'
865 ac_subst_files='option_includes
866 language_hooks'
867 ac_user_opts='
868 enable_option_checking
869 with_build_libsubdir
870 with_local_prefix
871 with_gxx_include_dir
872 with_cpp_install_dir
873 enable_generated_files_in_srcdir
874 with_gnu_ld
875 with_ld
876 with_demangler_in_ld
877 with_gnu_as
878 with_as
879 enable_largefile
880 enable_build_format_warnings
881 enable_werror_always
882 enable_checking
883 enable_coverage
884 enable_gather_detailed_mem_stats
885 with_stabs
886 enable_multilib
887 enable_multiarch
888 enable___cxa_atexit
889 enable_decimal_float
890 enable_fixed_point
891 enable_threads
892 enable_tls
893 enable_objc_gc
894 with_dwarf2
895 enable_shared
896 with_native_system_header_dir
897 with_build_sysroot
898 with_sysroot
899 with_specs
900 with_pkgversion
901 with_bugurl
902 enable_languages
903 with_multilib_list
904 enable_rpath
905 with_libiconv_prefix
906 enable_sjlj_exceptions
907 enable_secureplt
908 enable_leading_mingw64_underscores
909 enable_cld
910 enable_frame_pointer
911 enable_win32_registry
912 enable_static
913 with_pic
914 enable_fast_install
915 enable_libtool_lock
916 enable_ld
917 enable_gold
918 with_plugin_ld
919 enable_gnu_indirect_function
920 enable_initfini_array
921 enable_comdat
922 with_glibc_version
923 enable_gnu_unique_object
924 enable_linker_build_id
925 with_long_double_128
926 with_gc
927 with_system_zlib
928 enable_maintainer_mode
929 enable_link_mutex
930 enable_version_specific_runtime_libs
931 enable_plugin
932 enable_host_shared
933 enable_libquadmath_support
934 with_linker_hash_style
936 ac_precious_vars='build_alias
937 host_alias
938 target_alias
940 CFLAGS
941 LDFLAGS
942 LIBS
943 CPPFLAGS
945 CXXFLAGS
948 CXXCPP
949 GMPLIBS
950 GMPINC
951 ISLLIBS
952 ISLINC
953 CLOOGLIBS
954 CLOOGINC'
957 # Initialize some variables set by options.
958 ac_init_help=
959 ac_init_version=false
960 ac_unrecognized_opts=
961 ac_unrecognized_sep=
962 # The variables have the same names as the options, with
963 # dashes changed to underlines.
964 cache_file=/dev/null
965 exec_prefix=NONE
966 no_create=
967 no_recursion=
968 prefix=NONE
969 program_prefix=NONE
970 program_suffix=NONE
971 program_transform_name=s,x,x,
972 silent=
973 site=
974 srcdir=
975 verbose=
976 x_includes=NONE
977 x_libraries=NONE
979 # Installation directory options.
980 # These are left unexpanded so users can "make install exec_prefix=/foo"
981 # and all the variables that are supposed to be based on exec_prefix
982 # by default will actually change.
983 # Use braces instead of parens because sh, perl, etc. also accept them.
984 # (The list follows the same order as the GNU Coding Standards.)
985 bindir='${exec_prefix}/bin'
986 sbindir='${exec_prefix}/sbin'
987 libexecdir='${exec_prefix}/libexec'
988 datarootdir='${prefix}/share'
989 datadir='${datarootdir}'
990 sysconfdir='${prefix}/etc'
991 sharedstatedir='${prefix}/com'
992 localstatedir='${prefix}/var'
993 includedir='${prefix}/include'
994 oldincludedir='/usr/include'
995 docdir='${datarootdir}/doc/${PACKAGE}'
996 infodir='${datarootdir}/info'
997 htmldir='${docdir}'
998 dvidir='${docdir}'
999 pdfdir='${docdir}'
1000 psdir='${docdir}'
1001 libdir='${exec_prefix}/lib'
1002 localedir='${datarootdir}/locale'
1003 mandir='${datarootdir}/man'
1005 ac_prev=
1006 ac_dashdash=
1007 for ac_option
1009 # If the previous option needs an argument, assign it.
1010 if test -n "$ac_prev"; then
1011 eval $ac_prev=\$ac_option
1012 ac_prev=
1013 continue
1016 case $ac_option in
1017 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1018 *) ac_optarg=yes ;;
1019 esac
1021 # Accept the important Cygnus configure options, so we can diagnose typos.
1023 case $ac_dashdash$ac_option in
1025 ac_dashdash=yes ;;
1027 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1028 ac_prev=bindir ;;
1029 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1030 bindir=$ac_optarg ;;
1032 -build | --build | --buil | --bui | --bu)
1033 ac_prev=build_alias ;;
1034 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1035 build_alias=$ac_optarg ;;
1037 -cache-file | --cache-file | --cache-fil | --cache-fi \
1038 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1039 ac_prev=cache_file ;;
1040 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1041 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1042 cache_file=$ac_optarg ;;
1044 --config-cache | -C)
1045 cache_file=config.cache ;;
1047 -datadir | --datadir | --datadi | --datad)
1048 ac_prev=datadir ;;
1049 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1050 datadir=$ac_optarg ;;
1052 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1053 | --dataroo | --dataro | --datar)
1054 ac_prev=datarootdir ;;
1055 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1056 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1057 datarootdir=$ac_optarg ;;
1059 -disable-* | --disable-*)
1060 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063 as_fn_error "invalid feature name: $ac_useropt"
1064 ac_useropt_orig=$ac_useropt
1065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066 case $ac_user_opts in
1068 "enable_$ac_useropt"
1069 "*) ;;
1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1071 ac_unrecognized_sep=', ';;
1072 esac
1073 eval enable_$ac_useropt=no ;;
1075 -docdir | --docdir | --docdi | --doc | --do)
1076 ac_prev=docdir ;;
1077 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1078 docdir=$ac_optarg ;;
1080 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1081 ac_prev=dvidir ;;
1082 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1083 dvidir=$ac_optarg ;;
1085 -enable-* | --enable-*)
1086 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 as_fn_error "invalid feature name: $ac_useropt"
1090 ac_useropt_orig=$ac_useropt
1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092 case $ac_user_opts in
1094 "enable_$ac_useropt"
1095 "*) ;;
1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1097 ac_unrecognized_sep=', ';;
1098 esac
1099 eval enable_$ac_useropt=\$ac_optarg ;;
1101 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1102 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1103 | --exec | --exe | --ex)
1104 ac_prev=exec_prefix ;;
1105 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1106 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1107 | --exec=* | --exe=* | --ex=*)
1108 exec_prefix=$ac_optarg ;;
1110 -gas | --gas | --ga | --g)
1111 # Obsolete; use --with-gas.
1112 with_gas=yes ;;
1114 -help | --help | --hel | --he | -h)
1115 ac_init_help=long ;;
1116 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1117 ac_init_help=recursive ;;
1118 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1119 ac_init_help=short ;;
1121 -host | --host | --hos | --ho)
1122 ac_prev=host_alias ;;
1123 -host=* | --host=* | --hos=* | --ho=*)
1124 host_alias=$ac_optarg ;;
1126 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1127 ac_prev=htmldir ;;
1128 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1129 | --ht=*)
1130 htmldir=$ac_optarg ;;
1132 -includedir | --includedir | --includedi | --included | --include \
1133 | --includ | --inclu | --incl | --inc)
1134 ac_prev=includedir ;;
1135 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1136 | --includ=* | --inclu=* | --incl=* | --inc=*)
1137 includedir=$ac_optarg ;;
1139 -infodir | --infodir | --infodi | --infod | --info | --inf)
1140 ac_prev=infodir ;;
1141 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1142 infodir=$ac_optarg ;;
1144 -libdir | --libdir | --libdi | --libd)
1145 ac_prev=libdir ;;
1146 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1147 libdir=$ac_optarg ;;
1149 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1150 | --libexe | --libex | --libe)
1151 ac_prev=libexecdir ;;
1152 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1153 | --libexe=* | --libex=* | --libe=*)
1154 libexecdir=$ac_optarg ;;
1156 -localedir | --localedir | --localedi | --localed | --locale)
1157 ac_prev=localedir ;;
1158 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1159 localedir=$ac_optarg ;;
1161 -localstatedir | --localstatedir | --localstatedi | --localstated \
1162 | --localstate | --localstat | --localsta | --localst | --locals)
1163 ac_prev=localstatedir ;;
1164 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1165 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1166 localstatedir=$ac_optarg ;;
1168 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1169 ac_prev=mandir ;;
1170 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1171 mandir=$ac_optarg ;;
1173 -nfp | --nfp | --nf)
1174 # Obsolete; use --without-fp.
1175 with_fp=no ;;
1177 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1178 | --no-cr | --no-c | -n)
1179 no_create=yes ;;
1181 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1182 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1183 no_recursion=yes ;;
1185 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1186 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1187 | --oldin | --oldi | --old | --ol | --o)
1188 ac_prev=oldincludedir ;;
1189 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1190 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1191 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1192 oldincludedir=$ac_optarg ;;
1194 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1195 ac_prev=prefix ;;
1196 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1197 prefix=$ac_optarg ;;
1199 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1200 | --program-pre | --program-pr | --program-p)
1201 ac_prev=program_prefix ;;
1202 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1203 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1204 program_prefix=$ac_optarg ;;
1206 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1207 | --program-suf | --program-su | --program-s)
1208 ac_prev=program_suffix ;;
1209 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1210 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1211 program_suffix=$ac_optarg ;;
1213 -program-transform-name | --program-transform-name \
1214 | --program-transform-nam | --program-transform-na \
1215 | --program-transform-n | --program-transform- \
1216 | --program-transform | --program-transfor \
1217 | --program-transfo | --program-transf \
1218 | --program-trans | --program-tran \
1219 | --progr-tra | --program-tr | --program-t)
1220 ac_prev=program_transform_name ;;
1221 -program-transform-name=* | --program-transform-name=* \
1222 | --program-transform-nam=* | --program-transform-na=* \
1223 | --program-transform-n=* | --program-transform-=* \
1224 | --program-transform=* | --program-transfor=* \
1225 | --program-transfo=* | --program-transf=* \
1226 | --program-trans=* | --program-tran=* \
1227 | --progr-tra=* | --program-tr=* | --program-t=*)
1228 program_transform_name=$ac_optarg ;;
1230 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1231 ac_prev=pdfdir ;;
1232 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1233 pdfdir=$ac_optarg ;;
1235 -psdir | --psdir | --psdi | --psd | --ps)
1236 ac_prev=psdir ;;
1237 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1238 psdir=$ac_optarg ;;
1240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241 | -silent | --silent | --silen | --sile | --sil)
1242 silent=yes ;;
1244 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1245 ac_prev=sbindir ;;
1246 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1247 | --sbi=* | --sb=*)
1248 sbindir=$ac_optarg ;;
1250 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1251 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1252 | --sharedst | --shareds | --shared | --share | --shar \
1253 | --sha | --sh)
1254 ac_prev=sharedstatedir ;;
1255 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1256 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1257 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1258 | --sha=* | --sh=*)
1259 sharedstatedir=$ac_optarg ;;
1261 -site | --site | --sit)
1262 ac_prev=site ;;
1263 -site=* | --site=* | --sit=*)
1264 site=$ac_optarg ;;
1266 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1267 ac_prev=srcdir ;;
1268 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1269 srcdir=$ac_optarg ;;
1271 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1272 | --syscon | --sysco | --sysc | --sys | --sy)
1273 ac_prev=sysconfdir ;;
1274 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1275 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1276 sysconfdir=$ac_optarg ;;
1278 -target | --target | --targe | --targ | --tar | --ta | --t)
1279 ac_prev=target_alias ;;
1280 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1281 target_alias=$ac_optarg ;;
1283 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1284 verbose=yes ;;
1286 -version | --version | --versio | --versi | --vers | -V)
1287 ac_init_version=: ;;
1289 -with-* | --with-*)
1290 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293 as_fn_error "invalid package name: $ac_useropt"
1294 ac_useropt_orig=$ac_useropt
1295 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1298 "with_$ac_useropt"
1299 "*) ;;
1300 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1301 ac_unrecognized_sep=', ';;
1302 esac
1303 eval with_$ac_useropt=\$ac_optarg ;;
1305 -without-* | --without-*)
1306 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1309 as_fn_error "invalid package name: $ac_useropt"
1310 ac_useropt_orig=$ac_useropt
1311 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312 case $ac_user_opts in
1314 "with_$ac_useropt"
1315 "*) ;;
1316 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1317 ac_unrecognized_sep=', ';;
1318 esac
1319 eval with_$ac_useropt=no ;;
1321 --x)
1322 # Obsolete; use --with-x.
1323 with_x=yes ;;
1325 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1326 | --x-incl | --x-inc | --x-in | --x-i)
1327 ac_prev=x_includes ;;
1328 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1329 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1330 x_includes=$ac_optarg ;;
1332 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1333 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1334 ac_prev=x_libraries ;;
1335 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1336 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1337 x_libraries=$ac_optarg ;;
1339 -*) as_fn_error "unrecognized option: \`$ac_option'
1340 Try \`$0 --help' for more information."
1343 *=*)
1344 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1345 # Reject names that are not valid shell variable names.
1346 case $ac_envvar in #(
1347 '' | [0-9]* | *[!_$as_cr_alnum]* )
1348 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1349 esac
1350 eval $ac_envvar=\$ac_optarg
1351 export $ac_envvar ;;
1354 # FIXME: should be removed in autoconf 3.0.
1355 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1356 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1357 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1358 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1361 esac
1362 done
1364 if test -n "$ac_prev"; then
1365 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1366 as_fn_error "missing argument to $ac_option"
1369 if test -n "$ac_unrecognized_opts"; then
1370 case $enable_option_checking in
1371 no) ;;
1372 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1373 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1374 esac
1377 # Check all directory arguments for consistency.
1378 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1379 datadir sysconfdir sharedstatedir localstatedir includedir \
1380 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1381 libdir localedir mandir
1383 eval ac_val=\$$ac_var
1384 # Remove trailing slashes.
1385 case $ac_val in
1386 */ )
1387 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1388 eval $ac_var=\$ac_val;;
1389 esac
1390 # Be sure to have absolute directory names.
1391 case $ac_val in
1392 [\\/$]* | ?:[\\/]* ) continue;;
1393 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1394 esac
1395 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1396 done
1398 # There might be people who depend on the old broken behavior: `$host'
1399 # used to hold the argument of --host etc.
1400 # FIXME: To remove some day.
1401 build=$build_alias
1402 host=$host_alias
1403 target=$target_alias
1405 # FIXME: To remove some day.
1406 if test "x$host_alias" != x; then
1407 if test "x$build_alias" = x; then
1408 cross_compiling=maybe
1409 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1410 If a cross compiler is detected then cross compile mode will be used." >&2
1411 elif test "x$build_alias" != "x$host_alias"; then
1412 cross_compiling=yes
1416 ac_tool_prefix=
1417 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1419 test "$silent" = yes && exec 6>/dev/null
1422 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1423 ac_ls_di=`ls -di .` &&
1424 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1425 as_fn_error "working directory cannot be determined"
1426 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1427 as_fn_error "pwd does not report name of working directory"
1430 # Find the source files, if location was not specified.
1431 if test -z "$srcdir"; then
1432 ac_srcdir_defaulted=yes
1433 # Try the directory containing this script, then the parent directory.
1434 ac_confdir=`$as_dirname -- "$as_myself" ||
1435 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1436 X"$as_myself" : 'X\(//\)[^/]' \| \
1437 X"$as_myself" : 'X\(//\)$' \| \
1438 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1439 $as_echo X"$as_myself" |
1440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1441 s//\1/
1444 /^X\(\/\/\)[^/].*/{
1445 s//\1/
1448 /^X\(\/\/\)$/{
1449 s//\1/
1452 /^X\(\/\).*/{
1453 s//\1/
1456 s/.*/./; q'`
1457 srcdir=$ac_confdir
1458 if test ! -r "$srcdir/$ac_unique_file"; then
1459 srcdir=..
1461 else
1462 ac_srcdir_defaulted=no
1464 if test ! -r "$srcdir/$ac_unique_file"; then
1465 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1466 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1468 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1469 ac_abs_confdir=`(
1470 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1471 pwd)`
1472 # When building in place, set srcdir=.
1473 if test "$ac_abs_confdir" = "$ac_pwd"; then
1474 srcdir=.
1476 # Remove unnecessary trailing slashes from srcdir.
1477 # Double slashes in file names in object file debugging info
1478 # mess up M-x gdb in Emacs.
1479 case $srcdir in
1480 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1481 esac
1482 for ac_var in $ac_precious_vars; do
1483 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1484 eval ac_env_${ac_var}_value=\$${ac_var}
1485 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1486 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1487 done
1490 # Report the --help message.
1492 if test "$ac_init_help" = "long"; then
1493 # Omit some internal or obsolete options to make the list less imposing.
1494 # This message is too long to be a string in the A/UX 3.1 sh.
1495 cat <<_ACEOF
1496 \`configure' configures this package to adapt to many kinds of systems.
1498 Usage: $0 [OPTION]... [VAR=VALUE]...
1500 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1501 VAR=VALUE. See below for descriptions of some of the useful variables.
1503 Defaults for the options are specified in brackets.
1505 Configuration:
1506 -h, --help display this help and exit
1507 --help=short display options specific to this package
1508 --help=recursive display the short help of all the included packages
1509 -V, --version display version information and exit
1510 -q, --quiet, --silent do not print \`checking...' messages
1511 --cache-file=FILE cache test results in FILE [disabled]
1512 -C, --config-cache alias for \`--cache-file=config.cache'
1513 -n, --no-create do not create output files
1514 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1516 Installation directories:
1517 --prefix=PREFIX install architecture-independent files in PREFIX
1518 [$ac_default_prefix]
1519 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1520 [PREFIX]
1522 By default, \`make install' will install all the files in
1523 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1524 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1525 for instance \`--prefix=\$HOME'.
1527 For better control, use the options below.
1529 Fine tuning of the installation directories:
1530 --bindir=DIR user executables [EPREFIX/bin]
1531 --sbindir=DIR system admin executables [EPREFIX/sbin]
1532 --libexecdir=DIR program executables [EPREFIX/libexec]
1533 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1534 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1535 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1536 --libdir=DIR object code libraries [EPREFIX/lib]
1537 --includedir=DIR C header files [PREFIX/include]
1538 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1539 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1540 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1541 --infodir=DIR info documentation [DATAROOTDIR/info]
1542 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1543 --mandir=DIR man documentation [DATAROOTDIR/man]
1544 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1545 --htmldir=DIR html documentation [DOCDIR]
1546 --dvidir=DIR dvi documentation [DOCDIR]
1547 --pdfdir=DIR pdf documentation [DOCDIR]
1548 --psdir=DIR ps documentation [DOCDIR]
1549 _ACEOF
1551 cat <<\_ACEOF
1553 Program names:
1554 --program-prefix=PREFIX prepend PREFIX to installed program names
1555 --program-suffix=SUFFIX append SUFFIX to installed program names
1556 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1558 System types:
1559 --build=BUILD configure for building on BUILD [guessed]
1560 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1561 --target=TARGET configure for building compilers for TARGET [HOST]
1562 _ACEOF
1565 if test -n "$ac_init_help"; then
1567 cat <<\_ACEOF
1569 Optional Features:
1570 --disable-option-checking ignore unrecognized --enable/--with options
1571 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1572 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1573 --enable-generated-files-in-srcdir
1574 put copies of generated files in source dir intended
1575 for creating source tarballs for users without
1576 texinfo bison or flex
1577 --disable-largefile omit support for large files
1578 --disable-build-format-warnings
1579 don't use -Wformat while building GCC
1580 --enable-werror-always enable -Werror despite compiler version
1581 --enable-checking[=LIST]
1582 enable expensive run-time checks. With LIST, enable
1583 only specific categories of checks. Categories are:
1584 yes,no,all,none,release. Flags are:
1585 assert,df,fold,gc,gcac,gimple,misc,
1586 rtlflag,rtl,runtime,tree,valgrind,types
1587 --enable-coverage[=LEVEL]
1588 enable compiler's code coverage collection. Use to
1589 measure compiler performance and locate unused parts
1590 of the compiler. With LEVEL, specify optimization.
1591 Values are opt, noopt, default is noopt
1592 --enable-gather-detailed-mem-stats
1593 enable detailed memory allocation stats gathering
1594 --enable-multilib enable library support for multiple ABIs
1595 --enable-multiarch enable support for multiarch paths
1596 --enable-__cxa_atexit enable __cxa_atexit for C++
1597 --enable-decimal-float={no,yes,bid,dpd}
1598 enable decimal float extension to C. Selecting 'bid'
1599 or 'dpd' choses which decimal floating point format
1600 to use
1601 --enable-fixed-point enable fixed-point arithmetic extension to C
1602 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1603 package
1604 --enable-tls enable or disable generation of tls code overriding
1605 the assembler check for tls support
1606 --enable-objc-gc enable the use of Boehm's garbage collector with the
1607 GNU Objective-C runtime
1608 --disable-shared don't provide a shared libgcc
1609 --enable-languages=LIST specify which front-ends to build
1610 --disable-rpath do not hardcode runtime library paths
1611 --enable-sjlj-exceptions
1612 arrange to use setjmp/longjmp exception handling
1613 --enable-secureplt enable -msecure-plt by default for PowerPC
1614 --enable-leading-mingw64-underscores
1615 enable leading underscores on 64 bit mingw targets
1616 --enable-cld enable -mcld by default for 32bit x86
1617 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1619 --disable-win32-registry
1620 disable lookup of installation paths in the Registry
1621 on Windows hosts
1622 --enable-win32-registry enable registry lookup (default)
1623 --enable-win32-registry=KEY
1624 use KEY instead of GCC version as the last portion
1625 of the registry key
1626 --enable-shared[=PKGS] build shared libraries [default=yes]
1627 --enable-static[=PKGS] build static libraries [default=yes]
1628 --enable-fast-install[=PKGS]
1629 optimize for fast installation [default=yes]
1630 --disable-libtool-lock avoid locking (might break parallel builds)
1631 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1632 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1633 --enable-gnu-indirect-function
1634 enable the use of the @gnu_indirect_function to
1635 glibc systems
1636 --enable-initfini-array use .init_array/.fini_array sections
1637 --enable-comdat enable COMDAT group support
1638 --enable-gnu-unique-object
1639 enable the use of the @gnu_unique_object ELF
1640 extension on glibc systems
1641 --enable-linker-build-id
1642 compiler will always pass --build-id to linker
1643 --enable-maintainer-mode
1644 enable make rules and dependencies not useful (and
1645 sometimes confusing) to the casual installer
1646 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1647 thrashing on the build machine
1648 --enable-version-specific-runtime-libs
1649 specify that runtime libraries should be installed
1650 in a compiler-specific directory
1651 --enable-plugin enable plugin support
1652 --enable-host-shared build host code as shared libraries
1653 --disable-libquadmath-support
1654 disable libquadmath support for Fortran
1656 Optional Packages:
1657 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1658 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1659 --with-build-libsubdir=DIR Directory where to find libraries for build system
1660 --with-local-prefix=DIR specifies directory to put local include
1661 --with-gxx-include-dir=DIR
1662 specifies directory to put g++ header files
1663 --with-cpp-install-dir=DIR
1664 install the user visible C preprocessor in DIR
1665 (relative to PREFIX) as well as PREFIX/bin
1666 --with-gnu-ld arrange to work with GNU ld
1667 --with-ld arrange to use the specified ld (full pathname)
1668 --with-demangler-in-ld try to use demangler in GNU ld
1669 --with-gnu-as arrange to work with GNU as
1670 --with-as arrange to use the specified as (full pathname)
1671 --with-stabs arrange to use stabs instead of host debug format
1672 --with-dwarf2 force the default debug format to be DWARF 2
1673 --with-native-system-header-dir=dir
1674 use dir as the directory to look for standard
1675 system header files in. Defaults to /usr/include.
1676 --with-build-sysroot=sysroot
1677 use sysroot as the system root during the build
1678 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1679 --with-specs=SPECS add SPECS to driver command-line processing
1680 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1681 --with-bugurl=URL Direct users to URL to report a bug
1682 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1683 --with-gnu-ld assume the C compiler uses GNU ld default=no
1684 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1685 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1686 --with-pic try to use only PIC/non-PIC objects [default=use
1687 both]
1688 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1689 --with-plugin-ld=[ARG] specify the plugin linker
1690 --with-glibc-version=M.N
1691 assume GCC used with glibc version M.N or later
1692 --with-long-double-128 use 128-bit long double by default
1693 --with-gc={page,zone} this option is not supported anymore. It used to
1694 choose the garbage collection mechanism to use with
1695 the compiler
1696 --with-system-zlib use installed libz
1697 --with-linker-hash-style={sysv,gnu,both}
1698 specify the linker hash style
1700 Some influential environment variables:
1701 CC C compiler command
1702 CFLAGS C compiler flags
1703 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1704 nonstandard directory <lib dir>
1705 LIBS libraries to pass to the linker, e.g. -l<library>
1706 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1707 you have headers in a nonstandard directory <include dir>
1708 CXX C++ compiler command
1709 CXXFLAGS C++ compiler flags
1710 CPP C preprocessor
1711 CXXCPP C++ preprocessor
1712 GMPLIBS How to link GMP
1713 GMPINC How to find GMP include files
1714 ISLLIBS How to link ISL
1715 ISLINC How to find ISL include files
1716 CLOOGLIBS How to link CLOOG
1717 CLOOGINC How to find CLOOG include files
1719 Use these variables to override the choices made by `configure' or to help
1720 it to find libraries and programs with nonstandard names/locations.
1722 Report bugs to the package provider.
1723 _ACEOF
1724 ac_status=$?
1727 if test "$ac_init_help" = "recursive"; then
1728 # If there are subdirs, report their specific --help.
1729 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1730 test -d "$ac_dir" ||
1731 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1732 continue
1733 ac_builddir=.
1735 case "$ac_dir" in
1736 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1738 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1739 # A ".." for each directory in $ac_dir_suffix.
1740 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1741 case $ac_top_builddir_sub in
1742 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1743 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1744 esac ;;
1745 esac
1746 ac_abs_top_builddir=$ac_pwd
1747 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1748 # for backward compatibility:
1749 ac_top_builddir=$ac_top_build_prefix
1751 case $srcdir in
1752 .) # We are building in place.
1753 ac_srcdir=.
1754 ac_top_srcdir=$ac_top_builddir_sub
1755 ac_abs_top_srcdir=$ac_pwd ;;
1756 [\\/]* | ?:[\\/]* ) # Absolute name.
1757 ac_srcdir=$srcdir$ac_dir_suffix;
1758 ac_top_srcdir=$srcdir
1759 ac_abs_top_srcdir=$srcdir ;;
1760 *) # Relative name.
1761 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1762 ac_top_srcdir=$ac_top_build_prefix$srcdir
1763 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1764 esac
1765 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1767 cd "$ac_dir" || { ac_status=$?; continue; }
1768 # Check for guested configure.
1769 if test -f "$ac_srcdir/configure.gnu"; then
1770 echo &&
1771 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1772 elif test -f "$ac_srcdir/configure"; then
1773 echo &&
1774 $SHELL "$ac_srcdir/configure" --help=recursive
1775 else
1776 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1777 fi || ac_status=$?
1778 cd "$ac_pwd" || { ac_status=$?; break; }
1779 done
1782 test -n "$ac_init_help" && exit $ac_status
1783 if $ac_init_version; then
1784 cat <<\_ACEOF
1785 configure
1786 generated by GNU Autoconf 2.64
1788 Copyright (C) 2009 Free Software Foundation, Inc.
1789 This configure script is free software; the Free Software Foundation
1790 gives unlimited permission to copy, distribute and modify it.
1791 _ACEOF
1792 exit
1795 ## ------------------------ ##
1796 ## Autoconf initialization. ##
1797 ## ------------------------ ##
1799 # ac_fn_c_try_compile LINENO
1800 # --------------------------
1801 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_c_try_compile ()
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 rm -f conftest.$ac_objext
1806 if { { ac_try="$ac_compile"
1807 case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810 esac
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_compile") 2>conftest.err
1814 ac_status=$?
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } && {
1822 test -z "$ac_c_werror_flag" ||
1823 test ! -s conftest.err
1824 } && test -s conftest.$ac_objext; then :
1825 ac_retval=0
1826 else
1827 $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1830 ac_retval=1
1832 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1833 return $ac_retval
1835 } # ac_fn_c_try_compile
1837 # ac_fn_cxx_try_compile LINENO
1838 # ----------------------------
1839 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1840 ac_fn_cxx_try_compile ()
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 rm -f conftest.$ac_objext
1844 if { { ac_try="$ac_compile"
1845 case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_compile") 2>conftest.err
1852 ac_status=$?
1853 if test -s conftest.err; then
1854 grep -v '^ *+' conftest.err >conftest.er1
1855 cat conftest.er1 >&5
1856 mv -f conftest.er1 conftest.err
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } && {
1860 test -z "$ac_cxx_werror_flag" ||
1861 test ! -s conftest.err
1862 } && test -s conftest.$ac_objext; then :
1863 ac_retval=0
1864 else
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1868 ac_retval=1
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871 return $ac_retval
1873 } # ac_fn_cxx_try_compile
1875 # ac_fn_c_try_cpp LINENO
1876 # ----------------------
1877 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1878 ac_fn_c_try_cpp ()
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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; } >/dev/null && {
1897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1898 test ! -s conftest.err
1899 }; 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_c_try_cpp
1912 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1913 # -------------------------------------------------------
1914 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1915 # the include files in INCLUDES and setting the cache variable VAR
1916 # accordingly.
1917 ac_fn_c_check_header_mongrel ()
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922 $as_echo_n "checking for $2... " >&6; }
1923 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1924 $as_echo_n "(cached) " >&6
1926 eval ac_res=\$$3
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1929 else
1930 # Is the header compilable?
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1932 $as_echo_n "checking $2 usability... " >&6; }
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1936 #include <$2>
1937 _ACEOF
1938 if ac_fn_c_try_compile "$LINENO"; then :
1939 ac_header_compiler=yes
1940 else
1941 ac_header_compiler=no
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1945 $as_echo "$ac_header_compiler" >&6; }
1947 # Is the header present?
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1949 $as_echo_n "checking $2 presence... " >&6; }
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h. */
1952 #include <$2>
1953 _ACEOF
1954 if ac_fn_c_try_cpp "$LINENO"; then :
1955 ac_header_preproc=yes
1956 else
1957 ac_header_preproc=no
1959 rm -f conftest.err conftest.$ac_ext
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1961 $as_echo "$ac_header_preproc" >&6; }
1963 # So? What about this header?
1964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1965 yes:no: )
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1967 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1969 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1971 no:yes:* )
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1973 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1975 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1977 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1979 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1981 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1983 esac
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 $as_echo_n "checking for $2... " >&6; }
1986 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1987 $as_echo_n "(cached) " >&6
1988 else
1989 eval "$3=\$ac_header_compiler"
1991 eval ac_res=\$$3
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1995 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1997 } # ac_fn_c_check_header_mongrel
1999 # ac_fn_c_try_run LINENO
2000 # ----------------------
2001 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2002 # that executables *can* be run.
2003 ac_fn_c_try_run ()
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 if { { ac_try="$ac_link"
2007 case "(($ac_try" in
2008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2009 *) ac_try_echo=$ac_try;;
2010 esac
2011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2012 $as_echo "$ac_try_echo"; } >&5
2013 (eval "$ac_link") 2>&5
2014 ac_status=$?
2015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2016 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2017 { { case "(($ac_try" in
2018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2019 *) ac_try_echo=$ac_try;;
2020 esac
2021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2022 $as_echo "$ac_try_echo"; } >&5
2023 (eval "$ac_try") 2>&5
2024 ac_status=$?
2025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2026 test $ac_status = 0; }; }; then :
2027 ac_retval=0
2028 else
2029 $as_echo "$as_me: program exited with status $ac_status" >&5
2030 $as_echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2033 ac_retval=$ac_status
2035 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2036 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2037 return $ac_retval
2039 } # ac_fn_c_try_run
2041 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2042 # -------------------------------------------------------
2043 # Tests whether HEADER exists and can be compiled using the include files in
2044 # INCLUDES, setting the cache variable VAR accordingly.
2045 ac_fn_c_check_header_compile ()
2047 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2049 $as_echo_n "checking for $2... " >&6; }
2050 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2051 $as_echo_n "(cached) " >&6
2052 else
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2056 #include <$2>
2057 _ACEOF
2058 if ac_fn_c_try_compile "$LINENO"; then :
2059 eval "$3=yes"
2060 else
2061 eval "$3=no"
2063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065 eval ac_res=\$$3
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2067 $as_echo "$ac_res" >&6; }
2068 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2070 } # ac_fn_c_check_header_compile
2072 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2073 # --------------------------------------------
2074 # Tries to find the compile-time value of EXPR in a program that includes
2075 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2076 # computed
2077 ac_fn_c_compute_int ()
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080 if test "$cross_compiling" = yes; then
2081 # Depending upon the size, compute the lo and hi bounds.
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2086 main ()
2088 static int test_array [1 - 2 * !(($2) >= 0)];
2089 test_array [0] = 0
2092 return 0;
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"; then :
2096 ac_lo=0 ac_mid=0
2097 while :; do
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2102 main ()
2104 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2105 test_array [0] = 0
2108 return 0;
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112 ac_hi=$ac_mid; break
2113 else
2114 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2115 if test $ac_lo -le $ac_mid; then
2116 ac_lo= ac_hi=
2117 break
2119 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 done
2123 else
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2128 main ()
2130 static int test_array [1 - 2 * !(($2) < 0)];
2131 test_array [0] = 0
2134 return 0;
2136 _ACEOF
2137 if ac_fn_c_try_compile "$LINENO"; then :
2138 ac_hi=-1 ac_mid=-1
2139 while :; do
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2144 main ()
2146 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2147 test_array [0] = 0
2150 return 0;
2152 _ACEOF
2153 if ac_fn_c_try_compile "$LINENO"; then :
2154 ac_lo=$ac_mid; break
2155 else
2156 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2157 if test $ac_mid -le $ac_hi; then
2158 ac_lo= ac_hi=
2159 break
2161 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 done
2165 else
2166 ac_lo= ac_hi=
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171 # Binary search between lo and hi bounds.
2172 while test "x$ac_lo" != "x$ac_hi"; do
2173 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2178 main ()
2180 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2181 test_array [0] = 0
2184 return 0;
2186 _ACEOF
2187 if ac_fn_c_try_compile "$LINENO"; then :
2188 ac_hi=$ac_mid
2189 else
2190 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193 done
2194 case $ac_lo in #((
2195 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2196 '') ac_retval=1 ;;
2197 esac
2198 else
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2202 static long int longval () { return $2; }
2203 static unsigned long int ulongval () { return $2; }
2204 #include <stdio.h>
2205 #include <stdlib.h>
2207 main ()
2210 FILE *f = fopen ("conftest.val", "w");
2211 if (! f)
2212 return 1;
2213 if (($2) < 0)
2215 long int i = longval ();
2216 if (i != ($2))
2217 return 1;
2218 fprintf (f, "%ld", i);
2220 else
2222 unsigned long int i = ulongval ();
2223 if (i != ($2))
2224 return 1;
2225 fprintf (f, "%lu", i);
2227 /* Do not output a trailing newline, as this causes \r\n confusion
2228 on some platforms. */
2229 return ferror (f) || fclose (f) != 0;
2232 return 0;
2234 _ACEOF
2235 if ac_fn_c_try_run "$LINENO"; then :
2236 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2237 else
2238 ac_retval=1
2240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2241 conftest.$ac_objext conftest.beam conftest.$ac_ext
2242 rm -f conftest.val
2245 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2246 return $ac_retval
2248 } # ac_fn_c_compute_int
2250 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2251 # -------------------------------------------
2252 # Tests whether TYPE exists after having included INCLUDES, setting cache
2253 # variable VAR accordingly.
2254 ac_fn_c_check_type ()
2256 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2258 $as_echo_n "checking for $2... " >&6; }
2259 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2260 $as_echo_n "(cached) " >&6
2261 else
2262 eval "$3=no"
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2267 main ()
2269 if (sizeof ($2))
2270 return 0;
2272 return 0;
2274 _ACEOF
2275 if ac_fn_c_try_compile "$LINENO"; then :
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h. */
2280 main ()
2282 if (sizeof (($2)))
2283 return 0;
2285 return 0;
2287 _ACEOF
2288 if ac_fn_c_try_compile "$LINENO"; then :
2290 else
2291 eval "$3=yes"
2293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297 eval ac_res=\$$3
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2299 $as_echo "$ac_res" >&6; }
2300 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2302 } # ac_fn_c_check_type
2304 # ac_fn_c_find_intX_t LINENO BITS VAR
2305 # -----------------------------------
2306 # Finds a signed integer type with width BITS, setting cache variable VAR
2307 # accordingly.
2308 ac_fn_c_find_intX_t ()
2310 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2312 $as_echo_n "checking for int$2_t... " >&6; }
2313 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2314 $as_echo_n "(cached) " >&6
2315 else
2316 eval "$3=no"
2317 for ac_type in int$2_t 'int' 'long int' \
2318 'long long int' 'short int' 'signed char'; do
2319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320 /* end confdefs.h. */
2321 $ac_includes_default
2323 main ()
2325 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2326 test_array [0] = 0
2329 return 0;
2331 _ACEOF
2332 if ac_fn_c_try_compile "$LINENO"; then :
2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h. */
2335 $ac_includes_default
2337 main ()
2339 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2340 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2341 test_array [0] = 0
2344 return 0;
2346 _ACEOF
2347 if ac_fn_c_try_compile "$LINENO"; then :
2349 else
2350 case $ac_type in #(
2351 int$2_t) :
2352 eval "$3=yes" ;; #(
2353 *) :
2354 eval "$3=\$ac_type" ;;
2355 esac
2357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360 eval as_val=\$$3
2361 if test "x$as_val" = x""no; then :
2363 else
2364 break
2366 done
2368 eval ac_res=\$$3
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2370 $as_echo "$ac_res" >&6; }
2371 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2373 } # ac_fn_c_find_intX_t
2375 # ac_fn_c_try_link LINENO
2376 # -----------------------
2377 # Try to link conftest.$ac_ext, and return whether this succeeded.
2378 ac_fn_c_try_link ()
2380 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2381 rm -f conftest.$ac_objext conftest$ac_exeext
2382 if { { ac_try="$ac_link"
2383 case "(($ac_try" in
2384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385 *) ac_try_echo=$ac_try;;
2386 esac
2387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2388 $as_echo "$ac_try_echo"; } >&5
2389 (eval "$ac_link") 2>conftest.err
2390 ac_status=$?
2391 if test -s conftest.err; then
2392 grep -v '^ *+' conftest.err >conftest.er1
2393 cat conftest.er1 >&5
2394 mv -f conftest.er1 conftest.err
2396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2397 test $ac_status = 0; } && {
2398 test -z "$ac_c_werror_flag" ||
2399 test ! -s conftest.err
2400 } && test -s conftest$ac_exeext && {
2401 test "$cross_compiling" = yes ||
2402 $as_test_x conftest$ac_exeext
2403 }; then :
2404 ac_retval=0
2405 else
2406 $as_echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2409 ac_retval=1
2411 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2412 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2413 # interfere with the next link command; also delete a directory that is
2414 # left behind by Apple's compiler. We do this before executing the actions.
2415 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2416 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2417 return $ac_retval
2419 } # ac_fn_c_try_link
2421 # ac_fn_c_find_uintX_t LINENO BITS VAR
2422 # ------------------------------------
2423 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2424 # accordingly.
2425 ac_fn_c_find_uintX_t ()
2427 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2429 $as_echo_n "checking for uint$2_t... " >&6; }
2430 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2431 $as_echo_n "(cached) " >&6
2432 else
2433 eval "$3=no"
2434 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2435 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h. */
2438 $ac_includes_default
2440 main ()
2442 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2443 test_array [0] = 0
2446 return 0;
2448 _ACEOF
2449 if ac_fn_c_try_compile "$LINENO"; then :
2450 case $ac_type in #(
2451 uint$2_t) :
2452 eval "$3=yes" ;; #(
2453 *) :
2454 eval "$3=\$ac_type" ;;
2455 esac
2457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458 eval as_val=\$$3
2459 if test "x$as_val" = x""no; then :
2461 else
2462 break
2464 done
2466 eval ac_res=\$$3
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2468 $as_echo "$ac_res" >&6; }
2469 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2471 } # ac_fn_c_find_uintX_t
2473 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2474 # ----------------------------------------------
2475 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2476 ac_fn_c_check_header_preproc ()
2478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2480 $as_echo_n "checking for $2... " >&6; }
2481 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2482 $as_echo_n "(cached) " >&6
2483 else
2484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2485 /* end confdefs.h. */
2486 #include <$2>
2487 _ACEOF
2488 if ac_fn_c_try_cpp "$LINENO"; then :
2489 eval "$3=yes"
2490 else
2491 eval "$3=no"
2493 rm -f conftest.err conftest.$ac_ext
2495 eval ac_res=\$$3
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2497 $as_echo "$ac_res" >&6; }
2498 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2500 } # ac_fn_c_check_header_preproc
2502 # ac_fn_cxx_try_cpp LINENO
2503 # ------------------------
2504 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2505 ac_fn_cxx_try_cpp ()
2507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2508 if { { ac_try="$ac_cpp conftest.$ac_ext"
2509 case "(($ac_try" in
2510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511 *) ac_try_echo=$ac_try;;
2512 esac
2513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2514 $as_echo "$ac_try_echo"; } >&5
2515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2516 ac_status=$?
2517 if test -s conftest.err; then
2518 grep -v '^ *+' conftest.err >conftest.er1
2519 cat conftest.er1 >&5
2520 mv -f conftest.er1 conftest.err
2522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2523 test $ac_status = 0; } >/dev/null && {
2524 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2525 test ! -s conftest.err
2526 }; then :
2527 ac_retval=0
2528 else
2529 $as_echo "$as_me: failed program was:" >&5
2530 sed 's/^/| /' conftest.$ac_ext >&5
2532 ac_retval=1
2534 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2535 return $ac_retval
2537 } # ac_fn_cxx_try_cpp
2539 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2540 # ------------------------------------------------
2541 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2542 ac_fn_cxx_check_header_preproc ()
2544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2546 $as_echo_n "checking for $2... " >&6; }
2547 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2548 $as_echo_n "(cached) " >&6
2549 else
2550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551 /* end confdefs.h. */
2552 #include <$2>
2553 _ACEOF
2554 if ac_fn_cxx_try_cpp "$LINENO"; then :
2555 eval "$3=yes"
2556 else
2557 eval "$3=no"
2559 rm -f conftest.err conftest.$ac_ext
2561 eval ac_res=\$$3
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2563 $as_echo "$ac_res" >&6; }
2564 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2566 } # ac_fn_cxx_check_header_preproc
2568 # ac_fn_c_check_func LINENO FUNC VAR
2569 # ----------------------------------
2570 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2571 ac_fn_c_check_func ()
2573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2575 $as_echo_n "checking for $2... " >&6; }
2576 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2577 $as_echo_n "(cached) " >&6
2578 else
2579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580 /* end confdefs.h. */
2581 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2583 #define $2 innocuous_$2
2585 /* System header to define __stub macros and hopefully few prototypes,
2586 which can conflict with char $2 (); below.
2587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2588 <limits.h> exists even on freestanding compilers. */
2590 #ifdef __STDC__
2591 # include <limits.h>
2592 #else
2593 # include <assert.h>
2594 #endif
2596 #undef $2
2598 /* Override any GCC internal prototype to avoid an error.
2599 Use char because int might match the return type of a GCC
2600 builtin and then its argument prototype would still apply. */
2601 #ifdef __cplusplus
2602 extern "C"
2603 #endif
2604 char $2 ();
2605 /* The GNU C library defines this for functions which it implements
2606 to always fail with ENOSYS. Some functions are actually named
2607 something starting with __ and the normal name is an alias. */
2608 #if defined __stub_$2 || defined __stub___$2
2609 choke me
2610 #endif
2613 main ()
2615 return $2 ();
2617 return 0;
2619 _ACEOF
2620 if ac_fn_c_try_link "$LINENO"; then :
2621 eval "$3=yes"
2622 else
2623 eval "$3=no"
2625 rm -f core conftest.err conftest.$ac_objext \
2626 conftest$ac_exeext conftest.$ac_ext
2628 eval ac_res=\$$3
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2630 $as_echo "$ac_res" >&6; }
2631 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2633 } # ac_fn_c_check_func
2635 # ac_fn_cxx_try_link LINENO
2636 # -------------------------
2637 # Try to link conftest.$ac_ext, and return whether this succeeded.
2638 ac_fn_cxx_try_link ()
2640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2641 rm -f conftest.$ac_objext conftest$ac_exeext
2642 if { { ac_try="$ac_link"
2643 case "(($ac_try" in
2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645 *) ac_try_echo=$ac_try;;
2646 esac
2647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2648 $as_echo "$ac_try_echo"; } >&5
2649 (eval "$ac_link") 2>conftest.err
2650 ac_status=$?
2651 if test -s conftest.err; then
2652 grep -v '^ *+' conftest.err >conftest.er1
2653 cat conftest.er1 >&5
2654 mv -f conftest.er1 conftest.err
2656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2657 test $ac_status = 0; } && {
2658 test -z "$ac_cxx_werror_flag" ||
2659 test ! -s conftest.err
2660 } && test -s conftest$ac_exeext && {
2661 test "$cross_compiling" = yes ||
2662 $as_test_x conftest$ac_exeext
2663 }; then :
2664 ac_retval=0
2665 else
2666 $as_echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2669 ac_retval=1
2671 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2672 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2673 # interfere with the next link command; also delete a directory that is
2674 # left behind by Apple's compiler. We do this before executing the actions.
2675 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2676 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2677 return $ac_retval
2679 } # ac_fn_cxx_try_link
2680 cat >config.log <<_ACEOF
2681 This file contains any messages produced by compilers while
2682 running configure, to aid debugging if configure makes a mistake.
2684 It was created by $as_me, which was
2685 generated by GNU Autoconf 2.64. Invocation command line was
2687 $ $0 $@
2689 _ACEOF
2690 exec 5>>config.log
2692 cat <<_ASUNAME
2693 ## --------- ##
2694 ## Platform. ##
2695 ## --------- ##
2697 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2698 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2699 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2700 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2701 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2703 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2704 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2706 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2707 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2708 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2709 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2710 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2711 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2712 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2714 _ASUNAME
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 for as_dir in $PATH
2719 IFS=$as_save_IFS
2720 test -z "$as_dir" && as_dir=.
2721 $as_echo "PATH: $as_dir"
2722 done
2723 IFS=$as_save_IFS
2725 } >&5
2727 cat >&5 <<_ACEOF
2730 ## ----------- ##
2731 ## Core tests. ##
2732 ## ----------- ##
2734 _ACEOF
2737 # Keep a trace of the command line.
2738 # Strip out --no-create and --no-recursion so they do not pile up.
2739 # Strip out --silent because we don't want to record it for future runs.
2740 # Also quote any args containing shell meta-characters.
2741 # Make two passes to allow for proper duplicate-argument suppression.
2742 ac_configure_args=
2743 ac_configure_args0=
2744 ac_configure_args1=
2745 ac_must_keep_next=false
2746 for ac_pass in 1 2
2748 for ac_arg
2750 case $ac_arg in
2751 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2752 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2753 | -silent | --silent | --silen | --sile | --sil)
2754 continue ;;
2755 *\'*)
2756 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2757 esac
2758 case $ac_pass in
2759 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2761 as_fn_append ac_configure_args1 " '$ac_arg'"
2762 if test $ac_must_keep_next = true; then
2763 ac_must_keep_next=false # Got value, back to normal.
2764 else
2765 case $ac_arg in
2766 *=* | --config-cache | -C | -disable-* | --disable-* \
2767 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2768 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2769 | -with-* | --with-* | -without-* | --without-* | --x)
2770 case "$ac_configure_args0 " in
2771 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2772 esac
2774 -* ) ac_must_keep_next=true ;;
2775 esac
2777 as_fn_append ac_configure_args " '$ac_arg'"
2779 esac
2780 done
2781 done
2782 { ac_configure_args0=; unset ac_configure_args0;}
2783 { ac_configure_args1=; unset ac_configure_args1;}
2785 # When interrupted or exit'd, cleanup temporary files, and complete
2786 # config.log. We remove comments because anyway the quotes in there
2787 # would cause problems or look ugly.
2788 # WARNING: Use '\'' to represent an apostrophe within the trap.
2789 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2790 trap 'exit_status=$?
2791 # Save into config.log some information that might help in debugging.
2793 echo
2795 cat <<\_ASBOX
2796 ## ---------------- ##
2797 ## Cache variables. ##
2798 ## ---------------- ##
2799 _ASBOX
2800 echo
2801 # The following way of writing the cache mishandles newlines in values,
2803 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2804 eval ac_val=\$$ac_var
2805 case $ac_val in #(
2806 *${as_nl}*)
2807 case $ac_var in #(
2808 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2809 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2810 esac
2811 case $ac_var in #(
2812 _ | IFS | as_nl) ;; #(
2813 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2814 *) { eval $ac_var=; unset $ac_var;} ;;
2815 esac ;;
2816 esac
2817 done
2818 (set) 2>&1 |
2819 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2820 *${as_nl}ac_space=\ *)
2821 sed -n \
2822 "s/'\''/'\''\\\\'\'''\''/g;
2823 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2824 ;; #(
2826 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2828 esac |
2829 sort
2831 echo
2833 cat <<\_ASBOX
2834 ## ----------------- ##
2835 ## Output variables. ##
2836 ## ----------------- ##
2837 _ASBOX
2838 echo
2839 for ac_var in $ac_subst_vars
2841 eval ac_val=\$$ac_var
2842 case $ac_val in
2843 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2844 esac
2845 $as_echo "$ac_var='\''$ac_val'\''"
2846 done | sort
2847 echo
2849 if test -n "$ac_subst_files"; then
2850 cat <<\_ASBOX
2851 ## ------------------- ##
2852 ## File substitutions. ##
2853 ## ------------------- ##
2854 _ASBOX
2855 echo
2856 for ac_var in $ac_subst_files
2858 eval ac_val=\$$ac_var
2859 case $ac_val in
2860 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2861 esac
2862 $as_echo "$ac_var='\''$ac_val'\''"
2863 done | sort
2864 echo
2867 if test -s confdefs.h; then
2868 cat <<\_ASBOX
2869 ## ----------- ##
2870 ## confdefs.h. ##
2871 ## ----------- ##
2872 _ASBOX
2873 echo
2874 cat confdefs.h
2875 echo
2877 test "$ac_signal" != 0 &&
2878 $as_echo "$as_me: caught signal $ac_signal"
2879 $as_echo "$as_me: exit $exit_status"
2880 } >&5
2881 rm -f core *.core core.conftest.* &&
2882 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2883 exit $exit_status
2885 for ac_signal in 1 2 13 15; do
2886 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2887 done
2888 ac_signal=0
2890 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2891 rm -f -r conftest* confdefs.h
2893 $as_echo "/* confdefs.h */" > confdefs.h
2895 # Predefined preprocessor variables.
2897 cat >>confdefs.h <<_ACEOF
2898 #define PACKAGE_NAME "$PACKAGE_NAME"
2899 _ACEOF
2901 cat >>confdefs.h <<_ACEOF
2902 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2903 _ACEOF
2905 cat >>confdefs.h <<_ACEOF
2906 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2907 _ACEOF
2909 cat >>confdefs.h <<_ACEOF
2910 #define PACKAGE_STRING "$PACKAGE_STRING"
2911 _ACEOF
2913 cat >>confdefs.h <<_ACEOF
2914 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2915 _ACEOF
2917 cat >>confdefs.h <<_ACEOF
2918 #define PACKAGE_URL "$PACKAGE_URL"
2919 _ACEOF
2922 # Let the site file select an alternate cache file if it wants to.
2923 # Prefer an explicitly selected file to automatically selected ones.
2924 ac_site_file1=NONE
2925 ac_site_file2=NONE
2926 if test -n "$CONFIG_SITE"; then
2927 ac_site_file1=$CONFIG_SITE
2928 elif test "x$prefix" != xNONE; then
2929 ac_site_file1=$prefix/share/config.site
2930 ac_site_file2=$prefix/etc/config.site
2931 else
2932 ac_site_file1=$ac_default_prefix/share/config.site
2933 ac_site_file2=$ac_default_prefix/etc/config.site
2935 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2937 test "x$ac_site_file" = xNONE && continue
2938 if test -r "$ac_site_file"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2940 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2941 sed 's/^/| /' "$ac_site_file" >&5
2942 . "$ac_site_file"
2944 done
2946 if test -r "$cache_file"; then
2947 # Some versions of bash will fail to source /dev/null (special
2948 # files actually), so we avoid doing that.
2949 if test -f "$cache_file"; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2951 $as_echo "$as_me: loading cache $cache_file" >&6;}
2952 case $cache_file in
2953 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2954 *) . "./$cache_file";;
2955 esac
2957 else
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2959 $as_echo "$as_me: creating cache $cache_file" >&6;}
2960 >$cache_file
2963 # Check that the precious variables saved in the cache have kept the same
2964 # value.
2965 ac_cache_corrupted=false
2966 for ac_var in $ac_precious_vars; do
2967 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2968 eval ac_new_set=\$ac_env_${ac_var}_set
2969 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2970 eval ac_new_val=\$ac_env_${ac_var}_value
2971 case $ac_old_set,$ac_new_set in
2972 set,)
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2974 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2975 ac_cache_corrupted=: ;;
2976 ,set)
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2978 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2979 ac_cache_corrupted=: ;;
2980 ,);;
2982 if test "x$ac_old_val" != "x$ac_new_val"; then
2983 # differences in whitespace do not lead to failure.
2984 ac_old_val_w=`echo x $ac_old_val`
2985 ac_new_val_w=`echo x $ac_new_val`
2986 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2988 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2989 ac_cache_corrupted=:
2990 else
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2992 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2993 eval $ac_var=\$ac_old_val
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2996 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2998 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2999 fi;;
3000 esac
3001 # Pass precious variables to config.status.
3002 if test "$ac_new_set" = set; then
3003 case $ac_new_val in
3004 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3005 *) ac_arg=$ac_var=$ac_new_val ;;
3006 esac
3007 case " $ac_configure_args " in
3008 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3009 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3010 esac
3012 done
3013 if $ac_cache_corrupted; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3017 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3018 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3020 ## -------------------- ##
3021 ## Main body of script. ##
3022 ## -------------------- ##
3024 ac_ext=c
3025 ac_cpp='$CPP $CPPFLAGS'
3026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3035 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3038 gcc_version=`cat $srcdir/BASE-VER`
3040 # Determine the host, build, and target systems
3041 ac_aux_dir=
3042 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3043 for ac_t in install-sh install.sh shtool; do
3044 if test -f "$ac_dir/$ac_t"; then
3045 ac_aux_dir=$ac_dir
3046 ac_install_sh="$ac_aux_dir/$ac_t -c"
3047 break 2
3049 done
3050 done
3051 if test -z "$ac_aux_dir"; then
3052 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3055 # These three variables are undocumented and unsupported,
3056 # and are intended to be withdrawn in a future Autoconf release.
3057 # They can cause serious problems if a builder's source tree is in a directory
3058 # whose full name contains unusual characters.
3059 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3060 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3061 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3064 # Make sure we can run config.sub.
3065 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3066 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3069 $as_echo_n "checking build system type... " >&6; }
3070 if test "${ac_cv_build+set}" = set; then :
3071 $as_echo_n "(cached) " >&6
3072 else
3073 ac_build_alias=$build_alias
3074 test "x$ac_build_alias" = x &&
3075 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3076 test "x$ac_build_alias" = x &&
3077 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3078 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3079 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3083 $as_echo "$ac_cv_build" >&6; }
3084 case $ac_cv_build in
3085 *-*-*) ;;
3086 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3087 esac
3088 build=$ac_cv_build
3089 ac_save_IFS=$IFS; IFS='-'
3090 set x $ac_cv_build
3091 shift
3092 build_cpu=$1
3093 build_vendor=$2
3094 shift; shift
3095 # Remember, the first character of IFS is used to create $*,
3096 # except with old shells:
3097 build_os=$*
3098 IFS=$ac_save_IFS
3099 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3103 $as_echo_n "checking host system type... " >&6; }
3104 if test "${ac_cv_host+set}" = set; then :
3105 $as_echo_n "(cached) " >&6
3106 else
3107 if test "x$host_alias" = x; then
3108 ac_cv_host=$ac_cv_build
3109 else
3110 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3111 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3116 $as_echo "$ac_cv_host" >&6; }
3117 case $ac_cv_host in
3118 *-*-*) ;;
3119 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3120 esac
3121 host=$ac_cv_host
3122 ac_save_IFS=$IFS; IFS='-'
3123 set x $ac_cv_host
3124 shift
3125 host_cpu=$1
3126 host_vendor=$2
3127 shift; shift
3128 # Remember, the first character of IFS is used to create $*,
3129 # except with old shells:
3130 host_os=$*
3131 IFS=$ac_save_IFS
3132 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3136 $as_echo_n "checking target system type... " >&6; }
3137 if test "${ac_cv_target+set}" = set; then :
3138 $as_echo_n "(cached) " >&6
3139 else
3140 if test "x$target_alias" = x; then
3141 ac_cv_target=$ac_cv_host
3142 else
3143 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3144 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3149 $as_echo "$ac_cv_target" >&6; }
3150 case $ac_cv_target in
3151 *-*-*) ;;
3152 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3153 esac
3154 target=$ac_cv_target
3155 ac_save_IFS=$IFS; IFS='-'
3156 set x $ac_cv_target
3157 shift
3158 target_cpu=$1
3159 target_vendor=$2
3160 shift; shift
3161 # Remember, the first character of IFS is used to create $*,
3162 # except with old shells:
3163 target_os=$*
3164 IFS=$ac_save_IFS
3165 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3168 # The aliases save the names the user supplied, while $host etc.
3169 # will get canonicalized.
3170 test -n "$target_alias" &&
3171 test "$program_prefix$program_suffix$program_transform_name" = \
3172 NONENONEs,x,x, &&
3173 program_prefix=${target_alias}-
3175 # Determine the noncanonical target name, for directory use.
3176 case ${build_alias} in
3177 "") build_noncanonical=${build} ;;
3178 *) build_noncanonical=${build_alias} ;;
3179 esac
3181 case ${host_alias} in
3182 "") host_noncanonical=${build_noncanonical} ;;
3183 *) host_noncanonical=${host_alias} ;;
3184 esac
3186 case ${target_alias} in
3187 "") target_noncanonical=${host_noncanonical} ;;
3188 *) target_noncanonical=${target_alias} ;;
3189 esac
3194 # Determine the target- and build-specific subdirectories
3196 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3197 # have matching libraries, they should use host libraries: Makefile.tpl
3198 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3199 # However, they still use the build modules, because the corresponding
3200 # host modules (e.g. bison) are only built for the host when bootstrap
3201 # finishes. So:
3202 # - build_subdir is where we find build modules, and never changes.
3203 # - build_libsubdir is where we find build libraries, and can be overridden.
3205 # Prefix 'build-' so this never conflicts with target_subdir.
3206 build_subdir="build-${build_noncanonical}"
3208 # Check whether --with-build-libsubdir was given.
3209 if test "${with_build_libsubdir+set}" = set; then :
3210 withval=$with_build_libsubdir; build_libsubdir="$withval"
3211 else
3212 build_libsubdir="$build_subdir"
3215 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3216 if ( test $srcdir = . && test -d gcc ) \
3217 || test -d $srcdir/../host-${host_noncanonical}; then
3218 host_subdir="host-${host_noncanonical}"
3219 else
3220 host_subdir=.
3222 # No prefix.
3223 target_subdir=${target_noncanonical}
3226 # Set program_transform_name
3227 test "$program_prefix" != NONE &&
3228 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3229 # Use a double $ so make ignores it.
3230 test "$program_suffix" != NONE &&
3231 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3232 # Double any \ or $.
3233 # By default was `s,x,x', remove it if useless.
3234 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3235 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3238 # Check for bogus environment variables.
3239 # Test if LIBRARY_PATH contains the notation for the current directory
3240 # since this would lead to problems installing/building glibc.
3241 # LIBRARY_PATH contains the current directory if one of the following
3242 # is true:
3243 # - one of the terminals (":" and ";") is the first or last sign
3244 # - two terminals occur directly after each other
3245 # - the path contains an element with a dot in it
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3247 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3248 case ${LIBRARY_PATH} in
3249 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3250 library_path_setting="contains current directory"
3253 library_path_setting="ok"
3255 esac
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3257 $as_echo "$library_path_setting" >&6; }
3258 if test "$library_path_setting" != "ok"; then
3259 as_fn_error "
3260 *** LIBRARY_PATH shouldn't contain the current directory when
3261 *** building gcc. Please change the environment variable
3262 *** and run configure again." "$LINENO" 5
3265 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3266 # since this would lead to problems installing/building glibc.
3267 # GCC_EXEC_PREFIX contains the current directory if one of the following
3268 # is true:
3269 # - one of the terminals (":" and ";") is the first or last sign
3270 # - two terminals occur directly after each other
3271 # - the path contains an element with a dot in it
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3273 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3274 case ${GCC_EXEC_PREFIX} in
3275 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3276 gcc_exec_prefix_setting="contains current directory"
3279 gcc_exec_prefix_setting="ok"
3281 esac
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3283 $as_echo "$gcc_exec_prefix_setting" >&6; }
3284 if test "$gcc_exec_prefix_setting" != "ok"; then
3285 as_fn_error "
3286 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3287 *** building gcc. Please change the environment variable
3288 *** and run configure again." "$LINENO" 5
3291 # -----------
3292 # Directories
3293 # -----------
3295 # Specify the local prefix
3296 local_prefix=
3298 # Check whether --with-local-prefix was given.
3299 if test "${with_local_prefix+set}" = set; then :
3300 withval=$with_local_prefix; case "${withval}" in
3301 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3302 no) ;;
3303 *) local_prefix=$with_local_prefix ;;
3304 esac
3308 # Default local prefix if it is empty
3309 if test x$local_prefix = x; then
3310 local_prefix=/usr/local
3313 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3314 # passed in by the toplevel make and thus we'd get different behavior
3315 # depending on where we built the sources.
3316 gcc_gxx_include_dir=
3317 # Specify the g++ header file directory
3319 # Check whether --with-gxx-include-dir was given.
3320 if test "${with_gxx_include_dir+set}" = set; then :
3321 withval=$with_gxx_include_dir; case "${withval}" in
3322 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3323 no) ;;
3324 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3325 esac
3329 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3330 if test x${gcc_gxx_include_dir} = x; then
3331 if test x${enable_version_specific_runtime_libs} = xyes; then
3332 gcc_gxx_include_dir='${libsubdir}/include/c++'
3333 else
3334 libstdcxx_incdir='include/c++/$(version)'
3335 if test x$host != x$target; then
3336 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3338 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3342 gcc_gxx_include_dir_add_sysroot=0
3343 if test "${with_sysroot+set}" = set; then
3344 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3345 if test "${gcc_gxx_without_sysroot}"; then
3346 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3347 gcc_gxx_include_dir_add_sysroot=1
3352 # Check whether --with-cpp_install_dir was given.
3353 if test "${with_cpp_install_dir+set}" = set; then :
3354 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3355 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3356 elif test x$withval != xno; then
3357 cpp_install_dir=$withval
3362 # We would like to our source tree to be readonly. However when releases or
3363 # pre-releases are generated, the flex/bison generated files as well as the
3364 # various formats of manuals need to be included along with the rest of the
3365 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3366 # just that.
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3369 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3370 # Check whether --enable-generated-files-in-srcdir was given.
3371 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3372 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3373 else
3374 generated_files_in_srcdir=no
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3379 $as_echo "$generated_files_in_srcdir" >&6; }
3381 if test "$generated_files_in_srcdir" = "yes"; then
3382 GENINSRC=''
3383 else
3384 GENINSRC='#'
3388 # -------------------
3389 # Find default linker
3390 # -------------------
3392 # With GNU ld
3394 # Check whether --with-gnu-ld was given.
3395 if test "${with_gnu_ld+set}" = set; then :
3396 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3397 else
3398 gnu_ld_flag=no
3402 # With pre-defined ld
3404 # Check whether --with-ld was given.
3405 if test "${with_ld+set}" = set; then :
3406 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3409 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3410 if test ! -x "$DEFAULT_LINKER"; then
3411 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3412 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3413 gnu_ld_flag=yes
3416 cat >>confdefs.h <<_ACEOF
3417 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3418 _ACEOF
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3423 $as_echo_n "checking whether a default linker was specified... " >&6; }
3424 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3425 if test x"$gnu_ld_flag" = x"no"; then
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3427 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3428 else
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3430 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3432 else
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3434 $as_echo "no" >&6; }
3437 # With demangler in GNU ld
3439 # Check whether --with-demangler-in-ld was given.
3440 if test "${with_demangler_in_ld+set}" = set; then :
3441 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3442 else
3443 demangler_in_ld=yes
3447 # ----------------------
3448 # Find default assembler
3449 # ----------------------
3451 # With GNU as
3453 # Check whether --with-gnu-as was given.
3454 if test "${with_gnu_as+set}" = set; then :
3455 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3456 else
3457 gas_flag=no
3462 # Check whether --with-as was given.
3463 if test "${with_as+set}" = set; then :
3464 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3467 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3468 if test ! -x "$DEFAULT_ASSEMBLER"; then
3469 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3470 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3471 gas_flag=yes
3474 cat >>confdefs.h <<_ACEOF
3475 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3476 _ACEOF
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3481 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3482 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3483 if test x"$gas_flag" = x"no"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3485 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3486 else
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3488 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3490 else
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3495 # ---------------
3496 # Find C compiler
3497 # ---------------
3499 # If a non-executable a.out is present (e.g. created by GNU as above even if
3500 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3501 # file, even when creating an executable, so an execution test fails.
3502 # Remove possible default executable files to avoid this.
3504 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3505 # Autoconf includes it.
3506 rm -f a.out a.exe b.out
3508 # Find the native compiler
3509 ac_ext=c
3510 ac_cpp='$CPP $CPPFLAGS'
3511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3514 if test -n "$ac_tool_prefix"; then
3515 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3516 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3518 $as_echo_n "checking for $ac_word... " >&6; }
3519 if test "${ac_cv_prog_CC+set}" = set; then :
3520 $as_echo_n "(cached) " >&6
3521 else
3522 if test -n "$CC"; then
3523 ac_cv_prog_CC="$CC" # Let the user override the test.
3524 else
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH
3528 IFS=$as_save_IFS
3529 test -z "$as_dir" && as_dir=.
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3532 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 break 2
3536 done
3537 done
3538 IFS=$as_save_IFS
3542 CC=$ac_cv_prog_CC
3543 if test -n "$CC"; then
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3545 $as_echo "$CC" >&6; }
3546 else
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3548 $as_echo "no" >&6; }
3553 if test -z "$ac_cv_prog_CC"; then
3554 ac_ct_CC=$CC
3555 # Extract the first word of "gcc", so it can be a program name with args.
3556 set dummy gcc; ac_word=$2
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3558 $as_echo_n "checking for $ac_word... " >&6; }
3559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3560 $as_echo_n "(cached) " >&6
3561 else
3562 if test -n "$ac_ct_CC"; then
3563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3564 else
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 for as_dir in $PATH
3568 IFS=$as_save_IFS
3569 test -z "$as_dir" && as_dir=.
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3572 ac_cv_prog_ac_ct_CC="gcc"
3573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 break 2
3576 done
3577 done
3578 IFS=$as_save_IFS
3582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3583 if test -n "$ac_ct_CC"; then
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3585 $as_echo "$ac_ct_CC" >&6; }
3586 else
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588 $as_echo "no" >&6; }
3591 if test "x$ac_ct_CC" = x; then
3592 CC=""
3593 else
3594 case $cross_compiling:$ac_tool_warned in
3595 yes:)
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3598 ac_tool_warned=yes ;;
3599 esac
3600 CC=$ac_ct_CC
3602 else
3603 CC="$ac_cv_prog_CC"
3606 if test -z "$CC"; then
3607 if test -n "$ac_tool_prefix"; then
3608 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3609 set dummy ${ac_tool_prefix}cc; ac_word=$2
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3611 $as_echo_n "checking for $ac_word... " >&6; }
3612 if test "${ac_cv_prog_CC+set}" = set; then :
3613 $as_echo_n "(cached) " >&6
3614 else
3615 if test -n "$CC"; then
3616 ac_cv_prog_CC="$CC" # Let the user override the test.
3617 else
3618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 for as_dir in $PATH
3621 IFS=$as_save_IFS
3622 test -z "$as_dir" && as_dir=.
3623 for ac_exec_ext in '' $ac_executable_extensions; do
3624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3625 ac_cv_prog_CC="${ac_tool_prefix}cc"
3626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3627 break 2
3629 done
3630 done
3631 IFS=$as_save_IFS
3635 CC=$ac_cv_prog_CC
3636 if test -n "$CC"; then
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638 $as_echo "$CC" >&6; }
3639 else
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3647 if test -z "$CC"; then
3648 # Extract the first word of "cc", so it can be a program name with args.
3649 set dummy cc; ac_word=$2
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651 $as_echo_n "checking for $ac_word... " >&6; }
3652 if test "${ac_cv_prog_CC+set}" = set; then :
3653 $as_echo_n "(cached) " >&6
3654 else
3655 if test -n "$CC"; then
3656 ac_cv_prog_CC="$CC" # Let the user override the test.
3657 else
3658 ac_prog_rejected=no
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3666 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3667 ac_prog_rejected=yes
3668 continue
3670 ac_cv_prog_CC="cc"
3671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 break 2
3674 done
3675 done
3676 IFS=$as_save_IFS
3678 if test $ac_prog_rejected = yes; then
3679 # We found a bogon in the path, so make sure we never use it.
3680 set dummy $ac_cv_prog_CC
3681 shift
3682 if test $# != 0; then
3683 # We chose a different compiler from the bogus one.
3684 # However, it has the same basename, so the bogon will be chosen
3685 # first if we set CC to just the basename; use the full file name.
3686 shift
3687 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3692 CC=$ac_cv_prog_CC
3693 if test -n "$CC"; then
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3695 $as_echo "$CC" >&6; }
3696 else
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 $as_echo "no" >&6; }
3703 if test -z "$CC"; then
3704 if test -n "$ac_tool_prefix"; then
3705 for ac_prog in cl.exe
3707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3710 $as_echo_n "checking for $ac_word... " >&6; }
3711 if test "${ac_cv_prog_CC+set}" = set; then :
3712 $as_echo_n "(cached) " >&6
3713 else
3714 if test -n "$CC"; then
3715 ac_cv_prog_CC="$CC" # Let the user override the test.
3716 else
3717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 for as_dir in $PATH
3720 IFS=$as_save_IFS
3721 test -z "$as_dir" && as_dir=.
3722 for ac_exec_ext in '' $ac_executable_extensions; do
3723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3724 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3726 break 2
3728 done
3729 done
3730 IFS=$as_save_IFS
3734 CC=$ac_cv_prog_CC
3735 if test -n "$CC"; then
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3737 $as_echo "$CC" >&6; }
3738 else
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3740 $as_echo "no" >&6; }
3744 test -n "$CC" && break
3745 done
3747 if test -z "$CC"; then
3748 ac_ct_CC=$CC
3749 for ac_prog in cl.exe
3751 # Extract the first word of "$ac_prog", so it can be a program name with args.
3752 set dummy $ac_prog; ac_word=$2
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3754 $as_echo_n "checking for $ac_word... " >&6; }
3755 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3756 $as_echo_n "(cached) " >&6
3757 else
3758 if test -n "$ac_ct_CC"; then
3759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3760 else
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH
3764 IFS=$as_save_IFS
3765 test -z "$as_dir" && as_dir=.
3766 for ac_exec_ext in '' $ac_executable_extensions; do
3767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3768 ac_cv_prog_ac_ct_CC="$ac_prog"
3769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 break 2
3772 done
3773 done
3774 IFS=$as_save_IFS
3778 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3779 if test -n "$ac_ct_CC"; then
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3781 $as_echo "$ac_ct_CC" >&6; }
3782 else
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3784 $as_echo "no" >&6; }
3788 test -n "$ac_ct_CC" && break
3789 done
3791 if test "x$ac_ct_CC" = x; then
3792 CC=""
3793 else
3794 case $cross_compiling:$ac_tool_warned in
3795 yes:)
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3798 ac_tool_warned=yes ;;
3799 esac
3800 CC=$ac_ct_CC
3807 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3809 as_fn_error "no acceptable C compiler found in \$PATH
3810 See \`config.log' for more details." "$LINENO" 5; }
3812 # Provide some information about the compiler.
3813 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3814 set X $ac_compile
3815 ac_compiler=$2
3816 for ac_option in --version -v -V -qversion; do
3817 { { ac_try="$ac_compiler $ac_option >&5"
3818 case "(($ac_try" in
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3821 esac
3822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3823 $as_echo "$ac_try_echo"; } >&5
3824 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3825 ac_status=$?
3826 if test -s conftest.err; then
3827 sed '10a\
3828 ... rest of stderr output deleted ...
3829 10q' conftest.err >conftest.er1
3830 cat conftest.er1 >&5
3831 rm -f conftest.er1 conftest.err
3833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3834 test $ac_status = 0; }
3835 done
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3841 main ()
3845 return 0;
3847 _ACEOF
3848 ac_clean_files_save=$ac_clean_files
3849 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3850 # Try to create an executable without -o first, disregard a.out.
3851 # It will help us diagnose broken compilers, and finding out an intuition
3852 # of exeext.
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3854 $as_echo_n "checking for C compiler default output file name... " >&6; }
3855 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3857 # The possible output files:
3858 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3860 ac_rmfiles=
3861 for ac_file in $ac_files
3863 case $ac_file in
3864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3865 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3866 esac
3867 done
3868 rm -f $ac_rmfiles
3870 if { { ac_try="$ac_link_default"
3871 case "(($ac_try" in
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3874 esac
3875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3876 $as_echo "$ac_try_echo"; } >&5
3877 (eval "$ac_link_default") 2>&5
3878 ac_status=$?
3879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3880 test $ac_status = 0; }; then :
3881 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3882 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3883 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3884 # so that the user can short-circuit this test for compilers unknown to
3885 # Autoconf.
3886 for ac_file in $ac_files ''
3888 test -f "$ac_file" || continue
3889 case $ac_file in
3890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3892 [ab].out )
3893 # We found the default executable, but exeext='' is most
3894 # certainly right.
3895 break;;
3896 *.* )
3897 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3898 then :; else
3899 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3901 # We set ac_cv_exeext here because the later test for it is not
3902 # safe: cross compilers may not add the suffix if given an `-o'
3903 # argument, so we may need to know it at that point already.
3904 # Even if this section looks crufty: it has the advantage of
3905 # actually working.
3906 break;;
3908 break;;
3909 esac
3910 done
3911 test "$ac_cv_exeext" = no && ac_cv_exeext=
3913 else
3914 ac_file=''
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3917 $as_echo "$ac_file" >&6; }
3918 if test -z "$ac_file"; then :
3919 $as_echo "$as_me: failed program was:" >&5
3920 sed 's/^/| /' conftest.$ac_ext >&5
3922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3924 { as_fn_set_status 77
3925 as_fn_error "C compiler cannot create executables
3926 See \`config.log' for more details." "$LINENO" 5; }; }
3928 ac_exeext=$ac_cv_exeext
3930 # Check that the compiler produces executables we can run. If not, either
3931 # the compiler is broken, or we cross compile.
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3933 $as_echo_n "checking whether the C compiler works... " >&6; }
3934 # If not cross compiling, check that we can run a simple program.
3935 if test "$cross_compiling" != yes; then
3936 if { ac_try='./$ac_file'
3937 { { case "(($ac_try" in
3938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939 *) ac_try_echo=$ac_try;;
3940 esac
3941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3942 $as_echo "$ac_try_echo"; } >&5
3943 (eval "$ac_try") 2>&5
3944 ac_status=$?
3945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3946 test $ac_status = 0; }; }; then
3947 cross_compiling=no
3948 else
3949 if test "$cross_compiling" = maybe; then
3950 cross_compiling=yes
3951 else
3952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3954 as_fn_error "cannot run C compiled programs.
3955 If you meant to cross compile, use \`--host'.
3956 See \`config.log' for more details." "$LINENO" 5; }
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3961 $as_echo "yes" >&6; }
3963 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3964 ac_clean_files=$ac_clean_files_save
3965 # Check that the compiler produces executables we can run. If not, either
3966 # the compiler is broken, or we cross compile.
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3968 $as_echo_n "checking whether we are cross compiling... " >&6; }
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3970 $as_echo "$cross_compiling" >&6; }
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3973 $as_echo_n "checking for suffix of executables... " >&6; }
3974 if { { ac_try="$ac_link"
3975 case "(($ac_try" in
3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977 *) ac_try_echo=$ac_try;;
3978 esac
3979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3980 $as_echo "$ac_try_echo"; } >&5
3981 (eval "$ac_link") 2>&5
3982 ac_status=$?
3983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3984 test $ac_status = 0; }; then :
3985 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3986 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3987 # work properly (i.e., refer to `conftest.exe'), while it won't with
3988 # `rm'.
3989 for ac_file in conftest.exe conftest conftest.*; do
3990 test -f "$ac_file" || continue
3991 case $ac_file in
3992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3993 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3994 break;;
3995 * ) break;;
3996 esac
3997 done
3998 else
3999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4001 as_fn_error "cannot compute suffix of executables: cannot compile and link
4002 See \`config.log' for more details." "$LINENO" 5; }
4004 rm -f conftest$ac_cv_exeext
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4006 $as_echo "$ac_cv_exeext" >&6; }
4008 rm -f conftest.$ac_ext
4009 EXEEXT=$ac_cv_exeext
4010 ac_exeext=$EXEEXT
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4012 $as_echo_n "checking for suffix of object files... " >&6; }
4013 if test "${ac_cv_objext+set}" = set; then :
4014 $as_echo_n "(cached) " >&6
4015 else
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4020 main ()
4024 return 0;
4026 _ACEOF
4027 rm -f conftest.o conftest.obj
4028 if { { ac_try="$ac_compile"
4029 case "(($ac_try" in
4030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4032 esac
4033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4034 $as_echo "$ac_try_echo"; } >&5
4035 (eval "$ac_compile") 2>&5
4036 ac_status=$?
4037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4038 test $ac_status = 0; }; then :
4039 for ac_file in conftest.o conftest.obj conftest.*; do
4040 test -f "$ac_file" || continue;
4041 case $ac_file in
4042 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4043 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4044 break;;
4045 esac
4046 done
4047 else
4048 $as_echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4053 as_fn_error "cannot compute suffix of object files: cannot compile
4054 See \`config.log' for more details." "$LINENO" 5; }
4056 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4059 $as_echo "$ac_cv_objext" >&6; }
4060 OBJEXT=$ac_cv_objext
4061 ac_objext=$OBJEXT
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4063 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4064 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4065 $as_echo_n "(cached) " >&6
4066 else
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4071 main ()
4073 #ifndef __GNUC__
4074 choke me
4075 #endif
4078 return 0;
4080 _ACEOF
4081 if ac_fn_c_try_compile "$LINENO"; then :
4082 ac_compiler_gnu=yes
4083 else
4084 ac_compiler_gnu=no
4086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4087 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4091 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4092 if test $ac_compiler_gnu = yes; then
4093 GCC=yes
4094 else
4095 GCC=
4097 ac_test_CFLAGS=${CFLAGS+set}
4098 ac_save_CFLAGS=$CFLAGS
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4100 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4101 if test "${ac_cv_prog_cc_g+set}" = set; then :
4102 $as_echo_n "(cached) " >&6
4103 else
4104 ac_save_c_werror_flag=$ac_c_werror_flag
4105 ac_c_werror_flag=yes
4106 ac_cv_prog_cc_g=no
4107 CFLAGS="-g"
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4112 main ()
4116 return 0;
4118 _ACEOF
4119 if ac_fn_c_try_compile "$LINENO"; then :
4120 ac_cv_prog_cc_g=yes
4121 else
4122 CFLAGS=""
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4127 main ()
4131 return 0;
4133 _ACEOF
4134 if ac_fn_c_try_compile "$LINENO"; then :
4136 else
4137 ac_c_werror_flag=$ac_save_c_werror_flag
4138 CFLAGS="-g"
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4143 main ()
4147 return 0;
4149 _ACEOF
4150 if ac_fn_c_try_compile "$LINENO"; then :
4151 ac_cv_prog_cc_g=yes
4153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 ac_c_werror_flag=$ac_save_c_werror_flag
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4161 $as_echo "$ac_cv_prog_cc_g" >&6; }
4162 if test "$ac_test_CFLAGS" = set; then
4163 CFLAGS=$ac_save_CFLAGS
4164 elif test $ac_cv_prog_cc_g = yes; then
4165 if test "$GCC" = yes; then
4166 CFLAGS="-g -O2"
4167 else
4168 CFLAGS="-g"
4170 else
4171 if test "$GCC" = yes; then
4172 CFLAGS="-O2"
4173 else
4174 CFLAGS=
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4178 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4179 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4180 $as_echo_n "(cached) " >&6
4181 else
4182 ac_cv_prog_cc_c89=no
4183 ac_save_CC=$CC
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4186 #include <stdarg.h>
4187 #include <stdio.h>
4188 #include <sys/types.h>
4189 #include <sys/stat.h>
4190 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4191 struct buf { int x; };
4192 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4193 static char *e (p, i)
4194 char **p;
4195 int i;
4197 return p[i];
4199 static char *f (char * (*g) (char **, int), char **p, ...)
4201 char *s;
4202 va_list v;
4203 va_start (v,p);
4204 s = g (p, va_arg (v,int));
4205 va_end (v);
4206 return s;
4209 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4210 function prototypes and stuff, but not '\xHH' hex character constants.
4211 These don't provoke an error unfortunately, instead are silently treated
4212 as 'x'. The following induces an error, until -std is added to get
4213 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4214 array size at least. It's necessary to write '\x00'==0 to get something
4215 that's true only with -std. */
4216 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4218 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4219 inside strings and character constants. */
4220 #define FOO(x) 'x'
4221 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4223 int test (int i, double x);
4224 struct s1 {int (*f) (int a);};
4225 struct s2 {int (*f) (double a);};
4226 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4227 int argc;
4228 char **argv;
4230 main ()
4232 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4234 return 0;
4236 _ACEOF
4237 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4238 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4240 CC="$ac_save_CC $ac_arg"
4241 if ac_fn_c_try_compile "$LINENO"; then :
4242 ac_cv_prog_cc_c89=$ac_arg
4244 rm -f core conftest.err conftest.$ac_objext
4245 test "x$ac_cv_prog_cc_c89" != "xno" && break
4246 done
4247 rm -f conftest.$ac_ext
4248 CC=$ac_save_CC
4251 # AC_CACHE_VAL
4252 case "x$ac_cv_prog_cc_c89" in
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4255 $as_echo "none needed" >&6; } ;;
4256 xno)
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4258 $as_echo "unsupported" >&6; } ;;
4260 CC="$CC $ac_cv_prog_cc_c89"
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4262 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4263 esac
4264 if test "x$ac_cv_prog_cc_c89" != xno; then :
4268 ac_ext=c
4269 ac_cpp='$CPP $CPPFLAGS'
4270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4274 ac_ext=cpp
4275 ac_cpp='$CXXCPP $CPPFLAGS'
4276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4279 if test -z "$CXX"; then
4280 if test -n "$CCC"; then
4281 CXX=$CCC
4282 else
4283 if test -n "$ac_tool_prefix"; then
4284 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4286 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4287 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4289 $as_echo_n "checking for $ac_word... " >&6; }
4290 if test "${ac_cv_prog_CXX+set}" = set; then :
4291 $as_echo_n "(cached) " >&6
4292 else
4293 if test -n "$CXX"; then
4294 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4295 else
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 for as_dir in $PATH
4299 IFS=$as_save_IFS
4300 test -z "$as_dir" && as_dir=.
4301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4303 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4305 break 2
4307 done
4308 done
4309 IFS=$as_save_IFS
4313 CXX=$ac_cv_prog_CXX
4314 if test -n "$CXX"; then
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4316 $as_echo "$CXX" >&6; }
4317 else
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319 $as_echo "no" >&6; }
4323 test -n "$CXX" && break
4324 done
4326 if test -z "$CXX"; then
4327 ac_ct_CXX=$CXX
4328 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4330 # Extract the first word of "$ac_prog", so it can be a program name with args.
4331 set dummy $ac_prog; ac_word=$2
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333 $as_echo_n "checking for $ac_word... " >&6; }
4334 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4335 $as_echo_n "(cached) " >&6
4336 else
4337 if test -n "$ac_ct_CXX"; then
4338 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4339 else
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 for as_dir in $PATH
4343 IFS=$as_save_IFS
4344 test -z "$as_dir" && as_dir=.
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4347 ac_cv_prog_ac_ct_CXX="$ac_prog"
4348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4349 break 2
4351 done
4352 done
4353 IFS=$as_save_IFS
4357 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4358 if test -n "$ac_ct_CXX"; then
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4360 $as_echo "$ac_ct_CXX" >&6; }
4361 else
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 $as_echo "no" >&6; }
4367 test -n "$ac_ct_CXX" && break
4368 done
4370 if test "x$ac_ct_CXX" = x; then
4371 CXX="g++"
4372 else
4373 case $cross_compiling:$ac_tool_warned in
4374 yes:)
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4377 ac_tool_warned=yes ;;
4378 esac
4379 CXX=$ac_ct_CXX
4385 # Provide some information about the compiler.
4386 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4387 set X $ac_compile
4388 ac_compiler=$2
4389 for ac_option in --version -v -V -qversion; do
4390 { { ac_try="$ac_compiler $ac_option >&5"
4391 case "(($ac_try" in
4392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4394 esac
4395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4396 $as_echo "$ac_try_echo"; } >&5
4397 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4398 ac_status=$?
4399 if test -s conftest.err; then
4400 sed '10a\
4401 ... rest of stderr output deleted ...
4402 10q' conftest.err >conftest.er1
4403 cat conftest.er1 >&5
4404 rm -f conftest.er1 conftest.err
4406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4407 test $ac_status = 0; }
4408 done
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4411 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4412 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4413 $as_echo_n "(cached) " >&6
4414 else
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4419 main ()
4421 #ifndef __GNUC__
4422 choke me
4423 #endif
4426 return 0;
4428 _ACEOF
4429 if ac_fn_cxx_try_compile "$LINENO"; then :
4430 ac_compiler_gnu=yes
4431 else
4432 ac_compiler_gnu=no
4434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4435 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4439 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4440 if test $ac_compiler_gnu = yes; then
4441 GXX=yes
4442 else
4443 GXX=
4445 ac_test_CXXFLAGS=${CXXFLAGS+set}
4446 ac_save_CXXFLAGS=$CXXFLAGS
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4448 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4449 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4450 $as_echo_n "(cached) " >&6
4451 else
4452 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4453 ac_cxx_werror_flag=yes
4454 ac_cv_prog_cxx_g=no
4455 CXXFLAGS="-g"
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4460 main ()
4464 return 0;
4466 _ACEOF
4467 if ac_fn_cxx_try_compile "$LINENO"; then :
4468 ac_cv_prog_cxx_g=yes
4469 else
4470 CXXFLAGS=""
4471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h. */
4475 main ()
4479 return 0;
4481 _ACEOF
4482 if ac_fn_cxx_try_compile "$LINENO"; then :
4484 else
4485 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4486 CXXFLAGS="-g"
4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h. */
4491 main ()
4495 return 0;
4497 _ACEOF
4498 if ac_fn_cxx_try_compile "$LINENO"; then :
4499 ac_cv_prog_cxx_g=yes
4501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4506 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4509 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4510 if test "$ac_test_CXXFLAGS" = set; then
4511 CXXFLAGS=$ac_save_CXXFLAGS
4512 elif test $ac_cv_prog_cxx_g = yes; then
4513 if test "$GXX" = yes; then
4514 CXXFLAGS="-g -O2"
4515 else
4516 CXXFLAGS="-g"
4518 else
4519 if test "$GXX" = yes; then
4520 CXXFLAGS="-O2"
4521 else
4522 CXXFLAGS=
4525 ac_ext=c
4526 ac_cpp='$CPP $CPPFLAGS'
4527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4534 if test -n "$ac_tool_prefix"; then
4535 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4536 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538 $as_echo_n "checking for $ac_word... " >&6; }
4539 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4540 $as_echo_n "(cached) " >&6
4541 else
4542 if test -n "$GNATBIND"; then
4543 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4544 else
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $PATH
4548 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=.
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4552 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 break 2
4556 done
4557 done
4558 IFS=$as_save_IFS
4562 GNATBIND=$ac_cv_prog_GNATBIND
4563 if test -n "$GNATBIND"; then
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4565 $as_echo "$GNATBIND" >&6; }
4566 else
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4568 $as_echo "no" >&6; }
4573 if test -z "$ac_cv_prog_GNATBIND"; then
4574 ac_ct_GNATBIND=$GNATBIND
4575 # Extract the first word of "gnatbind", so it can be a program name with args.
4576 set dummy gnatbind; ac_word=$2
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4578 $as_echo_n "checking for $ac_word... " >&6; }
4579 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4580 $as_echo_n "(cached) " >&6
4581 else
4582 if test -n "$ac_ct_GNATBIND"; then
4583 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4584 else
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 for as_dir in $PATH
4588 IFS=$as_save_IFS
4589 test -z "$as_dir" && as_dir=.
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4592 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4594 break 2
4596 done
4597 done
4598 IFS=$as_save_IFS
4602 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4603 if test -n "$ac_ct_GNATBIND"; then
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4605 $as_echo "$ac_ct_GNATBIND" >&6; }
4606 else
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4608 $as_echo "no" >&6; }
4611 if test "x$ac_ct_GNATBIND" = x; then
4612 GNATBIND="no"
4613 else
4614 case $cross_compiling:$ac_tool_warned in
4615 yes:)
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4618 ac_tool_warned=yes ;;
4619 esac
4620 GNATBIND=$ac_ct_GNATBIND
4622 else
4623 GNATBIND="$ac_cv_prog_GNATBIND"
4626 if test -n "$ac_tool_prefix"; then
4627 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4628 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4630 $as_echo_n "checking for $ac_word... " >&6; }
4631 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4632 $as_echo_n "(cached) " >&6
4633 else
4634 if test -n "$GNATMAKE"; then
4635 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4636 else
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4644 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 break 2
4648 done
4649 done
4650 IFS=$as_save_IFS
4654 GNATMAKE=$ac_cv_prog_GNATMAKE
4655 if test -n "$GNATMAKE"; then
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4657 $as_echo "$GNATMAKE" >&6; }
4658 else
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4660 $as_echo "no" >&6; }
4665 if test -z "$ac_cv_prog_GNATMAKE"; then
4666 ac_ct_GNATMAKE=$GNATMAKE
4667 # Extract the first word of "gnatmake", so it can be a program name with args.
4668 set dummy gnatmake; ac_word=$2
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4670 $as_echo_n "checking for $ac_word... " >&6; }
4671 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4672 $as_echo_n "(cached) " >&6
4673 else
4674 if test -n "$ac_ct_GNATMAKE"; then
4675 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4676 else
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 for as_dir in $PATH
4680 IFS=$as_save_IFS
4681 test -z "$as_dir" && as_dir=.
4682 for ac_exec_ext in '' $ac_executable_extensions; do
4683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4684 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4686 break 2
4688 done
4689 done
4690 IFS=$as_save_IFS
4694 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4695 if test -n "$ac_ct_GNATMAKE"; then
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4697 $as_echo "$ac_ct_GNATMAKE" >&6; }
4698 else
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4700 $as_echo "no" >&6; }
4703 if test "x$ac_ct_GNATMAKE" = x; then
4704 GNATMAKE="no"
4705 else
4706 case $cross_compiling:$ac_tool_warned in
4707 yes:)
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4710 ac_tool_warned=yes ;;
4711 esac
4712 GNATMAKE=$ac_ct_GNATMAKE
4714 else
4715 GNATMAKE="$ac_cv_prog_GNATMAKE"
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4719 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4720 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 cat >conftest.adb <<EOF
4724 procedure conftest is begin null; end conftest;
4726 acx_cv_cc_gcc_supports_ada=no
4727 # There is a bug in old released versions of GCC which causes the
4728 # driver to exit successfully when the appropriate language module
4729 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4730 # Therefore we must check for the error message as well as an
4731 # unsuccessful exit.
4732 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4733 # given a .adb file, but produce no object file. So we must check
4734 # if an object file was really produced to guard against this.
4735 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4736 if test x"$errors" = x && test -f conftest.$ac_objext; then
4737 acx_cv_cc_gcc_supports_ada=yes
4739 rm -f conftest.*
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4742 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4744 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4745 have_gnat=yes
4746 else
4747 have_gnat=no
4751 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4752 # optimizations to be activated explicitly by the toplevel.
4753 case "$CC" in
4754 */prev-gcc/xgcc*) ;;
4755 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4756 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4757 esac
4761 # Determine PICFLAG for target gnatlib.
4766 case "${target}" in
4767 # PIC is the default on some targets or must not be used.
4768 *-*-darwin*)
4769 # PIC is the default on this platform
4770 # Common symbols not allowed in MH_DYLIB files
4771 PICFLAG_FOR_TARGET=-fno-common
4773 alpha*-dec-osf5*)
4774 # PIC is the default.
4776 hppa*64*-*-hpux*)
4777 # PIC is the default for 64-bit PA HP-UX.
4779 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4781 i[34567]86-*-mingw* | x86_64-*-mingw*)
4783 i[34567]86-*-interix[3-9]*)
4784 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4785 # Instead, we relocate shared libraries at runtime.
4787 i[34567]86-*-nto-qnx*)
4788 # QNX uses GNU C++, but need to define -shared option too, otherwise
4789 # it will coredump.
4790 PICFLAG_FOR_TARGET='-fPIC -shared'
4792 i[34567]86-pc-msdosdjgpp*)
4793 # DJGPP does not support shared libraries at all.
4795 ia64*-*-hpux*)
4796 # On IA64 HP-UX, PIC is the default but the pic flag
4797 # sets the default TLS model and affects inlining.
4798 PICFLAG_FOR_TARGET=-fPIC
4800 mips-sgi-irix6*)
4801 # PIC is the default.
4803 rs6000-ibm-aix* | powerpc-ibm-aix*)
4804 # All AIX code is PIC.
4807 # Some targets support both -fPIC and -fpic, but prefer the latter.
4808 # FIXME: Why?
4809 i[34567]86-*-* | x86_64-*-*)
4810 PICFLAG_FOR_TARGET=-fpic
4812 # FIXME: Override -fPIC default in libgcc only?
4813 sh-*-linux* | sh[2346lbe]*-*-linux*)
4814 PICFLAG_FOR_TARGET=-fpic
4816 # FIXME: Simplify to sh*-*-netbsd*?
4817 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4818 sh64-*-netbsd* | sh64l*-*-netbsd*)
4819 PICFLAG_FOR_TARGET=-fpic
4821 # Default to -fPIC unless specified otherwise.
4823 PICFLAG_FOR_TARGET=-fPIC
4825 esac
4827 # If the user explicitly uses -fpic/-fPIC, keep that.
4828 case "${CFLAGS_FOR_TARGET}" in
4829 *-fpic*)
4830 PICFLAG_FOR_TARGET=-fpic
4832 *-fPIC*)
4833 PICFLAG_FOR_TARGET=-fPIC
4835 esac
4839 # -------------------------
4840 # Check C compiler features
4841 # -------------------------
4844 ac_ext=c
4845 ac_cpp='$CPP $CPPFLAGS'
4846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4850 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4851 # On Suns, sometimes $CPP names a directory.
4852 if test -n "$CPP" && test -d "$CPP"; then
4853 CPP=
4855 if test -z "$CPP"; then
4856 if test "${ac_cv_prog_CPP+set}" = set; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 # Double quotes because CPP needs to be expanded
4860 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4862 ac_preproc_ok=false
4863 for ac_c_preproc_warn_flag in '' yes
4865 # Use a header file that comes with gcc, so configuring glibc
4866 # with a fresh cross-compiler works.
4867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4868 # <limits.h> exists even on freestanding compilers.
4869 # On the NeXT, cc -E runs the code through the compiler's parser,
4870 # not just through cpp. "Syntax error" is here to catch this case.
4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4873 #ifdef __STDC__
4874 # include <limits.h>
4875 #else
4876 # include <assert.h>
4877 #endif
4878 Syntax error
4879 _ACEOF
4880 if ac_fn_c_try_cpp "$LINENO"; then :
4882 else
4883 # Broken: fails on valid input.
4884 continue
4886 rm -f conftest.err conftest.$ac_ext
4888 # OK, works on sane cases. Now check whether nonexistent headers
4889 # can be detected and how.
4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h. */
4892 #include <ac_nonexistent.h>
4893 _ACEOF
4894 if ac_fn_c_try_cpp "$LINENO"; then :
4895 # Broken: success on invalid input.
4896 continue
4897 else
4898 # Passes both tests.
4899 ac_preproc_ok=:
4900 break
4902 rm -f conftest.err conftest.$ac_ext
4904 done
4905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4906 rm -f conftest.err conftest.$ac_ext
4907 if $ac_preproc_ok; then :
4908 break
4911 done
4912 ac_cv_prog_CPP=$CPP
4915 CPP=$ac_cv_prog_CPP
4916 else
4917 ac_cv_prog_CPP=$CPP
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4920 $as_echo "$CPP" >&6; }
4921 ac_preproc_ok=false
4922 for ac_c_preproc_warn_flag in '' yes
4924 # Use a header file that comes with gcc, so configuring glibc
4925 # with a fresh cross-compiler works.
4926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4927 # <limits.h> exists even on freestanding compilers.
4928 # On the NeXT, cc -E runs the code through the compiler's parser,
4929 # not just through cpp. "Syntax error" is here to catch this case.
4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4932 #ifdef __STDC__
4933 # include <limits.h>
4934 #else
4935 # include <assert.h>
4936 #endif
4937 Syntax error
4938 _ACEOF
4939 if ac_fn_c_try_cpp "$LINENO"; then :
4941 else
4942 # Broken: fails on valid input.
4943 continue
4945 rm -f conftest.err conftest.$ac_ext
4947 # OK, works on sane cases. Now check whether nonexistent headers
4948 # can be detected and how.
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4951 #include <ac_nonexistent.h>
4952 _ACEOF
4953 if ac_fn_c_try_cpp "$LINENO"; then :
4954 # Broken: success on invalid input.
4955 continue
4956 else
4957 # Passes both tests.
4958 ac_preproc_ok=:
4959 break
4961 rm -f conftest.err conftest.$ac_ext
4963 done
4964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4965 rm -f conftest.err conftest.$ac_ext
4966 if $ac_preproc_ok; then :
4968 else
4969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4971 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4972 See \`config.log' for more details." "$LINENO" 5; }
4975 ac_ext=c
4976 ac_cpp='$CPP $CPPFLAGS'
4977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4983 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4984 if test "${ac_cv_path_GREP+set}" = set; then :
4985 $as_echo_n "(cached) " >&6
4986 else
4987 if test -z "$GREP"; then
4988 ac_path_GREP_found=false
4989 # Loop through the user's path and test for each of PROGNAME-LIST
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
4995 for ac_prog in grep ggrep; do
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4998 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4999 # Check for GNU ac_path_GREP and select it if it is found.
5000 # Check for GNU $ac_path_GREP
5001 case `"$ac_path_GREP" --version 2>&1` in
5002 *GNU*)
5003 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5005 ac_count=0
5006 $as_echo_n 0123456789 >"conftest.in"
5007 while :
5009 cat "conftest.in" "conftest.in" >"conftest.tmp"
5010 mv "conftest.tmp" "conftest.in"
5011 cp "conftest.in" "conftest.nl"
5012 $as_echo 'GREP' >> "conftest.nl"
5013 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5014 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5015 as_fn_arith $ac_count + 1 && ac_count=$as_val
5016 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5017 # Best one so far, save it but keep looking for a better one
5018 ac_cv_path_GREP="$ac_path_GREP"
5019 ac_path_GREP_max=$ac_count
5021 # 10*(2^10) chars as input seems more than enough
5022 test $ac_count -gt 10 && break
5023 done
5024 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5025 esac
5027 $ac_path_GREP_found && break 3
5028 done
5029 done
5030 done
5031 IFS=$as_save_IFS
5032 if test -z "$ac_cv_path_GREP"; then
5033 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5035 else
5036 ac_cv_path_GREP=$GREP
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5041 $as_echo "$ac_cv_path_GREP" >&6; }
5042 GREP="$ac_cv_path_GREP"
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5046 $as_echo_n "checking for egrep... " >&6; }
5047 if test "${ac_cv_path_EGREP+set}" = set; then :
5048 $as_echo_n "(cached) " >&6
5049 else
5050 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5051 then ac_cv_path_EGREP="$GREP -E"
5052 else
5053 if test -z "$EGREP"; then
5054 ac_path_EGREP_found=false
5055 # Loop through the user's path and test for each of PROGNAME-LIST
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_prog in egrep; do
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5064 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5065 # Check for GNU ac_path_EGREP and select it if it is found.
5066 # Check for GNU $ac_path_EGREP
5067 case `"$ac_path_EGREP" --version 2>&1` in
5068 *GNU*)
5069 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5071 ac_count=0
5072 $as_echo_n 0123456789 >"conftest.in"
5073 while :
5075 cat "conftest.in" "conftest.in" >"conftest.tmp"
5076 mv "conftest.tmp" "conftest.in"
5077 cp "conftest.in" "conftest.nl"
5078 $as_echo 'EGREP' >> "conftest.nl"
5079 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5080 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5081 as_fn_arith $ac_count + 1 && ac_count=$as_val
5082 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5083 # Best one so far, save it but keep looking for a better one
5084 ac_cv_path_EGREP="$ac_path_EGREP"
5085 ac_path_EGREP_max=$ac_count
5087 # 10*(2^10) chars as input seems more than enough
5088 test $ac_count -gt 10 && break
5089 done
5090 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5091 esac
5093 $ac_path_EGREP_found && break 3
5094 done
5095 done
5096 done
5097 IFS=$as_save_IFS
5098 if test -z "$ac_cv_path_EGREP"; then
5099 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5101 else
5102 ac_cv_path_EGREP=$EGREP
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5108 $as_echo "$ac_cv_path_EGREP" >&6; }
5109 EGREP="$ac_cv_path_EGREP"
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5113 $as_echo_n "checking for ANSI C header files... " >&6; }
5114 if test "${ac_cv_header_stdc+set}" = set; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118 /* end confdefs.h. */
5119 #include <stdlib.h>
5120 #include <stdarg.h>
5121 #include <string.h>
5122 #include <float.h>
5125 main ()
5129 return 0;
5131 _ACEOF
5132 if ac_fn_c_try_compile "$LINENO"; then :
5133 ac_cv_header_stdc=yes
5134 else
5135 ac_cv_header_stdc=no
5137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5139 if test $ac_cv_header_stdc = yes; then
5140 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142 /* end confdefs.h. */
5143 #include <string.h>
5145 _ACEOF
5146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5147 $EGREP "memchr" >/dev/null 2>&1; then :
5149 else
5150 ac_cv_header_stdc=no
5152 rm -f conftest*
5156 if test $ac_cv_header_stdc = yes; then
5157 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159 /* end confdefs.h. */
5160 #include <stdlib.h>
5162 _ACEOF
5163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5164 $EGREP "free" >/dev/null 2>&1; then :
5166 else
5167 ac_cv_header_stdc=no
5169 rm -f conftest*
5173 if test $ac_cv_header_stdc = yes; then
5174 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5175 if test "$cross_compiling" = yes; then :
5177 else
5178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5180 #include <ctype.h>
5181 #include <stdlib.h>
5182 #if ((' ' & 0x0FF) == 0x020)
5183 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5184 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5185 #else
5186 # define ISLOWER(c) \
5187 (('a' <= (c) && (c) <= 'i') \
5188 || ('j' <= (c) && (c) <= 'r') \
5189 || ('s' <= (c) && (c) <= 'z'))
5190 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5191 #endif
5193 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5195 main ()
5197 int i;
5198 for (i = 0; i < 256; i++)
5199 if (XOR (islower (i), ISLOWER (i))
5200 || toupper (i) != TOUPPER (i))
5201 return 2;
5202 return 0;
5204 _ACEOF
5205 if ac_fn_c_try_run "$LINENO"; then :
5207 else
5208 ac_cv_header_stdc=no
5210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5211 conftest.$ac_objext conftest.beam conftest.$ac_ext
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5217 $as_echo "$ac_cv_header_stdc" >&6; }
5218 if test $ac_cv_header_stdc = yes; then
5220 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5224 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5225 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5226 inttypes.h stdint.h unistd.h
5227 do :
5228 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5229 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5231 eval as_val=\$$as_ac_Header
5232 if test "x$as_val" = x""yes; then :
5233 cat >>confdefs.h <<_ACEOF
5234 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5235 _ACEOF
5239 done
5243 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5244 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5245 MINIX=yes
5246 else
5247 MINIX=
5251 if test "$MINIX" = yes; then
5253 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5256 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5259 $as_echo "#define _MINIX 1" >>confdefs.h
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5265 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5266 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5272 # define __EXTENSIONS__ 1
5273 $ac_includes_default
5275 main ()
5279 return 0;
5281 _ACEOF
5282 if ac_fn_c_try_compile "$LINENO"; then :
5283 ac_cv_safe_to_define___extensions__=yes
5284 else
5285 ac_cv_safe_to_define___extensions__=no
5287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5290 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5291 test $ac_cv_safe_to_define___extensions__ = yes &&
5292 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5294 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5296 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5298 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5300 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5303 ac_ext=c
5304 ac_cpp='$CPP $CPPFLAGS'
5305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5309 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5310 # On Suns, sometimes $CPP names a directory.
5311 if test -n "$CPP" && test -d "$CPP"; then
5312 CPP=
5314 if test -z "$CPP"; then
5315 if test "${ac_cv_prog_CPP+set}" = set; then :
5316 $as_echo_n "(cached) " >&6
5317 else
5318 # Double quotes because CPP needs to be expanded
5319 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5321 ac_preproc_ok=false
5322 for ac_c_preproc_warn_flag in '' yes
5324 # Use a header file that comes with gcc, so configuring glibc
5325 # with a fresh cross-compiler works.
5326 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5327 # <limits.h> exists even on freestanding compilers.
5328 # On the NeXT, cc -E runs the code through the compiler's parser,
5329 # not just through cpp. "Syntax error" is here to catch this case.
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5332 #ifdef __STDC__
5333 # include <limits.h>
5334 #else
5335 # include <assert.h>
5336 #endif
5337 Syntax error
5338 _ACEOF
5339 if ac_fn_c_try_cpp "$LINENO"; then :
5341 else
5342 # Broken: fails on valid input.
5343 continue
5345 rm -f conftest.err conftest.$ac_ext
5347 # OK, works on sane cases. Now check whether nonexistent headers
5348 # can be detected and how.
5349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350 /* end confdefs.h. */
5351 #include <ac_nonexistent.h>
5352 _ACEOF
5353 if ac_fn_c_try_cpp "$LINENO"; then :
5354 # Broken: success on invalid input.
5355 continue
5356 else
5357 # Passes both tests.
5358 ac_preproc_ok=:
5359 break
5361 rm -f conftest.err conftest.$ac_ext
5363 done
5364 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5365 rm -f conftest.err conftest.$ac_ext
5366 if $ac_preproc_ok; then :
5367 break
5370 done
5371 ac_cv_prog_CPP=$CPP
5374 CPP=$ac_cv_prog_CPP
5375 else
5376 ac_cv_prog_CPP=$CPP
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5379 $as_echo "$CPP" >&6; }
5380 ac_preproc_ok=false
5381 for ac_c_preproc_warn_flag in '' yes
5383 # Use a header file that comes with gcc, so configuring glibc
5384 # with a fresh cross-compiler works.
5385 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5386 # <limits.h> exists even on freestanding compilers.
5387 # On the NeXT, cc -E runs the code through the compiler's parser,
5388 # not just through cpp. "Syntax error" is here to catch this case.
5389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h. */
5391 #ifdef __STDC__
5392 # include <limits.h>
5393 #else
5394 # include <assert.h>
5395 #endif
5396 Syntax error
5397 _ACEOF
5398 if ac_fn_c_try_cpp "$LINENO"; then :
5400 else
5401 # Broken: fails on valid input.
5402 continue
5404 rm -f conftest.err conftest.$ac_ext
5406 # OK, works on sane cases. Now check whether nonexistent headers
5407 # can be detected and how.
5408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409 /* end confdefs.h. */
5410 #include <ac_nonexistent.h>
5411 _ACEOF
5412 if ac_fn_c_try_cpp "$LINENO"; then :
5413 # Broken: success on invalid input.
5414 continue
5415 else
5416 # Passes both tests.
5417 ac_preproc_ok=:
5418 break
5420 rm -f conftest.err conftest.$ac_ext
5422 done
5423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5424 rm -f conftest.err conftest.$ac_ext
5425 if $ac_preproc_ok; then :
5427 else
5428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5430 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5431 See \`config.log' for more details." "$LINENO" 5; }
5434 ac_ext=c
5435 ac_cpp='$CPP $CPPFLAGS'
5436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5441 $as_echo_n "checking for inline... " >&6; }
5442 if test "${ac_cv_c_inline+set}" = set; then :
5443 $as_echo_n "(cached) " >&6
5444 else
5445 ac_cv_c_inline=no
5446 for ac_kw in inline __inline__ __inline; do
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5449 #ifndef __cplusplus
5450 typedef int foo_t;
5451 static $ac_kw foo_t static_foo () {return 0; }
5452 $ac_kw foo_t foo () {return 0; }
5453 #endif
5455 _ACEOF
5456 if ac_fn_c_try_compile "$LINENO"; then :
5457 ac_cv_c_inline=$ac_kw
5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 test "$ac_cv_c_inline" != no && break
5461 done
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5465 $as_echo "$ac_cv_c_inline" >&6; }
5467 case $ac_cv_c_inline in
5468 inline | yes) ;;
5470 case $ac_cv_c_inline in
5471 no) ac_val=;;
5472 *) ac_val=$ac_cv_c_inline;;
5473 esac
5474 cat >>confdefs.h <<_ACEOF
5475 #ifndef __cplusplus
5476 #define inline $ac_val
5477 #endif
5478 _ACEOF
5480 esac
5483 # Check whether --enable-largefile was given.
5484 if test "${enable_largefile+set}" = set; then :
5485 enableval=$enable_largefile;
5488 if test "$enable_largefile" != no; then
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5491 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5492 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5493 $as_echo_n "(cached) " >&6
5494 else
5495 ac_cv_sys_largefile_CC=no
5496 if test "$GCC" != yes; then
5497 ac_save_CC=$CC
5498 while :; do
5499 # IRIX 6.2 and later do not support large files by default,
5500 # so use the C compiler's -n32 option if that helps.
5501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5503 #include <sys/types.h>
5504 /* Check that off_t can represent 2**63 - 1 correctly.
5505 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5506 since some C++ compilers masquerading as C compilers
5507 incorrectly reject 9223372036854775807. */
5508 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5509 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5510 && LARGE_OFF_T % 2147483647 == 1)
5511 ? 1 : -1];
5513 main ()
5517 return 0;
5519 _ACEOF
5520 if ac_fn_c_try_compile "$LINENO"; then :
5521 break
5523 rm -f core conftest.err conftest.$ac_objext
5524 CC="$CC -n32"
5525 if ac_fn_c_try_compile "$LINENO"; then :
5526 ac_cv_sys_largefile_CC=' -n32'; break
5528 rm -f core conftest.err conftest.$ac_objext
5529 break
5530 done
5531 CC=$ac_save_CC
5532 rm -f conftest.$ac_ext
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5536 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5537 if test "$ac_cv_sys_largefile_CC" != no; then
5538 CC=$CC$ac_cv_sys_largefile_CC
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5542 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5543 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 while :; do
5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548 /* end confdefs.h. */
5549 #include <sys/types.h>
5550 /* Check that off_t can represent 2**63 - 1 correctly.
5551 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5552 since some C++ compilers masquerading as C compilers
5553 incorrectly reject 9223372036854775807. */
5554 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5555 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5556 && LARGE_OFF_T % 2147483647 == 1)
5557 ? 1 : -1];
5559 main ()
5563 return 0;
5565 _ACEOF
5566 if ac_fn_c_try_compile "$LINENO"; then :
5567 ac_cv_sys_file_offset_bits=no; break
5569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h. */
5572 #define _FILE_OFFSET_BITS 64
5573 #include <sys/types.h>
5574 /* Check that off_t can represent 2**63 - 1 correctly.
5575 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5576 since some C++ compilers masquerading as C compilers
5577 incorrectly reject 9223372036854775807. */
5578 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5579 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5580 && LARGE_OFF_T % 2147483647 == 1)
5581 ? 1 : -1];
5583 main ()
5587 return 0;
5589 _ACEOF
5590 if ac_fn_c_try_compile "$LINENO"; then :
5591 ac_cv_sys_file_offset_bits=64; break
5593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5594 ac_cv_sys_file_offset_bits=unknown
5595 break
5596 done
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5599 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5600 case $ac_cv_sys_file_offset_bits in #(
5601 no | unknown) ;;
5603 cat >>confdefs.h <<_ACEOF
5604 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5605 _ACEOF
5607 esac
5608 rm -rf conftest*
5609 if test $ac_cv_sys_file_offset_bits = unknown; then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5611 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5612 if test "${ac_cv_sys_large_files+set}" = set; then :
5613 $as_echo_n "(cached) " >&6
5614 else
5615 while :; do
5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617 /* end confdefs.h. */
5618 #include <sys/types.h>
5619 /* Check that off_t can represent 2**63 - 1 correctly.
5620 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5621 since some C++ compilers masquerading as C compilers
5622 incorrectly reject 9223372036854775807. */
5623 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5624 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5625 && LARGE_OFF_T % 2147483647 == 1)
5626 ? 1 : -1];
5628 main ()
5632 return 0;
5634 _ACEOF
5635 if ac_fn_c_try_compile "$LINENO"; then :
5636 ac_cv_sys_large_files=no; break
5638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h. */
5641 #define _LARGE_FILES 1
5642 #include <sys/types.h>
5643 /* Check that off_t can represent 2**63 - 1 correctly.
5644 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5645 since some C++ compilers masquerading as C compilers
5646 incorrectly reject 9223372036854775807. */
5647 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5648 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5649 && LARGE_OFF_T % 2147483647 == 1)
5650 ? 1 : -1];
5652 main ()
5656 return 0;
5658 _ACEOF
5659 if ac_fn_c_try_compile "$LINENO"; then :
5660 ac_cv_sys_large_files=1; break
5662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663 ac_cv_sys_large_files=unknown
5664 break
5665 done
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5668 $as_echo "$ac_cv_sys_large_files" >&6; }
5669 case $ac_cv_sys_large_files in #(
5670 no | unknown) ;;
5672 cat >>confdefs.h <<_ACEOF
5673 #define _LARGE_FILES $ac_cv_sys_large_files
5674 _ACEOF
5676 esac
5677 rm -rf conftest*
5682 # sizeof(char) is 1 by definition.
5683 # The cast to long int works around a bug in the HP C Compiler
5684 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5685 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5686 # This bug is HP SR number 8606223364.
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5688 $as_echo_n "checking size of void *... " >&6; }
5689 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5690 $as_echo_n "(cached) " >&6
5691 else
5692 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5694 else
5695 if test "$ac_cv_type_void_p" = yes; then
5696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5698 { as_fn_set_status 77
5699 as_fn_error "cannot compute sizeof (void *)
5700 See \`config.log' for more details." "$LINENO" 5; }; }
5701 else
5702 ac_cv_sizeof_void_p=0
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5708 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5712 cat >>confdefs.h <<_ACEOF
5713 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5714 _ACEOF
5717 # The cast to long int works around a bug in the HP C Compiler
5718 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5719 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5720 # This bug is HP SR number 8606223364.
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5722 $as_echo_n "checking size of short... " >&6; }
5723 if test "${ac_cv_sizeof_short+set}" = set; then :
5724 $as_echo_n "(cached) " >&6
5725 else
5726 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5728 else
5729 if test "$ac_cv_type_short" = yes; then
5730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5732 { as_fn_set_status 77
5733 as_fn_error "cannot compute sizeof (short)
5734 See \`config.log' for more details." "$LINENO" 5; }; }
5735 else
5736 ac_cv_sizeof_short=0
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5742 $as_echo "$ac_cv_sizeof_short" >&6; }
5746 cat >>confdefs.h <<_ACEOF
5747 #define SIZEOF_SHORT $ac_cv_sizeof_short
5748 _ACEOF
5751 # The cast to long int works around a bug in the HP C Compiler
5752 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5753 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5754 # This bug is HP SR number 8606223364.
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5756 $as_echo_n "checking size of int... " >&6; }
5757 if test "${ac_cv_sizeof_int+set}" = set; then :
5758 $as_echo_n "(cached) " >&6
5759 else
5760 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5762 else
5763 if test "$ac_cv_type_int" = yes; then
5764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5766 { as_fn_set_status 77
5767 as_fn_error "cannot compute sizeof (int)
5768 See \`config.log' for more details." "$LINENO" 5; }; }
5769 else
5770 ac_cv_sizeof_int=0
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5776 $as_echo "$ac_cv_sizeof_int" >&6; }
5780 cat >>confdefs.h <<_ACEOF
5781 #define SIZEOF_INT $ac_cv_sizeof_int
5782 _ACEOF
5785 # The cast to long int works around a bug in the HP C Compiler
5786 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5787 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5788 # This bug is HP SR number 8606223364.
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5790 $as_echo_n "checking size of long... " >&6; }
5791 if test "${ac_cv_sizeof_long+set}" = set; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5796 else
5797 if test "$ac_cv_type_long" = yes; then
5798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5800 { as_fn_set_status 77
5801 as_fn_error "cannot compute sizeof (long)
5802 See \`config.log' for more details." "$LINENO" 5; }; }
5803 else
5804 ac_cv_sizeof_long=0
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5810 $as_echo "$ac_cv_sizeof_long" >&6; }
5814 cat >>confdefs.h <<_ACEOF
5815 #define SIZEOF_LONG $ac_cv_sizeof_long
5816 _ACEOF
5819 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5820 if test "x$ac_cv_type_long_long" = x""yes; then :
5822 cat >>confdefs.h <<_ACEOF
5823 #define HAVE_LONG_LONG 1
5824 _ACEOF
5826 # The cast to long int works around a bug in the HP C Compiler
5827 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5828 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5829 # This bug is HP SR number 8606223364.
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5831 $as_echo_n "checking size of long long... " >&6; }
5832 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5833 $as_echo_n "(cached) " >&6
5834 else
5835 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5837 else
5838 if test "$ac_cv_type_long_long" = yes; then
5839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5841 { as_fn_set_status 77
5842 as_fn_error "cannot compute sizeof (long long)
5843 See \`config.log' for more details." "$LINENO" 5; }; }
5844 else
5845 ac_cv_sizeof_long_long=0
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5851 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5855 cat >>confdefs.h <<_ACEOF
5856 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5857 _ACEOF
5862 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5863 if test "x$ac_cv_type___int64" = x""yes; then :
5865 cat >>confdefs.h <<_ACEOF
5866 #define HAVE___INT64 1
5867 _ACEOF
5869 # The cast to long int works around a bug in the HP C Compiler
5870 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5871 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5872 # This bug is HP SR number 8606223364.
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5874 $as_echo_n "checking size of __int64... " >&6; }
5875 if test "${ac_cv_sizeof___int64+set}" = set; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5878 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5880 else
5881 if test "$ac_cv_type___int64" = yes; then
5882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5884 { as_fn_set_status 77
5885 as_fn_error "cannot compute sizeof (__int64)
5886 See \`config.log' for more details." "$LINENO" 5; }; }
5887 else
5888 ac_cv_sizeof___int64=0
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5894 $as_echo "$ac_cv_sizeof___int64" >&6; }
5898 cat >>confdefs.h <<_ACEOF
5899 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5900 _ACEOF
5905 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5906 case $ac_cv_c_int8_t in #(
5907 no|yes) ;; #(
5910 cat >>confdefs.h <<_ACEOF
5911 #define int8_t $ac_cv_c_int8_t
5912 _ACEOF
5914 esac
5916 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5917 case $ac_cv_c_int16_t in #(
5918 no|yes) ;; #(
5921 cat >>confdefs.h <<_ACEOF
5922 #define int16_t $ac_cv_c_int16_t
5923 _ACEOF
5925 esac
5927 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5928 case $ac_cv_c_int32_t in #(
5929 no|yes) ;; #(
5932 cat >>confdefs.h <<_ACEOF
5933 #define int32_t $ac_cv_c_int32_t
5934 _ACEOF
5936 esac
5938 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5939 case $ac_cv_c_int64_t in #(
5940 no|yes) ;; #(
5943 cat >>confdefs.h <<_ACEOF
5944 #define int64_t $ac_cv_c_int64_t
5945 _ACEOF
5947 esac
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5951 $as_echo_n "checking for long long int... " >&6; }
5952 if test "${ac_cv_type_long_long_int+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5956 /* end confdefs.h. */
5958 /* For now, do not test the preprocessor; as of 2007 there are too many
5959 implementations with broken preprocessors. Perhaps this can
5960 be revisited in 2012. In the meantime, code should not expect
5961 #if to work with literals wider than 32 bits. */
5962 /* Test literals. */
5963 long long int ll = 9223372036854775807ll;
5964 long long int nll = -9223372036854775807LL;
5965 unsigned long long int ull = 18446744073709551615ULL;
5966 /* Test constant expressions. */
5967 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5968 ? 1 : -1)];
5969 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5970 ? 1 : -1)];
5971 int i = 63;
5973 main ()
5975 /* Test availability of runtime routines for shift and division. */
5976 long long int llmax = 9223372036854775807ll;
5977 unsigned long long int ullmax = 18446744073709551615ull;
5978 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5979 | (llmax / ll) | (llmax % ll)
5980 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5981 | (ullmax / ull) | (ullmax % ull));
5983 return 0;
5986 _ACEOF
5987 if ac_fn_c_try_link "$LINENO"; then :
5988 if test "$cross_compiling" = yes; then :
5989 ac_cv_type_long_long_int=yes
5990 else
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h. */
5993 #include <limits.h>
5994 #ifndef LLONG_MAX
5995 # define HALF \
5996 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5997 # define LLONG_MAX (HALF - 1 + HALF)
5998 #endif
6000 main ()
6002 long long int n = 1;
6003 int i;
6004 for (i = 0; ; i++)
6006 long long int m = n << i;
6007 if (m >> i != n)
6008 return 1;
6009 if (LLONG_MAX / 2 < m)
6010 break;
6012 return 0;
6014 return 0;
6016 _ACEOF
6017 if ac_fn_c_try_run "$LINENO"; then :
6018 ac_cv_type_long_long_int=yes
6019 else
6020 ac_cv_type_long_long_int=no
6022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6023 conftest.$ac_objext conftest.beam conftest.$ac_ext
6026 else
6027 ac_cv_type_long_long_int=no
6029 rm -f core conftest.err conftest.$ac_objext \
6030 conftest$ac_exeext conftest.$ac_ext
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6033 $as_echo "$ac_cv_type_long_long_int" >&6; }
6034 if test $ac_cv_type_long_long_int = yes; then
6036 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6042 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6043 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6045 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6047 else
6048 test $ac_cv_type_long_long_int = yes \
6049 && ac_type='long long int' \
6050 || ac_type='long int'
6052 cat >>confdefs.h <<_ACEOF
6053 #define intmax_t $ac_type
6054 _ACEOF
6060 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6061 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6063 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6065 else
6066 for ac_type in 'int' 'long int' 'long long int'; do
6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h. */
6069 $ac_includes_default
6071 main ()
6073 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6074 test_array [0] = 0
6077 return 0;
6079 _ACEOF
6080 if ac_fn_c_try_compile "$LINENO"; then :
6082 cat >>confdefs.h <<_ACEOF
6083 #define intptr_t $ac_type
6084 _ACEOF
6086 ac_type=
6088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6089 test -z "$ac_type" && break
6090 done
6094 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6095 case $ac_cv_c_uint8_t in #(
6096 no|yes) ;; #(
6099 $as_echo "#define _UINT8_T 1" >>confdefs.h
6102 cat >>confdefs.h <<_ACEOF
6103 #define uint8_t $ac_cv_c_uint8_t
6104 _ACEOF
6106 esac
6108 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6109 case $ac_cv_c_uint16_t in #(
6110 no|yes) ;; #(
6114 cat >>confdefs.h <<_ACEOF
6115 #define uint16_t $ac_cv_c_uint16_t
6116 _ACEOF
6118 esac
6120 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6121 case $ac_cv_c_uint32_t in #(
6122 no|yes) ;; #(
6125 $as_echo "#define _UINT32_T 1" >>confdefs.h
6128 cat >>confdefs.h <<_ACEOF
6129 #define uint32_t $ac_cv_c_uint32_t
6130 _ACEOF
6132 esac
6134 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6135 case $ac_cv_c_uint64_t in #(
6136 no|yes) ;; #(
6139 $as_echo "#define _UINT64_T 1" >>confdefs.h
6142 cat >>confdefs.h <<_ACEOF
6143 #define uint64_t $ac_cv_c_uint64_t
6144 _ACEOF
6146 esac
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6150 $as_echo_n "checking for unsigned long long int... " >&6; }
6151 if test "${ac_cv_type_unsigned_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_c_try_link "$LINENO"; then :
6187 ac_cv_type_unsigned_long_long_int=yes
6188 else
6189 ac_cv_type_unsigned_long_long_int=no
6191 rm -f core conftest.err conftest.$ac_objext \
6192 conftest$ac_exeext conftest.$ac_ext
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6195 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6196 if test $ac_cv_type_unsigned_long_long_int = yes; then
6198 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6204 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6205 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6207 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6209 else
6210 test $ac_cv_type_unsigned_long_long_int = yes \
6211 && ac_type='unsigned long long int' \
6212 || ac_type='unsigned long int'
6214 cat >>confdefs.h <<_ACEOF
6215 #define uintmax_t $ac_type
6216 _ACEOF
6222 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6223 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6225 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6227 else
6228 for ac_type in 'unsigned int' 'unsigned long int' \
6229 'unsigned long long int'; do
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h. */
6232 $ac_includes_default
6234 main ()
6236 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6237 test_array [0] = 0
6240 return 0;
6242 _ACEOF
6243 if ac_fn_c_try_compile "$LINENO"; then :
6245 cat >>confdefs.h <<_ACEOF
6246 #define uintptr_t $ac_type
6247 _ACEOF
6249 ac_type=
6251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6252 test -z "$ac_type" && break
6253 done
6270 # ---------------------
6271 # Warnings and checking
6272 # ---------------------
6274 # Check $CC warning features (if it's GCC).
6275 # We want to use -pedantic, but we don't want warnings about
6276 # * 'long long'
6277 # * variadic macros
6278 # * overlong strings
6279 # * C++11 narrowing conversions in { }
6280 # So, we only use -pedantic if we can disable those warnings.
6282 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6283 # Check whether --enable-build-format-warnings was given.
6284 if test "${enable_build_format_warnings+set}" = set; then :
6285 enableval=$enable_build_format_warnings;
6286 else
6287 enable_build_format_warnings=yes
6290 if test $enable_build_format_warnings = no; then :
6291 wf_opt=-Wno-format
6292 else
6293 wf_opt=
6295 loose_warn=
6296 save_CFLAGS="$CFLAGS"
6297 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6298 # Do the check with the no- prefix removed since gcc silently
6299 # accepts any -Wno-* option on purpose
6300 case $real_option in
6301 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6302 *) option=$real_option ;;
6303 esac
6304 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6307 $as_echo_n "checking whether $CC supports $option... " >&6; }
6308 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6309 $as_echo_n "(cached) " >&6
6310 else
6311 CFLAGS="$option"
6312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313 /* end confdefs.h. */
6316 main ()
6320 return 0;
6322 _ACEOF
6323 if ac_fn_c_try_compile "$LINENO"; then :
6324 eval "$as_acx_Woption=yes"
6325 else
6326 eval "$as_acx_Woption=no"
6328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6331 eval ac_res=\$$as_acx_Woption
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6333 $as_echo "$ac_res" >&6; }
6334 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6335 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6337 done
6338 CFLAGS="$save_CFLAGS"
6340 c_loose_warn=
6341 save_CFLAGS="$CFLAGS"
6342 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6343 # Do the check with the no- prefix removed since gcc silently
6344 # accepts any -Wno-* option on purpose
6345 case $real_option in
6346 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6347 *) option=$real_option ;;
6348 esac
6349 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6352 $as_echo_n "checking whether $CC supports $option... " >&6; }
6353 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6354 $as_echo_n "(cached) " >&6
6355 else
6356 CFLAGS="$option"
6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358 /* end confdefs.h. */
6361 main ()
6365 return 0;
6367 _ACEOF
6368 if ac_fn_c_try_compile "$LINENO"; then :
6369 eval "$as_acx_Woption=yes"
6370 else
6371 eval "$as_acx_Woption=no"
6373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6376 eval ac_res=\$$as_acx_Woption
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6378 $as_echo "$ac_res" >&6; }
6379 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6380 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6382 done
6383 CFLAGS="$save_CFLAGS"
6385 strict_warn=
6386 save_CFLAGS="$CFLAGS"
6387 for real_option in -Wmissing-format-attribute; do
6388 # Do the check with the no- prefix removed since gcc silently
6389 # accepts any -Wno-* option on purpose
6390 case $real_option in
6391 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6392 *) option=$real_option ;;
6393 esac
6394 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6397 $as_echo_n "checking whether $CC supports $option... " >&6; }
6398 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6399 $as_echo_n "(cached) " >&6
6400 else
6401 CFLAGS="$option"
6402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h. */
6406 main ()
6410 return 0;
6412 _ACEOF
6413 if ac_fn_c_try_compile "$LINENO"; then :
6414 eval "$as_acx_Woption=yes"
6415 else
6416 eval "$as_acx_Woption=no"
6418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421 eval ac_res=\$$as_acx_Woption
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6423 $as_echo "$ac_res" >&6; }
6424 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6425 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6427 done
6428 CFLAGS="$save_CFLAGS"
6430 c_strict_warn=
6431 save_CFLAGS="$CFLAGS"
6432 for real_option in -Wold-style-definition -Wc++-compat; do
6433 # Do the check with the no- prefix removed since gcc silently
6434 # accepts any -Wno-* option on purpose
6435 case $real_option in
6436 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6437 *) option=$real_option ;;
6438 esac
6439 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6442 $as_echo_n "checking whether $CC supports $option... " >&6; }
6443 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 CFLAGS="$option"
6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h. */
6451 main ()
6455 return 0;
6457 _ACEOF
6458 if ac_fn_c_try_compile "$LINENO"; then :
6459 eval "$as_acx_Woption=yes"
6460 else
6461 eval "$as_acx_Woption=no"
6463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6466 eval ac_res=\$$as_acx_Woption
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6468 $as_echo "$ac_res" >&6; }
6469 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6470 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6472 done
6473 CFLAGS="$save_CFLAGS"
6475 # Do the check with the no- prefix removed from the warning options
6476 # since gcc silently accepts any -Wno-* option on purpose
6477 if test "$GCC" = yes; then :
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6479 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6480 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6481 $as_echo_n "(cached) " >&6
6482 else
6483 save_CFLAGS="$CFLAGS"
6484 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6486 /* end confdefs.h. */
6489 main ()
6493 return 0;
6495 _ACEOF
6496 if ac_fn_c_try_compile "$LINENO"; then :
6497 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6498 else
6499 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6502 CFLAGS="$save_CFLAGS"
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6505 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6506 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6507 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6512 # Check whether --enable-werror-always was given.
6513 if test "${enable_werror_always+set}" = set; then :
6514 enableval=$enable_werror_always;
6515 else
6516 enable_werror_always=no
6519 if test $enable_werror_always = yes; then :
6520 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6525 # The above macros do nothing if the compiler is not GCC. However, the
6526 # Makefile has more goo to add other flags, so these variables are used
6527 # to enable warnings only for GCC.
6528 warn_cflags=
6529 warn_cxxflags=
6530 if test "x$GCC" = "xyes"; then
6531 warn_cflags='$(GCC_WARN_CFLAGS)'
6532 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6537 # Disable exceptions and RTTI if building with g++
6538 noexception_flags=
6539 save_CFLAGS="$CFLAGS"
6540 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6541 # Do the check with the no- prefix removed since gcc silently
6542 # accepts any -Wno-* option on purpose
6543 case $real_option in
6544 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6545 *) option=$real_option ;;
6546 esac
6547 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6550 $as_echo_n "checking whether $CC supports $option... " >&6; }
6551 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6552 $as_echo_n "(cached) " >&6
6553 else
6554 CFLAGS="$option"
6555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6556 /* end confdefs.h. */
6559 main ()
6563 return 0;
6565 _ACEOF
6566 if ac_fn_c_try_compile "$LINENO"; then :
6567 eval "$as_acx_Woption=yes"
6568 else
6569 eval "$as_acx_Woption=no"
6571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6574 eval ac_res=\$$as_acx_Woption
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6576 $as_echo "$ac_res" >&6; }
6577 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6578 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6580 done
6581 CFLAGS="$save_CFLAGS"
6584 # Enable expensive internal checks
6585 is_release=
6586 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6587 is_release=yes
6590 # Check whether --enable-checking was given.
6591 if test "${enable_checking+set}" = set; then :
6592 enableval=$enable_checking; ac_checking_flags="${enableval}"
6593 else
6595 # Determine the default checks.
6596 if test x$is_release = x ; then
6597 ac_checking_flags=yes
6598 else
6599 ac_checking_flags=release
6603 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6604 for check in release $ac_checking_flags
6606 case $check in
6607 # these set all the flags to specific states
6608 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6609 ac_fold_checking= ; ac_gc_checking=1 ;
6610 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6611 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6612 ac_tree_checking=1 ; ac_valgrind_checking= ;
6613 ac_types_checking=1 ;;
6614 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6615 ac_fold_checking= ; ac_gc_checking= ;
6616 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6617 ac_rtlflag_checking= ; ac_runtime_checking= ;
6618 ac_tree_checking= ; ac_valgrind_checking= ;
6619 ac_types_checking= ;;
6620 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6621 ac_fold_checking=1 ; ac_gc_checking=1 ;
6622 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6623 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6624 ac_tree_checking=1 ; ac_valgrind_checking= ;
6625 ac_types_checking=1 ;;
6626 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6627 ac_fold_checking= ; ac_gc_checking= ;
6628 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6629 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6630 ac_tree_checking= ; ac_valgrind_checking= ;
6631 ac_types_checking= ;;
6632 # these enable particular checks
6633 assert) ac_assert_checking=1 ;;
6634 df) ac_df_checking=1 ;;
6635 fold) ac_fold_checking=1 ;;
6636 gc) ac_gc_checking=1 ;;
6637 gcac) ac_gc_always_collect=1 ;;
6638 gimple) ac_gimple_checking=1 ;;
6639 misc) ac_checking=1 ;;
6640 rtl) ac_rtl_checking=1 ;;
6641 rtlflag) ac_rtlflag_checking=1 ;;
6642 runtime) ac_runtime_checking=1 ;;
6643 tree) ac_tree_checking=1 ;;
6644 types) ac_types_checking=1 ;;
6645 valgrind) ac_valgrind_checking=1 ;;
6646 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6647 esac
6648 done
6649 IFS="$ac_save_IFS"
6651 nocommon_flag=""
6652 if test x$ac_checking != x ; then
6654 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6656 nocommon_flag=-fno-common
6659 if test x$ac_df_checking != x ; then
6661 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6664 if test x$ac_assert_checking != x ; then
6666 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6669 if test x$ac_gimple_checking != x ; then
6671 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6675 if test x$ac_runtime_checking != x ; then
6677 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6680 if test x$ac_tree_checking != x ; then
6682 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6684 TREEBROWSER=tree-browser.o
6685 TREECHECKING=yes
6687 if test x$ac_types_checking != x ; then
6689 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6694 if test x$ac_rtl_checking != x ; then
6696 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6699 if test x$ac_rtlflag_checking != x ; then
6701 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6704 if test x$ac_gc_checking != x ; then
6706 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6709 if test x$ac_gc_always_collect != x ; then
6711 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6714 if test x$ac_fold_checking != x ; then
6716 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6719 valgrind_path_defines=
6720 valgrind_command=
6722 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6723 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6724 have_valgrind_h=yes
6725 else
6726 have_valgrind_h=no
6731 if test x$ac_valgrind_checking != x ; then
6732 # It is certainly possible that there's valgrind but no valgrind.h.
6733 # GCC relies on making annotations so we must have both.
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6735 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6737 /* end confdefs.h. */
6738 #include <valgrind/memcheck.h>
6739 #ifndef VALGRIND_DISCARD
6740 #error VALGRIND_DISCARD not defined
6741 #endif
6742 _ACEOF
6743 if ac_fn_c_try_cpp "$LINENO"; then :
6744 gcc_cv_header_valgrind_memcheck_h=yes
6745 else
6746 gcc_cv_header_valgrind_memcheck_h=no
6748 rm -f conftest.err conftest.$ac_ext
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6750 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6752 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6755 #include <memcheck.h>
6756 #ifndef VALGRIND_DISCARD
6757 #error VALGRIND_DISCARD not defined
6758 #endif
6759 _ACEOF
6760 if ac_fn_c_try_cpp "$LINENO"; then :
6761 gcc_cv_header_memcheck_h=yes
6762 else
6763 gcc_cv_header_memcheck_h=no
6765 rm -f conftest.err conftest.$ac_ext
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6767 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6769 # Prepare PATH_SEPARATOR.
6770 # The user is always right.
6771 if test "${PATH_SEPARATOR+set}" != set; then
6772 echo "#! /bin/sh" >conf$$.sh
6773 echo "exit 0" >>conf$$.sh
6774 chmod +x conf$$.sh
6775 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6776 PATH_SEPARATOR=';'
6777 else
6778 PATH_SEPARATOR=:
6780 rm -f conf$$.sh
6783 # Find out how to test for executable files. Don't use a zero-byte file,
6784 # as systems may use methods other than mode bits to determine executability.
6785 cat >conf$$.file <<_ASEOF
6786 #! /bin/sh
6787 exit 0
6788 _ASEOF
6789 chmod +x conf$$.file
6790 if test -x conf$$.file >/dev/null 2>&1; then
6791 ac_executable_p="test -x"
6792 else
6793 ac_executable_p="test -f"
6795 rm -f conf$$.file
6797 # Extract the first word of "valgrind", so it can be a program name with args.
6798 set dummy valgrind; ac_word=$2
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800 $as_echo_n "checking for $ac_word... " >&6; }
6801 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6802 $as_echo_n "(cached) " >&6
6803 else
6804 case "$valgrind_path" in
6805 [\\/]* | ?:[\\/]*)
6806 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6809 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6810 for ac_dir in $PATH; do
6811 IFS="$ac_save_IFS"
6812 test -z "$ac_dir" && ac_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6815 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6816 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6817 break 2
6820 done
6821 done
6822 IFS="$ac_save_IFS"
6824 esac
6826 valgrind_path="$ac_cv_path_valgrind_path"
6827 if test -n "$valgrind_path"; then
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6829 $as_echo "$valgrind_path" >&6; }
6830 else
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6832 $as_echo "no" >&6; }
6835 if test "x$valgrind_path" = "x" \
6836 || (test $have_valgrind_h = no \
6837 && test $gcc_cv_header_memcheck_h = no \
6838 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6839 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6841 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6842 valgrind_command="$valgrind_path -q"
6844 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6846 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6848 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6851 if test $gcc_cv_header_memcheck_h = yes; then
6853 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6860 # Enable code coverage collection
6861 # Check whether --enable-coverage was given.
6862 if test "${enable_coverage+set}" = set; then :
6863 enableval=$enable_coverage; case "${enableval}" in
6864 yes|noopt)
6865 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6867 opt)
6868 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6871 # a.k.a. --disable-coverage
6872 coverage_flags=""
6875 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6877 esac
6878 else
6879 coverage_flags=""
6884 # Check whether --enable-gather-detailed-mem-stats was given.
6885 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6886 enableval=$enable_gather_detailed_mem_stats;
6887 else
6888 enable_gather_detailed_mem_stats=no
6891 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6893 cat >>confdefs.h <<_ACEOF
6894 #define GATHER_STATISTICS $gather_stats
6895 _ACEOF
6898 # -------------------------------
6899 # Miscenalleous configure options
6900 # -------------------------------
6902 # With stabs
6904 # Check whether --with-stabs was given.
6905 if test "${with_stabs+set}" = set; then :
6906 withval=$with_stabs; stabs="$with_stabs"
6907 else
6908 stabs=no
6912 # Determine whether or not multilibs are enabled.
6913 # Check whether --enable-multilib was given.
6914 if test "${enable_multilib+set}" = set; then :
6915 enableval=$enable_multilib;
6916 else
6917 enable_multilib=yes
6922 # Determine whether or not multiarch is enabled.
6923 # Check whether --enable-multiarch was given.
6924 if test "${enable_multiarch+set}" = set; then :
6925 enableval=$enable_multiarch; case "${enableval}" in
6926 yes|no|auto) enable_multiarch=$enableval;;
6927 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
6928 esac
6929 else
6930 enable_multiarch=auto
6933 if test x${enable_multiarch} = xauto; then
6934 if test x${with_native_system_header_dir} != x; then
6935 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
6936 enable_multiarch=no
6938 if test x$host != x$target && test "x$with_sysroot" = x; then
6939 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
6940 enable_multiarch=no
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
6944 $as_echo_n "checking for multiarch configuration... " >&6; }
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
6947 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
6949 # needed for setting the multiarch name for soft-float/hard-float ABIs
6953 # Enable __cxa_atexit for C++.
6954 # Check whether --enable-__cxa_atexit was given.
6955 if test "${enable___cxa_atexit+set}" = set; then :
6956 enableval=$enable___cxa_atexit;
6960 # Enable C extension for decimal float if target supports it.
6962 # Check whether --enable-decimal-float was given.
6963 if test "${enable_decimal_float+set}" = set; then :
6964 enableval=$enable_decimal_float;
6965 case $enable_decimal_float in
6966 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6967 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6968 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6969 esac
6971 else
6973 case $target in
6974 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6975 i?86*-*-gnu* | \
6976 i?86*-*-mingw* | x86_64*-*-mingw* | \
6977 i?86*-*-cygwin* | x86_64*-*-cygwin*)
6978 enable_decimal_float=yes
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6982 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6983 enable_decimal_float=no
6985 esac
6990 # x86's use BID format instead of DPD
6991 case x$enable_decimal_float in
6992 xyes)
6993 case $target in
6994 i?86*-*-* | x86_64*-*-*)
6995 enable_decimal_float=bid
6998 enable_decimal_float=dpd
7000 esac
7001 default_decimal_float=$enable_decimal_float
7003 xno)
7004 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7005 # dependency on libdecnumber.
7006 default_decimal_float=dpd
7008 esac
7013 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7015 cat >>confdefs.h <<_ACEOF
7016 #define ENABLE_DECIMAL_FLOAT $dfp
7017 _ACEOF
7020 # Use default_decimal_float for dependency.
7021 enable_decimal_float=$default_decimal_float
7023 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7025 cat >>confdefs.h <<_ACEOF
7026 #define ENABLE_DECIMAL_BID_FORMAT $bid
7027 _ACEOF
7030 # Enable C extension for fixed-point arithmetic.
7031 # Check whether --enable-fixed-point was given.
7032 if test "${enable_fixed_point+set}" = set; then :
7033 enableval=$enable_fixed_point;
7034 else
7036 case $target in
7037 arm*)
7038 enable_fixed_point=yes
7041 mips*-*-*)
7042 enable_fixed_point=yes
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7046 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7047 enable_fixed_point=no
7049 esac
7055 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7057 cat >>confdefs.h <<_ACEOF
7058 #define ENABLE_FIXED_POINT $fixedpoint
7059 _ACEOF
7062 # Enable threads
7063 # Pass with no value to take the default
7064 # Pass with a value to specify a thread package
7065 # Check whether --enable-threads was given.
7066 if test "${enable_threads+set}" = set; then :
7067 enableval=$enable_threads;
7068 else
7069 enable_threads=''
7073 # Check whether --enable-tls was given.
7074 if test "${enable_tls+set}" = set; then :
7075 enableval=$enable_tls;
7076 case $enable_tls in
7077 yes | no) ;;
7078 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7079 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7080 esac
7082 else
7083 enable_tls=''
7087 # Check whether --enable-objc-gc was given.
7088 if test "${enable_objc_gc+set}" = set; then :
7089 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7090 objc_boehm_gc=''
7091 else
7092 objc_boehm_gc=1
7094 else
7095 objc_boehm_gc=''
7100 # Check whether --with-dwarf2 was given.
7101 if test "${with_dwarf2+set}" = set; then :
7102 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7103 else
7104 dwarf2=no
7108 # Check whether --enable-shared was given.
7109 if test "${enable_shared+set}" = set; then :
7110 enableval=$enable_shared;
7111 case $enable_shared in
7112 yes | no) ;;
7114 enable_shared=no
7115 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7116 for pkg in $enableval; do
7117 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7118 enable_shared=yes
7120 done
7121 IFS="$ac_save_ifs"
7123 esac
7125 else
7126 enable_shared=yes
7132 # Check whether --with-native-system-header-dir was given.
7133 if test "${with_native_system_header_dir+set}" = set; then :
7134 withval=$with_native_system_header_dir;
7135 case ${with_native_system_header_dir} in
7136 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7137 /* | [A-Za-z]:[\\/]*) ;;
7138 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7139 esac
7140 configured_native_system_header_dir="${withval}"
7142 else
7143 configured_native_system_header_dir=
7148 # Check whether --with-build-sysroot was given.
7149 if test "${with_build_sysroot+set}" = set; then :
7150 withval=$with_build_sysroot; if test x"$withval" != x ; then
7151 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7153 else
7154 SYSROOT_CFLAGS_FOR_TARGET=
7159 if test "x$prefix" = xNONE; then
7160 test_prefix=/usr/local
7161 else
7162 test_prefix=$prefix
7164 if test "x$exec_prefix" = xNONE; then
7165 test_exec_prefix=$test_prefix
7166 else
7167 test_exec_prefix=$exec_prefix
7171 # Check whether --with-sysroot was given.
7172 if test "${with_sysroot+set}" = set; then :
7173 withval=$with_sysroot;
7174 case ${with_sysroot} in
7175 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7176 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7177 esac
7179 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7180 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7182 case ${TARGET_SYSTEM_ROOT} in
7183 "${test_prefix}"|"${test_prefix}/"*|\
7184 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7185 '${prefix}'|'${prefix}/'*|\
7186 '${exec_prefix}'|'${exec_prefix}/'*)
7187 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7188 TARGET_SYSTEM_ROOT_DEFINE="$t"
7190 esac
7192 else
7194 TARGET_SYSTEM_ROOT=
7195 TARGET_SYSTEM_ROOT_DEFINE=
7196 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7205 # Check whether --with-specs was given.
7206 if test "${with_specs+set}" = set; then :
7207 withval=$with_specs; CONFIGURE_SPECS=$withval
7208 else
7209 CONFIGURE_SPECS=
7217 # Check whether --with-pkgversion was given.
7218 if test "${with_pkgversion+set}" = set; then :
7219 withval=$with_pkgversion; case "$withval" in
7220 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7221 no) PKGVERSION= ;;
7222 *) PKGVERSION="($withval) " ;;
7223 esac
7224 else
7225 PKGVERSION="(GCC) "
7233 # Check whether --with-bugurl was given.
7234 if test "${with_bugurl+set}" = set; then :
7235 withval=$with_bugurl; case "$withval" in
7236 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7237 no) BUGURL=
7239 *) BUGURL="$withval"
7241 esac
7242 else
7243 BUGURL="http://gcc.gnu.org/bugs.html"
7247 case ${BUGURL} in
7249 REPORT_BUGS_TO=
7250 REPORT_BUGS_TEXI=
7253 REPORT_BUGS_TO="<$BUGURL>"
7254 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7256 esac;
7261 # Sanity check enable_languages in case someone does not run the toplevel
7262 # configure # script.
7263 # Check whether --enable-languages was given.
7264 if test "${enable_languages+set}" = set; then :
7265 enableval=$enable_languages; case ,${enable_languages}, in
7266 ,,|,yes,)
7267 # go safe -- we cannot be much sure without the toplevel
7268 # configure's
7269 # analysis of which target libs are present and usable
7270 enable_languages=c
7272 *,all,*)
7273 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7275 *,c,*)
7278 enable_languages=c,${enable_languages}
7280 esac
7281 else
7282 enable_languages=c
7287 # Check whether --with-multilib-list was given.
7288 if test "${with_multilib_list+set}" = set; then :
7289 withval=$with_multilib_list; :
7290 else
7291 with_multilib_list=default
7295 # -------------------------
7296 # Checks for other programs
7297 # -------------------------
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7300 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7301 set x ${MAKE-make}
7302 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7303 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7304 $as_echo_n "(cached) " >&6
7305 else
7306 cat >conftest.make <<\_ACEOF
7307 SHELL = /bin/sh
7308 all:
7309 @echo '@@@%%%=$(MAKE)=@@@%%%'
7310 _ACEOF
7311 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7312 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7313 *@@@%%%=?*=@@@%%%*)
7314 eval ac_cv_prog_make_${ac_make}_set=yes;;
7316 eval ac_cv_prog_make_${ac_make}_set=no;;
7317 esac
7318 rm -f conftest.make
7320 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7322 $as_echo "yes" >&6; }
7323 SET_MAKE=
7324 else
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7327 SET_MAKE="MAKE=${MAKE-make}"
7331 # Find some useful tools
7332 for ac_prog in gawk mawk nawk awk
7334 # Extract the first word of "$ac_prog", so it can be a program name with args.
7335 set dummy $ac_prog; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if test "${ac_cv_prog_AWK+set}" = set; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 if test -n "$AWK"; then
7342 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7351 ac_cv_prog_AWK="$ac_prog"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 break 2
7355 done
7356 done
7357 IFS=$as_save_IFS
7361 AWK=$ac_cv_prog_AWK
7362 if test -n "$AWK"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7364 $as_echo "$AWK" >&6; }
7365 else
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7371 test -n "$AWK" && break
7372 done
7374 # We need awk to create options.c and options.h.
7375 # Bail out if it's missing.
7376 case ${AWK} in
7377 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7378 esac
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7381 $as_echo_n "checking whether ln -s works... " >&6; }
7382 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7383 $as_echo_n "(cached) " >&6
7384 else
7385 rm -f conftestdata_t
7386 echo >conftestdata_f
7387 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7388 then
7389 gcc_cv_prog_LN_S="ln -s"
7390 else
7391 if ln conftestdata_f conftestdata_t 2>/dev/null
7392 then
7393 gcc_cv_prog_LN_S=ln
7394 else
7395 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7396 then
7397 gcc_cv_prog_LN_S="cp -p"
7398 else
7399 gcc_cv_prog_LN_S=cp
7403 rm -f conftestdata_f conftestdata_t
7406 LN_S="$gcc_cv_prog_LN_S"
7407 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7409 $as_echo "yes" >&6; }
7410 else
7411 if test "$gcc_cv_prog_LN_S" = "ln"; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7413 $as_echo "no, using ln" >&6; }
7414 else
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7416 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7421 $as_echo_n "checking whether ln works... " >&6; }
7422 if test "${acx_cv_prog_LN+set}" = set; then :
7423 $as_echo_n "(cached) " >&6
7424 else
7425 rm -f conftestdata_t
7426 echo >conftestdata_f
7427 if ln conftestdata_f conftestdata_t 2>/dev/null
7428 then
7429 acx_cv_prog_LN=ln
7430 else
7431 acx_cv_prog_LN=no
7433 rm -f conftestdata_f conftestdata_t
7436 if test $acx_cv_prog_LN = no; then
7437 LN="$LN_S"
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7439 $as_echo "no, using $LN" >&6; }
7440 else
7441 LN="$acx_cv_prog_LN"
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7443 $as_echo "yes" >&6; }
7446 if test -n "$ac_tool_prefix"; then
7447 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7448 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450 $as_echo_n "checking for $ac_word... " >&6; }
7451 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7452 $as_echo_n "(cached) " >&6
7453 else
7454 if test -n "$RANLIB"; then
7455 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7456 else
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in $PATH
7460 IFS=$as_save_IFS
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7464 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 break 2
7468 done
7469 done
7470 IFS=$as_save_IFS
7474 RANLIB=$ac_cv_prog_RANLIB
7475 if test -n "$RANLIB"; then
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7477 $as_echo "$RANLIB" >&6; }
7478 else
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480 $as_echo "no" >&6; }
7485 if test -z "$ac_cv_prog_RANLIB"; then
7486 ac_ct_RANLIB=$RANLIB
7487 # Extract the first word of "ranlib", so it can be a program name with args.
7488 set dummy ranlib; ac_word=$2
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7490 $as_echo_n "checking for $ac_word... " >&6; }
7491 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7492 $as_echo_n "(cached) " >&6
7493 else
7494 if test -n "$ac_ct_RANLIB"; then
7495 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7496 else
7497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 for as_dir in $PATH
7500 IFS=$as_save_IFS
7501 test -z "$as_dir" && as_dir=.
7502 for ac_exec_ext in '' $ac_executable_extensions; do
7503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7504 ac_cv_prog_ac_ct_RANLIB="ranlib"
7505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7506 break 2
7508 done
7509 done
7510 IFS=$as_save_IFS
7514 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7515 if test -n "$ac_ct_RANLIB"; then
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7517 $as_echo "$ac_ct_RANLIB" >&6; }
7518 else
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520 $as_echo "no" >&6; }
7523 if test "x$ac_ct_RANLIB" = x; then
7524 RANLIB=":"
7525 else
7526 case $cross_compiling:$ac_tool_warned in
7527 yes:)
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7530 ac_tool_warned=yes ;;
7531 esac
7532 RANLIB=$ac_ct_RANLIB
7534 else
7535 RANLIB="$ac_cv_prog_RANLIB"
7538 ranlib_flags=""
7541 # Find a good install program. We prefer a C program (faster),
7542 # so one script is as good as another. But avoid the broken or
7543 # incompatible versions:
7544 # SysV /etc/install, /usr/sbin/install
7545 # SunOS /usr/etc/install
7546 # IRIX /sbin/install
7547 # AIX /bin/install
7548 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7549 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7550 # ./install, which can be erroneously created by make from ./install.sh.
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7552 $as_echo_n "checking for a BSD compatible install... " >&6; }
7553 if test -z "$INSTALL"; then
7554 if test "${ac_cv_path_install+set}" = set; then :
7555 $as_echo_n "(cached) " >&6
7556 else
7557 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7558 for ac_dir in $PATH; do
7559 # Account for people who put trailing slashes in PATH elements.
7560 case "$ac_dir/" in
7561 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7563 # OSF1 and SCO ODT 3.0 have their own names for install.
7564 for ac_prog in ginstall scoinst install; do
7565 if test -f $ac_dir/$ac_prog; then
7566 if test $ac_prog = install &&
7567 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7568 # AIX install. It has an incompatible calling convention.
7569 # OSF/1 installbsd also uses dspmsg, but is usable.
7571 else
7572 ac_cv_path_install="$ac_dir/$ac_prog -c"
7573 break 2
7576 done
7578 esac
7579 done
7580 IFS="$ac_save_IFS"
7583 if test "${ac_cv_path_install+set}" = set; then
7584 INSTALL="$ac_cv_path_install"
7585 else
7586 # As a last resort, use the slow shell script. We don't cache a
7587 # path for INSTALL within a source directory, because that will
7588 # break other packages using the cache if that directory is
7589 # removed, or if the path is relative.
7590 INSTALL="$ac_install_sh"
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7594 $as_echo "$INSTALL" >&6; }
7596 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7597 # It thinks the first close brace ends the variable substitution.
7598 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7600 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7603 # See if cmp has --ignore-initial.
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7605 $as_echo_n "checking for cmp's capabilities... " >&6; }
7606 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7607 $as_echo_n "(cached) " >&6
7608 else
7609 echo abfoo >t1
7610 echo cdfoo >t2
7611 gcc_cv_prog_cmp_skip=slowcompare
7612 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7613 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7615 else
7616 gcc_cv_prog_cmp_skip=gnucompare
7619 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7620 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7621 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7623 else
7624 gcc_cv_prog_cmp_skip=fastcompare
7628 rm t1 t2
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7632 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7633 make_compare_target=$gcc_cv_prog_cmp_skip
7637 # See if we have the mktemp command.
7638 # Extract the first word of "mktemp", so it can be a program name with args.
7639 set dummy mktemp; ac_word=$2
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7641 $as_echo_n "checking for $ac_word... " >&6; }
7642 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7643 $as_echo_n "(cached) " >&6
7644 else
7645 if test -n "$have_mktemp_command"; then
7646 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7647 else
7648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649 for as_dir in $PATH
7651 IFS=$as_save_IFS
7652 test -z "$as_dir" && as_dir=.
7653 for ac_exec_ext in '' $ac_executable_extensions; do
7654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7655 ac_cv_prog_have_mktemp_command="yes"
7656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7657 break 2
7659 done
7660 done
7661 IFS=$as_save_IFS
7663 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7666 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7667 if test -n "$have_mktemp_command"; then
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7669 $as_echo "$have_mktemp_command" >&6; }
7670 else
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7672 $as_echo "no" >&6; }
7677 # See if makeinfo has been installed and is modern enough
7678 # that we can use it.
7680 # Extract the first word of "makeinfo", so it can be a program name with args.
7681 set dummy makeinfo; ac_word=$2
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7683 $as_echo_n "checking for $ac_word... " >&6; }
7684 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7685 $as_echo_n "(cached) " >&6
7686 else
7687 if test -n "$MAKEINFO"; then
7688 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7689 else
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 for as_dir in $PATH
7693 IFS=$as_save_IFS
7694 test -z "$as_dir" && as_dir=.
7695 for ac_exec_ext in '' $ac_executable_extensions; do
7696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7697 ac_cv_prog_MAKEINFO="makeinfo"
7698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7699 break 2
7701 done
7702 done
7703 IFS=$as_save_IFS
7707 MAKEINFO=$ac_cv_prog_MAKEINFO
7708 if test -n "$MAKEINFO"; then
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7710 $as_echo "$MAKEINFO" >&6; }
7711 else
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713 $as_echo "no" >&6; }
7717 if test -n "$MAKEINFO"; then
7718 # Found it, now check the version.
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7720 $as_echo_n "checking for modern makeinfo... " >&6; }
7721 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7722 $as_echo_n "(cached) " >&6
7723 else
7724 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7725 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7727 case $ac_prog_version in
7728 '') gcc_cv_prog_makeinfo_modern=no;;
7729 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7730 *) gcc_cv_prog_makeinfo_modern=no;;
7731 esac
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7735 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7736 else
7737 gcc_cv_prog_makeinfo_modern=no
7739 if test $gcc_cv_prog_makeinfo_modern = no; then
7740 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7743 if test $gcc_cv_prog_makeinfo_modern = no; then
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7745 *** Makeinfo is missing or too old.
7746 *** Info documentation will not be built." >&5
7747 $as_echo "$as_me: WARNING:
7748 *** Makeinfo is missing or too old.
7749 *** Info documentation will not be built." >&2;}
7750 BUILD_INFO=
7751 else
7752 BUILD_INFO=info
7756 # Is pod2man recent enough to regenerate manpages?
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7758 $as_echo_n "checking for recent Pod::Man... " >&6; }
7759 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7761 $as_echo "yes" >&6; }
7762 GENERATED_MANPAGES=generated-manpages
7763 else
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7765 $as_echo "no" >&6; }
7766 GENERATED_MANPAGES=
7770 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7772 # How about lex?
7773 for ac_prog in flex
7775 # Extract the first word of "$ac_prog", so it can be a program name with args.
7776 set dummy $ac_prog; ac_word=$2
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7778 $as_echo_n "checking for $ac_word... " >&6; }
7779 if test "${ac_cv_prog_FLEX+set}" = set; then :
7780 $as_echo_n "(cached) " >&6
7781 else
7782 if test -n "$FLEX"; then
7783 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7784 else
7785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786 for as_dir in $PATH
7788 IFS=$as_save_IFS
7789 test -z "$as_dir" && as_dir=.
7790 for ac_exec_ext in '' $ac_executable_extensions; do
7791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7792 ac_cv_prog_FLEX="$ac_prog"
7793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7794 break 2
7796 done
7797 done
7798 IFS=$as_save_IFS
7802 FLEX=$ac_cv_prog_FLEX
7803 if test -n "$FLEX"; then
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7805 $as_echo "$FLEX" >&6; }
7806 else
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7808 $as_echo "no" >&6; }
7812 test -n "$FLEX" && break
7813 done
7814 test -n "$FLEX" || FLEX="$MISSING flex"
7817 # Bison?
7818 for ac_prog in bison
7820 # Extract the first word of "$ac_prog", so it can be a program name with args.
7821 set dummy $ac_prog; ac_word=$2
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823 $as_echo_n "checking for $ac_word... " >&6; }
7824 if test "${ac_cv_prog_BISON+set}" = set; then :
7825 $as_echo_n "(cached) " >&6
7826 else
7827 if test -n "$BISON"; then
7828 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7829 else
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831 for as_dir in $PATH
7833 IFS=$as_save_IFS
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7837 ac_cv_prog_BISON="$ac_prog"
7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 break 2
7841 done
7842 done
7843 IFS=$as_save_IFS
7847 BISON=$ac_cv_prog_BISON
7848 if test -n "$BISON"; then
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7850 $as_echo "$BISON" >&6; }
7851 else
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853 $as_echo "no" >&6; }
7857 test -n "$BISON" && break
7858 done
7859 test -n "$BISON" || BISON="$MISSING bison"
7862 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7863 # check for build == host before using them.
7865 # NM
7866 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7867 && test -d ../binutils ; then
7868 NM='${objdir}/../binutils/nm-new'
7869 else
7870 # Extract the first word of "nm", so it can be a program name with args.
7871 set dummy nm; ac_word=$2
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7873 $as_echo_n "checking for $ac_word... " >&6; }
7874 if test "${ac_cv_prog_NM+set}" = set; then :
7875 $as_echo_n "(cached) " >&6
7876 else
7877 if test -n "$NM"; then
7878 ac_cv_prog_NM="$NM" # Let the user override the test.
7879 else
7880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7881 for as_dir in $PATH
7883 IFS=$as_save_IFS
7884 test -z "$as_dir" && as_dir=.
7885 for ac_exec_ext in '' $ac_executable_extensions; do
7886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7887 ac_cv_prog_NM="nm"
7888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7889 break 2
7891 done
7892 done
7893 IFS=$as_save_IFS
7895 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7898 NM=$ac_cv_prog_NM
7899 if test -n "$NM"; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7901 $as_echo "$NM" >&6; }
7902 else
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 $as_echo "no" >&6; }
7910 # AR
7911 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7912 && test -d ../binutils ; then
7913 AR='${objdir}/../binutils/ar'
7914 else
7915 # Extract the first word of "ar", so it can be a program name with args.
7916 set dummy ar; ac_word=$2
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7918 $as_echo_n "checking for $ac_word... " >&6; }
7919 if test "${ac_cv_prog_AR+set}" = set; then :
7920 $as_echo_n "(cached) " >&6
7921 else
7922 if test -n "$AR"; then
7923 ac_cv_prog_AR="$AR" # Let the user override the test.
7924 else
7925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7926 for as_dir in $PATH
7928 IFS=$as_save_IFS
7929 test -z "$as_dir" && as_dir=.
7930 for ac_exec_ext in '' $ac_executable_extensions; do
7931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7932 ac_cv_prog_AR="ar"
7933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7934 break 2
7936 done
7937 done
7938 IFS=$as_save_IFS
7940 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7943 AR=$ac_cv_prog_AR
7944 if test -n "$AR"; then
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7946 $as_echo "$AR" >&6; }
7947 else
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7949 $as_echo "no" >&6; }
7956 # --------------------
7957 # Checks for C headers
7958 # --------------------
7960 # Need to reject headers which give warnings, so that the -Werror bootstrap
7961 # works later. *sigh* This needs to come before all header checks.
7963 ac_c_preproc_warn_flag=yes
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7966 $as_echo_n "checking for ANSI C header files... " >&6; }
7967 if test "${ac_cv_header_stdc+set}" = set; then :
7968 $as_echo_n "(cached) " >&6
7969 else
7970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7971 /* end confdefs.h. */
7972 #include <stdlib.h>
7973 #include <stdarg.h>
7974 #include <string.h>
7975 #include <float.h>
7978 main ()
7982 return 0;
7984 _ACEOF
7985 if ac_fn_c_try_compile "$LINENO"; then :
7986 ac_cv_header_stdc=yes
7987 else
7988 ac_cv_header_stdc=no
7990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7992 if test $ac_cv_header_stdc = yes; then
7993 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h. */
7996 #include <string.h>
7998 _ACEOF
7999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8000 $EGREP "memchr" >/dev/null 2>&1; then :
8002 else
8003 ac_cv_header_stdc=no
8005 rm -f conftest*
8009 if test $ac_cv_header_stdc = yes; then
8010 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8012 /* end confdefs.h. */
8013 #include <stdlib.h>
8015 _ACEOF
8016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8017 $EGREP "free" >/dev/null 2>&1; then :
8019 else
8020 ac_cv_header_stdc=no
8022 rm -f conftest*
8026 if test $ac_cv_header_stdc = yes; then
8027 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8028 if test "$cross_compiling" = yes; then :
8030 else
8031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8032 /* end confdefs.h. */
8033 #include <ctype.h>
8034 #include <stdlib.h>
8035 #if ((' ' & 0x0FF) == 0x020)
8036 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8037 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8038 #else
8039 # define ISLOWER(c) \
8040 (('a' <= (c) && (c) <= 'i') \
8041 || ('j' <= (c) && (c) <= 'r') \
8042 || ('s' <= (c) && (c) <= 'z'))
8043 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8044 #endif
8046 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8048 main ()
8050 int i;
8051 for (i = 0; i < 256; i++)
8052 if (XOR (islower (i), ISLOWER (i))
8053 || toupper (i) != TOUPPER (i))
8054 return 2;
8055 return 0;
8057 _ACEOF
8058 if ac_fn_c_try_run "$LINENO"; then :
8060 else
8061 ac_cv_header_stdc=no
8063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8064 conftest.$ac_objext conftest.beam conftest.$ac_ext
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8070 $as_echo "$ac_cv_header_stdc" >&6; }
8071 if test $ac_cv_header_stdc = yes; then
8073 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8078 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8079 if test "${ac_cv_header_time+set}" = set; then :
8080 $as_echo_n "(cached) " >&6
8081 else
8082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083 /* end confdefs.h. */
8084 #include <sys/types.h>
8085 #include <sys/time.h>
8086 #include <time.h>
8089 main ()
8091 if ((struct tm *) 0)
8092 return 0;
8094 return 0;
8096 _ACEOF
8097 if ac_fn_c_try_compile "$LINENO"; then :
8098 ac_cv_header_time=yes
8099 else
8100 ac_cv_header_time=no
8102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8105 $as_echo "$ac_cv_header_time" >&6; }
8106 if test $ac_cv_header_time = yes; then
8108 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8113 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8114 if test "${gcc_cv_header_string+set}" = set; then :
8115 $as_echo_n "(cached) " >&6
8116 else
8117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8118 /* end confdefs.h. */
8119 #include <string.h>
8120 #include <strings.h>
8122 main ()
8126 return 0;
8128 _ACEOF
8129 if ac_fn_c_try_compile "$LINENO"; then :
8130 gcc_cv_header_string=yes
8131 else
8132 gcc_cv_header_string=no
8134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8137 $as_echo "$gcc_cv_header_string" >&6; }
8138 if test $gcc_cv_header_string = yes; then
8140 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8145 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8146 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8147 $as_echo_n "(cached) " >&6
8148 else
8149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8150 /* end confdefs.h. */
8151 #include <sys/types.h>
8152 #include <sys/wait.h>
8153 #ifndef WEXITSTATUS
8154 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8155 #endif
8156 #ifndef WIFEXITED
8157 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8158 #endif
8161 main ()
8163 int s;
8164 wait (&s);
8165 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8167 return 0;
8169 _ACEOF
8170 if ac_fn_c_try_compile "$LINENO"; then :
8171 ac_cv_header_sys_wait_h=yes
8172 else
8173 ac_cv_header_sys_wait_h=no
8175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8178 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8179 if test $ac_cv_header_sys_wait_h = yes; then
8181 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8186 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8187 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8188 $as_echo_n "(cached) " >&6
8189 else
8190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8191 /* end confdefs.h. */
8192 #include <sys/types.h>
8193 #include <termios.h>
8194 #ifdef TIOCGWINSZ
8196 #endif
8198 _ACEOF
8199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8200 $EGREP "yes" >/dev/null 2>&1; then :
8201 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8202 else
8203 ac_cv_sys_tiocgwinsz_in_termios_h=no
8205 rm -f conftest*
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8209 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8211 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8213 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8214 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8215 $as_echo_n "(cached) " >&6
8216 else
8217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8218 /* end confdefs.h. */
8219 #include <sys/types.h>
8220 #include <sys/ioctl.h>
8221 #ifdef TIOCGWINSZ
8223 #endif
8225 _ACEOF
8226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8227 $EGREP "yes" >/dev/null 2>&1; then :
8228 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8229 else
8230 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8232 rm -f conftest*
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8236 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8238 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8240 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8245 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8246 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8247 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8248 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8249 do :
8250 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8251 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8252 eval as_val=\$$as_ac_Header
8253 if test "x$as_val" = x""yes; then :
8254 cat >>confdefs.h <<_ACEOF
8255 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8256 _ACEOF
8259 done
8262 # Check for thread headers.
8263 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8264 if test "x$ac_cv_header_thread_h" = x""yes; then :
8265 have_thread_h=yes
8266 else
8267 have_thread_h=
8270 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8271 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8272 have_pthread_h=yes
8273 else
8274 have_pthread_h=
8278 # These tests can't be done till we know if we have limits.h.
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8280 $as_echo_n "checking for CHAR_BIT... " >&6; }
8281 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8282 $as_echo_n "(cached) " >&6
8283 else
8284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8285 /* end confdefs.h. */
8286 #ifdef HAVE_LIMITS_H
8287 #include <limits.h>
8288 #endif
8289 #ifdef CHAR_BIT
8290 found
8291 #endif
8292 _ACEOF
8293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8294 $EGREP "found" >/dev/null 2>&1; then :
8295 gcc_cv_decl_char_bit=yes
8296 else
8297 gcc_cv_decl_char_bit=no
8299 rm -f conftest*
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8304 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8305 if test $gcc_cv_decl_char_bit = no; then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8307 $as_echo_n "checking number of bits in a byte... " >&6; }
8308 if test "${gcc_cv_c_nbby+set}" = set; then :
8309 $as_echo_n "(cached) " >&6
8310 else
8312 gcc_cv_c_nbby=
8313 while test $i -lt 65; do
8314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8315 /* end confdefs.h. */
8318 main ()
8320 switch(0) {
8321 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8322 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8325 return 0;
8327 _ACEOF
8328 if ac_fn_c_try_compile "$LINENO"; then :
8329 gcc_cv_c_nbby=$i; break
8331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8332 i=`expr $i + 1`
8333 done
8334 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8338 $as_echo "$gcc_cv_c_nbby" >&6; }
8339 if test $gcc_cv_c_nbby = failed; then
8340 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8341 else
8343 cat >>confdefs.h <<_ACEOF
8344 #define CHAR_BIT $gcc_cv_c_nbby
8345 _ACEOF
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8350 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8351 if test "${ac_cv_c_bigendian+set}" = set; then :
8352 $as_echo_n "(cached) " >&6
8353 else
8354 ac_cv_c_bigendian=unknown
8355 # See if we're dealing with a universal compiler.
8356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8357 /* end confdefs.h. */
8358 #ifndef __APPLE_CC__
8359 not a universal capable compiler
8360 #endif
8361 typedef int dummy;
8363 _ACEOF
8364 if ac_fn_c_try_compile "$LINENO"; then :
8366 # Check for potential -arch flags. It is not universal unless
8367 # there are at least two -arch flags with different values.
8368 ac_arch=
8369 ac_prev=
8370 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8371 if test -n "$ac_prev"; then
8372 case $ac_word in
8373 i?86 | x86_64 | ppc | ppc64)
8374 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8375 ac_arch=$ac_word
8376 else
8377 ac_cv_c_bigendian=universal
8378 break
8381 esac
8382 ac_prev=
8383 elif test "x$ac_word" = "x-arch"; then
8384 ac_prev=arch
8386 done
8388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8389 if test $ac_cv_c_bigendian = unknown; then
8390 # See if sys/param.h defines the BYTE_ORDER macro.
8391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8392 /* end confdefs.h. */
8393 #include <sys/types.h>
8394 #include <sys/param.h>
8397 main ()
8399 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8400 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8401 && LITTLE_ENDIAN)
8402 bogus endian macros
8403 #endif
8406 return 0;
8408 _ACEOF
8409 if ac_fn_c_try_compile "$LINENO"; then :
8410 # It does; now see whether it defined to BIG_ENDIAN or not.
8411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8412 /* end confdefs.h. */
8413 #include <sys/types.h>
8414 #include <sys/param.h>
8417 main ()
8419 #if BYTE_ORDER != BIG_ENDIAN
8420 not big endian
8421 #endif
8424 return 0;
8426 _ACEOF
8427 if ac_fn_c_try_compile "$LINENO"; then :
8428 ac_cv_c_bigendian=yes
8429 else
8430 ac_cv_c_bigendian=no
8432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8436 if test $ac_cv_c_bigendian = unknown; then
8437 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h. */
8440 #include <limits.h>
8443 main ()
8445 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8446 bogus endian macros
8447 #endif
8450 return 0;
8452 _ACEOF
8453 if ac_fn_c_try_compile "$LINENO"; then :
8454 # It does; now see whether it defined to _BIG_ENDIAN or not.
8455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8456 /* end confdefs.h. */
8457 #include <limits.h>
8460 main ()
8462 #ifndef _BIG_ENDIAN
8463 not big endian
8464 #endif
8467 return 0;
8469 _ACEOF
8470 if ac_fn_c_try_compile "$LINENO"; then :
8471 ac_cv_c_bigendian=yes
8472 else
8473 ac_cv_c_bigendian=no
8475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8479 if test $ac_cv_c_bigendian = unknown; then
8480 # Compile a test program.
8481 if test "$cross_compiling" = yes; then :
8482 # Try to guess by grepping values from an object file.
8483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h. */
8485 short int ascii_mm[] =
8486 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8487 short int ascii_ii[] =
8488 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8489 int use_ascii (int i) {
8490 return ascii_mm[i] + ascii_ii[i];
8492 short int ebcdic_ii[] =
8493 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8494 short int ebcdic_mm[] =
8495 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8496 int use_ebcdic (int i) {
8497 return ebcdic_mm[i] + ebcdic_ii[i];
8499 extern int foo;
8502 main ()
8504 return use_ascii (foo) == use_ebcdic (foo);
8506 return 0;
8508 _ACEOF
8509 if ac_fn_c_try_compile "$LINENO"; then :
8510 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8511 ac_cv_c_bigendian=yes
8513 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8514 if test "$ac_cv_c_bigendian" = unknown; then
8515 ac_cv_c_bigendian=no
8516 else
8517 # finding both strings is unlikely to happen, but who knows?
8518 ac_cv_c_bigendian=unknown
8522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8523 else
8524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h. */
8526 $ac_includes_default
8528 main ()
8531 /* Are we little or big endian? From Harbison&Steele. */
8532 union
8534 long int l;
8535 char c[sizeof (long int)];
8536 } u;
8537 u.l = 1;
8538 return u.c[sizeof (long int) - 1] == 1;
8541 return 0;
8543 _ACEOF
8544 if ac_fn_c_try_run "$LINENO"; then :
8545 ac_cv_c_bigendian=no
8546 else
8547 ac_cv_c_bigendian=yes
8549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8550 conftest.$ac_objext conftest.beam conftest.$ac_ext
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8556 $as_echo "$ac_cv_c_bigendian" >&6; }
8557 case $ac_cv_c_bigendian in #(
8558 yes)
8559 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8560 ;; #(
8562 ;; #(
8563 universal)
8565 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8567 ;; #(
8569 as_fn_error "unknown endianness
8570 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8571 esac
8574 # ----------------------
8575 # Checks for C++ headers
8576 # ----------------------
8578 ac_ext=cpp
8579 ac_cpp='$CXXCPP $CPPFLAGS'
8580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8584 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8585 if test -z "$CXXCPP"; then
8586 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8587 $as_echo_n "(cached) " >&6
8588 else
8589 # Double quotes because CXXCPP needs to be expanded
8590 for CXXCPP in "$CXX -E" "/lib/cpp"
8592 ac_preproc_ok=false
8593 for ac_cxx_preproc_warn_flag in '' yes
8595 # Use a header file that comes with gcc, so configuring glibc
8596 # with a fresh cross-compiler works.
8597 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8598 # <limits.h> exists even on freestanding compilers.
8599 # On the NeXT, cc -E runs the code through the compiler's parser,
8600 # not just through cpp. "Syntax error" is here to catch this case.
8601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602 /* end confdefs.h. */
8603 #ifdef __STDC__
8604 # include <limits.h>
8605 #else
8606 # include <assert.h>
8607 #endif
8608 Syntax error
8609 _ACEOF
8610 if ac_fn_cxx_try_cpp "$LINENO"; then :
8612 else
8613 # Broken: fails on valid input.
8614 continue
8616 rm -f conftest.err conftest.$ac_ext
8618 # OK, works on sane cases. Now check whether nonexistent headers
8619 # can be detected and how.
8620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8621 /* end confdefs.h. */
8622 #include <ac_nonexistent.h>
8623 _ACEOF
8624 if ac_fn_cxx_try_cpp "$LINENO"; then :
8625 # Broken: success on invalid input.
8626 continue
8627 else
8628 # Passes both tests.
8629 ac_preproc_ok=:
8630 break
8632 rm -f conftest.err conftest.$ac_ext
8634 done
8635 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8636 rm -f conftest.err conftest.$ac_ext
8637 if $ac_preproc_ok; then :
8638 break
8641 done
8642 ac_cv_prog_CXXCPP=$CXXCPP
8645 CXXCPP=$ac_cv_prog_CXXCPP
8646 else
8647 ac_cv_prog_CXXCPP=$CXXCPP
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8650 $as_echo "$CXXCPP" >&6; }
8651 ac_preproc_ok=false
8652 for ac_cxx_preproc_warn_flag in '' yes
8654 # Use a header file that comes with gcc, so configuring glibc
8655 # with a fresh cross-compiler works.
8656 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8657 # <limits.h> exists even on freestanding compilers.
8658 # On the NeXT, cc -E runs the code through the compiler's parser,
8659 # not just through cpp. "Syntax error" is here to catch this case.
8660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661 /* end confdefs.h. */
8662 #ifdef __STDC__
8663 # include <limits.h>
8664 #else
8665 # include <assert.h>
8666 #endif
8667 Syntax error
8668 _ACEOF
8669 if ac_fn_cxx_try_cpp "$LINENO"; then :
8671 else
8672 # Broken: fails on valid input.
8673 continue
8675 rm -f conftest.err conftest.$ac_ext
8677 # OK, works on sane cases. Now check whether nonexistent headers
8678 # can be detected and how.
8679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680 /* end confdefs.h. */
8681 #include <ac_nonexistent.h>
8682 _ACEOF
8683 if ac_fn_cxx_try_cpp "$LINENO"; then :
8684 # Broken: success on invalid input.
8685 continue
8686 else
8687 # Passes both tests.
8688 ac_preproc_ok=:
8689 break
8691 rm -f conftest.err conftest.$ac_ext
8693 done
8694 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8695 rm -f conftest.err conftest.$ac_ext
8696 if $ac_preproc_ok; then :
8698 else
8699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8702 See \`config.log' for more details." >&5
8703 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8704 See \`config.log' for more details." >&2;}; }
8707 ac_ext=c
8708 ac_cpp='$CPP $CPPFLAGS'
8709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8714 ac_ext=cpp
8715 ac_cpp='$CXXCPP $CPPFLAGS'
8716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8723 for ac_header in unordered_map
8724 do :
8725 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8726 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8727 cat >>confdefs.h <<_ACEOF
8728 #define HAVE_UNORDERED_MAP 1
8729 _ACEOF
8732 done
8734 for ac_header in tr1/unordered_map
8735 do :
8736 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8737 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8738 cat >>confdefs.h <<_ACEOF
8739 #define HAVE_TR1_UNORDERED_MAP 1
8740 _ACEOF
8743 done
8745 for ac_header in ext/hash_map
8746 do :
8747 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8748 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8749 cat >>confdefs.h <<_ACEOF
8750 #define HAVE_EXT_HASH_MAP 1
8751 _ACEOF
8754 done
8757 ac_ext=c
8758 ac_cpp='$CPP $CPPFLAGS'
8759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8764 # --------
8765 # Dependency checking.
8766 # --------
8768 ac_ext=cpp
8769 ac_cpp='$CXXCPP $CPPFLAGS'
8770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8774 rm -rf .tst 2>/dev/null
8775 mkdir .tst 2>/dev/null
8776 if test -d .tst; then
8777 am__leading_dot=.
8778 else
8779 am__leading_dot=_
8781 rmdir .tst 2>/dev/null
8783 DEPDIR="${am__leading_dot}deps"
8785 ac_config_commands="$ac_config_commands depdir"
8788 ac_config_commands="$ac_config_commands gccdepdir"
8791 depcc="$CXX" am_compiler_list=
8793 am_depcomp=$ac_aux_dir/depcomp
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8795 $as_echo_n "checking dependency style of $depcc... " >&6; }
8796 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8797 $as_echo_n "(cached) " >&6
8798 else
8799 if test -f "$am_depcomp"; then
8800 # We make a subdir and do the tests there. Otherwise we can end up
8801 # making bogus files that we don't know about and never remove. For
8802 # instance it was reported that on HP-UX the gcc test will end up
8803 # making a dummy file named `D' -- because `-MD' means `put the output
8804 # in D'.
8805 mkdir conftest.dir
8806 # Copy depcomp to subdir because otherwise we won't find it if we're
8807 # using a relative directory.
8808 cp "$am_depcomp" conftest.dir
8809 cd conftest.dir
8810 # We will build objects and dependencies in a subdirectory because
8811 # it helps to detect inapplicable dependency modes. For instance
8812 # both Tru64's cc and ICC support -MD to output dependencies as a
8813 # side effect of compilation, but ICC will put the dependencies in
8814 # the current directory while Tru64 will put them in the object
8815 # directory.
8816 mkdir sub
8818 am_cv_CXX_dependencies_compiler_type=none
8819 if test "$am_compiler_list" = ""; then
8820 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8822 for depmode in $am_compiler_list; do
8823 if test $depmode = none; then break; fi
8825 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8826 # Setup a source with many dependencies, because some compilers
8827 # like to wrap large dependency lists on column 80 (with \), and
8828 # we should not choose a depcomp mode which is confused by this.
8830 # We need to recreate these files for each test, as the compiler may
8831 # overwrite some of them when testing with obscure command lines.
8832 # This happens at least with the AIX C compiler.
8833 : > sub/conftest.c
8834 for i in 1 2 3 4 5 6; do
8835 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8836 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8837 # Solaris 8's {/usr,}/bin/sh.
8838 touch sub/conftst$i.h
8839 done
8840 echo "include sub/conftest.Po" > confmf
8842 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8843 # mode. It turns out that the SunPro C++ compiler does not properly
8844 # handle `-M -o', and we need to detect this.
8845 depcmd="depmode=$depmode \
8846 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8847 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8848 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8849 echo "| $depcmd" | sed -e 's/ */ /g' >&5
8850 if env $depcmd > conftest.err 2>&1 &&
8851 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
8852 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
8853 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
8854 # icc doesn't choke on unknown options, it will just issue warnings
8855 # or remarks (even with -Werror). So we grep stderr for any message
8856 # that says an option was ignored or not supported.
8857 # When given -MP, icc 7.0 and 7.1 complain thusly:
8858 # icc: Command line warning: ignoring option '-M'; no argument required
8859 # The diagnosis changed in icc 8.0:
8860 # icc: Command line remark: option '-MP' not supported
8861 if (grep 'ignoring option' conftest.err ||
8862 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8863 am_cv_CXX_dependencies_compiler_type=$depmode
8864 $as_echo "$as_me:$LINENO: success" >&5
8865 break
8868 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8869 sed -e 's/^/| /' < conftest.err >&5
8870 done
8872 cd ..
8873 rm -rf conftest.dir
8874 else
8875 am_cv_CXX_dependencies_compiler_type=none
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8880 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8881 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
8882 then as_fn_error "no usable dependency style found" "$LINENO" 5
8883 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8887 ac_ext=c
8888 ac_cpp='$CPP $CPPFLAGS'
8889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8894 # --------
8895 # UNSORTED
8896 # --------
8899 # These libraries may be used by collect2.
8900 # We may need a special search path to get them linked.
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8902 $as_echo_n "checking for collect2 libraries... " >&6; }
8903 if test "${gcc_cv_collect2_libs+set}" = set; then :
8904 $as_echo_n "(cached) " >&6
8905 else
8906 save_LIBS="$LIBS"
8907 for libs in '' -lld -lmld \
8908 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8909 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8911 LIBS="$libs"
8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h. */
8915 /* Override any GCC internal prototype to avoid an error.
8916 Use char because int might match the return type of a GCC
8917 builtin and then its argument prototype would still apply. */
8918 #ifdef __cplusplus
8919 extern "C"
8920 #endif
8921 char ldopen ();
8923 main ()
8925 return ldopen ();
8927 return 0;
8929 _ACEOF
8930 if ac_fn_c_try_link "$LINENO"; then :
8931 gcc_cv_collect2_libs="$libs"; break
8933 rm -f core conftest.err conftest.$ac_objext \
8934 conftest$ac_exeext conftest.$ac_ext
8935 done
8936 LIBS="$save_LIBS"
8937 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8940 $as_echo "$gcc_cv_collect2_libs" >&6; }
8941 case $gcc_cv_collect2_libs in
8942 "none required") ;;
8943 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8944 esac
8947 # When building Ada code on Alpha, we need exc_resume which is usually in
8948 # -lexc. So test for it.
8949 save_LIBS="$LIBS"
8950 LIBS=
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8952 $as_echo_n "checking for library containing exc_resume... " >&6; }
8953 if test "${ac_cv_search_exc_resume+set}" = set; then :
8954 $as_echo_n "(cached) " >&6
8955 else
8956 ac_func_search_save_LIBS=$LIBS
8957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8958 /* end confdefs.h. */
8960 /* Override any GCC internal prototype to avoid an error.
8961 Use char because int might match the return type of a GCC
8962 builtin and then its argument prototype would still apply. */
8963 #ifdef __cplusplus
8964 extern "C"
8965 #endif
8966 char exc_resume ();
8968 main ()
8970 return exc_resume ();
8972 return 0;
8974 _ACEOF
8975 for ac_lib in '' exc; do
8976 if test -z "$ac_lib"; then
8977 ac_res="none required"
8978 else
8979 ac_res=-l$ac_lib
8980 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8982 if ac_fn_c_try_link "$LINENO"; then :
8983 ac_cv_search_exc_resume=$ac_res
8985 rm -f core conftest.err conftest.$ac_objext \
8986 conftest$ac_exeext
8987 if test "${ac_cv_search_exc_resume+set}" = set; then :
8988 break
8990 done
8991 if test "${ac_cv_search_exc_resume+set}" = set; then :
8993 else
8994 ac_cv_search_exc_resume=no
8996 rm conftest.$ac_ext
8997 LIBS=$ac_func_search_save_LIBS
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9000 $as_echo "$ac_cv_search_exc_resume" >&6; }
9001 ac_res=$ac_cv_search_exc_resume
9002 if test "$ac_res" != no; then :
9003 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9007 GNAT_LIBEXC="$LIBS"
9008 LIBS="$save_LIBS"
9011 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9012 save_LIBS="$LIBS"
9013 LIBS=
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9015 $as_echo_n "checking for library containing kstat_open... " >&6; }
9016 if test "${ac_cv_search_kstat_open+set}" = set; then :
9017 $as_echo_n "(cached) " >&6
9018 else
9019 ac_func_search_save_LIBS=$LIBS
9020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9021 /* end confdefs.h. */
9023 /* Override any GCC internal prototype to avoid an error.
9024 Use char because int might match the return type of a GCC
9025 builtin and then its argument prototype would still apply. */
9026 #ifdef __cplusplus
9027 extern "C"
9028 #endif
9029 char kstat_open ();
9031 main ()
9033 return kstat_open ();
9035 return 0;
9037 _ACEOF
9038 for ac_lib in '' kstat; do
9039 if test -z "$ac_lib"; then
9040 ac_res="none required"
9041 else
9042 ac_res=-l$ac_lib
9043 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9045 if ac_fn_c_try_link "$LINENO"; then :
9046 ac_cv_search_kstat_open=$ac_res
9048 rm -f core conftest.err conftest.$ac_objext \
9049 conftest$ac_exeext
9050 if test "${ac_cv_search_kstat_open+set}" = set; then :
9051 break
9053 done
9054 if test "${ac_cv_search_kstat_open+set}" = set; then :
9056 else
9057 ac_cv_search_kstat_open=no
9059 rm conftest.$ac_ext
9060 LIBS=$ac_func_search_save_LIBS
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9063 $as_echo "$ac_cv_search_kstat_open" >&6; }
9064 ac_res=$ac_cv_search_kstat_open
9065 if test "$ac_res" != no; then :
9066 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9070 EXTRA_GCC_LIBS="$LIBS"
9071 LIBS="$save_LIBS"
9074 # Some systems put ldexp and frexp in libm instead of libc; assume
9075 # they're both in the same place. jcf-dump needs them.
9076 save_LIBS="$LIBS"
9077 LIBS=
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9079 $as_echo_n "checking for library containing ldexp... " >&6; }
9080 if test "${ac_cv_search_ldexp+set}" = set; then :
9081 $as_echo_n "(cached) " >&6
9082 else
9083 ac_func_search_save_LIBS=$LIBS
9084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9085 /* end confdefs.h. */
9087 /* Override any GCC internal prototype to avoid an error.
9088 Use char because int might match the return type of a GCC
9089 builtin and then its argument prototype would still apply. */
9090 #ifdef __cplusplus
9091 extern "C"
9092 #endif
9093 char ldexp ();
9095 main ()
9097 return ldexp ();
9099 return 0;
9101 _ACEOF
9102 for ac_lib in '' m; do
9103 if test -z "$ac_lib"; then
9104 ac_res="none required"
9105 else
9106 ac_res=-l$ac_lib
9107 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9109 if ac_fn_c_try_link "$LINENO"; then :
9110 ac_cv_search_ldexp=$ac_res
9112 rm -f core conftest.err conftest.$ac_objext \
9113 conftest$ac_exeext
9114 if test "${ac_cv_search_ldexp+set}" = set; then :
9115 break
9117 done
9118 if test "${ac_cv_search_ldexp+set}" = set; then :
9120 else
9121 ac_cv_search_ldexp=no
9123 rm conftest.$ac_ext
9124 LIBS=$ac_func_search_save_LIBS
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9127 $as_echo "$ac_cv_search_ldexp" >&6; }
9128 ac_res=$ac_cv_search_ldexp
9129 if test "$ac_res" != no; then :
9130 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9134 LDEXP_LIB="$LIBS"
9135 LIBS="$save_LIBS"
9138 # Use <inttypes.h> only if it exists,
9139 # doesn't clash with <sys/types.h>, and declares intmax_t.
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9141 $as_echo_n "checking for inttypes.h... " >&6; }
9142 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9143 $as_echo_n "(cached) " >&6
9144 else
9145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9146 /* end confdefs.h. */
9147 #include <sys/types.h>
9148 #include <inttypes.h>
9150 main ()
9152 intmax_t i = -1;
9154 return 0;
9156 _ACEOF
9157 if ac_fn_c_try_compile "$LINENO"; then :
9158 gcc_cv_header_inttypes_h=yes
9159 else
9160 gcc_cv_header_inttypes_h=no
9162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9166 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9167 if test $gcc_cv_header_inttypes_h = yes; then
9169 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9175 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9176 sysconf strsignal getrusage nl_langinfo \
9177 gettimeofday mbstowcs wcswidth mmap setlocale \
9178 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
9179 do :
9180 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9181 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9182 eval as_val=\$$as_ac_var
9183 if test "x$as_val" = x""yes; then :
9184 cat >>confdefs.h <<_ACEOF
9185 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9186 _ACEOF
9189 done
9192 if test x$ac_cv_func_mbstowcs = xyes; then
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9194 $as_echo_n "checking whether mbstowcs works... " >&6; }
9195 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9196 $as_echo_n "(cached) " >&6
9197 else
9198 if test "$cross_compiling" = yes; then :
9199 gcc_cv_func_mbstowcs_works=yes
9200 else
9201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202 /* end confdefs.h. */
9203 #include <stdlib.h>
9204 int main()
9206 mbstowcs(0, "", 0);
9207 return 0;
9209 _ACEOF
9210 if ac_fn_c_try_run "$LINENO"; then :
9211 gcc_cv_func_mbstowcs_works=yes
9212 else
9213 gcc_cv_func_mbstowcs_works=no
9215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9216 conftest.$ac_objext conftest.beam conftest.$ac_ext
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9221 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9222 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9224 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9229 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9230 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9232 else
9234 cat >>confdefs.h <<_ACEOF
9235 #define ssize_t int
9236 _ACEOF
9240 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9241 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9243 else
9245 cat >>confdefs.h <<_ACEOF
9246 #define caddr_t char *
9247 _ACEOF
9253 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9254 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9255 gcc_header_sys_mman_h=yes
9256 else
9257 gcc_header_sys_mman_h=no
9260 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9261 if test "x$ac_cv_func_mmap" = x""yes; then :
9262 gcc_func_mmap=yes
9263 else
9264 gcc_func_mmap=no
9267 if test "$gcc_header_sys_mman_h" != yes \
9268 || test "$gcc_func_mmap" != yes; then
9269 gcc_cv_func_mmap_file=no
9270 gcc_cv_func_mmap_dev_zero=no
9271 gcc_cv_func_mmap_anon=no
9272 else
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9274 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9275 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9276 $as_echo_n "(cached) " >&6
9277 else
9278 # Add a system to this blacklist if
9279 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9280 # memory area containing the same data that you'd get if you applied
9281 # read() to the same fd. The only system known to have a problem here
9282 # is VMS, where text files have record structure.
9283 case "$host_os" in
9284 *vms* | ultrix*)
9285 gcc_cv_func_mmap_file=no ;;
9287 gcc_cv_func_mmap_file=yes;;
9288 esac
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9291 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9293 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9294 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9295 $as_echo_n "(cached) " >&6
9296 else
9297 # Add a system to this blacklist if it has mmap() but /dev/zero
9298 # does not exist, or if mmapping /dev/zero does not give anonymous
9299 # zeroed pages with both the following properties:
9300 # 1. If you map N consecutive pages in with one call, and then
9301 # unmap any subset of those pages, the pages that were not
9302 # explicitly unmapped remain accessible.
9303 # 2. If you map two adjacent blocks of memory and then unmap them
9304 # both at once, they must both go away.
9305 # Systems known to be in this category are Windows (all variants),
9306 # VMS, and Darwin.
9307 case "$host_os" in
9308 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9309 gcc_cv_func_mmap_dev_zero=no ;;
9311 gcc_cv_func_mmap_dev_zero=yes;;
9312 esac
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9315 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9317 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9319 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9320 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9321 $as_echo_n "(cached) " >&6
9322 else
9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324 /* end confdefs.h. */
9325 #include <sys/types.h>
9326 #include <sys/mman.h>
9327 #include <unistd.h>
9329 #ifndef MAP_ANONYMOUS
9330 #define MAP_ANONYMOUS MAP_ANON
9331 #endif
9334 main ()
9336 int n = MAP_ANONYMOUS;
9338 return 0;
9340 _ACEOF
9341 if ac_fn_c_try_compile "$LINENO"; then :
9342 gcc_cv_decl_map_anon=yes
9343 else
9344 gcc_cv_decl_map_anon=no
9346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9349 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9351 if test $gcc_cv_decl_map_anon = no; then
9352 gcc_cv_func_mmap_anon=no
9353 else
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9355 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9356 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9357 $as_echo_n "(cached) " >&6
9358 else
9359 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9360 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9361 # doesn't give anonymous zeroed pages with the same properties listed
9362 # above for use of /dev/zero.
9363 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9364 case "$host_os" in
9365 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9366 gcc_cv_func_mmap_anon=no ;;
9368 gcc_cv_func_mmap_anon=yes;;
9369 esac
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9372 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9376 if test $gcc_cv_func_mmap_file = yes; then
9378 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9381 if test $gcc_cv_func_mmap_dev_zero = yes; then
9383 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9386 if test $gcc_cv_func_mmap_anon = yes; then
9388 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9393 case "${host}" in
9394 *-*-*vms*)
9395 # Under VMS, vfork works very differently than on Unix. The standard test
9396 # won't work, and it isn't easily adaptable. It makes more sense to
9397 # just force it.
9398 ac_cv_func_vfork_works=yes
9400 esac
9401 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9402 if test "x$ac_cv_type_pid_t" = x""yes; then :
9404 else
9406 cat >>confdefs.h <<_ACEOF
9407 #define pid_t int
9408 _ACEOF
9412 for ac_header in vfork.h
9413 do :
9414 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9415 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9416 cat >>confdefs.h <<_ACEOF
9417 #define HAVE_VFORK_H 1
9418 _ACEOF
9421 done
9423 for ac_func in fork vfork
9424 do :
9425 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9426 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9427 eval as_val=\$$as_ac_var
9428 if test "x$as_val" = x""yes; then :
9429 cat >>confdefs.h <<_ACEOF
9430 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9431 _ACEOF
9434 done
9436 if test "x$ac_cv_func_fork" = xyes; then
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9438 $as_echo_n "checking for working fork... " >&6; }
9439 if test "${ac_cv_func_fork_works+set}" = set; then :
9440 $as_echo_n "(cached) " >&6
9441 else
9442 if test "$cross_compiling" = yes; then :
9443 ac_cv_func_fork_works=cross
9444 else
9445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9446 /* end confdefs.h. */
9447 $ac_includes_default
9449 main ()
9452 /* By Ruediger Kuhlmann. */
9453 return fork () < 0;
9456 return 0;
9458 _ACEOF
9459 if ac_fn_c_try_run "$LINENO"; then :
9460 ac_cv_func_fork_works=yes
9461 else
9462 ac_cv_func_fork_works=no
9464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9465 conftest.$ac_objext conftest.beam conftest.$ac_ext
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9470 $as_echo "$ac_cv_func_fork_works" >&6; }
9472 else
9473 ac_cv_func_fork_works=$ac_cv_func_fork
9475 if test "x$ac_cv_func_fork_works" = xcross; then
9476 case $host in
9477 *-*-amigaos* | *-*-msdosdjgpp*)
9478 # Override, as these systems have only a dummy fork() stub
9479 ac_cv_func_fork_works=no
9482 ac_cv_func_fork_works=yes
9484 esac
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9486 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9488 ac_cv_func_vfork_works=$ac_cv_func_vfork
9489 if test "x$ac_cv_func_vfork" = xyes; then
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9491 $as_echo_n "checking for working vfork... " >&6; }
9492 if test "${ac_cv_func_vfork_works+set}" = set; then :
9493 $as_echo_n "(cached) " >&6
9494 else
9495 if test "$cross_compiling" = yes; then :
9496 ac_cv_func_vfork_works=cross
9497 else
9498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h. */
9500 /* Thanks to Paul Eggert for this test. */
9501 $ac_includes_default
9502 #include <sys/wait.h>
9503 #ifdef HAVE_VFORK_H
9504 # include <vfork.h>
9505 #endif
9506 /* On some sparc systems, changes by the child to local and incoming
9507 argument registers are propagated back to the parent. The compiler
9508 is told about this with #include <vfork.h>, but some compilers
9509 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9510 static variable whose address is put into a register that is
9511 clobbered by the vfork. */
9512 static void
9513 #ifdef __cplusplus
9514 sparc_address_test (int arg)
9515 # else
9516 sparc_address_test (arg) int arg;
9517 #endif
9519 static pid_t child;
9520 if (!child) {
9521 child = vfork ();
9522 if (child < 0) {
9523 perror ("vfork");
9524 _exit(2);
9526 if (!child) {
9527 arg = getpid();
9528 write(-1, "", 0);
9529 _exit (arg);
9535 main ()
9537 pid_t parent = getpid ();
9538 pid_t child;
9540 sparc_address_test (0);
9542 child = vfork ();
9544 if (child == 0) {
9545 /* Here is another test for sparc vfork register problems. This
9546 test uses lots of local variables, at least as many local
9547 variables as main has allocated so far including compiler
9548 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9549 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9550 reuse the register of parent for one of the local variables,
9551 since it will think that parent can't possibly be used any more
9552 in this routine. Assigning to the local variable will thus
9553 munge parent in the parent process. */
9554 pid_t
9555 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9556 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9557 /* Convince the compiler that p..p7 are live; otherwise, it might
9558 use the same hardware register for all 8 local variables. */
9559 if (p != p1 || p != p2 || p != p3 || p != p4
9560 || p != p5 || p != p6 || p != p7)
9561 _exit(1);
9563 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9564 from child file descriptors. If the child closes a descriptor
9565 before it execs or exits, this munges the parent's descriptor
9566 as well. Test for this by closing stdout in the child. */
9567 _exit(close(fileno(stdout)) != 0);
9568 } else {
9569 int status;
9570 struct stat st;
9572 while (wait(&status) != child)
9574 return (
9575 /* Was there some problem with vforking? */
9576 child < 0
9578 /* Did the child fail? (This shouldn't happen.) */
9579 || status
9581 /* Did the vfork/compiler bug occur? */
9582 || parent != getpid()
9584 /* Did the file descriptor bug occur? */
9585 || fstat(fileno(stdout), &st) != 0
9589 _ACEOF
9590 if ac_fn_c_try_run "$LINENO"; then :
9591 ac_cv_func_vfork_works=yes
9592 else
9593 ac_cv_func_vfork_works=no
9595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9596 conftest.$ac_objext conftest.beam conftest.$ac_ext
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9601 $as_echo "$ac_cv_func_vfork_works" >&6; }
9604 if test "x$ac_cv_func_fork_works" = xcross; then
9605 ac_cv_func_vfork_works=$ac_cv_func_vfork
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9607 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9610 if test "x$ac_cv_func_vfork_works" = xyes; then
9612 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9614 else
9616 $as_echo "#define vfork fork" >>confdefs.h
9619 if test "x$ac_cv_func_fork_works" = xyes; then
9621 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9626 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9627 # iconv() prototype.
9628 ac_ext=cpp
9629 ac_cpp='$CXXCPP $CPPFLAGS'
9630 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9631 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9632 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9635 if test "X$prefix" = "XNONE"; then
9636 acl_final_prefix="$ac_default_prefix"
9637 else
9638 acl_final_prefix="$prefix"
9640 if test "X$exec_prefix" = "XNONE"; then
9641 acl_final_exec_prefix='${prefix}'
9642 else
9643 acl_final_exec_prefix="$exec_prefix"
9645 acl_save_prefix="$prefix"
9646 prefix="$acl_final_prefix"
9647 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9648 prefix="$acl_save_prefix"
9651 # Check whether --with-gnu-ld was given.
9652 if test "${with_gnu_ld+set}" = set; then :
9653 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9654 else
9655 with_gnu_ld=no
9658 # Prepare PATH_SEPARATOR.
9659 # The user is always right.
9660 if test "${PATH_SEPARATOR+set}" != set; then
9661 echo "#! /bin/sh" >conf$$.sh
9662 echo "exit 0" >>conf$$.sh
9663 chmod +x conf$$.sh
9664 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9665 PATH_SEPARATOR=';'
9666 else
9667 PATH_SEPARATOR=:
9669 rm -f conf$$.sh
9671 ac_prog=ld
9672 if test "$GCC" = yes; then
9673 # Check if gcc -print-prog-name=ld gives a path.
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9675 $as_echo_n "checking for ld used by GCC... " >&6; }
9676 case $host in
9677 *-*-mingw*)
9678 # gcc leaves a trailing carriage return which upsets mingw
9679 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9681 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9682 esac
9683 case $ac_prog in
9684 # Accept absolute paths.
9685 [\\/]* | [A-Za-z]:[\\/]*)
9686 re_direlt='/[^/][^/]*/\.\./'
9687 # Canonicalize the path of ld
9688 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9689 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9690 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9691 done
9692 test -z "$LD" && LD="$ac_prog"
9695 # If it fails, then pretend we aren't using GCC.
9696 ac_prog=ld
9699 # If it is relative, then search for the first ld in PATH.
9700 with_gnu_ld=unknown
9702 esac
9703 elif test "$with_gnu_ld" = yes; then
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9705 $as_echo_n "checking for GNU ld... " >&6; }
9706 else
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9708 $as_echo_n "checking for non-GNU ld... " >&6; }
9710 if test "${acl_cv_path_LD+set}" = set; then :
9711 $as_echo_n "(cached) " >&6
9712 else
9713 if test -z "$LD"; then
9714 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9715 for ac_dir in $PATH; do
9716 test -z "$ac_dir" && ac_dir=.
9717 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9718 acl_cv_path_LD="$ac_dir/$ac_prog"
9719 # Check to see if the program is GNU ld. I'd rather use --version,
9720 # but apparently some GNU ld's only accept -v.
9721 # Break only if it was the GNU/non-GNU ld that we prefer.
9722 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9723 test "$with_gnu_ld" != no && break
9724 else
9725 test "$with_gnu_ld" != yes && break
9728 done
9729 IFS="$ac_save_ifs"
9730 else
9731 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9735 LD="$acl_cv_path_LD"
9736 if test -n "$LD"; then
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9738 $as_echo "$LD" >&6; }
9739 else
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9741 $as_echo "no" >&6; }
9743 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9745 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9746 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9747 $as_echo_n "(cached) " >&6
9748 else
9749 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9750 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9751 acl_cv_prog_gnu_ld=yes
9752 else
9753 acl_cv_prog_gnu_ld=no
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9757 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9758 with_gnu_ld=$acl_cv_prog_gnu_ld
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9763 $as_echo_n "checking for shared library run path origin... " >&6; }
9764 if test "${acl_cv_rpath+set}" = set; then :
9765 $as_echo_n "(cached) " >&6
9766 else
9768 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9769 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9770 . ./conftest.sh
9771 rm -f ./conftest.sh
9772 acl_cv_rpath=done
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9776 $as_echo "$acl_cv_rpath" >&6; }
9777 wl="$acl_cv_wl"
9778 libext="$acl_cv_libext"
9779 shlibext="$acl_cv_shlibext"
9780 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9781 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9782 hardcode_direct="$acl_cv_hardcode_direct"
9783 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9784 # Check whether --enable-rpath was given.
9785 if test "${enable_rpath+set}" = set; then :
9786 enableval=$enable_rpath; :
9787 else
9788 enable_rpath=yes
9798 use_additional=yes
9800 acl_save_prefix="$prefix"
9801 prefix="$acl_final_prefix"
9802 acl_save_exec_prefix="$exec_prefix"
9803 exec_prefix="$acl_final_exec_prefix"
9805 eval additional_includedir=\"$includedir\"
9806 eval additional_libdir=\"$libdir\"
9808 exec_prefix="$acl_save_exec_prefix"
9809 prefix="$acl_save_prefix"
9812 # Check whether --with-libiconv-prefix was given.
9813 if test "${with_libiconv_prefix+set}" = set; then :
9814 withval=$with_libiconv_prefix;
9815 if test "X$withval" = "Xno"; then
9816 use_additional=no
9817 else
9818 if test "X$withval" = "X"; then
9820 acl_save_prefix="$prefix"
9821 prefix="$acl_final_prefix"
9822 acl_save_exec_prefix="$exec_prefix"
9823 exec_prefix="$acl_final_exec_prefix"
9825 eval additional_includedir=\"$includedir\"
9826 eval additional_libdir=\"$libdir\"
9828 exec_prefix="$acl_save_exec_prefix"
9829 prefix="$acl_save_prefix"
9831 else
9832 additional_includedir="$withval/include"
9833 additional_libdir="$withval/lib"
9839 LIBICONV=
9840 LTLIBICONV=
9841 INCICONV=
9842 rpathdirs=
9843 ltrpathdirs=
9844 names_already_handled=
9845 names_next_round='iconv '
9846 while test -n "$names_next_round"; do
9847 names_this_round="$names_next_round"
9848 names_next_round=
9849 for name in $names_this_round; do
9850 already_handled=
9851 for n in $names_already_handled; do
9852 if test "$n" = "$name"; then
9853 already_handled=yes
9854 break
9856 done
9857 if test -z "$already_handled"; then
9858 names_already_handled="$names_already_handled $name"
9859 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9860 eval value=\"\$HAVE_LIB$uppername\"
9861 if test -n "$value"; then
9862 if test "$value" = yes; then
9863 eval value=\"\$LIB$uppername\"
9864 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9865 eval value=\"\$LTLIB$uppername\"
9866 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9867 else
9870 else
9871 found_dir=
9872 found_la=
9873 found_so=
9874 found_a=
9875 if test $use_additional = yes; then
9876 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9877 found_dir="$additional_libdir"
9878 found_so="$additional_libdir/lib$name.$shlibext"
9879 if test -f "$additional_libdir/lib$name.la"; then
9880 found_la="$additional_libdir/lib$name.la"
9882 else
9883 if test -f "$additional_libdir/lib$name.$libext"; then
9884 found_dir="$additional_libdir"
9885 found_a="$additional_libdir/lib$name.$libext"
9886 if test -f "$additional_libdir/lib$name.la"; then
9887 found_la="$additional_libdir/lib$name.la"
9892 if test "X$found_dir" = "X"; then
9893 for x in $LDFLAGS $LTLIBICONV; do
9895 acl_save_prefix="$prefix"
9896 prefix="$acl_final_prefix"
9897 acl_save_exec_prefix="$exec_prefix"
9898 exec_prefix="$acl_final_exec_prefix"
9899 eval x=\"$x\"
9900 exec_prefix="$acl_save_exec_prefix"
9901 prefix="$acl_save_prefix"
9903 case "$x" in
9904 -L*)
9905 dir=`echo "X$x" | sed -e 's/^X-L//'`
9906 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9907 found_dir="$dir"
9908 found_so="$dir/lib$name.$shlibext"
9909 if test -f "$dir/lib$name.la"; then
9910 found_la="$dir/lib$name.la"
9912 else
9913 if test -f "$dir/lib$name.$libext"; then
9914 found_dir="$dir"
9915 found_a="$dir/lib$name.$libext"
9916 if test -f "$dir/lib$name.la"; then
9917 found_la="$dir/lib$name.la"
9922 esac
9923 if test "X$found_dir" != "X"; then
9924 break
9926 done
9928 if test "X$found_dir" != "X"; then
9929 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9930 if test "X$found_so" != "X"; then
9931 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9932 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9933 else
9934 haveit=
9935 for x in $ltrpathdirs; do
9936 if test "X$x" = "X$found_dir"; then
9937 haveit=yes
9938 break
9940 done
9941 if test -z "$haveit"; then
9942 ltrpathdirs="$ltrpathdirs $found_dir"
9944 if test "$hardcode_direct" = yes; then
9945 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9946 else
9947 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9948 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9949 haveit=
9950 for x in $rpathdirs; do
9951 if test "X$x" = "X$found_dir"; then
9952 haveit=yes
9953 break
9955 done
9956 if test -z "$haveit"; then
9957 rpathdirs="$rpathdirs $found_dir"
9959 else
9960 haveit=
9961 for x in $LDFLAGS $LIBICONV; do
9963 acl_save_prefix="$prefix"
9964 prefix="$acl_final_prefix"
9965 acl_save_exec_prefix="$exec_prefix"
9966 exec_prefix="$acl_final_exec_prefix"
9967 eval x=\"$x\"
9968 exec_prefix="$acl_save_exec_prefix"
9969 prefix="$acl_save_prefix"
9971 if test "X$x" = "X-L$found_dir"; then
9972 haveit=yes
9973 break
9975 done
9976 if test -z "$haveit"; then
9977 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9979 if test "$hardcode_minus_L" != no; then
9980 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9981 else
9982 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9987 else
9988 if test "X$found_a" != "X"; then
9989 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9990 else
9991 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9994 additional_includedir=
9995 case "$found_dir" in
9996 */lib | */lib/)
9997 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9998 additional_includedir="$basedir/include"
10000 esac
10001 if test "X$additional_includedir" != "X"; then
10002 if test "X$additional_includedir" != "X/usr/include"; then
10003 haveit=
10004 if test "X$additional_includedir" = "X/usr/local/include"; then
10005 if test -n "$GCC"; then
10006 case $host_os in
10007 linux*) haveit=yes;;
10008 esac
10011 if test -z "$haveit"; then
10012 for x in $CPPFLAGS $INCICONV; do
10014 acl_save_prefix="$prefix"
10015 prefix="$acl_final_prefix"
10016 acl_save_exec_prefix="$exec_prefix"
10017 exec_prefix="$acl_final_exec_prefix"
10018 eval x=\"$x\"
10019 exec_prefix="$acl_save_exec_prefix"
10020 prefix="$acl_save_prefix"
10022 if test "X$x" = "X-I$additional_includedir"; then
10023 haveit=yes
10024 break
10026 done
10027 if test -z "$haveit"; then
10028 if test -d "$additional_includedir"; then
10029 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10035 if test -n "$found_la"; then
10036 save_libdir="$libdir"
10037 case "$found_la" in
10038 */* | *\\*) . "$found_la" ;;
10039 *) . "./$found_la" ;;
10040 esac
10041 libdir="$save_libdir"
10042 for dep in $dependency_libs; do
10043 case "$dep" in
10044 -L*)
10045 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10046 if test "X$additional_libdir" != "X/usr/lib"; then
10047 haveit=
10048 if test "X$additional_libdir" = "X/usr/local/lib"; then
10049 if test -n "$GCC"; then
10050 case $host_os in
10051 linux*) haveit=yes;;
10052 esac
10055 if test -z "$haveit"; then
10056 haveit=
10057 for x in $LDFLAGS $LIBICONV; do
10059 acl_save_prefix="$prefix"
10060 prefix="$acl_final_prefix"
10061 acl_save_exec_prefix="$exec_prefix"
10062 exec_prefix="$acl_final_exec_prefix"
10063 eval x=\"$x\"
10064 exec_prefix="$acl_save_exec_prefix"
10065 prefix="$acl_save_prefix"
10067 if test "X$x" = "X-L$additional_libdir"; then
10068 haveit=yes
10069 break
10071 done
10072 if test -z "$haveit"; then
10073 if test -d "$additional_libdir"; then
10074 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10077 haveit=
10078 for x in $LDFLAGS $LTLIBICONV; do
10080 acl_save_prefix="$prefix"
10081 prefix="$acl_final_prefix"
10082 acl_save_exec_prefix="$exec_prefix"
10083 exec_prefix="$acl_final_exec_prefix"
10084 eval x=\"$x\"
10085 exec_prefix="$acl_save_exec_prefix"
10086 prefix="$acl_save_prefix"
10088 if test "X$x" = "X-L$additional_libdir"; then
10089 haveit=yes
10090 break
10092 done
10093 if test -z "$haveit"; then
10094 if test -d "$additional_libdir"; then
10095 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10101 -R*)
10102 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10103 if test "$enable_rpath" != no; then
10104 haveit=
10105 for x in $rpathdirs; do
10106 if test "X$x" = "X$dir"; then
10107 haveit=yes
10108 break
10110 done
10111 if test -z "$haveit"; then
10112 rpathdirs="$rpathdirs $dir"
10114 haveit=
10115 for x in $ltrpathdirs; do
10116 if test "X$x" = "X$dir"; then
10117 haveit=yes
10118 break
10120 done
10121 if test -z "$haveit"; then
10122 ltrpathdirs="$ltrpathdirs $dir"
10126 -l*)
10127 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10129 *.la)
10130 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10133 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10134 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10136 esac
10137 done
10139 else
10140 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10141 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10145 done
10146 done
10147 if test "X$rpathdirs" != "X"; then
10148 if test -n "$hardcode_libdir_separator"; then
10149 alldirs=
10150 for found_dir in $rpathdirs; do
10151 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10152 done
10153 acl_save_libdir="$libdir"
10154 libdir="$alldirs"
10155 eval flag=\"$hardcode_libdir_flag_spec\"
10156 libdir="$acl_save_libdir"
10157 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10158 else
10159 for found_dir in $rpathdirs; do
10160 acl_save_libdir="$libdir"
10161 libdir="$found_dir"
10162 eval flag=\"$hardcode_libdir_flag_spec\"
10163 libdir="$acl_save_libdir"
10164 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10165 done
10168 if test "X$ltrpathdirs" != "X"; then
10169 for found_dir in $ltrpathdirs; do
10170 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10171 done
10180 am_save_CPPFLAGS="$CPPFLAGS"
10182 for element in $INCICONV; do
10183 haveit=
10184 for x in $CPPFLAGS; do
10186 acl_save_prefix="$prefix"
10187 prefix="$acl_final_prefix"
10188 acl_save_exec_prefix="$exec_prefix"
10189 exec_prefix="$acl_final_exec_prefix"
10190 eval x=\"$x\"
10191 exec_prefix="$acl_save_exec_prefix"
10192 prefix="$acl_save_prefix"
10194 if test "X$x" = "X$element"; then
10195 haveit=yes
10196 break
10198 done
10199 if test -z "$haveit"; then
10200 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10202 done
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10206 $as_echo_n "checking for iconv... " >&6; }
10207 if test "${am_cv_func_iconv+set}" = set; then :
10208 $as_echo_n "(cached) " >&6
10209 else
10211 am_cv_func_iconv="no, consider installing GNU libiconv"
10212 am_cv_lib_iconv=no
10213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10214 /* end confdefs.h. */
10215 #include <stdlib.h>
10216 #include <iconv.h>
10218 main ()
10220 iconv_t cd = iconv_open("","");
10221 iconv(cd,NULL,NULL,NULL,NULL);
10222 iconv_close(cd);
10224 return 0;
10226 _ACEOF
10227 if ac_fn_cxx_try_link "$LINENO"; then :
10228 am_cv_func_iconv=yes
10230 rm -f core conftest.err conftest.$ac_objext \
10231 conftest$ac_exeext conftest.$ac_ext
10232 if test "$am_cv_func_iconv" != yes; then
10233 am_save_LIBS="$LIBS"
10234 LIBS="$LIBS $LIBICONV"
10235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10236 /* end confdefs.h. */
10237 #include <stdlib.h>
10238 #include <iconv.h>
10240 main ()
10242 iconv_t cd = iconv_open("","");
10243 iconv(cd,NULL,NULL,NULL,NULL);
10244 iconv_close(cd);
10246 return 0;
10248 _ACEOF
10249 if ac_fn_cxx_try_link "$LINENO"; then :
10250 am_cv_lib_iconv=yes
10251 am_cv_func_iconv=yes
10253 rm -f core conftest.err conftest.$ac_objext \
10254 conftest$ac_exeext conftest.$ac_ext
10255 LIBS="$am_save_LIBS"
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10260 $as_echo "$am_cv_func_iconv" >&6; }
10261 if test "$am_cv_func_iconv" = yes; then
10263 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10266 if test "$am_cv_lib_iconv" = yes; then
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10268 $as_echo_n "checking how to link with libiconv... " >&6; }
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10270 $as_echo "$LIBICONV" >&6; }
10271 else
10272 CPPFLAGS="$am_save_CPPFLAGS"
10273 LIBICONV=
10274 LTLIBICONV=
10279 if test "$am_cv_func_iconv" = yes; then
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10281 $as_echo_n "checking for iconv declaration... " >&6; }
10282 if test "${am_cv_proto_iconv+set}" = set; then :
10283 $as_echo_n "(cached) " >&6
10284 else
10286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10287 /* end confdefs.h. */
10289 #include <stdlib.h>
10290 #include <iconv.h>
10291 extern
10292 #ifdef __cplusplus
10294 #endif
10295 #if defined(__STDC__) || defined(__cplusplus)
10296 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10297 #else
10298 size_t iconv();
10299 #endif
10302 main ()
10306 return 0;
10308 _ACEOF
10309 if ac_fn_cxx_try_compile "$LINENO"; then :
10310 am_cv_proto_iconv_arg1=""
10311 else
10312 am_cv_proto_iconv_arg1="const"
10314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10315 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);"
10318 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10320 }$am_cv_proto_iconv" >&5
10321 $as_echo "${ac_t:-
10322 }$am_cv_proto_iconv" >&6; }
10324 cat >>confdefs.h <<_ACEOF
10325 #define ICONV_CONST $am_cv_proto_iconv_arg1
10326 _ACEOF
10330 ac_ext=c
10331 ac_cpp='$CPP $CPPFLAGS'
10332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10337 # Until we have in-tree GNU iconv:
10338 LIBICONV_DEP=
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10343 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10344 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10345 $as_echo_n "(cached) " >&6
10346 else
10347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348 /* end confdefs.h. */
10349 #include <locale.h>
10351 main ()
10353 return LC_MESSAGES
10355 return 0;
10357 _ACEOF
10358 if ac_fn_c_try_link "$LINENO"; then :
10359 am_cv_val_LC_MESSAGES=yes
10360 else
10361 am_cv_val_LC_MESSAGES=no
10363 rm -f core conftest.err conftest.$ac_objext \
10364 conftest$ac_exeext conftest.$ac_ext
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10367 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10368 if test $am_cv_val_LC_MESSAGES = yes; then
10370 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10377 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10378 if test "${am_cv_langinfo_codeset+set}" = set; then :
10379 $as_echo_n "(cached) " >&6
10380 else
10381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10382 /* end confdefs.h. */
10383 #include <langinfo.h>
10385 main ()
10387 char* cs = nl_langinfo(CODESET);
10389 return 0;
10391 _ACEOF
10392 if ac_fn_c_try_link "$LINENO"; then :
10393 am_cv_langinfo_codeset=yes
10394 else
10395 am_cv_langinfo_codeset=no
10397 rm -f core conftest.err conftest.$ac_objext \
10398 conftest$ac_exeext conftest.$ac_ext
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10402 $as_echo "$am_cv_langinfo_codeset" >&6; }
10403 if test $am_cv_langinfo_codeset = yes; then
10405 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10410 # We will need to find libiberty.h and ansidecl.h
10411 saved_CFLAGS="$CFLAGS"
10412 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10413 saved_CXXFLAGS="$CXXFLAGS"
10414 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10415 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10416 strsignal strstr stpcpy strverscmp \
10417 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10418 free basename 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
10420 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10422 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10423 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10424 $as_echo_n "(cached) " >&6
10425 else
10426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427 /* end confdefs.h. */
10428 #undef $ac_tr_decl
10429 #define $ac_tr_decl 1
10431 #include "ansidecl.h"
10432 #include "system.h"
10435 main ()
10437 #ifndef $ac_func
10438 char *(*pfn) = (char *(*)) $ac_func ;
10439 #endif
10441 return 0;
10443 _ACEOF
10444 if ac_fn_c_try_compile "$LINENO"; then :
10445 eval "gcc_cv_have_decl_$ac_func=yes"
10446 else
10447 eval "gcc_cv_have_decl_$ac_func=no"
10449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10452 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10454 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10455 #define $ac_tr_decl 1
10456 _ACEOF
10458 else
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10460 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10461 #define $ac_tr_decl 0
10462 _ACEOF
10466 done
10469 for ac_func in getrlimit setrlimit getrusage
10471 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10473 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10474 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10475 $as_echo_n "(cached) " >&6
10476 else
10477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10478 /* end confdefs.h. */
10479 #undef $ac_tr_decl
10480 #define $ac_tr_decl 1
10482 #include "ansidecl.h"
10483 #include "system.h"
10484 #ifdef HAVE_SYS_RESOURCE_H
10485 #include <sys/resource.h>
10486 #endif
10490 main ()
10492 #ifndef $ac_func
10493 char *(*pfn) = (char *(*)) $ac_func ;
10494 #endif
10496 return 0;
10498 _ACEOF
10499 if ac_fn_c_try_compile "$LINENO"; then :
10500 eval "gcc_cv_have_decl_$ac_func=yes"
10501 else
10502 eval "gcc_cv_have_decl_$ac_func=no"
10504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10507 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10509 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10510 #define $ac_tr_decl 1
10511 _ACEOF
10513 else
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10515 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10516 #define $ac_tr_decl 0
10517 _ACEOF
10521 done
10524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10525 /* end confdefs.h. */
10527 #include "ansidecl.h"
10528 #include "system.h"
10529 #ifdef HAVE_SYS_RESOURCE_H
10530 #include <sys/resource.h>
10531 #endif
10534 main ()
10536 rlim_t l = 0;
10538 return 0;
10540 _ACEOF
10541 if ac_fn_c_try_compile "$LINENO"; then :
10543 else
10545 $as_echo "#define rlim_t long" >>confdefs.h
10548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10550 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10551 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10552 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10553 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10554 for ac_func in ldgetname
10556 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10558 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10559 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10560 $as_echo_n "(cached) " >&6
10561 else
10562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10563 /* end confdefs.h. */
10564 #undef $ac_tr_decl
10565 #define $ac_tr_decl 1
10567 #include "ansidecl.h"
10568 #include "system.h"
10569 #ifdef HAVE_LDFCN_H
10570 #undef FREAD
10571 #undef FWRITE
10572 #include <ldfcn.h>
10573 #endif
10577 main ()
10579 #ifndef $ac_func
10580 char *(*pfn) = (char *(*)) $ac_func ;
10581 #endif
10583 return 0;
10585 _ACEOF
10586 if ac_fn_c_try_compile "$LINENO"; then :
10587 eval "gcc_cv_have_decl_$ac_func=yes"
10588 else
10589 eval "gcc_cv_have_decl_$ac_func=no"
10591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10594 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10596 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10597 #define $ac_tr_decl 1
10598 _ACEOF
10600 else
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10602 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10603 #define $ac_tr_decl 0
10604 _ACEOF
10608 done
10611 for ac_func in times
10613 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10615 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10616 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10617 $as_echo_n "(cached) " >&6
10618 else
10619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10620 /* end confdefs.h. */
10621 #undef $ac_tr_decl
10622 #define $ac_tr_decl 1
10624 #include "ansidecl.h"
10625 #include "system.h"
10626 #ifdef HAVE_SYS_TIMES_H
10627 #include <sys/times.h>
10628 #endif
10632 main ()
10634 #ifndef $ac_func
10635 char *(*pfn) = (char *(*)) $ac_func ;
10636 #endif
10638 return 0;
10640 _ACEOF
10641 if ac_fn_c_try_compile "$LINENO"; then :
10642 eval "gcc_cv_have_decl_$ac_func=yes"
10643 else
10644 eval "gcc_cv_have_decl_$ac_func=no"
10646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10649 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10651 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10652 #define $ac_tr_decl 1
10653 _ACEOF
10655 else
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10657 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10658 #define $ac_tr_decl 0
10659 _ACEOF
10663 done
10666 for ac_func in sigaltstack
10668 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10670 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10671 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10672 $as_echo_n "(cached) " >&6
10673 else
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10676 #undef $ac_tr_decl
10677 #define $ac_tr_decl 1
10679 #include "ansidecl.h"
10680 #include "system.h"
10681 #include <signal.h>
10685 main ()
10687 #ifndef $ac_func
10688 char *(*pfn) = (char *(*)) $ac_func ;
10689 #endif
10691 return 0;
10693 _ACEOF
10694 if ac_fn_c_try_compile "$LINENO"; then :
10695 eval "gcc_cv_have_decl_$ac_func=yes"
10696 else
10697 eval "gcc_cv_have_decl_$ac_func=no"
10699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10702 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10704 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10705 #define $ac_tr_decl 1
10706 _ACEOF
10708 else
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10710 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10711 #define $ac_tr_decl 0
10712 _ACEOF
10716 done
10719 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10720 # prototype.
10721 ac_ext=cpp
10722 ac_cpp='$CXXCPP $CPPFLAGS'
10723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10727 for ac_func in madvise
10729 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10731 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10732 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10733 $as_echo_n "(cached) " >&6
10734 else
10735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h. */
10737 #undef $ac_tr_decl
10738 #define $ac_tr_decl 1
10740 #include "ansidecl.h"
10741 #include "system.h"
10745 main ()
10747 #ifndef $ac_func
10748 char *(*pfn) = (char *(*)) $ac_func ;
10749 #endif
10751 return 0;
10753 _ACEOF
10754 if ac_fn_cxx_try_compile "$LINENO"; then :
10755 eval "gcc_cv_have_decl_$ac_func=yes"
10756 else
10757 eval "gcc_cv_have_decl_$ac_func=no"
10759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10762 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10764 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10765 #define $ac_tr_decl 1
10766 _ACEOF
10768 else
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10770 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10771 #define $ac_tr_decl 0
10772 _ACEOF
10776 done
10778 ac_ext=c
10779 ac_cpp='$CPP $CPPFLAGS'
10780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10785 # More time-related stuff.
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10787 $as_echo_n "checking for struct tms... " >&6; }
10788 if test "${ac_cv_struct_tms+set}" = set; then :
10789 $as_echo_n "(cached) " >&6
10790 else
10792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10793 /* end confdefs.h. */
10795 #include "ansidecl.h"
10796 #include "system.h"
10797 #ifdef HAVE_SYS_TIMES_H
10798 #include <sys/times.h>
10799 #endif
10802 main ()
10804 struct tms tms;
10806 return 0;
10808 _ACEOF
10809 if ac_fn_c_try_compile "$LINENO"; then :
10810 ac_cv_struct_tms=yes
10811 else
10812 ac_cv_struct_tms=no
10814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10817 $as_echo "$ac_cv_struct_tms" >&6; }
10818 if test $ac_cv_struct_tms = yes; then
10820 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10824 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10825 # revisit after autoconf 2.50.
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10827 $as_echo_n "checking for clock_t... " >&6; }
10828 if test "${gcc_cv_type_clock_t+set}" = set; then :
10829 $as_echo_n "(cached) " >&6
10830 else
10832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10833 /* end confdefs.h. */
10835 #include "ansidecl.h"
10836 #include "system.h"
10839 main ()
10841 clock_t x;
10843 return 0;
10845 _ACEOF
10846 if ac_fn_c_try_compile "$LINENO"; then :
10847 gcc_cv_type_clock_t=yes
10848 else
10849 gcc_cv_type_clock_t=no
10851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10854 $as_echo "$gcc_cv_type_clock_t" >&6; }
10855 if test $gcc_cv_type_clock_t = yes; then
10857 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10861 # Check if F_SETLKW is supported by fcntl.
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10863 $as_echo_n "checking for F_SETLKW... " >&6; }
10864 if test "${ac_cv_f_setlkw+set}" = set; then :
10865 $as_echo_n "(cached) " >&6
10866 else
10868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10869 /* end confdefs.h. */
10871 #include <fcntl.h>
10873 main ()
10876 struct flock fl;
10877 fl.l_whence = 0;
10878 fl.l_start = 0;
10879 fl.l_len = 0;
10880 fl.l_pid = 0;
10881 return fcntl (1, F_SETLKW, &fl);
10883 return 0;
10885 _ACEOF
10886 if ac_fn_c_try_compile "$LINENO"; then :
10887 ac_cv_f_setlkw=yes
10888 else
10889 ac_cv_f_setlkw=no
10891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10894 $as_echo "$ac_cv_f_setlkw" >&6; }
10895 if test $ac_cv_f_setlkw = yes; then
10897 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10901 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10902 CFLAGS="$saved_CFLAGS"
10903 CXXFLAGS="$saved_CXXFLAGS"
10905 # mkdir takes a single argument on some systems.
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10907 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10908 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10909 $as_echo_n "(cached) " >&6
10910 else
10911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10912 /* end confdefs.h. */
10914 #include <sys/types.h>
10915 #ifdef HAVE_SYS_STAT_H
10916 # include <sys/stat.h>
10917 #endif
10918 #ifdef HAVE_UNISTD_H
10919 # include <unistd.h>
10920 #endif
10921 #ifdef HAVE_DIRECT_H
10922 # include <direct.h>
10923 #endif
10925 main ()
10927 mkdir ("foo", 0);
10929 return 0;
10931 _ACEOF
10932 if ac_fn_c_try_compile "$LINENO"; then :
10933 gcc_cv_mkdir_takes_one_arg=no
10934 else
10935 gcc_cv_mkdir_takes_one_arg=yes
10937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10940 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10941 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10943 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10948 # File extensions
10949 manext='.1'
10950 objext='.o'
10954 # With Setjmp/Longjmp based exception handling.
10955 # Check whether --enable-sjlj-exceptions was given.
10956 if test "${enable_sjlj_exceptions+set}" = set; then :
10957 enableval=$enable_sjlj_exceptions; case $target in
10958 *-*-hpux10*)
10959 if test $enableval != yes; then
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10961 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10962 enableval=yes
10965 esac
10966 force_sjlj_exceptions=yes
10967 else
10968 case $target in
10969 *-*-hpux10*)
10970 force_sjlj_exceptions=yes
10971 enableval=yes
10974 force_sjlj_exceptions=no
10976 esac
10979 if test $force_sjlj_exceptions = yes; then
10980 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10982 cat >>confdefs.h <<_ACEOF
10983 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10984 _ACEOF
10988 # --------------------------------------------------------
10989 # Build, host, and target specific configuration fragments
10990 # --------------------------------------------------------
10992 # Collect build-machine-specific information.
10993 . ${srcdir}/config.build
10995 # Collect host-machine-specific information.
10996 . ${srcdir}/config.host
10998 target_gtfiles=
11000 # Collect target-machine-specific information.
11001 . ${srcdir}/config.gcc
11003 extra_objs="${host_extra_objs} ${extra_objs}"
11004 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11006 # Default the target-machine variables that were not explicitly set.
11007 if test x"$tm_file" = x
11008 then tm_file=$cpu_type/$cpu_type.h; fi
11010 if test x"$extra_headers" = x
11011 then extra_headers=; fi
11013 if test x$md_file = x
11014 then md_file=$cpu_type/$cpu_type.md; fi
11016 if test x$out_file = x
11017 then out_file=$cpu_type/$cpu_type.c; fi
11019 if test x"$tmake_file" = x
11020 then tmake_file=$cpu_type/t-$cpu_type
11023 # Support --enable-initfini-array.
11024 if test x$enable_initfini_array != xno; then
11025 tm_file="${tm_file} initfini-array.h"
11028 if test x"$dwarf2" = xyes
11029 then tm_file="$tm_file tm-dwarf2.h"
11032 # Say what files are being used for the output code and MD file.
11033 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11034 echo "Using \`$srcdir/config/$md_file' as machine description file."
11036 # If any of the xm_file variables contain nonexistent files, warn
11037 # about them and drop them.
11040 for x in $build_xm_file; do
11041 if test -f $srcdir/config/$x
11042 then bx="$bx $x"
11043 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11044 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11046 done
11047 build_xm_file="$bx"
11050 for x in $host_xm_file; do
11051 if test -f $srcdir/config/$x
11052 then hx="$hx $x"
11053 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11054 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11056 done
11057 host_xm_file="$hx"
11060 for x in $xm_file; do
11061 if test -f $srcdir/config/$x
11062 then tx="$tx $x"
11063 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11064 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11066 done
11067 xm_file="$tx"
11069 count=a
11070 for f in $tm_file; do
11071 count=${count}x
11072 done
11073 if test $count = ax; then
11074 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11075 else
11076 echo "Using the following target machine macro files:"
11077 for f in $tm_file; do
11078 echo " $srcdir/config/$f"
11079 done
11082 if test x$need_64bit_hwint = xyes; then
11084 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11088 if test x$use_long_long_for_widest_fast_int = xyes; then
11090 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11094 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11096 cat >>confdefs.h <<_ACEOF
11097 #define HAVE_GNU_LD $gnu_ld_bool
11098 _ACEOF
11101 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11103 cat >>confdefs.h <<_ACEOF
11104 #define HAVE_GNU_AS $gnu_as_bool
11105 _ACEOF
11108 count=a
11109 for f in $host_xm_file; do
11110 count=${count}x
11111 done
11112 if test $count = a; then
11114 elif test $count = ax; then
11115 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11116 else
11117 echo "Using the following host machine macro files:"
11118 for f in $host_xm_file; do
11119 echo " $srcdir/config/$f"
11120 done
11122 echo "Using ${out_host_hook_obj} for host machine hooks."
11124 if test "$host_xm_file" != "$build_xm_file"; then
11125 count=a
11126 for f in $build_xm_file; do
11127 count=${count}x
11128 done
11129 if test $count = a; then
11131 elif test $count = ax; then
11132 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11133 else
11134 echo "Using the following build machine macro files:"
11135 for f in $build_xm_file; do
11136 echo " $srcdir/config/$f"
11137 done
11141 if test -n "$configured_native_system_header_dir"; then
11142 native_system_header_dir=$configured_native_system_header_dir
11144 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11147 case ${host} in
11148 powerpc*-*-darwin*)
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11150 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11151 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11152 $as_echo_n "(cached) " >&6
11153 else
11154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11155 /* end confdefs.h. */
11157 #include <sys/cdefs.h>
11158 #include <sys/signal.h>
11159 #include <ucontext.h>
11160 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11162 _ACEOF
11163 if ac_fn_c_try_compile "$LINENO"; then :
11164 gcc_cv_mcontext_underscores=no
11165 else
11166 gcc_cv_mcontext_underscores=yes
11168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11171 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11172 if test $gcc_cv_mcontext_underscores = yes; then
11174 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11178 esac
11180 # ---------
11181 # Threading
11182 # ---------
11184 # Check if a valid thread package
11185 case ${enable_threads} in
11186 "" | no)
11187 # No threads
11188 target_thread_file='single'
11190 yes)
11191 # default
11192 target_thread_file='single'
11194 aix | dce | lynx | mipssde | posix | rtems | \
11195 single | tpf | vxworks | win32)
11196 target_thread_file=${enable_threads}
11199 echo "${enable_threads} is an unknown thread package" 1>&2
11200 exit 1
11202 esac
11204 if test x${thread_file} = x; then
11205 # No thread file set by target-specific clauses in config.gcc,
11206 # so use file chosen by default logic above
11207 thread_file=${target_thread_file}
11210 # --------
11211 # UNSORTED
11212 # --------
11214 use_cxa_atexit=no
11215 if test x$enable___cxa_atexit = xyes || \
11216 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11217 if test x$host = x$target; then
11218 case $host in
11219 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11220 # keyed to flag_use_cxa_atexit
11221 *-*-mingw32*)
11222 use_cxa_atexit=yes
11224 powerpc-ibm-aix*)
11225 use_cxa_atexit=yes
11228 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11229 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11230 use_cxa_atexit=yes
11231 else
11232 echo "__cxa_atexit can't be enabled on this target"
11236 esac
11237 else
11238 # We can't check for __cxa_atexit when building a cross, so assume
11239 # it is available
11240 use_cxa_atexit=yes
11242 if test x$use_cxa_atexit = xyes; then
11244 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11249 # Look for a file containing extra machine modes.
11250 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11251 extra_modes_file='$(srcdir)'/config/${extra_modes}
11254 cat >>confdefs.h <<_ACEOF
11255 #define EXTRA_MODES_FILE "config/$extra_modes"
11256 _ACEOF
11260 # Convert extra_options into a form suitable for Makefile use.
11261 extra_opt_files=
11262 all_opt_files=
11263 for f in $extra_options; do
11264 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11265 all_opt_files="$all_opt_files $srcdir/config/$f"
11266 done
11269 # auto-host.h is the file containing items generated by autoconf and is
11270 # the first file included by config.h.
11271 # If host=build, it is correct to have bconfig include auto-host.h
11272 # as well. If host!=build, we are in error and need to do more
11273 # work to find out the build config parameters.
11274 if test x$host = x$build
11275 then
11276 build_auto=auto-host.h
11277 else
11278 # We create a subdir, then run autoconf in the subdir.
11279 # To prevent recursion we set host and build for the new
11280 # invocation of configure to the build for this invocation
11281 # of configure.
11282 tempdir=build.$$
11283 rm -rf $tempdir
11284 mkdir $tempdir
11285 cd $tempdir
11286 case ${srcdir} in
11287 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11288 *) realsrcdir=../${srcdir};;
11289 esac
11290 # Clearing GMPINC is necessary to prevent host headers being
11291 # used by the build compiler. Defining GENERATOR_FILE stops
11292 # system.h from including gmp.h.
11293 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11294 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11295 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11296 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11297 ${realsrcdir}/configure \
11298 --enable-languages=${enable_languages-all} \
11299 --target=$target_alias --host=$build_alias --build=$build_alias
11301 # We just finished tests for the build machine, so rename
11302 # the file auto-build.h in the gcc directory.
11303 mv auto-host.h ../auto-build.h
11304 cd ..
11305 rm -rf $tempdir
11306 build_auto=auto-build.h
11310 tm_file="${tm_file} defaults.h"
11311 tm_p_file="${tm_p_file} tm-preds.h"
11312 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11313 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11314 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11315 # put this back in temporarily.
11316 xm_file="auto-host.h ansidecl.h ${xm_file}"
11318 # --------
11319 # UNSORTED
11320 # --------
11322 # Compile in configure arguments.
11323 if test -f configargs.h ; then
11324 # Being re-configured.
11325 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11326 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11327 else
11328 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11331 # Double all backslashes and backslash all quotes to turn
11332 # gcc_config_arguments into a C string.
11333 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11334 $gcc_config_arguments
11336 gcc_config_arguments_str=`cat conftest.out`
11337 rm -f conftest.out
11339 cat > configargs.h <<EOF
11340 /* Generated automatically. */
11341 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11342 static const char thread_model[] = "$thread_file";
11344 static const struct {
11345 const char *name, *value;
11346 } configure_default_options[] = $configure_default_options;
11349 gcc_BASEVER=`cat $srcdir/BASE-VER`
11350 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11351 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11352 if test -f $srcdir/REVISION ; then
11353 gcc_REVISION=`cat $srcdir/REVISION`
11354 else
11355 gcc_REVISION=""
11357 cat > plugin-version.h <<EOF
11358 #include "configargs.h"
11360 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11361 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11362 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11363 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11365 static char basever[] = "$gcc_BASEVER";
11366 static char datestamp[] = "$gcc_DATESTAMP";
11367 static char devphase[] = "$gcc_DEVPHASE";
11368 static char revision[] = "$gcc_REVISION";
11370 /* FIXME plugins: We should make the version information more precise.
11371 One way to do is to add a checksum. */
11373 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11374 devphase, revision,
11375 configuration_arguments};
11378 # Internationalization
11379 # If we haven't got the data from the intl directory,
11380 # assume NLS is disabled.
11381 USE_NLS=no
11382 LIBINTL=
11383 LIBINTL_DEP=
11384 INCINTL=
11385 XGETTEXT=
11386 GMSGFMT=
11387 POSUB=
11389 if test -f ../intl/config.intl; then
11390 . ../intl/config.intl
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11393 $as_echo_n "checking whether NLS is requested... " >&6; }
11394 if test x"$USE_NLS" != xyes; then
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11396 $as_echo "no" >&6; }
11397 else
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11399 $as_echo "yes" >&6; }
11401 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11405 $as_echo_n "checking for catalogs to be installed... " >&6; }
11406 # Look for .po and .gmo files in the source directory.
11407 CATALOGS=
11408 XLINGUAS=
11409 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11410 # If there aren't any .gmo files the shell will give us the
11411 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11412 # weeded out.
11413 case "$cat" in *\**)
11414 continue;;
11415 esac
11416 # The quadruple backslash is collapsed to a double backslash
11417 # by the backticks, then collapsed again by the double quotes,
11418 # leaving us with one backslash in the sed expression (right
11419 # before the dot that mustn't act as a wildcard).
11420 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11421 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11422 # The user is allowed to set LINGUAS to a list of languages to
11423 # install catalogs for. If it's empty that means "all of them."
11424 if test "x$LINGUAS" = x; then
11425 CATALOGS="$CATALOGS $cat"
11426 XLINGUAS="$XLINGUAS $lang"
11427 else
11428 case "$LINGUAS" in *$lang*)
11429 CATALOGS="$CATALOGS $cat"
11430 XLINGUAS="$XLINGUAS $lang"
11432 esac
11434 done
11435 LINGUAS="$XLINGUAS"
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11437 $as_echo "$LINGUAS" >&6; }
11440 DATADIRNAME=share
11442 INSTOBJEXT=.mo
11444 GENCAT=gencat
11446 CATOBJEXT=.gmo
11450 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11451 # -liconv on the link line twice.
11452 case "$LIBINTL" in *$LIBICONV*)
11453 LIBICONV= ;;
11454 esac
11456 # Check whether --enable-secureplt was given.
11457 if test "${enable_secureplt+set}" = set; then :
11458 enableval=$enable_secureplt;
11462 # Check whether --enable-leading-mingw64-underscores was given.
11463 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11464 enableval=$enable_leading_mingw64_underscores;
11467 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11469 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11473 # Check whether --enable-cld was given.
11474 if test "${enable_cld+set}" = set; then :
11475 enableval=$enable_cld;
11476 else
11477 enable_cld=no
11481 # Check whether --enable-frame-pointer was given.
11482 if test "${enable_frame_pointer+set}" = set; then :
11483 enableval=$enable_frame_pointer;
11484 else
11486 case $target_os in
11487 linux* | darwin[8912]*)
11488 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11489 # DWARF2.
11490 enable_frame_pointer=no
11493 enable_frame_pointer=yes
11495 esac
11500 # Windows32 Registry support for specifying GCC installation paths.
11501 # Check whether --enable-win32-registry was given.
11502 if test "${enable_win32_registry+set}" = set; then :
11503 enableval=$enable_win32_registry;
11507 case $host_os in
11508 win32 | pe | cygwin* | mingw32* | uwin*)
11509 if test "x$enable_win32_registry" != xno; then
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11511 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11512 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11513 $as_echo_n "(cached) " >&6
11514 else
11515 ac_func_search_save_LIBS=$LIBS
11516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11517 /* end confdefs.h. */
11519 /* Override any GCC internal prototype to avoid an error.
11520 Use char because int might match the return type of a GCC
11521 builtin and then its argument prototype would still apply. */
11522 #ifdef __cplusplus
11523 extern "C"
11524 #endif
11525 char RegOpenKeyExA ();
11527 main ()
11529 return RegOpenKeyExA ();
11531 return 0;
11533 _ACEOF
11534 for ac_lib in '' advapi32; do
11535 if test -z "$ac_lib"; then
11536 ac_res="none required"
11537 else
11538 ac_res=-l$ac_lib
11539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11541 if ac_fn_c_try_link "$LINENO"; then :
11542 ac_cv_search_RegOpenKeyExA=$ac_res
11544 rm -f core conftest.err conftest.$ac_objext \
11545 conftest$ac_exeext
11546 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11547 break
11549 done
11550 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11552 else
11553 ac_cv_search_RegOpenKeyExA=no
11555 rm conftest.$ac_ext
11556 LIBS=$ac_func_search_save_LIBS
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11559 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11560 ac_res=$ac_cv_search_RegOpenKeyExA
11561 if test "$ac_res" != no; then :
11562 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11564 else
11565 enable_win32_registry=no
11570 if test "x$enable_win32_registry" != xno; then
11572 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11575 if test "x$enable_win32_registry" != xyes \
11576 && test "x$enable_win32_registry" != x; then
11578 cat >>confdefs.h <<_ACEOF
11579 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11580 _ACEOF
11585 esac
11587 # Get an absolute path to the GCC top-level source directory
11588 holddir=`${PWDCMD-pwd}`
11589 cd $srcdir
11590 topdir=`${PWDCMD-pwd}`
11591 cd $holddir
11593 # Conditionalize the makefile for this host machine.
11594 xmake_file=
11595 for f in ${host_xmake_file}
11597 if test -f ${srcdir}/config/$f
11598 then
11599 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11601 done
11603 # Conditionalize the makefile for this target machine.
11604 tmake_file_=
11605 for f in ${tmake_file}
11607 if test -f ${srcdir}/config/$f
11608 then
11609 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11611 done
11612 tmake_file="${tmake_file_}"
11614 out_object_file=`basename $out_file .c`.o
11615 common_out_object_file=`basename $common_out_file .c`.o
11617 tm_file_list="options.h"
11618 tm_include_list="options.h insn-constants.h"
11619 for f in $tm_file; do
11620 case $f in
11621 ./* )
11622 f=`echo $f | sed 's/^..//'`
11623 tm_file_list="${tm_file_list} $f"
11624 tm_include_list="${tm_include_list} $f"
11626 defaults.h )
11627 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11628 tm_include_list="${tm_include_list} $f"
11631 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11632 tm_include_list="${tm_include_list} config/$f"
11634 esac
11635 done
11637 tm_p_file_list=
11638 tm_p_include_list=
11639 for f in $tm_p_file; do
11640 case $f in
11641 tm-preds.h )
11642 tm_p_file_list="${tm_p_file_list} $f"
11643 tm_p_include_list="${tm_p_include_list} $f"
11646 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11647 tm_p_include_list="${tm_p_include_list} config/$f"
11648 esac
11649 done
11651 xm_file_list=
11652 xm_include_list=
11653 for f in $xm_file; do
11654 case $f in
11655 ansidecl.h )
11656 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11657 xm_include_list="${xm_include_list} $f"
11659 auto-host.h )
11660 xm_file_list="${xm_file_list} $f"
11661 xm_include_list="${xm_include_list} $f"
11664 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11665 xm_include_list="${xm_include_list} config/$f"
11667 esac
11668 done
11670 host_xm_file_list=
11671 host_xm_include_list=
11672 for f in $host_xm_file; do
11673 case $f in
11674 ansidecl.h )
11675 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11676 host_xm_include_list="${host_xm_include_list} $f"
11678 auto-host.h )
11679 host_xm_file_list="${host_xm_file_list} $f"
11680 host_xm_include_list="${host_xm_include_list} $f"
11683 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11684 host_xm_include_list="${host_xm_include_list} config/$f"
11686 esac
11687 done
11689 build_xm_file_list=
11690 for f in $build_xm_file; do
11691 case $f in
11692 ansidecl.h )
11693 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11694 build_xm_include_list="${build_xm_include_list} $f"
11696 auto-build.h | auto-host.h )
11697 build_xm_file_list="${build_xm_file_list} $f"
11698 build_xm_include_list="${build_xm_include_list} $f"
11701 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11702 build_xm_include_list="${build_xm_include_list} config/$f"
11704 esac
11705 done
11707 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11708 # cross-compiler which does not use the native headers and libraries.
11709 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11710 CROSS=
11711 ALL=all.internal
11712 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11714 if test "x$with_build_sysroot" != x; then
11715 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11716 else
11717 # This value is used, even on a native system, because
11718 # CROSS_SYSTEM_HEADER_DIR is just
11719 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11720 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11723 if test x$host != x$target
11724 then
11725 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11726 ALL=all.cross
11727 SYSTEM_HEADER_DIR=$build_system_header_dir
11728 case "$host","$target" in
11729 # Darwin crosses can use the host system's libraries and headers,
11730 # because of the fat library support. Of course, it must be the
11731 # same version of Darwin on both sides. Allow the user to
11732 # just say --target=foo-darwin without a version number to mean
11733 # "the version on this system".
11734 *-*-darwin*,*-*-darwin*)
11735 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11736 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11737 if test $hostos = $targetos -o $targetos = darwin ; then
11738 CROSS=
11739 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11740 with_headers=yes
11744 i?86-*-*,x86_64-*-* \
11745 | powerpc*-*-*,powerpc64*-*-*)
11746 CROSS="$CROSS -DNATIVE_CROSS" ;;
11747 esac
11749 case $target in
11750 *-*-mingw*)
11751 if test "x$with_headers" = x; then
11752 with_headers=yes
11757 esac
11758 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11759 SYSTEM_HEADER_DIR=$build_system_header_dir
11762 # If this is a cross-compiler that does not
11763 # have its own set of headers then define
11764 # inhibit_libc
11766 # If this is using newlib, without having the headers available now,
11767 # then define inhibit_libc in LIBGCC2_CFLAGS.
11768 # This prevents libgcc2 from containing any code which requires libc
11769 # support.
11770 : ${inhibit_libc=false}
11771 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11772 test x$with_newlib = xyes ; } &&
11773 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11774 inhibit_libc=true
11778 # When building gcc with a cross-compiler, we need to adjust things so
11779 # that the generator programs are still built with the native compiler.
11780 # Also, we cannot run fixincludes.
11782 # These are the normal (build=host) settings:
11783 CC_FOR_BUILD='$(CC)'
11784 CXX_FOR_BUILD='$(CXX)'
11785 BUILD_CFLAGS='$(ALL_CFLAGS)'
11786 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11787 BUILD_LDFLAGS='$(LDFLAGS)'
11788 STMP_FIXINC=stmp-fixinc
11790 # And these apply if build != host, or we are generating coverage data
11791 if test x$build != x$host || test "x$coverage_flags" != x
11792 then
11793 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11794 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
11795 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11798 # Expand extra_headers to include complete path.
11799 # This substitutes for lots of t-* files.
11800 extra_headers_list=
11801 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11802 for file in ${extra_headers} ; do
11803 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11804 done
11806 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11807 if test x"$use_gcc_tgmath" = xyes
11808 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11811 # Define collect2 in Makefile.
11812 case $host_can_use_collect2 in
11813 no) collect2= ;;
11814 *) collect2='collect2$(exeext)' ;;
11815 esac
11818 # Add a definition of USE_COLLECT2 if system wants one.
11819 case $use_collect2 in
11820 no) use_collect2= ;;
11821 "") ;;
11823 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11824 xm_defines="${xm_defines} USE_COLLECT2"
11825 case $host_can_use_collect2 in
11827 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11829 esac
11831 esac
11834 cat >>confdefs.h <<_ACEOF
11835 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11836 _ACEOF
11839 # ---------------------------
11840 # Assembler & linker features
11841 # ---------------------------
11843 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11844 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11845 # However when ld-new is first executed from the build tree, libtool will
11846 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11847 # to the build tree. While doing this we need to use the previous-stage
11848 # linker, or we have an infinite loop. The presence of a shell script as
11849 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11850 # the gcc/collect-ld script. So we need to know how libtool works, or
11851 # exec-tool will fail.
11854 case `pwd` in
11855 *\ * | *\ *)
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11857 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11858 esac
11862 macro_version='2.2.7a'
11863 macro_revision='1.3134'
11877 ltmain="$ac_aux_dir/ltmain.sh"
11879 # Backslashify metacharacters that are still active within
11880 # double-quoted strings.
11881 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11883 # Same as above, but do not quote variable references.
11884 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11886 # Sed substitution to delay expansion of an escaped shell variable in a
11887 # double_quote_subst'ed string.
11888 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11890 # Sed substitution to delay expansion of an escaped single quote.
11891 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11893 # Sed substitution to avoid accidental globbing in evaled expressions
11894 no_glob_subst='s/\*/\\\*/g'
11896 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11897 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11898 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11901 $as_echo_n "checking how to print strings... " >&6; }
11902 # Test print first, because it will be a builtin if present.
11903 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11904 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11905 ECHO='print -r --'
11906 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11907 ECHO='printf %s\n'
11908 else
11909 # Use this function as a fallback that always works.
11910 func_fallback_echo ()
11912 eval 'cat <<_LTECHO_EOF
11914 _LTECHO_EOF'
11916 ECHO='func_fallback_echo'
11919 # func_echo_all arg...
11920 # Invoke $ECHO with all args, space-separated.
11921 func_echo_all ()
11923 $ECHO ""
11926 case "$ECHO" in
11927 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11928 $as_echo "printf" >&6; } ;;
11929 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11930 $as_echo "print -r" >&6; } ;;
11931 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11932 $as_echo "cat" >&6; } ;;
11933 esac
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11949 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11950 if test "${ac_cv_path_SED+set}" = set; then :
11951 $as_echo_n "(cached) " >&6
11952 else
11953 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11954 for ac_i in 1 2 3 4 5 6 7; do
11955 ac_script="$ac_script$as_nl$ac_script"
11956 done
11957 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11958 { ac_script=; unset ac_script;}
11959 if test -z "$SED"; then
11960 ac_path_SED_found=false
11961 # Loop through the user's path and test for each of PROGNAME-LIST
11962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11963 for as_dir in $PATH
11965 IFS=$as_save_IFS
11966 test -z "$as_dir" && as_dir=.
11967 for ac_prog in sed gsed; do
11968 for ac_exec_ext in '' $ac_executable_extensions; do
11969 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11970 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11971 # Check for GNU ac_path_SED and select it if it is found.
11972 # Check for GNU $ac_path_SED
11973 case `"$ac_path_SED" --version 2>&1` in
11974 *GNU*)
11975 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11977 ac_count=0
11978 $as_echo_n 0123456789 >"conftest.in"
11979 while :
11981 cat "conftest.in" "conftest.in" >"conftest.tmp"
11982 mv "conftest.tmp" "conftest.in"
11983 cp "conftest.in" "conftest.nl"
11984 $as_echo '' >> "conftest.nl"
11985 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11986 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11987 as_fn_arith $ac_count + 1 && ac_count=$as_val
11988 if test $ac_count -gt ${ac_path_SED_max-0}; then
11989 # Best one so far, save it but keep looking for a better one
11990 ac_cv_path_SED="$ac_path_SED"
11991 ac_path_SED_max=$ac_count
11993 # 10*(2^10) chars as input seems more than enough
11994 test $ac_count -gt 10 && break
11995 done
11996 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11997 esac
11999 $ac_path_SED_found && break 3
12000 done
12001 done
12002 done
12003 IFS=$as_save_IFS
12004 if test -z "$ac_cv_path_SED"; then
12005 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12007 else
12008 ac_cv_path_SED=$SED
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12013 $as_echo "$ac_cv_path_SED" >&6; }
12014 SED="$ac_cv_path_SED"
12015 rm -f conftest.sed
12017 test -z "$SED" && SED=sed
12018 Xsed="$SED -e 1s/^X//"
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12031 $as_echo_n "checking for fgrep... " >&6; }
12032 if test "${ac_cv_path_FGREP+set}" = set; then :
12033 $as_echo_n "(cached) " >&6
12034 else
12035 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12036 then ac_cv_path_FGREP="$GREP -F"
12037 else
12038 if test -z "$FGREP"; then
12039 ac_path_FGREP_found=false
12040 # Loop through the user's path and test for each of PROGNAME-LIST
12041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12042 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12044 IFS=$as_save_IFS
12045 test -z "$as_dir" && as_dir=.
12046 for ac_prog in fgrep; do
12047 for ac_exec_ext in '' $ac_executable_extensions; do
12048 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12049 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12050 # Check for GNU ac_path_FGREP and select it if it is found.
12051 # Check for GNU $ac_path_FGREP
12052 case `"$ac_path_FGREP" --version 2>&1` in
12053 *GNU*)
12054 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12056 ac_count=0
12057 $as_echo_n 0123456789 >"conftest.in"
12058 while :
12060 cat "conftest.in" "conftest.in" >"conftest.tmp"
12061 mv "conftest.tmp" "conftest.in"
12062 cp "conftest.in" "conftest.nl"
12063 $as_echo 'FGREP' >> "conftest.nl"
12064 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12065 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12066 as_fn_arith $ac_count + 1 && ac_count=$as_val
12067 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12068 # Best one so far, save it but keep looking for a better one
12069 ac_cv_path_FGREP="$ac_path_FGREP"
12070 ac_path_FGREP_max=$ac_count
12072 # 10*(2^10) chars as input seems more than enough
12073 test $ac_count -gt 10 && break
12074 done
12075 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12076 esac
12078 $ac_path_FGREP_found && break 3
12079 done
12080 done
12081 done
12082 IFS=$as_save_IFS
12083 if test -z "$ac_cv_path_FGREP"; then
12084 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12086 else
12087 ac_cv_path_FGREP=$FGREP
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12093 $as_echo "$ac_cv_path_FGREP" >&6; }
12094 FGREP="$ac_cv_path_FGREP"
12097 test -z "$GREP" && GREP=grep
12117 # Check whether --with-gnu-ld was given.
12118 if test "${with_gnu_ld+set}" = set; then :
12119 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12120 else
12121 with_gnu_ld=no
12124 ac_prog=ld
12125 if test "$GCC" = yes; then
12126 # Check if gcc -print-prog-name=ld gives a path.
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12128 $as_echo_n "checking for ld used by $CC... " >&6; }
12129 case $host in
12130 *-*-mingw*)
12131 # gcc leaves a trailing carriage return which upsets mingw
12132 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12134 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12135 esac
12136 case $ac_prog in
12137 # Accept absolute paths.
12138 [\\/]* | ?:[\\/]*)
12139 re_direlt='/[^/][^/]*/\.\./'
12140 # Canonicalize the pathname of ld
12141 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12142 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12143 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12144 done
12145 test -z "$LD" && LD="$ac_prog"
12148 # If it fails, then pretend we aren't using GCC.
12149 ac_prog=ld
12152 # If it is relative, then search for the first ld in PATH.
12153 with_gnu_ld=unknown
12155 esac
12156 elif test "$with_gnu_ld" = yes; then
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12158 $as_echo_n "checking for GNU ld... " >&6; }
12159 else
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12161 $as_echo_n "checking for non-GNU ld... " >&6; }
12163 if test "${lt_cv_path_LD+set}" = set; then :
12164 $as_echo_n "(cached) " >&6
12165 else
12166 if test -z "$LD"; then
12167 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12168 for ac_dir in $PATH; do
12169 IFS="$lt_save_ifs"
12170 test -z "$ac_dir" && ac_dir=.
12171 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12172 lt_cv_path_LD="$ac_dir/$ac_prog"
12173 # Check to see if the program is GNU ld. I'd rather use --version,
12174 # but apparently some variants of GNU ld only accept -v.
12175 # Break only if it was the GNU/non-GNU ld that we prefer.
12176 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12177 *GNU* | *'with BFD'*)
12178 test "$with_gnu_ld" != no && break
12181 test "$with_gnu_ld" != yes && break
12183 esac
12185 done
12186 IFS="$lt_save_ifs"
12187 else
12188 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12192 LD="$lt_cv_path_LD"
12193 if test -n "$LD"; then
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12195 $as_echo "$LD" >&6; }
12196 else
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12198 $as_echo "no" >&6; }
12200 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12202 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12203 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12204 $as_echo_n "(cached) " >&6
12205 else
12206 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12207 case `$LD -v 2>&1 </dev/null` in
12208 *GNU* | *'with BFD'*)
12209 lt_cv_prog_gnu_ld=yes
12212 lt_cv_prog_gnu_ld=no
12214 esac
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12217 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12218 with_gnu_ld=$lt_cv_prog_gnu_ld
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12229 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12230 if test "${lt_cv_path_NM+set}" = set; then :
12231 $as_echo_n "(cached) " >&6
12232 else
12233 if test -n "$NM"; then
12234 # Let the user override the test.
12235 lt_cv_path_NM="$NM"
12236 else
12237 lt_nm_to_check="${ac_tool_prefix}nm"
12238 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12239 lt_nm_to_check="$lt_nm_to_check nm"
12241 for lt_tmp_nm in $lt_nm_to_check; do
12242 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12243 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12244 IFS="$lt_save_ifs"
12245 test -z "$ac_dir" && ac_dir=.
12246 tmp_nm="$ac_dir/$lt_tmp_nm"
12247 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12248 # Check to see if the nm accepts a BSD-compat flag.
12249 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12250 # nm: unknown option "B" ignored
12251 # Tru64's nm complains that /dev/null is an invalid object file
12252 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12253 */dev/null* | *'Invalid file or object type'*)
12254 lt_cv_path_NM="$tmp_nm -B"
12255 break
12258 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12259 */dev/null*)
12260 lt_cv_path_NM="$tmp_nm -p"
12261 break
12264 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12265 continue # so that we can try to find one that supports BSD flags
12267 esac
12269 esac
12271 done
12272 IFS="$lt_save_ifs"
12273 done
12274 : ${lt_cv_path_NM=no}
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12278 $as_echo "$lt_cv_path_NM" >&6; }
12279 if test "$lt_cv_path_NM" != "no"; then
12280 NM="$lt_cv_path_NM"
12281 else
12282 # Didn't find any BSD compatible name lister, look for dumpbin.
12283 if test -n "$DUMPBIN"; then :
12284 # Let the user override the test.
12285 else
12286 if test -n "$ac_tool_prefix"; then
12287 for ac_prog in dumpbin "link -dump"
12289 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12290 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12292 $as_echo_n "checking for $ac_word... " >&6; }
12293 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12294 $as_echo_n "(cached) " >&6
12295 else
12296 if test -n "$DUMPBIN"; then
12297 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12298 else
12299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12300 for as_dir in $PATH
12302 IFS=$as_save_IFS
12303 test -z "$as_dir" && as_dir=.
12304 for ac_exec_ext in '' $ac_executable_extensions; do
12305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12306 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12308 break 2
12310 done
12311 done
12312 IFS=$as_save_IFS
12316 DUMPBIN=$ac_cv_prog_DUMPBIN
12317 if test -n "$DUMPBIN"; then
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12319 $as_echo "$DUMPBIN" >&6; }
12320 else
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12322 $as_echo "no" >&6; }
12326 test -n "$DUMPBIN" && break
12327 done
12329 if test -z "$DUMPBIN"; then
12330 ac_ct_DUMPBIN=$DUMPBIN
12331 for ac_prog in dumpbin "link -dump"
12333 # Extract the first word of "$ac_prog", so it can be a program name with args.
12334 set dummy $ac_prog; ac_word=$2
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12336 $as_echo_n "checking for $ac_word... " >&6; }
12337 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12338 $as_echo_n "(cached) " >&6
12339 else
12340 if test -n "$ac_ct_DUMPBIN"; then
12341 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12342 else
12343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12344 for as_dir in $PATH
12346 IFS=$as_save_IFS
12347 test -z "$as_dir" && as_dir=.
12348 for ac_exec_ext in '' $ac_executable_extensions; do
12349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12350 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12352 break 2
12354 done
12355 done
12356 IFS=$as_save_IFS
12360 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12361 if test -n "$ac_ct_DUMPBIN"; then
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12363 $as_echo "$ac_ct_DUMPBIN" >&6; }
12364 else
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12366 $as_echo "no" >&6; }
12370 test -n "$ac_ct_DUMPBIN" && break
12371 done
12373 if test "x$ac_ct_DUMPBIN" = x; then
12374 DUMPBIN=":"
12375 else
12376 case $cross_compiling:$ac_tool_warned in
12377 yes:)
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12380 ac_tool_warned=yes ;;
12381 esac
12382 DUMPBIN=$ac_ct_DUMPBIN
12386 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12387 *COFF*)
12388 DUMPBIN="$DUMPBIN -symbols"
12391 DUMPBIN=:
12393 esac
12396 if test "$DUMPBIN" != ":"; then
12397 NM="$DUMPBIN"
12400 test -z "$NM" && NM=nm
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12408 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12409 if test "${lt_cv_nm_interface+set}" = set; then :
12410 $as_echo_n "(cached) " >&6
12411 else
12412 lt_cv_nm_interface="BSD nm"
12413 echo "int some_variable = 0;" > conftest.$ac_ext
12414 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12415 (eval "$ac_compile" 2>conftest.err)
12416 cat conftest.err >&5
12417 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12418 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12419 cat conftest.err >&5
12420 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12421 cat conftest.out >&5
12422 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12423 lt_cv_nm_interface="MS dumpbin"
12425 rm -f conftest*
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12428 $as_echo "$lt_cv_nm_interface" >&6; }
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12431 $as_echo_n "checking whether ln -s works... " >&6; }
12432 LN_S=$as_ln_s
12433 if test "$LN_S" = "ln -s"; then
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12435 $as_echo "yes" >&6; }
12436 else
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12438 $as_echo "no, using $LN_S" >&6; }
12441 # find the maximum length of command line arguments
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12443 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12444 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12445 $as_echo_n "(cached) " >&6
12446 else
12448 teststring="ABCD"
12450 case $build_os in
12451 msdosdjgpp*)
12452 # On DJGPP, this test can blow up pretty badly due to problems in libc
12453 # (any single argument exceeding 2000 bytes causes a buffer overrun
12454 # during glob expansion). Even if it were fixed, the result of this
12455 # check would be larger than it should be.
12456 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12459 gnu*)
12460 # Under GNU Hurd, this test is not required because there is
12461 # no limit to the length of command line arguments.
12462 # Libtool will interpret -1 as no limit whatsoever
12463 lt_cv_sys_max_cmd_len=-1;
12466 cygwin* | mingw* | cegcc*)
12467 # On Win9x/ME, this test blows up -- it succeeds, but takes
12468 # about 5 minutes as the teststring grows exponentially.
12469 # Worse, since 9x/ME are not pre-emptively multitasking,
12470 # you end up with a "frozen" computer, even though with patience
12471 # the test eventually succeeds (with a max line length of 256k).
12472 # Instead, let's just punt: use the minimum linelength reported by
12473 # all of the supported platforms: 8192 (on NT/2K/XP).
12474 lt_cv_sys_max_cmd_len=8192;
12477 mint*)
12478 # On MiNT this can take a long time and run out of memory.
12479 lt_cv_sys_max_cmd_len=8192;
12482 amigaos*)
12483 # On AmigaOS with pdksh, this test takes hours, literally.
12484 # So we just punt and use a minimum line length of 8192.
12485 lt_cv_sys_max_cmd_len=8192;
12488 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12489 # This has been around since 386BSD, at least. Likely further.
12490 if test -x /sbin/sysctl; then
12491 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12492 elif test -x /usr/sbin/sysctl; then
12493 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12494 else
12495 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12497 # And add a safety zone
12498 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12499 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12502 interix*)
12503 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12504 lt_cv_sys_max_cmd_len=196608
12507 osf*)
12508 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12509 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12510 # nice to cause kernel panics so lets avoid the loop below.
12511 # First set a reasonable default.
12512 lt_cv_sys_max_cmd_len=16384
12514 if test -x /sbin/sysconfig; then
12515 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12516 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12517 esac
12520 sco3.2v5*)
12521 lt_cv_sys_max_cmd_len=102400
12523 sysv5* | sco5v6* | sysv4.2uw2*)
12524 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12525 if test -n "$kargmax"; then
12526 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12527 else
12528 lt_cv_sys_max_cmd_len=32768
12532 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12533 if test -n "$lt_cv_sys_max_cmd_len"; then
12534 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12535 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12536 else
12537 # Make teststring a little bigger before we do anything with it.
12538 # a 1K string should be a reasonable start.
12539 for i in 1 2 3 4 5 6 7 8 ; do
12540 teststring=$teststring$teststring
12541 done
12542 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12543 # If test is not a shell built-in, we'll probably end up computing a
12544 # maximum length that is only half of the actual maximum length, but
12545 # we can't tell.
12546 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12547 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12548 test $i != 17 # 1/2 MB should be enough
12550 i=`expr $i + 1`
12551 teststring=$teststring$teststring
12552 done
12553 # Only check the string length outside the loop.
12554 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12555 teststring=
12556 # Add a significant safety factor because C++ compilers can tack on
12557 # massive amounts of additional arguments before passing them to the
12558 # linker. It appears as though 1/2 is a usable value.
12559 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12562 esac
12566 if test -n $lt_cv_sys_max_cmd_len ; then
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12568 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12569 else
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12571 $as_echo "none" >&6; }
12573 max_cmd_len=$lt_cv_sys_max_cmd_len
12580 : ${CP="cp -f"}
12581 : ${MV="mv -f"}
12582 : ${RM="rm -f"}
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12585 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12586 # Try some XSI features
12587 xsi_shell=no
12588 ( _lt_dummy="a/b/c"
12589 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12590 = c,a/b,, \
12591 && eval 'test $(( 1 + 1 )) -eq 2 \
12592 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12593 && xsi_shell=yes
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12595 $as_echo "$xsi_shell" >&6; }
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12599 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12600 lt_shell_append=no
12601 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12602 >/dev/null 2>&1 \
12603 && lt_shell_append=yes
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12605 $as_echo "$lt_shell_append" >&6; }
12608 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12609 lt_unset=unset
12610 else
12611 lt_unset=false
12618 # test EBCDIC or ASCII
12619 case `echo X|tr X '\101'` in
12620 A) # ASCII based system
12621 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12622 lt_SP2NL='tr \040 \012'
12623 lt_NL2SP='tr \015\012 \040\040'
12625 *) # EBCDIC based system
12626 lt_SP2NL='tr \100 \n'
12627 lt_NL2SP='tr \r\n \100\100'
12629 esac
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12640 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12641 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12642 $as_echo_n "(cached) " >&6
12643 else
12644 lt_cv_ld_reload_flag='-r'
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12647 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12648 reload_flag=$lt_cv_ld_reload_flag
12649 case $reload_flag in
12650 "" | " "*) ;;
12651 *) reload_flag=" $reload_flag" ;;
12652 esac
12653 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12654 case $host_os in
12655 darwin*)
12656 if test "$GCC" = yes; then
12657 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12658 else
12659 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12662 esac
12672 if test -n "$ac_tool_prefix"; then
12673 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12674 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12676 $as_echo_n "checking for $ac_word... " >&6; }
12677 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12678 $as_echo_n "(cached) " >&6
12679 else
12680 if test -n "$OBJDUMP"; then
12681 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12682 else
12683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12684 for as_dir in $PATH
12686 IFS=$as_save_IFS
12687 test -z "$as_dir" && as_dir=.
12688 for ac_exec_ext in '' $ac_executable_extensions; do
12689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12690 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12692 break 2
12694 done
12695 done
12696 IFS=$as_save_IFS
12700 OBJDUMP=$ac_cv_prog_OBJDUMP
12701 if test -n "$OBJDUMP"; then
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12703 $as_echo "$OBJDUMP" >&6; }
12704 else
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12706 $as_echo "no" >&6; }
12711 if test -z "$ac_cv_prog_OBJDUMP"; then
12712 ac_ct_OBJDUMP=$OBJDUMP
12713 # Extract the first word of "objdump", so it can be a program name with args.
12714 set dummy objdump; ac_word=$2
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12716 $as_echo_n "checking for $ac_word... " >&6; }
12717 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12718 $as_echo_n "(cached) " >&6
12719 else
12720 if test -n "$ac_ct_OBJDUMP"; then
12721 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12722 else
12723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12724 for as_dir in $PATH
12726 IFS=$as_save_IFS
12727 test -z "$as_dir" && as_dir=.
12728 for ac_exec_ext in '' $ac_executable_extensions; do
12729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12730 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12732 break 2
12734 done
12735 done
12736 IFS=$as_save_IFS
12740 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12741 if test -n "$ac_ct_OBJDUMP"; then
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12743 $as_echo "$ac_ct_OBJDUMP" >&6; }
12744 else
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12746 $as_echo "no" >&6; }
12749 if test "x$ac_ct_OBJDUMP" = x; then
12750 OBJDUMP="false"
12751 else
12752 case $cross_compiling:$ac_tool_warned in
12753 yes:)
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12756 ac_tool_warned=yes ;;
12757 esac
12758 OBJDUMP=$ac_ct_OBJDUMP
12760 else
12761 OBJDUMP="$ac_cv_prog_OBJDUMP"
12764 test -z "$OBJDUMP" && OBJDUMP=objdump
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12775 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12776 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12777 $as_echo_n "(cached) " >&6
12778 else
12779 lt_cv_file_magic_cmd='$MAGIC_CMD'
12780 lt_cv_file_magic_test_file=
12781 lt_cv_deplibs_check_method='unknown'
12782 # Need to set the preceding variable on all platforms that support
12783 # interlibrary dependencies.
12784 # 'none' -- dependencies not supported.
12785 # `unknown' -- same as none, but documents that we really don't know.
12786 # 'pass_all' -- all dependencies passed with no checks.
12787 # 'test_compile' -- check by making test program.
12788 # 'file_magic [[regex]]' -- check by looking for files in library path
12789 # which responds to the $file_magic_cmd with a given extended regex.
12790 # If you have `file' or equivalent on your system and you're not sure
12791 # whether `pass_all' will *always* work, you probably want this one.
12793 case $host_os in
12794 aix[4-9]*)
12795 lt_cv_deplibs_check_method=pass_all
12798 beos*)
12799 lt_cv_deplibs_check_method=pass_all
12802 bsdi[45]*)
12803 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12804 lt_cv_file_magic_cmd='/usr/bin/file -L'
12805 lt_cv_file_magic_test_file=/shlib/libc.so
12808 cygwin*)
12809 # func_win32_libid is a shell function defined in ltmain.sh
12810 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12811 lt_cv_file_magic_cmd='func_win32_libid'
12814 mingw* | pw32*)
12815 # Base MSYS/MinGW do not provide the 'file' command needed by
12816 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12817 # unless we find 'file', for example because we are cross-compiling.
12818 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12819 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12820 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12821 lt_cv_file_magic_cmd='func_win32_libid'
12822 else
12823 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12824 lt_cv_file_magic_cmd='$OBJDUMP -f'
12828 cegcc*)
12829 # use the weaker test based on 'objdump'. See mingw*.
12830 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12831 lt_cv_file_magic_cmd='$OBJDUMP -f'
12834 darwin* | rhapsody*)
12835 lt_cv_deplibs_check_method=pass_all
12838 freebsd* | dragonfly*)
12839 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12840 case $host_cpu in
12841 i*86 )
12842 # Not sure whether the presence of OpenBSD here was a mistake.
12843 # Let's accept both of them until this is cleared up.
12844 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12845 lt_cv_file_magic_cmd=/usr/bin/file
12846 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12848 esac
12849 else
12850 lt_cv_deplibs_check_method=pass_all
12854 gnu*)
12855 lt_cv_deplibs_check_method=pass_all
12858 haiku*)
12859 lt_cv_deplibs_check_method=pass_all
12862 hpux10.20* | hpux11*)
12863 lt_cv_file_magic_cmd=/usr/bin/file
12864 case $host_cpu in
12865 ia64*)
12866 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12867 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12869 hppa*64*)
12870 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]'
12871 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12874 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12875 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12877 esac
12880 interix[3-9]*)
12881 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12882 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12885 irix5* | irix6* | nonstopux*)
12886 case $LD in
12887 *-32|*"-32 ") libmagic=32-bit;;
12888 *-n32|*"-n32 ") libmagic=N32;;
12889 *-64|*"-64 ") libmagic=64-bit;;
12890 *) libmagic=never-match;;
12891 esac
12892 lt_cv_deplibs_check_method=pass_all
12895 # This must be Linux ELF.
12896 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12897 lt_cv_deplibs_check_method=pass_all
12900 netbsd*)
12901 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12902 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12903 else
12904 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12908 newos6*)
12909 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12910 lt_cv_file_magic_cmd=/usr/bin/file
12911 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12914 *nto* | *qnx*)
12915 lt_cv_deplibs_check_method=pass_all
12918 openbsd*)
12919 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12920 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12921 else
12922 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12926 osf3* | osf4* | osf5*)
12927 lt_cv_deplibs_check_method=pass_all
12930 rdos*)
12931 lt_cv_deplibs_check_method=pass_all
12934 solaris*)
12935 lt_cv_deplibs_check_method=pass_all
12938 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12939 lt_cv_deplibs_check_method=pass_all
12942 sysv4 | sysv4.3*)
12943 case $host_vendor in
12944 motorola)
12945 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]'
12946 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12948 ncr)
12949 lt_cv_deplibs_check_method=pass_all
12951 sequent)
12952 lt_cv_file_magic_cmd='/bin/file'
12953 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12955 sni)
12956 lt_cv_file_magic_cmd='/bin/file'
12957 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12958 lt_cv_file_magic_test_file=/lib/libc.so
12960 siemens)
12961 lt_cv_deplibs_check_method=pass_all
12964 lt_cv_deplibs_check_method=pass_all
12966 esac
12969 tpf*)
12970 lt_cv_deplibs_check_method=pass_all
12972 esac
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12976 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12977 file_magic_cmd=$lt_cv_file_magic_cmd
12978 deplibs_check_method=$lt_cv_deplibs_check_method
12979 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12992 if test -n "$ac_tool_prefix"; then
12993 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12994 set dummy ${ac_tool_prefix}ar; ac_word=$2
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12996 $as_echo_n "checking for $ac_word... " >&6; }
12997 if test "${ac_cv_prog_AR+set}" = set; then :
12998 $as_echo_n "(cached) " >&6
12999 else
13000 if test -n "$AR"; then
13001 ac_cv_prog_AR="$AR" # Let the user override the test.
13002 else
13003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13004 for as_dir in $PATH
13006 IFS=$as_save_IFS
13007 test -z "$as_dir" && as_dir=.
13008 for ac_exec_ext in '' $ac_executable_extensions; do
13009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13010 ac_cv_prog_AR="${ac_tool_prefix}ar"
13011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13012 break 2
13014 done
13015 done
13016 IFS=$as_save_IFS
13020 AR=$ac_cv_prog_AR
13021 if test -n "$AR"; then
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13023 $as_echo "$AR" >&6; }
13024 else
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13026 $as_echo "no" >&6; }
13031 if test -z "$ac_cv_prog_AR"; then
13032 ac_ct_AR=$AR
13033 # Extract the first word of "ar", so it can be a program name with args.
13034 set dummy ar; ac_word=$2
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13036 $as_echo_n "checking for $ac_word... " >&6; }
13037 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13038 $as_echo_n "(cached) " >&6
13039 else
13040 if test -n "$ac_ct_AR"; then
13041 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13042 else
13043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13044 for as_dir in $PATH
13046 IFS=$as_save_IFS
13047 test -z "$as_dir" && as_dir=.
13048 for ac_exec_ext in '' $ac_executable_extensions; do
13049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13050 ac_cv_prog_ac_ct_AR="ar"
13051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13052 break 2
13054 done
13055 done
13056 IFS=$as_save_IFS
13060 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13061 if test -n "$ac_ct_AR"; then
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13063 $as_echo "$ac_ct_AR" >&6; }
13064 else
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13066 $as_echo "no" >&6; }
13069 if test "x$ac_ct_AR" = x; then
13070 AR="false"
13071 else
13072 case $cross_compiling:$ac_tool_warned in
13073 yes:)
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13076 ac_tool_warned=yes ;;
13077 esac
13078 AR=$ac_ct_AR
13080 else
13081 AR="$ac_cv_prog_AR"
13084 test -z "$AR" && AR=ar
13085 test -z "$AR_FLAGS" && AR_FLAGS=cru
13097 if test -n "$ac_tool_prefix"; then
13098 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13099 set dummy ${ac_tool_prefix}strip; ac_word=$2
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13101 $as_echo_n "checking for $ac_word... " >&6; }
13102 if test "${ac_cv_prog_STRIP+set}" = set; then :
13103 $as_echo_n "(cached) " >&6
13104 else
13105 if test -n "$STRIP"; then
13106 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13107 else
13108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13109 for as_dir in $PATH
13111 IFS=$as_save_IFS
13112 test -z "$as_dir" && as_dir=.
13113 for ac_exec_ext in '' $ac_executable_extensions; do
13114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13115 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13117 break 2
13119 done
13120 done
13121 IFS=$as_save_IFS
13125 STRIP=$ac_cv_prog_STRIP
13126 if test -n "$STRIP"; then
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13128 $as_echo "$STRIP" >&6; }
13129 else
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13131 $as_echo "no" >&6; }
13136 if test -z "$ac_cv_prog_STRIP"; then
13137 ac_ct_STRIP=$STRIP
13138 # Extract the first word of "strip", so it can be a program name with args.
13139 set dummy strip; ac_word=$2
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13141 $as_echo_n "checking for $ac_word... " >&6; }
13142 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13143 $as_echo_n "(cached) " >&6
13144 else
13145 if test -n "$ac_ct_STRIP"; then
13146 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13147 else
13148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13149 for as_dir in $PATH
13151 IFS=$as_save_IFS
13152 test -z "$as_dir" && as_dir=.
13153 for ac_exec_ext in '' $ac_executable_extensions; do
13154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13155 ac_cv_prog_ac_ct_STRIP="strip"
13156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13157 break 2
13159 done
13160 done
13161 IFS=$as_save_IFS
13165 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13166 if test -n "$ac_ct_STRIP"; then
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13168 $as_echo "$ac_ct_STRIP" >&6; }
13169 else
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13171 $as_echo "no" >&6; }
13174 if test "x$ac_ct_STRIP" = x; then
13175 STRIP=":"
13176 else
13177 case $cross_compiling:$ac_tool_warned in
13178 yes:)
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13181 ac_tool_warned=yes ;;
13182 esac
13183 STRIP=$ac_ct_STRIP
13185 else
13186 STRIP="$ac_cv_prog_STRIP"
13189 test -z "$STRIP" && STRIP=:
13196 if test -n "$ac_tool_prefix"; then
13197 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13198 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13200 $as_echo_n "checking for $ac_word... " >&6; }
13201 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13202 $as_echo_n "(cached) " >&6
13203 else
13204 if test -n "$RANLIB"; then
13205 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13206 else
13207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13208 for as_dir in $PATH
13210 IFS=$as_save_IFS
13211 test -z "$as_dir" && as_dir=.
13212 for ac_exec_ext in '' $ac_executable_extensions; do
13213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13214 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13216 break 2
13218 done
13219 done
13220 IFS=$as_save_IFS
13224 RANLIB=$ac_cv_prog_RANLIB
13225 if test -n "$RANLIB"; then
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13227 $as_echo "$RANLIB" >&6; }
13228 else
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13230 $as_echo "no" >&6; }
13235 if test -z "$ac_cv_prog_RANLIB"; then
13236 ac_ct_RANLIB=$RANLIB
13237 # Extract the first word of "ranlib", so it can be a program name with args.
13238 set dummy ranlib; ac_word=$2
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13240 $as_echo_n "checking for $ac_word... " >&6; }
13241 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13242 $as_echo_n "(cached) " >&6
13243 else
13244 if test -n "$ac_ct_RANLIB"; then
13245 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13246 else
13247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13248 for as_dir in $PATH
13250 IFS=$as_save_IFS
13251 test -z "$as_dir" && as_dir=.
13252 for ac_exec_ext in '' $ac_executable_extensions; do
13253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13254 ac_cv_prog_ac_ct_RANLIB="ranlib"
13255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13256 break 2
13258 done
13259 done
13260 IFS=$as_save_IFS
13264 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13265 if test -n "$ac_ct_RANLIB"; then
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13267 $as_echo "$ac_ct_RANLIB" >&6; }
13268 else
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13270 $as_echo "no" >&6; }
13273 if test "x$ac_ct_RANLIB" = x; then
13274 RANLIB=":"
13275 else
13276 case $cross_compiling:$ac_tool_warned in
13277 yes:)
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13280 ac_tool_warned=yes ;;
13281 esac
13282 RANLIB=$ac_ct_RANLIB
13284 else
13285 RANLIB="$ac_cv_prog_RANLIB"
13288 test -z "$RANLIB" && RANLIB=:
13295 # Determine commands to create old-style static archives.
13296 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13297 old_postinstall_cmds='chmod 644 $oldlib'
13298 old_postuninstall_cmds=
13300 if test -n "$RANLIB"; then
13301 case $host_os in
13302 openbsd*)
13303 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13306 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13308 esac
13309 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13312 case $host_os in
13313 darwin*)
13314 lock_old_archive_extraction=yes ;;
13316 lock_old_archive_extraction=no ;;
13317 esac
13357 # If no C compiler was specified, use CC.
13358 LTCC=${LTCC-"$CC"}
13360 # If no C compiler flags were specified, use CFLAGS.
13361 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13363 # Allow CC to be a program name with arguments.
13364 compiler=$CC
13367 # Check for command to grab the raw symbol name followed by C symbol from nm.
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13369 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13370 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13371 $as_echo_n "(cached) " >&6
13372 else
13374 # These are sane defaults that work on at least a few old systems.
13375 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13377 # Character class describing NM global symbol codes.
13378 symcode='[BCDEGRST]'
13380 # Regexp to match symbols that can be accessed directly from C.
13381 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13383 # Define system-specific variables.
13384 case $host_os in
13385 aix*)
13386 symcode='[BCDT]'
13388 cygwin* | mingw* | pw32* | cegcc*)
13389 symcode='[ABCDGISTW]'
13391 hpux*)
13392 if test "$host_cpu" = ia64; then
13393 symcode='[ABCDEGRST]'
13396 irix* | nonstopux*)
13397 symcode='[BCDEGRST]'
13399 osf*)
13400 symcode='[BCDEGQRST]'
13402 solaris*)
13403 symcode='[BDRT]'
13405 sco3.2v5*)
13406 symcode='[DT]'
13408 sysv4.2uw2*)
13409 symcode='[DT]'
13411 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13412 symcode='[ABDT]'
13414 sysv4)
13415 symcode='[DFNSTU]'
13417 esac
13419 # If we're using GNU nm, then use its standard symbol codes.
13420 case `$NM -V 2>&1` in
13421 *GNU* | *'with BFD'*)
13422 symcode='[ABCDGIRSTW]' ;;
13423 esac
13425 # Transform an extracted symbol line into a proper C declaration.
13426 # Some systems (esp. on ia64) link data and code symbols differently,
13427 # so use this general approach.
13428 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13430 # Transform an extracted symbol line into symbol name and symbol address
13431 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13432 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'"
13434 # Handle CRLF in mingw tool chain
13435 opt_cr=
13436 case $build_os in
13437 mingw*)
13438 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13440 esac
13442 # Try without a prefix underscore, then with it.
13443 for ac_symprfx in "" "_"; do
13445 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13446 symxfrm="\\1 $ac_symprfx\\2 \\2"
13448 # Write the raw and C identifiers.
13449 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13450 # Fake it for dumpbin and say T for any non-static function
13451 # and D for any global variable.
13452 # Also find C++ and __fastcall symbols from MSVC++,
13453 # which start with @ or ?.
13454 lt_cv_sys_global_symbol_pipe="$AWK '"\
13455 " {last_section=section; section=\$ 3};"\
13456 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13457 " \$ 0!~/External *\|/{next};"\
13458 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13459 " {if(hide[section]) next};"\
13460 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13461 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13462 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13463 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13464 " ' prfx=^$ac_symprfx"
13465 else
13466 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13469 # Check to see that the pipe works correctly.
13470 pipe_works=no
13472 rm -f conftest*
13473 cat > conftest.$ac_ext <<_LT_EOF
13474 #ifdef __cplusplus
13475 extern "C" {
13476 #endif
13477 char nm_test_var;
13478 void nm_test_func(void);
13479 void nm_test_func(void){}
13480 #ifdef __cplusplus
13482 #endif
13483 int main(){nm_test_var='a';nm_test_func();return(0);}
13484 _LT_EOF
13486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13487 (eval $ac_compile) 2>&5
13488 ac_status=$?
13489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13490 test $ac_status = 0; }; then
13491 # Now try to grab the symbols.
13492 nlist=conftest.nm
13493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13494 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13495 ac_status=$?
13496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13497 test $ac_status = 0; } && test -s "$nlist"; then
13498 # Try sorting and uniquifying the output.
13499 if sort "$nlist" | uniq > "$nlist"T; then
13500 mv -f "$nlist"T "$nlist"
13501 else
13502 rm -f "$nlist"T
13505 # Make sure that we snagged all the symbols we need.
13506 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13507 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13508 cat <<_LT_EOF > conftest.$ac_ext
13509 #ifdef __cplusplus
13510 extern "C" {
13511 #endif
13513 _LT_EOF
13514 # Now generate the symbol file.
13515 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13517 cat <<_LT_EOF >> conftest.$ac_ext
13519 /* The mapping between symbol names and symbols. */
13520 const struct {
13521 const char *name;
13522 void *address;
13524 lt__PROGRAM__LTX_preloaded_symbols[] =
13526 { "@PROGRAM@", (void *) 0 },
13527 _LT_EOF
13528 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13529 cat <<\_LT_EOF >> conftest.$ac_ext
13530 {0, (void *) 0}
13533 /* This works around a problem in FreeBSD linker */
13534 #ifdef FREEBSD_WORKAROUND
13535 static const void *lt_preloaded_setup() {
13536 return lt__PROGRAM__LTX_preloaded_symbols;
13538 #endif
13540 #ifdef __cplusplus
13542 #endif
13543 _LT_EOF
13544 # Now try linking the two files.
13545 mv conftest.$ac_objext conftstm.$ac_objext
13546 lt_save_LIBS="$LIBS"
13547 lt_save_CFLAGS="$CFLAGS"
13548 LIBS="conftstm.$ac_objext"
13549 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13551 (eval $ac_link) 2>&5
13552 ac_status=$?
13553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13554 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13555 pipe_works=yes
13557 LIBS="$lt_save_LIBS"
13558 CFLAGS="$lt_save_CFLAGS"
13559 else
13560 echo "cannot find nm_test_func in $nlist" >&5
13562 else
13563 echo "cannot find nm_test_var in $nlist" >&5
13565 else
13566 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13568 else
13569 echo "$progname: failed program was:" >&5
13570 cat conftest.$ac_ext >&5
13572 rm -rf conftest* conftst*
13574 # Do not use the global_symbol_pipe unless it works.
13575 if test "$pipe_works" = yes; then
13576 break
13577 else
13578 lt_cv_sys_global_symbol_pipe=
13580 done
13584 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13585 lt_cv_sys_global_symbol_to_cdecl=
13587 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13589 $as_echo "failed" >&6; }
13590 else
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13592 $as_echo "ok" >&6; }
13616 # Check whether --enable-libtool-lock was given.
13617 if test "${enable_libtool_lock+set}" = set; then :
13618 enableval=$enable_libtool_lock;
13621 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13623 # Some flags need to be propagated to the compiler or linker for good
13624 # libtool support.
13625 case $host in
13626 ia64-*-hpux*)
13627 # Find out which ABI we are using.
13628 echo 'int i;' > conftest.$ac_ext
13629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13630 (eval $ac_compile) 2>&5
13631 ac_status=$?
13632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13633 test $ac_status = 0; }; then
13634 case `/usr/bin/file conftest.$ac_objext` in
13635 *ELF-32*)
13636 HPUX_IA64_MODE="32"
13638 *ELF-64*)
13639 HPUX_IA64_MODE="64"
13641 esac
13643 rm -rf conftest*
13645 *-*-irix6*)
13646 # Find out which ABI we are using.
13647 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13649 (eval $ac_compile) 2>&5
13650 ac_status=$?
13651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13652 test $ac_status = 0; }; then
13653 if test "$lt_cv_prog_gnu_ld" = yes; then
13654 case `/usr/bin/file conftest.$ac_objext` in
13655 *32-bit*)
13656 LD="${LD-ld} -melf32bsmip"
13658 *N32*)
13659 LD="${LD-ld} -melf32bmipn32"
13661 *64-bit*)
13662 LD="${LD-ld} -melf64bmip"
13664 esac
13665 else
13666 case `/usr/bin/file conftest.$ac_objext` in
13667 *32-bit*)
13668 LD="${LD-ld} -32"
13670 *N32*)
13671 LD="${LD-ld} -n32"
13673 *64-bit*)
13674 LD="${LD-ld} -64"
13676 esac
13679 rm -rf conftest*
13682 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13683 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13684 # Find out which ABI we are using.
13685 echo 'int i;' > conftest.$ac_ext
13686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13687 (eval $ac_compile) 2>&5
13688 ac_status=$?
13689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13690 test $ac_status = 0; }; then
13691 case `/usr/bin/file conftest.o` in
13692 *32-bit*)
13693 case $host in
13694 x86_64-*kfreebsd*-gnu)
13695 LD="${LD-ld} -m elf_i386_fbsd"
13697 x86_64-*linux*)
13698 case `/usr/bin/file conftest.o` in
13699 *x86-64*)
13700 LD="${LD-ld} -m elf32_x86_64"
13703 LD="${LD-ld} -m elf_i386"
13705 esac
13707 powerpc64le-*linux*)
13708 LD="${LD-ld} -m elf32lppclinux"
13710 powerpc64-*linux*)
13711 LD="${LD-ld} -m elf32ppclinux"
13713 s390x-*linux*)
13714 LD="${LD-ld} -m elf_s390"
13716 sparc64-*linux*)
13717 LD="${LD-ld} -m elf32_sparc"
13719 esac
13721 *64-bit*)
13722 case $host in
13723 x86_64-*kfreebsd*-gnu)
13724 LD="${LD-ld} -m elf_x86_64_fbsd"
13726 x86_64-*linux*)
13727 LD="${LD-ld} -m elf_x86_64"
13729 powerpcle-*linux*)
13730 LD="${LD-ld} -m elf64lppc"
13732 powerpc-*linux*)
13733 LD="${LD-ld} -m elf64ppc"
13735 s390*-*linux*|s390*-*tpf*)
13736 LD="${LD-ld} -m elf64_s390"
13738 sparc*-*linux*)
13739 LD="${LD-ld} -m elf64_sparc"
13741 esac
13743 esac
13745 rm -rf conftest*
13748 *-*-sco3.2v5*)
13749 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13750 SAVE_CFLAGS="$CFLAGS"
13751 CFLAGS="$CFLAGS -belf"
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13753 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13754 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13755 $as_echo_n "(cached) " >&6
13756 else
13757 ac_ext=c
13758 ac_cpp='$CPP $CPPFLAGS'
13759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13764 /* end confdefs.h. */
13767 main ()
13771 return 0;
13773 _ACEOF
13774 if ac_fn_c_try_link "$LINENO"; then :
13775 lt_cv_cc_needs_belf=yes
13776 else
13777 lt_cv_cc_needs_belf=no
13779 rm -f core conftest.err conftest.$ac_objext \
13780 conftest$ac_exeext conftest.$ac_ext
13781 ac_ext=c
13782 ac_cpp='$CPP $CPPFLAGS'
13783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13789 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13790 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13791 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13792 CFLAGS="$SAVE_CFLAGS"
13795 sparc*-*solaris*)
13796 # Find out which ABI we are using.
13797 echo 'int i;' > conftest.$ac_ext
13798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13799 (eval $ac_compile) 2>&5
13800 ac_status=$?
13801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13802 test $ac_status = 0; }; then
13803 case `/usr/bin/file conftest.o` in
13804 *64-bit*)
13805 case $lt_cv_prog_gnu_ld in
13806 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13808 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13809 LD="${LD-ld} -64"
13812 esac
13814 esac
13816 rm -rf conftest*
13818 esac
13820 need_locks="$enable_libtool_lock"
13823 case $host_os in
13824 rhapsody* | darwin*)
13825 if test -n "$ac_tool_prefix"; then
13826 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13827 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13829 $as_echo_n "checking for $ac_word... " >&6; }
13830 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13831 $as_echo_n "(cached) " >&6
13832 else
13833 if test -n "$DSYMUTIL"; then
13834 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13835 else
13836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13837 for as_dir in $PATH
13839 IFS=$as_save_IFS
13840 test -z "$as_dir" && as_dir=.
13841 for ac_exec_ext in '' $ac_executable_extensions; do
13842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13843 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13845 break 2
13847 done
13848 done
13849 IFS=$as_save_IFS
13853 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13854 if test -n "$DSYMUTIL"; then
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13856 $as_echo "$DSYMUTIL" >&6; }
13857 else
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13859 $as_echo "no" >&6; }
13864 if test -z "$ac_cv_prog_DSYMUTIL"; then
13865 ac_ct_DSYMUTIL=$DSYMUTIL
13866 # Extract the first word of "dsymutil", so it can be a program name with args.
13867 set dummy dsymutil; ac_word=$2
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13869 $as_echo_n "checking for $ac_word... " >&6; }
13870 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13871 $as_echo_n "(cached) " >&6
13872 else
13873 if test -n "$ac_ct_DSYMUTIL"; then
13874 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13875 else
13876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13877 for as_dir in $PATH
13879 IFS=$as_save_IFS
13880 test -z "$as_dir" && as_dir=.
13881 for ac_exec_ext in '' $ac_executable_extensions; do
13882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13883 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13885 break 2
13887 done
13888 done
13889 IFS=$as_save_IFS
13893 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13894 if test -n "$ac_ct_DSYMUTIL"; then
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13896 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13897 else
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13899 $as_echo "no" >&6; }
13902 if test "x$ac_ct_DSYMUTIL" = x; then
13903 DSYMUTIL=":"
13904 else
13905 case $cross_compiling:$ac_tool_warned in
13906 yes:)
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13909 ac_tool_warned=yes ;;
13910 esac
13911 DSYMUTIL=$ac_ct_DSYMUTIL
13913 else
13914 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13917 if test -n "$ac_tool_prefix"; then
13918 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13919 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13921 $as_echo_n "checking for $ac_word... " >&6; }
13922 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13923 $as_echo_n "(cached) " >&6
13924 else
13925 if test -n "$NMEDIT"; then
13926 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13927 else
13928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13929 for as_dir in $PATH
13931 IFS=$as_save_IFS
13932 test -z "$as_dir" && as_dir=.
13933 for ac_exec_ext in '' $ac_executable_extensions; do
13934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13935 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13937 break 2
13939 done
13940 done
13941 IFS=$as_save_IFS
13945 NMEDIT=$ac_cv_prog_NMEDIT
13946 if test -n "$NMEDIT"; then
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13948 $as_echo "$NMEDIT" >&6; }
13949 else
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13951 $as_echo "no" >&6; }
13956 if test -z "$ac_cv_prog_NMEDIT"; then
13957 ac_ct_NMEDIT=$NMEDIT
13958 # Extract the first word of "nmedit", so it can be a program name with args.
13959 set dummy nmedit; ac_word=$2
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13961 $as_echo_n "checking for $ac_word... " >&6; }
13962 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13963 $as_echo_n "(cached) " >&6
13964 else
13965 if test -n "$ac_ct_NMEDIT"; then
13966 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13967 else
13968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13969 for as_dir in $PATH
13971 IFS=$as_save_IFS
13972 test -z "$as_dir" && as_dir=.
13973 for ac_exec_ext in '' $ac_executable_extensions; do
13974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13975 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13977 break 2
13979 done
13980 done
13981 IFS=$as_save_IFS
13985 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13986 if test -n "$ac_ct_NMEDIT"; then
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13988 $as_echo "$ac_ct_NMEDIT" >&6; }
13989 else
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13991 $as_echo "no" >&6; }
13994 if test "x$ac_ct_NMEDIT" = x; then
13995 NMEDIT=":"
13996 else
13997 case $cross_compiling:$ac_tool_warned in
13998 yes:)
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14001 ac_tool_warned=yes ;;
14002 esac
14003 NMEDIT=$ac_ct_NMEDIT
14005 else
14006 NMEDIT="$ac_cv_prog_NMEDIT"
14009 if test -n "$ac_tool_prefix"; then
14010 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14011 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14013 $as_echo_n "checking for $ac_word... " >&6; }
14014 if test "${ac_cv_prog_LIPO+set}" = set; then :
14015 $as_echo_n "(cached) " >&6
14016 else
14017 if test -n "$LIPO"; then
14018 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14019 else
14020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14021 for as_dir in $PATH
14023 IFS=$as_save_IFS
14024 test -z "$as_dir" && as_dir=.
14025 for ac_exec_ext in '' $ac_executable_extensions; do
14026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14027 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14029 break 2
14031 done
14032 done
14033 IFS=$as_save_IFS
14037 LIPO=$ac_cv_prog_LIPO
14038 if test -n "$LIPO"; then
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14040 $as_echo "$LIPO" >&6; }
14041 else
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14043 $as_echo "no" >&6; }
14048 if test -z "$ac_cv_prog_LIPO"; then
14049 ac_ct_LIPO=$LIPO
14050 # Extract the first word of "lipo", so it can be a program name with args.
14051 set dummy lipo; ac_word=$2
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14053 $as_echo_n "checking for $ac_word... " >&6; }
14054 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14055 $as_echo_n "(cached) " >&6
14056 else
14057 if test -n "$ac_ct_LIPO"; then
14058 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14059 else
14060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14061 for as_dir in $PATH
14063 IFS=$as_save_IFS
14064 test -z "$as_dir" && as_dir=.
14065 for ac_exec_ext in '' $ac_executable_extensions; do
14066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14067 ac_cv_prog_ac_ct_LIPO="lipo"
14068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14069 break 2
14071 done
14072 done
14073 IFS=$as_save_IFS
14077 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14078 if test -n "$ac_ct_LIPO"; then
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14080 $as_echo "$ac_ct_LIPO" >&6; }
14081 else
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14083 $as_echo "no" >&6; }
14086 if test "x$ac_ct_LIPO" = x; then
14087 LIPO=":"
14088 else
14089 case $cross_compiling:$ac_tool_warned in
14090 yes:)
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14093 ac_tool_warned=yes ;;
14094 esac
14095 LIPO=$ac_ct_LIPO
14097 else
14098 LIPO="$ac_cv_prog_LIPO"
14101 if test -n "$ac_tool_prefix"; then
14102 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14103 set dummy ${ac_tool_prefix}otool; ac_word=$2
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14105 $as_echo_n "checking for $ac_word... " >&6; }
14106 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14107 $as_echo_n "(cached) " >&6
14108 else
14109 if test -n "$OTOOL"; then
14110 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14111 else
14112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14113 for as_dir in $PATH
14115 IFS=$as_save_IFS
14116 test -z "$as_dir" && as_dir=.
14117 for ac_exec_ext in '' $ac_executable_extensions; do
14118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14119 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14121 break 2
14123 done
14124 done
14125 IFS=$as_save_IFS
14129 OTOOL=$ac_cv_prog_OTOOL
14130 if test -n "$OTOOL"; then
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14132 $as_echo "$OTOOL" >&6; }
14133 else
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14135 $as_echo "no" >&6; }
14140 if test -z "$ac_cv_prog_OTOOL"; then
14141 ac_ct_OTOOL=$OTOOL
14142 # Extract the first word of "otool", so it can be a program name with args.
14143 set dummy otool; ac_word=$2
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14145 $as_echo_n "checking for $ac_word... " >&6; }
14146 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14147 $as_echo_n "(cached) " >&6
14148 else
14149 if test -n "$ac_ct_OTOOL"; then
14150 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14151 else
14152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14153 for as_dir in $PATH
14155 IFS=$as_save_IFS
14156 test -z "$as_dir" && as_dir=.
14157 for ac_exec_ext in '' $ac_executable_extensions; do
14158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14159 ac_cv_prog_ac_ct_OTOOL="otool"
14160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14161 break 2
14163 done
14164 done
14165 IFS=$as_save_IFS
14169 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14170 if test -n "$ac_ct_OTOOL"; then
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14172 $as_echo "$ac_ct_OTOOL" >&6; }
14173 else
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14175 $as_echo "no" >&6; }
14178 if test "x$ac_ct_OTOOL" = x; then
14179 OTOOL=":"
14180 else
14181 case $cross_compiling:$ac_tool_warned in
14182 yes:)
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14185 ac_tool_warned=yes ;;
14186 esac
14187 OTOOL=$ac_ct_OTOOL
14189 else
14190 OTOOL="$ac_cv_prog_OTOOL"
14193 if test -n "$ac_tool_prefix"; then
14194 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14195 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14197 $as_echo_n "checking for $ac_word... " >&6; }
14198 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14199 $as_echo_n "(cached) " >&6
14200 else
14201 if test -n "$OTOOL64"; then
14202 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14203 else
14204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14205 for as_dir in $PATH
14207 IFS=$as_save_IFS
14208 test -z "$as_dir" && as_dir=.
14209 for ac_exec_ext in '' $ac_executable_extensions; do
14210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14211 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14213 break 2
14215 done
14216 done
14217 IFS=$as_save_IFS
14221 OTOOL64=$ac_cv_prog_OTOOL64
14222 if test -n "$OTOOL64"; then
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14224 $as_echo "$OTOOL64" >&6; }
14225 else
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14227 $as_echo "no" >&6; }
14232 if test -z "$ac_cv_prog_OTOOL64"; then
14233 ac_ct_OTOOL64=$OTOOL64
14234 # Extract the first word of "otool64", so it can be a program name with args.
14235 set dummy otool64; ac_word=$2
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14237 $as_echo_n "checking for $ac_word... " >&6; }
14238 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14239 $as_echo_n "(cached) " >&6
14240 else
14241 if test -n "$ac_ct_OTOOL64"; then
14242 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14243 else
14244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14245 for as_dir in $PATH
14247 IFS=$as_save_IFS
14248 test -z "$as_dir" && as_dir=.
14249 for ac_exec_ext in '' $ac_executable_extensions; do
14250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14251 ac_cv_prog_ac_ct_OTOOL64="otool64"
14252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14253 break 2
14255 done
14256 done
14257 IFS=$as_save_IFS
14261 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14262 if test -n "$ac_ct_OTOOL64"; then
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14264 $as_echo "$ac_ct_OTOOL64" >&6; }
14265 else
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14267 $as_echo "no" >&6; }
14270 if test "x$ac_ct_OTOOL64" = x; then
14271 OTOOL64=":"
14272 else
14273 case $cross_compiling:$ac_tool_warned in
14274 yes:)
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14277 ac_tool_warned=yes ;;
14278 esac
14279 OTOOL64=$ac_ct_OTOOL64
14281 else
14282 OTOOL64="$ac_cv_prog_OTOOL64"
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14312 $as_echo_n "checking for -single_module linker flag... " >&6; }
14313 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14314 $as_echo_n "(cached) " >&6
14315 else
14316 lt_cv_apple_cc_single_mod=no
14317 if test -z "${LT_MULTI_MODULE}"; then
14318 # By default we will add the -single_module flag. You can override
14319 # by either setting the environment variable LT_MULTI_MODULE
14320 # non-empty at configure time, or by adding -multi_module to the
14321 # link flags.
14322 rm -rf libconftest.dylib*
14323 echo "int foo(void){return 1;}" > conftest.c
14324 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14325 -dynamiclib -Wl,-single_module conftest.c" >&5
14326 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14327 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14328 _lt_result=$?
14329 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14330 lt_cv_apple_cc_single_mod=yes
14331 else
14332 cat conftest.err >&5
14334 rm -rf libconftest.dylib*
14335 rm -f conftest.*
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14339 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14341 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14342 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14343 $as_echo_n "(cached) " >&6
14344 else
14345 lt_cv_ld_exported_symbols_list=no
14346 save_LDFLAGS=$LDFLAGS
14347 echo "_main" > conftest.sym
14348 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14350 /* end confdefs.h. */
14353 main ()
14357 return 0;
14359 _ACEOF
14360 if ac_fn_c_try_link "$LINENO"; then :
14361 lt_cv_ld_exported_symbols_list=yes
14362 else
14363 lt_cv_ld_exported_symbols_list=no
14365 rm -f core conftest.err conftest.$ac_objext \
14366 conftest$ac_exeext conftest.$ac_ext
14367 LDFLAGS="$save_LDFLAGS"
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14371 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14373 $as_echo_n "checking for -force_load linker flag... " >&6; }
14374 if test "${lt_cv_ld_force_load+set}" = set; then :
14375 $as_echo_n "(cached) " >&6
14376 else
14377 lt_cv_ld_force_load=no
14378 cat > conftest.c << _LT_EOF
14379 int forced_loaded() { return 2;}
14380 _LT_EOF
14381 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14382 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14383 echo "$AR cru libconftest.a conftest.o" >&5
14384 $AR cru libconftest.a conftest.o 2>&5
14385 cat > conftest.c << _LT_EOF
14386 int main() { return 0;}
14387 _LT_EOF
14388 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14389 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14390 _lt_result=$?
14391 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14392 lt_cv_ld_force_load=yes
14393 else
14394 cat conftest.err >&5
14396 rm -f conftest.err libconftest.a conftest conftest.c
14397 rm -rf conftest.dSYM
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14401 $as_echo "$lt_cv_ld_force_load" >&6; }
14402 case $host_os in
14403 rhapsody* | darwin1.[012])
14404 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14405 darwin1.*)
14406 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14407 darwin*) # darwin 5.x on
14408 # if running on 10.5 or later, the deployment target defaults
14409 # to the OS version, if on x86, and 10.4, the deployment
14410 # target defaults to 10.4. Don't you love it?
14411 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14412 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14413 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14414 10.[012]*)
14415 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14416 10.*)
14417 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14418 esac
14420 esac
14421 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14422 _lt_dar_single_mod='$single_module'
14424 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14425 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14426 else
14427 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14429 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14430 _lt_dsymutil='~$DSYMUTIL $lib || :'
14431 else
14432 _lt_dsymutil=
14435 esac
14437 for ac_header in dlfcn.h
14438 do :
14439 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14440 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14441 cat >>confdefs.h <<_ACEOF
14442 #define HAVE_DLFCN_H 1
14443 _ACEOF
14446 done
14452 # Set options
14456 enable_dlopen=no
14459 enable_win32_dll=no
14462 # Check whether --enable-shared was given.
14463 if test "${enable_shared+set}" = set; then :
14464 enableval=$enable_shared; p=${PACKAGE-default}
14465 case $enableval in
14466 yes) enable_shared=yes ;;
14467 no) enable_shared=no ;;
14469 enable_shared=no
14470 # Look at the argument we got. We use all the common list separators.
14471 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14472 for pkg in $enableval; do
14473 IFS="$lt_save_ifs"
14474 if test "X$pkg" = "X$p"; then
14475 enable_shared=yes
14477 done
14478 IFS="$lt_save_ifs"
14480 esac
14481 else
14482 enable_shared=yes
14493 # Check whether --enable-static was given.
14494 if test "${enable_static+set}" = set; then :
14495 enableval=$enable_static; p=${PACKAGE-default}
14496 case $enableval in
14497 yes) enable_static=yes ;;
14498 no) enable_static=no ;;
14500 enable_static=no
14501 # Look at the argument we got. We use all the common list separators.
14502 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14503 for pkg in $enableval; do
14504 IFS="$lt_save_ifs"
14505 if test "X$pkg" = "X$p"; then
14506 enable_static=yes
14508 done
14509 IFS="$lt_save_ifs"
14511 esac
14512 else
14513 enable_static=yes
14525 # Check whether --with-pic was given.
14526 if test "${with_pic+set}" = set; then :
14527 withval=$with_pic; pic_mode="$withval"
14528 else
14529 pic_mode=default
14533 test -z "$pic_mode" && pic_mode=default
14541 # Check whether --enable-fast-install was given.
14542 if test "${enable_fast_install+set}" = set; then :
14543 enableval=$enable_fast_install; p=${PACKAGE-default}
14544 case $enableval in
14545 yes) enable_fast_install=yes ;;
14546 no) enable_fast_install=no ;;
14548 enable_fast_install=no
14549 # Look at the argument we got. We use all the common list separators.
14550 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14551 for pkg in $enableval; do
14552 IFS="$lt_save_ifs"
14553 if test "X$pkg" = "X$p"; then
14554 enable_fast_install=yes
14556 done
14557 IFS="$lt_save_ifs"
14559 esac
14560 else
14561 enable_fast_install=yes
14574 # This can be used to rebuild libtool when needed
14575 LIBTOOL_DEPS="$ltmain"
14577 # Always use our own libtool.
14578 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14605 test -z "$LN_S" && LN_S="ln -s"
14620 if test -n "${ZSH_VERSION+set}" ; then
14621 setopt NO_GLOB_SUBST
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14625 $as_echo_n "checking for objdir... " >&6; }
14626 if test "${lt_cv_objdir+set}" = set; then :
14627 $as_echo_n "(cached) " >&6
14628 else
14629 rm -f .libs 2>/dev/null
14630 mkdir .libs 2>/dev/null
14631 if test -d .libs; then
14632 lt_cv_objdir=.libs
14633 else
14634 # MS-DOS does not allow filenames that begin with a dot.
14635 lt_cv_objdir=_libs
14637 rmdir .libs 2>/dev/null
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14640 $as_echo "$lt_cv_objdir" >&6; }
14641 objdir=$lt_cv_objdir
14647 cat >>confdefs.h <<_ACEOF
14648 #define LT_OBJDIR "$lt_cv_objdir/"
14649 _ACEOF
14654 case $host_os in
14655 aix3*)
14656 # AIX sometimes has problems with the GCC collect2 program. For some
14657 # reason, if we set the COLLECT_NAMES environment variable, the problems
14658 # vanish in a puff of smoke.
14659 if test "X${COLLECT_NAMES+set}" != Xset; then
14660 COLLECT_NAMES=
14661 export COLLECT_NAMES
14664 esac
14666 # Global variables:
14667 ofile=libtool
14668 can_build_shared=yes
14670 # All known linkers require a `.a' archive for static linking (except MSVC,
14671 # which needs '.lib').
14672 libext=a
14674 with_gnu_ld="$lt_cv_prog_gnu_ld"
14676 old_CC="$CC"
14677 old_CFLAGS="$CFLAGS"
14679 # Set sane defaults for various variables
14680 test -z "$CC" && CC=cc
14681 test -z "$LTCC" && LTCC=$CC
14682 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14683 test -z "$LD" && LD=ld
14684 test -z "$ac_objext" && ac_objext=o
14686 for cc_temp in $compiler""; do
14687 case $cc_temp in
14688 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14689 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14690 \-*) ;;
14691 *) break;;
14692 esac
14693 done
14694 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14697 # Only perform the check for file, if the check method requires it
14698 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14699 case $deplibs_check_method in
14700 file_magic*)
14701 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14703 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14704 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14705 $as_echo_n "(cached) " >&6
14706 else
14707 case $MAGIC_CMD in
14708 [\\/*] | ?:[\\/]*)
14709 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14712 lt_save_MAGIC_CMD="$MAGIC_CMD"
14713 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14714 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14715 for ac_dir in $ac_dummy; do
14716 IFS="$lt_save_ifs"
14717 test -z "$ac_dir" && ac_dir=.
14718 if test -f $ac_dir/${ac_tool_prefix}file; then
14719 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14720 if test -n "$file_magic_test_file"; then
14721 case $deplibs_check_method in
14722 "file_magic "*)
14723 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14724 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14725 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14726 $EGREP "$file_magic_regex" > /dev/null; then
14728 else
14729 cat <<_LT_EOF 1>&2
14731 *** Warning: the command libtool uses to detect shared libraries,
14732 *** $file_magic_cmd, produces output that libtool cannot recognize.
14733 *** The result is that libtool may fail to recognize shared libraries
14734 *** as such. This will affect the creation of libtool libraries that
14735 *** depend on shared libraries, but programs linked with such libtool
14736 *** libraries will work regardless of this problem. Nevertheless, you
14737 *** may want to report the problem to your system manager and/or to
14738 *** bug-libtool@gnu.org
14740 _LT_EOF
14741 fi ;;
14742 esac
14744 break
14746 done
14747 IFS="$lt_save_ifs"
14748 MAGIC_CMD="$lt_save_MAGIC_CMD"
14750 esac
14753 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14754 if test -n "$MAGIC_CMD"; then
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14756 $as_echo "$MAGIC_CMD" >&6; }
14757 else
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14759 $as_echo "no" >&6; }
14766 if test -z "$lt_cv_path_MAGIC_CMD"; then
14767 if test -n "$ac_tool_prefix"; then
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14769 $as_echo_n "checking for file... " >&6; }
14770 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14771 $as_echo_n "(cached) " >&6
14772 else
14773 case $MAGIC_CMD in
14774 [\\/*] | ?:[\\/]*)
14775 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14778 lt_save_MAGIC_CMD="$MAGIC_CMD"
14779 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14780 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14781 for ac_dir in $ac_dummy; do
14782 IFS="$lt_save_ifs"
14783 test -z "$ac_dir" && ac_dir=.
14784 if test -f $ac_dir/file; then
14785 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14786 if test -n "$file_magic_test_file"; then
14787 case $deplibs_check_method in
14788 "file_magic "*)
14789 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14790 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14791 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14792 $EGREP "$file_magic_regex" > /dev/null; then
14794 else
14795 cat <<_LT_EOF 1>&2
14797 *** Warning: the command libtool uses to detect shared libraries,
14798 *** $file_magic_cmd, produces output that libtool cannot recognize.
14799 *** The result is that libtool may fail to recognize shared libraries
14800 *** as such. This will affect the creation of libtool libraries that
14801 *** depend on shared libraries, but programs linked with such libtool
14802 *** libraries will work regardless of this problem. Nevertheless, you
14803 *** may want to report the problem to your system manager and/or to
14804 *** bug-libtool@gnu.org
14806 _LT_EOF
14807 fi ;;
14808 esac
14810 break
14812 done
14813 IFS="$lt_save_ifs"
14814 MAGIC_CMD="$lt_save_MAGIC_CMD"
14816 esac
14819 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14820 if test -n "$MAGIC_CMD"; then
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14822 $as_echo "$MAGIC_CMD" >&6; }
14823 else
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14825 $as_echo "no" >&6; }
14829 else
14830 MAGIC_CMD=:
14836 esac
14838 # Use C for the default configuration in the libtool script
14840 lt_save_CC="$CC"
14841 ac_ext=c
14842 ac_cpp='$CPP $CPPFLAGS'
14843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14848 # Source file extension for C test sources.
14849 ac_ext=c
14851 # Object file extension for compiled C test sources.
14852 objext=o
14853 objext=$objext
14855 # Code to be used in simple compile tests
14856 lt_simple_compile_test_code="int some_variable = 0;"
14858 # Code to be used in simple link tests
14859 lt_simple_link_test_code='int main(){return(0);}'
14867 # If no C compiler was specified, use CC.
14868 LTCC=${LTCC-"$CC"}
14870 # If no C compiler flags were specified, use CFLAGS.
14871 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14873 # Allow CC to be a program name with arguments.
14874 compiler=$CC
14876 # Save the default compiler, since it gets overwritten when the other
14877 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14878 compiler_DEFAULT=$CC
14880 # save warnings/boilerplate of simple test code
14881 ac_outfile=conftest.$ac_objext
14882 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14883 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14884 _lt_compiler_boilerplate=`cat conftest.err`
14885 $RM conftest*
14887 ac_outfile=conftest.$ac_objext
14888 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14889 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14890 _lt_linker_boilerplate=`cat conftest.err`
14891 $RM -r conftest*
14894 ## CAVEAT EMPTOR:
14895 ## There is no encapsulation within the following macros, do not change
14896 ## the running order or otherwise move them around unless you know exactly
14897 ## what you are doing...
14898 if test -n "$compiler"; then
14900 lt_prog_compiler_no_builtin_flag=
14902 if test "$GCC" = yes; then
14903 case $cc_basename in
14904 nvcc*)
14905 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14907 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14908 esac
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14911 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14912 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14913 $as_echo_n "(cached) " >&6
14914 else
14915 lt_cv_prog_compiler_rtti_exceptions=no
14916 ac_outfile=conftest.$ac_objext
14917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14918 lt_compiler_flag="-fno-rtti -fno-exceptions"
14919 # Insert the option either (1) after the last *FLAGS variable, or
14920 # (2) before a word containing "conftest.", or (3) at the end.
14921 # Note that $ac_compile itself does not contain backslashes and begins
14922 # with a dollar sign (not a hyphen), so the echo should work correctly.
14923 # The option is referenced via a variable to avoid confusing sed.
14924 lt_compile=`echo "$ac_compile" | $SED \
14925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14927 -e 's:$: $lt_compiler_flag:'`
14928 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14929 (eval "$lt_compile" 2>conftest.err)
14930 ac_status=$?
14931 cat conftest.err >&5
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 if (exit $ac_status) && test -s "$ac_outfile"; then
14934 # The compiler can only warn and ignore the option if not recognized
14935 # So say no if there are warnings other than the usual output.
14936 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14937 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14938 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14939 lt_cv_prog_compiler_rtti_exceptions=yes
14942 $RM conftest*
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14946 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14948 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14949 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14950 else
14961 lt_prog_compiler_wl=
14962 lt_prog_compiler_pic=
14963 lt_prog_compiler_static=
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14966 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14968 if test "$GCC" = yes; then
14969 lt_prog_compiler_wl='-Wl,'
14970 lt_prog_compiler_static='-static'
14972 case $host_os in
14973 aix*)
14974 # All AIX code is PIC.
14975 if test "$host_cpu" = ia64; then
14976 # AIX 5 now supports IA64 processor
14977 lt_prog_compiler_static='-Bstatic'
14979 lt_prog_compiler_pic='-fPIC'
14982 amigaos*)
14983 case $host_cpu in
14984 powerpc)
14985 # see comment about AmigaOS4 .so support
14986 lt_prog_compiler_pic='-fPIC'
14988 m68k)
14989 # FIXME: we need at least 68020 code to build shared libraries, but
14990 # adding the `-m68020' flag to GCC prevents building anything better,
14991 # like `-m68040'.
14992 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14994 esac
14997 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14998 # PIC is the default for these OSes.
15001 mingw* | cygwin* | pw32* | os2* | cegcc*)
15002 # This hack is so that the source file can tell whether it is being
15003 # built for inclusion in a dll (and should export symbols for example).
15004 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15005 # (--disable-auto-import) libraries
15006 lt_prog_compiler_pic='-DDLL_EXPORT'
15009 darwin* | rhapsody*)
15010 # PIC is the default on this platform
15011 # Common symbols not allowed in MH_DYLIB files
15012 lt_prog_compiler_pic='-fno-common'
15015 haiku*)
15016 # PIC is the default for Haiku.
15017 # The "-static" flag exists, but is broken.
15018 lt_prog_compiler_static=
15021 hpux*)
15022 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15023 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15024 # sets the default TLS model and affects inlining.
15025 case $host_cpu in
15026 hppa*64*)
15027 # +Z the default
15030 lt_prog_compiler_pic='-fPIC'
15032 esac
15035 interix[3-9]*)
15036 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15037 # Instead, we relocate shared libraries at runtime.
15040 msdosdjgpp*)
15041 # Just because we use GCC doesn't mean we suddenly get shared libraries
15042 # on systems that don't support them.
15043 lt_prog_compiler_can_build_shared=no
15044 enable_shared=no
15047 *nto* | *qnx*)
15048 # QNX uses GNU C++, but need to define -shared option too, otherwise
15049 # it will coredump.
15050 lt_prog_compiler_pic='-fPIC -shared'
15053 sysv4*MP*)
15054 if test -d /usr/nec; then
15055 lt_prog_compiler_pic=-Kconform_pic
15060 lt_prog_compiler_pic='-fPIC'
15062 esac
15064 case $cc_basename in
15065 nvcc*) # Cuda Compiler Driver 2.2
15066 lt_prog_compiler_wl='-Xlinker '
15067 lt_prog_compiler_pic='-Xcompiler -fPIC'
15069 esac
15070 else
15071 # PORTME Check for flag to pass linker flags through the system compiler.
15072 case $host_os in
15073 aix*)
15074 lt_prog_compiler_wl='-Wl,'
15075 if test "$host_cpu" = ia64; then
15076 # AIX 5 now supports IA64 processor
15077 lt_prog_compiler_static='-Bstatic'
15078 else
15079 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15083 mingw* | cygwin* | pw32* | os2* | cegcc*)
15084 # This hack is so that the source file can tell whether it is being
15085 # built for inclusion in a dll (and should export symbols for example).
15086 lt_prog_compiler_pic='-DDLL_EXPORT'
15089 hpux9* | hpux10* | hpux11*)
15090 lt_prog_compiler_wl='-Wl,'
15091 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15092 # not for PA HP-UX.
15093 case $host_cpu in
15094 hppa*64*|ia64*)
15095 # +Z the default
15098 lt_prog_compiler_pic='+Z'
15100 esac
15101 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15102 lt_prog_compiler_static='${wl}-a ${wl}archive'
15105 irix5* | irix6* | nonstopux*)
15106 lt_prog_compiler_wl='-Wl,'
15107 # PIC (with -KPIC) is the default.
15108 lt_prog_compiler_static='-non_shared'
15111 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15112 case $cc_basename in
15113 # old Intel for x86_64 which still supported -KPIC.
15114 ecc*)
15115 lt_prog_compiler_wl='-Wl,'
15116 lt_prog_compiler_pic='-KPIC'
15117 lt_prog_compiler_static='-static'
15119 # icc used to be incompatible with GCC.
15120 # ICC 10 doesn't accept -KPIC any more.
15121 icc* | ifort*)
15122 lt_prog_compiler_wl='-Wl,'
15123 lt_prog_compiler_pic='-fPIC'
15124 lt_prog_compiler_static='-static'
15126 # Lahey Fortran 8.1.
15127 lf95*)
15128 lt_prog_compiler_wl='-Wl,'
15129 lt_prog_compiler_pic='--shared'
15130 lt_prog_compiler_static='--static'
15132 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15133 # Portland Group compilers (*not* the Pentium gcc compiler,
15134 # which looks to be a dead project)
15135 lt_prog_compiler_wl='-Wl,'
15136 lt_prog_compiler_pic='-fpic'
15137 lt_prog_compiler_static='-Bstatic'
15139 ccc*)
15140 lt_prog_compiler_wl='-Wl,'
15141 # All Alpha code is PIC.
15142 lt_prog_compiler_static='-non_shared'
15144 xl* | bgxl* | bgf* | mpixl*)
15145 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15146 lt_prog_compiler_wl='-Wl,'
15147 lt_prog_compiler_pic='-qpic'
15148 lt_prog_compiler_static='-qstaticlink'
15151 case `$CC -V 2>&1 | sed 5q` in
15152 *Sun\ F* | *Sun*Fortran*)
15153 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15154 lt_prog_compiler_pic='-KPIC'
15155 lt_prog_compiler_static='-Bstatic'
15156 lt_prog_compiler_wl=''
15158 *Sun\ C*)
15159 # Sun C 5.9
15160 lt_prog_compiler_pic='-KPIC'
15161 lt_prog_compiler_static='-Bstatic'
15162 lt_prog_compiler_wl='-Wl,'
15164 esac
15166 esac
15169 newsos6)
15170 lt_prog_compiler_pic='-KPIC'
15171 lt_prog_compiler_static='-Bstatic'
15174 *nto* | *qnx*)
15175 # QNX uses GNU C++, but need to define -shared option too, otherwise
15176 # it will coredump.
15177 lt_prog_compiler_pic='-fPIC -shared'
15180 osf3* | osf4* | osf5*)
15181 lt_prog_compiler_wl='-Wl,'
15182 # All OSF/1 code is PIC.
15183 lt_prog_compiler_static='-non_shared'
15186 rdos*)
15187 lt_prog_compiler_static='-non_shared'
15190 solaris*)
15191 lt_prog_compiler_pic='-KPIC'
15192 lt_prog_compiler_static='-Bstatic'
15193 case $cc_basename in
15194 f77* | f90* | f95*)
15195 lt_prog_compiler_wl='-Qoption ld ';;
15197 lt_prog_compiler_wl='-Wl,';;
15198 esac
15201 sunos4*)
15202 lt_prog_compiler_wl='-Qoption ld '
15203 lt_prog_compiler_pic='-PIC'
15204 lt_prog_compiler_static='-Bstatic'
15207 sysv4 | sysv4.2uw2* | sysv4.3*)
15208 lt_prog_compiler_wl='-Wl,'
15209 lt_prog_compiler_pic='-KPIC'
15210 lt_prog_compiler_static='-Bstatic'
15213 sysv4*MP*)
15214 if test -d /usr/nec ;then
15215 lt_prog_compiler_pic='-Kconform_pic'
15216 lt_prog_compiler_static='-Bstatic'
15220 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15221 lt_prog_compiler_wl='-Wl,'
15222 lt_prog_compiler_pic='-KPIC'
15223 lt_prog_compiler_static='-Bstatic'
15226 unicos*)
15227 lt_prog_compiler_wl='-Wl,'
15228 lt_prog_compiler_can_build_shared=no
15231 uts4*)
15232 lt_prog_compiler_pic='-pic'
15233 lt_prog_compiler_static='-Bstatic'
15237 lt_prog_compiler_can_build_shared=no
15239 esac
15242 case $host_os in
15243 # For platforms which do not support PIC, -DPIC is meaningless:
15244 *djgpp*)
15245 lt_prog_compiler_pic=
15248 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15250 esac
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15252 $as_echo "$lt_prog_compiler_pic" >&6; }
15260 # Check to make sure the PIC flag actually works.
15262 if test -n "$lt_prog_compiler_pic"; then
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15264 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15265 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15266 $as_echo_n "(cached) " >&6
15267 else
15268 lt_cv_prog_compiler_pic_works=no
15269 ac_outfile=conftest.$ac_objext
15270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15271 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15272 # Insert the option either (1) after the last *FLAGS variable, or
15273 # (2) before a word containing "conftest.", or (3) at the end.
15274 # Note that $ac_compile itself does not contain backslashes and begins
15275 # with a dollar sign (not a hyphen), so the echo should work correctly.
15276 # The option is referenced via a variable to avoid confusing sed.
15277 lt_compile=`echo "$ac_compile" | $SED \
15278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15280 -e 's:$: $lt_compiler_flag:'`
15281 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15282 (eval "$lt_compile" 2>conftest.err)
15283 ac_status=$?
15284 cat conftest.err >&5
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 if (exit $ac_status) && test -s "$ac_outfile"; then
15287 # The compiler can only warn and ignore the option if not recognized
15288 # So say no if there are warnings other than the usual output.
15289 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15290 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15291 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15292 lt_cv_prog_compiler_pic_works=yes
15295 $RM conftest*
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15299 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15301 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15302 case $lt_prog_compiler_pic in
15303 "" | " "*) ;;
15304 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15305 esac
15306 else
15307 lt_prog_compiler_pic=
15308 lt_prog_compiler_can_build_shared=no
15319 # Check to make sure the static flag actually works.
15321 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15323 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15324 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15325 $as_echo_n "(cached) " >&6
15326 else
15327 lt_cv_prog_compiler_static_works=no
15328 save_LDFLAGS="$LDFLAGS"
15329 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15330 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15331 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15332 # The linker can only warn and ignore the option if not recognized
15333 # So say no if there are warnings
15334 if test -s conftest.err; then
15335 # Append any errors to the config.log.
15336 cat conftest.err 1>&5
15337 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15339 if diff conftest.exp conftest.er2 >/dev/null; then
15340 lt_cv_prog_compiler_static_works=yes
15342 else
15343 lt_cv_prog_compiler_static_works=yes
15346 $RM -r conftest*
15347 LDFLAGS="$save_LDFLAGS"
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15351 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15353 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15355 else
15356 lt_prog_compiler_static=
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15366 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15367 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15368 $as_echo_n "(cached) " >&6
15369 else
15370 lt_cv_prog_compiler_c_o=no
15371 $RM -r conftest 2>/dev/null
15372 mkdir conftest
15373 cd conftest
15374 mkdir out
15375 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15377 lt_compiler_flag="-o out/conftest2.$ac_objext"
15378 # Insert the option either (1) after the last *FLAGS variable, or
15379 # (2) before a word containing "conftest.", or (3) at the end.
15380 # Note that $ac_compile itself does not contain backslashes and begins
15381 # with a dollar sign (not a hyphen), so the echo should work correctly.
15382 lt_compile=`echo "$ac_compile" | $SED \
15383 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15385 -e 's:$: $lt_compiler_flag:'`
15386 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15387 (eval "$lt_compile" 2>out/conftest.err)
15388 ac_status=$?
15389 cat out/conftest.err >&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15392 then
15393 # The compiler can only warn and ignore the option if not recognized
15394 # So say no if there are warnings
15395 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15396 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15397 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15398 lt_cv_prog_compiler_c_o=yes
15401 chmod u+w . 2>&5
15402 $RM conftest*
15403 # SGI C++ compiler will create directory out/ii_files/ for
15404 # template instantiation
15405 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15406 $RM out/* && rmdir out
15407 cd ..
15408 $RM -r conftest
15409 $RM conftest*
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15413 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15421 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15422 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15423 $as_echo_n "(cached) " >&6
15424 else
15425 lt_cv_prog_compiler_c_o=no
15426 $RM -r conftest 2>/dev/null
15427 mkdir conftest
15428 cd conftest
15429 mkdir out
15430 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15432 lt_compiler_flag="-o out/conftest2.$ac_objext"
15433 # Insert the option either (1) after the last *FLAGS variable, or
15434 # (2) before a word containing "conftest.", or (3) at the end.
15435 # Note that $ac_compile itself does not contain backslashes and begins
15436 # with a dollar sign (not a hyphen), so the echo should work correctly.
15437 lt_compile=`echo "$ac_compile" | $SED \
15438 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15439 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15440 -e 's:$: $lt_compiler_flag:'`
15441 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15442 (eval "$lt_compile" 2>out/conftest.err)
15443 ac_status=$?
15444 cat out/conftest.err >&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15447 then
15448 # The compiler can only warn and ignore the option if not recognized
15449 # So say no if there are warnings
15450 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15451 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15452 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15453 lt_cv_prog_compiler_c_o=yes
15456 chmod u+w . 2>&5
15457 $RM conftest*
15458 # SGI C++ compiler will create directory out/ii_files/ for
15459 # template instantiation
15460 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15461 $RM out/* && rmdir out
15462 cd ..
15463 $RM -r conftest
15464 $RM conftest*
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15468 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15473 hard_links="nottested"
15474 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15475 # do not overwrite the value of need_locks provided by the user
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15477 $as_echo_n "checking if we can lock with hard links... " >&6; }
15478 hard_links=yes
15479 $RM conftest*
15480 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15481 touch conftest.a
15482 ln conftest.a conftest.b 2>&5 || hard_links=no
15483 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15485 $as_echo "$hard_links" >&6; }
15486 if test "$hard_links" = no; then
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15488 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15489 need_locks=warn
15491 else
15492 need_locks=no
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15501 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15503 runpath_var=
15504 allow_undefined_flag=
15505 always_export_symbols=no
15506 archive_cmds=
15507 archive_expsym_cmds=
15508 compiler_needs_object=no
15509 enable_shared_with_static_runtimes=no
15510 export_dynamic_flag_spec=
15511 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15512 hardcode_automatic=no
15513 hardcode_direct=no
15514 hardcode_direct_absolute=no
15515 hardcode_libdir_flag_spec=
15516 hardcode_libdir_flag_spec_ld=
15517 hardcode_libdir_separator=
15518 hardcode_minus_L=no
15519 hardcode_shlibpath_var=unsupported
15520 inherit_rpath=no
15521 link_all_deplibs=unknown
15522 module_cmds=
15523 module_expsym_cmds=
15524 old_archive_from_new_cmds=
15525 old_archive_from_expsyms_cmds=
15526 thread_safe_flag_spec=
15527 whole_archive_flag_spec=
15528 # include_expsyms should be a list of space-separated symbols to be *always*
15529 # included in the symbol list
15530 include_expsyms=
15531 # exclude_expsyms can be an extended regexp of symbols to exclude
15532 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15533 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15534 # as well as any symbol that contains `d'.
15535 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15536 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15537 # platforms (ab)use it in PIC code, but their linkers get confused if
15538 # the symbol is explicitly referenced. Since portable code cannot
15539 # rely on this symbol name, it's probably fine to never include it in
15540 # preloaded symbol tables.
15541 # Exclude shared library initialization/finalization symbols.
15542 extract_expsyms_cmds=
15544 case $host_os in
15545 cygwin* | mingw* | pw32* | cegcc*)
15546 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15547 # When not using gcc, we currently assume that we are using
15548 # Microsoft Visual C++.
15549 if test "$GCC" != yes; then
15550 with_gnu_ld=no
15553 interix*)
15554 # we just hope/assume this is gcc and not c89 (= MSVC++)
15555 with_gnu_ld=yes
15557 openbsd*)
15558 with_gnu_ld=no
15560 esac
15562 ld_shlibs=yes
15564 # On some targets, GNU ld is compatible enough with the native linker
15565 # that we're better off using the native interface for both.
15566 lt_use_gnu_ld_interface=no
15567 if test "$with_gnu_ld" = yes; then
15568 case $host_os in
15569 aix*)
15570 # The AIX port of GNU ld has always aspired to compatibility
15571 # with the native linker. However, as the warning in the GNU ld
15572 # block says, versions before 2.19.5* couldn't really create working
15573 # shared libraries, regardless of the interface used.
15574 case `$LD -v 2>&1` in
15575 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15576 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15577 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15579 lt_use_gnu_ld_interface=yes
15581 esac
15584 lt_use_gnu_ld_interface=yes
15586 esac
15589 if test "$lt_use_gnu_ld_interface" = yes; then
15590 # If archive_cmds runs LD, not CC, wlarc should be empty
15591 wlarc='${wl}'
15593 # Set some defaults for GNU ld with shared library support. These
15594 # are reset later if shared libraries are not supported. Putting them
15595 # here allows them to be overridden if necessary.
15596 runpath_var=LD_RUN_PATH
15597 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15598 export_dynamic_flag_spec='${wl}--export-dynamic'
15599 # ancient GNU ld didn't support --whole-archive et. al.
15600 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15601 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15602 else
15603 whole_archive_flag_spec=
15605 supports_anon_versioning=no
15606 case `$LD -v 2>&1` in
15607 *GNU\ gold*) supports_anon_versioning=yes ;;
15608 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15609 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15610 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15611 *\ 2.11.*) ;; # other 2.11 versions
15612 *) supports_anon_versioning=yes ;;
15613 esac
15615 # See if GNU ld supports shared libraries.
15616 case $host_os in
15617 aix[3-9]*)
15618 # On AIX/PPC, the GNU linker is very broken
15619 if test "$host_cpu" != ia64; then
15620 ld_shlibs=no
15621 cat <<_LT_EOF 1>&2
15623 *** Warning: the GNU linker, at least up to release 2.19, is reported
15624 *** to be unable to reliably create shared libraries on AIX.
15625 *** Therefore, libtool is disabling shared libraries support. If you
15626 *** really care for shared libraries, you may want to install binutils
15627 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15628 *** You will then need to restart the configuration process.
15630 _LT_EOF
15634 amigaos*)
15635 case $host_cpu in
15636 powerpc)
15637 # see comment about AmigaOS4 .so support
15638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15639 archive_expsym_cmds=''
15641 m68k)
15642 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)'
15643 hardcode_libdir_flag_spec='-L$libdir'
15644 hardcode_minus_L=yes
15646 esac
15649 beos*)
15650 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15651 allow_undefined_flag=unsupported
15652 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15653 # support --undefined. This deserves some investigation. FIXME
15654 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15655 else
15656 ld_shlibs=no
15660 cygwin* | mingw* | pw32* | cegcc*)
15661 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15662 # as there is no search path for DLLs.
15663 hardcode_libdir_flag_spec='-L$libdir'
15664 export_dynamic_flag_spec='${wl}--export-all-symbols'
15665 allow_undefined_flag=unsupported
15666 always_export_symbols=no
15667 enable_shared_with_static_runtimes=yes
15668 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15670 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15671 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15672 # If the export-symbols file already is a .def file (1st line
15673 # is EXPORTS), use it as is; otherwise, prepend...
15674 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15675 cp $export_symbols $output_objdir/$soname.def;
15676 else
15677 echo EXPORTS > $output_objdir/$soname.def;
15678 cat $export_symbols >> $output_objdir/$soname.def;
15680 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15681 else
15682 ld_shlibs=no
15686 haiku*)
15687 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15688 link_all_deplibs=yes
15691 interix[3-9]*)
15692 hardcode_direct=no
15693 hardcode_shlibpath_var=no
15694 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15695 export_dynamic_flag_spec='${wl}-E'
15696 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15697 # Instead, shared libraries are loaded at an image base (0x10000000 by
15698 # default) and relocated if they conflict, which is a slow very memory
15699 # consuming and fragmenting process. To avoid this, we pick a random,
15700 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15701 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15702 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15703 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'
15706 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15707 tmp_diet=no
15708 if test "$host_os" = linux-dietlibc; then
15709 case $cc_basename in
15710 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15711 esac
15713 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15714 && test "$tmp_diet" = no
15715 then
15716 tmp_addflag=
15717 tmp_sharedflag='-shared'
15718 case $cc_basename,$host_cpu in
15719 pgcc*) # Portland Group C compiler
15720 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'
15721 tmp_addflag=' $pic_flag'
15723 pgf77* | pgf90* | pgf95* | pgfortran*)
15724 # Portland Group f77 and f90 compilers
15725 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'
15726 tmp_addflag=' $pic_flag -Mnomain' ;;
15727 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15728 tmp_addflag=' -i_dynamic' ;;
15729 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15730 tmp_addflag=' -i_dynamic -nofor_main' ;;
15731 ifc* | ifort*) # Intel Fortran compiler
15732 tmp_addflag=' -nofor_main' ;;
15733 lf95*) # Lahey Fortran 8.1
15734 whole_archive_flag_spec=
15735 tmp_sharedflag='--shared' ;;
15736 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15737 tmp_sharedflag='-qmkshrobj'
15738 tmp_addflag= ;;
15739 nvcc*) # Cuda Compiler Driver 2.2
15740 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'
15741 compiler_needs_object=yes
15743 esac
15744 case `$CC -V 2>&1 | sed 5q` in
15745 *Sun\ C*) # Sun C 5.9
15746 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'
15747 compiler_needs_object=yes
15748 tmp_sharedflag='-G' ;;
15749 *Sun\ F*) # Sun Fortran 8.3
15750 tmp_sharedflag='-G' ;;
15751 esac
15752 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15754 if test "x$supports_anon_versioning" = xyes; then
15755 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15756 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15757 echo "local: *; };" >> $output_objdir/$libname.ver~
15758 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15761 case $cc_basename in
15762 xlf* | bgf* | bgxlf* | mpixlf*)
15763 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15764 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15765 hardcode_libdir_flag_spec=
15766 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15767 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15768 if test "x$supports_anon_versioning" = xyes; then
15769 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15770 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15771 echo "local: *; };" >> $output_objdir/$libname.ver~
15772 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15775 esac
15776 else
15777 ld_shlibs=no
15781 netbsd*)
15782 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15783 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15784 wlarc=
15785 else
15786 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15787 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15791 solaris*)
15792 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15793 ld_shlibs=no
15794 cat <<_LT_EOF 1>&2
15796 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15797 *** create shared libraries on Solaris systems. Therefore, libtool
15798 *** is disabling shared libraries support. We urge you to upgrade GNU
15799 *** binutils to release 2.9.1 or newer. Another option is to modify
15800 *** your PATH or compiler configuration so that the native linker is
15801 *** used, and then restart.
15803 _LT_EOF
15804 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15805 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15806 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15807 else
15808 ld_shlibs=no
15812 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15813 case `$LD -v 2>&1` in
15814 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15815 ld_shlibs=no
15816 cat <<_LT_EOF 1>&2
15818 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15819 *** reliably create shared libraries on SCO systems. Therefore, libtool
15820 *** is disabling shared libraries support. We urge you to upgrade GNU
15821 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15822 *** your PATH or compiler configuration so that the native linker is
15823 *** used, and then restart.
15825 _LT_EOF
15828 # For security reasons, it is highly recommended that you always
15829 # use absolute paths for naming shared libraries, and exclude the
15830 # DT_RUNPATH tag from executables and libraries. But doing so
15831 # requires that you compile everything twice, which is a pain.
15832 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15833 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15834 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15835 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15836 else
15837 ld_shlibs=no
15840 esac
15843 sunos4*)
15844 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15845 wlarc=
15846 hardcode_direct=yes
15847 hardcode_shlibpath_var=no
15851 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15852 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15853 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15854 else
15855 ld_shlibs=no
15858 esac
15860 if test "$ld_shlibs" = no; then
15861 runpath_var=
15862 hardcode_libdir_flag_spec=
15863 export_dynamic_flag_spec=
15864 whole_archive_flag_spec=
15866 else
15867 # PORTME fill in a description of your system's linker (not GNU ld)
15868 case $host_os in
15869 aix3*)
15870 allow_undefined_flag=unsupported
15871 always_export_symbols=yes
15872 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'
15873 # Note: this linker hardcodes the directories in LIBPATH if there
15874 # are no directories specified by -L.
15875 hardcode_minus_L=yes
15876 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15877 # Neither direct hardcoding nor static linking is supported with a
15878 # broken collect2.
15879 hardcode_direct=unsupported
15883 aix[4-9]*)
15884 if test "$host_cpu" = ia64; then
15885 # On IA64, the linker does run time linking by default, so we don't
15886 # have to do anything special.
15887 aix_use_runtimelinking=no
15888 exp_sym_flag='-Bexport'
15889 no_entry_flag=""
15890 else
15891 # If we're using GNU nm, then we don't want the "-C" option.
15892 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15893 # Also, AIX nm treats weak defined symbols like other global
15894 # defined symbols, whereas GNU nm marks them as "W".
15895 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15896 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'
15897 else
15898 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15900 aix_use_runtimelinking=no
15902 # Test if we are trying to use run time linking or normal
15903 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15904 # need to do runtime linking.
15905 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15906 for ld_flag in $LDFLAGS; do
15907 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15908 aix_use_runtimelinking=yes
15909 break
15911 done
15913 esac
15915 exp_sym_flag='-bexport'
15916 no_entry_flag='-bnoentry'
15919 # When large executables or shared objects are built, AIX ld can
15920 # have problems creating the table of contents. If linking a library
15921 # or program results in "error TOC overflow" add -mminimal-toc to
15922 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15923 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15925 archive_cmds=''
15926 hardcode_direct=yes
15927 hardcode_direct_absolute=yes
15928 hardcode_libdir_separator=':'
15929 link_all_deplibs=yes
15930 file_list_spec='${wl}-f,'
15932 if test "$GCC" = yes; then
15933 case $host_os in aix4.[012]|aix4.[012].*)
15934 # We only want to do this on AIX 4.2 and lower, the check
15935 # below for broken collect2 doesn't work under 4.3+
15936 collect2name=`${CC} -print-prog-name=collect2`
15937 if test -f "$collect2name" &&
15938 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15939 then
15940 # We have reworked collect2
15942 else
15943 # We have old collect2
15944 hardcode_direct=unsupported
15945 # It fails to find uninstalled libraries when the uninstalled
15946 # path is not listed in the libpath. Setting hardcode_minus_L
15947 # to unsupported forces relinking
15948 hardcode_minus_L=yes
15949 hardcode_libdir_flag_spec='-L$libdir'
15950 hardcode_libdir_separator=
15953 esac
15954 shared_flag='-shared'
15955 if test "$aix_use_runtimelinking" = yes; then
15956 shared_flag="$shared_flag "'${wl}-G'
15958 else
15959 # not using gcc
15960 if test "$host_cpu" = ia64; then
15961 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15962 # chokes on -Wl,-G. The following line is correct:
15963 shared_flag='-G'
15964 else
15965 if test "$aix_use_runtimelinking" = yes; then
15966 shared_flag='${wl}-G'
15967 else
15968 shared_flag='${wl}-bM:SRE'
15973 export_dynamic_flag_spec='${wl}-bexpall'
15974 # It seems that -bexpall does not export symbols beginning with
15975 # underscore (_), so it is better to generate a list of symbols to export.
15976 always_export_symbols=yes
15977 if test "$aix_use_runtimelinking" = yes; then
15978 # Warning - without using the other runtime loading flags (-brtl),
15979 # -berok will link without error, but may produce a broken library.
15980 allow_undefined_flag='-berok'
15981 # Determine the default libpath from the value encoded in an
15982 # empty executable.
15983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15984 /* end confdefs.h. */
15987 main ()
15991 return 0;
15993 _ACEOF
15994 if ac_fn_c_try_link "$LINENO"; then :
15996 lt_aix_libpath_sed='
15997 /Import File Strings/,/^$/ {
15998 /^0/ {
15999 s/^0 *\(.*\)$/\1/
16003 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16004 # Check for a 64-bit object if we didn't find anything.
16005 if test -z "$aix_libpath"; then
16006 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16009 rm -f core conftest.err conftest.$ac_objext \
16010 conftest$ac_exeext conftest.$ac_ext
16011 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16013 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16014 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"
16015 else
16016 if test "$host_cpu" = ia64; then
16017 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16018 allow_undefined_flag="-z nodefs"
16019 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"
16020 else
16021 # Determine the default libpath from the value encoded in an
16022 # empty executable.
16023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16024 /* end confdefs.h. */
16027 main ()
16031 return 0;
16033 _ACEOF
16034 if ac_fn_c_try_link "$LINENO"; then :
16036 lt_aix_libpath_sed='
16037 /Import File Strings/,/^$/ {
16038 /^0/ {
16039 s/^0 *\(.*\)$/\1/
16043 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16044 # Check for a 64-bit object if we didn't find anything.
16045 if test -z "$aix_libpath"; then
16046 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16049 rm -f core conftest.err conftest.$ac_objext \
16050 conftest$ac_exeext conftest.$ac_ext
16051 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16053 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16054 # Warning - without using the other run time loading flags,
16055 # -berok will link without error, but may produce a broken library.
16056 no_undefined_flag=' ${wl}-bernotok'
16057 allow_undefined_flag=' ${wl}-berok'
16058 if test "$with_gnu_ld" = yes; then
16059 # We only use this code for GNU lds that support --whole-archive.
16060 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16061 else
16062 # Exported symbols can be pulled into shared objects from archives
16063 whole_archive_flag_spec='$convenience'
16065 archive_cmds_need_lc=yes
16066 # This is similar to how AIX traditionally builds its shared libraries.
16067 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'
16072 amigaos*)
16073 case $host_cpu in
16074 powerpc)
16075 # see comment about AmigaOS4 .so support
16076 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16077 archive_expsym_cmds=''
16079 m68k)
16080 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)'
16081 hardcode_libdir_flag_spec='-L$libdir'
16082 hardcode_minus_L=yes
16084 esac
16087 bsdi[45]*)
16088 export_dynamic_flag_spec=-rdynamic
16091 cygwin* | mingw* | pw32* | cegcc*)
16092 # When not using gcc, we currently assume that we are using
16093 # Microsoft Visual C++.
16094 # hardcode_libdir_flag_spec is actually meaningless, as there is
16095 # no search path for DLLs.
16096 hardcode_libdir_flag_spec=' '
16097 allow_undefined_flag=unsupported
16098 # Tell ltmain to make .lib files, not .a files.
16099 libext=lib
16100 # Tell ltmain to make .dll files, not .so files.
16101 shrext_cmds=".dll"
16102 # FIXME: Setting linknames here is a bad hack.
16103 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16104 # The linker will automatically build a .lib file if we build a DLL.
16105 old_archive_from_new_cmds='true'
16106 # FIXME: Should let the user specify the lib program.
16107 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16108 fix_srcfile_path='`cygpath -w "$srcfile"`'
16109 enable_shared_with_static_runtimes=yes
16112 darwin* | rhapsody*)
16115 archive_cmds_need_lc=no
16116 hardcode_direct=no
16117 hardcode_automatic=yes
16118 hardcode_shlibpath_var=unsupported
16119 if test "$lt_cv_ld_force_load" = "yes"; then
16120 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\"`'
16121 else
16122 whole_archive_flag_spec=''
16124 link_all_deplibs=yes
16125 allow_undefined_flag="$_lt_dar_allow_undefined"
16126 case $cc_basename in
16127 ifort*) _lt_dar_can_shared=yes ;;
16128 *) _lt_dar_can_shared=$GCC ;;
16129 esac
16130 if test "$_lt_dar_can_shared" = "yes"; then
16131 output_verbose_link_cmd=func_echo_all
16132 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16133 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16134 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}"
16135 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}"
16137 else
16138 ld_shlibs=no
16143 dgux*)
16144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16145 hardcode_libdir_flag_spec='-L$libdir'
16146 hardcode_shlibpath_var=no
16149 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16150 # support. Future versions do this automatically, but an explicit c++rt0.o
16151 # does not break anything, and helps significantly (at the cost of a little
16152 # extra space).
16153 freebsd2.2*)
16154 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16155 hardcode_libdir_flag_spec='-R$libdir'
16156 hardcode_direct=yes
16157 hardcode_shlibpath_var=no
16160 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16161 freebsd2.*)
16162 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16163 hardcode_direct=yes
16164 hardcode_minus_L=yes
16165 hardcode_shlibpath_var=no
16168 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16169 freebsd* | dragonfly*)
16170 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16171 hardcode_libdir_flag_spec='-R$libdir'
16172 hardcode_direct=yes
16173 hardcode_shlibpath_var=no
16176 hpux9*)
16177 if test "$GCC" = yes; then
16178 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'
16179 else
16180 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'
16182 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16183 hardcode_libdir_separator=:
16184 hardcode_direct=yes
16186 # hardcode_minus_L: Not really in the search PATH,
16187 # but as the default location of the library.
16188 hardcode_minus_L=yes
16189 export_dynamic_flag_spec='${wl}-E'
16192 hpux10*)
16193 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16194 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16195 else
16196 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16198 if test "$with_gnu_ld" = no; then
16199 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16200 hardcode_libdir_flag_spec_ld='+b $libdir'
16201 hardcode_libdir_separator=:
16202 hardcode_direct=yes
16203 hardcode_direct_absolute=yes
16204 export_dynamic_flag_spec='${wl}-E'
16205 # hardcode_minus_L: Not really in the search PATH,
16206 # but as the default location of the library.
16207 hardcode_minus_L=yes
16211 hpux11*)
16212 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16213 case $host_cpu in
16214 hppa*64*)
16215 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16217 ia64*)
16218 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16221 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16223 esac
16224 else
16225 case $host_cpu in
16226 hppa*64*)
16227 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16229 ia64*)
16230 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16234 # Older versions of the 11.00 compiler do not understand -b yet
16235 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16237 $as_echo_n "checking if $CC understands -b... " >&6; }
16238 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16239 $as_echo_n "(cached) " >&6
16240 else
16241 lt_cv_prog_compiler__b=no
16242 save_LDFLAGS="$LDFLAGS"
16243 LDFLAGS="$LDFLAGS -b"
16244 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16245 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16246 # The linker can only warn and ignore the option if not recognized
16247 # So say no if there are warnings
16248 if test -s conftest.err; then
16249 # Append any errors to the config.log.
16250 cat conftest.err 1>&5
16251 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16252 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16253 if diff conftest.exp conftest.er2 >/dev/null; then
16254 lt_cv_prog_compiler__b=yes
16256 else
16257 lt_cv_prog_compiler__b=yes
16260 $RM -r conftest*
16261 LDFLAGS="$save_LDFLAGS"
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16265 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16267 if test x"$lt_cv_prog_compiler__b" = xyes; then
16268 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16269 else
16270 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16274 esac
16276 if test "$with_gnu_ld" = no; then
16277 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16278 hardcode_libdir_separator=:
16280 case $host_cpu in
16281 hppa*64*|ia64*)
16282 hardcode_direct=no
16283 hardcode_shlibpath_var=no
16286 hardcode_direct=yes
16287 hardcode_direct_absolute=yes
16288 export_dynamic_flag_spec='${wl}-E'
16290 # hardcode_minus_L: Not really in the search PATH,
16291 # but as the default location of the library.
16292 hardcode_minus_L=yes
16294 esac
16298 irix5* | irix6* | nonstopux*)
16299 if test "$GCC" = yes; then
16300 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'
16301 # Try to use the -exported_symbol ld option, if it does not
16302 # work, assume that -exports_file does not work either and
16303 # implicitly export all symbols.
16304 save_LDFLAGS="$LDFLAGS"
16305 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16307 /* end confdefs.h. */
16308 int foo(void) {}
16309 _ACEOF
16310 if ac_fn_c_try_link "$LINENO"; then :
16311 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'
16314 rm -f core conftest.err conftest.$ac_objext \
16315 conftest$ac_exeext conftest.$ac_ext
16316 LDFLAGS="$save_LDFLAGS"
16317 else
16318 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'
16319 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'
16321 archive_cmds_need_lc='no'
16322 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16323 hardcode_libdir_separator=:
16324 inherit_rpath=yes
16325 link_all_deplibs=yes
16328 netbsd*)
16329 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16330 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16331 else
16332 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16334 hardcode_libdir_flag_spec='-R$libdir'
16335 hardcode_direct=yes
16336 hardcode_shlibpath_var=no
16339 newsos6)
16340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16341 hardcode_direct=yes
16342 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16343 hardcode_libdir_separator=:
16344 hardcode_shlibpath_var=no
16347 *nto* | *qnx*)
16350 openbsd*)
16351 if test -f /usr/libexec/ld.so; then
16352 hardcode_direct=yes
16353 hardcode_shlibpath_var=no
16354 hardcode_direct_absolute=yes
16355 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16356 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16357 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16358 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16359 export_dynamic_flag_spec='${wl}-E'
16360 else
16361 case $host_os in
16362 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16363 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16364 hardcode_libdir_flag_spec='-R$libdir'
16367 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16368 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16370 esac
16372 else
16373 ld_shlibs=no
16377 os2*)
16378 hardcode_libdir_flag_spec='-L$libdir'
16379 hardcode_minus_L=yes
16380 allow_undefined_flag=unsupported
16381 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'
16382 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16385 osf3*)
16386 if test "$GCC" = yes; then
16387 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16388 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'
16389 else
16390 allow_undefined_flag=' -expect_unresolved \*'
16391 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'
16393 archive_cmds_need_lc='no'
16394 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16395 hardcode_libdir_separator=:
16398 osf4* | osf5*) # as osf3* with the addition of -msym flag
16399 if test "$GCC" = yes; then
16400 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16401 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'
16402 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16403 else
16404 allow_undefined_flag=' -expect_unresolved \*'
16405 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'
16406 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~
16407 $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'
16409 # Both c and cxx compiler support -rpath directly
16410 hardcode_libdir_flag_spec='-rpath $libdir'
16412 archive_cmds_need_lc='no'
16413 hardcode_libdir_separator=:
16416 solaris*)
16417 no_undefined_flag=' -z defs'
16418 if test "$GCC" = yes; then
16419 wlarc='${wl}'
16420 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16421 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16422 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16423 else
16424 case `$CC -V 2>&1` in
16425 *"Compilers 5.0"*)
16426 wlarc=''
16427 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16428 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16429 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16432 wlarc='${wl}'
16433 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16434 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16435 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16437 esac
16439 hardcode_libdir_flag_spec='-R$libdir'
16440 hardcode_shlibpath_var=no
16441 case $host_os in
16442 solaris2.[0-5] | solaris2.[0-5].*) ;;
16444 # The compiler driver will combine and reorder linker options,
16445 # but understands `-z linker_flag'. GCC discards it without `$wl',
16446 # but is careful enough not to reorder.
16447 # Supported since Solaris 2.6 (maybe 2.5.1?)
16448 if test "$GCC" = yes; then
16449 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16450 else
16451 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16454 esac
16455 link_all_deplibs=yes
16458 sunos4*)
16459 if test "x$host_vendor" = xsequent; then
16460 # Use $CC to link under sequent, because it throws in some extra .o
16461 # files that make .init and .fini sections work.
16462 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16463 else
16464 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16466 hardcode_libdir_flag_spec='-L$libdir'
16467 hardcode_direct=yes
16468 hardcode_minus_L=yes
16469 hardcode_shlibpath_var=no
16472 sysv4)
16473 case $host_vendor in
16474 sni)
16475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16476 hardcode_direct=yes # is this really true???
16478 siemens)
16479 ## LD is ld it makes a PLAMLIB
16480 ## CC just makes a GrossModule.
16481 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16482 reload_cmds='$CC -r -o $output$reload_objs'
16483 hardcode_direct=no
16485 motorola)
16486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16487 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16489 esac
16490 runpath_var='LD_RUN_PATH'
16491 hardcode_shlibpath_var=no
16494 sysv4.3*)
16495 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16496 hardcode_shlibpath_var=no
16497 export_dynamic_flag_spec='-Bexport'
16500 sysv4*MP*)
16501 if test -d /usr/nec; then
16502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16503 hardcode_shlibpath_var=no
16504 runpath_var=LD_RUN_PATH
16505 hardcode_runpath_var=yes
16506 ld_shlibs=yes
16510 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16511 no_undefined_flag='${wl}-z,text'
16512 archive_cmds_need_lc=no
16513 hardcode_shlibpath_var=no
16514 runpath_var='LD_RUN_PATH'
16516 if test "$GCC" = yes; then
16517 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16518 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16519 else
16520 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16521 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16525 sysv5* | sco3.2v5* | sco5v6*)
16526 # Note: We can NOT use -z defs as we might desire, because we do not
16527 # link with -lc, and that would cause any symbols used from libc to
16528 # always be unresolved, which means just about no library would
16529 # ever link correctly. If we're not using GNU ld we use -z text
16530 # though, which does catch some bad symbols but isn't as heavy-handed
16531 # as -z defs.
16532 no_undefined_flag='${wl}-z,text'
16533 allow_undefined_flag='${wl}-z,nodefs'
16534 archive_cmds_need_lc=no
16535 hardcode_shlibpath_var=no
16536 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16537 hardcode_libdir_separator=':'
16538 link_all_deplibs=yes
16539 export_dynamic_flag_spec='${wl}-Bexport'
16540 runpath_var='LD_RUN_PATH'
16542 if test "$GCC" = yes; then
16543 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16544 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16545 else
16546 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16547 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16551 uts4*)
16552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16553 hardcode_libdir_flag_spec='-L$libdir'
16554 hardcode_shlibpath_var=no
16558 ld_shlibs=no
16560 esac
16562 if test x$host_vendor = xsni; then
16563 case $host in
16564 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16565 export_dynamic_flag_spec='${wl}-Blargedynsym'
16567 esac
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16572 $as_echo "$ld_shlibs" >&6; }
16573 test "$ld_shlibs" = no && can_build_shared=no
16575 with_gnu_ld=$with_gnu_ld
16592 # Do we need to explicitly link libc?
16594 case "x$archive_cmds_need_lc" in
16595 x|xyes)
16596 # Assume -lc should be added
16597 archive_cmds_need_lc=yes
16599 if test "$enable_shared" = yes && test "$GCC" = yes; then
16600 case $archive_cmds in
16601 *'~'*)
16602 # FIXME: we may have to deal with multi-command sequences.
16604 '$CC '*)
16605 # Test whether the compiler implicitly links with -lc since on some
16606 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16607 # to ld, don't add -lc before -lgcc.
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16609 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16610 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16611 $as_echo_n "(cached) " >&6
16612 else
16613 $RM conftest*
16614 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16617 (eval $ac_compile) 2>&5
16618 ac_status=$?
16619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16620 test $ac_status = 0; } 2>conftest.err; then
16621 soname=conftest
16622 lib=conftest
16623 libobjs=conftest.$ac_objext
16624 deplibs=
16625 wl=$lt_prog_compiler_wl
16626 pic_flag=$lt_prog_compiler_pic
16627 compiler_flags=-v
16628 linker_flags=-v
16629 verstring=
16630 output_objdir=.
16631 libname=conftest
16632 lt_save_allow_undefined_flag=$allow_undefined_flag
16633 allow_undefined_flag=
16634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16635 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16636 ac_status=$?
16637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16638 test $ac_status = 0; }
16639 then
16640 lt_cv_archive_cmds_need_lc=no
16641 else
16642 lt_cv_archive_cmds_need_lc=yes
16644 allow_undefined_flag=$lt_save_allow_undefined_flag
16645 else
16646 cat conftest.err 1>&5
16648 $RM conftest*
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16652 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16653 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16655 esac
16658 esac
16816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16817 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16819 if test "$GCC" = yes; then
16820 case $host_os in
16821 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16822 *) lt_awk_arg="/^libraries:/" ;;
16823 esac
16824 case $host_os in
16825 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16826 *) lt_sed_strip_eq="s,=/,/,g" ;;
16827 esac
16828 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16829 case $lt_search_path_spec in
16830 *\;*)
16831 # if the path contains ";" then we assume it to be the separator
16832 # otherwise default to the standard path separator (i.e. ":") - it is
16833 # assumed that no part of a normal pathname contains ";" but that should
16834 # okay in the real world where ";" in dirpaths is itself problematic.
16835 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16838 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16840 esac
16841 # Ok, now we have the path, separated by spaces, we can step through it
16842 # and add multilib dir if necessary.
16843 lt_tmp_lt_search_path_spec=
16844 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16845 for lt_sys_path in $lt_search_path_spec; do
16846 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16847 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16848 else
16849 test -d "$lt_sys_path" && \
16850 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16852 done
16853 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16854 BEGIN {RS=" "; FS="/|\n";} {
16855 lt_foo="";
16856 lt_count=0;
16857 for (lt_i = NF; lt_i > 0; lt_i--) {
16858 if ($lt_i != "" && $lt_i != ".") {
16859 if ($lt_i == "..") {
16860 lt_count++;
16861 } else {
16862 if (lt_count == 0) {
16863 lt_foo="/" $lt_i lt_foo;
16864 } else {
16865 lt_count--;
16870 if (lt_foo != "") { lt_freq[lt_foo]++; }
16871 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16873 # AWK program above erroneously prepends '/' to C:/dos/paths
16874 # for these hosts.
16875 case $host_os in
16876 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16877 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16878 esac
16879 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16880 else
16881 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16883 library_names_spec=
16884 libname_spec='lib$name'
16885 soname_spec=
16886 shrext_cmds=".so"
16887 postinstall_cmds=
16888 postuninstall_cmds=
16889 finish_cmds=
16890 finish_eval=
16891 shlibpath_var=
16892 shlibpath_overrides_runpath=unknown
16893 version_type=none
16894 dynamic_linker="$host_os ld.so"
16895 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16896 need_lib_prefix=unknown
16897 hardcode_into_libs=no
16899 # when you set need_version to no, make sure it does not cause -set_version
16900 # flags to be left without arguments
16901 need_version=unknown
16903 case $host_os in
16904 aix3*)
16905 version_type=linux
16906 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16907 shlibpath_var=LIBPATH
16909 # AIX 3 has no versioning support, so we append a major version to the name.
16910 soname_spec='${libname}${release}${shared_ext}$major'
16913 aix[4-9]*)
16914 version_type=linux
16915 need_lib_prefix=no
16916 need_version=no
16917 hardcode_into_libs=yes
16918 if test "$host_cpu" = ia64; then
16919 # AIX 5 supports IA64
16920 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16921 shlibpath_var=LD_LIBRARY_PATH
16922 else
16923 # With GCC up to 2.95.x, collect2 would create an import file
16924 # for dependence libraries. The import file would start with
16925 # the line `#! .'. This would cause the generated library to
16926 # depend on `.', always an invalid library. This was fixed in
16927 # development snapshots of GCC prior to 3.0.
16928 case $host_os in
16929 aix4 | aix4.[01] | aix4.[01].*)
16930 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16931 echo ' yes '
16932 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16934 else
16935 can_build_shared=no
16938 esac
16939 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16940 # soname into executable. Probably we can add versioning support to
16941 # collect2, so additional links can be useful in future.
16942 if test "$aix_use_runtimelinking" = yes; then
16943 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16944 # instead of lib<name>.a to let people know that these are not
16945 # typical AIX shared libraries.
16946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16947 else
16948 # We preserve .a as extension for shared libraries through AIX4.2
16949 # and later when we are not doing run time linking.
16950 library_names_spec='${libname}${release}.a $libname.a'
16951 soname_spec='${libname}${release}${shared_ext}$major'
16953 shlibpath_var=LIBPATH
16957 amigaos*)
16958 case $host_cpu in
16959 powerpc)
16960 # Since July 2007 AmigaOS4 officially supports .so libraries.
16961 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16964 m68k)
16965 library_names_spec='$libname.ixlibrary $libname.a'
16966 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16967 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'
16969 esac
16972 beos*)
16973 library_names_spec='${libname}${shared_ext}'
16974 dynamic_linker="$host_os ld.so"
16975 shlibpath_var=LIBRARY_PATH
16978 bsdi[45]*)
16979 version_type=linux
16980 need_version=no
16981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16982 soname_spec='${libname}${release}${shared_ext}$major'
16983 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16984 shlibpath_var=LD_LIBRARY_PATH
16985 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16986 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16987 # the default ld.so.conf also contains /usr/contrib/lib and
16988 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16989 # libtool to hard-code these into programs
16992 cygwin* | mingw* | pw32* | cegcc*)
16993 version_type=windows
16994 shrext_cmds=".dll"
16995 need_version=no
16996 need_lib_prefix=no
16998 case $GCC,$host_os in
16999 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17000 library_names_spec='$libname.dll.a'
17001 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17002 postinstall_cmds='base_file=`basename \${file}`~
17003 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17004 dldir=$destdir/`dirname \$dlpath`~
17005 test -d \$dldir || mkdir -p \$dldir~
17006 $install_prog $dir/$dlname \$dldir/$dlname~
17007 chmod a+x \$dldir/$dlname~
17008 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17009 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17011 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17012 dlpath=$dir/\$dldll~
17013 $RM \$dlpath'
17014 shlibpath_overrides_runpath=yes
17016 case $host_os in
17017 cygwin*)
17018 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17019 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17021 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17023 mingw* | cegcc*)
17024 # MinGW DLLs use traditional 'lib' prefix
17025 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17027 pw32*)
17028 # pw32 DLLs use 'pw' prefix rather than 'lib'
17029 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17031 esac
17035 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17037 esac
17038 dynamic_linker='Win32 ld.exe'
17039 # FIXME: first we should search . and the directory the executable is in
17040 shlibpath_var=PATH
17043 darwin* | rhapsody*)
17044 dynamic_linker="$host_os dyld"
17045 version_type=darwin
17046 need_lib_prefix=no
17047 need_version=no
17048 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17049 soname_spec='${libname}${release}${major}$shared_ext'
17050 shlibpath_overrides_runpath=yes
17051 shlibpath_var=DYLD_LIBRARY_PATH
17052 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17054 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17055 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17058 dgux*)
17059 version_type=linux
17060 need_lib_prefix=no
17061 need_version=no
17062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17063 soname_spec='${libname}${release}${shared_ext}$major'
17064 shlibpath_var=LD_LIBRARY_PATH
17067 freebsd* | dragonfly*)
17068 # DragonFly does not have aout. When/if they implement a new
17069 # versioning mechanism, adjust this.
17070 if test -x /usr/bin/objformat; then
17071 objformat=`/usr/bin/objformat`
17072 else
17073 case $host_os in
17074 freebsd[23].*) objformat=aout ;;
17075 *) objformat=elf ;;
17076 esac
17078 version_type=freebsd-$objformat
17079 case $version_type in
17080 freebsd-elf*)
17081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17082 need_version=no
17083 need_lib_prefix=no
17085 freebsd-*)
17086 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17087 need_version=yes
17089 esac
17090 shlibpath_var=LD_LIBRARY_PATH
17091 case $host_os in
17092 freebsd2.*)
17093 shlibpath_overrides_runpath=yes
17095 freebsd3.[01]* | freebsdelf3.[01]*)
17096 shlibpath_overrides_runpath=yes
17097 hardcode_into_libs=yes
17099 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17100 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17101 shlibpath_overrides_runpath=no
17102 hardcode_into_libs=yes
17104 *) # from 4.6 on, and DragonFly
17105 shlibpath_overrides_runpath=yes
17106 hardcode_into_libs=yes
17108 esac
17111 gnu*)
17112 version_type=linux
17113 need_lib_prefix=no
17114 need_version=no
17115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17116 soname_spec='${libname}${release}${shared_ext}$major'
17117 shlibpath_var=LD_LIBRARY_PATH
17118 hardcode_into_libs=yes
17121 haiku*)
17122 version_type=linux
17123 need_lib_prefix=no
17124 need_version=no
17125 dynamic_linker="$host_os runtime_loader"
17126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17127 soname_spec='${libname}${release}${shared_ext}$major'
17128 shlibpath_var=LIBRARY_PATH
17129 shlibpath_overrides_runpath=yes
17130 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17131 hardcode_into_libs=yes
17134 hpux9* | hpux10* | hpux11*)
17135 # Give a soname corresponding to the major version so that dld.sl refuses to
17136 # link against other versions.
17137 version_type=sunos
17138 need_lib_prefix=no
17139 need_version=no
17140 case $host_cpu in
17141 ia64*)
17142 shrext_cmds='.so'
17143 hardcode_into_libs=yes
17144 dynamic_linker="$host_os dld.so"
17145 shlibpath_var=LD_LIBRARY_PATH
17146 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17148 soname_spec='${libname}${release}${shared_ext}$major'
17149 if test "X$HPUX_IA64_MODE" = X32; then
17150 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17151 else
17152 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17154 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17156 hppa*64*)
17157 shrext_cmds='.sl'
17158 hardcode_into_libs=yes
17159 dynamic_linker="$host_os dld.sl"
17160 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17161 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17163 soname_spec='${libname}${release}${shared_ext}$major'
17164 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17165 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17168 shrext_cmds='.sl'
17169 dynamic_linker="$host_os dld.sl"
17170 shlibpath_var=SHLIB_PATH
17171 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17173 soname_spec='${libname}${release}${shared_ext}$major'
17175 esac
17176 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17177 postinstall_cmds='chmod 555 $lib'
17178 # or fails outright, so override atomically:
17179 install_override_mode=555
17182 interix[3-9]*)
17183 version_type=linux
17184 need_lib_prefix=no
17185 need_version=no
17186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17187 soname_spec='${libname}${release}${shared_ext}$major'
17188 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17189 shlibpath_var=LD_LIBRARY_PATH
17190 shlibpath_overrides_runpath=no
17191 hardcode_into_libs=yes
17194 irix5* | irix6* | nonstopux*)
17195 case $host_os in
17196 nonstopux*) version_type=nonstopux ;;
17198 if test "$lt_cv_prog_gnu_ld" = yes; then
17199 version_type=linux
17200 else
17201 version_type=irix
17202 fi ;;
17203 esac
17204 need_lib_prefix=no
17205 need_version=no
17206 soname_spec='${libname}${release}${shared_ext}$major'
17207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17208 case $host_os in
17209 irix5* | nonstopux*)
17210 libsuff= shlibsuff=
17213 case $LD in # libtool.m4 will add one of these switches to LD
17214 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17215 libsuff= shlibsuff= libmagic=32-bit;;
17216 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17217 libsuff=32 shlibsuff=N32 libmagic=N32;;
17218 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17219 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17220 *) libsuff= shlibsuff= libmagic=never-match;;
17221 esac
17223 esac
17224 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17225 shlibpath_overrides_runpath=no
17226 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17227 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17228 hardcode_into_libs=yes
17231 # No shared lib support for Linux oldld, aout, or coff.
17232 linux*oldld* | linux*aout* | linux*coff*)
17233 dynamic_linker=no
17236 # This must be Linux ELF.
17237 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17238 version_type=linux
17239 need_lib_prefix=no
17240 need_version=no
17241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17242 soname_spec='${libname}${release}${shared_ext}$major'
17243 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17244 shlibpath_var=LD_LIBRARY_PATH
17245 shlibpath_overrides_runpath=no
17247 # Some binutils ld are patched to set DT_RUNPATH
17248 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17249 $as_echo_n "(cached) " >&6
17250 else
17251 lt_cv_shlibpath_overrides_runpath=no
17252 save_LDFLAGS=$LDFLAGS
17253 save_libdir=$libdir
17254 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17255 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17257 /* end confdefs.h. */
17260 main ()
17264 return 0;
17266 _ACEOF
17267 if ac_fn_c_try_link "$LINENO"; then :
17268 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17269 lt_cv_shlibpath_overrides_runpath=yes
17272 rm -f core conftest.err conftest.$ac_objext \
17273 conftest$ac_exeext conftest.$ac_ext
17274 LDFLAGS=$save_LDFLAGS
17275 libdir=$save_libdir
17279 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17281 # This implies no fast_install, which is unacceptable.
17282 # Some rework will be needed to allow for fast_install
17283 # before this can be enabled.
17284 hardcode_into_libs=yes
17286 # Append ld.so.conf contents to the search path
17287 if test -f /etc/ld.so.conf; then
17288 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' ' '`
17289 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17292 # We used to test for /lib/ld.so.1 and disable shared libraries on
17293 # powerpc, because MkLinux only supported shared libraries with the
17294 # GNU dynamic linker. Since this was broken with cross compilers,
17295 # most powerpc-linux boxes support dynamic linking these days and
17296 # people can always --disable-shared, the test was removed, and we
17297 # assume the GNU/Linux dynamic linker is in use.
17298 dynamic_linker='GNU/Linux ld.so'
17301 netbsd*)
17302 version_type=sunos
17303 need_lib_prefix=no
17304 need_version=no
17305 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17308 dynamic_linker='NetBSD (a.out) ld.so'
17309 else
17310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17311 soname_spec='${libname}${release}${shared_ext}$major'
17312 dynamic_linker='NetBSD ld.elf_so'
17314 shlibpath_var=LD_LIBRARY_PATH
17315 shlibpath_overrides_runpath=yes
17316 hardcode_into_libs=yes
17319 newsos6)
17320 version_type=linux
17321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17322 shlibpath_var=LD_LIBRARY_PATH
17323 shlibpath_overrides_runpath=yes
17326 *nto* | *qnx*)
17327 version_type=qnx
17328 need_lib_prefix=no
17329 need_version=no
17330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17331 soname_spec='${libname}${release}${shared_ext}$major'
17332 shlibpath_var=LD_LIBRARY_PATH
17333 shlibpath_overrides_runpath=no
17334 hardcode_into_libs=yes
17335 dynamic_linker='ldqnx.so'
17338 openbsd*)
17339 version_type=sunos
17340 sys_lib_dlsearch_path_spec="/usr/lib"
17341 need_lib_prefix=no
17342 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17343 case $host_os in
17344 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17345 *) need_version=no ;;
17346 esac
17347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17348 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17349 shlibpath_var=LD_LIBRARY_PATH
17350 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17351 case $host_os in
17352 openbsd2.[89] | openbsd2.[89].*)
17353 shlibpath_overrides_runpath=no
17356 shlibpath_overrides_runpath=yes
17358 esac
17359 else
17360 shlibpath_overrides_runpath=yes
17364 os2*)
17365 libname_spec='$name'
17366 shrext_cmds=".dll"
17367 need_lib_prefix=no
17368 library_names_spec='$libname${shared_ext} $libname.a'
17369 dynamic_linker='OS/2 ld.exe'
17370 shlibpath_var=LIBPATH
17373 osf3* | osf4* | osf5*)
17374 version_type=osf
17375 need_lib_prefix=no
17376 need_version=no
17377 soname_spec='${libname}${release}${shared_ext}$major'
17378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17379 shlibpath_var=LD_LIBRARY_PATH
17380 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17381 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17384 rdos*)
17385 dynamic_linker=no
17388 solaris*)
17389 version_type=linux
17390 need_lib_prefix=no
17391 need_version=no
17392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17393 soname_spec='${libname}${release}${shared_ext}$major'
17394 shlibpath_var=LD_LIBRARY_PATH
17395 shlibpath_overrides_runpath=yes
17396 hardcode_into_libs=yes
17397 # ldd complains unless libraries are executable
17398 postinstall_cmds='chmod +x $lib'
17401 sunos4*)
17402 version_type=sunos
17403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17404 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17405 shlibpath_var=LD_LIBRARY_PATH
17406 shlibpath_overrides_runpath=yes
17407 if test "$with_gnu_ld" = yes; then
17408 need_lib_prefix=no
17410 need_version=yes
17413 sysv4 | sysv4.3*)
17414 version_type=linux
17415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17416 soname_spec='${libname}${release}${shared_ext}$major'
17417 shlibpath_var=LD_LIBRARY_PATH
17418 case $host_vendor in
17419 sni)
17420 shlibpath_overrides_runpath=no
17421 need_lib_prefix=no
17422 runpath_var=LD_RUN_PATH
17424 siemens)
17425 need_lib_prefix=no
17427 motorola)
17428 need_lib_prefix=no
17429 need_version=no
17430 shlibpath_overrides_runpath=no
17431 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17433 esac
17436 sysv4*MP*)
17437 if test -d /usr/nec ;then
17438 version_type=linux
17439 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17440 soname_spec='$libname${shared_ext}.$major'
17441 shlibpath_var=LD_LIBRARY_PATH
17445 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17446 version_type=freebsd-elf
17447 need_lib_prefix=no
17448 need_version=no
17449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17450 soname_spec='${libname}${release}${shared_ext}$major'
17451 shlibpath_var=LD_LIBRARY_PATH
17452 shlibpath_overrides_runpath=yes
17453 hardcode_into_libs=yes
17454 if test "$with_gnu_ld" = yes; then
17455 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17456 else
17457 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17458 case $host_os in
17459 sco3.2v5*)
17460 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17462 esac
17464 sys_lib_dlsearch_path_spec='/usr/lib'
17467 tpf*)
17468 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17469 version_type=linux
17470 need_lib_prefix=no
17471 need_version=no
17472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17473 shlibpath_var=LD_LIBRARY_PATH
17474 shlibpath_overrides_runpath=no
17475 hardcode_into_libs=yes
17478 uts4*)
17479 version_type=linux
17480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17481 soname_spec='${libname}${release}${shared_ext}$major'
17482 shlibpath_var=LD_LIBRARY_PATH
17486 dynamic_linker=no
17488 esac
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17490 $as_echo "$dynamic_linker" >&6; }
17491 test "$dynamic_linker" = no && can_build_shared=no
17493 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17494 if test "$GCC" = yes; then
17495 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17498 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17499 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17501 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17502 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17597 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17598 hardcode_action=
17599 if test -n "$hardcode_libdir_flag_spec" ||
17600 test -n "$runpath_var" ||
17601 test "X$hardcode_automatic" = "Xyes" ; then
17603 # We can hardcode non-existent directories.
17604 if test "$hardcode_direct" != no &&
17605 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17606 # have to relink, otherwise we might link with an installed library
17607 # when we should be linking with a yet-to-be-installed one
17608 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17609 test "$hardcode_minus_L" != no; then
17610 # Linking always hardcodes the temporary library directory.
17611 hardcode_action=relink
17612 else
17613 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17614 hardcode_action=immediate
17616 else
17617 # We cannot hardcode anything, or else we can only hardcode existing
17618 # directories.
17619 hardcode_action=unsupported
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17622 $as_echo "$hardcode_action" >&6; }
17624 if test "$hardcode_action" = relink ||
17625 test "$inherit_rpath" = yes; then
17626 # Fast installation is not supported
17627 enable_fast_install=no
17628 elif test "$shlibpath_overrides_runpath" = yes ||
17629 test "$enable_shared" = no; then
17630 # Fast installation is not necessary
17631 enable_fast_install=needless
17639 if test "x$enable_dlopen" != xyes; then
17640 enable_dlopen=unknown
17641 enable_dlopen_self=unknown
17642 enable_dlopen_self_static=unknown
17643 else
17644 lt_cv_dlopen=no
17645 lt_cv_dlopen_libs=
17647 case $host_os in
17648 beos*)
17649 lt_cv_dlopen="load_add_on"
17650 lt_cv_dlopen_libs=
17651 lt_cv_dlopen_self=yes
17654 mingw* | pw32* | cegcc*)
17655 lt_cv_dlopen="LoadLibrary"
17656 lt_cv_dlopen_libs=
17659 cygwin*)
17660 lt_cv_dlopen="dlopen"
17661 lt_cv_dlopen_libs=
17664 darwin*)
17665 # if libdl is installed we need to link against it
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17667 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17668 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17669 $as_echo_n "(cached) " >&6
17670 else
17671 ac_check_lib_save_LIBS=$LIBS
17672 LIBS="-ldl $LIBS"
17673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17674 /* end confdefs.h. */
17676 /* Override any GCC internal prototype to avoid an error.
17677 Use char because int might match the return type of a GCC
17678 builtin and then its argument prototype would still apply. */
17679 #ifdef __cplusplus
17680 extern "C"
17681 #endif
17682 char dlopen ();
17684 main ()
17686 return dlopen ();
17688 return 0;
17690 _ACEOF
17691 if ac_fn_c_try_link "$LINENO"; then :
17692 ac_cv_lib_dl_dlopen=yes
17693 else
17694 ac_cv_lib_dl_dlopen=no
17696 rm -f core conftest.err conftest.$ac_objext \
17697 conftest$ac_exeext conftest.$ac_ext
17698 LIBS=$ac_check_lib_save_LIBS
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17701 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17702 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17703 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17704 else
17706 lt_cv_dlopen="dyld"
17707 lt_cv_dlopen_libs=
17708 lt_cv_dlopen_self=yes
17715 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17716 if test "x$ac_cv_func_shl_load" = x""yes; then :
17717 lt_cv_dlopen="shl_load"
17718 else
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17720 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17721 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17722 $as_echo_n "(cached) " >&6
17723 else
17724 ac_check_lib_save_LIBS=$LIBS
17725 LIBS="-ldld $LIBS"
17726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17727 /* end confdefs.h. */
17729 /* Override any GCC internal prototype to avoid an error.
17730 Use char because int might match the return type of a GCC
17731 builtin and then its argument prototype would still apply. */
17732 #ifdef __cplusplus
17733 extern "C"
17734 #endif
17735 char shl_load ();
17737 main ()
17739 return shl_load ();
17741 return 0;
17743 _ACEOF
17744 if ac_fn_c_try_link "$LINENO"; then :
17745 ac_cv_lib_dld_shl_load=yes
17746 else
17747 ac_cv_lib_dld_shl_load=no
17749 rm -f core conftest.err conftest.$ac_objext \
17750 conftest$ac_exeext conftest.$ac_ext
17751 LIBS=$ac_check_lib_save_LIBS
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17754 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17755 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17756 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17757 else
17758 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17759 if test "x$ac_cv_func_dlopen" = x""yes; then :
17760 lt_cv_dlopen="dlopen"
17761 else
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17763 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17764 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17765 $as_echo_n "(cached) " >&6
17766 else
17767 ac_check_lib_save_LIBS=$LIBS
17768 LIBS="-ldl $LIBS"
17769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17770 /* end confdefs.h. */
17772 /* Override any GCC internal prototype to avoid an error.
17773 Use char because int might match the return type of a GCC
17774 builtin and then its argument prototype would still apply. */
17775 #ifdef __cplusplus
17776 extern "C"
17777 #endif
17778 char dlopen ();
17780 main ()
17782 return dlopen ();
17784 return 0;
17786 _ACEOF
17787 if ac_fn_c_try_link "$LINENO"; then :
17788 ac_cv_lib_dl_dlopen=yes
17789 else
17790 ac_cv_lib_dl_dlopen=no
17792 rm -f core conftest.err conftest.$ac_objext \
17793 conftest$ac_exeext conftest.$ac_ext
17794 LIBS=$ac_check_lib_save_LIBS
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17797 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17798 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17799 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17800 else
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17802 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17803 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17804 $as_echo_n "(cached) " >&6
17805 else
17806 ac_check_lib_save_LIBS=$LIBS
17807 LIBS="-lsvld $LIBS"
17808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17809 /* end confdefs.h. */
17811 /* Override any GCC internal prototype to avoid an error.
17812 Use char because int might match the return type of a GCC
17813 builtin and then its argument prototype would still apply. */
17814 #ifdef __cplusplus
17815 extern "C"
17816 #endif
17817 char dlopen ();
17819 main ()
17821 return dlopen ();
17823 return 0;
17825 _ACEOF
17826 if ac_fn_c_try_link "$LINENO"; then :
17827 ac_cv_lib_svld_dlopen=yes
17828 else
17829 ac_cv_lib_svld_dlopen=no
17831 rm -f core conftest.err conftest.$ac_objext \
17832 conftest$ac_exeext conftest.$ac_ext
17833 LIBS=$ac_check_lib_save_LIBS
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17836 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17837 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17838 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17839 else
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17841 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17842 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17843 $as_echo_n "(cached) " >&6
17844 else
17845 ac_check_lib_save_LIBS=$LIBS
17846 LIBS="-ldld $LIBS"
17847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17848 /* end confdefs.h. */
17850 /* Override any GCC internal prototype to avoid an error.
17851 Use char because int might match the return type of a GCC
17852 builtin and then its argument prototype would still apply. */
17853 #ifdef __cplusplus
17854 extern "C"
17855 #endif
17856 char dld_link ();
17858 main ()
17860 return dld_link ();
17862 return 0;
17864 _ACEOF
17865 if ac_fn_c_try_link "$LINENO"; then :
17866 ac_cv_lib_dld_dld_link=yes
17867 else
17868 ac_cv_lib_dld_dld_link=no
17870 rm -f core conftest.err conftest.$ac_objext \
17871 conftest$ac_exeext conftest.$ac_ext
17872 LIBS=$ac_check_lib_save_LIBS
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17875 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17876 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17877 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17896 esac
17898 if test "x$lt_cv_dlopen" != xno; then
17899 enable_dlopen=yes
17900 else
17901 enable_dlopen=no
17904 case $lt_cv_dlopen in
17905 dlopen)
17906 save_CPPFLAGS="$CPPFLAGS"
17907 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17909 save_LDFLAGS="$LDFLAGS"
17910 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17912 save_LIBS="$LIBS"
17913 LIBS="$lt_cv_dlopen_libs $LIBS"
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17916 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17917 if test "${lt_cv_dlopen_self+set}" = set; then :
17918 $as_echo_n "(cached) " >&6
17919 else
17920 if test "$cross_compiling" = yes; then :
17921 lt_cv_dlopen_self=cross
17922 else
17923 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17924 lt_status=$lt_dlunknown
17925 cat > conftest.$ac_ext <<_LT_EOF
17926 #line 17926 "configure"
17927 #include "confdefs.h"
17929 #if HAVE_DLFCN_H
17930 #include <dlfcn.h>
17931 #endif
17933 #include <stdio.h>
17935 #ifdef RTLD_GLOBAL
17936 # define LT_DLGLOBAL RTLD_GLOBAL
17937 #else
17938 # ifdef DL_GLOBAL
17939 # define LT_DLGLOBAL DL_GLOBAL
17940 # else
17941 # define LT_DLGLOBAL 0
17942 # endif
17943 #endif
17945 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17946 find out it does not work in some platform. */
17947 #ifndef LT_DLLAZY_OR_NOW
17948 # ifdef RTLD_LAZY
17949 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17950 # else
17951 # ifdef DL_LAZY
17952 # define LT_DLLAZY_OR_NOW DL_LAZY
17953 # else
17954 # ifdef RTLD_NOW
17955 # define LT_DLLAZY_OR_NOW RTLD_NOW
17956 # else
17957 # ifdef DL_NOW
17958 # define LT_DLLAZY_OR_NOW DL_NOW
17959 # else
17960 # define LT_DLLAZY_OR_NOW 0
17961 # endif
17962 # endif
17963 # endif
17964 # endif
17965 #endif
17967 /* When -fvisbility=hidden is used, assume the code has been annotated
17968 correspondingly for the symbols needed. */
17969 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17970 void fnord () __attribute__((visibility("default")));
17971 #endif
17973 void fnord () { int i=42; }
17974 int main ()
17976 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17977 int status = $lt_dlunknown;
17979 if (self)
17981 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17982 else
17984 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17985 else puts (dlerror ());
17987 /* dlclose (self); */
17989 else
17990 puts (dlerror ());
17992 return status;
17994 _LT_EOF
17995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17996 (eval $ac_link) 2>&5
17997 ac_status=$?
17998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17999 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18000 (./conftest; exit; ) >&5 2>/dev/null
18001 lt_status=$?
18002 case x$lt_status in
18003 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18004 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18005 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18006 esac
18007 else :
18008 # compilation failed
18009 lt_cv_dlopen_self=no
18012 rm -fr conftest*
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18017 $as_echo "$lt_cv_dlopen_self" >&6; }
18019 if test "x$lt_cv_dlopen_self" = xyes; then
18020 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18022 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18023 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18024 $as_echo_n "(cached) " >&6
18025 else
18026 if test "$cross_compiling" = yes; then :
18027 lt_cv_dlopen_self_static=cross
18028 else
18029 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18030 lt_status=$lt_dlunknown
18031 cat > conftest.$ac_ext <<_LT_EOF
18032 #line 18032 "configure"
18033 #include "confdefs.h"
18035 #if HAVE_DLFCN_H
18036 #include <dlfcn.h>
18037 #endif
18039 #include <stdio.h>
18041 #ifdef RTLD_GLOBAL
18042 # define LT_DLGLOBAL RTLD_GLOBAL
18043 #else
18044 # ifdef DL_GLOBAL
18045 # define LT_DLGLOBAL DL_GLOBAL
18046 # else
18047 # define LT_DLGLOBAL 0
18048 # endif
18049 #endif
18051 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18052 find out it does not work in some platform. */
18053 #ifndef LT_DLLAZY_OR_NOW
18054 # ifdef RTLD_LAZY
18055 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18056 # else
18057 # ifdef DL_LAZY
18058 # define LT_DLLAZY_OR_NOW DL_LAZY
18059 # else
18060 # ifdef RTLD_NOW
18061 # define LT_DLLAZY_OR_NOW RTLD_NOW
18062 # else
18063 # ifdef DL_NOW
18064 # define LT_DLLAZY_OR_NOW DL_NOW
18065 # else
18066 # define LT_DLLAZY_OR_NOW 0
18067 # endif
18068 # endif
18069 # endif
18070 # endif
18071 #endif
18073 /* When -fvisbility=hidden is used, assume the code has been annotated
18074 correspondingly for the symbols needed. */
18075 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18076 void fnord () __attribute__((visibility("default")));
18077 #endif
18079 void fnord () { int i=42; }
18080 int main ()
18082 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18083 int status = $lt_dlunknown;
18085 if (self)
18087 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18088 else
18090 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18091 else puts (dlerror ());
18093 /* dlclose (self); */
18095 else
18096 puts (dlerror ());
18098 return status;
18100 _LT_EOF
18101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18102 (eval $ac_link) 2>&5
18103 ac_status=$?
18104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18105 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18106 (./conftest; exit; ) >&5 2>/dev/null
18107 lt_status=$?
18108 case x$lt_status in
18109 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18110 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18111 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18112 esac
18113 else :
18114 # compilation failed
18115 lt_cv_dlopen_self_static=no
18118 rm -fr conftest*
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18123 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18126 CPPFLAGS="$save_CPPFLAGS"
18127 LDFLAGS="$save_LDFLAGS"
18128 LIBS="$save_LIBS"
18130 esac
18132 case $lt_cv_dlopen_self in
18133 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18134 *) enable_dlopen_self=unknown ;;
18135 esac
18137 case $lt_cv_dlopen_self_static in
18138 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18139 *) enable_dlopen_self_static=unknown ;;
18140 esac
18159 striplib=
18160 old_striplib=
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18162 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18163 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18164 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18165 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18167 $as_echo "yes" >&6; }
18168 else
18169 # FIXME - insert some real tests, host_os isn't really good enough
18170 case $host_os in
18171 darwin*)
18172 if test -n "$STRIP" ; then
18173 striplib="$STRIP -x"
18174 old_striplib="$STRIP -S"
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18176 $as_echo "yes" >&6; }
18177 else
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18179 $as_echo "no" >&6; }
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18184 $as_echo "no" >&6; }
18186 esac
18200 # Report which library types will actually be built
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18202 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18204 $as_echo "$can_build_shared" >&6; }
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18207 $as_echo_n "checking whether to build shared libraries... " >&6; }
18208 test "$can_build_shared" = "no" && enable_shared=no
18210 # On AIX, shared libraries and static libraries use the same namespace, and
18211 # are all built from PIC.
18212 case $host_os in
18213 aix3*)
18214 test "$enable_shared" = yes && enable_static=no
18215 if test -n "$RANLIB"; then
18216 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18217 postinstall_cmds='$RANLIB $lib'
18221 aix[4-9]*)
18222 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18223 test "$enable_shared" = yes && enable_static=no
18226 esac
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18228 $as_echo "$enable_shared" >&6; }
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18231 $as_echo_n "checking whether to build static libraries... " >&6; }
18232 # Make sure either enable_shared or enable_static is yes.
18233 test "$enable_shared" = yes || enable_static=yes
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18235 $as_echo "$enable_static" >&6; }
18241 ac_ext=c
18242 ac_cpp='$CPP $CPPFLAGS'
18243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18247 CC="$lt_save_CC"
18249 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18250 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18251 (test "X$CXX" != "Xg++"))) ; then
18252 ac_ext=cpp
18253 ac_cpp='$CXXCPP $CPPFLAGS'
18254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18258 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18259 if test -z "$CXXCPP"; then
18260 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18261 $as_echo_n "(cached) " >&6
18262 else
18263 # Double quotes because CXXCPP needs to be expanded
18264 for CXXCPP in "$CXX -E" "/lib/cpp"
18266 ac_preproc_ok=false
18267 for ac_cxx_preproc_warn_flag in '' yes
18269 # Use a header file that comes with gcc, so configuring glibc
18270 # with a fresh cross-compiler works.
18271 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18272 # <limits.h> exists even on freestanding compilers.
18273 # On the NeXT, cc -E runs the code through the compiler's parser,
18274 # not just through cpp. "Syntax error" is here to catch this case.
18275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18276 /* end confdefs.h. */
18277 #ifdef __STDC__
18278 # include <limits.h>
18279 #else
18280 # include <assert.h>
18281 #endif
18282 Syntax error
18283 _ACEOF
18284 if ac_fn_cxx_try_cpp "$LINENO"; then :
18286 else
18287 # Broken: fails on valid input.
18288 continue
18290 rm -f conftest.err conftest.$ac_ext
18292 # OK, works on sane cases. Now check whether nonexistent headers
18293 # can be detected and how.
18294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18295 /* end confdefs.h. */
18296 #include <ac_nonexistent.h>
18297 _ACEOF
18298 if ac_fn_cxx_try_cpp "$LINENO"; then :
18299 # Broken: success on invalid input.
18300 continue
18301 else
18302 # Passes both tests.
18303 ac_preproc_ok=:
18304 break
18306 rm -f conftest.err conftest.$ac_ext
18308 done
18309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18310 rm -f conftest.err conftest.$ac_ext
18311 if $ac_preproc_ok; then :
18312 break
18315 done
18316 ac_cv_prog_CXXCPP=$CXXCPP
18319 CXXCPP=$ac_cv_prog_CXXCPP
18320 else
18321 ac_cv_prog_CXXCPP=$CXXCPP
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18324 $as_echo "$CXXCPP" >&6; }
18325 ac_preproc_ok=false
18326 for ac_cxx_preproc_warn_flag in '' yes
18328 # Use a header file that comes with gcc, so configuring glibc
18329 # with a fresh cross-compiler works.
18330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18331 # <limits.h> exists even on freestanding compilers.
18332 # On the NeXT, cc -E runs the code through the compiler's parser,
18333 # not just through cpp. "Syntax error" is here to catch this case.
18334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18335 /* end confdefs.h. */
18336 #ifdef __STDC__
18337 # include <limits.h>
18338 #else
18339 # include <assert.h>
18340 #endif
18341 Syntax error
18342 _ACEOF
18343 if ac_fn_cxx_try_cpp "$LINENO"; then :
18345 else
18346 # Broken: fails on valid input.
18347 continue
18349 rm -f conftest.err conftest.$ac_ext
18351 # OK, works on sane cases. Now check whether nonexistent headers
18352 # can be detected and how.
18353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18354 /* end confdefs.h. */
18355 #include <ac_nonexistent.h>
18356 _ACEOF
18357 if ac_fn_cxx_try_cpp "$LINENO"; then :
18358 # Broken: success on invalid input.
18359 continue
18360 else
18361 # Passes both tests.
18362 ac_preproc_ok=:
18363 break
18365 rm -f conftest.err conftest.$ac_ext
18367 done
18368 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18369 rm -f conftest.err conftest.$ac_ext
18370 if $ac_preproc_ok; then :
18372 else
18373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18375 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18376 See \`config.log' for more details." "$LINENO" 5; }
18379 ac_ext=c
18380 ac_cpp='$CPP $CPPFLAGS'
18381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18385 else
18386 _lt_caught_CXX_error=yes
18389 ac_ext=cpp
18390 ac_cpp='$CXXCPP $CPPFLAGS'
18391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18395 archive_cmds_need_lc_CXX=no
18396 allow_undefined_flag_CXX=
18397 always_export_symbols_CXX=no
18398 archive_expsym_cmds_CXX=
18399 compiler_needs_object_CXX=no
18400 export_dynamic_flag_spec_CXX=
18401 hardcode_direct_CXX=no
18402 hardcode_direct_absolute_CXX=no
18403 hardcode_libdir_flag_spec_CXX=
18404 hardcode_libdir_flag_spec_ld_CXX=
18405 hardcode_libdir_separator_CXX=
18406 hardcode_minus_L_CXX=no
18407 hardcode_shlibpath_var_CXX=unsupported
18408 hardcode_automatic_CXX=no
18409 inherit_rpath_CXX=no
18410 module_cmds_CXX=
18411 module_expsym_cmds_CXX=
18412 link_all_deplibs_CXX=unknown
18413 old_archive_cmds_CXX=$old_archive_cmds
18414 reload_flag_CXX=$reload_flag
18415 reload_cmds_CXX=$reload_cmds
18416 no_undefined_flag_CXX=
18417 whole_archive_flag_spec_CXX=
18418 enable_shared_with_static_runtimes_CXX=no
18420 # Source file extension for C++ test sources.
18421 ac_ext=cpp
18423 # Object file extension for compiled C++ test sources.
18424 objext=o
18425 objext_CXX=$objext
18427 # No sense in running all these tests if we already determined that
18428 # the CXX compiler isn't working. Some variables (like enable_shared)
18429 # are currently assumed to apply to all compilers on this platform,
18430 # and will be corrupted by setting them based on a non-working compiler.
18431 if test "$_lt_caught_CXX_error" != yes; then
18432 # Code to be used in simple compile tests
18433 lt_simple_compile_test_code="int some_variable = 0;"
18435 # Code to be used in simple link tests
18436 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18438 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18445 # If no C compiler was specified, use CC.
18446 LTCC=${LTCC-"$CC"}
18448 # If no C compiler flags were specified, use CFLAGS.
18449 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18451 # Allow CC to be a program name with arguments.
18452 compiler=$CC
18455 # save warnings/boilerplate of simple test code
18456 ac_outfile=conftest.$ac_objext
18457 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18458 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18459 _lt_compiler_boilerplate=`cat conftest.err`
18460 $RM conftest*
18462 ac_outfile=conftest.$ac_objext
18463 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18464 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18465 _lt_linker_boilerplate=`cat conftest.err`
18466 $RM -r conftest*
18469 # Allow CC to be a program name with arguments.
18470 lt_save_CC=$CC
18471 lt_save_LD=$LD
18472 lt_save_GCC=$GCC
18473 GCC=$GXX
18474 lt_save_with_gnu_ld=$with_gnu_ld
18475 lt_save_path_LD=$lt_cv_path_LD
18476 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18477 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18478 else
18479 $as_unset lt_cv_prog_gnu_ld
18481 if test -n "${lt_cv_path_LDCXX+set}"; then
18482 lt_cv_path_LD=$lt_cv_path_LDCXX
18483 else
18484 $as_unset lt_cv_path_LD
18486 test -z "${LDCXX+set}" || LD=$LDCXX
18487 CC=${CXX-"c++"}
18488 compiler=$CC
18489 compiler_CXX=$CC
18490 for cc_temp in $compiler""; do
18491 case $cc_temp in
18492 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18493 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18494 \-*) ;;
18495 *) break;;
18496 esac
18497 done
18498 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18501 if test -n "$compiler"; then
18502 # We don't want -fno-exception when compiling C++ code, so set the
18503 # no_builtin_flag separately
18504 if test "$GXX" = yes; then
18505 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18506 else
18507 lt_prog_compiler_no_builtin_flag_CXX=
18510 if test "$GXX" = yes; then
18511 # Set up default GNU C++ configuration
18515 # Check whether --with-gnu-ld was given.
18516 if test "${with_gnu_ld+set}" = set; then :
18517 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18518 else
18519 with_gnu_ld=no
18522 ac_prog=ld
18523 if test "$GCC" = yes; then
18524 # Check if gcc -print-prog-name=ld gives a path.
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18526 $as_echo_n "checking for ld used by $CC... " >&6; }
18527 case $host in
18528 *-*-mingw*)
18529 # gcc leaves a trailing carriage return which upsets mingw
18530 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18532 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18533 esac
18534 case $ac_prog in
18535 # Accept absolute paths.
18536 [\\/]* | ?:[\\/]*)
18537 re_direlt='/[^/][^/]*/\.\./'
18538 # Canonicalize the pathname of ld
18539 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18540 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18541 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18542 done
18543 test -z "$LD" && LD="$ac_prog"
18546 # If it fails, then pretend we aren't using GCC.
18547 ac_prog=ld
18550 # If it is relative, then search for the first ld in PATH.
18551 with_gnu_ld=unknown
18553 esac
18554 elif test "$with_gnu_ld" = yes; then
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18556 $as_echo_n "checking for GNU ld... " >&6; }
18557 else
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18559 $as_echo_n "checking for non-GNU ld... " >&6; }
18561 if test "${lt_cv_path_LD+set}" = set; then :
18562 $as_echo_n "(cached) " >&6
18563 else
18564 if test -z "$LD"; then
18565 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18566 for ac_dir in $PATH; do
18567 IFS="$lt_save_ifs"
18568 test -z "$ac_dir" && ac_dir=.
18569 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18570 lt_cv_path_LD="$ac_dir/$ac_prog"
18571 # Check to see if the program is GNU ld. I'd rather use --version,
18572 # but apparently some variants of GNU ld only accept -v.
18573 # Break only if it was the GNU/non-GNU ld that we prefer.
18574 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18575 *GNU* | *'with BFD'*)
18576 test "$with_gnu_ld" != no && break
18579 test "$with_gnu_ld" != yes && break
18581 esac
18583 done
18584 IFS="$lt_save_ifs"
18585 else
18586 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18590 LD="$lt_cv_path_LD"
18591 if test -n "$LD"; then
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18593 $as_echo "$LD" >&6; }
18594 else
18595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18596 $as_echo "no" >&6; }
18598 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18600 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18601 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18602 $as_echo_n "(cached) " >&6
18603 else
18604 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18605 case `$LD -v 2>&1 </dev/null` in
18606 *GNU* | *'with BFD'*)
18607 lt_cv_prog_gnu_ld=yes
18610 lt_cv_prog_gnu_ld=no
18612 esac
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18615 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18616 with_gnu_ld=$lt_cv_prog_gnu_ld
18624 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18625 # archiving commands below assume that GNU ld is being used.
18626 if test "$with_gnu_ld" = yes; then
18627 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18628 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18630 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18631 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18633 # If archive_cmds runs LD, not CC, wlarc should be empty
18634 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18635 # investigate it a little bit more. (MM)
18636 wlarc='${wl}'
18638 # ancient GNU ld didn't support --whole-archive et. al.
18639 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18640 $GREP 'no-whole-archive' > /dev/null; then
18641 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18642 else
18643 whole_archive_flag_spec_CXX=
18645 else
18646 with_gnu_ld=no
18647 wlarc=
18649 # A generic and very simple default shared library creation
18650 # command for GNU C++ for the case where it uses the native
18651 # linker, instead of GNU ld. If possible, this setting should
18652 # overridden to take advantage of the native linker features on
18653 # the platform it is being used on.
18654 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18657 # Commands to make compiler produce verbose output that lists
18658 # what "hidden" libraries, object files and flags are used when
18659 # linking a shared library.
18660 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18662 else
18663 GXX=no
18664 with_gnu_ld=no
18665 wlarc=
18668 # PORTME: fill in a description of your system's C++ link characteristics
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18670 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18671 ld_shlibs_CXX=yes
18672 case $host_os in
18673 aix3*)
18674 # FIXME: insert proper C++ library support
18675 ld_shlibs_CXX=no
18677 aix[4-9]*)
18678 if test "$host_cpu" = ia64; then
18679 # On IA64, the linker does run time linking by default, so we don't
18680 # have to do anything special.
18681 aix_use_runtimelinking=no
18682 exp_sym_flag='-Bexport'
18683 no_entry_flag=""
18684 else
18685 aix_use_runtimelinking=no
18687 # Test if we are trying to use run time linking or normal
18688 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18689 # need to do runtime linking.
18690 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18691 for ld_flag in $LDFLAGS; do
18692 case $ld_flag in
18693 *-brtl*)
18694 aix_use_runtimelinking=yes
18695 break
18697 esac
18698 done
18700 esac
18702 exp_sym_flag='-bexport'
18703 no_entry_flag='-bnoentry'
18706 # When large executables or shared objects are built, AIX ld can
18707 # have problems creating the table of contents. If linking a library
18708 # or program results in "error TOC overflow" add -mminimal-toc to
18709 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18710 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18712 archive_cmds_CXX=''
18713 hardcode_direct_CXX=yes
18714 hardcode_direct_absolute_CXX=yes
18715 hardcode_libdir_separator_CXX=':'
18716 link_all_deplibs_CXX=yes
18717 file_list_spec_CXX='${wl}-f,'
18719 if test "$GXX" = yes; then
18720 case $host_os in aix4.[012]|aix4.[012].*)
18721 # We only want to do this on AIX 4.2 and lower, the check
18722 # below for broken collect2 doesn't work under 4.3+
18723 collect2name=`${CC} -print-prog-name=collect2`
18724 if test -f "$collect2name" &&
18725 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18726 then
18727 # We have reworked collect2
18729 else
18730 # We have old collect2
18731 hardcode_direct_CXX=unsupported
18732 # It fails to find uninstalled libraries when the uninstalled
18733 # path is not listed in the libpath. Setting hardcode_minus_L
18734 # to unsupported forces relinking
18735 hardcode_minus_L_CXX=yes
18736 hardcode_libdir_flag_spec_CXX='-L$libdir'
18737 hardcode_libdir_separator_CXX=
18739 esac
18740 shared_flag='-shared'
18741 if test "$aix_use_runtimelinking" = yes; then
18742 shared_flag="$shared_flag "'${wl}-G'
18744 else
18745 # not using gcc
18746 if test "$host_cpu" = ia64; then
18747 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18748 # chokes on -Wl,-G. The following line is correct:
18749 shared_flag='-G'
18750 else
18751 if test "$aix_use_runtimelinking" = yes; then
18752 shared_flag='${wl}-G'
18753 else
18754 shared_flag='${wl}-bM:SRE'
18759 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18760 # It seems that -bexpall does not export symbols beginning with
18761 # underscore (_), so it is better to generate a list of symbols to
18762 # export.
18763 always_export_symbols_CXX=yes
18764 if test "$aix_use_runtimelinking" = yes; then
18765 # Warning - without using the other runtime loading flags (-brtl),
18766 # -berok will link without error, but may produce a broken library.
18767 allow_undefined_flag_CXX='-berok'
18768 # Determine the default libpath from the value encoded in an empty
18769 # executable.
18770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18771 /* end confdefs.h. */
18774 main ()
18778 return 0;
18780 _ACEOF
18781 if ac_fn_cxx_try_link "$LINENO"; then :
18783 lt_aix_libpath_sed='
18784 /Import File Strings/,/^$/ {
18785 /^0/ {
18786 s/^0 *\(.*\)$/\1/
18790 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18791 # Check for a 64-bit object if we didn't find anything.
18792 if test -z "$aix_libpath"; then
18793 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18796 rm -f core conftest.err conftest.$ac_objext \
18797 conftest$ac_exeext conftest.$ac_ext
18798 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18800 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18802 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"
18803 else
18804 if test "$host_cpu" = ia64; then
18805 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18806 allow_undefined_flag_CXX="-z nodefs"
18807 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"
18808 else
18809 # Determine the default libpath from the value encoded in an
18810 # empty executable.
18811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18812 /* end confdefs.h. */
18815 main ()
18819 return 0;
18821 _ACEOF
18822 if ac_fn_cxx_try_link "$LINENO"; then :
18824 lt_aix_libpath_sed='
18825 /Import File Strings/,/^$/ {
18826 /^0/ {
18827 s/^0 *\(.*\)$/\1/
18831 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18832 # Check for a 64-bit object if we didn't find anything.
18833 if test -z "$aix_libpath"; then
18834 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18837 rm -f core conftest.err conftest.$ac_objext \
18838 conftest$ac_exeext conftest.$ac_ext
18839 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18841 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18842 # Warning - without using the other run time loading flags,
18843 # -berok will link without error, but may produce a broken library.
18844 no_undefined_flag_CXX=' ${wl}-bernotok'
18845 allow_undefined_flag_CXX=' ${wl}-berok'
18846 if test "$with_gnu_ld" = yes; then
18847 # We only use this code for GNU lds that support --whole-archive.
18848 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18849 else
18850 # Exported symbols can be pulled into shared objects from archives
18851 whole_archive_flag_spec_CXX='$convenience'
18853 archive_cmds_need_lc_CXX=yes
18854 # This is similar to how AIX traditionally builds its shared
18855 # libraries.
18856 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'
18861 beos*)
18862 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18863 allow_undefined_flag_CXX=unsupported
18864 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18865 # support --undefined. This deserves some investigation. FIXME
18866 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18867 else
18868 ld_shlibs_CXX=no
18872 chorus*)
18873 case $cc_basename in
18875 # FIXME: insert proper C++ library support
18876 ld_shlibs_CXX=no
18878 esac
18881 cygwin* | mingw* | pw32* | cegcc*)
18882 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18883 # as there is no search path for DLLs.
18884 hardcode_libdir_flag_spec_CXX='-L$libdir'
18885 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18886 allow_undefined_flag_CXX=unsupported
18887 always_export_symbols_CXX=no
18888 enable_shared_with_static_runtimes_CXX=yes
18890 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18891 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'
18892 # If the export-symbols file already is a .def file (1st line
18893 # is EXPORTS), use it as is; otherwise, prepend...
18894 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18895 cp $export_symbols $output_objdir/$soname.def;
18896 else
18897 echo EXPORTS > $output_objdir/$soname.def;
18898 cat $export_symbols >> $output_objdir/$soname.def;
18900 $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'
18901 else
18902 ld_shlibs_CXX=no
18905 darwin* | rhapsody*)
18908 archive_cmds_need_lc_CXX=no
18909 hardcode_direct_CXX=no
18910 hardcode_automatic_CXX=yes
18911 hardcode_shlibpath_var_CXX=unsupported
18912 if test "$lt_cv_ld_force_load" = "yes"; then
18913 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\"`'
18914 else
18915 whole_archive_flag_spec_CXX=''
18917 link_all_deplibs_CXX=yes
18918 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18919 case $cc_basename in
18920 ifort*) _lt_dar_can_shared=yes ;;
18921 *) _lt_dar_can_shared=$GCC ;;
18922 esac
18923 if test "$_lt_dar_can_shared" = "yes"; then
18924 output_verbose_link_cmd=func_echo_all
18925 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}"
18926 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18927 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}"
18928 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}"
18929 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18930 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}"
18931 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}"
18934 else
18935 ld_shlibs_CXX=no
18940 dgux*)
18941 case $cc_basename in
18942 ec++*)
18943 # FIXME: insert proper C++ library support
18944 ld_shlibs_CXX=no
18946 ghcx*)
18947 # Green Hills C++ Compiler
18948 # FIXME: insert proper C++ library support
18949 ld_shlibs_CXX=no
18952 # FIXME: insert proper C++ library support
18953 ld_shlibs_CXX=no
18955 esac
18958 freebsd2.*)
18959 # C++ shared libraries reported to be fairly broken before
18960 # switch to ELF
18961 ld_shlibs_CXX=no
18964 freebsd-elf*)
18965 archive_cmds_need_lc_CXX=no
18968 freebsd* | dragonfly*)
18969 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18970 # conventions
18971 ld_shlibs_CXX=yes
18974 gnu*)
18977 haiku*)
18978 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18979 link_all_deplibs_CXX=yes
18982 hpux9*)
18983 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18984 hardcode_libdir_separator_CXX=:
18985 export_dynamic_flag_spec_CXX='${wl}-E'
18986 hardcode_direct_CXX=yes
18987 hardcode_minus_L_CXX=yes # Not in the search PATH,
18988 # but as the default
18989 # location of the library.
18991 case $cc_basename in
18992 CC*)
18993 # FIXME: insert proper C++ library support
18994 ld_shlibs_CXX=no
18996 aCC*)
18997 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'
18998 # Commands to make compiler produce verbose output that lists
18999 # what "hidden" libraries, object files and flags are used when
19000 # linking a shared library.
19002 # There doesn't appear to be a way to prevent this compiler from
19003 # explicitly linking system object files so we need to strip them
19004 # from the output so that they don't get included in the library
19005 # dependencies.
19006 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"'
19009 if test "$GXX" = yes; then
19010 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'
19011 else
19012 # FIXME: insert proper C++ library support
19013 ld_shlibs_CXX=no
19016 esac
19019 hpux10*|hpux11*)
19020 if test $with_gnu_ld = no; then
19021 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19022 hardcode_libdir_separator_CXX=:
19024 case $host_cpu in
19025 hppa*64*|ia64*)
19028 export_dynamic_flag_spec_CXX='${wl}-E'
19030 esac
19032 case $host_cpu in
19033 hppa*64*|ia64*)
19034 hardcode_direct_CXX=no
19035 hardcode_shlibpath_var_CXX=no
19038 hardcode_direct_CXX=yes
19039 hardcode_direct_absolute_CXX=yes
19040 hardcode_minus_L_CXX=yes # Not in the search PATH,
19041 # but as the default
19042 # location of the library.
19044 esac
19046 case $cc_basename in
19047 CC*)
19048 # FIXME: insert proper C++ library support
19049 ld_shlibs_CXX=no
19051 aCC*)
19052 case $host_cpu in
19053 hppa*64*)
19054 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19056 ia64*)
19057 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19060 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19062 esac
19063 # Commands to make compiler produce verbose output that lists
19064 # what "hidden" libraries, object files and flags are used when
19065 # linking a shared library.
19067 # There doesn't appear to be a way to prevent this compiler from
19068 # explicitly linking system object files so we need to strip them
19069 # from the output so that they don't get included in the library
19070 # dependencies.
19071 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"'
19074 if test "$GXX" = yes; then
19075 if test $with_gnu_ld = no; then
19076 case $host_cpu in
19077 hppa*64*)
19078 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19080 ia64*)
19081 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19084 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'
19086 esac
19088 else
19089 # FIXME: insert proper C++ library support
19090 ld_shlibs_CXX=no
19093 esac
19096 interix[3-9]*)
19097 hardcode_direct_CXX=no
19098 hardcode_shlibpath_var_CXX=no
19099 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19100 export_dynamic_flag_spec_CXX='${wl}-E'
19101 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19102 # Instead, shared libraries are loaded at an image base (0x10000000 by
19103 # default) and relocated if they conflict, which is a slow very memory
19104 # consuming and fragmenting process. To avoid this, we pick a random,
19105 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19106 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19107 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'
19108 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'
19110 irix5* | irix6*)
19111 case $cc_basename in
19112 CC*)
19113 # SGI C++
19114 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'
19116 # Archives containing C++ object files must be created using
19117 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19118 # necessary to make sure instantiated templates are included
19119 # in the archive.
19120 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19123 if test "$GXX" = yes; then
19124 if test "$with_gnu_ld" = no; then
19125 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'
19126 else
19127 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'
19130 link_all_deplibs_CXX=yes
19132 esac
19133 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19134 hardcode_libdir_separator_CXX=:
19135 inherit_rpath_CXX=yes
19138 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19139 case $cc_basename in
19140 KCC*)
19141 # Kuck and Associates, Inc. (KAI) C++ Compiler
19143 # KCC will only create a shared library if the output file
19144 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19145 # to its proper name (with version) after linking.
19146 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'
19147 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'
19148 # Commands to make compiler produce verbose output that lists
19149 # what "hidden" libraries, object files and flags are used when
19150 # linking a shared library.
19152 # There doesn't appear to be a way to prevent this compiler from
19153 # explicitly linking system object files so we need to strip them
19154 # from the output so that they don't get included in the library
19155 # dependencies.
19156 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"'
19158 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19159 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19161 # Archives containing C++ object files must be created using
19162 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19163 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19165 icpc* | ecpc* )
19166 # Intel C++
19167 with_gnu_ld=yes
19168 # version 8.0 and above of icpc choke on multiply defined symbols
19169 # if we add $predep_objects and $postdep_objects, however 7.1 and
19170 # earlier do not add the objects themselves.
19171 case `$CC -V 2>&1` in
19172 *"Version 7."*)
19173 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19174 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'
19176 *) # Version 8.0 or newer
19177 tmp_idyn=
19178 case $host_cpu in
19179 ia64*) tmp_idyn=' -i_dynamic';;
19180 esac
19181 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19182 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'
19184 esac
19185 archive_cmds_need_lc_CXX=no
19186 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19187 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19188 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19190 pgCC* | pgcpp*)
19191 # Portland Group C++ compiler
19192 case `$CC -V` in
19193 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19194 prelink_cmds_CXX='tpldir=Template.dir~
19195 rm -rf $tpldir~
19196 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19197 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19198 old_archive_cmds_CXX='tpldir=Template.dir~
19199 rm -rf $tpldir~
19200 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19201 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19202 $RANLIB $oldlib'
19203 archive_cmds_CXX='tpldir=Template.dir~
19204 rm -rf $tpldir~
19205 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19206 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19207 archive_expsym_cmds_CXX='tpldir=Template.dir~
19208 rm -rf $tpldir~
19209 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19210 $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'
19212 *) # Version 6 and above use weak symbols
19213 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19214 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'
19216 esac
19218 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19219 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19220 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'
19222 cxx*)
19223 # Compaq C++
19224 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19225 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'
19227 runpath_var=LD_RUN_PATH
19228 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19229 hardcode_libdir_separator_CXX=:
19231 # Commands to make compiler produce verbose output that lists
19232 # what "hidden" libraries, object files and flags are used when
19233 # linking a shared library.
19235 # There doesn't appear to be a way to prevent this compiler from
19236 # explicitly linking system object files so we need to strip them
19237 # from the output so that they don't get included in the library
19238 # dependencies.
19239 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'
19241 xl* | mpixl* | bgxl*)
19242 # IBM XL 8.0 on PPC, with GNU ld
19243 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19244 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19245 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19246 if test "x$supports_anon_versioning" = xyes; then
19247 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19248 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19249 echo "local: *; };" >> $output_objdir/$libname.ver~
19250 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19254 case `$CC -V 2>&1 | sed 5q` in
19255 *Sun\ C*)
19256 # Sun C++ 5.9
19257 no_undefined_flag_CXX=' -zdefs'
19258 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19259 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'
19260 hardcode_libdir_flag_spec_CXX='-R$libdir'
19261 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'
19262 compiler_needs_object_CXX=yes
19264 # Not sure whether something based on
19265 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19266 # would be better.
19267 output_verbose_link_cmd='func_echo_all'
19269 # Archives containing C++ object files must be created using
19270 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19271 # necessary to make sure instantiated templates are included
19272 # in the archive.
19273 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19275 esac
19277 esac
19280 lynxos*)
19281 # FIXME: insert proper C++ library support
19282 ld_shlibs_CXX=no
19285 m88k*)
19286 # FIXME: insert proper C++ library support
19287 ld_shlibs_CXX=no
19290 mvs*)
19291 case $cc_basename in
19292 cxx*)
19293 # FIXME: insert proper C++ library support
19294 ld_shlibs_CXX=no
19297 # FIXME: insert proper C++ library support
19298 ld_shlibs_CXX=no
19300 esac
19303 netbsd*)
19304 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19305 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19306 wlarc=
19307 hardcode_libdir_flag_spec_CXX='-R$libdir'
19308 hardcode_direct_CXX=yes
19309 hardcode_shlibpath_var_CXX=no
19311 # Workaround some broken pre-1.5 toolchains
19312 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19315 *nto* | *qnx*)
19316 ld_shlibs_CXX=yes
19319 openbsd2*)
19320 # C++ shared libraries are fairly broken
19321 ld_shlibs_CXX=no
19324 openbsd*)
19325 if test -f /usr/libexec/ld.so; then
19326 hardcode_direct_CXX=yes
19327 hardcode_shlibpath_var_CXX=no
19328 hardcode_direct_absolute_CXX=yes
19329 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19330 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19331 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19332 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19333 export_dynamic_flag_spec_CXX='${wl}-E'
19334 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19336 output_verbose_link_cmd=func_echo_all
19337 else
19338 ld_shlibs_CXX=no
19342 osf3* | osf4* | osf5*)
19343 case $cc_basename in
19344 KCC*)
19345 # Kuck and Associates, Inc. (KAI) C++ Compiler
19347 # KCC will only create a shared library if the output file
19348 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19349 # to its proper name (with version) after linking.
19350 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'
19352 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19353 hardcode_libdir_separator_CXX=:
19355 # Archives containing C++ object files must be created using
19356 # the KAI C++ compiler.
19357 case $host in
19358 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19359 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19360 esac
19362 RCC*)
19363 # Rational C++ 2.4.1
19364 # FIXME: insert proper C++ library support
19365 ld_shlibs_CXX=no
19367 cxx*)
19368 case $host in
19369 osf3*)
19370 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19371 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'
19372 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19375 allow_undefined_flag_CXX=' -expect_unresolved \*'
19376 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'
19377 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19378 echo "-hidden">> $lib.exp~
19379 $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~
19380 $RM $lib.exp'
19381 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19383 esac
19385 hardcode_libdir_separator_CXX=:
19387 # Commands to make compiler produce verbose output that lists
19388 # what "hidden" libraries, object files and flags are used when
19389 # linking a shared library.
19391 # There doesn't appear to be a way to prevent this compiler from
19392 # explicitly linking system object files so we need to strip them
19393 # from the output so that they don't get included in the library
19394 # dependencies.
19395 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"'
19398 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19399 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19400 case $host in
19401 osf3*)
19402 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'
19405 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'
19407 esac
19409 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19410 hardcode_libdir_separator_CXX=:
19412 # Commands to make compiler produce verbose output that lists
19413 # what "hidden" libraries, object files and flags are used when
19414 # linking a shared library.
19415 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19417 else
19418 # FIXME: insert proper C++ library support
19419 ld_shlibs_CXX=no
19422 esac
19425 psos*)
19426 # FIXME: insert proper C++ library support
19427 ld_shlibs_CXX=no
19430 sunos4*)
19431 case $cc_basename in
19432 CC*)
19433 # Sun C++ 4.x
19434 # FIXME: insert proper C++ library support
19435 ld_shlibs_CXX=no
19437 lcc*)
19438 # Lucid
19439 # FIXME: insert proper C++ library support
19440 ld_shlibs_CXX=no
19443 # FIXME: insert proper C++ library support
19444 ld_shlibs_CXX=no
19446 esac
19449 solaris*)
19450 case $cc_basename in
19451 CC*)
19452 # Sun C++ 4.2, 5.x and Centerline C++
19453 archive_cmds_need_lc_CXX=yes
19454 no_undefined_flag_CXX=' -zdefs'
19455 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19456 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19457 $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'
19459 hardcode_libdir_flag_spec_CXX='-R$libdir'
19460 hardcode_shlibpath_var_CXX=no
19461 case $host_os in
19462 solaris2.[0-5] | solaris2.[0-5].*) ;;
19464 # The compiler driver will combine and reorder linker options,
19465 # but understands `-z linker_flag'.
19466 # Supported since Solaris 2.6 (maybe 2.5.1?)
19467 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19469 esac
19470 link_all_deplibs_CXX=yes
19472 output_verbose_link_cmd='func_echo_all'
19474 # Archives containing C++ object files must be created using
19475 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19476 # necessary to make sure instantiated templates are included
19477 # in the archive.
19478 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19480 gcx*)
19481 # Green Hills C++ Compiler
19482 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19484 # The C++ compiler must be used to create the archive.
19485 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19488 # GNU C++ compiler with Solaris linker
19489 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19490 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19491 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19492 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19493 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19494 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19496 # Commands to make compiler produce verbose output that lists
19497 # what "hidden" libraries, object files and flags are used when
19498 # linking a shared library.
19499 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19500 else
19501 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19502 # platform.
19503 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19504 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19505 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19507 # Commands to make compiler produce verbose output that lists
19508 # what "hidden" libraries, object files and flags are used when
19509 # linking a shared library.
19510 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19513 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19514 case $host_os in
19515 solaris2.[0-5] | solaris2.[0-5].*) ;;
19517 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19519 esac
19522 esac
19525 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19526 no_undefined_flag_CXX='${wl}-z,text'
19527 archive_cmds_need_lc_CXX=no
19528 hardcode_shlibpath_var_CXX=no
19529 runpath_var='LD_RUN_PATH'
19531 case $cc_basename in
19532 CC*)
19533 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19534 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19537 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19538 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19540 esac
19543 sysv5* | sco3.2v5* | sco5v6*)
19544 # Note: We can NOT use -z defs as we might desire, because we do not
19545 # link with -lc, and that would cause any symbols used from libc to
19546 # always be unresolved, which means just about no library would
19547 # ever link correctly. If we're not using GNU ld we use -z text
19548 # though, which does catch some bad symbols but isn't as heavy-handed
19549 # as -z defs.
19550 no_undefined_flag_CXX='${wl}-z,text'
19551 allow_undefined_flag_CXX='${wl}-z,nodefs'
19552 archive_cmds_need_lc_CXX=no
19553 hardcode_shlibpath_var_CXX=no
19554 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19555 hardcode_libdir_separator_CXX=':'
19556 link_all_deplibs_CXX=yes
19557 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19558 runpath_var='LD_RUN_PATH'
19560 case $cc_basename in
19561 CC*)
19562 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19563 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19564 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19565 '"$old_archive_cmds_CXX"
19566 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19567 '"$reload_cmds_CXX"
19570 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19571 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19573 esac
19576 tandem*)
19577 case $cc_basename in
19578 NCC*)
19579 # NonStop-UX NCC 3.20
19580 # FIXME: insert proper C++ library support
19581 ld_shlibs_CXX=no
19584 # FIXME: insert proper C++ library support
19585 ld_shlibs_CXX=no
19587 esac
19590 vxworks*)
19591 # FIXME: insert proper C++ library support
19592 ld_shlibs_CXX=no
19596 # FIXME: insert proper C++ library support
19597 ld_shlibs_CXX=no
19599 esac
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19602 $as_echo "$ld_shlibs_CXX" >&6; }
19603 test "$ld_shlibs_CXX" = no && can_build_shared=no
19605 GCC_CXX="$GXX"
19606 LD_CXX="$LD"
19608 ## CAVEAT EMPTOR:
19609 ## There is no encapsulation within the following macros, do not change
19610 ## the running order or otherwise move them around unless you know exactly
19611 ## what you are doing...
19612 # Dependencies to place before and after the object being linked:
19613 predep_objects_CXX=
19614 postdep_objects_CXX=
19615 predeps_CXX=
19616 postdeps_CXX=
19617 compiler_lib_search_path_CXX=
19619 cat > conftest.$ac_ext <<_LT_EOF
19620 class Foo
19622 public:
19623 Foo (void) { a = 0; }
19624 private:
19625 int a;
19627 _LT_EOF
19629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19630 (eval $ac_compile) 2>&5
19631 ac_status=$?
19632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19633 test $ac_status = 0; }; then
19634 # Parse the compiler output and extract the necessary
19635 # objects, libraries and library flags.
19637 # Sentinel used to keep track of whether or not we are before
19638 # the conftest object file.
19639 pre_test_object_deps_done=no
19641 for p in `eval "$output_verbose_link_cmd"`; do
19642 case $p in
19644 -L* | -R* | -l*)
19645 # Some compilers place space between "-{L,R}" and the path.
19646 # Remove the space.
19647 if test $p = "-L" ||
19648 test $p = "-R"; then
19649 prev=$p
19650 continue
19651 else
19652 prev=
19655 if test "$pre_test_object_deps_done" = no; then
19656 case $p in
19657 -L* | -R*)
19658 # Internal compiler library paths should come after those
19659 # provided the user. The postdeps already come after the
19660 # user supplied libs so there is no need to process them.
19661 if test -z "$compiler_lib_search_path_CXX"; then
19662 compiler_lib_search_path_CXX="${prev}${p}"
19663 else
19664 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19667 # The "-l" case would never come before the object being
19668 # linked, so don't bother handling this case.
19669 esac
19670 else
19671 if test -z "$postdeps_CXX"; then
19672 postdeps_CXX="${prev}${p}"
19673 else
19674 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19679 *.$objext)
19680 # This assumes that the test object file only shows up
19681 # once in the compiler output.
19682 if test "$p" = "conftest.$objext"; then
19683 pre_test_object_deps_done=yes
19684 continue
19687 if test "$pre_test_object_deps_done" = no; then
19688 if test -z "$predep_objects_CXX"; then
19689 predep_objects_CXX="$p"
19690 else
19691 predep_objects_CXX="$predep_objects_CXX $p"
19693 else
19694 if test -z "$postdep_objects_CXX"; then
19695 postdep_objects_CXX="$p"
19696 else
19697 postdep_objects_CXX="$postdep_objects_CXX $p"
19702 *) ;; # Ignore the rest.
19704 esac
19705 done
19707 # Clean up.
19708 rm -f a.out a.exe
19709 else
19710 echo "libtool.m4: error: problem compiling CXX test program"
19713 $RM -f confest.$objext
19715 # PORTME: override above test on systems where it is broken
19716 case $host_os in
19717 interix[3-9]*)
19718 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19719 # hack all around it, let's just trust "g++" to DTRT.
19720 predep_objects_CXX=
19721 postdep_objects_CXX=
19722 postdeps_CXX=
19725 linux*)
19726 case `$CC -V 2>&1 | sed 5q` in
19727 *Sun\ C*)
19728 # Sun C++ 5.9
19730 # The more standards-conforming stlport4 library is
19731 # incompatible with the Cstd library. Avoid specifying
19732 # it if it's in CXXFLAGS. Ignore libCrun as
19733 # -library=stlport4 depends on it.
19734 case " $CXX $CXXFLAGS " in
19735 *" -library=stlport4 "*)
19736 solaris_use_stlport4=yes
19738 esac
19740 if test "$solaris_use_stlport4" != yes; then
19741 postdeps_CXX='-library=Cstd -library=Crun'
19744 esac
19747 solaris*)
19748 case $cc_basename in
19749 CC*)
19750 # The more standards-conforming stlport4 library is
19751 # incompatible with the Cstd library. Avoid specifying
19752 # it if it's in CXXFLAGS. Ignore libCrun as
19753 # -library=stlport4 depends on it.
19754 case " $CXX $CXXFLAGS " in
19755 *" -library=stlport4 "*)
19756 solaris_use_stlport4=yes
19758 esac
19760 # Adding this requires a known-good setup of shared libraries for
19761 # Sun compiler versions before 5.6, else PIC objects from an old
19762 # archive will be linked into the output, leading to subtle bugs.
19763 if test "$solaris_use_stlport4" != yes; then
19764 postdeps_CXX='-library=Cstd -library=Crun'
19767 esac
19769 esac
19772 case " $postdeps_CXX " in
19773 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19774 esac
19775 compiler_lib_search_dirs_CXX=
19776 if test -n "${compiler_lib_search_path_CXX}"; then
19777 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19810 lt_prog_compiler_wl_CXX=
19811 lt_prog_compiler_pic_CXX=
19812 lt_prog_compiler_static_CXX=
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19815 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19817 # C++ specific cases for pic, static, wl, etc.
19818 if test "$GXX" = yes; then
19819 lt_prog_compiler_wl_CXX='-Wl,'
19820 lt_prog_compiler_static_CXX='-static'
19822 case $host_os in
19823 aix*)
19824 # All AIX code is PIC.
19825 if test "$host_cpu" = ia64; then
19826 # AIX 5 now supports IA64 processor
19827 lt_prog_compiler_static_CXX='-Bstatic'
19829 lt_prog_compiler_pic_CXX='-fPIC'
19832 amigaos*)
19833 case $host_cpu in
19834 powerpc)
19835 # see comment about AmigaOS4 .so support
19836 lt_prog_compiler_pic_CXX='-fPIC'
19838 m68k)
19839 # FIXME: we need at least 68020 code to build shared libraries, but
19840 # adding the `-m68020' flag to GCC prevents building anything better,
19841 # like `-m68040'.
19842 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19844 esac
19847 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19848 # PIC is the default for these OSes.
19850 mingw* | cygwin* | os2* | pw32* | cegcc*)
19851 # This hack is so that the source file can tell whether it is being
19852 # built for inclusion in a dll (and should export symbols for example).
19853 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19854 # (--disable-auto-import) libraries
19855 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19857 darwin* | rhapsody*)
19858 # PIC is the default on this platform
19859 # Common symbols not allowed in MH_DYLIB files
19860 lt_prog_compiler_pic_CXX='-fno-common'
19862 *djgpp*)
19863 # DJGPP does not support shared libraries at all
19864 lt_prog_compiler_pic_CXX=
19866 haiku*)
19867 # PIC is the default for Haiku.
19868 # The "-static" flag exists, but is broken.
19869 lt_prog_compiler_static_CXX=
19871 interix[3-9]*)
19872 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19873 # Instead, we relocate shared libraries at runtime.
19875 sysv4*MP*)
19876 if test -d /usr/nec; then
19877 lt_prog_compiler_pic_CXX=-Kconform_pic
19880 hpux*)
19881 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19882 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19883 # sets the default TLS model and affects inlining.
19884 case $host_cpu in
19885 hppa*64*)
19888 lt_prog_compiler_pic_CXX='-fPIC'
19890 esac
19892 *qnx* | *nto*)
19893 # QNX uses GNU C++, but need to define -shared option too, otherwise
19894 # it will coredump.
19895 lt_prog_compiler_pic_CXX='-fPIC -shared'
19898 lt_prog_compiler_pic_CXX='-fPIC'
19900 esac
19901 else
19902 case $host_os in
19903 aix[4-9]*)
19904 # All AIX code is PIC.
19905 if test "$host_cpu" = ia64; then
19906 # AIX 5 now supports IA64 processor
19907 lt_prog_compiler_static_CXX='-Bstatic'
19908 else
19909 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19912 chorus*)
19913 case $cc_basename in
19914 cxch68*)
19915 # Green Hills C++ Compiler
19916 # _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"
19918 esac
19920 dgux*)
19921 case $cc_basename in
19922 ec++*)
19923 lt_prog_compiler_pic_CXX='-KPIC'
19925 ghcx*)
19926 # Green Hills C++ Compiler
19927 lt_prog_compiler_pic_CXX='-pic'
19931 esac
19933 freebsd* | dragonfly*)
19934 # FreeBSD uses GNU C++
19936 hpux9* | hpux10* | hpux11*)
19937 case $cc_basename in
19938 CC*)
19939 lt_prog_compiler_wl_CXX='-Wl,'
19940 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19941 if test "$host_cpu" != ia64; then
19942 lt_prog_compiler_pic_CXX='+Z'
19945 aCC*)
19946 lt_prog_compiler_wl_CXX='-Wl,'
19947 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19948 case $host_cpu in
19949 hppa*64*|ia64*)
19950 # +Z the default
19953 lt_prog_compiler_pic_CXX='+Z'
19955 esac
19959 esac
19961 interix*)
19962 # This is c89, which is MS Visual C++ (no shared libs)
19963 # Anyone wants to do a port?
19965 irix5* | irix6* | nonstopux*)
19966 case $cc_basename in
19967 CC*)
19968 lt_prog_compiler_wl_CXX='-Wl,'
19969 lt_prog_compiler_static_CXX='-non_shared'
19970 # CC pic flag -KPIC is the default.
19974 esac
19976 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19977 case $cc_basename in
19978 KCC*)
19979 # KAI C++ Compiler
19980 lt_prog_compiler_wl_CXX='--backend -Wl,'
19981 lt_prog_compiler_pic_CXX='-fPIC'
19983 ecpc* )
19984 # old Intel C++ for x86_64 which still supported -KPIC.
19985 lt_prog_compiler_wl_CXX='-Wl,'
19986 lt_prog_compiler_pic_CXX='-KPIC'
19987 lt_prog_compiler_static_CXX='-static'
19989 icpc* )
19990 # Intel C++, used to be incompatible with GCC.
19991 # ICC 10 doesn't accept -KPIC any more.
19992 lt_prog_compiler_wl_CXX='-Wl,'
19993 lt_prog_compiler_pic_CXX='-fPIC'
19994 lt_prog_compiler_static_CXX='-static'
19996 pgCC* | pgcpp*)
19997 # Portland Group C++ compiler
19998 lt_prog_compiler_wl_CXX='-Wl,'
19999 lt_prog_compiler_pic_CXX='-fpic'
20000 lt_prog_compiler_static_CXX='-Bstatic'
20002 cxx*)
20003 # Compaq C++
20004 # Make sure the PIC flag is empty. It appears that all Alpha
20005 # Linux and Compaq Tru64 Unix objects are PIC.
20006 lt_prog_compiler_pic_CXX=
20007 lt_prog_compiler_static_CXX='-non_shared'
20009 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20010 # IBM XL 8.0, 9.0 on PPC and BlueGene
20011 lt_prog_compiler_wl_CXX='-Wl,'
20012 lt_prog_compiler_pic_CXX='-qpic'
20013 lt_prog_compiler_static_CXX='-qstaticlink'
20016 case `$CC -V 2>&1 | sed 5q` in
20017 *Sun\ C*)
20018 # Sun C++ 5.9
20019 lt_prog_compiler_pic_CXX='-KPIC'
20020 lt_prog_compiler_static_CXX='-Bstatic'
20021 lt_prog_compiler_wl_CXX='-Qoption ld '
20023 esac
20025 esac
20027 lynxos*)
20029 m88k*)
20031 mvs*)
20032 case $cc_basename in
20033 cxx*)
20034 lt_prog_compiler_pic_CXX='-W c,exportall'
20038 esac
20040 netbsd*)
20042 *qnx* | *nto*)
20043 # QNX uses GNU C++, but need to define -shared option too, otherwise
20044 # it will coredump.
20045 lt_prog_compiler_pic_CXX='-fPIC -shared'
20047 osf3* | osf4* | osf5*)
20048 case $cc_basename in
20049 KCC*)
20050 lt_prog_compiler_wl_CXX='--backend -Wl,'
20052 RCC*)
20053 # Rational C++ 2.4.1
20054 lt_prog_compiler_pic_CXX='-pic'
20056 cxx*)
20057 # Digital/Compaq C++
20058 lt_prog_compiler_wl_CXX='-Wl,'
20059 # Make sure the PIC flag is empty. It appears that all Alpha
20060 # Linux and Compaq Tru64 Unix objects are PIC.
20061 lt_prog_compiler_pic_CXX=
20062 lt_prog_compiler_static_CXX='-non_shared'
20066 esac
20068 psos*)
20070 solaris*)
20071 case $cc_basename in
20072 CC*)
20073 # Sun C++ 4.2, 5.x and Centerline C++
20074 lt_prog_compiler_pic_CXX='-KPIC'
20075 lt_prog_compiler_static_CXX='-Bstatic'
20076 lt_prog_compiler_wl_CXX='-Qoption ld '
20078 gcx*)
20079 # Green Hills C++ Compiler
20080 lt_prog_compiler_pic_CXX='-PIC'
20084 esac
20086 sunos4*)
20087 case $cc_basename in
20088 CC*)
20089 # Sun C++ 4.x
20090 lt_prog_compiler_pic_CXX='-pic'
20091 lt_prog_compiler_static_CXX='-Bstatic'
20093 lcc*)
20094 # Lucid
20095 lt_prog_compiler_pic_CXX='-pic'
20099 esac
20101 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20102 case $cc_basename in
20103 CC*)
20104 lt_prog_compiler_wl_CXX='-Wl,'
20105 lt_prog_compiler_pic_CXX='-KPIC'
20106 lt_prog_compiler_static_CXX='-Bstatic'
20108 esac
20110 tandem*)
20111 case $cc_basename in
20112 NCC*)
20113 # NonStop-UX NCC 3.20
20114 lt_prog_compiler_pic_CXX='-KPIC'
20118 esac
20120 vxworks*)
20123 lt_prog_compiler_can_build_shared_CXX=no
20125 esac
20128 case $host_os in
20129 # For platforms which do not support PIC, -DPIC is meaningless:
20130 *djgpp*)
20131 lt_prog_compiler_pic_CXX=
20134 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20136 esac
20137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20138 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20143 # Check to make sure the PIC flag actually works.
20145 if test -n "$lt_prog_compiler_pic_CXX"; then
20146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20147 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20148 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20149 $as_echo_n "(cached) " >&6
20150 else
20151 lt_cv_prog_compiler_pic_works_CXX=no
20152 ac_outfile=conftest.$ac_objext
20153 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20154 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20155 # Insert the option either (1) after the last *FLAGS variable, or
20156 # (2) before a word containing "conftest.", or (3) at the end.
20157 # Note that $ac_compile itself does not contain backslashes and begins
20158 # with a dollar sign (not a hyphen), so the echo should work correctly.
20159 # The option is referenced via a variable to avoid confusing sed.
20160 lt_compile=`echo "$ac_compile" | $SED \
20161 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20163 -e 's:$: $lt_compiler_flag:'`
20164 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20165 (eval "$lt_compile" 2>conftest.err)
20166 ac_status=$?
20167 cat conftest.err >&5
20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169 if (exit $ac_status) && test -s "$ac_outfile"; then
20170 # The compiler can only warn and ignore the option if not recognized
20171 # So say no if there are warnings other than the usual output.
20172 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20173 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20174 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20175 lt_cv_prog_compiler_pic_works_CXX=yes
20178 $RM conftest*
20181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20182 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20184 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20185 case $lt_prog_compiler_pic_CXX in
20186 "" | " "*) ;;
20187 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20188 esac
20189 else
20190 lt_prog_compiler_pic_CXX=
20191 lt_prog_compiler_can_build_shared_CXX=no
20199 # Check to make sure the static flag actually works.
20201 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20203 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20204 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20205 $as_echo_n "(cached) " >&6
20206 else
20207 lt_cv_prog_compiler_static_works_CXX=no
20208 save_LDFLAGS="$LDFLAGS"
20209 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20210 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20211 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20212 # The linker can only warn and ignore the option if not recognized
20213 # So say no if there are warnings
20214 if test -s conftest.err; then
20215 # Append any errors to the config.log.
20216 cat conftest.err 1>&5
20217 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20218 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20219 if diff conftest.exp conftest.er2 >/dev/null; then
20220 lt_cv_prog_compiler_static_works_CXX=yes
20222 else
20223 lt_cv_prog_compiler_static_works_CXX=yes
20226 $RM -r conftest*
20227 LDFLAGS="$save_LDFLAGS"
20230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20231 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20233 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20235 else
20236 lt_prog_compiler_static_CXX=
20242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20243 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20244 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20245 $as_echo_n "(cached) " >&6
20246 else
20247 lt_cv_prog_compiler_c_o_CXX=no
20248 $RM -r conftest 2>/dev/null
20249 mkdir conftest
20250 cd conftest
20251 mkdir out
20252 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20254 lt_compiler_flag="-o out/conftest2.$ac_objext"
20255 # Insert the option either (1) after the last *FLAGS variable, or
20256 # (2) before a word containing "conftest.", or (3) at the end.
20257 # Note that $ac_compile itself does not contain backslashes and begins
20258 # with a dollar sign (not a hyphen), so the echo should work correctly.
20259 lt_compile=`echo "$ac_compile" | $SED \
20260 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20261 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20262 -e 's:$: $lt_compiler_flag:'`
20263 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20264 (eval "$lt_compile" 2>out/conftest.err)
20265 ac_status=$?
20266 cat out/conftest.err >&5
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20269 then
20270 # The compiler can only warn and ignore the option if not recognized
20271 # So say no if there are warnings
20272 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20273 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20274 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20275 lt_cv_prog_compiler_c_o_CXX=yes
20278 chmod u+w . 2>&5
20279 $RM conftest*
20280 # SGI C++ compiler will create directory out/ii_files/ for
20281 # template instantiation
20282 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20283 $RM out/* && rmdir out
20284 cd ..
20285 $RM -r conftest
20286 $RM conftest*
20289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20290 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20295 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20296 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20297 $as_echo_n "(cached) " >&6
20298 else
20299 lt_cv_prog_compiler_c_o_CXX=no
20300 $RM -r conftest 2>/dev/null
20301 mkdir conftest
20302 cd conftest
20303 mkdir out
20304 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20306 lt_compiler_flag="-o out/conftest2.$ac_objext"
20307 # Insert the option either (1) after the last *FLAGS variable, or
20308 # (2) before a word containing "conftest.", or (3) at the end.
20309 # Note that $ac_compile itself does not contain backslashes and begins
20310 # with a dollar sign (not a hyphen), so the echo should work correctly.
20311 lt_compile=`echo "$ac_compile" | $SED \
20312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20314 -e 's:$: $lt_compiler_flag:'`
20315 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20316 (eval "$lt_compile" 2>out/conftest.err)
20317 ac_status=$?
20318 cat out/conftest.err >&5
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20321 then
20322 # The compiler can only warn and ignore the option if not recognized
20323 # So say no if there are warnings
20324 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20325 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20326 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20327 lt_cv_prog_compiler_c_o_CXX=yes
20330 chmod u+w . 2>&5
20331 $RM conftest*
20332 # SGI C++ compiler will create directory out/ii_files/ for
20333 # template instantiation
20334 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20335 $RM out/* && rmdir out
20336 cd ..
20337 $RM -r conftest
20338 $RM conftest*
20341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20342 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20347 hard_links="nottested"
20348 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20349 # do not overwrite the value of need_locks provided by the user
20350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20351 $as_echo_n "checking if we can lock with hard links... " >&6; }
20352 hard_links=yes
20353 $RM conftest*
20354 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20355 touch conftest.a
20356 ln conftest.a conftest.b 2>&5 || hard_links=no
20357 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20359 $as_echo "$hard_links" >&6; }
20360 if test "$hard_links" = no; then
20361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20362 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20363 need_locks=warn
20365 else
20366 need_locks=no
20371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20372 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20374 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20375 case $host_os in
20376 aix[4-9]*)
20377 # If we're using GNU nm, then we don't want the "-C" option.
20378 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20379 # Also, AIX nm treats weak defined symbols like other global defined
20380 # symbols, whereas GNU nm marks them as "W".
20381 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20382 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'
20383 else
20384 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20387 pw32*)
20388 export_symbols_cmds_CXX="$ltdll_cmds"
20390 cygwin* | mingw* | cegcc*)
20391 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'
20394 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20396 esac
20397 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20400 $as_echo "$ld_shlibs_CXX" >&6; }
20401 test "$ld_shlibs_CXX" = no && can_build_shared=no
20403 with_gnu_ld_CXX=$with_gnu_ld
20411 # Do we need to explicitly link libc?
20413 case "x$archive_cmds_need_lc_CXX" in
20414 x|xyes)
20415 # Assume -lc should be added
20416 archive_cmds_need_lc_CXX=yes
20418 if test "$enable_shared" = yes && test "$GCC" = yes; then
20419 case $archive_cmds_CXX in
20420 *'~'*)
20421 # FIXME: we may have to deal with multi-command sequences.
20423 '$CC '*)
20424 # Test whether the compiler implicitly links with -lc since on some
20425 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20426 # to ld, don't add -lc before -lgcc.
20427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20428 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20429 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20430 $as_echo_n "(cached) " >&6
20431 else
20432 $RM conftest*
20433 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20436 (eval $ac_compile) 2>&5
20437 ac_status=$?
20438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20439 test $ac_status = 0; } 2>conftest.err; then
20440 soname=conftest
20441 lib=conftest
20442 libobjs=conftest.$ac_objext
20443 deplibs=
20444 wl=$lt_prog_compiler_wl_CXX
20445 pic_flag=$lt_prog_compiler_pic_CXX
20446 compiler_flags=-v
20447 linker_flags=-v
20448 verstring=
20449 output_objdir=.
20450 libname=conftest
20451 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20452 allow_undefined_flag_CXX=
20453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20454 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20455 ac_status=$?
20456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20457 test $ac_status = 0; }
20458 then
20459 lt_cv_archive_cmds_need_lc_CXX=no
20460 else
20461 lt_cv_archive_cmds_need_lc_CXX=yes
20463 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20464 else
20465 cat conftest.err 1>&5
20467 $RM conftest*
20470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20471 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20472 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20474 esac
20477 esac
20542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20543 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20545 library_names_spec=
20546 libname_spec='lib$name'
20547 soname_spec=
20548 shrext_cmds=".so"
20549 postinstall_cmds=
20550 postuninstall_cmds=
20551 finish_cmds=
20552 finish_eval=
20553 shlibpath_var=
20554 shlibpath_overrides_runpath=unknown
20555 version_type=none
20556 dynamic_linker="$host_os ld.so"
20557 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20558 need_lib_prefix=unknown
20559 hardcode_into_libs=no
20561 # when you set need_version to no, make sure it does not cause -set_version
20562 # flags to be left without arguments
20563 need_version=unknown
20565 case $host_os in
20566 aix3*)
20567 version_type=linux
20568 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20569 shlibpath_var=LIBPATH
20571 # AIX 3 has no versioning support, so we append a major version to the name.
20572 soname_spec='${libname}${release}${shared_ext}$major'
20575 aix[4-9]*)
20576 version_type=linux
20577 need_lib_prefix=no
20578 need_version=no
20579 hardcode_into_libs=yes
20580 if test "$host_cpu" = ia64; then
20581 # AIX 5 supports IA64
20582 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20583 shlibpath_var=LD_LIBRARY_PATH
20584 else
20585 # With GCC up to 2.95.x, collect2 would create an import file
20586 # for dependence libraries. The import file would start with
20587 # the line `#! .'. This would cause the generated library to
20588 # depend on `.', always an invalid library. This was fixed in
20589 # development snapshots of GCC prior to 3.0.
20590 case $host_os in
20591 aix4 | aix4.[01] | aix4.[01].*)
20592 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20593 echo ' yes '
20594 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20596 else
20597 can_build_shared=no
20600 esac
20601 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20602 # soname into executable. Probably we can add versioning support to
20603 # collect2, so additional links can be useful in future.
20604 if test "$aix_use_runtimelinking" = yes; then
20605 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20606 # instead of lib<name>.a to let people know that these are not
20607 # typical AIX shared libraries.
20608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20609 else
20610 # We preserve .a as extension for shared libraries through AIX4.2
20611 # and later when we are not doing run time linking.
20612 library_names_spec='${libname}${release}.a $libname.a'
20613 soname_spec='${libname}${release}${shared_ext}$major'
20615 shlibpath_var=LIBPATH
20619 amigaos*)
20620 case $host_cpu in
20621 powerpc)
20622 # Since July 2007 AmigaOS4 officially supports .so libraries.
20623 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20626 m68k)
20627 library_names_spec='$libname.ixlibrary $libname.a'
20628 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20629 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'
20631 esac
20634 beos*)
20635 library_names_spec='${libname}${shared_ext}'
20636 dynamic_linker="$host_os ld.so"
20637 shlibpath_var=LIBRARY_PATH
20640 bsdi[45]*)
20641 version_type=linux
20642 need_version=no
20643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20644 soname_spec='${libname}${release}${shared_ext}$major'
20645 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20646 shlibpath_var=LD_LIBRARY_PATH
20647 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20648 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20649 # the default ld.so.conf also contains /usr/contrib/lib and
20650 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20651 # libtool to hard-code these into programs
20654 cygwin* | mingw* | pw32* | cegcc*)
20655 version_type=windows
20656 shrext_cmds=".dll"
20657 need_version=no
20658 need_lib_prefix=no
20660 case $GCC,$host_os in
20661 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20662 library_names_spec='$libname.dll.a'
20663 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20664 postinstall_cmds='base_file=`basename \${file}`~
20665 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20666 dldir=$destdir/`dirname \$dlpath`~
20667 test -d \$dldir || mkdir -p \$dldir~
20668 $install_prog $dir/$dlname \$dldir/$dlname~
20669 chmod a+x \$dldir/$dlname~
20670 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20671 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20673 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20674 dlpath=$dir/\$dldll~
20675 $RM \$dlpath'
20676 shlibpath_overrides_runpath=yes
20678 case $host_os in
20679 cygwin*)
20680 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20681 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20684 mingw* | cegcc*)
20685 # MinGW DLLs use traditional 'lib' prefix
20686 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20688 pw32*)
20689 # pw32 DLLs use 'pw' prefix rather than 'lib'
20690 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20692 esac
20696 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20698 esac
20699 dynamic_linker='Win32 ld.exe'
20700 # FIXME: first we should search . and the directory the executable is in
20701 shlibpath_var=PATH
20704 darwin* | rhapsody*)
20705 dynamic_linker="$host_os dyld"
20706 version_type=darwin
20707 need_lib_prefix=no
20708 need_version=no
20709 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20710 soname_spec='${libname}${release}${major}$shared_ext'
20711 shlibpath_overrides_runpath=yes
20712 shlibpath_var=DYLD_LIBRARY_PATH
20713 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20715 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20718 dgux*)
20719 version_type=linux
20720 need_lib_prefix=no
20721 need_version=no
20722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20723 soname_spec='${libname}${release}${shared_ext}$major'
20724 shlibpath_var=LD_LIBRARY_PATH
20727 freebsd* | dragonfly*)
20728 # DragonFly does not have aout. When/if they implement a new
20729 # versioning mechanism, adjust this.
20730 if test -x /usr/bin/objformat; then
20731 objformat=`/usr/bin/objformat`
20732 else
20733 case $host_os in
20734 freebsd[23].*) objformat=aout ;;
20735 *) objformat=elf ;;
20736 esac
20738 version_type=freebsd-$objformat
20739 case $version_type in
20740 freebsd-elf*)
20741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20742 need_version=no
20743 need_lib_prefix=no
20745 freebsd-*)
20746 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20747 need_version=yes
20749 esac
20750 shlibpath_var=LD_LIBRARY_PATH
20751 case $host_os in
20752 freebsd2.*)
20753 shlibpath_overrides_runpath=yes
20755 freebsd3.[01]* | freebsdelf3.[01]*)
20756 shlibpath_overrides_runpath=yes
20757 hardcode_into_libs=yes
20759 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20760 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20761 shlibpath_overrides_runpath=no
20762 hardcode_into_libs=yes
20764 *) # from 4.6 on, and DragonFly
20765 shlibpath_overrides_runpath=yes
20766 hardcode_into_libs=yes
20768 esac
20771 gnu*)
20772 version_type=linux
20773 need_lib_prefix=no
20774 need_version=no
20775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20776 soname_spec='${libname}${release}${shared_ext}$major'
20777 shlibpath_var=LD_LIBRARY_PATH
20778 hardcode_into_libs=yes
20781 haiku*)
20782 version_type=linux
20783 need_lib_prefix=no
20784 need_version=no
20785 dynamic_linker="$host_os runtime_loader"
20786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20787 soname_spec='${libname}${release}${shared_ext}$major'
20788 shlibpath_var=LIBRARY_PATH
20789 shlibpath_overrides_runpath=yes
20790 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20791 hardcode_into_libs=yes
20794 hpux9* | hpux10* | hpux11*)
20795 # Give a soname corresponding to the major version so that dld.sl refuses to
20796 # link against other versions.
20797 version_type=sunos
20798 need_lib_prefix=no
20799 need_version=no
20800 case $host_cpu in
20801 ia64*)
20802 shrext_cmds='.so'
20803 hardcode_into_libs=yes
20804 dynamic_linker="$host_os dld.so"
20805 shlibpath_var=LD_LIBRARY_PATH
20806 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20808 soname_spec='${libname}${release}${shared_ext}$major'
20809 if test "X$HPUX_IA64_MODE" = X32; then
20810 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20811 else
20812 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20814 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20816 hppa*64*)
20817 shrext_cmds='.sl'
20818 hardcode_into_libs=yes
20819 dynamic_linker="$host_os dld.sl"
20820 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20821 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20823 soname_spec='${libname}${release}${shared_ext}$major'
20824 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20825 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20828 shrext_cmds='.sl'
20829 dynamic_linker="$host_os dld.sl"
20830 shlibpath_var=SHLIB_PATH
20831 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20833 soname_spec='${libname}${release}${shared_ext}$major'
20835 esac
20836 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20837 postinstall_cmds='chmod 555 $lib'
20838 # or fails outright, so override atomically:
20839 install_override_mode=555
20842 interix[3-9]*)
20843 version_type=linux
20844 need_lib_prefix=no
20845 need_version=no
20846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20847 soname_spec='${libname}${release}${shared_ext}$major'
20848 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20849 shlibpath_var=LD_LIBRARY_PATH
20850 shlibpath_overrides_runpath=no
20851 hardcode_into_libs=yes
20854 irix5* | irix6* | nonstopux*)
20855 case $host_os in
20856 nonstopux*) version_type=nonstopux ;;
20858 if test "$lt_cv_prog_gnu_ld" = yes; then
20859 version_type=linux
20860 else
20861 version_type=irix
20862 fi ;;
20863 esac
20864 need_lib_prefix=no
20865 need_version=no
20866 soname_spec='${libname}${release}${shared_ext}$major'
20867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20868 case $host_os in
20869 irix5* | nonstopux*)
20870 libsuff= shlibsuff=
20873 case $LD in # libtool.m4 will add one of these switches to LD
20874 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20875 libsuff= shlibsuff= libmagic=32-bit;;
20876 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20877 libsuff=32 shlibsuff=N32 libmagic=N32;;
20878 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20879 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20880 *) libsuff= shlibsuff= libmagic=never-match;;
20881 esac
20883 esac
20884 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20885 shlibpath_overrides_runpath=no
20886 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20887 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20888 hardcode_into_libs=yes
20891 # No shared lib support for Linux oldld, aout, or coff.
20892 linux*oldld* | linux*aout* | linux*coff*)
20893 dynamic_linker=no
20896 # This must be Linux ELF.
20897 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20898 version_type=linux
20899 need_lib_prefix=no
20900 need_version=no
20901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20902 soname_spec='${libname}${release}${shared_ext}$major'
20903 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20904 shlibpath_var=LD_LIBRARY_PATH
20905 shlibpath_overrides_runpath=no
20907 # Some binutils ld are patched to set DT_RUNPATH
20908 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20909 $as_echo_n "(cached) " >&6
20910 else
20911 lt_cv_shlibpath_overrides_runpath=no
20912 save_LDFLAGS=$LDFLAGS
20913 save_libdir=$libdir
20914 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20915 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20917 /* end confdefs.h. */
20920 main ()
20924 return 0;
20926 _ACEOF
20927 if ac_fn_cxx_try_link "$LINENO"; then :
20928 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20929 lt_cv_shlibpath_overrides_runpath=yes
20932 rm -f core conftest.err conftest.$ac_objext \
20933 conftest$ac_exeext conftest.$ac_ext
20934 LDFLAGS=$save_LDFLAGS
20935 libdir=$save_libdir
20939 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20941 # This implies no fast_install, which is unacceptable.
20942 # Some rework will be needed to allow for fast_install
20943 # before this can be enabled.
20944 hardcode_into_libs=yes
20946 # Append ld.so.conf contents to the search path
20947 if test -f /etc/ld.so.conf; then
20948 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' ' '`
20949 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20952 # We used to test for /lib/ld.so.1 and disable shared libraries on
20953 # powerpc, because MkLinux only supported shared libraries with the
20954 # GNU dynamic linker. Since this was broken with cross compilers,
20955 # most powerpc-linux boxes support dynamic linking these days and
20956 # people can always --disable-shared, the test was removed, and we
20957 # assume the GNU/Linux dynamic linker is in use.
20958 dynamic_linker='GNU/Linux ld.so'
20961 netbsd*)
20962 version_type=sunos
20963 need_lib_prefix=no
20964 need_version=no
20965 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20968 dynamic_linker='NetBSD (a.out) ld.so'
20969 else
20970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20971 soname_spec='${libname}${release}${shared_ext}$major'
20972 dynamic_linker='NetBSD ld.elf_so'
20974 shlibpath_var=LD_LIBRARY_PATH
20975 shlibpath_overrides_runpath=yes
20976 hardcode_into_libs=yes
20979 newsos6)
20980 version_type=linux
20981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20982 shlibpath_var=LD_LIBRARY_PATH
20983 shlibpath_overrides_runpath=yes
20986 *nto* | *qnx*)
20987 version_type=qnx
20988 need_lib_prefix=no
20989 need_version=no
20990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20991 soname_spec='${libname}${release}${shared_ext}$major'
20992 shlibpath_var=LD_LIBRARY_PATH
20993 shlibpath_overrides_runpath=no
20994 hardcode_into_libs=yes
20995 dynamic_linker='ldqnx.so'
20998 openbsd*)
20999 version_type=sunos
21000 sys_lib_dlsearch_path_spec="/usr/lib"
21001 need_lib_prefix=no
21002 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21003 case $host_os in
21004 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21005 *) need_version=no ;;
21006 esac
21007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21009 shlibpath_var=LD_LIBRARY_PATH
21010 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21011 case $host_os in
21012 openbsd2.[89] | openbsd2.[89].*)
21013 shlibpath_overrides_runpath=no
21016 shlibpath_overrides_runpath=yes
21018 esac
21019 else
21020 shlibpath_overrides_runpath=yes
21024 os2*)
21025 libname_spec='$name'
21026 shrext_cmds=".dll"
21027 need_lib_prefix=no
21028 library_names_spec='$libname${shared_ext} $libname.a'
21029 dynamic_linker='OS/2 ld.exe'
21030 shlibpath_var=LIBPATH
21033 osf3* | osf4* | osf5*)
21034 version_type=osf
21035 need_lib_prefix=no
21036 need_version=no
21037 soname_spec='${libname}${release}${shared_ext}$major'
21038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21039 shlibpath_var=LD_LIBRARY_PATH
21040 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21041 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21044 rdos*)
21045 dynamic_linker=no
21048 solaris*)
21049 version_type=linux
21050 need_lib_prefix=no
21051 need_version=no
21052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21053 soname_spec='${libname}${release}${shared_ext}$major'
21054 shlibpath_var=LD_LIBRARY_PATH
21055 shlibpath_overrides_runpath=yes
21056 hardcode_into_libs=yes
21057 # ldd complains unless libraries are executable
21058 postinstall_cmds='chmod +x $lib'
21061 sunos4*)
21062 version_type=sunos
21063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21064 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21065 shlibpath_var=LD_LIBRARY_PATH
21066 shlibpath_overrides_runpath=yes
21067 if test "$with_gnu_ld" = yes; then
21068 need_lib_prefix=no
21070 need_version=yes
21073 sysv4 | sysv4.3*)
21074 version_type=linux
21075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21076 soname_spec='${libname}${release}${shared_ext}$major'
21077 shlibpath_var=LD_LIBRARY_PATH
21078 case $host_vendor in
21079 sni)
21080 shlibpath_overrides_runpath=no
21081 need_lib_prefix=no
21082 runpath_var=LD_RUN_PATH
21084 siemens)
21085 need_lib_prefix=no
21087 motorola)
21088 need_lib_prefix=no
21089 need_version=no
21090 shlibpath_overrides_runpath=no
21091 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21093 esac
21096 sysv4*MP*)
21097 if test -d /usr/nec ;then
21098 version_type=linux
21099 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21100 soname_spec='$libname${shared_ext}.$major'
21101 shlibpath_var=LD_LIBRARY_PATH
21105 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21106 version_type=freebsd-elf
21107 need_lib_prefix=no
21108 need_version=no
21109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21110 soname_spec='${libname}${release}${shared_ext}$major'
21111 shlibpath_var=LD_LIBRARY_PATH
21112 shlibpath_overrides_runpath=yes
21113 hardcode_into_libs=yes
21114 if test "$with_gnu_ld" = yes; then
21115 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21116 else
21117 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21118 case $host_os in
21119 sco3.2v5*)
21120 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21122 esac
21124 sys_lib_dlsearch_path_spec='/usr/lib'
21127 tpf*)
21128 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21129 version_type=linux
21130 need_lib_prefix=no
21131 need_version=no
21132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21133 shlibpath_var=LD_LIBRARY_PATH
21134 shlibpath_overrides_runpath=no
21135 hardcode_into_libs=yes
21138 uts4*)
21139 version_type=linux
21140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21141 soname_spec='${libname}${release}${shared_ext}$major'
21142 shlibpath_var=LD_LIBRARY_PATH
21146 dynamic_linker=no
21148 esac
21149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21150 $as_echo "$dynamic_linker" >&6; }
21151 test "$dynamic_linker" = no && can_build_shared=no
21153 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21154 if test "$GCC" = yes; then
21155 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21158 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21159 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21161 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21162 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21203 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21204 hardcode_action_CXX=
21205 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21206 test -n "$runpath_var_CXX" ||
21207 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21209 # We can hardcode non-existent directories.
21210 if test "$hardcode_direct_CXX" != no &&
21211 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21212 # have to relink, otherwise we might link with an installed library
21213 # when we should be linking with a yet-to-be-installed one
21214 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21215 test "$hardcode_minus_L_CXX" != no; then
21216 # Linking always hardcodes the temporary library directory.
21217 hardcode_action_CXX=relink
21218 else
21219 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21220 hardcode_action_CXX=immediate
21222 else
21223 # We cannot hardcode anything, or else we can only hardcode existing
21224 # directories.
21225 hardcode_action_CXX=unsupported
21227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21228 $as_echo "$hardcode_action_CXX" >&6; }
21230 if test "$hardcode_action_CXX" = relink ||
21231 test "$inherit_rpath_CXX" = yes; then
21232 # Fast installation is not supported
21233 enable_fast_install=no
21234 elif test "$shlibpath_overrides_runpath" = yes ||
21235 test "$enable_shared" = no; then
21236 # Fast installation is not necessary
21237 enable_fast_install=needless
21246 fi # test -n "$compiler"
21248 CC=$lt_save_CC
21249 LDCXX=$LD
21250 LD=$lt_save_LD
21251 GCC=$lt_save_GCC
21252 with_gnu_ld=$lt_save_with_gnu_ld
21253 lt_cv_path_LDCXX=$lt_cv_path_LD
21254 lt_cv_path_LD=$lt_save_path_LD
21255 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21256 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21257 fi # test "$_lt_caught_CXX_error" != yes
21259 ac_ext=c
21260 ac_cpp='$CPP $CPPFLAGS'
21261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21280 # Only expand once:
21286 # Identify the assembler which will work hand-in-glove with the newly
21287 # built GCC, so that we can examine its features. This is the assembler
21288 # which will be driven by the driver program.
21290 # If build != host, and we aren't building gas in-tree, we identify a
21291 # build->target assembler and hope that it will have the same features
21292 # as the host->target assembler we'll be using.
21293 gcc_cv_gas_major_version=
21294 gcc_cv_gas_minor_version=
21295 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21297 if test "${gcc_cv_as+set}" = set; then :
21299 else
21301 if test -x "$DEFAULT_ASSEMBLER"; then
21302 gcc_cv_as="$DEFAULT_ASSEMBLER"
21303 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21304 && test -f ../gas/Makefile \
21305 && test x$build = x$host; then
21306 gcc_cv_as=../gas/as-new$build_exeext
21307 elif test -x as$build_exeext; then
21308 # Build using assembler in the current directory.
21309 gcc_cv_as=./as$build_exeext
21310 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21311 gcc_cv_as="$AS_FOR_TARGET"
21312 else
21313 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21314 set dummy $AS_FOR_TARGET; ac_word=$2
21315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21316 $as_echo_n "checking for $ac_word... " >&6; }
21317 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21318 $as_echo_n "(cached) " >&6
21319 else
21320 case $gcc_cv_as in
21321 [\\/]* | ?:[\\/]*)
21322 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21326 for as_dir in $PATH
21328 IFS=$as_save_IFS
21329 test -z "$as_dir" && as_dir=.
21330 for ac_exec_ext in '' $ac_executable_extensions; do
21331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21332 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21334 break 2
21336 done
21337 done
21338 IFS=$as_save_IFS
21341 esac
21343 gcc_cv_as=$ac_cv_path_gcc_cv_as
21344 if test -n "$gcc_cv_as"; then
21345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21346 $as_echo "$gcc_cv_as" >&6; }
21347 else
21348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21349 $as_echo "no" >&6; }
21356 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21358 case "$ORIGINAL_AS_FOR_TARGET" in
21359 ./as | ./as$build_exeext) ;;
21360 *) ac_config_files="$ac_config_files as:exec-tool.in"
21362 esac
21364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21365 $as_echo_n "checking what assembler to use... " >&6; }
21366 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21367 # Single tree build which includes gas. We want to prefer it
21368 # over whatever linker top-level may have detected, since
21369 # we'll use what we're building after installation anyway.
21370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21371 $as_echo "newly built gas" >&6; }
21372 in_tree_gas=yes
21373 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21374 for f in $gcc_cv_as_bfd_srcdir/configure \
21375 $gcc_cv_as_gas_srcdir/configure \
21376 $gcc_cv_as_gas_srcdir/configure.in \
21377 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21378 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21379 if test x$gcc_cv_gas_version != x; then
21380 break
21382 done
21383 case $gcc_cv_gas_version in
21384 VERSION=[0-9]*) ;;
21385 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21386 esac
21387 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21388 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21389 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21390 case $gcc_cv_gas_patch_version in
21391 "") gcc_cv_gas_patch_version="0" ;;
21392 esac
21393 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21394 + $gcc_cv_gas_minor_version \) \* 1000 \
21395 + $gcc_cv_gas_patch_version`
21397 in_tree_gas_is_elf=no
21398 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21399 || (grep 'obj_format = multi' ../gas/Makefile \
21400 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21401 then
21402 in_tree_gas_is_elf=yes
21404 else
21405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21406 $as_echo "$gcc_cv_as" >&6; }
21407 in_tree_gas=no
21410 default_ld=
21411 # Check whether --enable-ld was given.
21412 if test "${enable_ld+set}" = set; then :
21413 enableval=$enable_ld; case "${enableval}" in
21415 default_ld=ld.gold
21417 esac
21421 # Check whether --enable-gold was given.
21422 if test "${enable_gold+set}" = set; then :
21423 enableval=$enable_gold; case "${enableval}" in
21424 default)
21425 install_gold_as_default=yes
21427 yes)
21428 if test x${default_ld} != x; then
21429 install_gold_as_default=yes
21435 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21437 esac
21438 else
21439 install_gold_as_default=no
21443 # Identify the linker which will work hand-in-glove with the newly
21444 # built GCC, so that we can examine its features. This is the linker
21445 # which will be driven by the driver program.
21447 # If build != host, and we aren't building gas in-tree, we identify a
21448 # build->target linker and hope that it will have the same features
21449 # as the host->target linker we'll be using.
21450 gcc_cv_gld_major_version=
21451 gcc_cv_gld_minor_version=
21452 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21453 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21454 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21456 if test "${gcc_cv_ld+set}" = set; then :
21458 else
21460 if test -x "$DEFAULT_LINKER"; then
21461 gcc_cv_ld="$DEFAULT_LINKER"
21462 elif test $install_gold_as_default = yes \
21463 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21464 && test -f ../gold/Makefile \
21465 && test x$build = x$host; then
21466 gcc_cv_ld=../gold/ld-new$build_exeext
21467 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21468 && test -f ../ld/Makefile \
21469 && test x$build = x$host; then
21470 gcc_cv_ld=../ld/ld-new$build_exeext
21471 elif test -x collect-ld$build_exeext; then
21472 # Build using linker in the current directory.
21473 gcc_cv_ld=./collect-ld$build_exeext
21474 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21475 gcc_cv_ld="$LD_FOR_TARGET"
21476 else
21477 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21478 set dummy $LD_FOR_TARGET; ac_word=$2
21479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21480 $as_echo_n "checking for $ac_word... " >&6; }
21481 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21482 $as_echo_n "(cached) " >&6
21483 else
21484 case $gcc_cv_ld in
21485 [\\/]* | ?:[\\/]*)
21486 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21490 for as_dir in $PATH
21492 IFS=$as_save_IFS
21493 test -z "$as_dir" && as_dir=.
21494 for ac_exec_ext in '' $ac_executable_extensions; do
21495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21496 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21498 break 2
21500 done
21501 done
21502 IFS=$as_save_IFS
21505 esac
21507 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21508 if test -n "$gcc_cv_ld"; then
21509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21510 $as_echo "$gcc_cv_ld" >&6; }
21511 else
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21513 $as_echo "no" >&6; }
21520 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21521 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21522 # if the PLUGIN_LD is set ld-new, just have it as ld
21523 # as that is the installed named.
21524 if test x$PLUGIN_LD_SUFFIX = xld-new \
21525 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21526 PLUGIN_LD_SUFFIX=ld
21529 # Check whether --with-plugin-ld was given.
21530 if test "${with_plugin_ld+set}" = set; then :
21531 withval=$with_plugin_ld; if test x"$withval" != x; then
21532 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21533 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21539 cat >>confdefs.h <<_ACEOF
21540 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21541 _ACEOF
21544 # Check to see if we are using gold instead of ld
21545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21546 $as_echo_n "checking whether we are using gold... " >&6; }
21547 ld_is_gold=no
21548 if test x$gcc_cv_ld != x; then
21549 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21550 | grep "GNU gold" > /dev/null; then
21551 ld_is_gold=yes
21554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21555 $as_echo "$ld_is_gold" >&6; }
21557 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21559 case "$ORIGINAL_LD_FOR_TARGET" in
21560 ./collect-ld | ./collect-ld$build_exeext) ;;
21561 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21563 esac
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21566 $as_echo_n "checking what linker to use... " >&6; }
21567 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21568 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21569 # Single tree build which includes ld. We want to prefer it
21570 # over whatever linker top-level may have detected, since
21571 # we'll use what we're building after installation anyway.
21572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21573 $as_echo "newly built ld" >&6; }
21574 in_tree_ld=yes
21575 in_tree_ld_is_elf=no
21576 if (grep 'EMUL = .*elf' ../ld/Makefile \
21577 || grep 'EMUL = .*linux' ../ld/Makefile \
21578 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21579 in_tree_ld_is_elf=yes
21580 elif test "$ld_is_gold" = yes; then
21581 in_tree_ld_is_elf=yes
21583 for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
21585 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21586 if test x$gcc_cv_gld_version != x; then
21587 break
21589 done
21590 case $gcc_cv_gld_version in
21591 VERSION=[0-9]*) ;;
21592 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21593 esac
21594 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21595 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21596 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
21597 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
21598 else
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21600 $as_echo "$gcc_cv_ld" >&6; }
21601 in_tree_ld=no
21602 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21603 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
21604 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
21610 # Figure out what nm we will be using.
21611 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21612 if test "${gcc_cv_nm+set}" = set; then :
21614 else
21616 if test -f $gcc_cv_binutils_srcdir/configure.in \
21617 && test -f ../binutils/Makefile \
21618 && test x$build = x$host; then
21619 gcc_cv_nm=../binutils/nm-new$build_exeext
21620 elif test -x nm$build_exeext; then
21621 gcc_cv_nm=./nm$build_exeext
21622 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21623 gcc_cv_nm="$NM_FOR_TARGET"
21624 else
21625 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21626 set dummy $NM_FOR_TARGET; ac_word=$2
21627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21628 $as_echo_n "checking for $ac_word... " >&6; }
21629 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21630 $as_echo_n "(cached) " >&6
21631 else
21632 case $gcc_cv_nm in
21633 [\\/]* | ?:[\\/]*)
21634 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21638 for as_dir in $PATH
21640 IFS=$as_save_IFS
21641 test -z "$as_dir" && as_dir=.
21642 for ac_exec_ext in '' $ac_executable_extensions; do
21643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21644 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21646 break 2
21648 done
21649 done
21650 IFS=$as_save_IFS
21653 esac
21655 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21656 if test -n "$gcc_cv_nm"; then
21657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21658 $as_echo "$gcc_cv_nm" >&6; }
21659 else
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21661 $as_echo "no" >&6; }
21668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21669 $as_echo_n "checking what nm to use... " >&6; }
21670 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21671 # Single tree build which includes binutils.
21672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21673 $as_echo "newly built nm" >&6; }
21674 in_tree_nm=yes
21675 else
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21677 $as_echo "$gcc_cv_nm" >&6; }
21678 in_tree_nm=no
21681 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21683 case "$ORIGINAL_NM_FOR_TARGET" in
21684 ./nm | ./nm$build_exeext) ;;
21685 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21687 esac
21690 # Figure out what objdump we will be using.
21691 if test "${gcc_cv_objdump+set}" = set; then :
21693 else
21695 if test -f $gcc_cv_binutils_srcdir/configure.in \
21696 && test -f ../binutils/Makefile \
21697 && test x$build = x$host; then
21698 # Single tree build which includes binutils.
21699 gcc_cv_objdump=../binutils/objdump$build_exeext
21700 elif test -x objdump$build_exeext; then
21701 gcc_cv_objdump=./objdump$build_exeext
21702 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21703 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21704 else
21705 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21706 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21708 $as_echo_n "checking for $ac_word... " >&6; }
21709 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21710 $as_echo_n "(cached) " >&6
21711 else
21712 case $gcc_cv_objdump in
21713 [\\/]* | ?:[\\/]*)
21714 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21718 for as_dir in $PATH
21720 IFS=$as_save_IFS
21721 test -z "$as_dir" && as_dir=.
21722 for ac_exec_ext in '' $ac_executable_extensions; do
21723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21724 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21726 break 2
21728 done
21729 done
21730 IFS=$as_save_IFS
21733 esac
21735 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21736 if test -n "$gcc_cv_objdump"; then
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21738 $as_echo "$gcc_cv_objdump" >&6; }
21739 else
21740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21741 $as_echo "no" >&6; }
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21749 $as_echo_n "checking what objdump to use... " >&6; }
21750 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21751 # Single tree build which includes binutils.
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21753 $as_echo "newly built objdump" >&6; }
21754 elif test x$gcc_cv_objdump = x; then
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21756 $as_echo "not found" >&6; }
21757 else
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21759 $as_echo "$gcc_cv_objdump" >&6; }
21762 # Figure out what readelf we will be using.
21763 if test "${gcc_cv_readelf+set}" = set; then :
21765 else
21767 if test -f $gcc_cv_binutils_srcdir/configure.in \
21768 && test -f ../binutils/Makefile \
21769 && test x$build = x$host; then
21770 # Single tree build which includes binutils.
21771 gcc_cv_readelf=../binutils/readelf$build_exeext
21772 elif test -x readelf$build_exeext; then
21773 gcc_cv_readelf=./readelf$build_exeext
21774 else
21775 # Extract the first word of "readelf", so it can be a program name with args.
21776 set dummy readelf; ac_word=$2
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21778 $as_echo_n "checking for $ac_word... " >&6; }
21779 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21780 $as_echo_n "(cached) " >&6
21781 else
21782 case $gcc_cv_readelf in
21783 [\\/]* | ?:[\\/]*)
21784 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21788 for as_dir in $PATH
21790 IFS=$as_save_IFS
21791 test -z "$as_dir" && as_dir=.
21792 for ac_exec_ext in '' $ac_executable_extensions; do
21793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21794 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21796 break 2
21798 done
21799 done
21800 IFS=$as_save_IFS
21803 esac
21805 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21806 if test -n "$gcc_cv_readelf"; then
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21808 $as_echo "$gcc_cv_readelf" >&6; }
21809 else
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21811 $as_echo "no" >&6; }
21818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21819 $as_echo_n "checking what readelf to use... " >&6; }
21820 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21821 # Single tree build which includes binutils.
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21823 $as_echo "newly built readelf" >&6; }
21824 elif test x$gcc_cv_readelf = x; then
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21826 $as_echo "not found" >&6; }
21827 else
21828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21829 $as_echo "$gcc_cv_readelf" >&6; }
21832 # Figure out what assembler alignment features are present.
21833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21834 $as_echo_n "checking assembler flags... " >&6; }
21835 if test "${gcc_cv_as_flags+set}" = set; then :
21836 $as_echo_n "(cached) " >&6
21837 else
21838 case "$target" in
21839 i[34567]86-*-linux*)
21840 gcc_cv_as_flags=--32
21842 x86_64-*-linux-gnux32)
21843 gcc_cv_as_flags=--x32
21845 x86_64-*-linux*)
21846 gcc_cv_as_flags=--64
21848 powerpc*-*-darwin*)
21849 gcc_cv_as_flags="-arch ppc"
21852 gcc_cv_as_flags=" "
21854 esac
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21857 $as_echo "$gcc_cv_as_flags" >&6; }
21859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21860 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21861 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21862 $as_echo_n "(cached) " >&6
21863 else
21864 gcc_cv_as_balign_and_p2align=no
21865 if test $in_tree_gas = yes; then
21866 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21867 then gcc_cv_as_balign_and_p2align=yes
21869 elif test x$gcc_cv_as != x; then
21870 $as_echo '.balign 4
21871 .p2align 2' > conftest.s
21872 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21874 (eval $ac_try) 2>&5
21875 ac_status=$?
21876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21877 test $ac_status = 0; }; }
21878 then
21879 gcc_cv_as_balign_and_p2align=yes
21880 else
21881 echo "configure: failed program was" >&5
21882 cat conftest.s >&5
21884 rm -f conftest.o conftest.s
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21888 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21889 if test $gcc_cv_as_balign_and_p2align = yes; then
21891 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21896 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21897 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21898 $as_echo_n "(cached) " >&6
21899 else
21900 gcc_cv_as_max_skip_p2align=no
21901 if test $in_tree_gas = yes; then
21902 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21903 then gcc_cv_as_max_skip_p2align=yes
21905 elif test x$gcc_cv_as != x; then
21906 $as_echo '.p2align 4,,7' > conftest.s
21907 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21909 (eval $ac_try) 2>&5
21910 ac_status=$?
21911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21912 test $ac_status = 0; }; }
21913 then
21914 gcc_cv_as_max_skip_p2align=yes
21915 else
21916 echo "configure: failed program was" >&5
21917 cat conftest.s >&5
21919 rm -f conftest.o conftest.s
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21923 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21924 if test $gcc_cv_as_max_skip_p2align = yes; then
21926 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21931 $as_echo_n "checking assembler for .literal16... " >&6; }
21932 if test "${gcc_cv_as_literal16+set}" = set; then :
21933 $as_echo_n "(cached) " >&6
21934 else
21935 gcc_cv_as_literal16=no
21936 if test $in_tree_gas = yes; then
21937 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21938 then gcc_cv_as_literal16=yes
21940 elif test x$gcc_cv_as != x; then
21941 $as_echo '.literal16' > conftest.s
21942 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21944 (eval $ac_try) 2>&5
21945 ac_status=$?
21946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21947 test $ac_status = 0; }; }
21948 then
21949 gcc_cv_as_literal16=yes
21950 else
21951 echo "configure: failed program was" >&5
21952 cat conftest.s >&5
21954 rm -f conftest.o conftest.s
21957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21958 $as_echo "$gcc_cv_as_literal16" >&6; }
21959 if test $gcc_cv_as_literal16 = yes; then
21961 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21966 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21967 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21968 $as_echo_n "(cached) " >&6
21969 else
21970 gcc_cv_as_subsection_m1=no
21971 if test $in_tree_gas = yes; then
21972 if test $in_tree_gas_is_elf = yes \
21973 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21974 then gcc_cv_as_subsection_m1=yes
21976 elif test x$gcc_cv_as != x; then
21977 $as_echo 'conftest_label1: .word 0
21978 .subsection -1
21979 conftest_label2: .word 0
21980 .previous' > conftest.s
21981 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21983 (eval $ac_try) 2>&5
21984 ac_status=$?
21985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21986 test $ac_status = 0; }; }
21987 then
21988 if test x$gcc_cv_nm != x; then
21989 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21990 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21991 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21992 then :
21993 else gcc_cv_as_subsection_m1=yes
21995 rm -f conftest.nm1 conftest.nm2
21997 else
21998 echo "configure: failed program was" >&5
21999 cat conftest.s >&5
22001 rm -f conftest.o conftest.s
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22005 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22006 if test $gcc_cv_as_subsection_m1 = yes; then
22008 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22013 $as_echo_n "checking assembler for .weak... " >&6; }
22014 if test "${gcc_cv_as_weak+set}" = set; then :
22015 $as_echo_n "(cached) " >&6
22016 else
22017 gcc_cv_as_weak=no
22018 if test $in_tree_gas = yes; then
22019 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22020 then gcc_cv_as_weak=yes
22022 elif test x$gcc_cv_as != x; then
22023 $as_echo ' .weak foobar' > conftest.s
22024 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22026 (eval $ac_try) 2>&5
22027 ac_status=$?
22028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22029 test $ac_status = 0; }; }
22030 then
22031 gcc_cv_as_weak=yes
22032 else
22033 echo "configure: failed program was" >&5
22034 cat conftest.s >&5
22036 rm -f conftest.o conftest.s
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22040 $as_echo "$gcc_cv_as_weak" >&6; }
22041 if test $gcc_cv_as_weak = yes; then
22043 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22048 $as_echo_n "checking assembler for .weakref... " >&6; }
22049 if test "${gcc_cv_as_weakref+set}" = set; then :
22050 $as_echo_n "(cached) " >&6
22051 else
22052 gcc_cv_as_weakref=no
22053 if test $in_tree_gas = yes; then
22054 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22055 then gcc_cv_as_weakref=yes
22057 elif test x$gcc_cv_as != x; then
22058 $as_echo ' .weakref foobar, barfnot' > conftest.s
22059 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22061 (eval $ac_try) 2>&5
22062 ac_status=$?
22063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22064 test $ac_status = 0; }; }
22065 then
22066 gcc_cv_as_weakref=yes
22067 else
22068 echo "configure: failed program was" >&5
22069 cat conftest.s >&5
22071 rm -f conftest.o conftest.s
22074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22075 $as_echo "$gcc_cv_as_weakref" >&6; }
22076 if test $gcc_cv_as_weakref = yes; then
22078 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22083 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22084 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22085 $as_echo_n "(cached) " >&6
22086 else
22087 gcc_cv_as_nsubspa_comdat=no
22088 if test $in_tree_gas = yes; then
22089 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22090 then gcc_cv_as_nsubspa_comdat=yes
22092 elif test x$gcc_cv_as != x; then
22093 $as_echo ' .SPACE $TEXT$
22094 .NSUBSPA $CODE$,COMDAT' > conftest.s
22095 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22097 (eval $ac_try) 2>&5
22098 ac_status=$?
22099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22100 test $ac_status = 0; }; }
22101 then
22102 gcc_cv_as_nsubspa_comdat=yes
22103 else
22104 echo "configure: failed program was" >&5
22105 cat conftest.s >&5
22107 rm -f conftest.o conftest.s
22110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22111 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22112 if test $gcc_cv_as_nsubspa_comdat = yes; then
22114 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22118 # .hidden needs to be supported in both the assembler and the linker,
22119 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22120 # This is irritatingly difficult to feature test for; we have to check the
22121 # date string after the version number. If we've got an in-tree
22122 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22123 # to be safe.
22124 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22126 $as_echo_n "checking assembler for .hidden... " >&6; }
22127 if test "${gcc_cv_as_hidden+set}" = set; then :
22128 $as_echo_n "(cached) " >&6
22129 else
22130 gcc_cv_as_hidden=no
22131 if test $in_tree_gas = yes; then
22132 if test $in_tree_gas_is_elf = yes \
22133 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22134 then gcc_cv_as_hidden=yes
22136 elif test x$gcc_cv_as != x; then
22137 $as_echo ' .hidden foobar
22138 foobar:' > conftest.s
22139 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22141 (eval $ac_try) 2>&5
22142 ac_status=$?
22143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22144 test $ac_status = 0; }; }
22145 then
22147 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22148 # STV_HIDDEN, so disable .hidden support if so.
22149 case "${target}" in
22150 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22151 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22152 cat > conftest.s <<EOF
22153 .globl hidden
22154 .hidden hidden
22155 hidden:
22156 .globl default
22157 .set default,hidden
22159 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22160 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22161 grep '\.hidden default' > /dev/null; then
22162 gcc_cv_as_hidden=no
22163 else
22164 gcc_cv_as_hidden=yes
22166 else
22167 # Assume bug is present if objdump is missing.
22168 gcc_cv_as_hidden=no
22172 gcc_cv_as_hidden=yes
22174 esac
22175 else
22176 echo "configure: failed program was" >&5
22177 cat conftest.s >&5
22179 rm -f conftest.o conftest.s
22182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22183 $as_echo "$gcc_cv_as_hidden" >&6; }
22185 case "${target}" in
22186 *-*-darwin*)
22187 # Darwin as has some visibility support, though with a different syntax.
22188 gcc_cv_as_hidden=yes
22190 esac
22192 # gnu_indirect_function type is an extension proposed at
22193 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22194 # selection of function implementation
22195 # Check whether --enable-gnu-indirect-function was given.
22196 if test "${enable_gnu_indirect_function+set}" = set; then :
22197 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22198 yes | no) ;;
22199 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22200 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22201 esac
22202 else
22203 enable_gnu_indirect_function="$default_gnu_indirect_function"
22207 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22209 cat >>confdefs.h <<_ACEOF
22210 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22211 _ACEOF
22215 if test $in_tree_ld != yes ; then
22216 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22217 if echo "$ld_ver" | grep GNU > /dev/null; then
22218 if test x"$ld_is_gold" = xyes; then
22219 # GNU gold --version looks like this:
22221 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22223 # We extract the binutils version which is more familiar and specific
22224 # than the gold version.
22225 ld_vers=`echo $ld_ver | sed -n \
22226 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22227 else
22228 # GNU ld --version looks like this:
22230 # GNU ld (GNU Binutils) 2.21.51.20110225
22231 ld_vers=`echo $ld_ver | sed -n \
22232 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22234 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'`
22235 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22236 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22237 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22238 else
22239 case "${target}" in
22240 *-*-solaris2*)
22241 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22242 # format.
22244 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22245 # /usr/ccs/bin/ld has been configured.
22246 ld_ver=`$gcc_cv_ld -V 2>&1`
22247 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22248 ld_vers=`echo $ld_ver | sed -n \
22249 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22250 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22251 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22254 esac
22258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22259 $as_echo_n "checking linker for .hidden support... " >&6; }
22260 if test "${gcc_cv_ld_hidden+set}" = set; then :
22261 $as_echo_n "(cached) " >&6
22262 else
22263 if test $in_tree_ld = yes ; then
22264 gcc_cv_ld_hidden=no
22265 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 \
22266 && test $in_tree_ld_is_elf = yes; then
22267 gcc_cv_ld_hidden=yes
22269 else
22270 gcc_cv_ld_hidden=yes
22271 if test x"$ld_is_gold" = xyes; then
22273 elif echo "$ld_ver" | grep GNU > /dev/null; then
22274 case "${target}" in
22275 mmix-knuth-mmixware)
22276 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22277 gcc_cv_ld_hidden=no
22279 esac
22280 if test 0"$ld_date" -lt 20020404; then
22281 if test -n "$ld_date"; then
22282 # If there was date string, but was earlier than 2002-04-04, fail
22283 gcc_cv_ld_hidden=no
22284 elif test -z "$ld_vers"; then
22285 # If there was no date string nor ld version number, something is wrong
22286 gcc_cv_ld_hidden=no
22287 else
22288 test -z "$ld_vers_patch" && ld_vers_patch=0
22289 if test "$ld_vers_major" -lt 2; then
22290 gcc_cv_ld_hidden=no
22291 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22292 gcc_cv_ld_hidden="no"
22293 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22294 gcc_cv_ld_hidden=no
22298 else
22299 case "${target}" in
22300 *-*-darwin*)
22301 # Darwin ld has some visibility support.
22302 gcc_cv_ld_hidden=yes
22304 hppa64*-*-hpux* | ia64*-*-hpux*)
22305 gcc_cv_ld_hidden=yes
22307 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22308 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22309 # .symbolic was only added in Solaris 9 12/02.
22310 gcc_cv_ld_hidden=yes
22313 gcc_cv_ld_hidden=no
22315 esac
22319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22320 $as_echo "$gcc_cv_ld_hidden" >&6; }
22321 libgcc_visibility=no
22324 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22325 libgcc_visibility=yes
22327 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22332 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22333 gcc_cv_ld_ro_rw_mix=unknown
22334 if test $in_tree_ld = yes ; then
22335 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 \
22336 && test $in_tree_ld_is_elf = yes; then
22337 gcc_cv_ld_ro_rw_mix=read-write
22339 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22340 echo '.section myfoosect, "a"' > conftest1.s
22341 echo '.section myfoosect, "aw"' > conftest2.s
22342 echo '.byte 1' >> conftest2.s
22343 echo '.section myfoosect, "a"' > conftest3.s
22344 echo '.byte 0' >> conftest3.s
22345 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22346 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22347 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22348 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22349 conftest2.o conftest3.o > /dev/null 2>&1; then
22350 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22351 | sed -e '/myfoosect/!d' -e N`
22352 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22353 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22354 gcc_cv_ld_ro_rw_mix=read-only
22355 else
22356 gcc_cv_ld_ro_rw_mix=read-write
22360 rm -f conftest.* conftest[123].*
22362 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22364 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22368 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22370 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22371 case "${target}" in
22372 *-*-solaris2*)
22374 # Solaris 2 ld -V output looks like this for a regular version:
22376 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22378 # but test versions add stuff at the end:
22380 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22382 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22383 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22384 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22385 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22386 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22387 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22390 esac
22393 # Check whether --enable-initfini-array was given.
22394 if test "${enable_initfini_array+set}" = set; then :
22395 enableval=$enable_initfini_array;
22396 else
22398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22399 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22400 if test "${gcc_cv_initfini_array+set}" = set; then :
22401 $as_echo_n "(cached) " >&6
22402 else
22403 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22404 case "${target}" in
22405 ia64-*)
22406 if test "$cross_compiling" = yes; then :
22407 gcc_cv_initfini_array=no
22408 else
22409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22410 /* end confdefs.h. */
22412 #ifndef __ELF__
22413 #error Not an ELF OS
22414 #endif
22415 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22416 if it can be used. */
22417 static int x = -1;
22418 int main (void) { return x; }
22419 int foo (void) { x = 0; }
22420 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22422 _ACEOF
22423 if ac_fn_c_try_run "$LINENO"; then :
22424 gcc_cv_initfini_array=yes
22425 else
22426 gcc_cv_initfini_array=no
22428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22429 conftest.$ac_objext conftest.beam conftest.$ac_ext
22433 gcc_cv_initfini_array=no
22434 if test $in_tree_ld = yes ; then
22435 if test "$gcc_cv_gld_major_version" -eq 2 \
22436 -a "$gcc_cv_gld_minor_version" -ge 22 \
22437 -o "$gcc_cv_gld_major_version" -gt 2 \
22438 && test $in_tree_ld_is_elf = yes; then
22439 gcc_cv_initfini_array=yes
22441 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22442 cat > conftest.s <<\EOF
22443 .section .dtors,"a",%progbits
22444 .balign 4
22445 .byte 'A', 'A', 'A', 'A'
22446 .section .ctors,"a",%progbits
22447 .balign 4
22448 .byte 'B', 'B', 'B', 'B'
22449 .section .fini_array.65530,"a",%progbits
22450 .balign 4
22451 .byte 'C', 'C', 'C', 'C'
22452 .section .init_array.65530,"a",%progbits
22453 .balign 4
22454 .byte 'D', 'D', 'D', 'D'
22455 .section .dtors.64528,"a",%progbits
22456 .balign 4
22457 .byte 'E', 'E', 'E', 'E'
22458 .section .ctors.64528,"a",%progbits
22459 .balign 4
22460 .byte 'F', 'F', 'F', 'F'
22461 .section .fini_array.01005,"a",%progbits
22462 .balign 4
22463 .byte 'G', 'G', 'G', 'G'
22464 .section .init_array.01005,"a",%progbits
22465 .balign 4
22466 .byte 'H', 'H', 'H', 'H'
22467 .text
22468 .globl _start
22469 _start:
22471 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22472 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22473 && $gcc_cv_objdump -s -j .init_array conftest \
22474 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22475 && $gcc_cv_objdump -s -j .fini_array conftest \
22476 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22477 gcc_cv_initfini_array=yes
22479 rm -f conftest conftest.*
22481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22482 /* end confdefs.h. */
22484 #ifndef __ELF__
22485 # error Not an ELF OS
22486 #endif
22487 #include <stdlib.h>
22488 #if defined __GLIBC_PREREQ
22489 # if __GLIBC_PREREQ (2, 4)
22490 # else
22491 # error GLIBC 2.4 required
22492 # endif
22493 #else
22494 # if defined __sun__ && defined __svr4__
22495 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22496 # else
22497 # error The C library not known to support .init_array/.fini_array
22498 # endif
22499 #endif
22501 _ACEOF
22502 if ac_fn_c_try_cpp "$LINENO"; then :
22504 else
22505 gcc_cv_initfini_array=no
22507 rm -f conftest.err conftest.$ac_ext;;
22508 esac
22509 else
22510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22511 $as_echo_n "checking cross compile... guessing... " >&6; }
22512 gcc_cv_initfini_array=no
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22516 $as_echo "$gcc_cv_initfini_array" >&6; }
22517 enable_initfini_array=$gcc_cv_initfini_array
22521 if test $enable_initfini_array = yes; then
22523 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22527 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22529 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22530 if test "${gcc_cv_as_leb128+set}" = set; then :
22531 $as_echo_n "(cached) " >&6
22532 else
22533 gcc_cv_as_leb128=no
22534 if test $in_tree_gas = yes; then
22535 if test $in_tree_gas_is_elf = yes \
22536 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22537 then gcc_cv_as_leb128=yes
22539 elif test x$gcc_cv_as != x; then
22540 $as_echo ' .data
22541 .uleb128 L2 - L1
22543 .uleb128 1280
22544 .sleb128 -1010
22545 L2:' > conftest.s
22546 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22548 (eval $ac_try) 2>&5
22549 ac_status=$?
22550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22551 test $ac_status = 0; }; }
22552 then
22553 # GAS versions before 2.11 do not support uleb128,
22554 # despite appearing to.
22555 # ??? There exists an elf-specific test that will crash
22556 # the assembler. Perhaps it's better to figure out whether
22557 # arbitrary sections are supported and try the test.
22558 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22559 if echo "$as_ver" | grep GNU > /dev/null; then
22560 as_vers=`echo $as_ver | sed -n \
22561 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22562 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22563 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22564 if test $as_major -eq 2 && test $as_minor -lt 11
22565 then :
22566 else gcc_cv_as_leb128=yes
22569 else
22570 echo "configure: failed program was" >&5
22571 cat conftest.s >&5
22573 rm -f conftest.o conftest.s
22576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22577 $as_echo "$gcc_cv_as_leb128" >&6; }
22578 if test $gcc_cv_as_leb128 = yes; then
22580 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22584 # Check if we have assembler support for unwind directives.
22585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22586 $as_echo_n "checking assembler for cfi directives... " >&6; }
22587 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22588 $as_echo_n "(cached) " >&6
22589 else
22590 gcc_cv_as_cfi_directive=no
22591 if test x$gcc_cv_as != x; then
22592 $as_echo ' .text
22593 .cfi_startproc
22594 .cfi_offset 0, 0
22595 .cfi_same_value 1
22596 .cfi_def_cfa 1, 2
22597 .cfi_escape 1, 2, 3, 4, 5
22598 .cfi_endproc' > conftest.s
22599 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22601 (eval $ac_try) 2>&5
22602 ac_status=$?
22603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22604 test $ac_status = 0; }; }
22605 then
22606 case "$target" in
22607 *-*-solaris*)
22608 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22609 # read-only and read-write sections, we need to make sure that the
22610 # assembler used emits read-write .eh_frame sections.
22611 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22612 if test "x$gcc_cv_objdump" != x; then
22613 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22614 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22615 gcc_cv_as_cfi_directive=no
22616 else
22617 case "$target" in
22618 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22619 # On Solaris/x86, make sure that GCC and gas agree on using
22620 # read-only .eh_frame sections for 64-bit.
22621 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22622 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22623 sed -e /.eh_frame/!d -e N | \
22624 grep READONLY > /dev/null; then
22625 gcc_cv_as_cfi_directive=yes
22626 else
22627 gcc_cv_as_cfi_directive=no
22631 gcc_cv_as_cfi_directive=yes
22633 esac
22635 else
22636 # no objdump, err on the side of caution
22637 gcc_cv_as_cfi_directive=no
22639 else
22640 gcc_cv_as_cfi_directive=yes
22643 *-*-*)
22644 gcc_cv_as_cfi_directive=yes
22646 esac
22647 else
22648 echo "configure: failed program was" >&5
22649 cat conftest.s >&5
22651 rm -f conftest.o conftest.s
22654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22655 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22657 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22659 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22660 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22661 $as_echo_n "(cached) " >&6
22662 else
22663 gcc_cv_as_cfi_advance_working=no
22664 if test x$gcc_cv_as != x; then
22665 $as_echo ' .text
22666 .cfi_startproc
22667 .cfi_adjust_cfa_offset 64
22668 .skip 75040, 0
22669 .cfi_adjust_cfa_offset 128
22670 .cfi_endproc' > conftest.s
22671 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22673 (eval $ac_try) 2>&5
22674 ac_status=$?
22675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22676 test $ac_status = 0; }; }
22677 then
22679 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22680 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22681 gcc_cv_as_cfi_advance_working=yes
22684 else
22685 echo "configure: failed program was" >&5
22686 cat conftest.s >&5
22688 rm -f conftest.o conftest.s
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22692 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22694 else
22695 # no objdump, err on the side of caution
22696 gcc_cv_as_cfi_advance_working=no
22700 cat >>confdefs.h <<_ACEOF
22701 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22702 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22703 _ACEOF
22707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22708 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22709 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22710 $as_echo_n "(cached) " >&6
22711 else
22712 gcc_cv_as_cfi_personality_directive=no
22713 if test x$gcc_cv_as != x; then
22714 $as_echo ' .text
22715 .cfi_startproc
22716 .cfi_personality 0, symbol
22717 .cfi_endproc' > conftest.s
22718 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22720 (eval $ac_try) 2>&5
22721 ac_status=$?
22722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22723 test $ac_status = 0; }; }
22724 then
22725 gcc_cv_as_cfi_personality_directive=yes
22726 else
22727 echo "configure: failed program was" >&5
22728 cat conftest.s >&5
22730 rm -f conftest.o conftest.s
22733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22734 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22737 cat >>confdefs.h <<_ACEOF
22738 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22739 then echo 1; else echo 0; fi`
22740 _ACEOF
22743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22744 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22745 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22746 $as_echo_n "(cached) " >&6
22747 else
22748 gcc_cv_as_cfi_sections_directive=no
22749 if test x$gcc_cv_as != x; then
22750 $as_echo ' .text
22751 .cfi_sections .debug_frame, .eh_frame
22752 .cfi_startproc
22753 .cfi_endproc' > conftest.s
22754 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22756 (eval $ac_try) 2>&5
22757 ac_status=$?
22758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22759 test $ac_status = 0; }; }
22760 then
22761 case $target_os in
22762 win32 | pe | cygwin* | mingw32* | uwin*)
22763 # Need to check that we generated the correct relocation for the
22764 # .debug_frame section. This was fixed for binutils 2.21.
22765 gcc_cv_as_cfi_sections_directive=no
22766 if test "x$gcc_cv_objdump" != x; then
22767 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22768 grep secrel > /dev/null; then
22769 gcc_cv_as_cfi_sections_directive=yes
22774 gcc_cv_as_cfi_sections_directive=yes
22776 esac
22777 else
22778 echo "configure: failed program was" >&5
22779 cat conftest.s >&5
22781 rm -f conftest.o conftest.s
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22785 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22789 cat >>confdefs.h <<_ACEOF
22790 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22791 then echo 1; else echo 0; fi`
22792 _ACEOF
22795 # GAS versions up to and including 2.11.0 may mis-optimize
22796 # .eh_frame data.
22797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22798 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22799 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22800 $as_echo_n "(cached) " >&6
22801 else
22802 gcc_cv_as_eh_frame=no
22803 if test $in_tree_gas = yes; then
22804 if test $in_tree_gas_is_elf = yes \
22805 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22806 then gcc_cv_as_eh_frame=yes
22808 elif test x$gcc_cv_as != x; then
22809 $as_echo ' .text
22810 .LFB1:
22811 .4byte 0
22812 .L1:
22813 .4byte 0
22814 .LFE1:
22815 .section .eh_frame,"aw",@progbits
22816 __FRAME_BEGIN__:
22817 .4byte .LECIE1-.LSCIE1
22818 .LSCIE1:
22819 .4byte 0x0
22820 .byte 0x1
22821 .ascii "z\0"
22822 .byte 0x1
22823 .byte 0x78
22824 .byte 0x1a
22825 .byte 0x0
22826 .byte 0x4
22827 .4byte 1
22828 .p2align 1
22829 .LECIE1:
22830 .LSFDE1:
22831 .4byte .LEFDE1-.LASFDE1
22832 .LASFDE1:
22833 .4byte .LASFDE1-__FRAME_BEGIN__
22834 .4byte .LFB1
22835 .4byte .LFE1-.LFB1
22836 .byte 0x4
22837 .4byte .LFE1-.LFB1
22838 .byte 0x4
22839 .4byte .L1-.LFB1
22840 .LEFDE1:' > conftest.s
22841 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22843 (eval $ac_try) 2>&5
22844 ac_status=$?
22845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22846 test $ac_status = 0; }; }
22847 then
22848 cat > conftest.lit <<EOF
22849 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22850 0010 01000000 12000000 18000000 00000000 ................
22851 0020 08000000 04080000 0044 .........D
22853 cat > conftest.big <<EOF
22854 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22855 0010 00000001 00000012 00000018 00000000 ................
22856 0020 00000008 04000000 0844 .........D
22858 # If the assembler didn't choke, and we can objdump,
22859 # and we got the correct data, then succeed.
22860 # The text in the here-document typically retains its unix-style line
22861 # endings, while the output of objdump will use host line endings.
22862 # Therefore, use diff -b for the comparisons.
22863 if test x$gcc_cv_objdump != x \
22864 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22865 | tail -3 > conftest.got \
22866 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22867 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22868 then
22869 gcc_cv_as_eh_frame=yes
22870 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22872 (eval $ac_try) 2>&5
22873 ac_status=$?
22874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22875 test $ac_status = 0; }; }; then
22876 gcc_cv_as_eh_frame=buggy
22877 else
22878 # Uh oh, what do we do now?
22879 gcc_cv_as_eh_frame=no
22881 else
22882 echo "configure: failed program was" >&5
22883 cat conftest.s >&5
22885 rm -f conftest.o conftest.s
22888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22889 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22892 if test $gcc_cv_as_eh_frame = buggy; then
22894 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22899 $as_echo_n "checking assembler for section merging support... " >&6; }
22900 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22901 $as_echo_n "(cached) " >&6
22902 else
22903 gcc_cv_as_shf_merge=no
22904 if test $in_tree_gas = yes; then
22905 if test $in_tree_gas_is_elf = yes \
22906 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22907 then gcc_cv_as_shf_merge=yes
22909 elif test x$gcc_cv_as != x; then
22910 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22911 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22913 (eval $ac_try) 2>&5
22914 ac_status=$?
22915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22916 test $ac_status = 0; }; }
22917 then
22918 gcc_cv_as_shf_merge=yes
22919 else
22920 echo "configure: failed program was" >&5
22921 cat conftest.s >&5
22923 rm -f conftest.o conftest.s
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22927 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22929 if test $gcc_cv_as_shf_merge = no; then
22930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22931 $as_echo_n "checking assembler for section merging support... " >&6; }
22932 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22933 $as_echo_n "(cached) " >&6
22934 else
22935 gcc_cv_as_shf_merge=no
22936 if test $in_tree_gas = yes; then
22937 if test $in_tree_gas_is_elf = yes \
22938 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22939 then gcc_cv_as_shf_merge=yes
22941 elif test x$gcc_cv_as != x; then
22942 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22943 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22945 (eval $ac_try) 2>&5
22946 ac_status=$?
22947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22948 test $ac_status = 0; }; }
22949 then
22950 gcc_cv_as_shf_merge=yes
22951 else
22952 echo "configure: failed program was" >&5
22953 cat conftest.s >&5
22955 rm -f conftest.o conftest.s
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22959 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22963 cat >>confdefs.h <<_ACEOF
22964 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22965 _ACEOF
22968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22969 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22970 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22971 $as_echo_n "(cached) " >&6
22972 else
22973 gcc_cv_as_comdat_group=no
22974 if test $in_tree_gas = yes; then
22975 if test $in_tree_gas_is_elf = yes \
22976 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22977 then gcc_cv_as_comdat_group=yes
22979 elif test x$gcc_cv_as != x; then
22980 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22981 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22983 (eval $ac_try) 2>&5
22984 ac_status=$?
22985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22986 test $ac_status = 0; }; }
22987 then
22988 gcc_cv_as_comdat_group=yes
22989 else
22990 echo "configure: failed program was" >&5
22991 cat conftest.s >&5
22993 rm -f conftest.o conftest.s
22996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22997 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22999 if test $gcc_cv_as_comdat_group = yes; then
23000 gcc_cv_as_comdat_group_percent=no
23001 gcc_cv_as_comdat_group_group=no
23002 else
23003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23004 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23005 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23006 $as_echo_n "(cached) " >&6
23007 else
23008 gcc_cv_as_comdat_group_percent=no
23009 if test $in_tree_gas = yes; then
23010 if test $in_tree_gas_is_elf = yes \
23011 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23012 then gcc_cv_as_comdat_group_percent=yes
23014 elif test x$gcc_cv_as != x; then
23015 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23016 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23018 (eval $ac_try) 2>&5
23019 ac_status=$?
23020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23021 test $ac_status = 0; }; }
23022 then
23023 gcc_cv_as_comdat_group_percent=yes
23024 else
23025 echo "configure: failed program was" >&5
23026 cat conftest.s >&5
23028 rm -f conftest.o conftest.s
23031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23032 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23034 if test $gcc_cv_as_comdat_group_percent = yes; then
23035 gcc_cv_as_comdat_group_group=no
23036 else
23037 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23038 gcc_cv_as_comdat_group_group=no
23040 case "${target}" in
23041 # Sun as uses a completely different syntax.
23042 *-*-solaris2*)
23043 case "${target}" in
23044 sparc*-*-solaris2*)
23045 conftest_s='
23046 .group foo,".text%foo",#comdat
23047 .section ".text%foo", #alloc,#execinstr,#progbits
23048 .globl foo
23049 foo:
23052 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23053 conftest_s='
23054 .group foo,.text%foo,#comdat
23055 .section .text%foo, "ax", @progbits
23056 .globl foo
23057 foo:
23060 esac
23061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23062 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23063 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23064 $as_echo_n "(cached) " >&6
23065 else
23066 gcc_cv_as_comdat_group_group=no
23067 if test x$gcc_cv_as != x; then
23068 $as_echo "$conftest_s" > conftest.s
23069 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23071 (eval $ac_try) 2>&5
23072 ac_status=$?
23073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23074 test $ac_status = 0; }; }
23075 then
23076 gcc_cv_as_comdat_group_group=yes
23077 else
23078 echo "configure: failed program was" >&5
23079 cat conftest.s >&5
23081 rm -f conftest.o conftest.s
23084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23085 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23088 esac
23091 if test x"$ld_is_gold" = xyes; then
23092 comdat_group=yes
23093 elif test $in_tree_ld = yes ; then
23094 comdat_group=no
23095 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 \
23096 && test $in_tree_ld_is_elf = yes; then
23097 comdat_group=yes
23099 elif echo "$ld_ver" | grep GNU > /dev/null; then
23100 comdat_group=yes
23101 if test 0"$ld_date" -lt 20050308; then
23102 if test -n "$ld_date"; then
23103 # If there was date string, but was earlier than 2005-03-08, fail
23104 comdat_group=no
23105 elif test "$ld_vers_major" -lt 2; then
23106 comdat_group=no
23107 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23108 comdat_group=no
23111 else
23112 case "${target}" in
23113 *-*-solaris2.1[1-9]*)
23114 comdat_group=no
23115 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23116 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23117 # version 1.688.
23119 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23120 # least ld version 1.2267.
23121 if test "$ld_vers_major" -gt 1; then
23122 comdat_group=yes
23123 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23124 comdat_group=yes
23125 elif test "$ld_vers_minor" -ge 2267; then
23126 comdat_group=yes
23130 # Assume linkers other than GNU ld don't support COMDAT group.
23131 comdat_group=no
23133 esac
23135 # Allow overriding the automatic COMDAT group tests above.
23136 # Check whether --enable-comdat was given.
23137 if test "${enable_comdat+set}" = set; then :
23138 enableval=$enable_comdat; comdat_group="$enable_comdat"
23141 if test $comdat_group = no; then
23142 gcc_cv_as_comdat_group=no
23143 gcc_cv_as_comdat_group_percent=no
23144 gcc_cv_as_comdat_group_group=no
23147 cat >>confdefs.h <<_ACEOF
23148 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23149 || test $gcc_cv_as_comdat_group_percent = yes \
23150 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23151 _ACEOF
23154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23155 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23156 if test "${gcc_cv_as_discriminator+set}" = set; then :
23157 $as_echo_n "(cached) " >&6
23158 else
23159 gcc_cv_as_discriminator=no
23160 if test $in_tree_gas = yes; then
23161 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23162 then gcc_cv_as_discriminator=yes
23164 elif test x$gcc_cv_as != x; then
23165 $as_echo ' .text
23166 .file 1 "conf.c"
23167 .loc 1 1 0 discriminator 1' > conftest.s
23168 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23170 (eval $ac_try) 2>&5
23171 ac_status=$?
23172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23173 test $ac_status = 0; }; }
23174 then
23175 gcc_cv_as_discriminator=yes
23176 else
23177 echo "configure: failed program was" >&5
23178 cat conftest.s >&5
23180 rm -f conftest.o conftest.s
23183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23184 $as_echo "$gcc_cv_as_discriminator" >&6; }
23185 if test $gcc_cv_as_discriminator = yes; then
23187 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23191 # Thread-local storage - the check is heavily parameterized.
23192 conftest_s=
23193 tls_first_major=
23194 tls_first_minor=
23195 tls_as_opt=
23196 case "$target" in
23197 alpha*-*-*)
23198 conftest_s='
23199 .section ".tdata","awT",@progbits
23200 foo: .long 25
23201 .text
23202 ldq $27,__tls_get_addr($29) !literal!1
23203 lda $16,foo($29) !tlsgd!1
23204 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23205 ldq $27,__tls_get_addr($29) !literal!2
23206 lda $16,foo($29) !tlsldm!2
23207 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23208 ldq $1,foo($29) !gotdtprel
23209 ldah $2,foo($29) !dtprelhi
23210 lda $3,foo($2) !dtprello
23211 lda $4,foo($29) !dtprel
23212 ldq $1,foo($29) !gottprel
23213 ldah $2,foo($29) !tprelhi
23214 lda $3,foo($2) !tprello
23215 lda $4,foo($29) !tprel'
23216 tls_first_major=2
23217 tls_first_minor=13
23218 tls_as_opt=--fatal-warnings
23220 cris-*-*|crisv32-*-*)
23221 conftest_s='
23222 .section ".tdata","awT",@progbits
23223 x: .long 25
23224 .text
23225 move.d x:IE,$r10
23226 nop'
23227 tls_first_major=2
23228 tls_first_minor=20
23229 tls_as_opt=--fatal-warnings
23231 frv*-*-*)
23232 conftest_s='
23233 .section ".tdata","awT",@progbits
23234 x: .long 25
23235 .text
23236 call #gettlsoff(x)'
23237 tls_first_major=2
23238 tls_first_minor=14
23240 hppa*-*-linux*)
23241 conftest_s='
23242 t1: .reg %r20
23243 t2: .reg %r21
23244 gp: .reg %r19
23245 .section ".tdata","awT",@progbits
23246 foo: .long 25
23247 .text
23248 .align 4
23249 addil LT%foo-$tls_gdidx$,gp
23250 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23251 b __tls_get_addr
23253 addil LT%foo-$tls_ldidx$,gp
23254 b __tls_get_addr
23255 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23256 addil LR%foo-$tls_dtpoff$,%ret0
23257 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23258 mfctl %cr27,%t1
23259 addil LT%foo-$tls_ieoff$,gp
23260 ldw RT%foo-$tls_ieoff$(%r1),%t2
23261 add %t1,%t2,%t3
23262 mfctl %cr27,%t1
23263 addil LR%foo-$tls_leoff$,%t1
23264 ldo RR%foo-$tls_leoff$(%r1),%t2'
23265 tls_first_major=2
23266 tls_first_minor=15
23267 tls_as_opt=--fatal-warnings
23269 arm*-*-*)
23270 conftest_s='
23271 .section ".tdata","awT",%progbits
23272 foo: .long 25
23273 .text
23274 .word foo(gottpoff)
23275 .word foo(tpoff)
23276 .word foo(tlsgd)
23277 .word foo(tlsldm)
23278 .word foo(tlsldo)'
23279 tls_first_major=2
23280 tls_first_minor=17
23282 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23283 case "$target" in
23284 i[34567]86-*-solaris2.*)
23285 on_solaris=yes
23286 tga_func=___tls_get_addr
23288 x86_64-*-solaris2.1[0-9]*)
23289 on_solaris=yes
23290 tga_func=__tls_get_addr
23293 on_solaris=no
23295 esac
23296 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23297 conftest_s='
23298 .section .tdata,"awt",@progbits'
23299 tls_first_major=0
23300 tls_first_minor=0
23302 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23304 else
23305 conftest_s='
23306 .section ".tdata","awT",@progbits'
23307 tls_first_major=2
23308 tls_first_minor=14
23309 tls_as_opt="--fatal-warnings"
23311 conftest_s="$conftest_s
23312 foo: .long 25
23313 .text
23314 movl %gs:0, %eax
23315 leal foo@tlsgd(,%ebx,1), %eax
23316 leal foo@tlsldm(%ebx), %eax
23317 leal foo@dtpoff(%eax), %edx
23318 movl foo@gottpoff(%ebx), %eax
23319 subl foo@gottpoff(%ebx), %eax
23320 addl foo@gotntpoff(%ebx), %eax
23321 movl foo@indntpoff, %eax
23322 movl \$foo@tpoff, %eax
23323 subl \$foo@tpoff, %eax
23324 leal foo@ntpoff(%ecx), %eax"
23326 x86_64-*-*)
23327 conftest_s='
23328 .section ".tdata","awT",@progbits
23329 foo: .long 25
23330 .text
23331 movq %fs:0, %rax
23332 leaq foo@TLSGD(%rip), %rdi
23333 leaq foo@TLSLD(%rip), %rdi
23334 leaq foo@DTPOFF(%rax), %rdx
23335 movq foo@GOTTPOFF(%rip), %rax
23336 movq $foo@TPOFF, %rax'
23337 tls_first_major=2
23338 tls_first_minor=14
23339 tls_as_opt=--fatal-warnings
23341 ia64-*-*)
23342 conftest_s='
23343 .section ".tdata","awT",@progbits
23344 foo: data8 25
23345 .text
23346 addl r16 = @ltoff(@dtpmod(foo#)), gp
23347 addl r17 = @ltoff(@dtprel(foo#)), gp
23348 addl r18 = @ltoff(@tprel(foo#)), gp
23349 addl r19 = @dtprel(foo#), gp
23350 adds r21 = @dtprel(foo#), r13
23351 movl r23 = @dtprel(foo#)
23352 addl r20 = @tprel(foo#), gp
23353 adds r22 = @tprel(foo#), r13
23354 movl r24 = @tprel(foo#)'
23355 tls_first_major=2
23356 tls_first_minor=13
23357 tls_as_opt=--fatal-warnings
23359 microblaze*-*-*)
23360 conftest_s='
23361 .section .tdata,"awT",@progbits
23363 .word 2
23364 .text
23365 addik r5,r20,x@TLSGD
23366 addik r5,r20,x@TLSLDM'
23367 tls_first_major=2
23368 tls_first_minor=20
23369 tls_as_opt='--fatal-warnings'
23371 mips*-*-*)
23372 conftest_s='
23373 .section .tdata,"awT",@progbits
23375 .word 2
23376 .text
23377 addiu $4, $28, %tlsgd(x)
23378 addiu $4, $28, %tlsldm(x)
23379 lui $4, %dtprel_hi(x)
23380 addiu $4, $4, %dtprel_lo(x)
23381 lw $4, %gottprel(x)($28)
23382 lui $4, %tprel_hi(x)
23383 addiu $4, $4, %tprel_lo(x)'
23384 tls_first_major=2
23385 tls_first_minor=16
23386 tls_as_opt='-32 --fatal-warnings'
23388 m68k-*-*)
23389 conftest_s='
23390 .section .tdata,"awT",@progbits
23392 .word 2
23393 .text
23394 foo:
23395 move.l x@TLSGD(%a5),%a0
23396 move.l x@TLSLDM(%a5),%a0
23397 move.l x@TLSLDO(%a5),%a0
23398 move.l x@TLSIE(%a5),%a0
23399 move.l x@TLSLE(%a5),%a0'
23400 tls_first_major=2
23401 tls_first_minor=19
23402 tls_as_opt='--fatal-warnings'
23404 nios2-*-*)
23405 conftest_s='
23406 .section ".tdata","awT",@progbits'
23407 tls_first_major=2
23408 tls_first_minor=23
23409 tls_as_opt="--fatal-warnings"
23411 aarch64*-*-*)
23412 conftest_s='
23413 .section ".tdata","awT",%progbits
23414 foo: .long 25
23415 .text
23416 adrp x0, :tlsgd:x
23417 add x0, x0, #:tlsgd_lo12:x
23418 bl __tls_get_addr
23419 nop'
23420 tls_first_major=2
23421 tls_first_minor=20
23422 tls_as_opt='--fatal-warnings'
23424 powerpc-ibm-aix*)
23425 conftest_s='
23426 .extern __get_tpointer
23427 .toc
23428 LC..1:
23429 .tc a[TC],a[TL]@le
23430 .csect .text[PR]
23431 .tlstest:
23432 lwz 9,LC..1(2)
23433 bla __get_tpointer
23434 lwzx 3,9,3
23435 .globl a
23436 .csect a[TL],4
23438 .space 4'
23439 tls_first_major=0
23440 tls_first_minor=0
23442 powerpc64*-*-*)
23443 conftest_s='
23444 .section ".tdata","awT",@progbits
23445 .align 3
23446 ld0: .space 8
23447 ld1: .space 8
23448 x1: .space 8
23449 x2: .space 8
23450 x3: .space 8
23451 .text
23452 addi 3,2,ld0@got@tlsgd
23453 bl .__tls_get_addr
23455 addi 3,2,ld1@toc
23456 bl .__tls_get_addr
23458 addi 3,2,x1@got@tlsld
23459 bl .__tls_get_addr
23461 addi 9,3,x1@dtprel
23462 bl .__tls_get_addr
23464 addis 9,3,x2@dtprel@ha
23465 addi 9,9,x2@dtprel@l
23466 bl .__tls_get_addr
23468 ld 9,x3@got@dtprel(2)
23469 add 9,9,3
23470 bl .__tls_get_addr
23471 nop'
23472 tls_first_major=2
23473 tls_first_minor=14
23474 tls_as_opt="-a64 --fatal-warnings"
23476 powerpc*-*-*)
23477 conftest_s='
23478 .section ".tdata","awT",@progbits
23479 .align 2
23480 ld0: .space 4
23481 ld1: .space 4
23482 x1: .space 4
23483 x2: .space 4
23484 x3: .space 4
23485 .text
23486 addi 3,31,ld0@got@tlsgd
23487 bl __tls_get_addr
23488 addi 3,31,x1@got@tlsld
23489 bl __tls_get_addr
23490 addi 9,3,x1@dtprel
23491 addis 9,3,x2@dtprel@ha
23492 addi 9,9,x2@dtprel@l
23493 lwz 9,x3@got@tprel(31)
23494 add 9,9,x@tls
23495 addi 9,2,x1@tprel
23496 addis 9,2,x2@tprel@ha
23497 addi 9,9,x2@tprel@l'
23498 tls_first_major=2
23499 tls_first_minor=14
23500 tls_as_opt="-a32 --fatal-warnings"
23502 s390-*-*)
23503 conftest_s='
23504 .section ".tdata","awT",@progbits
23505 foo: .long 25
23506 .text
23507 .long foo@TLSGD
23508 .long foo@TLSLDM
23509 .long foo@DTPOFF
23510 .long foo@NTPOFF
23511 .long foo@GOTNTPOFF
23512 .long foo@INDNTPOFF
23513 l %r1,foo@GOTNTPOFF(%r12)
23514 l %r1,0(%r1):tls_load:foo
23515 bas %r14,0(%r1,%r13):tls_gdcall:foo
23516 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23517 tls_first_major=2
23518 tls_first_minor=14
23519 tls_as_opt="-m31 --fatal-warnings"
23521 s390x-*-*)
23522 conftest_s='
23523 .section ".tdata","awT",@progbits
23524 foo: .long 25
23525 .text
23526 .quad foo@TLSGD
23527 .quad foo@TLSLDM
23528 .quad foo@DTPOFF
23529 .quad foo@NTPOFF
23530 .quad foo@GOTNTPOFF
23531 lg %r1,foo@GOTNTPOFF(%r12)
23532 larl %r1,foo@INDNTPOFF
23533 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23534 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23535 tls_first_major=2
23536 tls_first_minor=14
23537 tls_as_opt="-m64 -Aesame --fatal-warnings"
23539 sh-*-* | sh[34]-*-*)
23540 conftest_s='
23541 .section ".tdata","awT",@progbits
23542 foo: .long 25
23543 .text
23544 .long foo@TLSGD
23545 .long foo@TLSLDM
23546 .long foo@DTPOFF
23547 .long foo@GOTTPOFF
23548 .long foo@TPOFF'
23549 tls_first_major=2
23550 tls_first_minor=13
23551 tls_as_opt=--fatal-warnings
23553 sparc*-*-*)
23554 case "$target" in
23555 sparc*-sun-solaris2.*)
23556 on_solaris=yes
23557 tga_func=__tls_get_addr
23560 on_solaris=no
23562 esac
23563 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23564 conftest_s='
23565 .section ".tdata",#alloc,#write,#tls'
23566 tls_first_major=0
23567 tls_first_minor=0
23568 else
23569 conftest_s='
23570 .section ".tdata","awT",@progbits'
23571 tls_first_major=2
23572 tls_first_minor=14
23573 tls_as_opt="-32 --fatal-warnings"
23575 conftest_s="$conftest_s
23576 foo: .long 25
23577 .text
23578 sethi %tgd_hi22(foo), %o0
23579 add %o0, %tgd_lo10(foo), %o1
23580 add %l7, %o1, %o0, %tgd_add(foo)
23581 call __tls_get_addr, %tgd_call(foo)
23582 sethi %tldm_hi22(foo), %l1
23583 add %l1, %tldm_lo10(foo), %l2
23584 add %l7, %l2, %o0, %tldm_add(foo)
23585 call __tls_get_addr, %tldm_call(foo)
23586 sethi %tldo_hix22(foo), %l3
23587 xor %l3, %tldo_lox10(foo), %l4
23588 add %o0, %l4, %l5, %tldo_add(foo)
23589 sethi %tie_hi22(foo), %o3
23590 add %o3, %tie_lo10(foo), %o3
23591 ld [%l7 + %o3], %o2, %tie_ld(foo)
23592 add %g7, %o2, %o4, %tie_add(foo)
23593 sethi %tle_hix22(foo), %l1
23594 xor %l1, %tle_lox10(foo), %o5
23595 ld [%g7 + %o5], %o1"
23597 tilepro*-*-*)
23598 conftest_s='
23599 .section ".tdata","awT",@progbits
23600 foo: .long 25
23601 .text
23602 addli r0, zero, tls_gd(foo)
23603 auli r0, zero, tls_gd_ha16(foo)
23604 addli r0, r0, tls_gd_lo16(foo)
23605 jal __tls_get_addr
23606 addli r0, zero, tls_ie(foo)
23607 auli r0, r0, tls_ie_ha16(foo)
23608 addli r0, r0, tls_ie_lo16(foo)'
23609 tls_first_major=2
23610 tls_first_minor=22
23611 tls_as_opt="--fatal-warnings"
23613 tilegx*-*-*)
23614 conftest_s='
23615 .section ".tdata","awT",@progbits
23616 foo: .long 25
23617 .text
23618 shl16insli r0, zero, hw0_last_tls_gd(foo)
23619 shl16insli r0, zero, hw1_last_tls_gd(foo)
23620 shl16insli r0, r0, hw0_tls_gd(foo)
23621 jal __tls_get_addr
23622 shl16insli r0, zero, hw1_last_tls_ie(foo)
23623 shl16insli r0, r0, hw0_tls_ie(foo)'
23624 tls_first_major=2
23625 tls_first_minor=22
23626 tls_as_opt="--fatal-warnings"
23628 xtensa*-*-*)
23629 conftest_s='
23630 .section ".tdata","awT",@progbits
23631 foo: .long 25
23632 .text
23633 movi a8, foo@TLSFUNC
23634 movi a10, foo@TLSARG
23635 callx8.tls a8, foo@TLSCALL'
23636 tls_first_major=2
23637 tls_first_minor=19
23639 esac
23640 set_have_as_tls=no
23641 if test "x$enable_tls" = xno ; then
23642 : # TLS explicitly disabled.
23643 elif test "x$enable_tls" = xyes ; then
23644 set_have_as_tls=yes # TLS explicitly enabled.
23645 elif test -z "$tls_first_major"; then
23646 : # If we don't have a check, assume no support.
23647 else
23648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23649 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23650 if test "${gcc_cv_as_tls+set}" = set; then :
23651 $as_echo_n "(cached) " >&6
23652 else
23653 gcc_cv_as_tls=no
23654 if test $in_tree_gas = yes; then
23655 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23656 then gcc_cv_as_tls=yes
23658 elif test x$gcc_cv_as != x; then
23659 $as_echo "$conftest_s" > conftest.s
23660 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23662 (eval $ac_try) 2>&5
23663 ac_status=$?
23664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23665 test $ac_status = 0; }; }
23666 then
23667 gcc_cv_as_tls=yes
23668 else
23669 echo "configure: failed program was" >&5
23670 cat conftest.s >&5
23672 rm -f conftest.o conftest.s
23675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23676 $as_echo "$gcc_cv_as_tls" >&6; }
23677 if test $gcc_cv_as_tls = yes; then
23678 set_have_as_tls=yes
23681 case "$target" in
23682 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23683 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23684 # Sun style that Sun ld and GCC don't support any longer.
23685 *-*-solaris2.*)
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23687 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23688 ld_tls_support=no
23689 # Check ld and ld.so.1 TLS support.
23690 if echo "$ld_ver" | grep GNU > /dev/null; then
23691 # Assume all interesting versions of GNU ld have TLS support.
23692 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23693 ld_tls_support=yes
23694 else
23695 case "$target" in
23696 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23697 i?86-*-solaris2.9)
23698 min_tls_ld_vers_minor=374
23700 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23701 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23702 min_tls_ld_vers_minor=343
23704 esac
23705 if test "$ld_vers_major" -gt 1 || \
23706 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23707 ld_tls_support=yes
23708 else
23709 set_have_as_tls=no
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23713 $as_echo "$ld_tls_support" >&6; }
23715 save_LIBS="$LIBS"
23716 save_LDFLAGS="$LDFLAGS"
23717 LIBS=
23718 LDFLAGS=
23720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23721 $as_echo_n "checking library containing $tga_func... " >&6; }
23722 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23723 # (32-bit x86) only lived in libthread, so check for that. Keep
23724 # set_have_as_tls if found, disable if not.
23725 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23727 $as_echo_n "checking for library containing $tga_func... " >&6; }
23728 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23729 $as_echo_n "(cached) " >&6
23730 else
23731 ac_func_search_save_LIBS=$LIBS
23732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23733 /* end confdefs.h. */
23735 /* Override any GCC internal prototype to avoid an error.
23736 Use char because int might match the return type of a GCC
23737 builtin and then its argument prototype would still apply. */
23738 #ifdef __cplusplus
23739 extern "C"
23740 #endif
23741 char $tga_func ();
23743 main ()
23745 return $tga_func ();
23747 return 0;
23749 _ACEOF
23750 for ac_lib in '' thread; do
23751 if test -z "$ac_lib"; then
23752 ac_res="none required"
23753 else
23754 ac_res=-l$ac_lib
23755 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23757 if ac_fn_c_try_link "$LINENO"; then :
23758 eval "$as_ac_Search=\$ac_res"
23760 rm -f core conftest.err conftest.$ac_objext \
23761 conftest$ac_exeext
23762 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23763 break
23765 done
23766 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23768 else
23769 eval "$as_ac_Search=no"
23771 rm conftest.$ac_ext
23772 LIBS=$ac_func_search_save_LIBS
23774 eval ac_res=\$$as_ac_Search
23775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23776 $as_echo "$ac_res" >&6; }
23777 eval ac_res=\$$as_ac_Search
23778 if test "$ac_res" != no; then :
23779 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23781 else
23782 set_have_as_tls=no
23785 # Clear LIBS if we cannot support TLS.
23786 if test $set_have_as_tls = no; then
23787 LIBS=
23789 # Always define LIB_TLS_SPEC, even without TLS support.
23791 cat >>confdefs.h <<_ACEOF
23792 #define LIB_TLS_SPEC "$LIBS"
23793 _ACEOF
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23796 $as_echo "$LIBS" >&6; }
23798 LIBS="$save_LIBS"
23799 LDFLAGS="$save_LDFLAGS"
23801 esac
23802 if test $set_have_as_tls = yes ; then
23804 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23808 # Target-specific assembler checks.
23810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23811 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23812 gcc_cv_ld_static_dynamic=no
23813 gcc_cv_ld_static_option='-Bstatic'
23814 gcc_cv_ld_dynamic_option='-Bdynamic'
23815 if test $in_tree_ld = yes ; then
23816 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
23817 gcc_cv_ld_static_dynamic=yes
23819 elif test x$gcc_cv_ld != x; then
23820 # Check if linker supports -Bstatic/-Bdynamic option
23821 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23822 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23823 gcc_cv_ld_static_dynamic=yes
23824 else
23825 case "$target" in
23826 # AIX ld uses -b flags
23827 *-*-aix4.[23]* | *-*-aix[5-9]*)
23828 gcc_cv_ld_static_dynamic=yes
23829 gcc_cv_ld_static_option="-bstatic"
23830 gcc_cv_ld_dynamic_option="-bdynamic"
23832 # HP-UX ld uses -a flags to select between shared and archive.
23833 *-*-hpux*)
23834 if test x"$gnu_ld" = xno; then
23835 gcc_cv_ld_static_dynamic=yes
23836 gcc_cv_ld_static_option="-aarchive_shared"
23837 gcc_cv_ld_dynamic_option="-adefault"
23840 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23841 *-*-solaris2*)
23842 gcc_cv_ld_static_dynamic=yes
23844 esac
23847 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23849 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23852 cat >>confdefs.h <<_ACEOF
23853 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23854 _ACEOF
23857 cat >>confdefs.h <<_ACEOF
23858 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23859 _ACEOF
23862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23863 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23865 if test x"$demangler_in_ld" = xyes; then
23866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23867 $as_echo_n "checking linker --demangle support... " >&6; }
23868 gcc_cv_ld_demangle=no
23869 if test $in_tree_ld = yes; then
23870 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 \
23871 gcc_cv_ld_demangle=yes
23873 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23874 # Check if the GNU linker supports --demangle option
23875 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23876 gcc_cv_ld_demangle=yes
23879 if test x"$gcc_cv_ld_demangle" = xyes; then
23881 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23885 $as_echo "$gcc_cv_ld_demangle" >&6; }
23888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23889 $as_echo_n "checking linker plugin support... " >&6; }
23890 gcc_cv_lto_plugin=0
23891 if test -f liblto_plugin.la; then
23892 save_ld_ver="$ld_ver"
23893 save_ld_vers_major="$ld_vers_major"
23894 save_ld_vers_minor="$ld_vers_minor"
23895 save_ld_is_gold="$ld_is_gold"
23897 ld_is_gold=no
23899 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23900 ld_ver="GNU ld"
23901 # FIXME: ld_is_gold?
23902 ld_vers_major="$gcc_cv_gld_major_version"
23903 ld_vers_minor="$gcc_cv_gld_minor_version"
23904 else
23905 # Determine plugin linker version.
23906 # FIXME: Partial duplicate from above, generalize.
23907 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23908 if echo "$ld_ver" | grep GNU > /dev/null; then
23909 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23910 ld_is_gold=yes
23911 ld_vers=`echo $ld_ver | sed -n \
23912 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23913 else
23914 ld_vers=`echo $ld_ver | sed -n \
23915 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23917 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23918 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23922 # Determine plugin support.
23923 if echo "$ld_ver" | grep GNU > /dev/null; then
23924 # Require GNU ld or gold 2.21+ for plugin support by default.
23925 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23926 gcc_cv_lto_plugin=2
23927 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23928 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23929 gcc_cv_lto_plugin=1
23933 ld_ver="$save_ld_ver"
23934 ld_vers_major="$save_ld_vers_major"
23935 ld_vers_minor="$save_ld_vers_minor"
23936 ld_is_gold="$save_ld_is_gold"
23939 cat >>confdefs.h <<_ACEOF
23940 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23941 _ACEOF
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23944 $as_echo "$gcc_cv_lto_plugin" >&6; }
23946 case "$target" in
23947 aarch64*-*-*)
23948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
23949 $as_echo_n "checking assembler for -mabi option... " >&6; }
23950 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
23951 $as_echo_n "(cached) " >&6
23952 else
23953 gcc_cv_as_aarch64_mabi=no
23954 if test x$gcc_cv_as != x; then
23955 $as_echo '.text' > conftest.s
23956 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
23957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23958 (eval $ac_try) 2>&5
23959 ac_status=$?
23960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23961 test $ac_status = 0; }; }
23962 then
23963 gcc_cv_as_aarch64_mabi=yes
23964 else
23965 echo "configure: failed program was" >&5
23966 cat conftest.s >&5
23968 rm -f conftest.o conftest.s
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
23972 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
23974 if test x$gcc_cv_as_aarch64_mabi = xyes; then
23976 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
23978 else
23979 if test x$with_abi = xilp32; then
23980 as_fn_error "Assembler does not support -mabi=ilp32.\
23981 Upgrade the Assembler." "$LINENO" 5
23983 if test x"$with_multilib_list" = xdefault; then
23984 TM_MULTILIB_CONFIG=lp64
23985 else
23986 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
23987 for aarch64_multilib in ${aarch64_multilibs}; do
23988 case ${aarch64_multilib} in
23989 ilp32)
23990 as_fn_error "Assembler does not support -mabi=ilp32.\
23991 Upgrade the Assembler." "$LINENO" 5
23995 esac
23996 done
24001 # All TARGET_ABI_OSF targets.
24002 alpha*-*-linux* | alpha*-*-*bsd*)
24003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24004 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24005 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24006 $as_echo_n "(cached) " >&6
24007 else
24008 gcc_cv_as_alpha_explicit_relocs=no
24009 if test $in_tree_gas = yes; then
24010 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24011 then gcc_cv_as_alpha_explicit_relocs=yes
24013 elif test x$gcc_cv_as != x; then
24014 $as_echo ' .set nomacro
24015 .text
24016 extbl $3, $2, $3 !lituse_bytoff!1
24017 ldq $2, a($29) !literal!1
24018 ldq $4, b($29) !literal!2
24019 ldq_u $3, 0($2) !lituse_base!1
24020 ldq $27, f($29) !literal!5
24021 jsr $26, ($27), f !lituse_jsr!5
24022 ldah $29, 0($26) !gpdisp!3
24023 lda $0, c($29) !gprel
24024 ldah $1, d($29) !gprelhigh
24025 lda $1, d($1) !gprellow
24026 lda $29, 0($29) !gpdisp!3' > conftest.s
24027 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24029 (eval $ac_try) 2>&5
24030 ac_status=$?
24031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24032 test $ac_status = 0; }; }
24033 then
24034 gcc_cv_as_alpha_explicit_relocs=yes
24035 else
24036 echo "configure: failed program was" >&5
24037 cat conftest.s >&5
24039 rm -f conftest.o conftest.s
24042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24043 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24044 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24046 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24050 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24051 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24052 $as_echo_n "(cached) " >&6
24053 else
24054 gcc_cv_as_alpha_jsrdirect_relocs=no
24055 if test $in_tree_gas = yes; then
24056 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24057 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24059 elif test x$gcc_cv_as != x; then
24060 $as_echo ' .set nomacro
24061 .text
24062 ldq $27, a($29) !literal!1
24063 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24064 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24066 (eval $ac_try) 2>&5
24067 ac_status=$?
24068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24069 test $ac_status = 0; }; }
24070 then
24071 gcc_cv_as_alpha_jsrdirect_relocs=yes
24072 else
24073 echo "configure: failed program was" >&5
24074 cat conftest.s >&5
24076 rm -f conftest.o conftest.s
24079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24080 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24081 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24083 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24088 cris-*-*)
24089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24090 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24091 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24092 $as_echo_n "(cached) " >&6
24093 else
24094 gcc_cv_as_cris_no_mul_bug=no
24095 if test $in_tree_gas = yes; then
24096 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24097 then gcc_cv_as_cris_no_mul_bug=yes
24099 elif test x$gcc_cv_as != x; then
24100 $as_echo '.text' > conftest.s
24101 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24103 (eval $ac_try) 2>&5
24104 ac_status=$?
24105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24106 test $ac_status = 0; }; }
24107 then
24108 gcc_cv_as_cris_no_mul_bug=yes
24109 else
24110 echo "configure: failed program was" >&5
24111 cat conftest.s >&5
24113 rm -f conftest.o conftest.s
24116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24117 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24118 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24120 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24125 sparc*-*-*)
24126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24127 $as_echo_n "checking assembler for .register... " >&6; }
24128 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24129 $as_echo_n "(cached) " >&6
24130 else
24131 gcc_cv_as_sparc_register_op=no
24132 if test x$gcc_cv_as != x; then
24133 $as_echo '.register %g2, #scratch' > conftest.s
24134 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24136 (eval $ac_try) 2>&5
24137 ac_status=$?
24138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24139 test $ac_status = 0; }; }
24140 then
24141 gcc_cv_as_sparc_register_op=yes
24142 else
24143 echo "configure: failed program was" >&5
24144 cat conftest.s >&5
24146 rm -f conftest.o conftest.s
24149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24150 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24151 if test $gcc_cv_as_sparc_register_op = yes; then
24153 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24158 $as_echo_n "checking assembler for #nobits... " >&6; }
24159 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24160 $as_echo_n "(cached) " >&6
24161 else
24162 gcc_cv_as_sparc_nobits=no
24163 if test x$gcc_cv_as != x; then
24164 $as_echo '.section "nobits",#alloc,#write,#nobits
24165 .section "progbits",#alloc,#write,#progbits' > conftest.s
24166 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24168 (eval $ac_try) 2>&5
24169 ac_status=$?
24170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24171 test $ac_status = 0; }; }
24172 then
24173 gcc_cv_as_sparc_nobits=yes
24174 else
24175 echo "configure: failed program was" >&5
24176 cat conftest.s >&5
24178 rm -f conftest.o conftest.s
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24182 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24185 cat >>confdefs.h <<_ACEOF
24186 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24187 _ACEOF
24190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24191 $as_echo_n "checking assembler for -relax option... " >&6; }
24192 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24193 $as_echo_n "(cached) " >&6
24194 else
24195 gcc_cv_as_sparc_relax=no
24196 if test x$gcc_cv_as != x; then
24197 $as_echo '.text' > conftest.s
24198 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24200 (eval $ac_try) 2>&5
24201 ac_status=$?
24202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24203 test $ac_status = 0; }; }
24204 then
24205 gcc_cv_as_sparc_relax=yes
24206 else
24207 echo "configure: failed program was" >&5
24208 cat conftest.s >&5
24210 rm -f conftest.o conftest.s
24213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24214 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24215 if test $gcc_cv_as_sparc_relax = yes; then
24217 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24222 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24223 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24224 $as_echo_n "(cached) " >&6
24225 else
24226 gcc_cv_as_sparc_gotdata_op=no
24227 if test x$gcc_cv_as != x; then
24228 $as_echo '.text
24229 .align 4
24230 foo:
24232 bar:
24233 sethi %gdop_hix22(foo), %g1
24234 xor %g1, %gdop_lox10(foo), %g1
24235 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24236 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24238 (eval $ac_try) 2>&5
24239 ac_status=$?
24240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24241 test $ac_status = 0; }; }
24242 then
24243 if test x$gcc_cv_ld != x \
24244 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24245 if test x$gcc_cv_objdump != x; then
24246 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24247 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24248 gcc_cv_as_sparc_gotdata_op=no
24249 else
24250 gcc_cv_as_sparc_gotdata_op=yes
24254 rm -f conftest
24255 else
24256 echo "configure: failed program was" >&5
24257 cat conftest.s >&5
24259 rm -f conftest.o conftest.s
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24263 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24264 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24266 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24271 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24272 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24273 $as_echo_n "(cached) " >&6
24274 else
24275 gcc_cv_as_sparc_ua_pcrel=no
24276 if test x$gcc_cv_as != x; then
24277 $as_echo '.text
24278 foo:
24280 .data
24281 .align 4
24282 .byte 0
24283 .uaword %r_disp32(foo)' > conftest.s
24284 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24285 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24286 (eval $ac_try) 2>&5
24287 ac_status=$?
24288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24289 test $ac_status = 0; }; }
24290 then
24291 if test x$gcc_cv_ld != x \
24292 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24293 gcc_cv_as_sparc_ua_pcrel=yes
24295 rm -f conftest
24296 else
24297 echo "configure: failed program was" >&5
24298 cat conftest.s >&5
24300 rm -f conftest.o conftest.s
24303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24304 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24305 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24307 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24311 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24312 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24313 $as_echo_n "(cached) " >&6
24314 else
24315 gcc_cv_as_sparc_ua_pcrel_hidden=no
24316 if test x$gcc_cv_as != x; then
24317 $as_echo '.data
24318 .align 4
24319 .byte 0x31
24320 .uaword %r_disp32(foo)
24321 .byte 0x32, 0x33, 0x34
24322 .global foo
24323 .hidden foo
24324 foo:
24325 .skip 4' > conftest.s
24326 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24328 (eval $ac_try) 2>&5
24329 ac_status=$?
24330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24331 test $ac_status = 0; }; }
24332 then
24333 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24334 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24335 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24336 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24337 if $gcc_cv_objdump -R conftest 2> /dev/null \
24338 | grep 'DISP32' > /dev/null 2>&1; then
24340 else
24341 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24344 rm -f conftest
24345 else
24346 echo "configure: failed program was" >&5
24347 cat conftest.s >&5
24349 rm -f conftest.o conftest.s
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24353 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24354 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24356 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24360 fi # unaligned pcrel relocs
24362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24363 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24364 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24365 $as_echo_n "(cached) " >&6
24366 else
24367 gcc_cv_as_sparc_offsetable_lo10=no
24368 if test x$gcc_cv_as != x; then
24369 $as_echo '.text
24370 or %g1, %lo(ab) + 12, %g1
24371 or %g1, %lo(ab + 12), %g1' > conftest.s
24372 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24374 (eval $ac_try) 2>&5
24375 ac_status=$?
24376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24377 test $ac_status = 0; }; }
24378 then
24379 if test x$gcc_cv_objdump != x \
24380 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24381 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24382 gcc_cv_as_sparc_offsetable_lo10=yes
24384 else
24385 echo "configure: failed program was" >&5
24386 cat conftest.s >&5
24388 rm -f conftest.o conftest.s
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24392 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24393 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24395 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24400 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24401 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24402 $as_echo_n "(cached) " >&6
24403 else
24404 gcc_cv_as_sparc_fmaf=no
24405 if test x$gcc_cv_as != x; then
24406 $as_echo '.text
24407 .register %g2, #scratch
24408 .register %g3, #scratch
24409 .align 4
24410 fmaddd %f0, %f2, %f4, %f6
24411 addxccc %g1, %g2, %g3
24412 fsrl32 %f2, %f4, %f8
24413 fnaddd %f10, %f12, %f14' > conftest.s
24414 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24416 (eval $ac_try) 2>&5
24417 ac_status=$?
24418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24419 test $ac_status = 0; }; }
24420 then
24421 gcc_cv_as_sparc_fmaf=yes
24422 else
24423 echo "configure: failed program was" >&5
24424 cat conftest.s >&5
24426 rm -f conftest.o conftest.s
24429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24430 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24431 if test $gcc_cv_as_sparc_fmaf = yes; then
24433 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24438 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24439 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24440 $as_echo_n "(cached) " >&6
24441 else
24442 gcc_cv_as_sparc_sparc4=no
24443 if test x$gcc_cv_as != x; then
24444 $as_echo '.text
24445 .register %g2, #scratch
24446 .register %g3, #scratch
24447 .align 4
24448 cxbe %g2, %g3, 1f
24449 1: cwbneg %g2, %g3, 1f
24450 1: sha1
24452 aes_kexpand0 %f4, %f6, %f8
24453 des_round %f38, %f40, %f42, %f44
24454 camellia_f %f54, %f56, %f58, %f60
24455 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24456 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24458 (eval $ac_try) 2>&5
24459 ac_status=$?
24460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24461 test $ac_status = 0; }; }
24462 then
24463 gcc_cv_as_sparc_sparc4=yes
24464 else
24465 echo "configure: failed program was" >&5
24466 cat conftest.s >&5
24468 rm -f conftest.o conftest.s
24471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24472 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24473 if test $gcc_cv_as_sparc_sparc4 = yes; then
24475 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24480 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24481 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24482 $as_echo_n "(cached) " >&6
24483 else
24484 gcc_cv_as_sparc_leon=no
24485 if test x$gcc_cv_as != x; then
24486 $as_echo '.text
24487 .register %g2, #scratch
24488 .register %g3, #scratch
24489 .align 4
24490 smac %g2, %g3, %g1
24491 umac %g2, %g3, %g1
24492 cas [%g2], %g3, %g1' > conftest.s
24493 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24495 (eval $ac_try) 2>&5
24496 ac_status=$?
24497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24498 test $ac_status = 0; }; }
24499 then
24500 gcc_cv_as_sparc_leon=yes
24501 else
24502 echo "configure: failed program was" >&5
24503 cat conftest.s >&5
24505 rm -f conftest.o conftest.s
24508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24509 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24510 if test $gcc_cv_as_sparc_leon = yes; then
24512 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24517 i[34567]86-*-* | x86_64-*-*)
24518 case $target_os in
24519 cygwin*)
24520 # Full C++ conformance when using a shared libstdc++-v3 requires some
24521 # support from the Cygwin DLL, which in more recent versions exports
24522 # wrappers to aid in interposing and redirecting operators new, delete,
24523 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24524 # are configuring for a version of Cygwin that exports the wrappers.
24525 if test x$host = x$target && test x$host_cpu = xi686; then
24526 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24527 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24528 gcc_ac_cygwin_dll_wrappers=yes
24529 else
24530 gcc_ac_cygwin_dll_wrappers=no
24533 else
24534 # Can't check presence of libc functions during cross-compile, so
24535 # we just have to assume we're building for an up-to-date target.
24536 gcc_ac_cygwin_dll_wrappers=yes
24539 cat >>confdefs.h <<_ACEOF
24540 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24541 _ACEOF
24543 esac
24544 case $target_os in
24545 cygwin* | pe | mingw32* | interix*)
24546 # Recent binutils allows the three-operand form of ".comm" on PE. This
24547 # definition is used unconditionally to initialise the default state of
24548 # the target option variable that governs usage of the feature.
24549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24550 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24551 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24552 $as_echo_n "(cached) " >&6
24553 else
24554 gcc_cv_as_comm_has_align=no
24555 if test $in_tree_gas = yes; then
24556 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24557 then gcc_cv_as_comm_has_align=yes
24559 elif test x$gcc_cv_as != x; then
24560 $as_echo '.comm foo,1,32' > conftest.s
24561 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24563 (eval $ac_try) 2>&5
24564 ac_status=$?
24565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24566 test $ac_status = 0; }; }
24567 then
24568 gcc_cv_as_comm_has_align=yes
24569 else
24570 echo "configure: failed program was" >&5
24571 cat conftest.s >&5
24573 rm -f conftest.o conftest.s
24576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24577 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24580 cat >>confdefs.h <<_ACEOF
24581 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24582 _ACEOF
24584 # Used for DWARF 2 in PE
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24586 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24587 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24588 $as_echo_n "(cached) " >&6
24589 else
24590 gcc_cv_as_ix86_pe_secrel32=no
24591 if test $in_tree_gas = yes; then
24592 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24593 then gcc_cv_as_ix86_pe_secrel32=yes
24595 elif test x$gcc_cv_as != x; then
24596 $as_echo '.text
24597 foo: nop
24598 .data
24599 .secrel32 foo' > conftest.s
24600 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24602 (eval $ac_try) 2>&5
24603 ac_status=$?
24604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24605 test $ac_status = 0; }; }
24606 then
24607 if test x$gcc_cv_ld != x \
24608 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24609 gcc_cv_as_ix86_pe_secrel32=yes
24611 rm -f conftest
24612 else
24613 echo "configure: failed program was" >&5
24614 cat conftest.s >&5
24616 rm -f conftest.o conftest.s
24619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24620 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24621 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24623 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24626 # Test if the assembler supports the extended form of the .section
24627 # directive that specifies section alignment. LTO support uses this,
24628 # but normally only after installation, so we warn but don't fail the
24629 # configure if LTO is enabled but the assembler does not support it.
24630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24631 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24632 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24633 $as_echo_n "(cached) " >&6
24634 else
24635 gcc_cv_as_section_has_align=no
24636 if test $in_tree_gas = yes; then
24637 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24638 then gcc_cv_as_section_has_align=yes
24640 elif test x$gcc_cv_as != x; then
24641 $as_echo '.section lto_test,"dr0"' > conftest.s
24642 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24644 (eval $ac_try) 2>&5
24645 ac_status=$?
24646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24647 test $ac_status = 0; }; }
24648 then
24649 gcc_cv_as_section_has_align=yes
24650 else
24651 echo "configure: failed program was" >&5
24652 cat conftest.s >&5
24654 rm -f conftest.o conftest.s
24657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24658 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24660 if test x$gcc_cv_as_section_has_align != xyes; then
24661 case ",$enable_languages," in
24662 *,lto,*)
24663 { $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
24664 $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;}
24666 esac
24668 # Test if the assembler supports the section flag 'e' for specifying
24669 # an excluded section.
24670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24671 $as_echo_n "checking assembler for .section with e... " >&6; }
24672 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24673 $as_echo_n "(cached) " >&6
24674 else
24675 gcc_cv_as_section_has_e=no
24676 if test $in_tree_gas = yes; then
24677 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24678 then gcc_cv_as_section_has_e=yes
24680 elif test x$gcc_cv_as != x; then
24681 $as_echo '.section foo1,"e"
24682 .byte 0,0,0,0' > conftest.s
24683 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24685 (eval $ac_try) 2>&5
24686 ac_status=$?
24687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24688 test $ac_status = 0; }; }
24689 then
24690 gcc_cv_as_section_has_e=yes
24691 else
24692 echo "configure: failed program was" >&5
24693 cat conftest.s >&5
24695 rm -f conftest.o conftest.s
24698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24699 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24702 cat >>confdefs.h <<_ACEOF
24703 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24704 _ACEOF
24707 esac
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24710 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24711 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24712 $as_echo_n "(cached) " >&6
24713 else
24714 gcc_cv_as_ix86_filds=no
24715 if test x$gcc_cv_as != x; then
24716 $as_echo 'filds mem; fists mem' > conftest.s
24717 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24719 (eval $ac_try) 2>&5
24720 ac_status=$?
24721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24722 test $ac_status = 0; }; }
24723 then
24724 gcc_cv_as_ix86_filds=yes
24725 else
24726 echo "configure: failed program was" >&5
24727 cat conftest.s >&5
24729 rm -f conftest.o conftest.s
24732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24733 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24734 if test $gcc_cv_as_ix86_filds = yes; then
24736 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24741 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24742 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24743 $as_echo_n "(cached) " >&6
24744 else
24745 gcc_cv_as_ix86_fildq=no
24746 if test x$gcc_cv_as != x; then
24747 $as_echo 'fildq mem; fistpq mem' > conftest.s
24748 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24750 (eval $ac_try) 2>&5
24751 ac_status=$?
24752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24753 test $ac_status = 0; }; }
24754 then
24755 gcc_cv_as_ix86_fildq=yes
24756 else
24757 echo "configure: failed program was" >&5
24758 cat conftest.s >&5
24760 rm -f conftest.o conftest.s
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24764 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24765 if test $gcc_cv_as_ix86_fildq = yes; then
24767 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24772 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24773 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24774 $as_echo_n "(cached) " >&6
24775 else
24776 gcc_cv_as_ix86_cmov_sun_syntax=no
24777 if test x$gcc_cv_as != x; then
24778 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24779 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24781 (eval $ac_try) 2>&5
24782 ac_status=$?
24783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24784 test $ac_status = 0; }; }
24785 then
24786 gcc_cv_as_ix86_cmov_sun_syntax=yes
24787 else
24788 echo "configure: failed program was" >&5
24789 cat conftest.s >&5
24791 rm -f conftest.o conftest.s
24794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24795 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24796 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24798 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24803 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24804 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24805 $as_echo_n "(cached) " >&6
24806 else
24807 gcc_cv_as_ix86_ffreep=no
24808 if test x$gcc_cv_as != x; then
24809 $as_echo 'ffreep %st(1)' > conftest.s
24810 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24812 (eval $ac_try) 2>&5
24813 ac_status=$?
24814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24815 test $ac_status = 0; }; }
24816 then
24817 gcc_cv_as_ix86_ffreep=yes
24818 else
24819 echo "configure: failed program was" >&5
24820 cat conftest.s >&5
24822 rm -f conftest.o conftest.s
24825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24826 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24827 if test $gcc_cv_as_ix86_ffreep = yes; then
24829 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24834 $as_echo_n "checking assembler for .quad directive... " >&6; }
24835 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24836 $as_echo_n "(cached) " >&6
24837 else
24838 gcc_cv_as_ix86_quad=no
24839 if test x$gcc_cv_as != x; then
24840 $as_echo '.quad 0' > conftest.s
24841 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24843 (eval $ac_try) 2>&5
24844 ac_status=$?
24845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24846 test $ac_status = 0; }; }
24847 then
24848 gcc_cv_as_ix86_quad=yes
24849 else
24850 echo "configure: failed program was" >&5
24851 cat conftest.s >&5
24853 rm -f conftest.o conftest.s
24856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24857 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24858 if test $gcc_cv_as_ix86_quad = yes; then
24860 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24865 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24866 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24867 $as_echo_n "(cached) " >&6
24868 else
24869 gcc_cv_as_ix86_sahf=no
24870 if test x$gcc_cv_as != x; then
24871 $as_echo '.code64
24872 sahf' > conftest.s
24873 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24875 (eval $ac_try) 2>&5
24876 ac_status=$?
24877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24878 test $ac_status = 0; }; }
24879 then
24880 gcc_cv_as_ix86_sahf=yes
24881 else
24882 echo "configure: failed program was" >&5
24883 cat conftest.s >&5
24885 rm -f conftest.o conftest.s
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24889 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24890 if test $gcc_cv_as_ix86_sahf = yes; then
24892 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24897 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24898 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24899 $as_echo_n "(cached) " >&6
24900 else
24901 gcc_cv_as_ix86_interunit_movq=no
24902 if test x$gcc_cv_as != x; then
24903 $as_echo '.code64
24904 movq %mm0, %rax
24905 movq %rax, %xmm0' > conftest.s
24906 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24908 (eval $ac_try) 2>&5
24909 ac_status=$?
24910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24911 test $ac_status = 0; }; }
24912 then
24913 gcc_cv_as_ix86_interunit_movq=yes
24914 else
24915 echo "configure: failed program was" >&5
24916 cat conftest.s >&5
24918 rm -f conftest.o conftest.s
24921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24922 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24925 cat >>confdefs.h <<_ACEOF
24926 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
24927 _ACEOF
24930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24931 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24932 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24933 $as_echo_n "(cached) " >&6
24934 else
24935 gcc_cv_as_ix86_hle=no
24936 if test x$gcc_cv_as != x; then
24937 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24938 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24940 (eval $ac_try) 2>&5
24941 ac_status=$?
24942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24943 test $ac_status = 0; }; }
24944 then
24945 gcc_cv_as_ix86_hle=yes
24946 else
24947 echo "configure: failed program was" >&5
24948 cat conftest.s >&5
24950 rm -f conftest.o conftest.s
24953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24954 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24955 if test $gcc_cv_as_ix86_hle = yes; then
24957 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24962 $as_echo_n "checking assembler for swap suffix... " >&6; }
24963 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24964 $as_echo_n "(cached) " >&6
24965 else
24966 gcc_cv_as_ix86_swap=no
24967 if test x$gcc_cv_as != x; then
24968 $as_echo 'movl.s %esp, %ebp' > conftest.s
24969 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24971 (eval $ac_try) 2>&5
24972 ac_status=$?
24973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24974 test $ac_status = 0; }; }
24975 then
24976 gcc_cv_as_ix86_swap=yes
24977 else
24978 echo "configure: failed program was" >&5
24979 cat conftest.s >&5
24981 rm -f conftest.o conftest.s
24984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24985 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24986 if test $gcc_cv_as_ix86_swap = yes; then
24988 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24993 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24994 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24995 $as_echo_n "(cached) " >&6
24996 else
24997 gcc_cv_as_ix86_diff_sect_delta=no
24998 if test x$gcc_cv_as != x; then
24999 $as_echo '.section .rodata
25000 .L1:
25001 .long .L2-.L1
25002 .long .L3-.L1
25003 .text
25004 .L3: nop
25005 .L2: nop' > conftest.s
25006 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25008 (eval $ac_try) 2>&5
25009 ac_status=$?
25010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25011 test $ac_status = 0; }; }
25012 then
25013 gcc_cv_as_ix86_diff_sect_delta=yes
25014 else
25015 echo "configure: failed program was" >&5
25016 cat conftest.s >&5
25018 rm -f conftest.o conftest.s
25021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25022 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25023 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25025 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25029 # These two are used unconditionally by i386.[ch]; it is to be defined
25030 # to 1 if the feature is present, 0 otherwise.
25031 as_ix86_gotoff_in_data_opt=
25032 if test x$gas = xyes; then
25033 as_ix86_gotoff_in_data_opt="--32"
25035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25036 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25037 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25038 $as_echo_n "(cached) " >&6
25039 else
25040 gcc_cv_as_ix86_gotoff_in_data=no
25041 if test $in_tree_gas = yes; then
25042 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25043 then gcc_cv_as_ix86_gotoff_in_data=yes
25045 elif test x$gcc_cv_as != x; then
25046 $as_echo ' .text
25047 .L0:
25049 .data
25050 .long .L0@GOTOFF' > conftest.s
25051 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25053 (eval $ac_try) 2>&5
25054 ac_status=$?
25055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25056 test $ac_status = 0; }; }
25057 then
25058 gcc_cv_as_ix86_gotoff_in_data=yes
25059 else
25060 echo "configure: failed program was" >&5
25061 cat conftest.s >&5
25063 rm -f conftest.o conftest.s
25066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25067 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25070 cat >>confdefs.h <<_ACEOF
25071 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25072 _ACEOF
25075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25076 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25077 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25078 $as_echo_n "(cached) " >&6
25079 else
25080 gcc_cv_as_ix86_rep_lock_prefix=no
25081 if test x$gcc_cv_as != x; then
25082 $as_echo 'rep movsl
25083 rep ret
25084 rep nop
25085 rep bsf %ecx, %eax
25086 rep bsr %ecx, %eax
25087 lock addl %edi, (%eax,%esi)
25088 lock orl $0, (%esp)' > conftest.s
25089 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25091 (eval $ac_try) 2>&5
25092 ac_status=$?
25093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25094 test $ac_status = 0; }; }
25095 then
25096 gcc_cv_as_ix86_rep_lock_prefix=yes
25097 else
25098 echo "configure: failed program was" >&5
25099 cat conftest.s >&5
25101 rm -f conftest.o conftest.s
25104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25105 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25106 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25108 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25113 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25114 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25115 $as_echo_n "(cached) " >&6
25116 else
25117 gcc_cv_as_ix86_ud2=no
25118 if test x$gcc_cv_as != x; then
25119 $as_echo 'ud2' > conftest.s
25120 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25122 (eval $ac_try) 2>&5
25123 ac_status=$?
25124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25125 test $ac_status = 0; }; }
25126 then
25127 gcc_cv_as_ix86_ud2=yes
25128 else
25129 echo "configure: failed program was" >&5
25130 cat conftest.s >&5
25132 rm -f conftest.o conftest.s
25135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25136 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25137 if test $gcc_cv_as_ix86_ud2 = yes; then
25139 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25144 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25145 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25146 $as_echo_n "(cached) " >&6
25147 else
25148 gcc_cv_as_ix86_tlsgdplt=no
25149 if test x$gcc_cv_as != x; then
25150 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25151 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25153 (eval $ac_try) 2>&5
25154 ac_status=$?
25155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25156 test $ac_status = 0; }; }
25157 then
25158 if test x$gcc_cv_ld != x \
25159 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25160 gcc_cv_as_ix86_tlsgdplt=yes
25162 rm -f conftest
25163 else
25164 echo "configure: failed program was" >&5
25165 cat conftest.s >&5
25167 rm -f conftest.o conftest.s
25170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25171 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25172 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25174 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25179 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25180 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25181 $as_echo_n "(cached) " >&6
25182 else
25183 gcc_cv_as_ix86_tlsldmplt=no
25184 if test x$gcc_cv_as != x; then
25185 $as_echo 'tls_ld:
25186 call tls_ld@tlsldmplt' > conftest.s
25187 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25189 (eval $ac_try) 2>&5
25190 ac_status=$?
25191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25192 test $ac_status = 0; }; }
25193 then
25194 if test x$gcc_cv_ld != x \
25195 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25196 gcc_cv_as_ix86_tlsldmplt=yes
25198 rm -f conftest
25199 else
25200 echo "configure: failed program was" >&5
25201 cat conftest.s >&5
25203 rm -f conftest.o conftest.s
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25207 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25208 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
25210 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
25216 ia64*-*-*)
25217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25218 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25219 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25220 $as_echo_n "(cached) " >&6
25221 else
25222 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25223 if test $in_tree_gas = yes; then
25224 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25225 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25227 elif test x$gcc_cv_as != x; then
25228 $as_echo ' .text
25229 addl r15 = @ltoffx(x#), gp
25231 ld8.mov r16 = [r15], x#' > conftest.s
25232 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25234 (eval $ac_try) 2>&5
25235 ac_status=$?
25236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25237 test $ac_status = 0; }; }
25238 then
25239 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25240 else
25241 echo "configure: failed program was" >&5
25242 cat conftest.s >&5
25244 rm -f conftest.o conftest.s
25247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25248 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25249 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25251 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25257 powerpc*-*-*)
25258 case $target in
25259 *-*-aix*) conftest_s=' .machine "pwr5"
25260 .csect .text[PR]
25261 mfcr 3,128';;
25262 *-*-darwin*)
25263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25264 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25265 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25266 $as_echo_n "(cached) " >&6
25267 else
25268 gcc_cv_as_machine_directive=no
25269 if test x$gcc_cv_as != x; then
25270 $as_echo ' .machine ppc7400' > conftest.s
25271 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25273 (eval $ac_try) 2>&5
25274 ac_status=$?
25275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25276 test $ac_status = 0; }; }
25277 then
25278 gcc_cv_as_machine_directive=yes
25279 else
25280 echo "configure: failed program was" >&5
25281 cat conftest.s >&5
25283 rm -f conftest.o conftest.s
25286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25287 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25289 if test x$gcc_cv_as_machine_directive != xyes; then
25290 echo "*** This target requires an assembler supporting \".machine\"" >&2
25291 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25292 test x$build = x$target && exit 1
25294 conftest_s=' .text
25295 mfcr r3,128';;
25296 *) conftest_s=' .machine power4
25297 .text
25298 mfcr 3,128';;
25299 esac
25301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25302 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25303 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25304 $as_echo_n "(cached) " >&6
25305 else
25306 gcc_cv_as_powerpc_mfcrf=no
25307 if test $in_tree_gas = yes; then
25308 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25309 then gcc_cv_as_powerpc_mfcrf=yes
25311 elif test x$gcc_cv_as != x; then
25312 $as_echo "$conftest_s" > conftest.s
25313 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25315 (eval $ac_try) 2>&5
25316 ac_status=$?
25317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25318 test $ac_status = 0; }; }
25319 then
25320 gcc_cv_as_powerpc_mfcrf=yes
25321 else
25322 echo "configure: failed program was" >&5
25323 cat conftest.s >&5
25325 rm -f conftest.o conftest.s
25328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25329 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25330 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25332 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25336 case $target in
25337 *-*-aix*) conftest_s=' .machine "pwr5"
25338 .csect .text[PR]
25339 popcntb 3,3';;
25340 *) conftest_s=' .machine power5
25341 .text
25342 popcntb 3,3';;
25343 esac
25345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25346 $as_echo_n "checking assembler for popcntb support... " >&6; }
25347 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25348 $as_echo_n "(cached) " >&6
25349 else
25350 gcc_cv_as_powerpc_popcntb=no
25351 if test $in_tree_gas = yes; then
25352 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25353 then gcc_cv_as_powerpc_popcntb=yes
25355 elif test x$gcc_cv_as != x; then
25356 $as_echo "$conftest_s" > conftest.s
25357 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25359 (eval $ac_try) 2>&5
25360 ac_status=$?
25361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25362 test $ac_status = 0; }; }
25363 then
25364 gcc_cv_as_powerpc_popcntb=yes
25365 else
25366 echo "configure: failed program was" >&5
25367 cat conftest.s >&5
25369 rm -f conftest.o conftest.s
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25373 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25374 if test $gcc_cv_as_powerpc_popcntb = yes; then
25376 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25380 case $target in
25381 *-*-aix*) conftest_s=' .machine "pwr5x"
25382 .csect .text[PR]
25383 frin 1,1';;
25384 *) conftest_s=' .machine power5
25385 .text
25386 frin 1,1';;
25387 esac
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25390 $as_echo_n "checking assembler for fp round support... " >&6; }
25391 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25392 $as_echo_n "(cached) " >&6
25393 else
25394 gcc_cv_as_powerpc_fprnd=no
25395 if test $in_tree_gas = yes; then
25396 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25397 then gcc_cv_as_powerpc_fprnd=yes
25399 elif test x$gcc_cv_as != x; then
25400 $as_echo "$conftest_s" > conftest.s
25401 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25403 (eval $ac_try) 2>&5
25404 ac_status=$?
25405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25406 test $ac_status = 0; }; }
25407 then
25408 gcc_cv_as_powerpc_fprnd=yes
25409 else
25410 echo "configure: failed program was" >&5
25411 cat conftest.s >&5
25413 rm -f conftest.o conftest.s
25416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25417 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25418 if test $gcc_cv_as_powerpc_fprnd = yes; then
25420 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25424 case $target in
25425 *-*-aix*) conftest_s=' .machine "pwr6"
25426 .csect .text[PR]
25427 mffgpr 1,3';;
25428 *) conftest_s=' .machine power6
25429 .text
25430 mffgpr 1,3';;
25431 esac
25433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25434 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25435 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25436 $as_echo_n "(cached) " >&6
25437 else
25438 gcc_cv_as_powerpc_mfpgpr=no
25439 if test $in_tree_gas = yes; then
25440 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25441 then gcc_cv_as_powerpc_mfpgpr=yes
25443 elif test x$gcc_cv_as != x; then
25444 $as_echo "$conftest_s" > conftest.s
25445 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25447 (eval $ac_try) 2>&5
25448 ac_status=$?
25449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25450 test $ac_status = 0; }; }
25451 then
25452 gcc_cv_as_powerpc_mfpgpr=yes
25453 else
25454 echo "configure: failed program was" >&5
25455 cat conftest.s >&5
25457 rm -f conftest.o conftest.s
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25461 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25462 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25464 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25468 case $target in
25469 *-*-aix*) conftest_s=' .csect .text[PR]
25470 LCF..0:
25471 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25472 *-*-darwin*)
25473 conftest_s=' .text
25474 LCF0:
25475 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25476 *) conftest_s=' .text
25477 .LCF0:
25478 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25479 esac
25481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25482 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25483 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25484 $as_echo_n "(cached) " >&6
25485 else
25486 gcc_cv_as_powerpc_rel16=no
25487 if test $in_tree_gas = yes; then
25488 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25489 then gcc_cv_as_powerpc_rel16=yes
25491 elif test x$gcc_cv_as != x; then
25492 $as_echo "$conftest_s" > conftest.s
25493 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25495 (eval $ac_try) 2>&5
25496 ac_status=$?
25497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25498 test $ac_status = 0; }; }
25499 then
25500 gcc_cv_as_powerpc_rel16=yes
25501 else
25502 echo "configure: failed program was" >&5
25503 cat conftest.s >&5
25505 rm -f conftest.o conftest.s
25508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25509 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25510 if test $gcc_cv_as_powerpc_rel16 = yes; then
25512 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25516 case $target in
25517 *-*-aix*) conftest_s=' .machine "pwr6"
25518 .csect .text[PR]
25519 cmpb 3,4,5';;
25520 *) conftest_s=' .machine power6
25521 .text
25522 cmpb 3,4,5';;
25523 esac
25525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25526 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25527 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25528 $as_echo_n "(cached) " >&6
25529 else
25530 gcc_cv_as_powerpc_cmpb=no
25531 if test $in_tree_gas = yes; then
25532 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25533 then gcc_cv_as_powerpc_cmpb=yes
25535 elif test x$gcc_cv_as != x; then
25536 $as_echo "$conftest_s" > conftest.s
25537 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25539 (eval $ac_try) 2>&5
25540 ac_status=$?
25541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25542 test $ac_status = 0; }; }
25543 then
25544 gcc_cv_as_powerpc_cmpb=yes
25545 else
25546 echo "configure: failed program was" >&5
25547 cat conftest.s >&5
25549 rm -f conftest.o conftest.s
25552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25553 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25554 if test $gcc_cv_as_powerpc_cmpb = yes; then
25556 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25560 case $target in
25561 *-*-aix*) conftest_s=' .machine "pwr6"
25562 .csect .text[PR]
25563 dadd 1,2,3';;
25564 *) conftest_s=' .machine power6
25565 .text
25566 dadd 1,2,3';;
25567 esac
25569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25570 $as_echo_n "checking assembler for decimal float support... " >&6; }
25571 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25572 $as_echo_n "(cached) " >&6
25573 else
25574 gcc_cv_as_powerpc_dfp=no
25575 if test $in_tree_gas = yes; then
25576 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25577 then gcc_cv_as_powerpc_dfp=yes
25579 elif test x$gcc_cv_as != x; then
25580 $as_echo "$conftest_s" > conftest.s
25581 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25583 (eval $ac_try) 2>&5
25584 ac_status=$?
25585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25586 test $ac_status = 0; }; }
25587 then
25588 gcc_cv_as_powerpc_dfp=yes
25589 else
25590 echo "configure: failed program was" >&5
25591 cat conftest.s >&5
25593 rm -f conftest.o conftest.s
25596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25597 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25598 if test $gcc_cv_as_powerpc_dfp = yes; then
25600 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25604 case $target in
25605 *-*-aix*) conftest_s=' .machine "pwr7"
25606 .csect .text[PR]
25607 lxvd2x 1,2,3';;
25608 *) conftest_s=' .machine power7
25609 .text
25610 lxvd2x 1,2,3';;
25611 esac
25613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25614 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25615 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25616 $as_echo_n "(cached) " >&6
25617 else
25618 gcc_cv_as_powerpc_vsx=no
25619 if test $in_tree_gas = yes; then
25620 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25621 then gcc_cv_as_powerpc_vsx=yes
25623 elif test x$gcc_cv_as != x; then
25624 $as_echo "$conftest_s" > conftest.s
25625 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25627 (eval $ac_try) 2>&5
25628 ac_status=$?
25629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25630 test $ac_status = 0; }; }
25631 then
25632 gcc_cv_as_powerpc_vsx=yes
25633 else
25634 echo "configure: failed program was" >&5
25635 cat conftest.s >&5
25637 rm -f conftest.o conftest.s
25640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25641 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25642 if test $gcc_cv_as_powerpc_vsx = yes; then
25644 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25648 case $target in
25649 *-*-aix*) conftest_s=' .machine "pwr7"
25650 .csect .text[PR]
25651 popcntd 3,3';;
25652 *) conftest_s=' .machine power7
25653 .text
25654 popcntd 3,3';;
25655 esac
25657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25658 $as_echo_n "checking assembler for popcntd support... " >&6; }
25659 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25660 $as_echo_n "(cached) " >&6
25661 else
25662 gcc_cv_as_powerpc_popcntd=no
25663 if test $in_tree_gas = yes; then
25664 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25665 then gcc_cv_as_powerpc_popcntd=yes
25667 elif test x$gcc_cv_as != x; then
25668 $as_echo "$conftest_s" > conftest.s
25669 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25671 (eval $ac_try) 2>&5
25672 ac_status=$?
25673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25674 test $ac_status = 0; }; }
25675 then
25676 gcc_cv_as_powerpc_popcntd=yes
25677 else
25678 echo "configure: failed program was" >&5
25679 cat conftest.s >&5
25681 rm -f conftest.o conftest.s
25684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25685 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25686 if test $gcc_cv_as_powerpc_popcntd = yes; then
25688 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25692 case $target in
25693 *-*-aix*) conftest_s=' .machine "pwr8"
25694 .csect .text[PR]';;
25695 *) conftest_s=' .machine power8
25696 .text';;
25697 esac
25699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25700 $as_echo_n "checking assembler for power8 support... " >&6; }
25701 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25702 $as_echo_n "(cached) " >&6
25703 else
25704 gcc_cv_as_powerpc_power8=no
25705 if test $in_tree_gas = yes; then
25706 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25707 then gcc_cv_as_powerpc_power8=yes
25709 elif test x$gcc_cv_as != x; then
25710 $as_echo "$conftest_s" > conftest.s
25711 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25713 (eval $ac_try) 2>&5
25714 ac_status=$?
25715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25716 test $ac_status = 0; }; }
25717 then
25718 gcc_cv_as_powerpc_power8=yes
25719 else
25720 echo "configure: failed program was" >&5
25721 cat conftest.s >&5
25723 rm -f conftest.o conftest.s
25726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25727 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25728 if test $gcc_cv_as_powerpc_power8 = yes; then
25730 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25734 case $target in
25735 *-*-aix*) conftest_s=' .csect .text[PR]
25736 lwsync';;
25737 *) conftest_s=' .text
25738 lwsync';;
25739 esac
25741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25742 $as_echo_n "checking assembler for lwsync support... " >&6; }
25743 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25744 $as_echo_n "(cached) " >&6
25745 else
25746 gcc_cv_as_powerpc_lwsync=no
25747 if test $in_tree_gas = yes; then
25748 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25749 then gcc_cv_as_powerpc_lwsync=yes
25751 elif test x$gcc_cv_as != x; then
25752 $as_echo "$conftest_s" > conftest.s
25753 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25755 (eval $ac_try) 2>&5
25756 ac_status=$?
25757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25758 test $ac_status = 0; }; }
25759 then
25760 gcc_cv_as_powerpc_lwsync=yes
25761 else
25762 echo "configure: failed program was" >&5
25763 cat conftest.s >&5
25765 rm -f conftest.o conftest.s
25768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25769 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25770 if test $gcc_cv_as_powerpc_lwsync = yes; then
25772 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25776 case $target in
25777 *-*-aix*) conftest_s=' .machine "476"
25778 .csect .text[PR]
25779 dci 0';;
25780 *) conftest_s=' .machine "476"
25781 .text
25782 dci 0';;
25783 esac
25785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25786 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25787 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25788 $as_echo_n "(cached) " >&6
25789 else
25790 gcc_cv_as_powerpc_dci=no
25791 if test $in_tree_gas = yes; then
25792 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25793 then gcc_cv_as_powerpc_dci=yes
25795 elif test x$gcc_cv_as != x; then
25796 $as_echo "$conftest_s" > conftest.s
25797 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25799 (eval $ac_try) 2>&5
25800 ac_status=$?
25801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25802 test $ac_status = 0; }; }
25803 then
25804 gcc_cv_as_powerpc_dci=yes
25805 else
25806 echo "configure: failed program was" >&5
25807 cat conftest.s >&5
25809 rm -f conftest.o conftest.s
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25813 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25814 if test $gcc_cv_as_powerpc_dci = yes; then
25816 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25821 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25822 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25823 $as_echo_n "(cached) " >&6
25824 else
25825 gcc_cv_as_powerpc_gnu_attribute=no
25826 if test $in_tree_gas = yes; then
25827 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25828 then gcc_cv_as_powerpc_gnu_attribute=yes
25830 elif test x$gcc_cv_as != x; then
25831 $as_echo '.gnu_attribute 4,1' > conftest.s
25832 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25834 (eval $ac_try) 2>&5
25835 ac_status=$?
25836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25837 test $ac_status = 0; }; }
25838 then
25839 gcc_cv_as_powerpc_gnu_attribute=yes
25840 else
25841 echo "configure: failed program was" >&5
25842 cat conftest.s >&5
25844 rm -f conftest.o conftest.s
25847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25848 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25849 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25851 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25856 $as_echo_n "checking assembler for tls marker support... " >&6; }
25857 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25858 $as_echo_n "(cached) " >&6
25859 else
25860 gcc_cv_as_powerpc_tls_markers=no
25861 if test $in_tree_gas = yes; then
25862 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25863 then gcc_cv_as_powerpc_tls_markers=yes
25865 elif test x$gcc_cv_as != x; then
25866 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25867 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25869 (eval $ac_try) 2>&5
25870 ac_status=$?
25871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25872 test $ac_status = 0; }; }
25873 then
25874 gcc_cv_as_powerpc_tls_markers=yes
25875 else
25876 echo "configure: failed program was" >&5
25877 cat conftest.s >&5
25879 rm -f conftest.o conftest.s
25882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25883 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25884 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25886 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25890 case $target in
25891 *-*-aix*)
25892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25893 $as_echo_n "checking assembler for .ref support... " >&6; }
25894 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25895 $as_echo_n "(cached) " >&6
25896 else
25897 gcc_cv_as_aix_ref=no
25898 if test $in_tree_gas = yes; then
25899 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25900 then gcc_cv_as_aix_ref=yes
25902 elif test x$gcc_cv_as != x; then
25903 $as_echo ' .csect stuff[rw]
25904 stuff:
25905 .long 1
25906 .extern sym
25907 .ref sym
25908 ' > conftest.s
25909 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25911 (eval $ac_try) 2>&5
25912 ac_status=$?
25913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25914 test $ac_status = 0; }; }
25915 then
25916 gcc_cv_as_aix_ref=yes
25917 else
25918 echo "configure: failed program was" >&5
25919 cat conftest.s >&5
25921 rm -f conftest.o conftest.s
25924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25925 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25926 if test $gcc_cv_as_aix_ref = yes; then
25928 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25932 esac
25935 mips*-*-*)
25936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25937 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25938 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25939 $as_echo_n "(cached) " >&6
25940 else
25941 gcc_cv_as_mips_explicit_relocs=no
25942 if test $in_tree_gas = yes; then
25943 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25944 then gcc_cv_as_mips_explicit_relocs=yes
25946 elif test x$gcc_cv_as != x; then
25947 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25948 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25950 (eval $ac_try) 2>&5
25951 ac_status=$?
25952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25953 test $ac_status = 0; }; }
25954 then
25955 gcc_cv_as_mips_explicit_relocs=yes
25956 else
25957 echo "configure: failed program was" >&5
25958 cat conftest.s >&5
25960 rm -f conftest.o conftest.s
25963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25964 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25965 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25966 if test x$target_cpu_default = x
25967 then target_cpu_default=MASK_EXPLICIT_RELOCS
25968 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25972 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25973 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25974 $as_echo_n "(cached) " >&6
25975 else
25976 gcc_cv_as_mips_no_shared=no
25977 if test $in_tree_gas = yes; then
25978 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25979 then gcc_cv_as_mips_no_shared=yes
25981 elif test x$gcc_cv_as != x; then
25982 $as_echo 'nop' > conftest.s
25983 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25985 (eval $ac_try) 2>&5
25986 ac_status=$?
25987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25988 test $ac_status = 0; }; }
25989 then
25990 gcc_cv_as_mips_no_shared=yes
25991 else
25992 echo "configure: failed program was" >&5
25993 cat conftest.s >&5
25995 rm -f conftest.o conftest.s
25998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25999 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26000 if test $gcc_cv_as_mips_no_shared = yes; then
26002 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26007 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26008 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26009 $as_echo_n "(cached) " >&6
26010 else
26011 gcc_cv_as_mips_gnu_attribute=no
26012 if test $in_tree_gas = yes; then
26013 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26014 then gcc_cv_as_mips_gnu_attribute=yes
26016 elif test x$gcc_cv_as != x; then
26017 $as_echo '.gnu_attribute 4,1' > conftest.s
26018 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26020 (eval $ac_try) 2>&5
26021 ac_status=$?
26022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26023 test $ac_status = 0; }; }
26024 then
26025 gcc_cv_as_mips_gnu_attribute=yes
26026 else
26027 echo "configure: failed program was" >&5
26028 cat conftest.s >&5
26030 rm -f conftest.o conftest.s
26033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26034 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26035 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26037 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26042 $as_echo_n "checking assembler for .micromips support... " >&6; }
26043 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26044 $as_echo_n "(cached) " >&6
26045 else
26046 gcc_cv_as_micromips_support=no
26047 if test x$gcc_cv_as != x; then
26048 $as_echo '.set micromips' > conftest.s
26049 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26051 (eval $ac_try) 2>&5
26052 ac_status=$?
26053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26054 test $ac_status = 0; }; }
26055 then
26056 gcc_cv_as_micromips_support=yes
26057 else
26058 echo "configure: failed program was" >&5
26059 cat conftest.s >&5
26061 rm -f conftest.o conftest.s
26064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26065 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26066 if test $gcc_cv_as_micromips_support = yes; then
26068 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26073 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26074 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26075 $as_echo_n "(cached) " >&6
26076 else
26077 gcc_cv_as_mips_dtprelword=no
26078 if test $in_tree_gas = yes; then
26079 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26080 then gcc_cv_as_mips_dtprelword=yes
26082 elif test x$gcc_cv_as != x; then
26083 $as_echo '.section .tdata,"awT",@progbits
26085 .word 2
26086 .text
26087 .dtprelword x+0x8000' > conftest.s
26088 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26090 (eval $ac_try) 2>&5
26091 ac_status=$?
26092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26093 test $ac_status = 0; }; }
26094 then
26095 gcc_cv_as_mips_dtprelword=yes
26096 else
26097 echo "configure: failed program was" >&5
26098 cat conftest.s >&5
26100 rm -f conftest.o conftest.s
26103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26104 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26105 if test $gcc_cv_as_mips_dtprelword = yes; then
26107 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26112 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26113 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26114 $as_echo_n "(cached) " >&6
26115 else
26116 gcc_cv_as_mips_dspr1_mult=no
26117 if test x$gcc_cv_as != x; then
26118 $as_echo ' .set mips32r2
26119 .set nodspr2
26120 .set dsp
26121 madd $ac3,$4,$5
26122 maddu $ac3,$4,$5
26123 msub $ac3,$4,$5
26124 msubu $ac3,$4,$5
26125 mult $ac3,$4,$5
26126 multu $ac3,$4,$5' > conftest.s
26127 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26129 (eval $ac_try) 2>&5
26130 ac_status=$?
26131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26132 test $ac_status = 0; }; }
26133 then
26134 gcc_cv_as_mips_dspr1_mult=yes
26135 else
26136 echo "configure: failed program was" >&5
26137 cat conftest.s >&5
26139 rm -f conftest.o conftest.s
26142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26143 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26144 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26146 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26151 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26152 gcc_cv_as_ld_jalr_reloc=no
26153 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26154 if test $in_tree_ld = yes ; then
26155 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 \
26156 && test $in_tree_ld_is_elf = yes; then
26157 gcc_cv_as_ld_jalr_reloc=yes
26159 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26160 echo ' .ent x' > conftest.s
26161 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
26162 echo ' ld $25,%call16(y)($28)' >> conftest.s
26163 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26164 echo '1: jalr $25' >> conftest.s
26165 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26166 echo '1: jalr $25' >> conftest.s
26167 echo ' .end x' >> conftest.s
26168 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26169 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26170 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26171 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26172 gcc_cv_as_ld_jalr_reloc=yes
26175 rm -f conftest.*
26178 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26179 if test x$target_cpu_default = x; then
26180 target_cpu_default=MASK_RELAX_PIC_CALLS
26181 else
26182 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26186 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26189 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26190 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26191 $as_echo_n "(cached) " >&6
26192 else
26193 gcc_cv_ld_mips_personality_relaxation=no
26194 if test $in_tree_ld = yes ; then
26195 if test "$gcc_cv_gld_major_version" -eq 2 \
26196 -a "$gcc_cv_gld_minor_version" -ge 21 \
26197 -o "$gcc_cv_gld_major_version" -gt 2; then
26198 gcc_cv_ld_mips_personality_relaxation=yes
26200 elif test x$gcc_cv_as != x \
26201 -a x$gcc_cv_ld != x \
26202 -a x$gcc_cv_readelf != x ; then
26203 cat > conftest.s <<EOF
26204 .cfi_startproc
26205 .cfi_personality 0x80,indirect_ptr
26206 .ent test
26207 test:
26209 .end test
26210 .cfi_endproc
26212 .section .data,"aw",@progbits
26213 indirect_ptr:
26214 .dc.a personality
26216 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26217 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26218 if $gcc_cv_readelf -d conftest 2>&1 \
26219 | grep TEXTREL > /dev/null 2>&1; then
26221 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26222 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26224 else
26225 gcc_cv_ld_mips_personality_relaxation=yes
26229 rm -f conftest.s conftest.o conftest
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26232 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26233 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26235 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26240 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26241 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26242 $as_echo_n "(cached) " >&6
26243 else
26244 gcc_cv_as_mips_nan=no
26245 if test x$gcc_cv_as != x; then
26246 $as_echo '' > conftest.s
26247 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26249 (eval $ac_try) 2>&5
26250 ac_status=$?
26251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26252 test $ac_status = 0; }; }
26253 then
26254 gcc_cv_as_mips_nan=yes
26255 else
26256 echo "configure: failed program was" >&5
26257 cat conftest.s >&5
26259 rm -f conftest.o conftest.s
26262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26263 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26264 if test $gcc_cv_as_mips_nan = yes; then
26266 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26269 if test x$gcc_cv_as_mips_nan = xno \
26270 && test x$with_nan != x; then
26271 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26274 esac
26276 # Mips and HP-UX need the GNU assembler.
26277 # Linux on IA64 might be able to use the Intel assembler.
26279 case "$target" in
26280 mips*-*-* | *-*-hpux* )
26281 if test x$gas_flag = xyes \
26282 || test x"$host" != x"$build" \
26283 || test ! -x "$gcc_cv_as" \
26284 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26286 else
26287 echo "*** This configuration requires the GNU assembler" >&2
26288 exit 1
26291 esac
26293 # ??? Not all targets support dwarf2 debug_line, even within a version
26294 # of gas. Moreover, we need to emit a valid instruction to trigger any
26295 # info to the output file. So, as supported targets are added to gas 2.11,
26296 # add some instruction here to (also) show we expect this might work.
26297 # ??? Once 2.11 is released, probably need to add first known working
26298 # version to the per-target configury.
26299 case "$cpu_type" in
26300 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26301 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26302 | xstormy16 | xtensa)
26303 insn="nop"
26305 ia64 | s390)
26306 insn="nop 0"
26308 mmix)
26309 insn="swym 0"
26311 esac
26312 if test x"$insn" != x; then
26313 conftest_s="\
26314 .file 1 \"conftest.s\"
26315 .loc 1 3 0
26316 $insn"
26317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26318 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26319 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26320 $as_echo_n "(cached) " >&6
26321 else
26322 gcc_cv_as_dwarf2_debug_line=no
26323 if test $in_tree_gas = yes; then
26324 if test $in_tree_gas_is_elf = yes \
26325 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26326 then gcc_cv_as_dwarf2_debug_line=yes
26328 elif test x$gcc_cv_as != x; then
26329 $as_echo "$conftest_s" > conftest.s
26330 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26332 (eval $ac_try) 2>&5
26333 ac_status=$?
26334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26335 test $ac_status = 0; }; }
26336 then
26337 if test x$gcc_cv_objdump != x \
26338 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26339 | grep debug_line > /dev/null 2>&1; then
26340 gcc_cv_as_dwarf2_debug_line=yes
26342 else
26343 echo "configure: failed program was" >&5
26344 cat conftest.s >&5
26346 rm -f conftest.o conftest.s
26349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26350 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26353 # The .debug_line file table must be in the exact order that
26354 # we specified the files, since these indices are also used
26355 # by DW_AT_decl_file. Approximate this test by testing if
26356 # the assembler bitches if the same index is assigned twice.
26357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26358 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26359 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26360 $as_echo_n "(cached) " >&6
26361 else
26362 gcc_cv_as_dwarf2_file_buggy=no
26363 if test x$gcc_cv_as != x; then
26364 $as_echo ' .file 1 "foo.s"
26365 .file 1 "bar.s"' > conftest.s
26366 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26368 (eval $ac_try) 2>&5
26369 ac_status=$?
26370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26371 test $ac_status = 0; }; }
26372 then
26373 gcc_cv_as_dwarf2_file_buggy=yes
26374 else
26375 echo "configure: failed program was" >&5
26376 cat conftest.s >&5
26378 rm -f conftest.o conftest.s
26381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26382 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26385 if test $gcc_cv_as_dwarf2_debug_line = yes \
26386 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26388 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26393 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26394 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26395 $as_echo_n "(cached) " >&6
26396 else
26397 gcc_cv_as_gdwarf2_flag=no
26398 if test $in_tree_gas = yes; then
26399 if test $in_tree_gas_is_elf = yes \
26400 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26401 then gcc_cv_as_gdwarf2_flag=yes
26403 elif test x$gcc_cv_as != x; then
26404 $as_echo "$insn" > conftest.s
26405 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26407 (eval $ac_try) 2>&5
26408 ac_status=$?
26409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26410 test $ac_status = 0; }; }
26411 then
26412 gcc_cv_as_gdwarf2_flag=yes
26413 else
26414 echo "configure: failed program was" >&5
26415 cat conftest.s >&5
26417 rm -f conftest.o conftest.s
26420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26421 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26422 if test $gcc_cv_as_gdwarf2_flag = yes; then
26424 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26429 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26430 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26431 $as_echo_n "(cached) " >&6
26432 else
26433 gcc_cv_as_gstabs_flag=no
26434 if test $in_tree_gas = yes; then
26435 if test $in_tree_gas_is_elf = yes \
26436 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26437 then gcc_cv_as_gstabs_flag=yes
26439 elif test x$gcc_cv_as != x; then
26440 $as_echo "$insn" > conftest.s
26441 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26443 (eval $ac_try) 2>&5
26444 ac_status=$?
26445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26446 test $ac_status = 0; }; }
26447 then
26448 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26449 # and warns about it, but still exits successfully. So check for
26450 # this.
26451 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26452 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26453 (eval $ac_try) 2>&5
26454 ac_status=$?
26455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26456 test $ac_status = 0; }; }
26457 then :
26458 else gcc_cv_as_gstabs_flag=yes
26460 else
26461 echo "configure: failed program was" >&5
26462 cat conftest.s >&5
26464 rm -f conftest.o conftest.s
26467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26468 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26469 if test $gcc_cv_as_gstabs_flag = yes; then
26471 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26476 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26477 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26478 $as_echo_n "(cached) " >&6
26479 else
26480 gcc_cv_as_debug_prefix_map_flag=no
26481 if test $in_tree_gas = yes; then
26482 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26483 then gcc_cv_as_debug_prefix_map_flag=yes
26485 elif test x$gcc_cv_as != x; then
26486 $as_echo "$insn" > conftest.s
26487 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26489 (eval $ac_try) 2>&5
26490 ac_status=$?
26491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26492 test $ac_status = 0; }; }
26493 then
26494 gcc_cv_as_debug_prefix_map_flag=yes
26495 else
26496 echo "configure: failed program was" >&5
26497 cat conftest.s >&5
26499 rm -f conftest.o conftest.s
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26503 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26504 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26506 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26512 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26513 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26514 $as_echo_n "(cached) " >&6
26515 else
26516 gcc_cv_as_lcomm_with_alignment=no
26517 if test x$gcc_cv_as != x; then
26518 $as_echo '.lcomm bar,4,16' > conftest.s
26519 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26521 (eval $ac_try) 2>&5
26522 ac_status=$?
26523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26524 test $ac_status = 0; }; }
26525 then
26526 gcc_cv_as_lcomm_with_alignment=yes
26527 else
26528 echo "configure: failed program was" >&5
26529 cat conftest.s >&5
26531 rm -f conftest.o conftest.s
26534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26535 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26536 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26538 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26542 if test x$with_sysroot = x && test x$host = x$target \
26543 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26544 && test "$prefix" != "NONE"; then
26546 cat >>confdefs.h <<_ACEOF
26547 #define PREFIX_INCLUDE_DIR "$prefix/include"
26548 _ACEOF
26552 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26553 if test "x$with_headers" != x; then
26554 target_header_dir=$with_headers
26555 elif test "x$with_sysroot" = x; then
26556 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
26557 elif test "x$with_build_sysroot" != "x"; then
26558 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26559 elif test "x$with_sysroot" = xyes; then
26560 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26561 else
26562 target_header_dir="${with_sysroot}${native_system_header_dir}"
26564 else
26565 target_header_dir=${native_system_header_dir}
26568 # Determine the version of glibc, if any, used on the target.
26569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26570 $as_echo_n "checking for target glibc version... " >&6; }
26572 # Check whether --with-glibc-version was given.
26573 if test "${with_glibc_version+set}" = set; then :
26574 withval=$with_glibc_version;
26575 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26576 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26577 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26578 else
26579 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
26581 else
26583 glibc_version_major=0
26584 glibc_version_minor=0
26585 if test -f $target_header_dir/features.h \
26586 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26587 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26588 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26589 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26594 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26596 # Check whether --enable-gnu-unique-object was given.
26597 if test "${enable_gnu_unique_object+set}" = set; then :
26598 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26599 yes | no) ;;
26600 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26601 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26602 esac
26603 else
26604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26605 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26606 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26607 $as_echo_n "(cached) " >&6
26608 else
26609 gcc_cv_as_gnu_unique_object=no
26610 if test $in_tree_gas = yes; then
26611 if test $in_tree_gas_is_elf = yes \
26612 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26613 then gcc_cv_as_gnu_unique_object=yes
26615 elif test x$gcc_cv_as != x; then
26616 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26617 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26619 (eval $ac_try) 2>&5
26620 ac_status=$?
26621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26622 test $ac_status = 0; }; }
26623 then
26624 gcc_cv_as_gnu_unique_object=yes
26625 else
26626 echo "configure: failed program was" >&5
26627 cat conftest.s >&5
26629 rm -f conftest.o conftest.s
26632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26633 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26634 if test $gcc_cv_as_gnu_unique_object = yes; then
26635 # We need to unquote above to to use the definition from config.gcc.
26636 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26638 if test $glibc_version_major -gt 2 \
26639 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26640 enable_gnu_unique_object=yes
26646 if test x$enable_gnu_unique_object = xyes; then
26648 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26653 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26654 if test "${gcc_cv_as_line_zero+set}" = set; then :
26655 $as_echo_n "(cached) " >&6
26656 else
26657 gcc_cv_as_line_zero=no
26658 if test $in_tree_gas = yes; then
26659 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26660 then gcc_cv_as_line_zero=yes
26662 elif test "x$gcc_cv_as" != x; then
26663 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26664 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26666 (eval $ac_try) 2>&5
26667 ac_status=$?
26668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26669 test $ac_status = 0; }; } &&
26670 test "x`cat conftest.out`" = x
26671 then
26672 gcc_cv_as_line_zero=yes
26673 else
26674 echo "configure: failed program was" >&5
26675 cat conftest.s >&5
26676 echo "configure: error output was" >&5
26677 cat conftest.out >&5
26679 rm -f conftest.o conftest.s conftest.out
26682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26683 $as_echo "$gcc_cv_as_line_zero" >&6; }
26684 if test "x$gcc_cv_as_line_zero" = xyes; then
26686 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26691 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26692 gcc_cv_ld_eh_frame_hdr=no
26693 if test $in_tree_ld = yes ; then
26694 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 \
26695 && test $in_tree_ld_is_elf = yes; then
26696 gcc_cv_ld_eh_frame_hdr=yes
26698 elif test x$gcc_cv_ld != x; then
26699 if echo "$ld_ver" | grep GNU > /dev/null; then
26700 # Check if linker supports --eh-frame-hdr option
26701 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26702 gcc_cv_ld_eh_frame_hdr=yes
26704 else
26705 case "$target" in
26706 *-*-solaris2*)
26707 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26708 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26709 gcc_cv_ld_eh_frame_hdr=yes
26712 esac
26716 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26718 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26722 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26725 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26726 gcc_cv_ld_eh_frame_ciev3=no
26727 if test $in_tree_ld = yes ; then
26728 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 \
26729 && test $in_tree_ld_is_elf = yes; then
26730 gcc_cv_ld_eh_frame_ciev3=yes
26732 elif test x$gcc_cv_ld != x; then
26733 if echo "$ld_ver" | grep GNU > /dev/null; then
26734 gcc_cv_ld_eh_frame_ciev3=yes
26735 if test 0"$ld_date" -lt 20040513; then
26736 if test -n "$ld_date"; then
26737 # If there was date string, but was earlier than 2004-05-13, fail
26738 gcc_cv_ld_eh_frame_ciev3=no
26739 elif test "$ld_vers_major" -lt 2; then
26740 gcc_cv_ld_eh_frame_ciev3=no
26741 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26742 gcc_cv_ld_eh_frame_ciev3=no
26745 else
26746 case "$target" in
26747 *-*-solaris2*)
26748 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26749 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
26750 gcc_cv_ld_eh_frame_ciev3=yes
26753 esac
26757 cat >>confdefs.h <<_ACEOF
26758 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26759 _ACEOF
26761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26762 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26765 $as_echo_n "checking linker position independent executable support... " >&6; }
26766 gcc_cv_ld_pie=no
26767 if test $in_tree_ld = yes ; then
26768 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
26769 && test $in_tree_ld_is_elf = yes; then
26770 gcc_cv_ld_pie=yes
26772 elif test x$gcc_cv_ld != x; then
26773 # Check if linker supports -pie option
26774 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26775 gcc_cv_ld_pie=yes
26778 if test x"$gcc_cv_ld_pie" = xyes; then
26780 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26784 $as_echo "$gcc_cv_ld_pie" >&6; }
26786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26787 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26788 gcc_cv_ld_eh_gc_sections=no
26789 if test $in_tree_ld = yes ; then
26790 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 \
26791 && test $in_tree_ld_is_elf = yes; then
26792 gcc_cv_ld_eh_gc_sections=yes
26794 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26795 cat > conftest.s <<EOF
26796 .section .text
26797 .globl _start
26798 .type _start, @function
26799 _start:
26800 .long foo
26801 .size _start, .-_start
26802 .section .text.foo,"ax",@progbits
26803 .type foo, @function
26804 foo:
26805 .long 0
26806 .size foo, .-foo
26807 .section .gcc_except_table.foo,"a",@progbits
26808 .L0:
26809 .long 0
26810 .section .eh_frame,"a",@progbits
26811 .long .L0
26813 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26814 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26815 | grep "gc-sections option ignored" > /dev/null; then
26816 gcc_cv_ld_eh_gc_sections=no
26817 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26818 | grep gcc_except_table > /dev/null; then
26819 gcc_cv_ld_eh_gc_sections=yes
26820 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26821 if test x$gcc_cv_as_comdat_group != xyes; then
26822 gcc_cv_ld_eh_gc_sections=no
26823 cat > conftest.s <<EOF
26824 .section .text
26825 .globl _start
26826 .type _start, @function
26827 _start:
26828 .long foo
26829 .size _start, .-_start
26830 .section .gnu.linkonce.t.foo,"ax",@progbits
26831 .type foo, @function
26832 foo:
26833 .long 0
26834 .size foo, .-foo
26835 .section .gcc_except_table.foo,"a",@progbits
26836 .L0:
26837 .long 0
26838 .section .eh_frame,"a",@progbits
26839 .long .L0
26841 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26842 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26843 | grep "gc-sections option ignored" > /dev/null; then
26844 gcc_cv_ld_eh_gc_sections=no
26845 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26846 | grep gcc_except_table > /dev/null; then
26847 gcc_cv_ld_eh_gc_sections=yes
26853 rm -f conftest.s conftest.o conftest
26855 case "$target" in
26856 hppa*-*-linux*)
26857 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26858 gcc_cv_ld_eh_gc_sections=no
26860 esac
26861 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26863 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26867 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26870 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26871 gcc_cv_ld_eh_gc_sections_bug=no
26872 if test $in_tree_ld = yes ; then
26873 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 \
26874 && test $in_tree_ld_is_elf = yes; then
26875 gcc_cv_ld_eh_gc_sections_bug=yes
26877 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
26878 gcc_cv_ld_eh_gc_sections_bug=yes
26879 cat > conftest.s <<EOF
26880 .section .text
26881 .globl _start
26882 .type _start, @function
26883 _start:
26884 .long foo
26885 .size _start, .-_start
26886 .section .text.startup.foo,"ax",@progbits
26887 .type foo, @function
26888 foo:
26889 .long 0
26890 .size foo, .-foo
26891 .section .gcc_except_table.foo,"a",@progbits
26892 .L0:
26893 .long 0
26894 .section .eh_frame,"a",@progbits
26895 .long .L0
26897 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26898 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26899 | grep "gc-sections option ignored" > /dev/null; then
26901 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26902 | grep gcc_except_table > /dev/null; then
26903 gcc_cv_ld_eh_gc_sections_bug=no
26906 rm -f conftest.s conftest.o conftest
26908 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26910 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26914 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26916 # --------
26917 # UNSORTED
26918 # --------
26920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26921 $as_echo_n "checking linker --as-needed support... " >&6; }
26922 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26923 $as_echo_n "(cached) " >&6
26924 else
26925 gcc_cv_ld_as_needed=no
26926 gcc_cv_ld_as_needed_option='--as-needed'
26927 gcc_cv_ld_no_as_needed_option='--no-as-needed'
26928 if test $in_tree_ld = yes ; then
26929 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 \
26930 && test $in_tree_ld_is_elf = yes; then
26931 gcc_cv_ld_as_needed=yes
26933 elif test x$gcc_cv_ld != x; then
26934 # Check if linker supports --as-needed and --no-as-needed options
26935 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26936 gcc_cv_ld_as_needed=yes
26937 else
26938 case "$target" in
26939 # Solaris 2 ld always supports -z ignore/-z record.
26940 *-*-solaris2*)
26941 gcc_cv_ld_as_needed=yes
26942 gcc_cv_ld_as_needed_option="-z ignore"
26943 gcc_cv_ld_no_as_needed_option="-z record"
26945 esac
26948 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
26949 # dl_iterate_phdr, i.e. since Solaris 11.
26950 case "$target" in
26951 *-*-solaris2.1[1-9]*)
26952 case "$target" in
26953 i?86-*-* | x86_64-*-*)
26954 if echo "$ld_ver" | grep GNU > /dev/null; then
26955 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
26956 gcc_cv_ld_as_needed=no
26959 esac
26961 *-*-solaris2*)
26962 gcc_cv_ld_as_needed=no
26964 esac
26967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26968 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26969 if test x"$gcc_cv_ld_as_needed" = xyes; then
26971 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26974 cat >>confdefs.h <<_ACEOF
26975 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
26976 _ACEOF
26979 cat >>confdefs.h <<_ACEOF
26980 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
26981 _ACEOF
26985 case "$target:$tm_file" in
26986 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26987 case "$target" in
26988 *le-*-linux*)
26989 emul_name="-melf64lppc"
26991 *-*-linux*)
26992 emul_name="-melf64ppc"
26994 *-*-freebsd*)
26995 emul_name="-melf64ppc_fbsd"
26997 esac
26998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26999 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27000 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27001 $as_echo_n "(cached) " >&6
27002 else
27003 gcc_cv_ld_no_dot_syms=no
27004 if test x"$ld_is_gold" = xyes; then
27005 gcc_cv_ld_no_dot_syms=yes
27006 elif test $in_tree_ld = yes ; then
27007 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
27008 gcc_cv_ld_no_dot_syms=yes
27010 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27011 cat > conftest1.s <<EOF
27012 .text
27013 bl .foo
27015 cat > conftest2.s <<EOF
27016 .section ".opd","aw"
27017 .align 3
27018 .globl foo
27019 .type foo,@function
27020 foo:
27021 .quad .LEfoo,.TOC.@tocbase,0
27022 .text
27023 .LEfoo:
27025 .size foo,.-.LEfoo
27027 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27028 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27029 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27030 gcc_cv_ld_no_dot_syms=yes
27032 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27037 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27038 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27040 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27045 $as_echo_n "checking linker large toc support... " >&6; }
27046 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27047 $as_echo_n "(cached) " >&6
27048 else
27049 gcc_cv_ld_large_toc=no
27050 if test x"$ld_is_gold" = xyes; then
27051 gcc_cv_ld_large_toc=yes
27052 elif test $in_tree_ld = yes ; then
27053 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
27054 gcc_cv_ld_large_toc=yes
27056 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27057 cat > conftest.s <<EOF
27058 .section ".tbss","awT",@nobits
27059 .align 3
27060 ie0: .space 8
27061 .global _start
27062 .text
27063 _start:
27064 addis 9,13,ie0@got@tprel@ha
27065 ld 9,ie0@got@tprel@l(9)
27067 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27068 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27069 gcc_cv_ld_large_toc=yes
27071 rm -f conftest conftest.o conftest.s
27075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27076 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27077 if test x"$gcc_cv_ld_large_toc" = xyes; then
27079 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27083 esac
27085 case "$target" in
27086 *-*-aix*)
27087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27088 $as_echo_n "checking linker large toc support... " >&6; }
27089 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27090 $as_echo_n "(cached) " >&6
27091 else
27092 gcc_cv_ld_large_toc=no
27093 if test x$gcc_cv_as != x ; then
27094 cat > conftest.s <<EOF
27095 .toc
27096 LC..1:
27097 .tc a[TC],a[RW]
27098 .extern a[RW]
27099 .csect .text[PR]
27100 .largetoctest:
27101 addis 9,LC..1@u(2)
27102 ld 3,LC..1@l(9)
27104 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27105 gcc_cv_ld_large_toc=yes
27107 rm -f conftest conftest.o conftest.s
27111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27112 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27113 if test x"$gcc_cv_ld_large_toc" = xyes; then
27115 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27119 esac
27121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27122 $as_echo_n "checking linker --build-id support... " >&6; }
27123 if test "${gcc_cv_ld_buildid+set}" = set; then :
27124 $as_echo_n "(cached) " >&6
27125 else
27126 gcc_cv_ld_buildid=no
27127 if test $in_tree_ld = yes ; then
27128 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27129 "$gcc_cv_gld_minor_version" -ge 18 -o \
27130 "$gcc_cv_gld_major_version" -gt 2 \
27131 && test $in_tree_ld_is_elf = yes; then
27132 gcc_cv_ld_buildid=yes
27134 elif test x$gcc_cv_ld != x; then
27135 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
27136 gcc_cv_ld_buildid=yes
27140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27141 $as_echo "$gcc_cv_ld_buildid" >&6; }
27142 if test x"$gcc_cv_ld_buildid" = xyes; then
27144 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27148 # Check whether --enable-linker-build-id was given.
27149 if test "${enable_linker_build_id+set}" = set; then :
27150 enableval=$enable_linker_build_id;
27151 else
27152 enable_linker_build_id=no
27156 if test x"$enable_linker_build_id" = xyes; then
27157 if test x"$gcc_cv_ld_buildid" = xyes; then
27159 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27161 else
27162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27163 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27167 # In binutils 2.21, GNU ld gained support for new emulations fully
27168 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27170 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27171 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27172 $as_echo_n "(cached) " >&6
27173 else
27174 gcc_cv_ld_sol2_emulation=no
27175 if test $in_tree_ld = yes ; then
27176 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27177 "$gcc_cv_gld_minor_version" -ge 21 -o \
27178 "$gcc_cv_gld_major_version" -gt 2 \
27179 && test $in_tree_ld_is_elf = yes; then
27180 gcc_cv_ld_sol2_emulation=yes
27182 elif test x$gcc_cv_ld != x; then
27183 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27184 grep _sol2 > /dev/null; then
27185 gcc_cv_ld_sol2_emulation=yes
27189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27190 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27191 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27193 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27198 $as_echo_n "checking linker --sysroot support... " >&6; }
27199 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27200 $as_echo_n "(cached) " >&6
27201 else
27202 gcc_cv_ld_sysroot=no
27203 if test $in_tree_ld = yes ; then
27204 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
27205 gcc_cv_ld_sysroot=yes
27207 elif test x$gcc_cv_ld != x; then
27208 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27209 gcc_cv_ld_sysroot=yes
27213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27214 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27215 if test x"$gcc_cv_ld_sysroot" = xyes; then
27217 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27221 # Test for stack protector support in target C library.
27222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27223 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27224 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27225 $as_echo_n "(cached) " >&6
27226 else
27227 gcc_cv_libc_provides_ssp=no
27228 case "$target" in
27229 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27230 # glibc 2.4 and later provides __stack_chk_fail and
27231 # either __stack_chk_guard, or TLS access to stack guard canary.
27233 if test $glibc_version_major -gt 2 \
27234 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27235 gcc_cv_libc_provides_ssp=yes
27236 else
27238 if test -f $target_header_dir/features.h \
27239 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27240 $target_header_dir/features.h > /dev/null; then
27241 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27242 $target_header_dir/features.h > /dev/null && \
27243 test -f $target_header_dir/bits/uClibc_config.h && \
27244 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27245 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27246 gcc_cv_libc_provides_ssp=yes
27248 # all versions of Bionic support stack protector
27249 elif test -f $target_header_dir/sys/cdefs.h \
27250 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27251 $target_header_dir/sys/cdefs.h > /dev/null; then
27252 gcc_cv_libc_provides_ssp=yes
27256 *-*-gnu*)
27257 # Avoid complicated tests (see
27258 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27259 # simply assert that glibc does provide this, which is true for all
27260 # realistically usable GNU/Hurd configurations.
27261 gcc_cv_libc_provides_ssp=yes;;
27262 *-*-darwin* | *-*-freebsd*)
27263 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27264 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27265 gcc_cv_libc_provides_ssp=yes
27266 else
27267 echo "no __stack_chk_fail on this target"
27271 *) gcc_cv_libc_provides_ssp=no ;;
27272 esac
27274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27275 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27277 if test x$gcc_cv_libc_provides_ssp = xyes; then
27279 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27283 # Test for <sys/sdt.h> on the target.
27285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27286 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27287 have_sys_sdt_h=no
27288 if test -f $target_header_dir/sys/sdt.h; then
27289 have_sys_sdt_h=yes
27291 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27295 $as_echo "$have_sys_sdt_h" >&6; }
27297 # Check if TFmode long double should be used by default or not.
27298 # Some glibc targets used DFmode long double, but with glibc 2.4
27299 # and later they can use TFmode.
27300 case "$target" in
27301 powerpc*-*-linux* | \
27302 sparc*-*-linux* | \
27303 s390*-*-linux* | \
27304 alpha*-*-linux*)
27306 # Check whether --with-long-double-128 was given.
27307 if test "${with_long_double_128+set}" = set; then :
27308 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27309 else
27311 if test $glibc_version_major -gt 2 \
27312 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27313 gcc_cv_target_ldbl128=yes
27314 else
27316 gcc_cv_target_ldbl128=no
27317 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27318 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27319 && gcc_cv_target_ldbl128=yes
27325 esac
27326 if test x$gcc_cv_target_ldbl128 = xyes; then
27328 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27333 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27334 gcc_cv_target_dl_iterate_phdr=unknown
27335 case "$target" in
27336 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27337 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27338 # libdl there, both complicating its use and breaking compatibility
27339 # between Solaris 10 updates.
27340 *-*-solaris2.1[1-9]*)
27341 # <link.h> needs both a dl_iterate_phdr declaration and support for
27342 # compilation with largefile support.
27343 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27344 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27345 gcc_cv_target_dl_iterate_phdr=yes
27346 else
27347 gcc_cv_target_dl_iterate_phdr=no
27350 esac
27352 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27354 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27358 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27360 # We no longer support different GC mechanisms. Emit an error if
27361 # the user configures with --with-gc.
27363 # Check whether --with-gc was given.
27364 if test "${with_gc+set}" = set; then :
27365 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27369 # Libraries to use on the host. This will normally be set by the top
27370 # level Makefile. Here we simply capture the value for our Makefile.
27371 if test -z "${HOST_LIBS+set}"; then
27372 HOST_LIBS=
27376 # Use the system's zlib library.
27377 zlibdir=-L../zlib
27378 zlibinc="-I\$(srcdir)/../zlib"
27380 # Check whether --with-system-zlib was given.
27381 if test "${with_system_zlib+set}" = set; then :
27382 withval=$with_system_zlib; zlibdir=
27383 zlibinc=
27391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27392 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27393 # Check whether --enable-maintainer-mode was given.
27394 if test "${enable_maintainer_mode+set}" = set; then :
27395 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27396 else
27397 maintainer_mode=no
27401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27402 $as_echo "$maintainer_mode" >&6; }
27404 if test "$maintainer_mode" = "yes"; then
27405 MAINT=''
27406 else
27407 MAINT='#'
27411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27412 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27413 # Check whether --enable-link-mutex was given.
27414 if test "${enable_link_mutex+set}" = set; then :
27415 enableval=$enable_link_mutex; do_link_mutex=$enableval
27416 else
27417 do_link_mutex=no
27420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27421 $as_echo "$do_link_mutex" >&6; }
27423 if test "$do_link_mutex" = "yes"; then
27424 DO_LINK_MUTEX=true
27425 else
27426 DO_LINK_MUTEX=false
27430 # --------------
27431 # Language hooks
27432 # --------------
27434 # Make empty files to contain the specs and options for each language.
27435 # Then add #include lines to for a compiler that has specs and/or options.
27437 subdirs=
27438 lang_opt_files=
27439 lang_specs_files=
27440 lang_tree_files=
27441 # These (without "all_") are set in each config-lang.in.
27442 # `language' must be a single word so is spelled singularly.
27443 all_languages=
27444 all_compilers=
27445 all_outputs='Makefile'
27446 # List of language makefile fragments.
27447 all_lang_makefrags=
27448 # Additional files for gengtype
27449 all_gtfiles="$target_gtfiles"
27451 # These are the languages that are set in --enable-languages,
27452 # and are available in the GCC tree.
27453 all_selected_languages=
27455 # Add the language fragments.
27456 # Languages are added via two mechanisms. Some information must be
27457 # recorded in makefile variables, these are defined in config-lang.in.
27458 # We accumulate them and plug them into the main Makefile.
27459 # The other mechanism is a set of hooks for each of the main targets
27460 # like `clean', `install', etc.
27462 language_hooks="Make-hooks"
27464 for lang in ${srcdir}/*/config-lang.in
27466 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27468 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27469 if test "x$lang_alias" = x
27470 then
27471 echo "$lang doesn't set \$language." 1>&2
27472 exit 1
27474 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27475 subdirs="$subdirs $subdir"
27477 # $gcc_subdir is where the gcc integration files are to be found
27478 # for a language, both for internal compiler purposes (compiler
27479 # sources implementing front-end to GCC tree converters), and for
27480 # build infrastructure purposes (Make-lang.in, etc.)
27482 # This will be <subdir> (relative to $srcdir) if a line like
27483 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27484 # is found in <langdir>/config-lang.in, and will remain <langdir>
27485 # otherwise.
27487 # Except for the language alias (fetched above), the regular
27488 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27489 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27490 # only this and the language alias.
27492 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27493 if [ "$gcc_subdir" = "" ]; then
27494 gcc_subdir="$subdir"
27497 case ",$enable_languages," in
27498 *,$lang_alias,*)
27499 all_selected_languages="$all_selected_languages $lang_alias"
27500 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27501 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27504 esac
27506 language=
27507 boot_language=
27508 compilers=
27509 outputs=
27510 gtfiles=
27511 subdir_requires=
27512 . ${srcdir}/$gcc_subdir/config-lang.in
27513 if test "x$language" = x
27514 then
27515 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27516 exit 1
27519 ok=:
27520 case ",$enable_languages," in
27521 *,$lang_alias,*) ;;
27523 for i in $subdir_requires; do
27524 test -f "${srcdir}/$i/config-lang.in" && continue
27525 ok=false
27526 break
27527 done
27529 esac
27530 $ok || continue
27532 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27533 if test -f $srcdir/$gcc_subdir/lang.opt; then
27534 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27535 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27537 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27538 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27540 all_languages="$all_languages $language"
27541 all_compilers="$all_compilers $compilers"
27542 all_outputs="$all_outputs $outputs"
27543 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27544 case ",$enable_languages," in
27545 *,lto,*)
27547 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27549 enable_lto=yes
27552 *) ;;
27553 esac
27554 done
27556 check_languages=
27557 for language in $all_selected_languages
27559 check_languages="$check_languages check-$language"
27560 done
27562 # We link each language in with a set of hooks, reached indirectly via
27563 # lang.${target}. Only do so for selected languages.
27565 rm -f Make-hooks
27566 touch Make-hooks
27567 target_list="all.cross start.encap rest.encap tags \
27568 install-common install-man install-info install-pdf install-html dvi \
27569 pdf html uninstall info man srcextra srcman srcinfo \
27570 mostlyclean clean distclean maintainer-clean install-plugin"
27572 for t in $target_list
27575 for lang in $all_selected_languages
27577 x="$x $lang.$t"
27578 done
27579 echo "lang.$t: $x" >> Make-hooks
27580 done
27582 # --------
27583 # Option include files
27584 # --------
27586 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27587 option_includes="option-includes.mk"
27590 # --------
27591 # UNSORTED
27592 # --------
27594 # Create .gdbinit.
27596 echo "dir ." > .gdbinit
27597 echo "dir ${srcdir}" >> .gdbinit
27598 if test x$gdb_needs_out_file_path = xyes
27599 then
27600 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27602 if test "x$subdirs" != x; then
27603 for s in $subdirs
27605 echo "dir ${srcdir}/$s" >> .gdbinit
27606 done
27608 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27609 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27611 # Put a breakpoint on __asan_report_error to help with debugging buffer
27612 # overflow.
27613 case "$CFLAGS" in
27614 *-fsanitize=address*)
27615 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
27617 esac
27619 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27623 # Find a directory in which to install a shared libgcc.
27625 # Check whether --enable-version-specific-runtime-libs was given.
27626 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27627 enableval=$enable_version_specific_runtime_libs;
27631 # Substitute configuration variables
27694 # Echo link setup.
27695 if test x${build} = x${host} ; then
27696 if test x${host} = x${target} ; then
27697 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27698 else
27699 echo "Links are now set up to build a cross-compiler" 1>&2
27700 echo " from ${host} to ${target}." 1>&2
27702 else
27703 if test x${host} = x${target} ; then
27704 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27705 echo " for ${target}." 1>&2
27706 else
27707 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27708 echo " from ${host} to ${target}." 1>&2
27720 if test "x${CLOOGLIBS}" != "x" ; then
27722 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27726 # Check for plugin support
27727 # Check whether --enable-plugin was given.
27728 if test "${enable_plugin+set}" = set; then :
27729 enableval=$enable_plugin; enable_plugin=$enableval
27730 else
27731 enable_plugin=yes; default_plugin=yes
27735 pluginlibs=
27737 case "${host}" in
27738 *-*-darwin*)
27739 if test x$build = x$host; then
27740 export_sym_check="nm${exeext} -g"
27741 elif test x$host = x$target; then
27742 export_sym_check="$gcc_cv_nm -g"
27743 else
27744 export_sym_check=
27748 if test x$build = x$host; then
27749 export_sym_check="objdump${exeext} -T"
27750 elif test x$host = x$target; then
27751 export_sym_check="$gcc_cv_objdump -T"
27752 else
27753 export_sym_check=
27756 esac
27758 if test x"$enable_plugin" = x"yes"; then
27760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27761 $as_echo_n "checking for exported symbols... " >&6; }
27762 if test "x$export_sym_check" != x; then
27763 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27764 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27765 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27766 : # No need to use a flag
27767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27768 $as_echo "yes" >&6; }
27769 else
27770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27771 $as_echo "yes" >&6; }
27772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27773 $as_echo_n "checking for -rdynamic... " >&6; }
27774 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27775 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27776 plugin_rdynamic=yes
27777 pluginlibs="-rdynamic"
27778 else
27779 plugin_rdynamic=no
27780 enable_plugin=no
27782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27783 $as_echo "$plugin_rdynamic" >&6; }
27785 else
27786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27787 $as_echo "unable to check" >&6; }
27790 # Check -ldl
27791 saved_LIBS="$LIBS"
27792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27793 $as_echo_n "checking for library containing dlopen... " >&6; }
27794 if test "${ac_cv_search_dlopen+set}" = set; then :
27795 $as_echo_n "(cached) " >&6
27796 else
27797 ac_func_search_save_LIBS=$LIBS
27798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27799 /* end confdefs.h. */
27801 /* Override any GCC internal prototype to avoid an error.
27802 Use char because int might match the return type of a GCC
27803 builtin and then its argument prototype would still apply. */
27804 #ifdef __cplusplus
27805 extern "C"
27806 #endif
27807 char dlopen ();
27809 main ()
27811 return dlopen ();
27813 return 0;
27815 _ACEOF
27816 for ac_lib in '' dl; do
27817 if test -z "$ac_lib"; then
27818 ac_res="none required"
27819 else
27820 ac_res=-l$ac_lib
27821 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27823 if ac_fn_c_try_link "$LINENO"; then :
27824 ac_cv_search_dlopen=$ac_res
27826 rm -f core conftest.err conftest.$ac_objext \
27827 conftest$ac_exeext
27828 if test "${ac_cv_search_dlopen+set}" = set; then :
27829 break
27831 done
27832 if test "${ac_cv_search_dlopen+set}" = set; then :
27834 else
27835 ac_cv_search_dlopen=no
27837 rm conftest.$ac_ext
27838 LIBS=$ac_func_search_save_LIBS
27840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27841 $as_echo "$ac_cv_search_dlopen" >&6; }
27842 ac_res=$ac_cv_search_dlopen
27843 if test "$ac_res" != no; then :
27844 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27848 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27849 pluginlibs="$pluginlibs -ldl"
27851 LIBS="$saved_LIBS"
27853 # Check that we can build shared objects with -fPIC -shared
27854 saved_LDFLAGS="$LDFLAGS"
27855 saved_CFLAGS="$CFLAGS"
27856 case "${host}" in
27857 *-*-darwin*)
27858 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27859 CFLAGS="$CFLAGS -fPIC"
27860 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27863 CFLAGS="$CFLAGS -fPIC"
27864 LDFLAGS="$LDFLAGS -fPIC -shared"
27866 esac
27867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27868 $as_echo_n "checking for -fPIC -shared... " >&6; }
27869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27870 /* end confdefs.h. */
27871 extern int X;
27873 main ()
27875 return X == 0;
27877 return 0;
27879 _ACEOF
27880 if ac_fn_c_try_link "$LINENO"; then :
27881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27882 $as_echo "yes" >&6; }; have_pic_shared=yes
27883 else
27884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27885 $as_echo "no" >&6; }; have_pic_shared=no
27887 rm -f core conftest.err conftest.$ac_objext \
27888 conftest$ac_exeext conftest.$ac_ext
27889 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27890 pluginlibs=
27891 enable_plugin=no
27893 LDFLAGS="$saved_LDFLAGS"
27894 CFLAGS="$saved_CFLAGS"
27896 # If plugin support had been requested but not available, fail.
27897 if test x"$enable_plugin" = x"no" ; then
27898 if test x"$default_plugin" != x"yes"; then
27899 as_fn_error "
27900 Building GCC with plugin support requires a host that supports
27901 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27908 if test x"$enable_plugin" = x"yes"; then
27910 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27915 # Enable --enable-host-shared
27916 # Check whether --enable-host-shared was given.
27917 if test "${enable_host_shared+set}" = set; then :
27918 enableval=$enable_host_shared; PICFLAG=-fPIC
27919 else
27920 PICFLAG=
27927 # Check whether --enable-libquadmath-support was given.
27928 if test "${enable_libquadmath_support+set}" = set; then :
27929 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27930 else
27931 ENABLE_LIBQUADMATH_SUPPORT=yes
27934 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27936 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27941 # Specify what hash style to use by default.
27943 # Check whether --with-linker-hash-style was given.
27944 if test "${with_linker_hash_style+set}" = set; then :
27945 withval=$with_linker_hash_style; case x"$withval" in
27946 xsysv)
27947 LINKER_HASH_STYLE=sysv
27949 xgnu)
27950 LINKER_HASH_STYLE=gnu
27952 xboth)
27953 LINKER_HASH_STYLE=both
27956 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27958 esac
27959 else
27960 LINKER_HASH_STYLE=''
27963 if test x"${LINKER_HASH_STYLE}" != x; then
27965 cat >>confdefs.h <<_ACEOF
27966 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27967 _ACEOF
27971 # Configure the subdirectories
27972 # AC_CONFIG_SUBDIRS($subdirs)
27974 # Create the Makefile
27975 # and configure language subdirectories
27976 ac_config_files="$ac_config_files $all_outputs"
27979 ac_config_commands="$ac_config_commands default"
27981 cat >confcache <<\_ACEOF
27982 # This file is a shell script that caches the results of configure
27983 # tests run on this system so they can be shared between configure
27984 # scripts and configure runs, see configure's option --config-cache.
27985 # It is not useful on other systems. If it contains results you don't
27986 # want to keep, you may remove or edit it.
27988 # config.status only pays attention to the cache file if you give it
27989 # the --recheck option to rerun configure.
27991 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27992 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27993 # following values.
27995 _ACEOF
27997 # The following way of writing the cache mishandles newlines in values,
27998 # but we know of no workaround that is simple, portable, and efficient.
27999 # So, we kill variables containing newlines.
28000 # Ultrix sh set writes to stderr and can't be redirected directly,
28001 # and sets the high bit in the cache file unless we assign to the vars.
28003 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28004 eval ac_val=\$$ac_var
28005 case $ac_val in #(
28006 *${as_nl}*)
28007 case $ac_var in #(
28008 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28009 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28010 esac
28011 case $ac_var in #(
28012 _ | IFS | as_nl) ;; #(
28013 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28014 *) { eval $ac_var=; unset $ac_var;} ;;
28015 esac ;;
28016 esac
28017 done
28019 (set) 2>&1 |
28020 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28021 *${as_nl}ac_space=\ *)
28022 # `set' does not quote correctly, so add quotes: double-quote
28023 # substitution turns \\\\ into \\, and sed turns \\ into \.
28024 sed -n \
28025 "s/'/'\\\\''/g;
28026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28027 ;; #(
28029 # `set' quotes correctly as required by POSIX, so do not add quotes.
28030 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28032 esac |
28033 sort
28035 sed '
28036 /^ac_cv_env_/b end
28037 t clear
28038 :clear
28039 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28040 t end
28041 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28042 :end' >>confcache
28043 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28044 if test -w "$cache_file"; then
28045 test "x$cache_file" != "x/dev/null" &&
28046 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28047 $as_echo "$as_me: updating cache $cache_file" >&6;}
28048 cat confcache >$cache_file
28049 else
28050 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28051 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28054 rm -f confcache
28056 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28057 # Let make expand exec_prefix.
28058 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28060 DEFS=-DHAVE_CONFIG_H
28062 ac_libobjs=
28063 ac_ltlibobjs=
28064 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28065 # 1. Remove the extension, and $U if already installed.
28066 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28067 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28068 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28069 # will be set to the directory where LIBOBJS objects are built.
28070 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28071 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28072 done
28073 LIBOBJS=$ac_libobjs
28075 LTLIBOBJS=$ac_ltlibobjs
28080 : ${CONFIG_STATUS=./config.status}
28081 ac_write_fail=0
28082 ac_clean_files_save=$ac_clean_files
28083 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28084 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28085 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28086 as_write_fail=0
28087 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28088 #! $SHELL
28089 # Generated by $as_me.
28090 # Run this file to recreate the current configuration.
28091 # Compiler output produced by configure, useful for debugging
28092 # configure, is in config.log if it exists.
28094 debug=false
28095 ac_cs_recheck=false
28096 ac_cs_silent=false
28098 SHELL=\${CONFIG_SHELL-$SHELL}
28099 export SHELL
28100 _ASEOF
28101 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28102 ## -------------------- ##
28103 ## M4sh Initialization. ##
28104 ## -------------------- ##
28106 # Be more Bourne compatible
28107 DUALCASE=1; export DUALCASE # for MKS sh
28108 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28109 emulate sh
28110 NULLCMD=:
28111 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28112 # is contrary to our usage. Disable this feature.
28113 alias -g '${1+"$@"}'='"$@"'
28114 setopt NO_GLOB_SUBST
28115 else
28116 case `(set -o) 2>/dev/null` in #(
28117 *posix*) :
28118 set -o posix ;; #(
28119 *) :
28121 esac
28125 as_nl='
28127 export as_nl
28128 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28129 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28130 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28131 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28132 # Prefer a ksh shell builtin over an external printf program on Solaris,
28133 # but without wasting forks for bash or zsh.
28134 if test -z "$BASH_VERSION$ZSH_VERSION" \
28135 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28136 as_echo='print -r --'
28137 as_echo_n='print -rn --'
28138 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28139 as_echo='printf %s\n'
28140 as_echo_n='printf %s'
28141 else
28142 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28143 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28144 as_echo_n='/usr/ucb/echo -n'
28145 else
28146 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28147 as_echo_n_body='eval
28148 arg=$1;
28149 case $arg in #(
28150 *"$as_nl"*)
28151 expr "X$arg" : "X\\(.*\\)$as_nl";
28152 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28153 esac;
28154 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28156 export as_echo_n_body
28157 as_echo_n='sh -c $as_echo_n_body as_echo'
28159 export as_echo_body
28160 as_echo='sh -c $as_echo_body as_echo'
28163 # The user is always right.
28164 if test "${PATH_SEPARATOR+set}" != set; then
28165 PATH_SEPARATOR=:
28166 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28167 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28168 PATH_SEPARATOR=';'
28173 # IFS
28174 # We need space, tab and new line, in precisely that order. Quoting is
28175 # there to prevent editors from complaining about space-tab.
28176 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28177 # splitting by setting IFS to empty value.)
28178 IFS=" "" $as_nl"
28180 # Find who we are. Look in the path if we contain no directory separator.
28181 case $0 in #((
28182 *[\\/]* ) as_myself=$0 ;;
28183 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28184 for as_dir in $PATH
28186 IFS=$as_save_IFS
28187 test -z "$as_dir" && as_dir=.
28188 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28189 done
28190 IFS=$as_save_IFS
28193 esac
28194 # We did not find ourselves, most probably we were run as `sh COMMAND'
28195 # in which case we are not to be found in the path.
28196 if test "x$as_myself" = x; then
28197 as_myself=$0
28199 if test ! -f "$as_myself"; then
28200 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28201 exit 1
28204 # Unset variables that we do not need and which cause bugs (e.g. in
28205 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28206 # suppresses any "Segmentation fault" message there. '((' could
28207 # trigger a bug in pdksh 5.2.14.
28208 for as_var in BASH_ENV ENV MAIL MAILPATH
28209 do eval test x\${$as_var+set} = xset \
28210 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28211 done
28212 PS1='$ '
28213 PS2='> '
28214 PS4='+ '
28216 # NLS nuisances.
28217 LC_ALL=C
28218 export LC_ALL
28219 LANGUAGE=C
28220 export LANGUAGE
28222 # CDPATH.
28223 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28226 # as_fn_error ERROR [LINENO LOG_FD]
28227 # ---------------------------------
28228 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28229 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28230 # script with status $?, using 1 if that was 0.
28231 as_fn_error ()
28233 as_status=$?; test $as_status -eq 0 && as_status=1
28234 if test "$3"; then
28235 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28236 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28238 $as_echo "$as_me: error: $1" >&2
28239 as_fn_exit $as_status
28240 } # as_fn_error
28243 # as_fn_set_status STATUS
28244 # -----------------------
28245 # Set $? to STATUS, without forking.
28246 as_fn_set_status ()
28248 return $1
28249 } # as_fn_set_status
28251 # as_fn_exit STATUS
28252 # -----------------
28253 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28254 as_fn_exit ()
28256 set +e
28257 as_fn_set_status $1
28258 exit $1
28259 } # as_fn_exit
28261 # as_fn_unset VAR
28262 # ---------------
28263 # Portably unset VAR.
28264 as_fn_unset ()
28266 { eval $1=; unset $1;}
28268 as_unset=as_fn_unset
28269 # as_fn_append VAR VALUE
28270 # ----------------------
28271 # Append the text in VALUE to the end of the definition contained in VAR. Take
28272 # advantage of any shell optimizations that allow amortized linear growth over
28273 # repeated appends, instead of the typical quadratic growth present in naive
28274 # implementations.
28275 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28276 eval 'as_fn_append ()
28278 eval $1+=\$2
28280 else
28281 as_fn_append ()
28283 eval $1=\$$1\$2
28285 fi # as_fn_append
28287 # as_fn_arith ARG...
28288 # ------------------
28289 # Perform arithmetic evaluation on the ARGs, and store the result in the
28290 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28291 # must be portable across $(()) and expr.
28292 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28293 eval 'as_fn_arith ()
28295 as_val=$(( $* ))
28297 else
28298 as_fn_arith ()
28300 as_val=`expr "$@" || test $? -eq 1`
28302 fi # as_fn_arith
28305 if expr a : '\(a\)' >/dev/null 2>&1 &&
28306 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28307 as_expr=expr
28308 else
28309 as_expr=false
28312 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28313 as_basename=basename
28314 else
28315 as_basename=false
28318 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28319 as_dirname=dirname
28320 else
28321 as_dirname=false
28324 as_me=`$as_basename -- "$0" ||
28325 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28326 X"$0" : 'X\(//\)$' \| \
28327 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28328 $as_echo X/"$0" |
28329 sed '/^.*\/\([^/][^/]*\)\/*$/{
28330 s//\1/
28333 /^X\/\(\/\/\)$/{
28334 s//\1/
28337 /^X\/\(\/\).*/{
28338 s//\1/
28341 s/.*/./; q'`
28343 # Avoid depending upon Character Ranges.
28344 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28345 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28346 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28347 as_cr_digits='0123456789'
28348 as_cr_alnum=$as_cr_Letters$as_cr_digits
28350 ECHO_C= ECHO_N= ECHO_T=
28351 case `echo -n x` in #(((((
28352 -n*)
28353 case `echo 'xy\c'` in
28354 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28355 xy) ECHO_C='\c';;
28356 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28357 ECHO_T=' ';;
28358 esac;;
28360 ECHO_N='-n';;
28361 esac
28363 rm -f conf$$ conf$$.exe conf$$.file
28364 if test -d conf$$.dir; then
28365 rm -f conf$$.dir/conf$$.file
28366 else
28367 rm -f conf$$.dir
28368 mkdir conf$$.dir 2>/dev/null
28370 if (echo >conf$$.file) 2>/dev/null; then
28371 if ln -s conf$$.file conf$$ 2>/dev/null; then
28372 as_ln_s='ln -s'
28373 # ... but there are two gotchas:
28374 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28375 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28376 # In both cases, we have to default to `cp -p'.
28377 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28378 as_ln_s='cp -p'
28379 elif ln conf$$.file conf$$ 2>/dev/null; then
28380 as_ln_s=ln
28381 else
28382 as_ln_s='cp -p'
28384 else
28385 as_ln_s='cp -p'
28387 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28388 rmdir conf$$.dir 2>/dev/null
28391 # as_fn_mkdir_p
28392 # -------------
28393 # Create "$as_dir" as a directory, including parents if necessary.
28394 as_fn_mkdir_p ()
28397 case $as_dir in #(
28398 -*) as_dir=./$as_dir;;
28399 esac
28400 test -d "$as_dir" || eval $as_mkdir_p || {
28401 as_dirs=
28402 while :; do
28403 case $as_dir in #(
28404 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28405 *) as_qdir=$as_dir;;
28406 esac
28407 as_dirs="'$as_qdir' $as_dirs"
28408 as_dir=`$as_dirname -- "$as_dir" ||
28409 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28410 X"$as_dir" : 'X\(//\)[^/]' \| \
28411 X"$as_dir" : 'X\(//\)$' \| \
28412 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28413 $as_echo X"$as_dir" |
28414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28415 s//\1/
28418 /^X\(\/\/\)[^/].*/{
28419 s//\1/
28422 /^X\(\/\/\)$/{
28423 s//\1/
28426 /^X\(\/\).*/{
28427 s//\1/
28430 s/.*/./; q'`
28431 test -d "$as_dir" && break
28432 done
28433 test -z "$as_dirs" || eval "mkdir $as_dirs"
28434 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28437 } # as_fn_mkdir_p
28438 if mkdir -p . 2>/dev/null; then
28439 as_mkdir_p='mkdir -p "$as_dir"'
28440 else
28441 test -d ./-p && rmdir ./-p
28442 as_mkdir_p=false
28445 if test -x / >/dev/null 2>&1; then
28446 as_test_x='test -x'
28447 else
28448 if ls -dL / >/dev/null 2>&1; then
28449 as_ls_L_option=L
28450 else
28451 as_ls_L_option=
28453 as_test_x='
28454 eval sh -c '\''
28455 if test -d "$1"; then
28456 test -d "$1/.";
28457 else
28458 case $1 in #(
28459 -*)set "./$1";;
28460 esac;
28461 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28462 ???[sx]*):;;*)false;;esac;fi
28463 '\'' sh
28466 as_executable_p=$as_test_x
28468 # Sed expression to map a string onto a valid CPP name.
28469 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28471 # Sed expression to map a string onto a valid variable name.
28472 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28475 exec 6>&1
28476 ## ----------------------------------- ##
28477 ## Main body of $CONFIG_STATUS script. ##
28478 ## ----------------------------------- ##
28479 _ASEOF
28480 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28483 # Save the log message, to keep $0 and so on meaningful, and to
28484 # report actual input values of CONFIG_FILES etc. instead of their
28485 # values after options handling.
28486 ac_log="
28487 This file was extended by $as_me, which was
28488 generated by GNU Autoconf 2.64. Invocation command line was
28490 CONFIG_FILES = $CONFIG_FILES
28491 CONFIG_HEADERS = $CONFIG_HEADERS
28492 CONFIG_LINKS = $CONFIG_LINKS
28493 CONFIG_COMMANDS = $CONFIG_COMMANDS
28494 $ $0 $@
28496 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28499 _ACEOF
28501 case $ac_config_files in *"
28502 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28503 esac
28505 case $ac_config_headers in *"
28506 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28507 esac
28510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28511 # Files that config.status was made for.
28512 config_files="$ac_config_files"
28513 config_headers="$ac_config_headers"
28514 config_commands="$ac_config_commands"
28516 _ACEOF
28518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28519 ac_cs_usage="\
28520 \`$as_me' instantiates files and other configuration actions
28521 from templates according to the current configuration. Unless the files
28522 and actions are specified as TAGs, all are instantiated by default.
28524 Usage: $0 [OPTION]... [TAG]...
28526 -h, --help print this help, then exit
28527 -V, --version print version number and configuration settings, then exit
28528 -q, --quiet, --silent
28529 do not print progress messages
28530 -d, --debug don't remove temporary files
28531 --recheck update $as_me by reconfiguring in the same conditions
28532 --file=FILE[:TEMPLATE]
28533 instantiate the configuration file FILE
28534 --header=FILE[:TEMPLATE]
28535 instantiate the configuration header FILE
28537 Configuration files:
28538 $config_files
28540 Configuration headers:
28541 $config_headers
28543 Configuration commands:
28544 $config_commands
28546 Report bugs to the package provider."
28548 _ACEOF
28549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28550 ac_cs_version="\\
28551 config.status
28552 configured by $0, generated by GNU Autoconf 2.64,
28553 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28555 Copyright (C) 2009 Free Software Foundation, Inc.
28556 This config.status script is free software; the Free Software Foundation
28557 gives unlimited permission to copy, distribute and modify it."
28559 ac_pwd='$ac_pwd'
28560 srcdir='$srcdir'
28561 AWK='$AWK'
28562 test -n "\$AWK" || AWK=awk
28563 _ACEOF
28565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28566 # The default lists apply if the user does not specify any file.
28567 ac_need_defaults=:
28568 while test $# != 0
28570 case $1 in
28571 --*=*)
28572 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28573 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28574 ac_shift=:
28577 ac_option=$1
28578 ac_optarg=$2
28579 ac_shift=shift
28581 esac
28583 case $ac_option in
28584 # Handling of the options.
28585 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28586 ac_cs_recheck=: ;;
28587 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28588 $as_echo "$ac_cs_version"; exit ;;
28589 --debug | --debu | --deb | --de | --d | -d )
28590 debug=: ;;
28591 --file | --fil | --fi | --f )
28592 $ac_shift
28593 case $ac_optarg in
28594 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28595 esac
28596 as_fn_append CONFIG_FILES " '$ac_optarg'"
28597 ac_need_defaults=false;;
28598 --header | --heade | --head | --hea )
28599 $ac_shift
28600 case $ac_optarg in
28601 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28602 esac
28603 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28604 ac_need_defaults=false;;
28605 --he | --h)
28606 # Conflict between --help and --header
28607 as_fn_error "ambiguous option: \`$1'
28608 Try \`$0 --help' for more information.";;
28609 --help | --hel | -h )
28610 $as_echo "$ac_cs_usage"; exit ;;
28611 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28612 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28613 ac_cs_silent=: ;;
28615 # This is an error.
28616 -*) as_fn_error "unrecognized option: \`$1'
28617 Try \`$0 --help' for more information." ;;
28619 *) as_fn_append ac_config_targets " $1"
28620 ac_need_defaults=false ;;
28622 esac
28623 shift
28624 done
28626 ac_configure_extra_args=
28628 if $ac_cs_silent; then
28629 exec 6>/dev/null
28630 ac_configure_extra_args="$ac_configure_extra_args --silent"
28633 _ACEOF
28634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28635 if \$ac_cs_recheck; then
28636 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28637 shift
28638 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28639 CONFIG_SHELL='$SHELL'
28640 export CONFIG_SHELL
28641 exec "\$@"
28644 _ACEOF
28645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28646 exec 5>>config.log
28648 echo
28649 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28650 ## Running $as_me. ##
28651 _ASBOX
28652 $as_echo "$ac_log"
28653 } >&5
28655 _ACEOF
28656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28658 # INIT-COMMANDS
28660 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28661 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28662 subdirs='$subdirs'
28664 _ACEOF
28666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28668 # Handling of arguments.
28669 for ac_config_target in $ac_config_targets
28671 case $ac_config_target in
28672 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28673 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
28674 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
28675 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28676 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28677 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28678 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28679 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28681 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28682 esac
28683 done
28686 # If the user did not use the arguments to specify the items to instantiate,
28687 # then the envvar interface is used. Set only those that are not.
28688 # We use the long form for the default assignment because of an extremely
28689 # bizarre bug on SunOS 4.1.3.
28690 if $ac_need_defaults; then
28691 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28692 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28693 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28696 # Have a temporary directory for convenience. Make it in the build tree
28697 # simply because there is no reason against having it here, and in addition,
28698 # creating and moving files from /tmp can sometimes cause problems.
28699 # Hook for its removal unless debugging.
28700 # Note that there is a small window in which the directory will not be cleaned:
28701 # after its creation but before its name has been assigned to `$tmp'.
28702 $debug ||
28704 tmp=
28705 trap 'exit_status=$?
28706 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28708 trap 'as_fn_exit 1' 1 2 13 15
28710 # Create a (secure) tmp directory for tmp files.
28713 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28714 test -n "$tmp" && test -d "$tmp"
28715 } ||
28717 tmp=./conf$$-$RANDOM
28718 (umask 077 && mkdir "$tmp")
28719 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28721 # Set up the scripts for CONFIG_FILES section.
28722 # No need to generate them if there are no CONFIG_FILES.
28723 # This happens for instance with `./config.status config.h'.
28724 if test -n "$CONFIG_FILES"; then
28726 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28727 ac_cs_awk_getline=:
28728 ac_cs_awk_pipe_init=
28729 ac_cs_awk_read_file='
28730 while ((getline aline < (F[key])) > 0)
28731 print(aline)
28732 close(F[key])'
28733 ac_cs_awk_pipe_fini=
28734 else
28735 ac_cs_awk_getline=false
28736 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28737 ac_cs_awk_read_file='
28738 print "|#_!!_#|"
28739 print "cat " F[key] " &&"
28740 '$ac_cs_awk_pipe_init
28741 # The final `:' finishes the AND list.
28742 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28744 ac_cr=`echo X | tr X '\015'`
28745 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28746 # But we know of no other shell where ac_cr would be empty at this
28747 # point, so we can use a bashism as a fallback.
28748 if test "x$ac_cr" = x; then
28749 eval ac_cr=\$\'\\r\'
28751 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28752 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28753 ac_cs_awk_cr='\r'
28754 else
28755 ac_cs_awk_cr=$ac_cr
28758 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28759 _ACEOF
28761 # Create commands to substitute file output variables.
28763 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28764 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28765 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28766 echo "_ACAWK" &&
28767 echo "_ACEOF"
28768 } >conf$$files.sh &&
28769 . ./conf$$files.sh ||
28770 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28771 rm -f conf$$files.sh
28774 echo "cat >conf$$subs.awk <<_ACEOF" &&
28775 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28776 echo "_ACEOF"
28777 } >conf$$subs.sh ||
28778 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28779 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28780 ac_delim='%!_!# '
28781 for ac_last_try in false false false false false :; do
28782 . ./conf$$subs.sh ||
28783 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28785 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28786 if test $ac_delim_n = $ac_delim_num; then
28787 break
28788 elif $ac_last_try; then
28789 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28790 else
28791 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28793 done
28794 rm -f conf$$subs.sh
28796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28797 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28798 _ACEOF
28799 sed -n '
28801 s/^/S["/; s/!.*/"]=/
28804 s/^[^!]*!//
28805 :repl
28806 t repl
28807 s/'"$ac_delim"'$//
28808 t delim
28811 s/\(.\{148\}\).*/\1/
28812 t more1
28813 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28816 b repl
28817 :more1
28818 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28821 s/.\{148\}//
28822 t nl
28823 :delim
28825 s/\(.\{148\}\).*/\1/
28826 t more2
28827 s/["\\]/\\&/g; s/^/"/; s/$/"/
28830 :more2
28831 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28834 s/.\{148\}//
28835 t delim
28836 ' <conf$$subs.awk | sed '
28837 /^[^""]/{
28839 s/\n//
28841 ' >>$CONFIG_STATUS || ac_write_fail=1
28842 rm -f conf$$subs.awk
28843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28844 _ACAWK
28845 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28846 for (key in S) S_is_set[key] = 1
28847 FS = "\a"
28848 \$ac_cs_awk_pipe_init
28851 line = $ 0
28852 nfields = split(line, field, "@")
28853 substed = 0
28854 len = length(field[1])
28855 for (i = 2; i < nfields; i++) {
28856 key = field[i]
28857 keylen = length(key)
28858 if (S_is_set[key]) {
28859 value = S[key]
28860 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28861 len += length(value) + length(field[++i])
28862 substed = 1
28863 } else
28864 len += 1 + keylen
28866 if (nfields == 3 && !substed) {
28867 key = field[2]
28868 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28869 \$ac_cs_awk_read_file
28870 next
28873 print line
28875 \$ac_cs_awk_pipe_fini
28876 _ACAWK
28877 _ACEOF
28878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28879 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28880 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28881 else
28883 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28884 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28885 _ACEOF
28887 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28888 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28889 # trailing colons and then remove the whole line if VPATH becomes empty
28890 # (actually we leave an empty line to preserve line numbers).
28891 if test "x$srcdir" = x.; then
28892 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28893 s/:*\$(srcdir):*/:/
28894 s/:*\${srcdir}:*/:/
28895 s/:*@srcdir@:*/:/
28896 s/^\([^=]*=[ ]*\):*/\1/
28897 s/:*$//
28898 s/^[^=]*=[ ]*$//
28902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28903 fi # test -n "$CONFIG_FILES"
28905 # Set up the scripts for CONFIG_HEADERS section.
28906 # No need to generate them if there are no CONFIG_HEADERS.
28907 # This happens for instance with `./config.status Makefile'.
28908 if test -n "$CONFIG_HEADERS"; then
28909 cat >"$tmp/defines.awk" <<\_ACAWK ||
28910 BEGIN {
28911 _ACEOF
28913 # Transform confdefs.h into an awk script `defines.awk', embedded as
28914 # here-document in config.status, that substitutes the proper values into
28915 # config.h.in to produce config.h.
28917 # Create a delimiter string that does not exist in confdefs.h, to ease
28918 # handling of long lines.
28919 ac_delim='%!_!# '
28920 for ac_last_try in false false :; do
28921 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28922 if test -z "$ac_t"; then
28923 break
28924 elif $ac_last_try; then
28925 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28926 else
28927 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28929 done
28931 # For the awk script, D is an array of macro values keyed by name,
28932 # likewise P contains macro parameters if any. Preserve backslash
28933 # newline sequences.
28935 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28936 sed -n '
28937 s/.\{148\}/&'"$ac_delim"'/g
28938 t rset
28939 :rset
28940 s/^[ ]*#[ ]*define[ ][ ]*/ /
28941 t def
28943 :def
28944 s/\\$//
28945 t bsnl
28946 s/["\\]/\\&/g
28947 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28948 D["\1"]=" \3"/p
28949 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28951 :bsnl
28952 s/["\\]/\\&/g
28953 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28954 D["\1"]=" \3\\\\\\n"\\/p
28955 t cont
28956 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28957 t cont
28959 :cont
28961 s/.\{148\}/&'"$ac_delim"'/g
28962 t clear
28963 :clear
28964 s/\\$//
28965 t bsnlc
28966 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28968 :bsnlc
28969 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28970 b cont
28971 ' <confdefs.h | sed '
28972 s/'"$ac_delim"'/"\\\
28973 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28976 for (key in D) D_is_set[key] = 1
28977 FS = "\a"
28979 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28980 line = \$ 0
28981 split(line, arg, " ")
28982 if (arg[1] == "#") {
28983 defundef = arg[2]
28984 mac1 = arg[3]
28985 } else {
28986 defundef = substr(arg[1], 2)
28987 mac1 = arg[2]
28989 split(mac1, mac2, "(") #)
28990 macro = mac2[1]
28991 prefix = substr(line, 1, index(line, defundef) - 1)
28992 if (D_is_set[macro]) {
28993 # Preserve the white space surrounding the "#".
28994 print prefix "define", macro P[macro] D[macro]
28995 next
28996 } else {
28997 # Replace #undef with comments. This is necessary, for example,
28998 # in the case of _POSIX_SOURCE, which is predefined and required
28999 # on some systems where configure will not decide to define it.
29000 if (defundef == "undef") {
29001 print "/*", prefix defundef, macro, "*/"
29002 next
29006 { print }
29007 _ACAWK
29008 _ACEOF
29009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29010 as_fn_error "could not setup config headers machinery" "$LINENO" 5
29011 fi # test -n "$CONFIG_HEADERS"
29014 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
29015 shift
29016 for ac_tag
29018 case $ac_tag in
29019 :[FHLC]) ac_mode=$ac_tag; continue;;
29020 esac
29021 case $ac_mode$ac_tag in
29022 :[FHL]*:*);;
29023 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29024 :[FH]-) ac_tag=-:-;;
29025 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29026 esac
29027 ac_save_IFS=$IFS
29028 IFS=:
29029 set x $ac_tag
29030 IFS=$ac_save_IFS
29031 shift
29032 ac_file=$1
29033 shift
29035 case $ac_mode in
29036 :L) ac_source=$1;;
29037 :[FH])
29038 ac_file_inputs=
29039 for ac_f
29041 case $ac_f in
29042 -) ac_f="$tmp/stdin";;
29043 *) # Look for the file first in the build tree, then in the source tree
29044 # (if the path is not absolute). The absolute path cannot be DOS-style,
29045 # because $ac_f cannot contain `:'.
29046 test -f "$ac_f" ||
29047 case $ac_f in
29048 [\\/$]*) false;;
29049 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29050 esac ||
29051 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29052 esac
29053 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29054 as_fn_append ac_file_inputs " '$ac_f'"
29055 done
29057 # Let's still pretend it is `configure' which instantiates (i.e., don't
29058 # use $as_me), people would be surprised to read:
29059 # /* config.h. Generated by config.status. */
29060 configure_input='Generated from '`
29061 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29062 `' by configure.'
29063 if test x"$ac_file" != x-; then
29064 configure_input="$ac_file. $configure_input"
29065 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29066 $as_echo "$as_me: creating $ac_file" >&6;}
29068 # Neutralize special characters interpreted by sed in replacement strings.
29069 case $configure_input in #(
29070 *\&* | *\|* | *\\* )
29071 ac_sed_conf_input=`$as_echo "$configure_input" |
29072 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29073 *) ac_sed_conf_input=$configure_input;;
29074 esac
29076 case $ac_tag in
29077 *:-:* | *:-) cat >"$tmp/stdin" \
29078 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
29079 esac
29081 esac
29083 ac_dir=`$as_dirname -- "$ac_file" ||
29084 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29085 X"$ac_file" : 'X\(//\)[^/]' \| \
29086 X"$ac_file" : 'X\(//\)$' \| \
29087 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29088 $as_echo X"$ac_file" |
29089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29090 s//\1/
29093 /^X\(\/\/\)[^/].*/{
29094 s//\1/
29097 /^X\(\/\/\)$/{
29098 s//\1/
29101 /^X\(\/\).*/{
29102 s//\1/
29105 s/.*/./; q'`
29106 as_dir="$ac_dir"; as_fn_mkdir_p
29107 ac_builddir=.
29109 case "$ac_dir" in
29110 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29112 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29113 # A ".." for each directory in $ac_dir_suffix.
29114 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29115 case $ac_top_builddir_sub in
29116 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29117 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29118 esac ;;
29119 esac
29120 ac_abs_top_builddir=$ac_pwd
29121 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29122 # for backward compatibility:
29123 ac_top_builddir=$ac_top_build_prefix
29125 case $srcdir in
29126 .) # We are building in place.
29127 ac_srcdir=.
29128 ac_top_srcdir=$ac_top_builddir_sub
29129 ac_abs_top_srcdir=$ac_pwd ;;
29130 [\\/]* | ?:[\\/]* ) # Absolute name.
29131 ac_srcdir=$srcdir$ac_dir_suffix;
29132 ac_top_srcdir=$srcdir
29133 ac_abs_top_srcdir=$srcdir ;;
29134 *) # Relative name.
29135 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29136 ac_top_srcdir=$ac_top_build_prefix$srcdir
29137 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29138 esac
29139 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29142 case $ac_mode in
29145 # CONFIG_FILE
29148 _ACEOF
29150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29151 # If the template does not know about datarootdir, expand it.
29152 # FIXME: This hack should be removed a few years after 2.60.
29153 ac_datarootdir_hack=; ac_datarootdir_seen=
29154 ac_sed_dataroot='
29155 /datarootdir/ {
29159 /@datadir@/p
29160 /@docdir@/p
29161 /@infodir@/p
29162 /@localedir@/p
29163 /@mandir@/p'
29164 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29165 *datarootdir*) ac_datarootdir_seen=yes;;
29166 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29168 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29169 _ACEOF
29170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29171 ac_datarootdir_hack='
29172 s&@datadir@&$datadir&g
29173 s&@docdir@&$docdir&g
29174 s&@infodir@&$infodir&g
29175 s&@localedir@&$localedir&g
29176 s&@mandir@&$mandir&g
29177 s&\\\${datarootdir}&$datarootdir&g' ;;
29178 esac
29179 _ACEOF
29181 # Neutralize VPATH when `$srcdir' = `.'.
29182 # Shell code in configure.ac might set extrasub.
29183 # FIXME: do we really want to maintain this feature?
29184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29185 ac_sed_extra="$ac_vpsub
29186 $extrasub
29187 _ACEOF
29188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29190 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29191 s|@configure_input@|$ac_sed_conf_input|;t t
29192 s&@top_builddir@&$ac_top_builddir_sub&;t t
29193 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29194 s&@srcdir@&$ac_srcdir&;t t
29195 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29196 s&@top_srcdir@&$ac_top_srcdir&;t t
29197 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29198 s&@builddir@&$ac_builddir&;t t
29199 s&@abs_builddir@&$ac_abs_builddir&;t t
29200 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29201 $ac_datarootdir_hack
29203 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29204 if $ac_cs_awk_getline; then
29205 $AWK -f "$tmp/subs.awk"
29206 else
29207 $AWK -f "$tmp/subs.awk" | $SHELL
29208 fi >$tmp/out \
29209 || as_fn_error "could not create $ac_file" "$LINENO" 5
29211 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29212 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29213 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29215 which seems to be undefined. Please make sure it is defined." >&5
29216 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29217 which seems to be undefined. Please make sure it is defined." >&2;}
29219 rm -f "$tmp/stdin"
29220 case $ac_file in
29221 -) cat "$tmp/out" && rm -f "$tmp/out";;
29222 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29223 esac \
29224 || as_fn_error "could not create $ac_file" "$LINENO" 5
29228 # CONFIG_HEADER
29230 if test x"$ac_file" != x-; then
29232 $as_echo "/* $configure_input */" \
29233 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29234 } >"$tmp/config.h" \
29235 || as_fn_error "could not create $ac_file" "$LINENO" 5
29236 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29237 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29238 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29239 else
29240 rm -f "$ac_file"
29241 mv "$tmp/config.h" "$ac_file" \
29242 || as_fn_error "could not create $ac_file" "$LINENO" 5
29244 else
29245 $as_echo "/* $configure_input */" \
29246 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29247 || as_fn_error "could not create -" "$LINENO" 5
29251 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29252 $as_echo "$as_me: executing $ac_file commands" >&6;}
29254 esac
29257 case $ac_file$ac_mode in
29258 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29259 "gccdepdir":C)
29260 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29261 for lang in $subdirs c-family common
29263 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29264 done ;;
29265 "as":F) chmod +x as ;;
29266 "collect-ld":F) chmod +x collect-ld ;;
29267 "nm":F) chmod +x nm ;;
29268 "default":C)
29269 case ${CONFIG_HEADERS} in
29270 *auto-host.h:config.in*)
29271 echo > cstamp-h ;;
29272 esac
29273 # Make sure all the subdirs exist.
29274 for d in $subdirs doc build common c-family
29276 test -d $d || mkdir $d
29277 done
29280 esac
29281 done # for ac_tag
29284 as_fn_exit 0
29285 _ACEOF
29286 ac_clean_files=$ac_clean_files_save
29288 test $ac_write_fail = 0 ||
29289 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29292 # configure is writing to config.log, and then calls config.status.
29293 # config.status does its own redirection, appending to config.log.
29294 # Unfortunately, on DOS this fails, as config.log is still kept open
29295 # by configure, so config.status won't be able to write to it; its
29296 # output is simply discarded. So we exec the FD to /dev/null,
29297 # effectively closing config.log, so it can be properly (re)opened and
29298 # appended to by config.status. When coming back to configure, we
29299 # need to make the FD available again.
29300 if test "$no_create" != yes; then
29301 ac_cs_success=:
29302 ac_config_status_args=
29303 test "$silent" = yes &&
29304 ac_config_status_args="$ac_config_status_args --quiet"
29305 exec 5>/dev/null
29306 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29307 exec 5>>config.log
29308 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29309 # would make configure fail if this is the last instruction.
29310 $ac_cs_success || as_fn_exit $?
29312 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29314 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}